作者 lyh

gx

... ... @@ -53,11 +53,11 @@ class Yesterday extends Command
//询盘国家统计
$countryData = $inquiry_list['data']['data'];
$countryArr = [];
foreach ($countryData as $v){
if(isset($arr[$v['country']])){
$countryArr[$v['country']]++;
foreach ($countryData as $v1){
if(isset($arr[$v1['country']])){
$countryArr[$v1['country']]++;
}else{
$countryArr[$v['country']] = 0;
$countryArr[$v1['country']] = 0;
}
}
arsort($countryArr);
... ... @@ -71,7 +71,6 @@ class Yesterday extends Command
}else{
$arr['compliance_day'] = $rank_info->compliance_day;
}
echo 'error '.json_encode($v);
$arr['service_day'] = $v['service_duration'] - Common::getDaysToTargetDate($v['created_at']);
$arr['project_id'] = $v['project_id'];
$arr['created_at'] = date('Y-m-d H:i:s');
... ...