by Robin at 20240520

This commit is contained in:
Leufolium 2024-05-20 18:16:17 +08:00
parent 5eb15ae3a1
commit 62ae8742ba
1 changed files with 9 additions and 0 deletions

View File

@ -662,6 +662,15 @@ func (s *Service) utilCancelAccountByMids(ctx *gin.Context, midList []int64) err
PhoneHash: goproto.String(phoneHash),
},
})
if qmgo.IsDup(err) {
err = _DefaultLogin.OpUpdate(ctx, &loginproto.OpUpdateReq{
Login: &dbstruct.Login{
Id: login.Id,
Password: goproto.String(cfg.Password),
PhoneHash: goproto.String(phoneHash + qmgo.NewObjectID().Hex()),
},
})
}
if err != nil {
logger.Error("_DefaultLogin OpUpdate fail, err: %v", err)
return err