|
@@ -25,7 +25,7 @@ class OrderDetailService extends CrudService {
|
|
if (!order) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到支付订单的数据');
|
|
if (!order) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到支付订单的数据');
|
|
const { customer, address, goods, no, status, buy_time, pay } = order;
|
|
const { customer, address, goods, no, status, buy_time, pay } = order;
|
|
if (status === '0') throw new BusinessError(ErrorCode.DATA_INVALID, '订单未支付');
|
|
if (status === '0') throw new BusinessError(ErrorCode.DATA_INVALID, '订单未支付');
|
|
- const orderDetailData = { customer, address, order: order_id, buy_time, pay_time: _.get(pay, 'pay_time', status) };
|
|
|
|
|
|
+ const orderDetailData = { customer, address, order: order_id, buy_time, pay_time: _.get(pay, 'pay_time'), status };
|
|
// 补全 shop, goods, total_detail TODO: 补全 discount;
|
|
// 补全 shop, goods, total_detail TODO: 补全 discount;
|
|
// const arr = [];
|
|
// const arr = [];
|
|
let noTimes = 1;
|
|
let noTimes = 1;
|