Browse Source

返现计算除少了

lrf 2 years ago
parent
commit
9b5f68fe8f
1 changed files with 1 additions and 1 deletions
  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);
       }
     }