正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -143,7 +143,9 @@ class DownloadProject extends Command | @@ -143,7 +143,9 @@ class DownloadProject extends Command | ||
| 143 | 143 | ||
| 144 | public function downloadItem($filed = ['id','depth','created_at','referrer_url','url','device_port','country','ip']){ | 144 | public function downloadItem($filed = ['id','depth','created_at','referrer_url','url','device_port','country','ip']){ |
| 145 | $visitModel = new Visit(); | 145 | $visitModel = new Visit(); |
| 146 | - $lists = $visitModel->list(['updated_date'=>['between',['025-02-01','2025-02-31']]]); | 146 | + $page = 1; |
| 147 | + $pageSize = 3000; | ||
| 148 | + $lists = $visitModel->lists(['updated_date'=>['between',['2025-02-01','2025-02-31']]],$page,$pageSize,'id',$filed); | ||
| 147 | foreach ($lists as $v){ | 149 | foreach ($lists as $v){ |
| 148 | $customer_visit_id[] = $v['id']; | 150 | $customer_visit_id[] = $v['id']; |
| 149 | } | 151 | } |
| @@ -159,6 +161,6 @@ class DownloadProject extends Command | @@ -159,6 +161,6 @@ class DownloadProject extends Command | ||
| 159 | $value['sub'] = $sub; | 161 | $value['sub'] = $sub; |
| 160 | $lists[$key] = $value; | 162 | $lists[$key] = $value; |
| 161 | } | 163 | } |
| 162 | - return $this->success($lists); | 164 | + return $lists; |
| 163 | } | 165 | } |
| 164 | } | 166 | } |
-
请 注册 或 登录 后发表评论