|
@@ -55,6 +55,20 @@ class LoginService extends CrudService {
|
|
|
if (expertsuser.data.data.status !== '1') {
|
|
|
throw new BusinessError(ErrorCode.ACCESS_DENIED);
|
|
|
}
|
|
|
+ } else if (_user.role === '8') {
|
|
|
+ const url = 'http://127.0.0.1:9008/api/live/dock/getdock' + _user.uid;
|
|
|
+ const vipuser = await this.ctx.curl(url, {
|
|
|
+ method: 'post',
|
|
|
+ headers: {
|
|
|
+ 'content-type': 'application/json',
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ });
|
|
|
+ if (vipuser.data.data.status !== '1') {
|
|
|
+ throw new BusinessError(ErrorCode.ACCESS_DENIED);
|
|
|
+ } else {
|
|
|
+ user.vipuser = vipuser;
|
|
|
+ }
|
|
|
}
|
|
|
// 取出用户的类型,根据用户类型返回相应信息
|
|
|
const state = uuid();
|