@@ -2398,13 +2398,13 @@ class AlbumController extends Controller
$user_agent = AlbumAgentModel::where('user_id',$userAuth->id)->first();
if($user_agent) $res = AlbumWatchRecord::where([['action',3],['store_id',$store_id],['open_id',$open_id],['agent_id',$user_agent->id],['updated_at','>=',$start],['updated_at','<=',$end]])->orderByDesc('id')->get(['detail','created_at'])->toArray();
- dd(111);
+
$arr = array();
foreach ($res as $key=>$val){
$detail = json_decode($val['detail'],true);
//dd($detail);die;
$goods_id = $detail['goods_id'];
- $goods = AlbumProductModel::where([['id',$goods_id]])->first();
+ $goods = AlbumProductModel::where([['id',$goods_id]])->first(); dd(111);
if($goods){
$cat = AlbumCatModel::where([['store_id',$store_id],['id',$goods->cat_id]])->first();
if (isset($arr[date('Y-m-d H:i', strtotime($val['created_at']))])) {