fix: 增加转账结果查询

This commit is contained in:
邹景立 2025-04-21 23:22:27 +08:00
parent 59ca095072
commit cdf88da1a9

View File

@ -30,6 +30,7 @@ class Transfers extends BasicWePay
* 新版商家转换到零钱 * 新版商家转换到零钱
* @param $body * @param $body
* @return array|string * @return array|string
* @throws \WeChat\Exceptions\InvalidDecryptException
* @throws \WeChat\Exceptions\InvalidResponseException * @throws \WeChat\Exceptions\InvalidResponseException
* @link https://pay.weixin.qq.com/doc/v3/merchant/4012716434 * @link https://pay.weixin.qq.com/doc/v3/merchant/4012716434
*/ */
@ -44,6 +45,17 @@ class Transfers extends BasicWePay
return $this->doRequest('POST', '/v3/fund-app/mch-transfer/transfer-bills', json_encode($body, JSON_UNESCAPED_UNICODE), true); return $this->doRequest('POST', '/v3/fund-app/mch-transfer/transfer-bills', json_encode($body, JSON_UNESCAPED_UNICODE), true);
} }
/**
* 查询转账结果
* @param $out_bill_no
* @return array|string
* @throws \WeChat\Exceptions\InvalidResponseException
*/
public function billsQuery($out_bill_no)
{
return $this->doRequest('GET', "/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{$out_bill_no}", '', true);
}
/** /**
* 发起商家批量转账 * 发起商家批量转账
* @param array $body * @param array $body