|
@@ -49,7 +49,7 @@ class ProductController extends Controller
|
|
$ids = request()->input('ids','');
|
|
$ids = request()->input('ids','');
|
|
$offset = ($page - 1) * $limit;
|
|
$offset = ($page - 1) * $limit;
|
|
|
|
|
|
- $ids = explode(",",$ids);
|
|
|
|
|
|
+ $ids = array_filter(explode(",",$ids));
|
|
|
|
|
|
|
|
|
|
$lists = Product::withCount(['viewer'])->where('is_opened', 1)
|
|
$lists = Product::withCount(['viewer'])->where('is_opened', 1)
|