Browse Source

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

kevin 1 year ago
parent
commit
84ff9d5931
1 changed files with 3 additions and 4 deletions
  1. 3 4
      common/helpers/user/Balance.php

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

@@ -254,17 +254,16 @@ class Balance {
             $periodNum = $params['PERIOD_NUM'];
         }
         $calcYearMonth = $period->getYearMonth($periodNum);
+
         // 汇率
 //        $countryId = User::getEnCodeInfo($userId)['COUNTRY_ID'];
 //        $decCountry = Countries::getById($countryId);
 //        $exchangeRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
         $exchangeRate = 1;  // TODO:奖金发放美元
-        // redis加锁(防止并发余额数值不准确出错)
-
-        LoggerTool::info(['$type', $type, 'bonus']);
 
+        // redis加锁(防止并发余额数值不准确出错)
         switch ($type) {
-            case 'bonus':
+            case 'BONUS':
                 $lockKey = self::BONUS_BALANCE_LOCK_KEY . $userId;
                 break;
             default: