Skip to content

Commit

Permalink
修复异常无法得到结果
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed May 21, 2020
1 parent 0dc0bd9 commit 152bd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WeChat/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function requestApi(string $endpoint, Base $bean, bool $useCert = false):
$result = is_array($result) ? $result : $this->fromXML($result);

if (!isset($result['return_code']) || $result['return_code'] != 'SUCCESS' || $result['result_code'] != 'SUCCESS') {
throw new GatewayException('Get Wechat API Error:' . ($result['return_msg'] ?? $result['retmsg']) . ($result['err_code_des'] ?? ''), 20000);
throw new GatewayException('Get Wechat API Error:' . ($result['return_msg'] ?? $result['retmsg']) . ($result['err_code_des'] ?? ''),$result,$result['return_code']);
}
if (strpos($endpoint, 'mmpaymkttransfers') !== false || $this->generateSign($result) === $result['sign']) {
return new SplArray($result);
Expand Down

0 comments on commit 152bd31

Please sign in to comment.