Explorar el Código

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

zhangl hace 1 año
padre
commit
610d3147df
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      common/models/forms/DeclarationForm.php

+ 3 - 0
common/models/forms/DeclarationForm.php

@@ -5,6 +5,7 @@ use common\components\Model;
 use common\helpers\Cache;
 use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Date;
 use common\helpers\Form;
 use common\helpers\Form;
+use common\helpers\LoggerTool;
 use common\helpers\Tool;
 use common\helpers\Tool;
 use common\helpers\user\Cash;
 use common\helpers\user\Cash;
 use common\helpers\user\Reconsume;
 use common\helpers\user\Reconsume;
@@ -662,9 +663,11 @@ class DeclarationForm extends Model
             // 报单中心汇率
             // 报单中心汇率
             $decCountryId = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
             $decCountryId = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
             $decCountry = Countries::getById($decCountryId);
             $decCountry = Countries::getById($decCountryId);
+            LoggerTool::debug(json_encode(['$decCountry', $decCountry]));
             $decUserCurrencyRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
             $decUserCurrencyRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
             // 升级会员汇率
             // 升级会员汇率
             $country = Countries::getById($this->countryId);
             $country = Countries::getById($this->countryId);
+            LoggerTool::debug(json_encode(['$country', $country]));
             $currencyRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
             $currencyRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
 
 
             if($this->decWay==1) {
             if($this->decWay==1) {