1
0
mirror of https://gitee.com/apiadmin/ApiAdmin.git synced 2025-04-25 02:40:16 +08:00

added 加载缓存

This commit is contained in:
zhaoxiang 2016-12-02 02:21:25 +08:00
parent 0d67858183
commit 327be8d3a3

@ -12,7 +12,12 @@ use app\admin\model\Filter;
class FilterManager extends Base {
public function index(){
$data = Filter::all();
$cacheValue = [];
$data = (new Filter())->where([])->select();
foreach ( $data as $value ){
$cacheValue[$value['id']] = $value['name'];
}
cache(CacheType::FILTER_LIST_KEY, $cacheValue);
$table = [
'tempType' => 'table',
'header' => [