فهرست منبع

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

zhangl 1 سال پیش
والد
کامیت
88aceb84a6
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      common/models/forms/DeclarationForm.php

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

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