cqp 1 miesiąc temu
rodzic
commit
c6b49d9970
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Service/ProductService.php

+ 1 - 1
app/Service/ProductService.php

@@ -250,7 +250,7 @@ class ProductService extends Service
             DB::beginTransaction();
             $time = time();
 
-            Product::where('del_time',0)->where('id',$data['id'])->update(['del_time' => $time]);
+            Product::where('del_time',0)->whereIn('id',$data['id'])->update(['del_time' => $time]);
 
             DB::commit();
         }catch (\Exception $exception){