Update Transfer.php

This commit is contained in:
Anyon 2020-03-03 09:38:07 +08:00
parent 418e132e3e
commit 98f6e82311

View File

@ -24,16 +24,6 @@ use WeChat\Contracts\BasicAliPay;
class Transfer extends 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 * @param array $options
@ -43,6 +33,7 @@ class Transfer extends BasicAliPay
*/ */
public function apply($options) public function apply($options)
{ {
$this->options->set('method', 'alipay.fund.trans.toaccount.transfer');
return $this->getResult($options); return $this->getResult($options);
} }