| xqd
@@ -2484,9 +2484,10 @@ class AlbumController extends Controller
|
|
|
} else {
|
|
|
|
|
|
$record = AlbumWatchRecord::where([['agent_id',$user_agent->id],['action',8],['store_id',$data['store_id']]])->get();
|
|
|
- dd($record);
|
|
|
+
|
|
|
foreach ($record as $key=>$val){
|
|
|
$goods = AlbumProductModel::where([['store_id',$data['store_id'].['id',$val->detail]]])->first();
|
|
|
+ dd($goods);
|
|
|
$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();
|
|
|
$user = AlbumUserModel::where([['open_id',$val->open_id],['store_id',$data['store_id']]])->first();
|