Skip to content

Commit cfc1548

Browse files
committed
发送红包接口的入参是Map,注释中添加了所需必填参数的列表及描述.
发送红包接口需要在配置文件test-config.xml中额外设置两个key,已在注释中说明
1 parent 3e2ebb0 commit cfc1548

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,23 @@ public interface WxMpService {
790790

791791
/**
792792
* 发送微信红包给个人用户
793+
*
794+
* 需要传入的必填参数如下:
795+
* mch_billno//商户订单号
796+
* send_name//商户名称
797+
* re_openid//用户openid
798+
* total_amount//红包总额
799+
* total_num//红包发放总人数
800+
* wishing//红包祝福语
801+
* client_ip//服务器Ip地址
802+
* act_name//活动名称
803+
* remark //备注
804+
* 文档详见:https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_5
805+
*
806+
* 使用现金红包功能需要在xml配置文件中额外设置:
807+
* <partnerId></partnerId>微信商户平台ID
808+
* <partnerKey></partnerKey>商户平台设置的API密钥
809+
*
793810
* @param parameters
794811
* @return
795812
* @throws WxErrorException

0 commit comments

Comments
 (0)