feat: sale manager
This commit is contained in:
@@ -51,7 +51,7 @@ func (l *RegisterLogic) Register(in *user.RegisterReq) (*user.Response, error) {
|
||||
return failResponse(utils.ErrorExist), nil
|
||||
}
|
||||
|
||||
encryptMobile, cErr := utils.Crypto{}.AESEncryptECB(v.Mobile)
|
||||
encryptMobile, cErr := utils.EncryptPhone(v.Mobile)
|
||||
if cErr != nil {
|
||||
l.Errorf("register encrypt mobile: %v", cErr)
|
||||
return failResponse(utils.ErrorEncryptAesError), nil
|
||||
|
||||
Reference in New Issue
Block a user