This commit is contained in:
xl
2023-11-13 22:59:34 +08:00
parent ac4c6c1e27
commit 0eb8aab1d2
3 changed files with 4 additions and 23 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ class WxV3PaymentNotify extends SmallProgram
*/
public function decode($ciphertext, $nonce, $associated_data): bool
{
$data = $this->decrypt($ciphertext, $nonce, $associated_data);
$data = $this->decrypt($ciphertext, $this->getConfig()->getMchKey(), $nonce, $associated_data);
$this->notifyModel = new NotifyModel();
$this->notifyModel->amount = $data['amount'];
$this->notifyModel->payer = $data['payer'];