This commit is contained in:
2026-03-17 16:55:45 +08:00
parent 2f469d6b60
commit 0a535c3a89
3 changed files with 246 additions and 207 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class SmallProgram extends Multiprogramming
*/
public function decode(string $encrypt, string $signature, string $timestamp, string $nonce, string $msg_signature): XPayGoodsDeliverNotify|bool
{
$WxMsgCrypt = new WxMsgCrypt($this->payConfig->notice['token'], $this->payConfig->notice['secret'], $this->payConfig->appId);
$WxMsgCrypt = new WxMsgCrypt($this->payConfig->notice->token, $this->payConfig->notice->encodingAESKey, $this->payConfig->appId);
if (!$WxMsgCrypt->verifySignature($timestamp, $nonce, $encrypt, $msg_signature)) {
return false;
} else {