|
@@ -9,13 +9,13 @@ class YunjiuyeController extends Controller {
|
|
|
}
|
|
|
// http://127.0.0.1:7001/api/train/y/login?params=
|
|
|
async login() {
|
|
|
- this.service.getDomain();
|
|
|
const pstr = this.ctx.request.querystring;
|
|
|
let params = pstr.replace('params=', '');
|
|
|
if (!params) throw new BusinessError(ErrorCode.BADPARAM, '缺少登录参数');
|
|
|
params = this.service.decryptData(params);
|
|
|
if (!params) throw new BusinessError(ErrorCode.BADPARAM, '参数解析失败');
|
|
|
- const { code, org, type } = params;
|
|
|
+ const { code, org, type, origin } = params;
|
|
|
+ this.service.getDomain(origin);
|
|
|
const res = await this.service.checkUserIsConnect(params);
|
|
|
const { toBindPage, toDealTokenPage } = this.app.config.yunjiuye;
|
|
|
// 没关联,转到登录页面
|