This commit is contained in:
2021-03-23 16:56:53 +08:00
parent d0a80d7b62
commit c506bbcb8b
+5 -1
View File
@@ -51,7 +51,11 @@ class Client extends Component
if ($isSend === false) {
return $this->addError($this->client->errMsg . '(' . $this->client->errCode . ')');
}
return unserialize($this->client->recv());
if (is_bool($unpack = unserialize($this->client->recv()))) {
return $this->addError('Service return data format error(500)');
}
return $unpack;
}