正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -62,9 +62,8 @@ class MonthCountLogic extends BaseLogic | @@ -62,9 +62,8 @@ class MonthCountLogic extends BaseLogic | ||
| 62 | * @time :2023/6/30 14:29 | 62 | * @time :2023/6/30 14:29 |
| 63 | */ | 63 | */ |
| 64 | public function inquiryCount(&$arr,&$startTime,&$endTime,$domain){ | 64 | public function inquiryCount(&$arr,&$startTime,&$endTime,$domain){ |
| 65 | - //TODO::上线后注释 | ||
| 66 | -// $domain = 'https://demomark.globalso.com/'; | ||
| 67 | $inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000); | 65 | $inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000); |
| 66 | + if(!empty($inquiry_list)){ | ||
| 68 | //总数 | 67 | //总数 |
| 69 | $arr['total'] = $inquiry_list['data']['total'] ?? 0; | 68 | $arr['total'] = $inquiry_list['data']['total'] ?? 0; |
| 70 | //数据详情 | 69 | //数据详情 |
| @@ -84,6 +83,7 @@ class MonthCountLogic extends BaseLogic | @@ -84,6 +83,7 @@ class MonthCountLogic extends BaseLogic | ||
| 84 | arsort($countryArr); | 83 | arsort($countryArr); |
| 85 | $top20 = array_slice($countryArr, 0, 15, true); | 84 | $top20 = array_slice($countryArr, 0, 15, true); |
| 86 | $arr['country'] = $top20; | 85 | $arr['country'] = $top20; |
| 86 | + } | ||
| 87 | return $arr; | 87 | return $arr; |
| 88 | } | 88 | } |
| 89 | 89 |
-
请 注册 或 登录 后发表评论