|
@@ -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',
|