牟新芬 hace 3 años
padre
commit
755c76a07b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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}%");
             })