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 { ...@@ -98,7 +98,8 @@ class UserController extends Controller {
async getCollectInstitutions() { async getCollectInstitutions() {
const { ctx } = this; 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); const result = await ctx.service.course.user.getCollectInstitutions(input_params);
ctx.success({ result }); ctx.success({ result });
...@@ -119,9 +120,9 @@ class UserController extends Controller { ...@@ -119,9 +120,9 @@ class UserController extends Controller {
ctx.success({ result }); ctx.success({ result });
} }
/** /**
* 取消收藏机构 * 取消收藏机构
*/ */
async delCollectInstitution() { async delCollectInstitution() {
const { ctx } = this; const { ctx } = this;
......
...@@ -588,13 +588,16 @@ class CallriskService extends Service { ...@@ -588,13 +588,16 @@ class CallriskService extends Service {
const order_sn = yys_order.r_order_sn; const order_sn = yys_order.r_order_sn;
const query_resp = await ctx.service.credit.yys.query(order_sn); const query_resp = await ctx.service.credit.yys.query(order_sn);
const r_code = query_resp.code; const r_code = query_resp.code;
if (r_code === 0) { if (r_code !== 0) {
const yys_report_data = await ctx.service.credit.yys.getData(order_sn); 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 { ...@@ -88,7 +88,6 @@ class YysService extends Service {
params: { params: {
appKey: this.config.YYS_APP_KEY, appKey: this.config.YYS_APP_KEY,
timestamp: new Date().getTime(), timestamp: new Date().getTime(),
token: '',
orderSn, 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