Переглянути джерело

复消积分去掉限制,不发放复消费积分

root 3 роки тому
батько
коміт
e2a943f24b

+ 2 - 1
common/helpers/bonus/BonusCalc.php

@@ -2983,7 +2983,8 @@ class BonusCalc extends BaseObject {
         if( $reConsumePointsTotal < $reConsumePointsCap ) {
             $reConsumePoints = $bonus * $this->_sysConfig['reConsumePointsPercent']['VALUE'] / 100;
 
-            $reConsumePoints = min($reConsumePoints, $reConsumePointsCap-$reConsumePointsTotal);
+            // 2022/05/17 复消积分去掉限制,config reConsumePointsMonthCap上限改成大值如5000000
+            //$reConsumePoints = min($reConsumePoints, $reConsumePointsCap-$reConsumePointsTotal);
         }
         unset($reConsumePointsTotal, $reConsumePointsCap);
 

+ 1 - 1
common/helpers/bonus/BonusSend.php

@@ -330,7 +330,7 @@ class BonusSend extends BaseObject {
                             'ORI_GL' => $data['ORI_BONUS_GL'],
                             'ORI_BS' => $data['ORI_BONUS_BS'],
 
-                            'RECONSUME_POINTS_TOTAL' => $data['RECONSUME_POINTS'],
+                            //'RECONSUME_POINTS_TOTAL' => $data['RECONSUME_POINTS'], 2022/05/17 复消积分,直接发放到余额账户
                             'EXCHANGE_POINTS_TOTAL' => $data['EXCHANGE_POINTS'],
                             'MANAGE_TAX' => $data['MANAGE_TAX'],