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

wexin pay fix

parent 3eea291f
...@@ -66,11 +66,12 @@ class OrderController extends Controller { ...@@ -66,11 +66,12 @@ class OrderController extends Controller {
const { ctx } = this; const { ctx } = this;
const order_id = ctx.params.order_id; const order_id = ctx.params.order_id;
const is_pay = await ctx.service.credit.order.checkOrderPay(order_id); const is_pay = await ctx.service.credit.order.checkOrderPay(order_id);
let result = false; const order = await ctx.service.credit.order.getOrderInfo(order_id);
let status = 0;
if (is_pay) { if (is_pay) {
result = true; status = 1;
} }
ctx.success({ result }); ctx.success({ status, report_id: order.report_id });
} }
......
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