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); }