作者 lyh

gx脚本demo

@@ -83,7 +83,6 @@ class MonthProjectCount extends Command @@ -83,7 +83,6 @@ class MonthProjectCount extends Command
83 $res = (new FormGlobalsoApi())->getMonthInquiry($url,$v); 83 $res = (new FormGlobalsoApi())->getMonthInquiry($url,$v);
84 echo date('Y-m-d H:i:s') . '月份:'.$v. PHP_EOL; 84 echo date('Y-m-d H:i:s') . '月份:'.$v. PHP_EOL;
85 $arr['total'] = $arr['month_total'] = 0; 85 $arr['total'] = $arr['month_total'] = 0;
86 - echo date('Y-m-d H:i:s') . '返回值:'.json_encode($res) . PHP_EOL;  
87 if(isset($res['data']['count'])){ 86 if(isset($res['data']['count'])){
88 $arr['month_total'] = $res['data']['count'] + InquiryFormData::getCount([$start.' 00:00:00',$end.' 00:00:00']); 87 $arr['month_total'] = $res['data']['count'] + InquiryFormData::getCount([$start.' 00:00:00',$end.' 00:00:00']);
89 } 88 }