feat: rebind mobile
CI / changes (push) Successful in 1m57s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 26s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 28s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s

This commit is contained in:
zzw
2026-10-21 14:21:19 +08:00
parent 8db28b074a
commit 3517713853
10 changed files with 327 additions and 106 deletions
@@ -75,14 +75,6 @@ func (l *UpdateLogic) Update(in *user.UpdateReq) (*user.Response, error) {
return failResponse(utils.ErrorEncryptAesError), nil
}
if enc != row.Mobile {
ok, verifyErr := verifyAndConsumeSmsCode(l.ctx, dao.SmsSceneRebindMobile, req.Mobile, req.SmsCode)
if verifyErr != nil {
l.Errorf("update verify sms: %v", verifyErr)
return failResponse(utils.Fail), nil
}
if !ok {
return outResponse(utils.ErrorParams, "验证码错误或已过期"), nil
}
occupied, occErr := findUserByMobile(enc)
if occErr != nil {
l.Errorf("update mobile unique: %v", occErr)