by Robin at 20240520
This commit is contained in:
parent
5eb15ae3a1
commit
62ae8742ba
|
@ -662,6 +662,15 @@ func (s *Service) utilCancelAccountByMids(ctx *gin.Context, midList []int64) err
|
||||||
PhoneHash: goproto.String(phoneHash),
|
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 {
|
if err != nil {
|
||||||
logger.Error("_DefaultLogin OpUpdate fail, err: %v", err)
|
logger.Error("_DefaultLogin OpUpdate fail, err: %v", err)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue