diff --git a/app/controller/admin/api/v1/DashboardController.php b/app/controller/admin/api/v1/DashboardController.php index 4276ec8..bdaf680 100644 --- a/app/controller/admin/api/v1/DashboardController.php +++ b/app/controller/admin/api/v1/DashboardController.php @@ -53,7 +53,7 @@ class DashboardController public function useranalysis_time(Request $request) { /** - * 登录人数 注册人数 提款人数 默认今天 + * 登录人数 注册人数 提款人数 绑定手机号用户 默认今天 */ $res = []; @@ -65,9 +65,11 @@ class DashboardController $login = User::whereBetween('login_time', [ $startOfDay, $endOfDay])->count(); $registration = User::whereBetween('created_at', [ \Carbon\Carbon::createFromTimestamp($startOfDay)->toDateTimeString(), \Carbon\Carbon::createFromTimestamp($endOfDay)->toDateTimeString()])->count(); $withdraw=Withdraw::whereBetween('createtime2', [ \Carbon\Carbon::createFromTimestamp($startOfDay)->toDateTimeString(), \Carbon\Carbon::createFromTimestamp($endOfDay)->toDateTimeString()])->count();; + $binding=UserPhone::whereBetween('created_at', [ \Carbon\Carbon::createFromTimestamp($startOfDay)->toDateTimeString(), \Carbon\Carbon::createFromTimestamp($endOfDay)->toDateTimeString()])->groupBy('user_id')->count(); $res['login']=$login; $res['registration']=$registration; $res['withdraw']=$withdraw; + $res['binding']=$binding; return ApiResponse::success(200, $res); } /**