作者 lyh

gx

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