#804 微信支付发送红包接口请求增加触达用户appid参数,用于服务商模式下使用

This commit is contained in:
Binary Wang 2018-10-19 21:16:17 +08:00
parent 5df79928a3
commit 6b34e9dacd

View File

@ -102,11 +102,26 @@ public class WxPaySendRedpackRequest extends BaseWxPayRequest {
/** /**
* wxappid. * wxappid.
* 微信分配的公众账号ID企业号corpid即为此appId接口传入的所有appid应该为公众号的appid在mp.weixin.qq.com申请的不能为APP的appid在open.weixin.qq.com申请的 * 微信分配的公众账号ID企业号corpid即为此appId
* 接口传入的所有appid应该为公众号的appid在mp.weixin.qq.com申请的
* 不能为APP的appid在open.weixin.qq.com申请的
*/ */
@XStreamAlias("wxappid") @XStreamAlias("wxappid")
private String wxAppid; private String wxAppid;
/**
* 触达用户appid.
* <pre>
* msgappid
* wx28b16568a629bb33
* String(32)
* 服务商模式下触达用户时的appid(可填服务商自己的appid或子商户的appid)
* 服务商模式下必填服务商模式下填入的子商户appid必须在微信支付商户平台中先录入否则会校验不过
* </pre>
*/
@XStreamAlias("msgappid")
private String msgAppid;
/** /**
* <pre> * <pre>
* scene_id. * scene_id.
@ -153,7 +168,6 @@ public class WxPaySendRedpackRequest extends BaseWxPayRequest {
@XStreamAlias("consume_mch_id") @XStreamAlias("consume_mch_id")
private String consumeMchId; private String consumeMchId;
@Override @Override
protected void checkConstraints() { protected void checkConstraints() {