|
|
@@ -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) {
|