lrf пре 2 година
родитељ
комит
a580c723b9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/service/user/point.js

+ 1 - 1
app/service/user/point.js

@@ -25,7 +25,7 @@ class PointService extends CrudService {
     const setting = _.get(config, 'config.buyPoint', 10);
     const point = this.ctx.divide(realPay, setting);
     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);
     if (r) return;
     obj.point = point;