Explorar el Código

feat: 接口调整

xiansin hace 2 años
padre
commit
aab2140457
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)