正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -37,9 +37,9 @@ class InquiryMonthlyCount extends Command | @@ -37,9 +37,9 @@ class InquiryMonthlyCount extends Command | ||
| 37 | $deployModel = new DeployBuild(); | 37 | $deployModel = new DeployBuild(); |
| 38 | $list = $deployModel->list(); | 38 | $list = $deployModel->list(); |
| 39 | // 获取上个月的开始时间 | 39 | // 获取上个月的开始时间 |
| 40 | - $startTime = Carbon::now()->subMonth()->startOfMonth()->toDateString(); | 40 | + $startTime = Carbon::now()->subMonth()->startOfMonth(); |
| 41 | // 获取上个月的结束时间 | 41 | // 获取上个月的结束时间 |
| 42 | - $endTime = Carbon::now()->subMonth()->endOfMonth()->toDateString(); | 42 | + $endTime = Carbon::now()->subMonth()->endOfMonth(); |
| 43 | foreach ($list as $value){ | 43 | foreach ($list as $value){ |
| 44 | //按月统计询盘记录 | 44 | //按月统计询盘记录 |
| 45 | $this->inquiryCount($startTime,$endTime,$value['test_domain'],$value['project_id']); | 45 | $this->inquiryCount($startTime,$endTime,$value['test_domain'],$value['project_id']); |
| @@ -56,7 +56,7 @@ class InquiryMonthlyCount extends Command | @@ -56,7 +56,7 @@ class InquiryMonthlyCount extends Command | ||
| 56 | * @method :post | 56 | * @method :post |
| 57 | * @time :2023/6/30 14:29 | 57 | * @time :2023/6/30 14:29 |
| 58 | */ | 58 | */ |
| 59 | - public function inquiryCount($startTime,$endTime,$domain,$project_id){ | 59 | + public function inquiryCount(&$startTime,&$endTime,$domain,$project_id){ |
| 60 | //TODO::上线后注释 | 60 | //TODO::上线后注释 |
| 61 | $domain = 'https://demomark.globalso.com/'; | 61 | $domain = 'https://demomark.globalso.com/'; |
| 62 | $arr = []; | 62 | $arr = []; |
| @@ -97,7 +97,7 @@ class InquiryMonthlyCount extends Command | @@ -97,7 +97,7 @@ class InquiryMonthlyCount extends Command | ||
| 97 | * @method :post | 97 | * @method :post |
| 98 | * @time :2023/6/30 14:31 | 98 | * @time :2023/6/30 14:31 |
| 99 | */ | 99 | */ |
| 100 | - public function flowCount(&$arr,$startTime,$endTime,$project_id){ | 100 | + public function flowCount(&$arr,&$startTime,&$endTime,$project_id){ |
| 101 | $pv_ip = DB::table('gl_count') | 101 | $pv_ip = DB::table('gl_count') |
| 102 | ->where(['project_id'=>$project_id]) | 102 | ->where(['project_id'=>$project_id]) |
| 103 | ->where('date','>=',$startTime->toDateString().' 00:00:00') | 103 | ->where('date','>=',$startTime->toDateString().' 00:00:00') |
-
请 注册 或 登录 后发表评论