作者 lyh

gx脚本

@@ -109,7 +109,7 @@ class MonthCount extends Command @@ -109,7 +109,7 @@ class MonthCount extends Command
109 $end = date('Y-m-t', strtotime($v['month'])); 109 $end = date('Y-m-t', strtotime($v['month']));
110 $arr['project_id'] = $project_id; 110 $arr['project_id'] = $project_id;
111 $res = $this->inquiry($url,$v['month']); 111 $res = $this->inquiry($url,$v['month']);
112 -// $arr['month_total'] = 0; 112 + $arr['total'] = $arr['month_total'] = 0;
113 if(isset($res['data']['count'])){ 113 if(isset($res['data']['count'])){
114 echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL; 114 echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
115 $arr['month_total'] = $res['data']['count']; 115 $arr['month_total'] = $res['data']['count'];