소스 검색

feat: 接口调整

xiansin 2 년 전
부모
커밋
aab2140457
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server/app/Http/Controllers/V1/ProductController.php

+ 1 - 1
server/app/Http/Controllers/V1/ProductController.php

xqd
@@ -49,7 +49,7 @@ class ProductController extends Controller
         $ids = request()->input('ids','');
         $offset = ($page - 1) * $limit;
 
-        $ids = explode(",",$ids);
+        $ids = array_filter(explode(",",$ids));
 
 
         $lists = Product::withCount(['viewer'])->where('is_opened', 1)