| xqd
@@ -2132,7 +2132,9 @@ class AlbumController extends Controller
|
|
|
$goods_id = $detail['goods_id'];
|
|
|
$goods = AlbumProductModel::where([['id',$goods_id]])->first();
|
|
|
if($goods){
|
|
|
- $count= AlbumWatchRecord::where([['action',3],['store_id',$store_id],['detail',$val['detail'],['agent_id',$user_agent->id]]])->count();
|
|
|
+ $count= AlbumWatchRecord::where([['action',3],['store_id',$store_id],['detail',$val['detail']],['agent_id',$user_agent->id]])->count();
|
|
|
+ $add = AlbumWatchRecord::where([['action',3],['store_id',$store_id],['detail',$val['detail']],['agent_id',$user_agent->id]])->get();
|
|
|
+ dd($add);
|
|
|
$arr[] = ['name'=>$goods->name,'count'=>$count];
|
|
|
}
|
|
|
}
|