kevin 1 год назад
Родитель
Сommit
e478cb5396

+ 1 - 1
backendApi/modules/v1/models/lists/shop/OrderList.php

@@ -535,7 +535,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
         foreach ($countries as $country) {
             $data[] = [
                 'id' => $country['ID'],
-                'name' => $country['COUNTRY_NAME'],
+                'name' => $country['NAME'],
             ];
         }
 

+ 0 - 4
common/models/Countries.php

@@ -68,10 +68,6 @@ class Countries extends \common\components\ActiveRecord
             $data = static::find()->orderBy('ACTIVE DESC, ID ASC')->indexBy('ID')->asArray()->all();
             Yii::$app->cache->set(Cache::COUNTRIES_KEY, $data);
         }
-        // 首字母
-        foreach ($data as &$item) {
-            $item['COUNTRY_NAME'] = ucwords($item['NAME']);
-        }
 
         return $data;
     }