作者 lyh

gx

... ... @@ -52,15 +52,15 @@ class Count extends Command
$domainInfo = new DomainInfo();
foreach ($list as $v){
$v = (array)$v;
if($v['type'] == Project::TYPE_ZERO){
continue;
}
if(!empty($v['domain'])){
$info = $domainInfo->read(['id'=>$v['domain']]);
if($info !== false){
$v['test_domain'] = $info['domain'];
}
}
if($v['type'] == Project::TYPE_ZERO){
continue;
}
$arr = [];
//统计时间
$arr['date'] = $yesterday;
... ...
... ... @@ -46,10 +46,10 @@ class InquiryMonthlyCount extends Command
$endTime = Carbon::now()->subMonth()->endOfMonth()->toDateString();
$domainInfo = new DomainInfo();
foreach ($list as $value){
$value = (array)$value;
if($value['type'] == Project::TYPE_ZERO){
continue;
}
$value = (array)$value;
if(!empty($value['domain'])){
$info = $domainInfo->read(['id'=>$value['domain']]);
if($info !== false){
... ...