Преглед изворни кода

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

kevin пре 1 година
родитељ
комит
6480252068
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      backendApi/modules/v1/controllers/TransportationController.php

+ 1 - 1
backendApi/modules/v1/controllers/TransportationController.php

@@ -32,7 +32,7 @@ class TransportationController extends BaseController
         foreach ($countries as &$country) {
             $country['freight'] = $transportation[$country['ID']]['freight'] ?? 0;
             $country['free_shipping'] = $transportation[$country['ID']]['free_shipping'] ?? 0;
-            $country['currency'] = $this->countiesModelClass::getCurrency($country['LOCAL_CURRENCY_ID']);
+            $country['currency'] = $this->currencyModelClass::getById($country['LOCAL_CURRENCY_ID']);
         }
 
         return static::notice(['data' => $countries]);