Commit 818a227d authored by shajiaiming's avatar shajiaiming Committed by shajiaming

fix

parent 077f27af
...@@ -32,7 +32,11 @@ class TrusteeShipService ...@@ -32,7 +32,11 @@ class TrusteeShipService
public function send($method = 'GET', $uri, $params = []) public function send($method = 'GET', $uri, $params = [])
{ {
$ch = new Curl(); $timeout = [
'connect_timeout' => 50000,
'timeout_ms' => 40000
];
$ch = new Curl($timeout);
if (!empty($this->header)) { if (!empty($this->header)) {
$ch->setHeaders($this->header); $ch->setHeaders($this->header);
} }
......
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