Browse Source

完善功能

gorden 8 months ago
parent
commit
0361acaf1d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/admin/service/goods/GoodsService.php

+ 2 - 1
app/admin/service/goods/GoodsService.php

@@ -95,7 +95,8 @@ class GoodsService
                 $query->whereIn('join_goods_category_id', $categoryIds);
             })->when(empty($categoryIds), function ($query) {
                 $query->where('goods_classify','<>', 'RECHARGE');
-            })->select('goods_id', 'goods_name', 'join_goods_category_id')
+            })->where('goods_status','ON')
+            ->select('goods_id', 'goods_name', 'join_goods_category_id')
             ->get()
             ->toArray();