| xqd
@@ -1052,7 +1052,8 @@ class AlbumController extends Controller
|
|
|
$checkAllstart = date('Y-m-d H:i:s',$checkAllstart);
|
|
|
$checkAllend = date('Y-m-d H:i:s',$checkAllend);
|
|
|
$count_today = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id],['updated_at','>=',$checkAllstart],['updated_at','<=',$checkAllend]])->groupBy('open_id')->count();
|
|
|
- $count_all = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->groupBy('open_id')->get();dd($count_all);
|
|
|
+ $count_list = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->groupBy('open_id')->get();
|
|
|
+ $count_all = count($count_list);
|
|
|
$count_share = $user_agent->share_times;
|
|
|
$users = Array();
|
|
|
if($count_user){
|