作者 lyh

gx

@@ -77,7 +77,7 @@ class UpgradeProjectCount extends Command @@ -77,7 +77,7 @@ class UpgradeProjectCount extends Command
77 $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month")); 77 $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));
78 $arr['created_at'] = $firstDayOfNextMonth; 78 $arr['created_at'] = $firstDayOfNextMonth;
79 $arr['updated_at'] = $firstDayOfNextMonth; 79 $arr['updated_at'] = $firstDayOfNextMonth;
80 - echo date('Y-m-d H:i:s') . '数据:'.json_encode($arr) . PHP_EOL; 80 +// echo date('Y-m-d H:i:s') . '数据:'.json_encode($arr) . PHP_EOL;
81 $monthCountModel->insert($arr); 81 $monthCountModel->insert($arr);
82 }else{ 82 }else{
83 $monthCountModel->edit($arr,['id'=>$info['id']]); 83 $monthCountModel->edit($arr,['id'=>$info['id']]);
@@ -154,7 +154,7 @@ class UpgradeProjectCount extends Command @@ -154,7 +154,7 @@ class UpgradeProjectCount extends Command
154 $token = md5($url.date("Y-m-d")); 154 $token = md5($url.date("Y-m-d"));
155 $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; 155 $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;
156 $res = http_get($url,['charset=utf-8']); 156 $res = http_get($url,['charset=utf-8']);
157 -// echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL; 157 + echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
158 return $res; 158 return $res;
159 } 159 }
160 160