@@ -210,7 +210,7 @@ class CacheModel extends Model
}
$act = "cache" . ucfirst($funcName);
$data = call_user_func_array(array($this, $act), $arg_list);
- $this->setCache($cache_key, $data, 3);
+ $this->setCache($cache_key, $data, 1);
return $data;
@@ -88,7 +88,7 @@ class MenuService extends BaseService
$checkedList = array();
if ($info['type'] == 0) {
$permissionList = $this->model
- ->select("sort")
+ ->select(["sort"])
->where("pid", "=", $info['id'])
->where("mark", "=", 1)
->get()