fix some bugs

This commit is contained in:
yansongda 2017-12-25 17:33:14 +08:00
parent 4e5490e9a2
commit 23f6ce63e7

View File

@ -125,7 +125,9 @@ class Wechat implements GatewayApplicationInterface
unset($this->payload['notify_url'], $this->payload['trade_type']);
return Support::requestApi('pay/orderquery', $this->payload);
$this->payload['sign'] = Support::generateSign($this->payload, $this->config->get('key'));
return Support::requestApi('pay/orderquery', $this->payload, $this->config->get('key'));
}
/**
@ -148,9 +150,12 @@ class Wechat implements GatewayApplicationInterface
unset($this->payload['notify_url'], $this->payload['trade_type']);
$this->payload['sign'] = Support::generateSign($this->payload, $this->config->get('key'));
return Support::requestApi(
'secapi/pay/refund',
$this->payload,
$this->config->get('key'),
$this->config->get('cert_client'),
$this->config->get('cert_key')
);
@ -189,7 +194,9 @@ class Wechat implements GatewayApplicationInterface
unset($this->payload['notify_url'], $this->payload['trade_type']);
return Support::requestApi('pay/closeorder', $this->payload);
$this->payload['sign'] = Support::generateSign($this->payload, $this->config->get('key'));
return Support::requestApi('pay/closeorder', $this->payload, $this->config->get('key'));
}
/**