1 #914

Merged
chenhao merged 1 commits from feat-IRONFANS-1000063-Robin into test 2024-12-17 16:26:52 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -83,13 +83,13 @@ func (l *LoginBusinessValidator) EnsureNewMobilePhoneNotRegistered(QueryFunc fun
phoneHash := mycrypto.CryptoServiceInstance().SHA256.Encrypt([]byte(mobilePhone))
account, err := QueryFunc(l.ctx, phoneHash)
accounts, err := QueryFunc(l.ctx, phoneHash)
if err != nil {
logger.Error("Query account failed, err: %v", err)
l.ec = errcode.ErrCodeAccountSrvFail
return
}
if account != nil {
if len(accounts) > 0 {
logger.Error("This mobile phone has been registered")
l.ec = errcode.ErrCodeLoginMobilePhoneHasBeenRegistered
return