作者 lyh

gx脚本

@@ -86,7 +86,7 @@ class MonthAllCount extends Command @@ -86,7 +86,7 @@ class MonthAllCount extends Command
86 $end = date('Y-m-t', strtotime($v['month'])); 86 $end = date('Y-m-t', strtotime($v['month']));
87 $arr['project_id'] = $project_id; 87 $arr['project_id'] = $project_id;
88 $res = $this->inquiry($url,$v['month']); 88 $res = $this->inquiry($url,$v['month']);
89 - 89 + $arr['total'] = $arr['month_total'] = 0;
90 if(isset($res['data']['count'])){ 90 if(isset($res['data']['count'])){
91 echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL; 91 echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
92 $arr['month_total'] = $res['data']['count']; 92 $arr['month_total'] = $res['data']['count'];
@@ -75,7 +75,7 @@ class MonthProjectCount extends Command @@ -75,7 +75,7 @@ class MonthProjectCount extends Command
75 $end = date('Y-m-t', strtotime($v['month'])); 75 $end = date('Y-m-t', strtotime($v['month']));
76 $arr['project_id'] = $project_id; 76 $arr['project_id'] = $project_id;
77 $res = $this->inquiry($url,$v['month']); 77 $res = $this->inquiry($url,$v['month']);
78 -// $arr['month_total'] = 0; 78 + $arr['total'] = $arr['month_total'] = 0;
79 if(isset($res['data']['count'])){ 79 if(isset($res['data']['count'])){
80 echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL; 80 echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
81 $arr['month_total'] = $res['data']['count']; 81 $arr['month_total'] = $res['data']['count'];