|
@@ -2245,6 +2245,7 @@ class AlbumController extends Controller
|
|
$res = AlbumFavoriteModel::whereIn('user_id',$users)->where([['store_id',$store_id]])->groupBy('product_id')->get(['product_id'])->toArray();
|
|
$res = AlbumFavoriteModel::whereIn('user_id',$users)->where([['store_id',$store_id]])->groupBy('product_id')->get(['product_id'])->toArray();
|
|
foreach($res as $key=>$val){
|
|
foreach($res as $key=>$val){
|
|
$goods = AlbumProductModel::where([['id',$val['product_id']],['store_id',$store_id]])->get();
|
|
$goods = AlbumProductModel::where([['id',$val['product_id']],['store_id',$store_id]])->get();
|
|
|
|
+ dd($goods);
|
|
if(!$goods){
|
|
if(!$goods){
|
|
unset($res[$key]);continue;
|
|
unset($res[$key]);continue;
|
|
}
|
|
}
|