guhongwei 4 년 전
부모
커밋
2fd3cb9e6f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/login.js

+ 1 - 1
app/service/login.js

@@ -25,7 +25,7 @@ class LoginService extends CrudService {
     // 如果用户不存在抛出异常
     if (!user) {
       // 添加code作为登录的方式
-      user = await this.model.findOne({ code: phone, role });
+      user = await this.model.findOne({ code: phone, role, isdel: '0' });
       if (!user) { throw new BusinessError(ErrorCode.USER_NOT_EXIST); } else is_code = true;
     }
     const pdata = {};