|
@@ -21,7 +21,7 @@ class Test
|
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
|
|
'Content-Type: application/json; charset=utf-8', //json版本需要填写 Content-Type: application/json;
|
|
'Content-Type: application/json; charset=utf-8', //json版本需要填写 Content-Type: application/json;
|
|
|
- 'token:'.$token
|
|
|
|
|
|
|
+ 'token:'.$token,
|
|
|
]
|
|
]
|
|
|
);
|
|
);
|
|
|
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); //若果报错 name lookup timed out 报错时添加这一行代码
|
|
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); //若果报错 name lookup timed out 报错时添加这一行代码
|