Explorar o código

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

kevin hai 1 ano
pai
achega
0bf946ce27
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      common/models/forms/UserBasicForm.php

+ 2 - 0
common/models/forms/UserBasicForm.php

@@ -6,6 +6,7 @@ use common\components\Model;
 use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Form;
+use common\helpers\LoggerTool;
 use common\helpers\Tool;
 use common\libs\logging\operate\AdminOperate;
 use common\models\CurrencyConversions;
@@ -147,6 +148,7 @@ class UserBasicForm extends Model {
         $beforeCurrency = CurrencyConversions::getToUSDRate($beforeCountry);
         // 移民后汇率
         $afterCurrency = CurrencyConversions::getToUSDRate($this->country);
+        LoggerTool::debug(json_encode(['modifyProfile', $beforeCountry, $this->country, $afterCurrency]));
         if (!$afterCurrency) {
             throw new Exception(Yii::t('app', 'currencyDoesNotExist'));
         }