|
|
@@ -59,7 +59,7 @@ class Currency extends \common\components\ActiveRecord
|
|
|
$data = Yii::$app->cache->get(Cache::CURRENCIES_KEY);
|
|
|
if (!$data) {
|
|
|
// 获取信息
|
|
|
- $data = static::find()->where('ACTIVE=1')->orderBy('ACTIVE DESC, ID ASC')->indexBy('ID')->asArray()->all();
|
|
|
+ $data = static::find()->where('ACTIVE=1')->orderBy('ACTIVE DESC, ID ASC')->asArray()->all();
|
|
|
Yii::$app->cache->set(Cache::CURRENCIES_KEY, $data);
|
|
|
}
|
|
|
|
|
|
@@ -71,7 +71,7 @@ class Currency extends \common\components\ActiveRecord
|
|
|
*/
|
|
|
public static function getAllData()
|
|
|
{
|
|
|
- return static::find()->where('1=1')->indexBy('ID')->orderBy('ACTIVE DESC, ID ASC')->asArray()->all();
|
|
|
+ return static::find()->where('1=1')->orderBy('ACTIVE DESC, ID ASC')->asArray()->all();
|
|
|
}
|
|
|
|
|
|
/**
|