From eec78ff4a86260bbee20d4d6c7f51053a9b0c0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 30 Jan 2021 18:41:12 +0800 Subject: [PATCH] add clear --- wchat/wx/Recharge.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wchat/wx/Recharge.php b/wchat/wx/Recharge.php index b27b99b..f719352 100644 --- a/wchat/wx/Recharge.php +++ b/wchat/wx/Recharge.php @@ -110,15 +110,14 @@ class Recharge extends SmallProgram 'spbill_create_ip' => $_SERVER['REMOTE_ADDR'], 'notify_url' => $this->config->getNotifyUrl(), 'trade_type' => $this->config->getTradeType(), + 'openid' => $this->data['openid'] ]; - $data = array_merge($data, $this->data); - $key = $this->config->getKey(); $sign_type = $this->config->getSignType(); + $data['sign_type'] = $sign_type; $data['sign'] = Help::sign($data, $key, $sign_type); - $data['sign_type'] = $this->config->getSignType(); return Help::toXml($data); }