Explorar el Código

wesmiler 报恩寺项目

wesmiler hace 4 años
padre
commit
da226219a2
Se han modificado 2 ficheros con 2 adiciones y 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()