黄宗昌 2 tahun lalu
induk
melakukan
b05a3da594
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      app/Http/Controllers/V1/UserFolderController.php

+ 1 - 0
app/Http/Controllers/V1/UserFolderController.php

xqd
@@ -120,6 +120,7 @@ class UserFolderController extends Controller
         if(empty($params['product_ids'])){
             return $this->error("文件ID");
         }
+        $params['product_ids'] = explode(',',$params['product_ids']);
         DB::beginTransaction();
         try {
             $product = Product::query()->whereIn('id',$params['product_ids'])->select("id","image")->get();