This commit is contained in:
2021-03-23 18:23:45 +08:00
parent 4e1020e05a
commit c3a89d4ddd
2 changed files with 8 additions and 7 deletions
+1 -4
View File
@@ -53,10 +53,7 @@ class Client extends Component
return $this->addError($this->client->errMsg . '(' . $this->client->errCode . ')');
}
$response = $this->client->recv();
$this->client->close();
if (is_bool($unpack = Json::decode($response))) {
if (is_bool($unpack = Json::decode($this->client->recv()))) {
return $this->addError('Service return data format error(500)');
}
return $unpack;