作者 lyh

gx

... ... @@ -37,9 +37,9 @@ class InquiryMonthlyCount extends Command
$deployModel = new DeployBuild();
$list = $deployModel->list();
// 获取上个月的开始时间
$startTime = Carbon::now()->subMonth()->startOfMonth()->toDateString();
$startTime = Carbon::now()->subMonth()->startOfMonth();
// 获取上个月的结束时间
$endTime = Carbon::now()->subMonth()->endOfMonth()->toDateString();
$endTime = Carbon::now()->subMonth()->endOfMonth();
foreach ($list as $value){
//按月统计询盘记录
$this->inquiryCount($startTime,$endTime,$value['test_domain'],$value['project_id']);
... ... @@ -56,7 +56,7 @@ class InquiryMonthlyCount extends Command
* @method :post
* @time :2023/6/30 14:29
*/
public function inquiryCount($startTime,$endTime,$domain,$project_id){
public function inquiryCount(&$startTime,&$endTime,$domain,$project_id){
//TODO::上线后注释
$domain = 'https://demomark.globalso.com/';
$arr = [];
... ... @@ -97,7 +97,7 @@ class InquiryMonthlyCount extends Command
* @method :post
* @time :2023/6/30 14:31
*/
public function flowCount(&$arr,$startTime,$endTime,$project_id){
public function flowCount(&$arr,&$startTime,&$endTime,$project_id){
$pv_ip = DB::table('gl_count')
->where(['project_id'=>$project_id])
->where('date','>=',$startTime->toDateString().' 00:00:00')
... ...