| xqd
@@ -2395,8 +2395,9 @@ class AlbumController extends Controller
|
|
|
$end= date('Y-m-d H:i:s',$end);
|
|
|
$start= date('Y-m-d H:i:s',$start);
|
|
|
if($userAuth->is_dealer!=1) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户不是经销商!', $validator->messages());
|
|
|
+ dd(111);
|
|
|
$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();
|
|
|
$arr = array();
|
|
|
foreach ($res as $key=>$val){
|
|
|
$detail = json_decode($val['detail'],true);
|