Skip to content

Commit 59ca095

Browse files
committed
fix: 增加新版本提现
1 parent 1182a2d commit 59ca095

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

WePayV3/Transfers.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@
2525
*/
2626
class Transfers extends BasicWePay
2727
{
28+
29+
/**
30+
* 新版商家转换到零钱
31+
* @param $body
32+
* @return array|string
33+
* @throws \WeChat\Exceptions\InvalidResponseException
34+
* @link https://pay.weixin.qq.com/doc/v3/merchant/4012716434
35+
*/
36+
public function bills($body)
37+
{
38+
if (empty($body['appid'])) {
39+
$body['appid'] = $this->config['appid'];
40+
}
41+
if (!empty($body['user_name'])) {
42+
$body['user_name'] = $this->rsaEncode($body['user_name']);
43+
}
44+
return $this->doRequest('POST', '/v3/fund-app/mch-transfer/transfer-bills', json_encode($body, JSON_UNESCAPED_UNICODE), true);
45+
}
46+
2847
/**
2948
* 发起商家批量转账
3049
* @param array $body

0 commit comments

Comments
 (0)