作者 lyh

gx脚本demo

@@ -95,7 +95,6 @@ class MonthProjectCount extends Command @@ -95,7 +95,6 @@ class MonthProjectCount extends Command
95 }else{ 95 }else{
96 $arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0); 96 $arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0);
97 } 97 }
98 - echo date('Y-m-d H:i:s') . '加上其他询盘:'.$arr['total'] . PHP_EOL;  
99 $country = []; 98 $country = [];
100 if(isset($res['data']['data'])){ 99 if(isset($res['data']['data'])){
101 $country = $res['data']['data']; 100 $country = $res['data']['data'];
@@ -117,7 +116,6 @@ class MonthProjectCount extends Command @@ -117,7 +116,6 @@ class MonthProjectCount extends Command
117 $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month")); 116 $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));
118 $arr['created_at'] = $firstDayOfNextMonth; 117 $arr['created_at'] = $firstDayOfNextMonth;
119 $arr['updated_at'] = $firstDayOfNextMonth; 118 $arr['updated_at'] = $firstDayOfNextMonth;
120 -// echo date('Y-m-d H:i:s') . '数据:'.json_encode($arr) . PHP_EOL;  
121 $monthCountModel->insert($arr); 119 $monthCountModel->insert($arr);
122 }else{ 120 }else{
123 $monthCountModel->edit($arr,['id'=>$info['id']]); 121 $monthCountModel->edit($arr,['id'=>$info['id']]);