cheny %!s(int64=4) %!d(string=hai) anos
pai
achega
c8e2330ecd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/login.js

+ 1 - 1
app/service/login.js

@@ -31,7 +31,7 @@ class LoginService extends CrudService {
     if (pas !== _user.passwd.secret) {
     if (pas !== _user.passwd.secret) {
       throw new BusinessError(ErrorCode.BAD_PASSWORD);
       throw new BusinessError(ErrorCode.BAD_PASSWORD);
     }
     }
-    if (_user.role === '2' || _user.role === '3') {
+    if (_user.role === '4' || _user.role === '5') {
       const url = 'http://127.0.0.1:9004/api/market/user/' + _user.uid;
       const url = 'http://127.0.0.1:9004/api/market/user/' + _user.uid;
       const marketuser = await this.ctx.curl(url, {
       const marketuser = await this.ctx.curl(url, {
         method: 'get',
         method: 'get',