fix: 增加新版本提现

This commit is contained in:
邹景立 2025-04-21 23:06:41 +08:00
parent 1182a2dc97
commit 59ca095072

View File

@ -25,6 +25,25 @@ use WePayV3\Contracts\BasicWePay;
*/ */
class Transfers extends BasicWePay class Transfers extends BasicWePay
{ {
/**
* 新版商家转换到零钱
* @param $body
* @return array|string
* @throws \WeChat\Exceptions\InvalidResponseException
* @link https://pay.weixin.qq.com/doc/v3/merchant/4012716434
*/
public function bills($body)
{
if (empty($body['appid'])) {
$body['appid'] = $this->config['appid'];
}
if (!empty($body['user_name'])) {
$body['user_name'] = $this->rsaEncode($body['user_name']);
}
return $this->doRequest('POST', '/v3/fund-app/mch-transfer/transfer-bills', json_encode($body, JSON_UNESCAPED_UNICODE), true);
}
/** /**
* 发起商家批量转账 * 发起商家批量转账
* @param array $body * @param array $body