Skip to content
New issue

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

退款通知验证有问题 #92

Open
wcj343169893 opened this issue Nov 15, 2018 · 0 comments
Open

退款通知验证有问题 #92

wcj343169893 opened this issue Nov 15, 2018 · 0 comments

Comments

@wcj343169893
Copy link

官方文档可以看出,异步通知的参数中,并没有签名参数,只需要对req_info解密即可。
但是在代码中发现
`if (isset($data['sign']) && $data['sign'] && $sign === $data['sign']) {
$responseData['sign_match'] = true;
} else {
$responseData['sign_match'] = false;
}

    if ($responseData['sign_match'] && isset($data['refund_status']) && $data['refund_status'] == 'SUCCESS') {
        $responseData['refunded'] = true;
    } else {
        $responseData['refunded'] = false;
    }`

$data['sign']是不存在的,所以在前面调用response的data,sign_match一定是false,refunded也是false
@lokielse 如果有空看看吧,现在我用的是1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant