|
|
@@ -34,7 +34,7 @@ class EliteLevel extends \common\components\ActiveRecord
|
|
|
*/
|
|
|
public static function tableName()
|
|
|
{
|
|
|
- return '{{%CROWN_LEVEL}}';
|
|
|
+ return '{{%ELITE_LEVEL}}';
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -90,7 +90,7 @@ class EliteLevel extends \common\components\ActiveRecord
|
|
|
public static function getIdConvertLevelSort()
|
|
|
{
|
|
|
$ret = [];
|
|
|
- $allData = static::find()->where('1=1')->orderBy('SORT ASC, CREATED_AT ASC')->indexBy('ID')->asArray()->all();
|
|
|
+ $allData = static::getAllData();
|
|
|
foreach($allData as $data) {
|
|
|
$ret[$data['ID']] = $data['SORT'];
|
|
|
}
|
|
|
@@ -121,6 +121,7 @@ class EliteLevel extends \common\components\ActiveRecord
|
|
|
public static function getFromCache()
|
|
|
{
|
|
|
$data = Yii::$app->cache->get(Cache::ELITE_LEVEL_CONFIG_KEY);
|
|
|
+ Yii::$app->cache->delete(Cache::ELITE_LEVEL_CONFIG_KEY);
|
|
|
if(!$data){
|
|
|
// 获取信息
|
|
|
$data = self::getAllData();
|