作者 赵彬吉

update

@@ -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 /**