作者 lyh

gx

@@ -50,10 +50,10 @@ class Count extends Command @@ -50,10 +50,10 @@ class Count extends Command
50 try { 50 try {
51 if(!empty($list)){ 51 if(!empty($list)){
52 $list = $list->toArray(); 52 $list = $list->toArray();
53 - $data = [];  
54 $yesterday = Carbon::yesterday()->toDateString(); 53 $yesterday = Carbon::yesterday()->toDateString();
55 $domainInfo = new DomainInfo(); 54 $domainInfo = new DomainInfo();
56 foreach ($list as $v){ 55 foreach ($list as $v){
  56 + echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
57 $v = (array)$v; 57 $v = (array)$v;
58 if($v['type'] == Project::TYPE_ZERO){ 58 if($v['type'] == Project::TYPE_ZERO){
59 continue; 59 continue;
@@ -84,7 +84,7 @@ class Count extends Command @@ -84,7 +84,7 @@ class Count extends Command
84 //询盘统计 84 //询盘统计
85 $arr = $this->inquiry($arr,$v['test_domain'], $v['id']); 85 $arr = $this->inquiry($arr,$v['test_domain'], $v['id']);
86 if($arr === false){ 86 if($arr === false){
87 - $data[] = $v['test_domain']; 87 + continue;
88 } 88 }
89 //查询当天数据是否存在 存在则更新 89 //查询当天数据是否存在 存在则更新
90 $countModel = new \App\Models\HomeCount\Count(); 90 $countModel = new \App\Models\HomeCount\Count();