Commit d3fa3676 authored by hj's avatar hj

更新提交

parent 48fbef94
...@@ -12,8 +12,9 @@ trait HttpClientHelpers ...@@ -12,8 +12,9 @@ trait HttpClientHelpers
{ {
$options = []; $options = [];
$options['headers']['User-Agent'] = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.71 Safari/537.1 LBBROWSER'; $options['headers']['User-Agent'] = $this->randomUserAgent();//'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.71 Safari/537.1 LBBROWSER';
$options['debug'] = env('API_DEBUG'); $options['debug'] = env('API_DEBUG');
$options['timeout'] = 60;
return $options; return $options;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment