正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -146,6 +146,7 @@ class WebTraffic extends Command | @@ -146,6 +146,7 @@ class WebTraffic extends Command | ||
| 146 | */ | 146 | */ |
| 147 | public function handle() | 147 | public function handle() |
| 148 | { | 148 | { |
| 149 | + try { | ||
| 149 | $type = $this->argument('type'); | 150 | $type = $this->argument('type'); |
| 150 | 151 | ||
| 151 | $this->sleep($type); | 152 | $this->sleep($type); |
| @@ -205,6 +206,9 @@ class WebTraffic extends Command | @@ -205,6 +206,9 @@ class WebTraffic extends Command | ||
| 205 | 206 | ||
| 206 | $page++; | 207 | $page++; |
| 207 | } | 208 | } |
| 209 | + }catch (\Exception $e){ | ||
| 210 | + Log::channel('traffic')->error($e->getMessage()); | ||
| 211 | + } | ||
| 208 | } | 212 | } |
| 209 | 213 | ||
| 210 | /** | 214 | /** |
-
请 注册 或 登录 后发表评论