From 6b34e9dacda9a6c5d91b9fd518f77ae651366b74 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 19 Oct 2018 21:16:17 +0800 Subject: [PATCH] =?UTF-8?q?#804=20=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=BA=A2=E5=8C=85=E6=8E=A5=E5=8F=A3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A2=9E=E5=8A=A0=E8=A7=A6=E8=BE=BE=E7=94=A8=E6=88=B7?= =?UTF-8?q?appid=E5=8F=82=E6=95=B0=EF=BC=8C=E7=94=A8=E4=BA=8E=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=95=86=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/request/WxPaySendRedpackRequest.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPaySendRedpackRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPaySendRedpackRequest.java index 4b868a95d..efa04d17f 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPaySendRedpackRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPaySendRedpackRequest.java @@ -102,11 +102,26 @@ public class WxPaySendRedpackRequest extends BaseWxPayRequest { /** * 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") private String wxAppid; + /** + * 触达用户appid. + *
+   * msgappid
+   * wx28b16568a629bb33
+   * String(32)
+   * 服务商模式下触达用户时的appid(可填服务商自己的appid或子商户的appid),
+   * 服务商模式下必填,服务商模式下填入的子商户appid必须在微信支付商户平台中先录入,否则会校验不过。
+   * 
+ */ + @XStreamAlias("msgappid") + private String msgAppid; + /** *
    * scene_id.
@@ -153,7 +168,6 @@ public class WxPaySendRedpackRequest extends BaseWxPayRequest {
   @XStreamAlias("consume_mch_id")
   private String consumeMchId;
 
-
   @Override
   protected void checkConstraints() {