Explorar o código

wesmiler 报恩寺项目

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
da226219a2
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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);
             $data = call_user_func_array(array($this, $act), $arg_list);
-            $this->setCache($cache_key, $data, 3);
+            $this->setCache($cache_key, $data, 1);
         }
         return $data;
     }

+ 1 - 1
app/Services/MenuService.php

@@ -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()