正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
| 9 | 9 | ||
| 10 | namespace App\Console\Commands\MonthlyCount; | 10 | namespace App\Console\Commands\MonthlyCount; |
| 11 | 11 | ||
| 12 | +use App\Helper\FormGlobalsoApi; | ||
| 12 | use App\Models\HomeCount\MonthCount; | 13 | use App\Models\HomeCount\MonthCount; |
| 13 | use App\Models\Project\Project; | 14 | use App\Models\Project\Project; |
| 14 | use App\Models\Visit\Visit; | 15 | use App\Models\Visit\Visit; |
| @@ -59,7 +60,9 @@ class UpgradeProjectCount extends Command | @@ -59,7 +60,9 @@ class UpgradeProjectCount extends Command | ||
| 59 | // 获取当月结束时间 | 60 | // 获取当月结束时间 |
| 60 | $end = date('Y-m-t', strtotime($v['month'])); | 61 | $end = date('Y-m-t', strtotime($v['month'])); |
| 61 | $arr['project_id'] = 439; | 62 | $arr['project_id'] = 439; |
| 62 | - $arr['total'] = 70; | 63 | + $inquiry_list = (new FormGlobalsoApi())->getInquiryList('www.cnzyl.com','',1,100000000); |
| 64 | + //总数 | ||
| 65 | + $arr['total'] = $inquiry_list['data']['total'] ?? 0; | ||
| 63 | $arr['month'] = $v['month']; | 66 | $arr['month'] = $v['month']; |
| 64 | $arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}'; | 67 | $arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}'; |
| 65 | $arr = $this->pv_ip($arr,$start,$end); | 68 | $arr = $this->pv_ip($arr,$start,$end); |
-
请 注册 或 登录 后发表评论