ソースを参照

feat: NG-15: 新会员注册时增加国家与语言选项.

zhangl 1 年間 前
コミット
20fe19c740
1 ファイル変更4 行追加2 行削除
  1. 4 2
      common/helpers/user/Balance.php

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

@@ -13,6 +13,7 @@ use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Form;
 use common\libs\lock\RedisLock;
+use common\models\Countries;
 use common\models\CurrencyConversions;
 use common\models\FlowBonus;
 use common\models\FlowCF;
@@ -272,8 +273,9 @@ class Balance {
         }
         $calcYearMonth = $period->getYearMonth($periodNum);
         // 汇率
-//        $country = User::getEnCodeInfo($userId)['COUNTRY_ID'];
-//        $exchangeRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
+//        $countryId = User::getEnCodeInfo($userId)['COUNTRY_ID'];
+//        $decCountry = Countries::getById($countryId);
+//        $exchangeRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
         $exchangeRate = 1;  // TODO:奖金发放美元
         // redis加锁(防止并发余额数值不准确出错)
         switch ($type) {