正在显示
3 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -100,8 +100,8 @@ class MonthAllCount extends Command | @@ -100,8 +100,8 @@ class MonthAllCount extends Command | ||
| 100 | $arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0); | 100 | $arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0); |
| 101 | } | 101 | } |
| 102 | $country = []; | 102 | $country = []; |
| 103 | - if(isset($res['data']['country'])){ | ||
| 104 | - $country = $res['data']['country']; | 103 | + if(isset($res['data']['data'])){ |
| 104 | + $country = $res['data']['data']; | ||
| 105 | } | 105 | } |
| 106 | $countryData = InquiryFormData::getCountryCount([$start.' 00:00:00',$end.' 00:00:00']); | 106 | $countryData = InquiryFormData::getCountryCount([$start.' 00:00:00',$end.' 00:00:00']); |
| 107 | foreach ($countryData as $v1){ | 107 | foreach ($countryData as $v1){ |
| @@ -124,8 +124,8 @@ class MonthCount extends Command | @@ -124,8 +124,8 @@ class MonthCount extends Command | ||
| 124 | $arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0); | 124 | $arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0); |
| 125 | } | 125 | } |
| 126 | $country = []; | 126 | $country = []; |
| 127 | - if(isset($res['data']['country'])){ | ||
| 128 | - $country = $res['data']['country']; | 127 | + if(isset($res['data']['data'])){ |
| 128 | + $country = $res['data']['data']; | ||
| 129 | } | 129 | } |
| 130 | $countryData = InquiryFormData::getCountryCount([$start.' 00:00:00',$end.' 00:00:00']); | 130 | $countryData = InquiryFormData::getCountryCount([$start.' 00:00:00',$end.' 00:00:00']); |
| 131 | foreach ($countryData as $v1){ | 131 | foreach ($countryData as $v1){ |
| @@ -99,8 +99,8 @@ class MonthProjectCount extends Command | @@ -99,8 +99,8 @@ class MonthProjectCount extends Command | ||
| 99 | } | 99 | } |
| 100 | echo date('Y-m-d H:i:s') . '加上其他询盘:'.$arr['total'] . PHP_EOL; | 100 | echo date('Y-m-d H:i:s') . '加上其他询盘:'.$arr['total'] . PHP_EOL; |
| 101 | $country = []; | 101 | $country = []; |
| 102 | - if(isset($res['data']['country'])){ | ||
| 103 | - $country = $res['data']['country']; | 102 | + if(isset($res['data']['data'])){ |
| 103 | + $country = $res['data']['data']; | ||
| 104 | } | 104 | } |
| 105 | $countryData = InquiryFormData::getCountryCount([$start.' 00:00:00',$end.' 00:00:00']); | 105 | $countryData = InquiryFormData::getCountryCount([$start.' 00:00:00',$end.' 00:00:00']); |
| 106 | foreach ($countryData as $v1){ | 106 | foreach ($countryData as $v1){ |
-
请 注册 或 登录 后发表评论