|
@@ -2485,8 +2485,8 @@ class AlbumController extends Controller
|
|
|
|
|
|
$record = AlbumWatchRecord::where([['agent_id',$user_agent->id],['action',8],['store_id',$data['store_id']]])->get();
|
|
$record = AlbumWatchRecord::where([['agent_id',$user_agent->id],['action',8],['store_id',$data['store_id']]])->get();
|
|
|
|
|
|
- foreach ($record as $key=>$val){dd($val['detail']);
|
|
|
|
- $goods = AlbumProductModel::where([['store_id',$data['store_id'].['id',$val['detail']]]])->first();
|
|
|
|
|
|
+ foreach ($record as $key=>$val){
|
|
|
|
+ $goods = AlbumProductModel::where([['store_id',$data['store_id']],['id',$val['detail']]])->first();
|
|
|
|
|
|
$style = AlbumProductStyleModel::where([['store_id',$data['store_id'].['id',$goods->style]]])->first();
|
|
$style = AlbumProductStyleModel::where([['store_id',$data['store_id'].['id',$goods->style]]])->first();
|
|
$cat = AlbumCatModel::where([['store_id',$data['store_id'].['id',$goods->cat_id]]])->first();
|
|
$cat = AlbumCatModel::where([['store_id',$data['store_id'].['id',$goods->cat_id]]])->first();
|