mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-11-06 11:52:09 +08:00
fix: 增加转账结果查询
This commit is contained in:
parent
59ca095072
commit
cdf88da1a9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user