Bläddra i källkod

feat: 接口调整

xiansin 2 år sedan
förälder
incheckning
aab2140457
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)