|
@@ -128,8 +128,6 @@ class UserService extends CrudService {
|
|
|
const arr = redisData.split(this.conenctCode);
|
|
|
const rphone = _.head(arr);
|
|
|
const rCode = _.last(arr);
|
|
|
- console.log(rphone, phone);
|
|
|
- console.log(rCode, code);
|
|
|
if (code !== rCode) throw new BusinessError(ErrorCode.DATA_INVALID, '验证码错误');
|
|
|
if (phone !== rphone) throw new BusinessError(ErrorCode.DATA_INVALID, '要绑定的邮箱与接收验证码的邮箱不是同一个邮箱');
|
|
|
await this.model.updateOne({ _id: id }, { phone });
|