Commit d10758ea by 庄欣

无反应时

parent ef61a914
...@@ -119,8 +119,7 @@ class CurlClient ...@@ -119,8 +119,7 @@ class CurlClient
$curlinfo = curl_getinfo($http); $curlinfo = curl_getinfo($http);
//} //}
if ($curlinfo == false || (is_array($curlinfo) && $curlinfo['http_code'] != 200)) { if ($curlinfo == false || (is_array($curlinfo) && $curlinfo['http_code'] != 200)) {
var_dump($res); throw new \Exception("服务器无反应,请稍候再试");
throw new \Exception("返回错误");
} }
$res = json_decode($res); $res = json_decode($res);
if (json_last_error() > 0) { if (json_last_error() > 0) {
......
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