|
$user_agent = AlbumAgentModel::where('user_id',$userAuth->id)->first();
|
|
$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();
|
|
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();
|
|
$cat = AlbumCatModel::where([['store_id',$store_id],['id',$goods->cat_id]])->first();
|
|
$cat = AlbumCatModel::where([['store_id',$store_id],['id',$goods->cat_id]])->first();
|