feat: analysis user improve
CI / changes (push) Successful in 1m33s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / analysis (push) Successful in 32s
CI / bff (push) Successful in 17s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
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 / record (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / task (push) Successful in 0s
CI / support (push) Successful in 1s
CI / user (push) Successful in 1s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s

This commit is contained in:
zzw
2026-10-27 10:34:12 +08:00
parent c4eede1114
commit 70543fbcb0
5 changed files with 11 additions and 33 deletions
@@ -51,7 +51,7 @@ func (l *UserImproveLogic) UserImprove(in *analysis.UserImproveReq) (*analysis.R
return common.FailResponse(utils.ErrorNotFund), nil
}
if req.Nickname != utils.StringEmpty || req.Avatar != utils.StringEmpty ||
if req.Name != utils.StringEmpty || req.Avatar != utils.StringEmpty ||
req.Birthday != utils.StringEmpty || req.Gender > utils.NumberZero ||
req.Mobile != utils.StringEmpty || req.Password != utils.StringEmpty {
if st := l.updatePlatformUser(loginUser, bizId, req); st.Code != utils.Ok.Code {
@@ -106,7 +106,7 @@ func (l *UserImproveLogic) updatePlatformUser(loginUser utils.UserInfo, bizId in
return utils.ErrorParams
}
name := req.Nickname
name := req.Name
if name == utils.StringEmpty {
name = info.Name
}