瀏覽代碼

商品会员多国家

kevin 1 年之前
父節點
當前提交
9cbad6bd70
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      frontendApi/modules/v1/controllers/UserController.php

+ 2 - 3
frontendApi/modules/v1/controllers/UserController.php

@@ -529,12 +529,11 @@ class UserController extends BaseController {
         $redis->setex('key_'.$userName , 3600 , $userName);
 
         // 报单中心会员的本地汇率
-        $decCountry = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
-        LoggerTool::error('$decCountry. ' . json_encode($decCountry));
+        $decCountryId = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
+        $decCountry = Countries::getById($decCountryId);
         $decUserCurrencyRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
         // 新会员的本地汇率
         $country = Countries::getById($countryId);
-        LoggerTool::error('$country. ' . json_encode($country));
         $currencyRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
 
         // 会员账户