Commit b9d5376e authored by 李尚科's avatar 李尚科

fix

parent 7161837c
Pipeline #14254 passed with stage
in 31 seconds
......@@ -98,7 +98,8 @@ class UserController extends Controller {
async getCollectInstitutions() {
const { ctx } = this;
const input_params = ctx.request.body;
let input_params = ctx.request.body;
input_params = Object.assign(input_params, ctx.request.query);
const result = await ctx.service.course.user.getCollectInstitutions(input_params);
ctx.success({ result });
......
......@@ -588,13 +588,16 @@ class CallriskService extends Service {
const order_sn = yys_order.r_order_sn;
const query_resp = await ctx.service.credit.yys.query(order_sn);
const r_code = query_resp.code;
if (r_code === 0) {
const yys_report_data = await ctx.service.credit.yys.getData(order_sn);
if (r_code !== 0) {
return query_resp;
}
const yys_report_data = await ctx.service.credit.yys.getData(order_sn);//拉取报告数据
if (yys_report_data.code !== 0) {
return { code: -1, msg: yys_report_data.msg }
}
return query_resp;
return r_code;
}
......
......@@ -88,7 +88,6 @@ class YysService extends Service {
params: {
appKey: this.config.YYS_APP_KEY,
timestamp: new Date().getTime(),
token: '',
orderSn,
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment