Skip to content

Commit

Permalink
optimize: 优化无签名时错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Jun 24, 2023
1 parent 4408ee8 commit 5b2e14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function verify_wechat_sign(ResponseInterface|ServerRequestInterface $message, a
$public = get_wechat_config($params)['wechat_public_cert_path'][$wechatSerial] ?? null;

if (empty($sign)) {
throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, '', ['headers' => $message->getHeaders(), 'body' => $body]);
throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, $body, ['headers' => $message->getHeaders(), 'body' => $body]);
}

$public = get_public_cert(
Expand Down

0 comments on commit 5b2e14a

Please sign in to comment.