add clear

This commit is contained in:
2021-01-30 18:41:12 +08:00
parent 9f0d07b224
commit eec78ff4a8
+2 -3
View File
@@ -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);
}