|
@@ -25,7 +25,7 @@ class PointService extends CrudService {
|
|
const setting = _.get(config, 'config.buyPoint', 10);
|
|
const setting = _.get(config, 'config.buyPoint', 10);
|
|
const point = this.ctx.divide(realPay, setting);
|
|
const point = this.ctx.divide(realPay, setting);
|
|
const { customer, _id: source_id } = orderDetail;
|
|
const { customer, _id: source_id } = orderDetail;
|
|
- const obj = { customer, source_id, source: 'OrderDetail' };
|
|
|
|
|
|
+ const obj = { customer, source_id, source: '0' };
|
|
const r = await this.checkHasAdd(obj);
|
|
const r = await this.checkHasAdd(obj);
|
|
if (r) return;
|
|
if (r) return;
|
|
obj.point = point;
|
|
obj.point = point;
|