正在显示
1 个修改的文件
包含
4 行增加
和
5 行删除
| @@ -53,11 +53,11 @@ class Yesterday extends Command | @@ -53,11 +53,11 @@ class Yesterday extends Command | ||
| 53 | //询盘国家统计 | 53 | //询盘国家统计 |
| 54 | $countryData = $inquiry_list['data']['data']; | 54 | $countryData = $inquiry_list['data']['data']; |
| 55 | $countryArr = []; | 55 | $countryArr = []; |
| 56 | - foreach ($countryData as $v){ | ||
| 57 | - if(isset($arr[$v['country']])){ | ||
| 58 | - $countryArr[$v['country']]++; | 56 | + foreach ($countryData as $v1){ |
| 57 | + if(isset($arr[$v1['country']])){ | ||
| 58 | + $countryArr[$v1['country']]++; | ||
| 59 | }else{ | 59 | }else{ |
| 60 | - $countryArr[$v['country']] = 0; | 60 | + $countryArr[$v1['country']] = 0; |
| 61 | } | 61 | } |
| 62 | } | 62 | } |
| 63 | arsort($countryArr); | 63 | arsort($countryArr); |
| @@ -71,7 +71,6 @@ class Yesterday extends Command | @@ -71,7 +71,6 @@ class Yesterday extends Command | ||
| 71 | }else{ | 71 | }else{ |
| 72 | $arr['compliance_day'] = $rank_info->compliance_day; | 72 | $arr['compliance_day'] = $rank_info->compliance_day; |
| 73 | } | 73 | } |
| 74 | - echo 'error '.json_encode($v); | ||
| 75 | $arr['service_day'] = $v['service_duration'] - Common::getDaysToTargetDate($v['created_at']); | 74 | $arr['service_day'] = $v['service_duration'] - Common::getDaysToTargetDate($v['created_at']); |
| 76 | $arr['project_id'] = $v['project_id']; | 75 | $arr['project_id'] = $v['project_id']; |
| 77 | $arr['created_at'] = date('Y-m-d H:i:s'); | 76 | $arr['created_at'] = date('Y-m-d H:i:s'); |
-
请 注册 或 登录 后发表评论