Selaa lähdekoodia

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

kevin 1 vuosi sitten
vanhempi
commit
6f4d4f2613
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      common/models/forms/ShopGoodsForm.php

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

@@ -210,13 +210,13 @@ class ShopGoodsForm extends Model
             // 商品属性
             foreach ($this->nature as $item) {
                 // 国家
-                $country = Countries::getById($item['countryId']);
+                $country = Countries::getById($item['ID']);
                 // 转换美元汇率
                 $productRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
 
                 $shopGoodsNature = new ShopGoodsNature();
                 $shopGoodsNature->GOODS_ID = $shopGoods->ID;
-                $shopGoodsNature->COUNTRY_ID = $item['countryId'];
+                $shopGoodsNature->COUNTRY_ID = $item['ID'];
                 $shopGoodsNature->LOCAL_CURRENCY_ID = $country['LOCAL_CURRENCY_ID'];
                 $shopGoodsNature->MARKET_PRICE = $item['sellPrice'];
                 $shopGoodsNature->SELL_PRICE = $shopGoods->SELL_PRICE_STANDARD * $productRate;