改名
This commit is contained in:
+3
-1
@@ -52,10 +52,12 @@ class Client extends Component
|
|||||||
if ($isSend === false) {
|
if ($isSend === false) {
|
||||||
return $this->addError($this->client->errMsg . '(' . $this->client->errCode . ')');
|
return $this->addError($this->client->errMsg . '(' . $this->client->errCode . ')');
|
||||||
}
|
}
|
||||||
|
defer(function () {
|
||||||
|
$this->clientRecover();
|
||||||
|
});
|
||||||
if (is_bool($unpack = Json::decode($this->client->recv()))) {
|
if (is_bool($unpack = Json::decode($this->client->recv()))) {
|
||||||
$unpack = $this->addError('Service return data format error(500)');
|
$unpack = $this->addError('Service return data format error(500)');
|
||||||
}
|
}
|
||||||
$this->clientRecover();
|
|
||||||
return $unpack;
|
return $unpack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user