We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
生成createV2Signature签名没有及时移除signType导致签名错误
public function createV2Signature(array $params): string { $method = 'md5'; $secretKey = $this->merchant->getV2SecretKey(); if (empty($secretKey)) { throw new InvalidConfigException('Missing v2 secret key.'); } if ('HMAC-SHA256' === $params['signType']) { $method = function ($str) use ($secretKey) { return hash_hmac('sha256', $str, $secretKey); }; } #源码没有这行 ,应该移除参数 unset($params['signType']); ksort($params); $params['key'] = $secretKey; // @phpstan-ignore-next-line return strtoupper((string) call_user_func_array($method, [urldecode(http_build_query($params))])); }
The text was updated successfully, but these errors were encountered:
94de802
Fixed #2721
10b9f31
感谢反馈!
Sorry, something went wrong.
No branches or pull requests
我用的环境
生成createV2Signature签名没有及时移除signType导致签名错误
The text was updated successfully, but these errors were encountered: