<?php
namespace Payment\Common\Ali\Data\Query; use Payment\Common\Ali\Data\AliBaseData; use Payment\Common\PayException; class TransferQueryData extends AliBaseData { protected function getBizContent() { $content = [ 'out_biz_no' => $this->trans_no, 'order_id' => $this->transaction_id, ]; return $content; } protected function checkDataParam() { $transNo = $this->trans_no; $transactionId = $this->transaction_id; if (empty($transactionId) && empty($transNo)) { throw new PayException('必须提供支付宝转账单据号或者商户转账单号'); } } } 