From 56d58690f1eb2bd1af0e4125d1f0127622f7a9d1 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Tue, 16 Apr 2019 19:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index 0eef3516..507bed16 100644 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -48,7 +48,7 @@ class Index extends Base ->field('id,title,font,name,pid') ->with([ 'authCid'=>function($query){ - $query->field('id,title,name,pid,url'); + $query->where('status&ismenu',1)->field('id,title,name,pid,url'); }, ]) ->order(['paixu'])