Skip to content

Commit

Permalink
UPDATE msg base64解码
Browse files Browse the repository at this point in the history
  • Loading branch information
DQ committed Aug 26, 2020
1 parent a367735 commit 7284ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/DataTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function xml2array($xml) {
throw new InvalidResponseException('invalid response.', 0);
}
if (isset($rs['returnStateInfo']['returnCode']) && $rs['returnStateInfo']['returnCode'] != Core::RETURN_SUCC) {
throw new InvalidResponseException(is_string($rs['returnStateInfo']['returnMessage']) ? $rs['returnStateInfo']['returnMessage'] : null, $rs['returnStateInfo']['returnCode']);
throw new InvalidResponseException(is_string($rs['returnStateInfo']['returnMessage']) ? base64_decode($rs['returnStateInfo']['returnMessage']) : null, $rs['returnStateInfo']['returnCode']);
}
return $rs;
}
Expand Down

0 comments on commit 7284ab6

Please sign in to comment.