Explorar o código

返现计算除少了

lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
9b5f68fe8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
       }
     }