lrf 2 years ago
parent
commit
aabda3d6a6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/service/trade/pay.js

+ 2 - 0
app/service/trade/pay.js

@@ -114,6 +114,8 @@ class PayService extends CrudService {
       // 加积分
       // 加积分
       await this.ctx.service.user.point.afterPayOrder({ order_id: orderData._id, openid }, this.tran);
       await this.ctx.service.user.point.afterPayOrder({ order_id: orderData._id, openid }, this.tran);
       // 拆订单
       // 拆订单
+      await this.ctx.service.trade.orderDetail.create({ order_id: orderData._id }, this.tran);
+      console.log(this.tran.getOperations());
       await this.tran.run();
       await this.tran.run();
     } catch (error) {
     } catch (error) {
       console.error(error);
       console.error(error);