- 利用收到的密文生成安全签名,进行签名验证
- 若验证通过,则提取xml中的加密消息
- 对消息进行解密
public decryptMsg ( $msgSignature, $timestamp = null, $nonce, $postData, &$msg ) : integer | ||
$msgSignature | string 签名串,对应URL参数的msg_signature | |
$timestamp | string 时间戳 对应URL参数的timestamp | |
$nonce | string 随机串,对应URL参数的nonce | |
$postData | string 密文,对应POST请求的数据 | |
return | integer | 成功0,失败返回对应的错误码 |