|
...
|
...
|
@@ -77,9 +77,7 @@ class MonthAllCount extends Command |
|
|
|
->groupBy('month')->get()->toArray();
|
|
|
|
foreach ($list as $k=>$v){
|
|
|
|
$v = (array)$v;
|
|
|
|
if($v['month'] == date('Y-m')){
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$arr = [];
|
|
|
|
$monthCountModel = new MonthCount();
|
|
|
|
$info = $monthCountModel->read(['month'=>$v['month'],'project_id'=>$project_id]);
|
|
|
|
// 获取当月开始时间
|
|
...
|
...
|
@@ -88,7 +86,7 @@ class MonthAllCount extends Command |
|
|
|
$end = date('Y-m-t', strtotime($v['month']));
|
|
|
|
$arr['project_id'] = $project_id;
|
|
|
|
$res = $this->inquiry($url,$v['month']);
|
|
|
|
$arr['total'] = 0;
|
|
|
|
|
|
|
|
if(isset($res['data']['count'])){
|
|
|
|
echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
|
|
|
|
$arr['month_total'] = $res['data']['count'];
|
...
|
...
|
|