kevin 4 mesi fa
parent
commit
862e53db71
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      common/models/forms/ApproachDeclarationForm.php

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

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