瀏覽代碼

feat: NG-71: 会员奖金计算调整

kevin 1 年之前
父節點
當前提交
00c243f9b1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      common/helpers/user/Balance.php

+ 4 - 0
common/helpers/user/Balance.php

@@ -12,6 +12,7 @@ use common\components\ActiveRecord;
 use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Form;
+use common\helpers\LoggerTool;
 use common\libs\lock\RedisLock;
 use common\models\Countries;
 use common\models\CurrencyConversions;
@@ -259,6 +260,9 @@ class Balance {
 //        $exchangeRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
         $exchangeRate = 1;  // TODO:奖金发放美元
         // redis加锁(防止并发余额数值不准确出错)
+
+        LoggerTool::info(['$type', $type, 'bonus']);
+
         switch ($type) {
             case 'bonus':
                 $lockKey = self::BONUS_BALANCE_LOCK_KEY . $userId;