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
微信支付结果通知 API 文档中说只有当 return_code (通信标识) 为 SUCCESS 时,返回信息中才有 sign 等字段,所以当 return_code (通信标识) 为 FAIL 时,下面这段代码会因为找不到 $data['sign'] 报错吧?
return_code
SUCCESS
sign
FAIL
$data['sign']
public function verify($data, $sign = null, $sync = false) { $data = $this->fromXml($data); $sign = is_null($sign) ? $data['sign'] : $sign; return $this->getSign($data) === $sign ? $data : false; }
微信文档链接 代码链接
The text was updated successfully, but these errors were encountered:
敢问通讯表示为 false 的话,连腾讯的没管这种处理,这里需要管么?
PS:您的业务中有遇到这种情况?
Sorry, something went wrong.
并没有遇到过这种情况,多谢回复。
No branches or pull requests
微信支付结果通知 API 文档中说只有当
return_code
(通信标识) 为SUCCESS
时,返回信息中才有sign
等字段,所以当return_code
(通信标识) 为FAIL
时,下面这段代码会因为找不到$data['sign']
报错吧?微信文档链接
代码链接
The text was updated successfully, but these errors were encountered: