|
@@ -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;
|
|
|
}
|
|
|
}
|