作者 lyh

gx

@@ -67,8 +67,9 @@ class UpgradeProjectCount extends Command @@ -67,8 +67,9 @@ class UpgradeProjectCount extends Command
67 $end = date('Y-m-t', strtotime($v['month'])); 67 $end = date('Y-m-t', strtotime($v['month']));
68 $arr['project_id'] = $project_id; 68 $arr['project_id'] = $project_id;
69 $res = $this->inquiry($url,$v['month']); 69 $res = $this->inquiry($url,$v['month']);
70 - $arr['month_total'] = 0; 70 +// $arr['month_total'] = 0;
71 if(isset($res['data']['count'])){ 71 if(isset($res['data']['count'])){
  72 + echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
72 $arr['month_total'] = $res['data']['count']; 73 $arr['month_total'] = $res['data']['count'];
73 //获取上一个的count 74 //获取上一个的count
74 $previousMonth = date('Y-m', strtotime($v['month'] . ' -1 month')); 75 $previousMonth = date('Y-m', strtotime($v['month'] . ' -1 month'));