feat: analysis user auth and ws

This commit is contained in:
zzw
2026-10-15 09:23:07 +08:00
parent 6fa185003d
commit a65b6d2803
102 changed files with 4966 additions and 786 deletions
@@ -139,8 +139,8 @@ func (l *VerifyStatusLogic) updateUserPwd(info dao.StoreCreate) utils.Status {
client := user.NewUserClient(cli.Conn())
mobile, sErr := utils.EncryptPhone(info.UserMobile)
if sErr != nil {
mobile, dErr := utils.DecryptPhone(info.UserMobile)
if dErr != nil {
return utils.ErrorEncryptAesError
}
data := user.InternalUpdateReq{
@@ -150,7 +150,7 @@ func (l *VerifyStatusLogic) updateUserPwd(info dao.StoreCreate) utils.Status {
Name: info.UserName,
ClientCode: strings.Split(info.StoreType, utils.DecollatorComma), //哪端
CredentialType: []string{dao.LoginTypePassword, dao.LoginTypeSms},
Identifier: mobile, //手机号
Identifier: mobile,
}
_, err = client.InternalUpdate(context.Background(), &data)
if err != nil {