浏览代码

返现计算除少了

lrf 2 年之前
父节点
当前提交
9b5f68fe8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/user/cashBack.js

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

@@ -84,7 +84,7 @@ class CashBackService extends CrudService {
       else if (type === 'percent') {
         const specId = _.get(gs, '_id');
         const realPay = _.get(moneyDetail, `${specId}.${priceKey}`);
-        const grm = this.ctx.multiply(realPay, this.ctx.divide(money, 10));
+        const grm = this.ctx.multiply(realPay, this.ctx.divide(money, 100));
         rmoney = this.ctx.plus(rmoney, grm);
       }
     }