Skip to content

Commit 6b34e9d

Browse files
committed
binarywang#804 微信支付发送红包接口请求增加触达用户appid参数,用于服务商模式下使用
1 parent 5df7992 commit 6b34e9d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPaySendRedpackRequest.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,26 @@ protected String[] getIgnoredParamsForSign() {
102102

103103
/**
104104
* wxappid.
105-
* 微信分配的公众账号ID(企业号corpid即为此appId)。接口传入的所有appid应该为公众号的appid(在mp.weixin.qq.com申请的),不能为APP的appid(在open.weixin.qq.com申请的)
105+
* 微信分配的公众账号ID(企业号corpid即为此appId)。
106+
* 接口传入的所有appid应该为公众号的appid(在mp.weixin.qq.com申请的),
107+
* 不能为APP的appid(在open.weixin.qq.com申请的)
106108
*/
107109
@XStreamAlias("wxappid")
108110
private String wxAppid;
109111

112+
/**
113+
* 触达用户appid.
114+
* <pre>
115+
* msgappid
116+
* wx28b16568a629bb33
117+
* String(32)
118+
* 服务商模式下触达用户时的appid(可填服务商自己的appid或子商户的appid),
119+
* 服务商模式下必填,服务商模式下填入的子商户appid必须在微信支付商户平台中先录入,否则会校验不过。
120+
* </pre>
121+
*/
122+
@XStreamAlias("msgappid")
123+
private String msgAppid;
124+
110125
/**
111126
* <pre>
112127
* scene_id.
@@ -153,7 +168,6 @@ protected String[] getIgnoredParamsForSign() {
153168
@XStreamAlias("consume_mch_id")
154169
private String consumeMchId;
155170

156-
157171
@Override
158172
protected void checkConstraints() {
159173

0 commit comments

Comments
 (0)