|
|
@@ -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;
|
|
|
}
|