牟新芬 3 年之前
父節點
當前提交
755c76a07b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/model/system/Category.php

+ 1 - 0
app/model/system/Category.php

@@ -72,6 +72,7 @@ class Category extends BaseModel
      */
     public function getArMenu($cate_name = '',$pid = '',$show =  0){
         $menus = $this
+            ->where('is_show', 1)
             ->when(!empty($cate_name),function ($query) use($cate_name){
                 $query->whereLike('cate_name',"%{$cate_name}%");
             })