cheny пре 4 година
родитељ
комит
c8e2330ecd
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {
       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 marketuser = await this.ctx.curl(url, {
         method: 'get',