where('name|code', 'LIKE', "%$params[keyword]%"); $model = $model->order('sort DESC,id DESC'); return self::page($model, $params); } public static function expressList() { $key = md5('zsff_plat_express_list'); $list = CacheService::get($key); if (!$list) { try { $list = self::where(['is_show' => 1])->order('sort desc')->select(); $list = count($list) > 0 ? $list->toArray() : []; CacheService::set($key, $list, 86400); } catch (\Throwable $e) { $list = []; } } return $list; } }