瀏覽代碼

wesmiler 报恩寺项目

wesmiler 4 年之前
父節點
當前提交
da226219a2
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Models/CacheModel.php
  2. 1 1
      app/Services/MenuService.php

+ 1 - 1
app/Models/CacheModel.php

@@ -210,7 +210,7 @@ class CacheModel extends Model
             }
             }
             $act = "cache" . ucfirst($funcName);
             $act = "cache" . ucfirst($funcName);
             $data = call_user_func_array(array($this, $act), $arg_list);
             $data = call_user_func_array(array($this, $act), $arg_list);
-            $this->setCache($cache_key, $data, 3);
+            $this->setCache($cache_key, $data, 1);
         }
         }
         return $data;
         return $data;
     }
     }

+ 1 - 1
app/Services/MenuService.php

@@ -88,7 +88,7 @@ class MenuService extends BaseService
         $checkedList = array();
         $checkedList = array();
         if ($info['type'] == 0) {
         if ($info['type'] == 0) {
             $permissionList = $this->model
             $permissionList = $this->model
-                ->select("sort")
+                ->select(["sort"])
                 ->where("pid", "=", $info['id'])
                 ->where("pid", "=", $info['id'])
                 ->where("mark", "=", 1)
                 ->where("mark", "=", 1)
                 ->get()
                 ->get()