Sfoglia il codice sorgente

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

kevin 1 anno fa
parent
commit
6480252068

+ 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]);