作者 lyh

gx脚本demo

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