瀏覽代碼

管理后台订单修改

kevin 1 年之前
父節點
當前提交
71fef23b1d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      common/models/Countries.php

+ 2 - 2
common/models/Countries.php

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