src/Trans/AliTransfer.php
protected function createBackData(array $data)
    {
        if ($this->config->returnRaw) {
            $data['channel'] = Config::ALI_TRANSFER;
            return $data;
        }

        if ($data['code'] !== '10000') {
            return $retData = [
                'is_success'    => 'F',
                'error' => $data['sub_msg'],
                'channel' => Config::ALI_TRANSFER,
            ];
        }

        $retData = [
            'is_success'    => 'T',
            'response'  => [
                'trans_no'  => $data['out_biz_no'],// 商户转账唯一订单号
                'transaction_id'   => $data['order_id'],// 支付宝转账单据号
                'pay_date'   => $data['pay_date'],// 支付时间
                'channel'   => Config::ALI_TRANSFER,
            ],
        ];

        return $retData;
    }
protected function createBackData(array $data)
    {
        if ($this->config->returnRaw) {
            $data['channel'] = Config::ALI_TRANSFER;
            return $data;
        }

        if ($data['code'] !== '10000') {
            return $retData = [
                'is_success'    => 'F',
                'error' => $data['sub_msg'],
                'channel' => Config::ALI_TRANSFER,
            ];
        }

        $retData = [
            'is_success'    => 'T',
            'response'  => [
                'trans_no'  => $data['out_biz_no'],// 商户转账唯一订单号
                'transaction_id'   => $data['order_id'],// 支付宝转账单据号
                'pay_date'   => $data['pay_date'],// 支付时间
                'channel'   => Config::ALI_TRANSFER,
            ],
        ];

        return $retData;
    }
处理返回的数据
@param array $data
@return array
@author helei