Commit 185ad9e5 authored by 李尚科's avatar 李尚科

fix

parent 3dbf6230
Pipeline #14850 passed with stage
in 37 seconds
......@@ -255,6 +255,7 @@ class OrderService extends Service {
const state_time = moment().format('YYYY-MM-DD HH:mm:ss');
await this.logOrder(order.id);
await ctx.prometheusModel.CreditOrder.update({ state: '已支付', state_time, pay_status: 1 }, { where: { id: order.id, pay_status: 0 } })
await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
return true;
}
}
......@@ -337,7 +338,7 @@ class OrderService extends Service {
client_ip: ctx.helper.getClientIP(),
};
await this.addCreditPay(pay_data);//添加下单记录
// await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
// await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态//2019-10-14 14:52:23 移动到支付完成时通知那里
await this.updateOrderPrice(order);//更新金额
await this.logOrder(order.id);//订单状态变化日志记录
const state_time = moment().format('YYYY-MM-DD HH:mm:ss');
......
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