|
|
@@ -68,9 +68,9 @@ 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);
|
|
|
}
|
|
|
- // i18n转换
|
|
|
+ // 首字母
|
|
|
foreach ($data as &$item) {
|
|
|
- $item['COUNTRY_NAME'] = Yii::t('ctx', $item['LANGUAGE_KEY']);
|
|
|
+ $item['COUNTRY_NAME'] = ucwords($item['NAME']);
|
|
|
}
|
|
|
|
|
|
return $data;
|