Commit 871fa01a authored by Hsinli's avatar Hsinli

addd

parent 660260b4
......@@ -43,6 +43,8 @@ class ApplyService extends Service {
let filter = {
where: {
user_id: ctx.userId,
pay_status: 1,
state: '已支付',
type: 1,
valid: 1,
},
......@@ -50,16 +52,8 @@ class ApplyService extends Service {
}
let orderInfo = await ctx.prometheusModel.CreditOrder.findOne(filter);
if (orderInfo != null) {
let applyFilter = {
where: {
id: orderInfo.apply_id
}
}
let applyInfo = await ctx.prometheusModel.CreditApply.findOne(applyFilter);
if (applyInfo != null) {
ret.placeholder.name = applyInfo.name;
ret.placeholder.id_card = applyInfo.id_card;
}
ret.placeholder.name = orderInfo.name;
ret.placeholder.id_card = orderInfo.id_card;
}
return ret;
}
......
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