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