lrf 2 年之前
父节点
当前提交
e67f5ce9b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/trade/orderDetail.js

+ 1 - 1
app/service/trade/orderDetail.js

@@ -142,7 +142,7 @@ class OrderDetailService extends CrudService {
         const dm = values.reduce((p, n) => this.ctx.plus(p, n), 0);
         discount = this.ctx.plus(discount, dm);
       }
-      i.real_pay = this.ctx.minus(_.get(i, 'total_detail.goods_total'), discount);
+      i.real_pay = this.ctx.service.util.orderDetail.computedRealPay(i);
     }
     return data;
   }