lrf 2 vuotta sitten
vanhempi
commit
6b3f896946
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      app/service/user/user.js

+ 0 - 2
app/service/user/user.js

@@ -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 });