From cdf88da1a93e206ca817a1f4d1e77c10fd16024f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 21 Apr 2025 23:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E8=BD=AC=E8=B4=A6?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WePayV3/Transfers.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/WePayV3/Transfers.php b/WePayV3/Transfers.php index 92c4575..c11a530 100644 --- a/WePayV3/Transfers.php +++ b/WePayV3/Transfers.php @@ -30,6 +30,7 @@ class Transfers extends BasicWePay * 新版商家转换到零钱 * @param $body * @return array|string + * @throws \WeChat\Exceptions\InvalidDecryptException * @throws \WeChat\Exceptions\InvalidResponseException * @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); } + /** + * 查询转账结果 + * @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