牟新芬 3 năm trước cách đây
mục cha
commit
755c76a07b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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}%");
             })