lrf 2 éve
szülő
commit
bfb97b6474
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app/service/util/order.js

+ 2 - 2
app/service/util/order.js

@@ -285,11 +285,11 @@ class OrderService extends CrudService {
               r.act = act;
             }
           }
-          // 修改活动数据
+          // 修改活动数据,做明细
           const text = `满${platform_act_type === '6' ? '折' : '减'}活动`;
           const actData = await this.platformActModel.findById(platform_act);
           act.title = _.get(actData, 'act_time.title', text);
-          act.discount = actResult.reduce((p, n) => this.ctx.plus(p, n.discount), 0);
+          act.discount = actResult.reduce((p, n) => this.ctx.minus(p, n.discount), 0);
           break;
         }
       }