src/TransferContext.php
public function transfer(array $data)
    {
        if (! $this->transfer instanceof BaseStrategy) {
            throw new PayException('请检查初始化是否正确');
        }

        try {
            return $this->transfer->handle($data);
        } catch (PayException $e) {
            throw $e;
        }
    }
public function transfer(array $data)
    {
        if (! $this->transfer instanceof BaseStrategy) {
            throw new PayException('请检查初始化是否正确');
        }

        try {
            return $this->transfer->handle($data);
        } catch (PayException $e) {
            throw $e;
        }
    }
public function transfer ( array $ data ) { if ( ! $ this -> transfer instanceof BaseStrategy ) { throw new PayException ( '请检查初始化是否正确'); } try { return $ this -> transfer -> handle ( $ data ) ; } catch ( PayException $ e ) { throw $ e ; } }
通过环境类调用支付转款操作

@param array $data

@return array
@throws PayException
@author helei
通过环境类调用支付转款操作