소스 검색

自定义充值产品

gorden 6 달 전
부모
커밋
d618760bde
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      app/admin/service/goods/GoodsService.php

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

@@ -235,7 +235,10 @@ class GoodsService
             })->when($classify != '', function ($query) use ($classify, $categoryId) {
                 if ($classify == 'GOODS' && empty($categoryId)) {
                     $query->whereIn('join_goods_category_id', ['6', '7', '8', '9', '10', '11', '12', '30']);
-                } else if ($classify != 'GOODS' && empty($categoryId)) {
+                } else if ($classify == 'RECHARGE' && empty($categoryId)) {
+                    $query->where('goods_status', 'ON');
+                    $query->where('goods_classify', $classify);
+                }  else if ($classify != 'GOODS' && empty($categoryId)) {
                     $query->where('goods_classify', $classify);
                 }
             })->when(!empty($type), function ($query) use ($type) {