|
@@ -7,7 +7,7 @@ class YunjiuyeController extends Controller {
|
|
this.service = this.ctx.service.yunjiuye;
|
|
this.service = this.ctx.service.yunjiuye;
|
|
|
|
|
|
}
|
|
}
|
|
- // http://127.0.0.1:7001/api/train/y/login?code=中心&org=0
|
|
|
|
|
|
+ // http://127.0.0.1:7001/api/train/y/login?params=
|
|
async login() {
|
|
async login() {
|
|
this.service.getDomain();
|
|
this.service.getDomain();
|
|
const pstr = this.ctx.request.querystring;
|
|
const pstr = this.ctx.request.querystring;
|
|
@@ -42,8 +42,8 @@ class YunjiuyeController extends Controller {
|
|
const { id } = query;
|
|
const { id } = query;
|
|
const data = await this.service.getBindInfo(id);
|
|
const data = await this.service.getBindInfo(id);
|
|
const encDataStr = this.service.encryptData(data);
|
|
const encDataStr = this.service.encryptData(data);
|
|
- await this.service.yLogout(encDataStr);
|
|
|
|
- this.ctx.ok();
|
|
|
|
|
|
+ const url = await this.service.yLogout(encDataStr);
|
|
|
|
+ this.ctx.ok({ data: url });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
module.exports = YunjiuyeController;
|
|
module.exports = YunjiuyeController;
|