فهرست منبع

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);
             $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()