feat: 增加绑定手机号用户统计逻辑
This commit is contained in:
parent
73268df33d
commit
77e14921a1
|
@ -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);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue