add https verify false

This commit is contained in:
Jaeger 2017-12-14 10:31:47 +08:00
parent 72a7543da3
commit 03e6a955bf

View File

@ -27,7 +27,8 @@ class HttpService
public static function get(QueryList $ql,$url,$args = null,$otherArgs = []) public static function get(QueryList $ql,$url,$args = null,$otherArgs = [])
{ {
$otherArgs = array_merge([ $otherArgs = array_merge([
'cookies' => self::getCookieJar() 'cookies' => self::getCookieJar(),
'verify' => false
],$otherArgs); ],$otherArgs);
$html = GHttp::get($url,$args,$otherArgs); $html = GHttp::get($url,$args,$otherArgs);
$ql->setHtml($html); $ql->setHtml($html);
@ -37,7 +38,8 @@ class HttpService
public static function post(QueryList $ql,$url,$args = null,$otherArgs = []) public static function post(QueryList $ql,$url,$args = null,$otherArgs = [])
{ {
$otherArgs = array_merge([ $otherArgs = array_merge([
'cookies' => self::getCookieJar() 'cookies' => self::getCookieJar(),
'verify' => false
],$otherArgs); ],$otherArgs);
$html = GHttp::post($url,$args,$otherArgs); $html = GHttp::post($url,$args,$otherArgs);
$ql->setHtml($html); $ql->setHtml($html);