add clear
This commit is contained in:
@@ -46,8 +46,6 @@ class Recharge extends SmallProgram
|
|||||||
$config = $this->config;
|
$config = $this->config;
|
||||||
$this->request->setCallback(function ($result, $body) use ($config) {
|
$this->request->setCallback(function ($result, $body) use ($config) {
|
||||||
$data = Help::toArray($result);
|
$data = Help::toArray($result);
|
||||||
var_dump($data, $result);
|
|
||||||
exit;
|
|
||||||
if (isset($data['sign'])) {
|
if (isset($data['sign'])) {
|
||||||
$sign = $data['sign'];
|
$sign = $data['sign'];
|
||||||
unset($data['sign']);
|
unset($data['sign']);
|
||||||
@@ -112,13 +110,13 @@ class Recharge extends SmallProgram
|
|||||||
'trade_type' => $this->config->getTradeType(),
|
'trade_type' => $this->config->getTradeType(),
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->data = array_merge($data, $this->data);
|
$data = array_merge($data, $this->data);
|
||||||
|
|
||||||
$key = $this->config->getKey();
|
$key = $this->config->getKey();
|
||||||
$sign_type = $this->config->getSignType();
|
$sign_type = $this->config->getSignType();
|
||||||
|
|
||||||
$this->data['sign_type'] = $this->config->getSignType();
|
$data['sign'] = Help::sign($data, $key, $sign_type);
|
||||||
$this->data['sign'] = Help::sign($this->data, $key, $sign_type);
|
$data['sign_type'] = $this->config->getSignType();
|
||||||
|
|
||||||
return Help::toXml($this->data);
|
return Help::toXml($this->data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user