Explorar el Código

商品会员多国家

kevin hace 1 año
padre
commit
df19fd08e5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      frontendApi/modules/v1/controllers/UserController.php

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

@@ -531,7 +531,7 @@ class UserController extends BaseController {
         $decCountry = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
         $decUserCurrencyRate = CurrencyConversions::getToUSDRate($decCountry['LOCAL_CURRENCY_ID']);
         // 新会员的本地汇率
-        $country = Countries::getById($countyId);
+        $country = Countries::getById($countryId);
         $currencyRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
 
         // 会员账户
@@ -545,7 +545,7 @@ class UserController extends BaseController {
             $userBalance['localCash'] = Tool::convertAmount($userCash['CASH'], $decUserCurrencyRate, $currencyRate);
         }
         // 行政区划
-        $region = Region::getByCountryId($countyId);
+        $region = Region::getByCountryId($countryId);
 
         return static::notice([
             'allDecPackage' => $allDecPackage,