Browse Source

feat: 接口调整

xiansin 2 năm trước cách đây
mục cha
commit
aab2140457
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)