Просмотр исходного кода

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

zhangl 1 год назад
Родитель
Сommit
935ba2a523
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      common/models/forms/DeclarationForm.php

+ 2 - 2
common/models/forms/DeclarationForm.php

@@ -660,8 +660,8 @@ class DeclarationForm extends Model
             }
 
             // 报单中心汇率
-            $decUser = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
-            $decCountry = Countries::getById($decUser['COUNTRY_ID']);
+            $decCountryId = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
+            $decCountry = Countries::getById($decCountryId);
             $decUserCurrencyRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
             // 升级会员汇率
             $country = Countries::getById($this->countryId);