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;