修正 pay 退款调用别名

This commit is contained in:
Anyon 2019-11-25 18:40:50 +08:00
parent 39d53dd910
commit 4b81e72cff

View File

@ -18,6 +18,7 @@ use WeChat\Contracts\BasicWePay;
use WeChat\Exceptions\InvalidResponseException;
use WePay\Bill;
use WePay\Order;
use WePay\Refund;
use WePay\Transfers;
use WePay\TransfersBank;
@ -116,7 +117,7 @@ class Pay extends BasicWePay
*/
public function createRefund(array $options)
{
return Order::instance($this->config->get())->create($options);
return Refund::instance($this->config->get())->create($options);
}
/**
@ -128,7 +129,7 @@ class Pay extends BasicWePay
*/
public function queryRefund(array $options)
{
return Order::instance($this->config->get())->query($options);
return Refund::instance($this->config->get())->query($options);
}
/**