elf 1 year ago
parent 248d9c15cc
commit 4194e37197

@ -544,7 +544,6 @@ class Baofu
$result = Rsa::decryptByPublicKey($response, $this->getCerFilePath()); $result = Rsa::decryptByPublicKey($response, $this->getCerFilePath());
echo $result; echo $result;
echo PHP_EOL; echo PHP_EOL;
$result = base64_decode($result);
$result = json_decode($result, true); $result = json_decode($result, true);
if ($result['header']['sysRespCode'] == 'S_0000' && $result['body']['transHeader']['returnCode'] == '0000') { if ($result['header']['sysRespCode'] == 'S_0000' && $result['body']['transHeader']['returnCode'] == '0000') {
return $result['body']['transContent']; return $result['body']['transContent'];

Loading…
Cancel
Save