From 21e200d1e39713b459ac856085e19762a260ef47 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Tue, 16 Jan 2018 23:23:46 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E5=AE=8C=E5=96=84=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Menu.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/admin/controller/Menu.php b/application/admin/controller/Menu.php index fe857bb..5bb61de 100644 --- a/application/admin/controller/Menu.php +++ b/application/admin/controller/Menu.php @@ -17,7 +17,7 @@ class Menu extends Base { * @author zhaoxiang */ public function index() { - $list = ApiMenu::all([]); + $list = ApiMenu::all(); $list = json_decode(json_encode($list), true); $list = formatTree(listToTree($list)); return $this->buildSuccess($list, '登录成功'); @@ -28,6 +28,7 @@ class Menu extends Base { * @author zhaoxiang */ public function add() { + $postData = $this->request->post(); if (IS_POST) { $data = I('post.'); $data['hide'] = isset($data['hide']) ? 1 : 0;