lrf402788946 hace 4 años
padre
commit
6cffe0ae07
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/service/login.js

+ 3 - 0
app/service/login.js

@@ -30,6 +30,9 @@ class LoginService extends CrudService {
       } else { user = await this.model.findOne({ code: phone, role }); }
       if (!user) { throw new BusinessError(ErrorCode.USER_NOT_EXIST); } else is_code = true;
     }
+    console.group('user');
+    console.log(`${JSON.stringify(user)}`);
+    console.groupEnd();
     const pdata = {};
     if (is_code) pdata.code = phone;
     else pdata.phone = phone;