lrf 2 anni fa
parent
commit
a580c723b9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;