Commit 3ff1e893 by 庄欣

close curl

parent 319bb49e
......@@ -98,6 +98,7 @@ class CurlClient
curl_setopt($http, CURLOPT_POSTFIELDS, $this->data);
}
$res = curl_exec($http);
curl_close($http);
unset($http);
if ($res == false) {
throw new \Exception("服务器无反应,请稍候再试");
......
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