Commit 3dbf6230 authored by 李尚科's avatar 李尚科

Fix

parent 6f895476
Pipeline #14848 passed with stage
in 52 seconds
......@@ -214,6 +214,7 @@ class CommonService extends Service {
await ctx.prometheusModel.CreditPay.edit({ where: { id: pay_info.id }, params: { pay_result: JSON.stringify(result), transaction_id: sign_data.transaction_id, status: 1 } });
await ctx.service.credit.order.logOrder(order.id);
await ctx.prometheusModel.CreditOrder.update({ state: '已支付', state_time: state_time, pay_status: 1 }, { where: { id: order.id } });
await ctx.service.credit.order.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
return true;
}
}
......
......@@ -337,7 +337,7 @@ class OrderService extends Service {
client_ip: ctx.helper.getClientIP(),
};
await this.addCreditPay(pay_data);//添加下单记录
await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
// await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
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