<?php
 namespace Payment\Common\Weixin\Data\Query; use Payment\Common\PayException; use Payment\Common\Weixin\Data\WxBaseData; use Payment\Utils\ArrayUtil; class TransferQueryData extends WxBaseData { protected function buildData() { $this->retData = [ 'appid' => $this->appId, 'mch_id' => $this->mchId, 'nonce_str' => $this->nonceStr, 'partner_trade_no' => $this->trans_no, ]; $this->retData = ArrayUtil::paraFilter($this->retData); } protected function checkDataParam() { $transNo = $this->trans_no; if (empty($transNo)) { throw new PayException('请提供商户调用企业付款API时使用的商户订单号'); } } } 