From 98f6e82311a364220a677cdfd56dc9f97851ab24 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 3 Mar 2020 09:38:07 +0800 Subject: [PATCH] Update Transfer.php --- AliPay/Transfer.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/AliPay/Transfer.php b/AliPay/Transfer.php index 607d478..46e9f21 100644 --- a/AliPay/Transfer.php +++ b/AliPay/Transfer.php @@ -24,16 +24,6 @@ use WeChat\Contracts\BasicAliPay; class Transfer extends BasicAliPay { - /** - * Transfer constructor. - * @param array $options - */ - public function __construct(array $options) - { - parent::__construct($options); - $this->options->set('method', 'alipay.fund.trans.toaccount.transfer'); - } - /** * 旧版 向指定支付宝账户转账 * @param array $options @@ -43,6 +33,7 @@ class Transfer extends BasicAliPay */ public function apply($options) { + $this->options->set('method', 'alipay.fund.trans.toaccount.transfer'); return $this->getResult($options); }