牟新芬 há 3 anos atrás
pai
commit
755c76a07b
1 ficheiros alterados com 1 adições e 0 exclusões
  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}%");
             })