|
...
|
...
|
@@ -77,7 +77,7 @@ class UpgradeProjectCount 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;
|
|
|
|
// echo date('Y-m-d H:i:s') . '数据:'.json_encode($arr) . PHP_EOL;
|
|
|
|
$monthCountModel->insert($arr);
|
|
|
|
}else{
|
|
|
|
$monthCountModel->edit($arr,['id'=>$info['id']]);
|
|
...
|
...
|
@@ -154,7 +154,7 @@ class UpgradeProjectCount extends Command |
|
|
|
$token = md5($url.date("Y-m-d"));
|
|
|
|
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?domain='.$url.'&token='.$token.'&source=1,2,3,4&model=month&sta_date='.$month;
|
|
|
|
$res = http_get($url,['charset=utf-8']);
|
|
|
|
// echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
|
|
|
|
echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|