From 18b49daf2b4f203bfc3b033ebc7410d7cd0e8523 Mon Sep 17 00:00:00 2001 From: Zerision <894477402@qq.com> Date: Sun, 19 Sep 2021 10:30:35 +0800 Subject: [PATCH 001/622] =?UTF-8?q?:bug:=20#2314=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E4=B8=8D=E5=90=8C=E9=80=9A=E7=9F=A5=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=A2=AB=E8=AF=AF=E5=88=A4=E4=B8=BA=E5=90=8C=E4=B8=80=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/message/WxCpMessageRouter.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java index 92de0c238a..a0464a7252 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java @@ -209,16 +209,20 @@ private boolean isMsgDuplicated(WxCpXmlMessage wxMessage) { .append("-").append(wxMessage.getCreateTime()) .append("-").append(wxMessage.getFromUserName()); } + append(messageId, wxMessage.getUserId()); + append(messageId, wxMessage.getChangeType()); + append(messageId, wxMessage.getTagId()); + append(messageId, wxMessage.getId()); + append(messageId, wxMessage.getChatId()); + append(messageId, wxMessage.getExternalUserId()); - if (StringUtils.isNotEmpty(wxMessage.getUserId())) { - messageId.append("-").append(wxMessage.getUserId()); - } + return this.messageDuplicateChecker.isDuplicate(messageId.toString()); + } - if (StringUtils.isNotEmpty(wxMessage.getChangeType())) { - messageId.append("-").append(wxMessage.getChangeType()); + private void append(StringBuilder sb, String value){ + if(StringUtils.isNotEmpty(value)){ + sb.append("-").append(value); } - - return this.messageDuplicateChecker.isDuplicate(messageId.toString()); } /** From cabee0f70cbf6f8b3f83ab0e4afc0e0e8dda6529 Mon Sep 17 00:00:00 2001 From: laizuan <1032299142@qq.com> Date: Sun, 19 Sep 2021 12:53:42 +0800 Subject: [PATCH 002/622] =?UTF-8?q?:art:=20=E9=BB=98=E8=AE=A4Apache=20http?= =?UTF-8?q?=EF=BC=8C=E6=8E=92=E9=99=A4jodd-http=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weixin-java-pay/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 097fd4cfc1..acd179ce4b 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -27,7 +27,7 @@ org.jodd jodd-http - compile + provided From 2019efffa3f188f15b2acb2f603f6441ee67a3a6 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 19 Sep 2021 12:59:03 +0800 Subject: [PATCH 003/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0=E5=91=BD=E5=90=8D=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/request/WxPayRefundQueryV3Request.java | 16 +++++++--------- .../binarywang/wxpay/service/WxPayService.java | 4 ++-- .../wxpay/service/impl/BaseWxPayServiceImpl.java | 6 +++--- .../service/impl/BaseWxPayServiceImplTest.java | 4 ++-- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundQueryV3Request.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundQueryV3Request.java index d29f41a4c0..e7d34e31f9 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundQueryV3Request.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundQueryV3Request.java @@ -19,16 +19,14 @@ public class WxPayRefundQueryV3Request implements Serializable { private static final long serialVersionUID = 1L; /** *
-   * 字段名:商户订单号
-   * 变量名:out_trade_no
+   * 字段名:商户退款单号
+   * 变量名:out_refund_no
    * 是否必填:是
-   * 类型:string[1,32]
-   * 描述:
-   *  商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一。
-   *  特殊规则:最小字符长度为6
-   *  示例值:1217752501201407033233368018
+   * 类型:string[1, 64]
+   * 描述:商户系统内部的退款单号,商户系统内部唯一,只能是数字、大小写字母_-|*@ ,同一退款单号多次请求只退一笔。
+   * 示例值:1217752501201407033233368018
    * 
*/ - @SerializedName(value = "out_trade_no") - private String outTradeNo; + @SerializedName(value = "out_refund_no") + private String outRefundNo; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 9b42bd75be..73dad0c9d2 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -697,11 +697,11 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 接口链接:https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no} * * - * @param outTradeNo 商户订单号 + * @param outRefundNo 商户退款单号 * @return 退款信息 wx pay refund query result * @throws WxPayException the wx pay exception */ - WxPayRefundQueryV3Result refundQueryV3(String outTradeNo) throws WxPayException; + WxPayRefundQueryV3Result refundQueryV3(String outRefundNo) throws WxPayException; /** *
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
index a80a7f4527..e5ef0be8be 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
@@ -305,15 +305,15 @@ public WxPayRefundQueryResult refundQueryV2(WxPayRefundQueryRequest request) thr
   }
 
   @Override
-  public WxPayRefundQueryV3Result refundQueryV3(String outTradeNo) throws WxPayException {
-    String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), outTradeNo);
+  public WxPayRefundQueryV3Result refundQueryV3(String outRefundNo) throws WxPayException {
+    String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), outRefundNo);
     String response = this.getV3(url);
     return GSON.fromJson(response, WxPayRefundQueryV3Result.class);
   }
 
   @Override
   public WxPayRefundQueryV3Result refundQueryV3(WxPayRefundQueryV3Request request) throws WxPayException {
-    String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), request.getOutTradeNo());
+    String url = String.format("%s/v3/refund/domestic/refunds/%s", this.getPayBaseUrl(), request.getOutRefundNo());
     String response = this.getV3(url);
     return GSON.fromJson(response, WxPayRefundQueryV3Result.class);
   }
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
index e984b334fc..920d917ffc 100644
--- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
@@ -769,8 +769,8 @@ public void testRefundV3() throws WxPayException {
   @Test
   public void testRefundQueryV3() throws WxPayException {
     WxPayRefundQueryV3Request request = new WxPayRefundQueryV3Request();
-//    request.setOutTradeNo("n1ZvYqjAg3D7LUBa");
-    request.setOutTradeNo("123456789011");
+//    request.setOutRefundNo("n1ZvYqjAg3D7LUBa");
+    request.setOutRefundNo("123456789011");
     WxPayRefundQueryV3Result result = this.payService.refundQueryV3(request);
     System.out.println(GSON.toJson(result));
   }

From abbfc85e24b16334426d13f114fab7b5c78cd786 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Tue, 21 Sep 2021 17:07:10 +0800
Subject: [PATCH 004/622] Update README.md

---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 8f0a4f95b6..e8636426c8 100644
--- a/README.md
+++ b/README.md
@@ -28,9 +28,9 @@
       
         
           
-          

1. 驰骋快速开发平台、工作流引擎、表单引擎采用GPL协议.

-

2. 驰骋.net版称为ccflow, java版称为jflow,代码100%开源.

-

3. 支持10多个国内外数据库. 单机版\集团版\SAAS版本.

+
1. 驰骋快速开发平台、工作流/表单引擎采用GPL协议。 +
2. 驰骋.NET版称为ccflow,Java版称为jflow,代码100%开源。 +
3. 支持10多个国内外数据库,有单机版\集团版\SAAS版本。
From b45c626e8299c9992270382cd90baf2a4b517cd5 Mon Sep 17 00:00:00 2001 From: yearliny Date: Sat, 25 Sep 2021 23:05:28 +0800 Subject: [PATCH 005/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E4=BC=9A=E6=8A=9B=E5=87=BA?= =?UTF-8?q?CannotResolveClassException=E5=BC=82=E5=B8=B8=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://stackoverflow.com/questions/9508292/nodecom-thoughtworks-xstream-mapper-cannotresolveclassexception-while-using-xstr --- .../com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java | 1 + 1 file changed, 1 insertion(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java index 9f6f5e2700..6f66dfdd86 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java @@ -150,6 +150,7 @@ public static T fromXML(String xmlString, Class c } XStream xstream = XStreamInitializer.getInstance(); xstream.processAnnotations(clz); + xstream.setClassLoader(BaseWxPayResult.class.getClassLoader()); T result = (T) xstream.fromXML(xmlString); result.setXmlString(xmlString); return result; From cecdace1c59d28eaccecd15ae99801af305df6e0 Mon Sep 17 00:00:00 2001 From: nickname263 Date: Sat, 25 Sep 2021 23:06:19 +0800 Subject: [PATCH 006/622] =?UTF-8?q?:new:=20#2324=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=B7=BB=E5=8A=A0=E5=AF=B9?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E6=A8=A1=E7=89=88=E5=8D=A1=E7=89=87=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/api/WxConsts.java | 31 ++ .../weixin/cp/bean/message/WxCpMessage.java | 281 ++++++++++++++++ .../messagebuilder/TemplateCardBuilder.java | 300 ++++++++++++++++++ .../cp/bean/templatecard/CheckboxOption.java | 49 +++ .../bean/templatecard/HorizontalContent.java | 66 ++++ .../cp/bean/templatecard/MultipleSelect.java | 68 ++++ .../bean/templatecard/TemplateCardButton.java | 49 +++ .../bean/templatecard/TemplateCardJump.java | 65 ++++ .../cp/bean/templatecard/VerticalContent.java | 44 +++ .../cp/bean/message/WxCpMessageTest.java | 283 +++++++++++++++++ 10 files changed, 1236 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java index 3e08462017..c1e6d39910 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java @@ -120,6 +120,37 @@ public static class KefuMsgType { * 小程序通知消息. */ public static final String MINIPROGRAM_NOTICE = "miniprogram_notice"; + + /** + * 模板卡片消息. + */ + public static final String TEMPLATE_CARD = "template_card"; + } + + /** + * 企业微信模板卡片消息的卡片类型 + */ + public static class TemplateCardType { + /** + * 文本通知型卡片 + */ + public static final String TEXT_NOTICE = "text_notice"; + /** + * 图文展示型卡片 + */ + public static final String NEWS_NOTICE = "news_notice"; + /** + * 按钮交互型卡片 + */ + public static final String BUTTON_INTERACTION = "button_interaction"; + /** + * 投票选择型卡片 + */ + public static final String VOTE_INTERACTION = "vote_interaction"; + /** + * 多项选择型卡片 + */ + public static final String MULTIPLE_INTERACTION = "multiple_interaction"; } /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java index 244e7fed07..a2f6e6c5c6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java @@ -8,6 +8,7 @@ import me.chanjar.weixin.cp.bean.article.NewArticle; import me.chanjar.weixin.cp.bean.messagebuilder.*; import me.chanjar.weixin.cp.bean.taskcard.TaskCardButton; +import me.chanjar.weixin.cp.bean.templatecard.*; import org.apache.commons.lang3.StringUtils; import java.io.Serializable; @@ -70,6 +71,134 @@ public class WxCpMessage implements Serializable { private String taskId; private List taskButtons = new ArrayList<>(); + /** + * 模板型卡片特有属性 + */ + /** + * 模板卡片类型,文本通知型卡片填写 “text_notice”, + * 图文展示型卡片此处填写 “news_notice”, + * 按钮交互型卡片填写”button_interaction”, + * 投票选择型卡片填写”vote_interaction”, + * 多项选择型卡片填写 “multiple_interaction” + */ + private String card_type; + + /** + * 卡片来源样式信息,不需要来源样式可不填写 + * 来源图片的url + */ + private String source_icon_url; + /** + * 卡片来源样式信息,不需要来源样式可不填写 + * 来源图片的描述,建议不超过20个字 + */ + private String source_desc; + + /** + * 一级标题,建议不超过36个字 + */ + private String main_title_title; + /** + * 标题辅助信息,建议不超过44个字 + */ + private String main_title_desc; + + /** + * 图文展示型的卡片必须有图片字段。 + * 图片的url. + */ + private String card_image_url; + + /** + * 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默认1.3 + */ + private Float card_image_aspect_ratio; + /** + * 关键数据样式 + * 关键数据样式的数据内容,建议不超过14个字 + */ + private String emphasis_content_title; + /** + * 关键数据样式的数据描述内容,建议不超过22个字 + */ + private String emphasis_content_desc; + + /** + * 二级普通文本,建议不超过160个字 + */ + private String sub_title_text; + + /** + * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4 + */ + private List vertical_contents; + + /** + * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + */ + private List horizontal_contents; + + /** + * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3 + */ + private List jumps; + + /** + * 整体卡片的点击跳转事件,text_notice必填本字段 + * 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2] + */ + private Integer card_action_type; + /** + * 跳转事件的url,card_action.type是1时必填 + */ + private String card_action_url; + + /** + * 跳转事件的小程序的appid,必须是与当前应用关联的小程序,card_action.type是2时必填 + */ + private String card_action_appid; + + /** + * 跳转事件的小程序的pagepath,card_action.type是2时选填 + */ + private String card_action_pagepath; + + /** + * 按钮交互型卡片需指定。 + * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + */ + private List buttons; + + /** + * 投票选择型卡片需要指定 + * 选择题key值,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节 + */ + private String checkbox_question_key; + + /** + * 选择题模式,单选:0,多选:1,不填默认0 + */ + private Integer checkbox_mode; + + /** + * 选项list,选项个数不超过 20 个,最少1个 + */ + private List options; + + /** + * 提交按钮样式 + * 按钮文案,建议不超过10个字,不填默认为提交 + */ + private String submit_button_text; + /** + * 提交按钮的key,会产生回调事件将本参数作为EventKey返回,最长支持1024字节 + */ + private String submit_button_key; + /** + * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器 + */ + private List selects; + /** * 获得文本消息builder. */ @@ -140,6 +269,13 @@ public static TaskCardBuilder TASKCARD() { return new TaskCardBuilder(); } + /** + * 获得任务卡片消息builder. + */ + public static TemplateCardBuilder TEMPLATECARD() { + return new TemplateCardBuilder(); + } + /** * 获得小程序通知消息builder. */ @@ -160,6 +296,7 @@ public static MiniProgramNoticeMsgBuilder newMiniProgramNoticeBuilder() { * {@link KefuMsgType#MARKDOWN} * {@link KefuMsgType#TASKCARD} * {@link KefuMsgType#MINIPROGRAM_NOTICE} + * {@link KefuMsgType#TEMPLATE_CARD} *
* * @param msgType 消息类型 @@ -328,6 +465,150 @@ private void handleMsgType(JsonObject messageJson) { messageJson.add("miniprogram_notice", notice); break; } + case TEMPLATE_CARD: { + JsonObject template = new JsonObject(); + template.addProperty("card_type", this.getCard_type()); + + if (StringUtils.isNotBlank(this.getSource_icon_url()) || StringUtils.isNotBlank(this.getSource_desc())) { + JsonObject source = new JsonObject(); + if (StringUtils.isNotBlank(this.getSource_icon_url())) { + source.addProperty("icon_url", this.getSource_icon_url()); + } + if (StringUtils.isNotBlank(this.getSource_desc())) { + source.addProperty("desc", this.getSource_desc()); + } + template.add("source", source); + } + + if (StringUtils.isNotBlank(this.getMain_title_title()) || StringUtils.isNotBlank(this.getMain_title_desc())) { + JsonObject main_title = new JsonObject(); + if (StringUtils.isNotBlank(this.getMain_title_title())) { + main_title.addProperty("title", this.getMain_title_title()); + } + if (StringUtils.isNotBlank(this.getMain_title_desc())) { + main_title.addProperty("desc", this.getMain_title_desc()); + } + template.add("main_title", main_title); + } + + if (StringUtils.isNotBlank(this.getEmphasis_content_title()) || StringUtils.isNotBlank(this.getEmphasis_content_desc())) { + JsonObject emphasis_content = new JsonObject(); + if (StringUtils.isNotBlank(this.getEmphasis_content_title())) { + emphasis_content.addProperty("title", this.getEmphasis_content_title()); + } + if (StringUtils.isNotBlank(this.getEmphasis_content_desc())) { + emphasis_content.addProperty("desc", this.getEmphasis_content_desc()); + } + template.add("emphasis_content", emphasis_content); + } + + + if (StringUtils.isNotBlank(this.getSub_title_text())) { + template.addProperty("sub_title_text", this.getSub_title_text()); + } + + if (StringUtils.isNotBlank(this.getTaskId())) { + template.addProperty("task_id", this.getTaskId()); + } + + List verticalContents = this.getVertical_contents(); + if(null != verticalContents && verticalContents.size() > 0) { + JsonArray vContentJsonArray = new JsonArray(); + for (VerticalContent vContent : this.getVertical_contents()) { + JsonObject tempObject = vContent.toJson(); + vContentJsonArray.add(tempObject); + } + template.add("vertical_content_list", vContentJsonArray); + } + + List horizontalContents = this.getHorizontal_contents(); + if(null != horizontalContents && horizontalContents.size() > 0) { + JsonArray hContentJsonArray = new JsonArray(); + for (HorizontalContent hContent : this.getHorizontal_contents()) { + JsonObject tempObject = hContent.toJson(); + hContentJsonArray.add(tempObject); + } + template.add("horizontal_content_list", hContentJsonArray); + } + + List jumps = this.getJumps(); + if(null != jumps && jumps.size() > 0) { + JsonArray jumpJsonArray = new JsonArray(); + for (TemplateCardJump jump : this.getJumps()) { + JsonObject tempObject = jump.toJson(); + jumpJsonArray.add(tempObject); + } + template.add("jump_list", jumpJsonArray); + } + + if (null != this.getCard_action_type()) { + JsonObject cardAction = new JsonObject(); + cardAction.addProperty("type", this.getCard_action_type()); + if (StringUtils.isNotBlank(this.getCard_action_url())) { + cardAction.addProperty("url", this.getCard_action_url()); + } + if (StringUtils.isNotBlank(this.getCard_action_appid())) { + cardAction.addProperty("appid", this.getCard_action_appid()); + } + if (StringUtils.isNotBlank(this.getCard_action_pagepath())) { + cardAction.addProperty("pagepath", this.getCard_action_pagepath()); + } + template.add("card_action", cardAction); + } + + List buttons = this.getButtons(); + if(null != buttons && buttons.size() > 0) { + JsonArray btnJsonArray = new JsonArray(); + for (TemplateCardButton btn : this.getButtons()) { + JsonObject tempObject = btn.toJson(); + btnJsonArray.add(tempObject); + } + template.add("button_list", btnJsonArray); + } + + // checkbox + if (StringUtils.isNotBlank(this.getCheckbox_question_key())) { + JsonObject checkBox = new JsonObject(); + checkBox.addProperty("question_key", this.getCheckbox_question_key()); + if (null != this.getCheckbox_mode()) { + checkBox.addProperty("mode", this.getCheckbox_mode()); + } + JsonArray optionArray = new JsonArray(); + for (CheckboxOption option : this.getOptions()) { + JsonObject tempObject = option.toJson(); + optionArray.add(tempObject); + } + checkBox.add("option_list", optionArray); + + template.add("checkbox", checkBox); + } + + // submit_button + if (StringUtils.isNotBlank(this.getSubmit_button_text()) || StringUtils.isNotBlank(this.getSubmit_button_key())) { + JsonObject submit_button = new JsonObject(); + if (StringUtils.isNotBlank(this.getSubmit_button_text())) { + submit_button.addProperty("text", this.getSubmit_button_text()); + } + if (StringUtils.isNotBlank(this.getSubmit_button_key())) { + submit_button.addProperty("key", this.getSubmit_button_key()); + } + template.add("submit_button", submit_button); + } + + // select_list + List selects = this.getSelects(); + if(null != selects && selects.size() > 0) { + JsonArray selectJsonArray = new JsonArray(); + for (MultipleSelect select : this.getSelects()) { + JsonObject tempObject = select.toJson(); + selectJsonArray.add(tempObject); + } + template.add("select_list", selectJsonArray); + } + + messageJson.add("template_card", template); + break; + } default: { // do nothing } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java new file mode 100644 index 0000000000..7a29491ab1 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java @@ -0,0 +1,300 @@ +package me.chanjar.weixin.cp.bean.messagebuilder; + +import me.chanjar.weixin.common.api.WxConsts; +import me.chanjar.weixin.cp.bean.message.WxCpMessage; +import me.chanjar.weixin.cp.bean.templatecard.*; + +import java.util.List; +/** + *
+ * 模板卡片消息Builder
+ * 用法: WxCustomMessage m = WxCustomMessage.TEMPLATECARD().title(...)....toUser(...).build();
+ * 
+ * + * @author yzts + * @date 2019-05-16 + */ +public class TemplateCardBuilder extends BaseBuilder{ + /** + * 模板卡片类型,文本通知型卡片填写 “text_notice”, + * 图文展示型卡片此处填写 “news_notice”, + * 按钮交互型卡片填写”button_interaction”, + * 投票选择型卡片填写”vote_interaction”, + * 多项选择型卡片填写 “multiple_interaction” + */ + private String card_type; + + /** + * 卡片来源样式信息,不需要来源样式可不填写 + * 来源图片的url + */ + private String source_icon_url; + /** + * 卡片来源样式信息,不需要来源样式可不填写 + * 来源图片的描述,建议不超过20个字 + */ + private String source_desc; + + /** + * 一级标题,建议不超过36个字 + */ + private String main_title_title; + /** + * 标题辅助信息,建议不超过44个字 + */ + private String main_title_desc; + + /** + * 图文展示型的卡片必须有图片字段。 + * 图片的url. + */ + private String card_image_url; + + /** + * 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默认1.3 + */ + private Float card_image_aspect_ratio; + /** + * 关键数据样式 + * 关键数据样式的数据内容,建议不超过14个字 + */ + private String emphasis_content_title; + /** + * 关键数据样式的数据描述内容,建议不超过22个字 + */ + private String emphasis_content_desc; + + /** + * 二级普通文本,建议不超过160个字 + */ + private String sub_title_text; + + /** + * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4 + */ + private List vertical_contents; + + /** + * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + */ + private List horizontal_contents; + + /** + * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3 + */ + private List jumps; + + /** + * 整体卡片的点击跳转事件,text_notice必填本字段 + * 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2] + */ + private Integer card_action_type; + /** + * 跳转事件的url,card_action.type是1时必填 + */ + private String card_action_url; + + /** + * 跳转事件的小程序的appid,必须是与当前应用关联的小程序,card_action.type是2时必填 + */ + private String card_action_appid; + + /** + * 跳转事件的小程序的pagepath,card_action.type是2时选填 + */ + private String card_action_pagepath; + + /** + * 任务id,同一个应用任务id不能重复,只能由数字、字母和“_-@”组成,最长128字节 + */ + private String task_id; + + /** + * 按钮交互型卡片需指定。 + * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + */ + private List buttons; + + /** + * 投票选择型卡片需要指定 + * 选择题key值,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节 + */ + private String checkbox_question_key; + + /** + * 选择题模式,单选:0,多选:1,不填默认0 + */ + private Integer checkbox_mode; + + /** + * 选项list,选项个数不超过 20 个,最少1个 + */ + private List options; + + /** + * 提交按钮样式 + * 按钮文案,建议不超过10个字,不填默认为提交 + */ + private String submit_button_text; + /** + * 提交按钮的key,会产生回调事件将本参数作为EventKey返回,最长支持1024字节 + */ + private String submit_button_key; + + /** + * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器 + */ + private List selects; + + + public TemplateCardBuilder() { + this.msgType = WxConsts.KefuMsgType.TEMPLATE_CARD; + } + + public TemplateCardBuilder card_type(String card_type) { + this.card_type = card_type; + return this; + } + + public TemplateCardBuilder source_icon_url(String source_icon_url) { + this.source_icon_url = source_icon_url; + return this; + } + + public TemplateCardBuilder source_desc(String source_desc) { + this.source_desc = source_desc; + return this; + } + + public TemplateCardBuilder main_title_title(String main_title_title) { + this.main_title_title = main_title_title; + return this; + } + + public TemplateCardBuilder main_title_desc(String mainTitleDesc) { + this.main_title_desc = mainTitleDesc; + return this; + } + + public TemplateCardBuilder emphasis_content_title(String emphasis_content_title) { + this.emphasis_content_title = emphasis_content_title; + return this; + } + + public TemplateCardBuilder emphasis_content_desc(String emphasis_content_desc) { + this.emphasis_content_desc = emphasis_content_desc; + return this; + } + + public TemplateCardBuilder sub_title_text(String sub_title_text) { + this.sub_title_text = sub_title_text; + return this; + } + + public TemplateCardBuilder vertical_contents(List vertical_contents) { + this.vertical_contents = vertical_contents; + return this; + } + + public TemplateCardBuilder horizontal_contents(List horizontal_contents) { + this.horizontal_contents = horizontal_contents; + return this; + } + + public TemplateCardBuilder jumps(List jumps) { + this.jumps = jumps; + return this; + } + + public TemplateCardBuilder card_action_type(Integer card_action_type) { + this.card_action_type = card_action_type; + return this; + } + + public TemplateCardBuilder card_action_url(String card_action_url) { + this.card_action_url = card_action_url; + return this; + } + + public TemplateCardBuilder card_action_appid(String card_action_appid) { + this.card_action_appid = card_action_appid; + return this; + } + + public TemplateCardBuilder card_action_pagepath(String card_action_pagepath) { + this.card_action_pagepath = card_action_pagepath; + return this; + } + + public TemplateCardBuilder task_id(String taskId) { + this.task_id = taskId; + return this; + } + + public TemplateCardBuilder buttons(List buttons) { + this.buttons = buttons; + return this; + } + + public TemplateCardBuilder checkbox_question_key(String checkbox_question_key) { + this.checkbox_question_key = checkbox_question_key; + return this; + } + + public TemplateCardBuilder checkbox_mode(Integer checkbox_mode) { + this.checkbox_mode = checkbox_mode; + return this; + } + + public TemplateCardBuilder options(List options) { + this.options = options; + return this; + } + + public TemplateCardBuilder submit_button_text(String submit_button_text) { + this.submit_button_text = submit_button_text; + return this; + } + + public TemplateCardBuilder submit_button_key(String submit_button_key) { + this.submit_button_key = submit_button_key; + return this; + } + + public TemplateCardBuilder selects(List selects) { + this.selects = selects; + return this; + } + + @Override + public WxCpMessage build() { + WxCpMessage m = super.build(); + m.setSafe(null); + m.setCard_type(this.card_type); + m.setSource_icon_url(this.source_icon_url); + m.setSource_desc(this.source_desc); + m.setMain_title_title(this.main_title_title); + m.setMain_title_desc(this.main_title_desc); + m.setCard_image_url(this.card_image_url); + m.setCard_image_aspect_ratio(this.card_image_aspect_ratio); + m.setEmphasis_content_title(this.emphasis_content_title); + m.setEmphasis_content_desc(this.emphasis_content_desc); + m.setSub_title_text(this.sub_title_text); + m.setVertical_contents(this.vertical_contents); + m.setHorizontal_contents(this.horizontal_contents); + m.setJumps(this.jumps); + m.setCard_action_type(this.card_action_type); + m.setCard_action_appid(this.card_action_appid); + m.setCard_action_pagepath(this.card_action_pagepath); + m.setCard_action_url(this.card_action_url); + m.setTaskId(this.task_id); + m.setButtons(this.buttons); + m.setCheckbox_mode(this.checkbox_mode); + m.setCheckbox_question_key(this.checkbox_question_key); + m.setOptions(this.options); + m.setSubmit_button_text(this.submit_button_text); + m.setSubmit_button_key(this.submit_button_key); + m.setSelects(this.selects); + return m; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java new file mode 100644 index 0000000000..2f6b5b1a97 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java @@ -0,0 +1,49 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + * @author yzts + * @date 2021/9/22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CheckboxOption implements Serializable { + private static final long serialVersionUID = 5405702239190050250L; + + /** + * 选项id,用户提交选项后,会产生回调事件,回调事件会带上该id值表示该选项,最长支持128字节,不可重复 + * 必填 + */ + private String id; + /** + * 选项文案描述,建议不超过17个字. + * 必填 + */ + private String text; + /** + * 该选项是否要默认选中 + * 必填 + */ + private Boolean is_checked; + + public JsonObject toJson() { + JsonObject optionJson = new JsonObject(); + optionJson.addProperty("id", this.getId()); + optionJson.addProperty("text", this.getText()); + if(null != this.getIs_checked()) { + optionJson.addProperty("is_checked", this.getIs_checked()); + } + return optionJson; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java new file mode 100644 index 0000000000..4f1160e933 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java @@ -0,0 +1,66 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + * @author yzts + * @date 2021/9/22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class HorizontalContent implements Serializable { + + private static final long serialVersionUID = -2209656515382964372L; + + /** + * 链接类型,0或不填代表不是链接,1 代表跳转url,2 代表下载附件 + */ + private Integer type; + /** + * 二级标题,建议不超过5个字 + */ + private String keyname; + /** + * 二级文本,如果horizontal_content_list.type是2,该字段代表文件名称(要包含文件类型),建议不超过30个字 + */ + private String value; + /** + * 链接跳转的url,horizontal_content_list.type是1时必填 + */ + private String url; + /** + * 附件的media_id,horizontal_content_list.type是2时必填 + */ + private String media_id; + + public JsonObject toJson() { + JsonObject hContentJson = new JsonObject(); + + if(null != this.getType()){ + hContentJson.addProperty("type", this.getType()); + } + hContentJson.addProperty("keyname", this.getKeyname()); + + if (StringUtils.isNotBlank(this.getValue())) { + hContentJson.addProperty("value", this.getValue()); + } + if (StringUtils.isNotBlank(this.getUrl())) { + hContentJson.addProperty("url", this.getUrl()); + } + if (StringUtils.isNotBlank(this.getMedia_id())) { + hContentJson.addProperty("media_id", this.getMedia_id()); + } + return hContentJson; + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java new file mode 100644 index 0000000000..145a6c4426 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java @@ -0,0 +1,68 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; +import java.util.List; + +/** + * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器 + * @author yzts + * @date 2021/9/22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class MultipleSelect implements Serializable { + private static final long serialVersionUID = 3446092543065698516L; + + /** + * 下拉式的选择器题目的key,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节,不可重复 + */ + private String question_key; + /** + * 下拉式的选择器上面的title + */ + private String title; + /** + * 默认选定的id,不填或错填默认第一个 + */ + private String selected_id; + + /** + * 选项列表,下拉选项不超过 10 个,最少1个 + */ + private List options; + + public JsonObject toJson() { + JsonObject selectJson = new JsonObject(); + + selectJson.addProperty("question_key", this.getQuestion_key()); + + if (StringUtils.isNotBlank(this.getTitle())) { + selectJson.addProperty("title", this.getTitle()); + } + if (StringUtils.isNotBlank(this.getSelected_id())) { + selectJson.addProperty("selected_id", this.getSelected_id()); + } +// select_list + List options = this.getOptions(); + if(null != options && options.size() > 0) { + JsonArray optionJsonArray = new JsonArray(); + for (CheckboxOption option : this.getOptions()) { + JsonObject tempObject = option.toJson(); + optionJsonArray.add(tempObject); + } + selectJson.add("option_list", optionJsonArray); + } + + return selectJson; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java new file mode 100644 index 0000000000..4ac9e005e4 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java @@ -0,0 +1,49 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 + * @author yzts + * @date 2021/9/22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TemplateCardButton implements Serializable { + private static final long serialVersionUID = -4826551822490837002L; + + /** + * 按钮文案,建议不超过10个字 + */ + private String text; + /** + * 按钮样式,目前可填1~4,不填或错填默认1 + */ + private Integer style; + /** + * 按钮key值,用户点击后,会产生回调事件将本参数作为EventKey返回,回调事件会带上该key值,最长支持1024字节,不可重复 + */ + private String key; + + public JsonObject toJson() { + JsonObject btnObject = new JsonObject(); + + + btnObject.addProperty("text", this.getText()); + + if (null != this.getStyle()) { + btnObject.addProperty("style", this.getStyle()); + } + btnObject.addProperty("key", this.getKey()); + return btnObject; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java new file mode 100644 index 0000000000..6d297e9c0b --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java @@ -0,0 +1,65 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3 + * @author yzts + * @date 2021/9/22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TemplateCardJump implements Serializable { + private static final long serialVersionUID = 4440089247405968074L; + + /** + * 跳转链接类型,0或不填代表不是链接,1 代表跳转url,2 代表跳转小程序 + */ + private Integer type; + /** + * 跳转链接样式的文案内容,建议不超过18个字 + */ + private String title; + /** + * 跳转链接的url,jump_list.type是1时必填 + */ + private String url; + /** + * 跳转链接的小程序的appid,必须是与当前应用关联的小程序,jump_list.type是2时必填 + */ + private String appid; + /** + * 跳转链接的小程序的pagepath,jump_list.type是2时选填 + */ + private String pagepath; + + public JsonObject toJson() { + JsonObject hContentJson = new JsonObject(); + + if(null != this.getType()){ + hContentJson.addProperty("type", this.getType()); + } + hContentJson.addProperty("title", this.getTitle()); + + if (StringUtils.isNotBlank(this.getUrl())) { + hContentJson.addProperty("url", this.getUrl()); + } + if (StringUtils.isNotBlank(this.getAppid())) { + hContentJson.addProperty("appid", this.getAppid()); + } + if (StringUtils.isNotBlank(this.getPagepath())) { + hContentJson.addProperty("pagepath", this.getPagepath()); + } + return hContentJson; + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java new file mode 100644 index 0000000000..7d364ff106 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java @@ -0,0 +1,44 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import kotlin.text.UStringsKt; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4 + * @author yzts + * @date 2021/9/22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class VerticalContent implements Serializable { + private static final long serialVersionUID = -1383852553854573558L; + + /** + * 卡片二级标题,建议不超过38个字.必填字段 + */ + private String title; + /** + * 二级普通文本,建议不超过160个字 + */ + private String desc; + + public JsonObject toJson() { + JsonObject vContentJson = new JsonObject(); + + vContentJson.addProperty("title", this.getTitle()); + + if (StringUtils.isNotBlank(this.getDesc())) { + vContentJson.addProperty("desc", this.getDesc()); + } + return vContentJson; + } +} diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java index 3f7859116e..a1cfee801b 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java @@ -1,9 +1,12 @@ package me.chanjar.weixin.cp.bean.message; +import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.cp.bean.article.MpnewsArticle; import me.chanjar.weixin.cp.bean.article.NewArticle; import me.chanjar.weixin.cp.bean.message.WxCpMessage; import me.chanjar.weixin.cp.bean.taskcard.TaskCardButton; +import me.chanjar.weixin.cp.bean.templatecard.*; +import org.testng.Assert; import org.testng.annotations.Test; import java.util.Arrays; @@ -141,4 +144,284 @@ public void testTaskCardBuilder() { .isEqualTo("{\"touser\":\"OPENID\",\"msgtype\":\"taskcard\",\"taskcard\":{\"title\":\"任务卡片\",\"description\":\"有一条待处理任务\",\"url\":\"http://www.qq.com\",\"task_id\":\"task_123\",\"btn\":[{\"key\":\"yes\",\"name\":\"批准\",\"replace_name\":\"已批准\",\"color\":\"blue\",\"is_bold\":true},{\"key\":\"yes\",\"name\":\"拒绝\",\"replace_name\":\"已拒绝\",\"color\":\"red\",\"is_bold\":false}]}}"); } + /** + * 测试模板卡片消息 + * 文本通知型 + */ + public void TestTemplateCardBuilder_text_notice() { + + HorizontalContent hContent1 = HorizontalContent.builder() + .keyname("邀请人") + .value("张三") + .build(); + HorizontalContent hContent2 = HorizontalContent.builder() + .type(1) + .keyname("企业微信官网") + .value("点击访问") + .url("https://work.weixin.qq.com") + .build(); + HorizontalContent hContent3 = HorizontalContent.builder() + .type(2) + .keyname("企业微信下载") + .value("企业微信.apk") + .media_id("文件的media_id") + .build(); + + TemplateCardJump jump1 = TemplateCardJump.builder() + .type(1) + .title("企业微信官网") + .url("https://work.weixin.qq.com") + .build(); + TemplateCardJump jump2 = TemplateCardJump.builder() + .type(2) + .title("跳转小程序") + .appid("小程序的appid") + .pagepath("/index.html") + .build(); + + WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") + .agentId(1000002) + .card_type(WxConsts.TemplateCardType.TEXT_NOTICE) + .source_icon_url("图片的url") + .source_desc("企业微信") + .main_title_title("欢迎使用企业微信") + .main_title_desc("您的好友正在邀请您加入企业微信") + .emphasis_content_title("100") + .emphasis_content_desc("核心数据") + .sub_title_text("下载企业微信还能抢红包!") + .horizontal_contents(Arrays.asList(hContent1,hContent2,hContent3)) + .jumps(Arrays.asList(jump1,jump2)) + .card_action_type(2) + .card_action_appid("小程序的appid") + .card_action_url("https://work.weixin.qq.com") + .card_action_pagepath("/index.html") + .build(); + reply.setEnableIdTrans(false); + reply.setEnableDuplicateCheck(false); + reply.setDuplicateCheckInterval(1800); +// System.out.println(reply.toJson()); + assertThat(reply.toJson()) + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"text_notice\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"emphasis_content\":{\"title\":\"100\",\"desc\":\"核心数据\"},\"sub_title_text\":\"下载企业微信还能抢红包!\",\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"}],\"jump_list\":[{\"type\":1,\"title\":\"企业微信官网\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"title\":\"跳转小程序\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}}}"); + + } + + /** + * 测试模板卡片消息 + * 图文展示型 + */ + public void TestTemplateCardBuilder_news_notice() { + + VerticalContent vContent1 = VerticalContent.builder() + .title("惊喜红包等你来拿") + .desc("下载企业微信还能抢红包!") + .build(); + VerticalContent vContent2 = VerticalContent.builder() + .title("二级垂直内容") + .desc("二级垂直内容!") + .build(); + + HorizontalContent hContent1 = HorizontalContent.builder() + .keyname("邀请人") + .value("张三") + .build(); + HorizontalContent hContent2 = HorizontalContent.builder() + .type(1) + .keyname("企业微信官网") + .value("点击访问") + .url("https://work.weixin.qq.com") + .build(); + HorizontalContent hContent3 = HorizontalContent.builder() + .type(2) + .keyname("企业微信下载") + .value("企业微信.apk") + .media_id("文件的media_id") + .build(); + + TemplateCardJump jump1 = TemplateCardJump.builder() + .type(1) + .title("企业微信官网") + .url("https://work.weixin.qq.com") + .build(); + TemplateCardJump jump2 = TemplateCardJump.builder() + .type(2) + .title("跳转小程序") + .appid("小程序的appid") + .pagepath("/index.html") + .build(); + + WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") + .agentId(1000002) + .card_type(WxConsts.TemplateCardType.NEWS_NOTICE) + .source_icon_url("图片的url") + .source_desc("企业微信") + .main_title_title("欢迎使用企业微信") + .main_title_desc("您的好友正在邀请您加入企业微信") + .vertical_contents(Arrays.asList(vContent1,vContent2)) + .horizontal_contents(Arrays.asList(hContent1,hContent2,hContent3)) + .jumps(Arrays.asList(jump1,jump2)) + .card_action_type(2) + .card_action_appid("小程序的appid") + .card_action_url("https://work.weixin.qq.com") + .card_action_pagepath("/index.html") + .build(); + reply.setEnableIdTrans(false); + reply.setEnableDuplicateCheck(false); + reply.setDuplicateCheckInterval(1800); + System.out.println(reply.toJson()); + assertThat(reply.toJson()) + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"news_notice\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"vertical_content_list\":[{\"title\":\"惊喜红包等你来拿\",\"desc\":\"下载企业微信还能抢红包!\"},{\"title\":\"二级垂直内容\",\"desc\":\"二级垂直内容!\"}],\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"}],\"jump_list\":[{\"type\":1,\"title\":\"企业微信官网\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"title\":\"跳转小程序\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}}}"); + } + + /** + * 测试模板卡片消息 + * 按钮交互型 + */ + public void TestTemplateCardBuilder_button_interaction() { + + TemplateCardButton tButton1 = TemplateCardButton.builder() + .text("按钮1") + .style(1) + .key("button_key_1") + .build(); + TemplateCardButton tButton2 = TemplateCardButton.builder() + .text("按钮2") + .style(2) + .key("button_key_2") + .build(); + + HorizontalContent hContent1 = HorizontalContent.builder() + .keyname("邀请人") + .value("张三") + .build(); + HorizontalContent hContent2 = HorizontalContent.builder() + .type(1) + .keyname("企业微信官网") + .value("点击访问") + .url("https://work.weixin.qq.com") + .build(); + HorizontalContent hContent3 = HorizontalContent.builder() + .type(2) + .keyname("企业微信下载") + .value("企业微信.apk") + .media_id("文件的media_id") + .build(); + + WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") + .agentId(1000002) + .card_type(WxConsts.TemplateCardType.BUTTON_INTERACTION) + .source_icon_url("图片的url") + .source_desc("企业微信") + .main_title_title("欢迎使用企业微信") + .main_title_desc("您的好友正在邀请您加入企业微信") + .sub_title_text("下载企业微信还能抢红包!") + .horizontal_contents(Arrays.asList(hContent1,hContent2,hContent3)) + .card_action_type(2) + .card_action_appid("小程序的appid") + .card_action_url("https://work.weixin.qq.com") + .card_action_pagepath("/index.html") + .task_id("task_id") + .buttons(Arrays.asList(tButton1,tButton2)) + .build(); + reply.setEnableIdTrans(false); + reply.setEnableDuplicateCheck(false); + reply.setDuplicateCheckInterval(1800); + System.out.println(reply.toJson()); + assertThat(reply.toJson()) + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"button_interaction\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"sub_title_text\":\"下载企业微信还能抢红包!\",\"task_id\":\"task_id\",\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"},\"button_list\":[{\"text\":\"按钮1\",\"style\":1,\"key\":\"button_key_1\"},{\"text\":\"按钮2\",\"style\":2,\"key\":\"button_key_2\"}]}}"); + } + + /** + * 测试模板卡片消息 + * 投票选择型 + */ + public void TestTemplateCardBuilder_vote_interaction() { + CheckboxOption option1 = CheckboxOption.builder() + .id("option_id1") + .text("选择题选项1") + .is_checked(true) + .build(); + CheckboxOption option2 = CheckboxOption.builder() + .id("option_id2") + .text("选择题选项2") + .is_checked(false) + .build(); + + WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") + .agentId(1000002) + .card_type(WxConsts.TemplateCardType.VOTE_INTERACTION) + .source_icon_url("图片的url") + .source_desc("企业微信") + .main_title_title("欢迎使用企业微信") + .main_title_desc("您的好友正在邀请您加入企业微信") + .task_id("task_id") + .checkbox_question_key("question_key1") + .checkbox_mode(1) + .options(Arrays.asList(option1,option2)) + .submit_button_key("key") + .submit_button_text("提交") + .build(); + reply.setEnableIdTrans(false); + reply.setEnableDuplicateCheck(false); + reply.setDuplicateCheckInterval(1800); + System.out.println(reply.toJson()); + assertThat(reply.toJson()) + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"vote_interaction\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"task_id\":\"task_id\",\"checkbox\":{\"question_key\":\"question_key1\",\"mode\":1,\"option_list\":[{\"id\":\"option_id1\",\"text\":\"选择题选项1\",\"is_checked\":true},{\"id\":\"option_id2\",\"text\":\"选择题选项2\",\"is_checked\":false}]},\"submit_button\":{\"text\":\"提交\",\"key\":\"key\"}}}"); + } + + /** + * 测试模板卡片消息 + * 投票选择型 + */ + public void TestTemplateCardBuilder_multiple_interaction() { + CheckboxOption option1 = CheckboxOption.builder() + .id("selection_id1") + .text("选择器选项1") + .build(); + CheckboxOption option2 = CheckboxOption.builder() + .id("selection_id2") + .text("选择题选项2") + .build(); + CheckboxOption option3 = CheckboxOption.builder() + .id("selection_id3") + .text("选择器选项3") + .build(); + CheckboxOption option4 = CheckboxOption.builder() + .id("selection_id4") + .text("选择题选项4") + .build(); + + MultipleSelect mSelect1 = MultipleSelect.builder() + .question_key("question_key1") + .title("选择器标签1") + .selected_id("selection_id1") + .options(Arrays.asList(option1,option2)) + .build(); + MultipleSelect mSelect2 = MultipleSelect.builder() + .question_key("question_key2") + .title("选择器标签2") + .selected_id("selection_id3") + .options(Arrays.asList(option3,option4)) + .build(); + + + WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") + .agentId(1000002) + .card_type(WxConsts.TemplateCardType.MULTIPLE_INTERACTION) + .source_icon_url("图片的url") + .source_desc("企业微信") + .main_title_title("欢迎使用企业微信") + .main_title_desc("您的好友正在邀请您加入企业微信") + .task_id("task_id") + .selects(Arrays.asList(mSelect1,mSelect2)) + .submit_button_key("key") + .submit_button_text("提交") + .build(); + reply.setEnableIdTrans(false); + reply.setEnableDuplicateCheck(false); + reply.setDuplicateCheckInterval(1800); + System.out.println(reply.toJson()); + assertThat(reply.toJson()) + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"multiple_interaction\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"task_id\":\"task_id\",\"submit_button\":{\"text\":\"提交\",\"key\":\"key\"},\"select_list\":[{\"question_key\":\"question_key1\",\"title\":\"选择器标签1\",\"selected_id\":\"selection_id1\",\"option_list\":[{\"id\":\"selection_id1\",\"text\":\"选择器选项1\"},{\"id\":\"selection_id2\",\"text\":\"选择题选项2\"}]},{\"question_key\":\"question_key2\",\"title\":\"选择器标签2\",\"selected_id\":\"selection_id3\",\"option_list\":[{\"id\":\"selection_id3\",\"text\":\"选择器选项3\"},{\"id\":\"selection_id4\",\"text\":\"选择题选项4\"}]}]}}"); + } + } From 56d2b5f57acb16502e393a285129c299b9478547 Mon Sep 17 00:00:00 2001 From: nickname263 Date: Mon, 27 Sep 2021 17:27:46 +0800 Subject: [PATCH 007/622] =?UTF-8?q?:new:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E6=B7=BB=E5=8A=A0=E5=AF=B9=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=A8=A1=E6=9D=BF=E5=8D=A1=E7=89=87=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E2=80=9C=E6=9B=B4=E6=96=B0=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=9A=84=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=96=87=E6=A1=88=E6=B6=88=E6=81=AF=E2=80=9D=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/api/WxConsts.java | 1 + .../cp/bean/message/WxCpXmlOutMessage.java | 8 +++++ .../message/WxCpXmlOutUpdateBtnMessage.java | 33 +++++++++++++++++++ .../outxmlbuilder/UpdateButtonBuilder.java | 29 ++++++++++++++++ .../cp/util/xml/XStreamTransformer.java | 7 ++++ 5 files changed, 78 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java index c1e6d39910..01b1d36483 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java @@ -45,6 +45,7 @@ public static class XmlMsgType { public static final String HARDWARE = "hardware"; public static final String TRANSFER_CUSTOMER_SERVICE = "transfer_customer_service"; public static final String UPDATE_TASKCARD = "update_taskcard"; + public static final String UPDATE_BUTTON = "update_button"; } /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java index ff036b4c0e..70882561b7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java @@ -78,6 +78,14 @@ public static NewsBuilder NEWS() { public static TaskCardBuilder TASK_CARD() { return new TaskCardBuilder(); } + + /** + * 获得任务卡片消息builder. + */ + public static UpdateButtonBuilder UPDATE_BUTTON() { + return new UpdateButtonBuilder(); + } + protected String toXml() { return XStreamTransformer.toXml((Class) this.getClass(), this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java new file mode 100644 index 0000000000..b0428469f1 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java @@ -0,0 +1,33 @@ +package me.chanjar.weixin.cp.bean.message; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamConverter; +import lombok.Data; +import lombok.EqualsAndHashCode; +import me.chanjar.weixin.common.api.WxConsts; +import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; +import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter; +import me.chanjar.weixin.common.util.xml.XStreamReplaceNameConverter; + +import java.io.Serializable; + +/** + * @author nickname263 + * @date 2021-09-23 + */ +@XStreamAlias("xml") +@Data +@EqualsAndHashCode(callSuper = false) +public class WxCpXmlOutUpdateBtnMessage extends WxCpXmlOutMessage { + private static final long serialVersionUID = 976182367423048138L; + @XStreamAlias("Button") + @XStreamConverter(value = XStreamReplaceNameConverter.class) + private String replaceName; + + public WxCpXmlOutUpdateBtnMessage() { + this.msgType = WxConsts.XmlMsgType.UPDATE_BUTTON; + } + + + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java new file mode 100644 index 0000000000..d4dd4b04d2 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java @@ -0,0 +1,29 @@ +package me.chanjar.weixin.cp.bean.outxmlbuilder; + +import me.chanjar.weixin.cp.bean.message.WxCpXmlOutTaskCardMessage; +import me.chanjar.weixin.cp.bean.message.WxCpXmlOutUpdateBtnMessage; + +/** + * 模板卡片更新点击用户的按钮点击文案消息builder + * + * @author nickname263 + */ +public class UpdateButtonBuilder extends BaseBuilder { + + + private String replaceName; + + public UpdateButtonBuilder replaceName(String replaceName) { + this.replaceName = replaceName; + return this; + } + + @Override + public WxCpXmlOutUpdateBtnMessage build() { + WxCpXmlOutUpdateBtnMessage m = new WxCpXmlOutUpdateBtnMessage(); + setCommon(m); + m.setReplaceName(this.replaceName); + return m; + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java index aa907b7288..421765bc0f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java @@ -54,6 +54,7 @@ private static Map configXStreamInstance() { map.put(WxCpXmlOutVideoMessage.class, configWxCpXmlOutVideoMessage()); map.put(WxCpXmlOutVoiceMessage.class, configWxCpXmlOutVoiceMessage()); map.put(WxCpXmlOutTaskCardMessage.class, configWxCpXmlOutTaskCardMessage()); + map.put(WxCpXmlOutUpdateBtnMessage.class, configWxCpXmlOutUpdateBtnMessage()); map.put(WxCpTpXmlPackage.class, configWxCpTpXmlPackage()); map.put(WxCpTpXmlMessage.class, configWxCpTpXmlMessage()); return map; @@ -119,6 +120,12 @@ private static XStream configWxCpXmlOutTaskCardMessage() { xstream.processAnnotations(WxCpXmlOutTaskCardMessage.class); return xstream; } + private static XStream configWxCpXmlOutUpdateBtnMessage() { + XStream xstream = XStreamInitializer.getInstance(); + xstream.processAnnotations(WxCpXmlOutMessage.class); + xstream.processAnnotations(WxCpXmlOutUpdateBtnMessage.class); + return xstream; + } private static XStream configWxCpTpXmlPackage() { XStream xstream = XStreamInitializer.getInstance(); From 3c4e749ea9d9abbb38a26bde62aaff530c0543a8 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 6 Oct 2021 10:17:07 +0800 Subject: [PATCH 008/622] =?UTF-8?q?:bug:=20#2338=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E8=90=A5=E9=94=80=E4=BB=A3?= =?UTF-8?q?=E9=87=91=E5=88=B8=E6=8E=A5=E5=8F=A3=E4=BF=AE=E5=A4=8Dpause?= =?UTF-8?q?=E5=92=8Crestart=E5=AE=9E=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../marketing/FavorStocksPauseResult.java | 37 +++++++++++++++++++ .../marketing/FavorStocksRestartResult.java | 37 +++++++++++++++++++ .../wxpay/service/MarketingFavorService.java | 8 ++-- .../impl/MarketingFavorServiceImpl.java | 12 +++--- .../impl/MarketingFavorServiceImplTest.java | 4 +- 5 files changed, 86 insertions(+), 12 deletions(-) create mode 100755 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksPauseResult.java create mode 100755 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksRestartResult.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksPauseResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksPauseResult.java new file mode 100755 index 0000000000..91e10fbf28 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksPauseResult.java @@ -0,0 +1,37 @@ +package com.github.binarywang.wxpay.bean.marketing; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 暂停代金券批次返回结果对象 + * + * @author lichuang + */ +@NoArgsConstructor +@Data +public class FavorStocksPauseResult implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 生效时间 + *

+ * 生效时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 + * 示例值:2015-05-20T13:29:35.120+08:00 + */ + @SerializedName("pause_time") + private String pauseTime; + + /** + * 批次号 + *

+ * 微信为每个代金券批次分配的唯一ID。 + * 示例值:98065001 + */ + @SerializedName("stock_id") + private String stockId; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksRestartResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksRestartResult.java new file mode 100755 index 0000000000..b9078bca59 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksRestartResult.java @@ -0,0 +1,37 @@ +package com.github.binarywang.wxpay.bean.marketing; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 重启代金券批次返回结果对象 + * + * @author lichuang + */ +@NoArgsConstructor +@Data +public class FavorStocksRestartResult implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 生效时间 + *

+ * 生效时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 + * 示例值:2015-05-20T13:29:35.120+08:00 + */ + @SerializedName("restart_time") + private String restartTime; + + /** + * 批次号 + *

+ * 微信为每个代金券批次分配的唯一ID。 + * 示例值:98065001 + */ + @SerializedName("stock_id") + private String stockId; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MarketingFavorService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MarketingFavorService.java index 5da11aabf3..ac0ed5212f 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MarketingFavorService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MarketingFavorService.java @@ -187,10 +187,10 @@ public interface MarketingFavorService { * * * @param request 请求对象 - * @return FavorCallbacksSaveResult 微信返回的结果信息。 + * @return FavorStocksPauseResult 微信返回的结果信息。 * @throws WxPayException the wx pay exception */ - FavorStocksStartResult pauseFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException; + FavorStocksPauseResult pauseFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException; /** *

@@ -200,10 +200,10 @@ public interface MarketingFavorService {
    * 
* * @param request 请求对象 - * @return FavorCallbacksSaveResult 微信返回的结果信息。 + * @return FavorStocksRestartResult 微信返回的结果信息。 * @throws WxPayException the wx pay exception */ - FavorStocksStartResult restartFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException; + FavorStocksRestartResult restartFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException; UseNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException; diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImpl.java index 5923d0e106..a10bbbb085 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImpl.java @@ -154,19 +154,19 @@ public FavorCallbacksSaveResult saveFavorCallbacksV3(FavorCallbacksSaveRequest r } @Override - public FavorStocksStartResult pauseFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException { - String url = String.format("%s/v3/marketing/favor/stocks/%s/start", this.payService.getPayBaseUrl(), stockId); + public FavorStocksPauseResult pauseFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException { + String url = String.format("%s/v3/marketing/favor/stocks/%s/pause", this.payService.getPayBaseUrl(), stockId); RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate()); String result = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); - return GSON.fromJson(result, FavorStocksStartResult.class); + return GSON.fromJson(result, FavorStocksPauseResult.class); } @Override - public FavorStocksStartResult restartFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException { - String url = String.format("%s/v3/marketing/favor/stocks/%s/start", this.payService.getPayBaseUrl(), stockId); + public FavorStocksRestartResult restartFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException { + String url = String.format("%s/v3/marketing/favor/stocks/%s/restart", this.payService.getPayBaseUrl(), stockId); RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate()); String result = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); - return GSON.fromJson(result, FavorStocksStartResult.class); + return GSON.fromJson(result, FavorStocksRestartResult.class); } /** diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImplTest.java index 48fdf8c8e5..7a532d6bdb 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MarketingFavorServiceImplTest.java @@ -175,7 +175,7 @@ public void testSaveFavorCallbacksV3() throws WxPayException { public void testPauseFavorStocksV3() throws WxPayException { FavorStocksSetRequest request = new FavorStocksSetRequest(); request.setStockCreatorMchid(wxPayService.getConfig().getMchId()); - FavorStocksStartResult result = wxPayService.getMarketingFavorService().pauseFavorStocksV3(stockId, request); + FavorStocksPauseResult result = wxPayService.getMarketingFavorService().pauseFavorStocksV3(stockId, request); log.info("result: {}", GSON.toJson(result)); } @@ -184,7 +184,7 @@ public void testPauseFavorStocksV3() throws WxPayException { public void testRestartFavorStocksV3() throws WxPayException { FavorStocksSetRequest request = new FavorStocksSetRequest(); request.setStockCreatorMchid(wxPayService.getConfig().getMchId()); - FavorStocksStartResult result = wxPayService.getMarketingFavorService().restartFavorStocksV3(stockId, request); + FavorStocksRestartResult result = wxPayService.getMarketingFavorService().restartFavorStocksV3(stockId, request); log.info("result: {}", GSON.toJson(result)); } From a5c141f7bebf65894ae64803d94c561de83da69a Mon Sep 17 00:00:00 2001 From: ArBing Date: Wed, 13 Oct 2021 13:48:49 +0800 Subject: [PATCH 009/622] =?UTF-8?q?:art:=20=20#2344=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=B0=B8=E4=B9=85=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E7=A0=81=E4=BF=A1=E6=81=AF=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0authMode=E3=80=81isCustomizedApp?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java | 12 ++++++++++++ .../weixin/cp/bean/WxCpTpPermanentCodeInfo.java | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java index 02d51095c8..9ca4971754 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java @@ -152,6 +152,18 @@ public static class Agent implements Serializable { @Deprecated private String appid; + /** + * 授权模式,0为管理员授权;1为成员授权 + */ + @SerializedName("auth_mode") + private Integer authMode; + + /** + * 是否为代开发自建应用 + */ + @SerializedName("is_customized_app") + private Boolean isCustomizedApp; + /** * 应用权限 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index 02793de14d..9774f6230b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -151,6 +151,18 @@ public static class Agent implements Serializable { @Deprecated private String appid; + /** + * 授权模式,0为管理员授权;1为成员授权 + */ + @SerializedName("auth_mode") + private Integer authMode; + + /** + * 是否为代开发自建应用 + */ + @SerializedName("is_customized_app") + private Boolean isCustomizedApp; + /** * 应用权限 */ From fddb2f7a182df67ef98fdef1d20019ddd249a635 Mon Sep 17 00:00:00 2001 From: ArBing Date: Wed, 13 Oct 2021 13:49:16 +0800 Subject: [PATCH 010/622] =?UTF-8?q?:new:=20#2345=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E8=B0=83=E7=94=A8wx.agentConfig=E6=97=B6=E6=89=80?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=9A=84=E7=AD=BE=E5=90=8D=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/api/WxCpService.java | 13 ++++++++ .../cp/api/impl/BaseWxCpServiceImpl.java | 25 +++++++++++++++ .../cp/bean/WxCpAgentJsapiSignature.java | 31 +++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentJsapiSignature.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 345b3bb344..94cd212637 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -8,6 +8,7 @@ import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.chanjar.weixin.common.util.http.RequestExecutor; import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.cp.bean.WxCpAgentJsapiSignature; import me.chanjar.weixin.cp.bean.WxCpMaJsCode2SessionResult; import me.chanjar.weixin.cp.bean.WxCpProviderToken; import me.chanjar.weixin.cp.config.WxCpConfigStorage; @@ -124,6 +125,18 @@ public interface WxCpService extends WxService { */ WxJsapiSignature createJsapiSignature(String url) throws WxErrorException; + /** + *
+   *   创建调用wx.agentConfig时所需要的签名
+   *
+   * 详情请见:https://open.work.weixin.qq.com/api/doc/90000/90136/94313
+   * 
+ * + * @param url url + * @return the agent jsapi signature + * @throws WxErrorException + */ + WxCpAgentJsapiSignature createAgentJsapiSignature(String url) throws WxErrorException; /** * 小程序登录凭证校验 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 0a06571c97..89221f1a1e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -20,6 +20,7 @@ import me.chanjar.weixin.common.util.http.*; import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.*; +import me.chanjar.weixin.cp.bean.WxCpAgentJsapiSignature; import me.chanjar.weixin.cp.bean.WxCpMaJsCode2SessionResult; import me.chanjar.weixin.cp.bean.WxCpProviderToken; import me.chanjar.weixin.cp.config.WxCpConfigStorage; @@ -171,6 +172,30 @@ public WxJsapiSignature createJsapiSignature(String url) throws WxErrorException return jsapiSignature; } + @Override + public WxCpAgentJsapiSignature createAgentJsapiSignature(String url) throws WxErrorException { + long timestamp = System.currentTimeMillis() / 1000; + String noncestr = RandomUtils.getRandomStr(); + String jsapiTicket = getAgentJsapiTicket(false); + String signature = SHA1.genWithAmple( + "jsapi_ticket=" + jsapiTicket, + "noncestr=" + noncestr, + "timestamp=" + timestamp, + "url=" + url + ); + + WxCpAgentJsapiSignature jsapiSignature = new WxCpAgentJsapiSignature(); + jsapiSignature.setTimestamp(timestamp); + jsapiSignature.setNonceStr(noncestr); + jsapiSignature.setUrl(url); + jsapiSignature.setSignature(signature); + + jsapiSignature.setCorpid(this.configStorage.getCorpId()); + jsapiSignature.setAgentid(this.configStorage.getAgentId()); + + return jsapiSignature; + } + @Override public WxCpMaJsCode2SessionResult jsCode2Session(String jsCode) throws WxErrorException { Map params = new HashMap<>(2); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentJsapiSignature.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentJsapiSignature.java new file mode 100644 index 0000000000..4562d9b9b0 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentJsapiSignature.java @@ -0,0 +1,31 @@ +package me.chanjar.weixin.cp.bean; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 调用wx.agentConfig时所需要的签名信息 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxCpAgentJsapiSignature implements Serializable { + private static final long serialVersionUID = 2650119900835832545L; + + private String url; + + private String corpid; + + private Integer agentid; + + private long timestamp; + + private String nonceStr; + + private String signature; +} From 0bcba32ea40d2e8f60ff49d27b2747a0be86d8c3 Mon Sep 17 00:00:00 2001 From: Kyle Scully Date: Tue, 12 Oct 2021 23:06:39 -0700 Subject: [PATCH 011/622] refactor: Use diamond operator --- .../weixin/common/util/http/WxDnsResolver.java | 4 ++-- .../config/impl/AbstractWxMaRedisConfig.java | 2 +- .../api/impl/WxMaShopAuditServiceImplTest.java | 16 ++++++++-------- .../open/api/impl/WxOpenMessageRouter.java | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java index 6c6137089a..d0321af097 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java @@ -19,7 +19,7 @@ public class WxDnsResolver implements DnsResolver { private final static String WECHAT_API_URL = "api.weixin.qq.com"; - private static Map MAPPINGS = new HashMap(); + private static Map MAPPINGS = new HashMap<>(); protected final Logger log = LoggerFactory.getLogger(WxDnsResolver.class); private String wxApiIp; @@ -38,7 +38,7 @@ private void init() { } catch (UnknownHostException e) { //如果初始化DNS配置失败则使用默认配置,不影响服务的启动 log.error("init WxDnsResolver error", e); - MAPPINGS = new HashMap(); + MAPPINGS = new HashMap<>(); } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java index 9b94a04bbb..19d3a00f69 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java @@ -79,7 +79,7 @@ private String getValueFromRedis(String key) { private void setValueToRedis(String key, long expiresTime, String value) { try (Jedis jedis = getConfiguredJedis()) { - Map hash = new HashMap(); + Map hash = new HashMap<>(); hash.put(HASH_VALUE_FIELD, value); hash.put(HASH_EXPIRE_FIELD, String.valueOf(expiresTime)); jedis.hmset(getRedisKey(key), hash); diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImplTest.java index c8ec9f081c..117f052ac3 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImplTest.java @@ -33,23 +33,23 @@ public void testAuditBrand() throws WxErrorException { WxMaShopAuditBrandRequest request = WxMaShopAuditBrandRequest.builder().build(); WxMaShopAuditBrandRequest.AuditReqBean auditReqBean = WxMaShopAuditBrandRequest.AuditReqBean.builder().build(); - auditReqBean.setLicense(new ArrayList(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))); + auditReqBean.setLicense(new ArrayList<>(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))); auditReqBean.setBrandInfo(WxMaShopAuditBrandRequest.AuditReqBean.BrandInfoBean.builder() .brandAuditType(1) .trademarkType("29") .brandManagementType(2) .commodityOriginType(2) .brandWording("346225226351203275") - .saleAuthorization(new ArrayList(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) - .trademarkRegistrationCertificate(new ArrayList(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) - .trademarkChangeCertificate(new ArrayList(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) + .saleAuthorization(new ArrayList<>(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) + .trademarkRegistrationCertificate(new ArrayList<>(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) + .trademarkChangeCertificate(new ArrayList<>(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) .trademarkRegistrant("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg") .trademarkRegistrantNu("1249305") .trademarkAuthorizationPeriod("2020-03-25 12:05:25") - .trademarkRegistrationApplication(new ArrayList(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) + .trademarkRegistrationApplication(new ArrayList<>(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) .trademarkApplicant("张三") .trademarkApplicationTime("2020-03-25 12:05:25") - .importedGoodsForm(new ArrayList(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) + .importedGoodsForm(new ArrayList<>(Arrays.asList("https://img.zhls.qq.com/3/609b98f7e0ff43d59ce6d9cca636c3e0.jpg"))) .build()); request.setAuditReq(auditReqBean); @@ -61,12 +61,12 @@ public void testAuditBrand() throws WxErrorException { public void testAuditCategory() throws WxErrorException { WxMaShopAuditCategoryRequest request = WxMaShopAuditCategoryRequest.builder().build(); WxMaShopAuditCategoryRequest.AuditReqBean auditReqBean = WxMaShopAuditCategoryRequest.AuditReqBean.builder().build(); - auditReqBean.setLicense(new ArrayList(Arrays.asList("www.xxxxx.com"))); + auditReqBean.setLicense(new ArrayList<>(Arrays.asList("www.xxxxx.com"))); auditReqBean.setCategoryInfo(WxMaShopAuditCategoryRequest.AuditReqBean.CategoryInfoBean.builder() .level1(7419) .level2(7439) .level3(7448) - .certificate(new ArrayList(Arrays.asList("www.xxxxx.com"))) + .certificate(new ArrayList<>(Arrays.asList("www.xxxxx.com"))) .build()); request.setAuditReq(auditReqBean); WxMaShopAuditCategoryResponse response = wxService.getShopAuditService().auditCategory(request); diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMessageRouter.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMessageRouter.java index 2e483fc0aa..7314bfd694 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMessageRouter.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMessageRouter.java @@ -17,7 +17,7 @@ public WxOpenMessageRouter(WxOpenService wxOpenService) { } public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, String appId) { - return route(wxMessage, new HashMap(), appId); + return route(wxMessage, new HashMap<>(), appId); } public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map context, String appId) { From e68477c26c48881f7aae52d241d89e7f46422e00 Mon Sep 17 00:00:00 2001 From: Kyle Scully Date: Wed, 13 Oct 2021 23:20:08 -0700 Subject: [PATCH 012/622] refactor: Remove unnecessary parentheses --- .../weixin/common/session/StandardSessionManager.java | 8 ++++---- .../qidian/api/impl/WxQidianDialServiceImplTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/session/StandardSessionManager.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/session/StandardSessionManager.java index 290a0c04f7..8d994b9c36 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/session/StandardSessionManager.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/session/StandardSessionManager.java @@ -98,7 +98,7 @@ public WxSession getSession(String sessionId, boolean create) { // Create a new session if requested and the response is not committed if (!create) { - return (null); + return null; } session = createSession(sessionId); @@ -127,7 +127,7 @@ public void remove(InternalSession session, boolean update) { @Override public InternalSession findSession(String id) { if (id == null) { - return (null); + return null; } return this.sessions.get(id); } @@ -251,7 +251,7 @@ public void processExpires() { if (this.log.isDebugEnabled()) { this.log.debug("End expire sessions {} processingTime {} expired sessions: {}", getName(), timeEnd - timeNow, expireHere); } - this.processingTime += (timeEnd - timeNow); + this.processingTime += timeEnd - timeNow; } @@ -289,7 +289,7 @@ public void setBackgroundProcessorDelay(int backgroundProcessorDelay) { */ public String getName() { - return (name); + return name; } diff --git a/weixin-java-qidian/src/test/java/me/chanjar/weixin/qidian/api/impl/WxQidianDialServiceImplTest.java b/weixin-java-qidian/src/test/java/me/chanjar/weixin/qidian/api/impl/WxQidianDialServiceImplTest.java index e91d471c15..43e7ba299d 100644 --- a/weixin-java-qidian/src/test/java/me/chanjar/weixin/qidian/api/impl/WxQidianDialServiceImplTest.java +++ b/weixin-java-qidian/src/test/java/me/chanjar/weixin/qidian/api/impl/WxQidianDialServiceImplTest.java @@ -32,7 +32,7 @@ public void dial() throws WxErrorException { IVRListResponse iVRListResponse = this.wxService.getDialService().getIVRList(); Assert.assertEquals(iVRListResponse.getErrcode(), new Integer(0)); log.info("ivr size:" + iVRListResponse.getNode().size()); - Optional optional = iVRListResponse.getNode().stream().filter((o) -> o.getIvr_name().equals("自动接听需求测试")) + Optional optional = iVRListResponse.getNode().stream().filter(o -> o.getIvr_name().equals("自动接听需求测试")) .findFirst(); Assert.assertTrue(optional.isPresent()); Ivr ivr = optional.get(); From 0c1258594ea2cbcb8e5f7b1aa2c5ad99bf0f4670 Mon Sep 17 00:00:00 2001 From: linlinjava Date: Sun, 17 Oct 2021 20:05:46 +0800 Subject: [PATCH 013/622] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWxMaShopPayInfo?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java index c9a56a3aed..7ea749e197 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java @@ -13,13 +13,13 @@ public class WxMaShopPayInfo implements Serializable { private static final long serialVersionUID = 687488209024968647L; /** - * 支付方式(目前只有"微信支付") + * 支付方式(支付方式,0:微信支付,1: 货到付款,2:商家会员储蓄卡, 默认0) *
    * 是否必填:是
    * 
*/ - @SerializedName("pay_method") - private String payMethod; + @SerializedName("pay_method_type") + private Integer payMethodType; /** * 预支付ID From f4c18d7eb80f6bb4a74406fa9c9b948b55d7293f Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 17 Oct 2021 20:20:43 +0800 Subject: [PATCH 014/622] =?UTF-8?q?:art:=20=E8=A1=A5=E5=85=85=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java index 486791986b..58dc4f345d 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java @@ -209,6 +209,10 @@ public enum WxMpErrorMsgEnum { * 请勿添加其他公众号的主页链接. */ CODE_40155(40155, "请勿添加其他公众号的主页链接"), + /** + * oauth_code已使用 + */ + CODE_40163(40163, "oauth_code已使用"), /** * 缺少 access_token 参数. */ From 8c787d16389aff273e7bfe10d96a3c0966cb2c6f Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 17 Oct 2021 20:21:56 +0800 Subject: [PATCH 015/622] =?UTF-8?q?:art:=20=E8=A1=A5=E5=85=85=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/profitsharing/ProfitSharingResult.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java index ce6a1f8e95..ffa6d5a2af 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java @@ -36,10 +36,24 @@ public class ProfitSharingResult extends BaseWxPayResult implements Serializable @XStreamAlias("order_id") private String orderId; + /** + * 分账单状态. + */ + @XStreamAlias("status") + private String status; + + /** + * 分账接收方列表. + */ + @XStreamAlias("receivers") + private String receivers; + @Override protected void loadXml(Document d) { transactionId = readXmlString(d, "transaction_id"); outOrderNo = readXmlString(d, "out_order_no"); orderId = readXmlString(d, "order_id"); + status = readXmlString(d, "status"); + receivers = readXmlString(d, "receivers"); } } From 5755c293dfea25f16b30b8afb145aaaa4cf08f3a Mon Sep 17 00:00:00 2001 From: dragon Date: Sat, 23 Oct 2021 23:23:18 +0800 Subject: [PATCH 016/622] =?UTF-8?q?:new:=20#2356=20=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E6=96=B0=E5=A2=9E=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E7=AE=B1=E5=92=8C=E5=8F=91=E5=B8=83=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/api/WxMpDraftService.java | 127 ++++++++++++++++++ .../weixin/mp/api/WxMpFreePublishService.java | 113 ++++++++++++++++ .../me/chanjar/weixin/mp/api/WxMpService.java | 28 ++++ .../mp/api/impl/BaseWxMpServiceImpl.java | 25 +++- .../mp/api/impl/WxMpDraftServiceImpl.java | 84 ++++++++++++ .../api/impl/WxMpFreePublishServiceImpl.java | 72 ++++++++++ .../weixin/mp/bean/draft/WxMpAddDraft.java | 44 ++++++ .../mp/bean/draft/WxMpDraftArticles.java | 81 +++++++++++ .../weixin/mp/bean/draft/WxMpDraftInfo.java | 44 ++++++ .../weixin/mp/bean/draft/WxMpDraftItem.java | 33 +++++ .../weixin/mp/bean/draft/WxMpDraftList.java | 41 ++++++ .../weixin/mp/bean/draft/WxMpUpdateDraft.java | 55 ++++++++ .../freepublish/WxMpFreePublishArticles.java | 85 ++++++++++++ .../bean/freepublish/WxMpFreePublishInfo.java | 44 ++++++ .../bean/freepublish/WxMpFreePublishItem.java | 35 +++++ .../bean/freepublish/WxMpFreePublishList.java | 41 ++++++ .../freepublish/WxMpFreePublishStatus.java | 56 ++++++++ .../chanjar/weixin/mp/enums/WxMpApiUrl.java | 89 +++++++++++- .../mp/api/impl/WxMpDraftServiceImplTest.java | 127 ++++++++++++++++++ .../impl/WxMpFreePublishServiceImplTest.java | 109 +++++++++++++++ 20 files changed, 1330 insertions(+), 3 deletions(-) create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java create mode 100644 weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java create mode 100644 weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java new file mode 100644 index 0000000000..3e38410d5f --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java @@ -0,0 +1,127 @@ +package me.chanjar.weixin.mp.api; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.mp.bean.draft.WxMpAddDraft; +import me.chanjar.weixin.mp.bean.draft.WxMpDraftInfo; +import me.chanjar.weixin.mp.bean.draft.WxMpDraftList; +import me.chanjar.weixin.mp.bean.draft.WxMpUpdateDraft; + +/** + * 微信 草稿箱 接口. + * + * @author dragon + * @date 2021-10-22 + */ +public interface WxMpDraftService { + + /** + * 新建草稿 - 只有默认必填参数 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/add?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html
+   * 
+ * + * @param title 标题 + * @param content 图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS,涉及图片url必须来源 "上传图文消息内的图片获取URL"接口获取。外部图片url将被过滤。 + * @param thumbMediaId 图文消息的封面图片素材id(必须是永久MediaID) + * @throws WxErrorException . + */ + String addDraft(String title, String content, String thumbMediaId) throws WxErrorException; + + /** + * 新建草稿 - 完整参数 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/add?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html
+   * 
+ * + * @param addDraft 新建草稿信息 + * @throws WxErrorException . + */ + String addDraft(WxMpAddDraft addDraft) throws WxErrorException; + + /** + * 修改草稿 - 完整参数 + * 正常情况下调用成功时,errcode将为0。错误时微信会返回错误码等信息,请根据错误码查询错误信息 + *
+   * 请求地址: POST https://api.weixin.qq.com/cgi-bin/draft/update?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Update_draft.html
+   * 
+ * + * @param updateDraftInfo 修改草稿信息 + * @throws WxErrorException . + */ + Boolean updateDraft(WxMpUpdateDraft updateDraftInfo) throws WxErrorException; + + /** + * 获取草稿信息 + * + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/get?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Get_draft.html
+   * 
+ * + * @param mediaId 要获取的草稿的media_id + * @return 草稿信息 + * @throws WxErrorException . + */ + WxMpDraftInfo getDraft(String mediaId) throws WxErrorException; + + /** + * 删除草稿 + * 正常情况下调用成功时,errcode将为0。错误时微信会返回错误码等信息,请根据错误码查询错误信息。 + * 多次删除同一篇草稿,也返回 0. + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/delete?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Delete_draft.html
+   * 
+ * + * @param mediaId 要删除的草稿的media_id + * @throws WxErrorException . + */ + Boolean delDraft(String mediaId) throws WxErrorException; + + /** + * 获取草稿列表 + * + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/batchget?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Get_draft_list.html
+   * 
+ * + * @param offset 分页页数,从0开始 从全部素材的该偏移位置开始返回,0表示从第一个素材返回 + * @param count 每页数量 返回素材的数量,取值在1到20之间 + * @param noContent 1 表示不返回 content 字段,0 表示正常返回,默认为 0 + * @return 草稿信息列表 + * @throws WxErrorException . + */ + WxMpDraftList listDraft(int offset, int count, int noContent) throws WxErrorException; + + /** + * 获取草稿列表 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/batchget?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Get_draft_list.html
+   * 
+ * + * @param offset 分页页数,从0开始 从全部素材的该偏移位置开始返回,0表示从第一个素材返回 + * @param count 每页数量 返回素材的数量,取值在1到20之间 + * @return + * @throws WxErrorException + */ + WxMpDraftList listDraft(int offset, int count) throws WxErrorException; + + /** + * 获取草稿数量 + * 开发者可以根据本接口来获取草稿的总数。此接口只统计数量,不返回草稿的具体内容。 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/count?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Count_drafts.html
+   * 
+ * + * @return 草稿的总数 + * @throws WxErrorException . + */ + Long countDraft() throws WxErrorException; + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java new file mode 100644 index 0000000000..c695942790 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java @@ -0,0 +1,113 @@ +package me.chanjar.weixin.mp.api; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishInfo; +import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishList; +import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishStatus; + +/** + * 微信 发布能力 接口. + * + * @author dragon + * @date 2021-10-23 + */ +public interface WxMpFreePublishService { + + /** + * 发布接口 - 只有默认必填参数 + * 开发者需要先将图文素材以草稿的形式保存(见“草稿箱/新建草稿”,如需从已保存的草稿中选择,见“草稿箱/获取草稿列表”),选择要发布的草稿 media_id 进行发布 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/submit?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Publish.html
+   * 
+ * + * @param mediaId 要发布的草稿的media_id + * @throws WxErrorException . + */ + String submit(String mediaId) throws WxErrorException; + + /** + * 发布状态轮询接口 + * 开发者可以尝试通过下面的发布状态轮询接口获知发布情况。 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/get?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_status.html
+   * 
+ * + * @param publishId 发布任务id + * @throws WxErrorException . + */ + WxMpFreePublishStatus getPushStatus(String publishId) throws WxErrorException; + + /** + * 删除发布 + * 发布成功之后,随时可以通过该接口删除。此操作不可逆,请谨慎操作。 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/delete?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Delete_posts.html
+   * 
+ * + * @param articleId 成功发布时返回的 article_id + * @param index 要删除的文章在图文消息中的位置,第一篇编号为1,该字段不填或填0会删除全部文章 + * @throws WxErrorException . + */ + Boolean deletePush(String articleId, Integer index) throws WxErrorException; + + /** + * 删除发布 - 此条发布的所有内容,不指定文章编号 + * 发布成功之后,随时可以通过该接口删除。此操作不可逆,请谨慎操作。 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/delete?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Delete_posts.html
+   * 
+ * + * @param articleId 成功发布时返回的 article_id + * @throws WxErrorException . + */ + Boolean deletePushAllArticle(String articleId) throws WxErrorException; + + /** + * 通过 article_id 获取已发布文章 + * 开发者可以通过 article_id 获取已发布的图文信息。 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/getarticle?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_article_from_id.html
+   * 
+ * + * @param articleId 要获取的草稿的article_id + * @return 已发布文章信息 + * @throws WxErrorException . + */ + WxMpFreePublishInfo getArticleFromId(String articleId) throws WxErrorException; + + /** + * 获取成功发布列表 - 支持选择是否返回:图文消息的具体内容 + * + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/batchget?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html
+   * 
+ * + * @param offset 分页页数,从0开始 从全部素材的该偏移位置开始返回,0表示从第一个素材返回 + * @param count 每页数量 返回素材的数量,取值在1到20之间 + * @param noContent 1 表示不返回 content 字段,0 表示正常返回,默认为 0 + * @return 草稿信息列表 + * @throws WxErrorException . + */ + WxMpFreePublishList getPublicationRecords(int offset, int count, int noContent) throws WxErrorException; + + /** + * 获取成功发布列表 - 默认返回 图文消息的具体内容 + *
+   * 请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/batchget?access_token=ACCESS_TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html
+   * 
+ * + * @param offset 分页页数,从0开始 从全部素材的该偏移位置开始返回,0表示从第一个素材返回 + * @param count 每页数量 返回素材的数量,取值在1到20之间 + * @return + * @throws WxErrorException + */ + WxMpFreePublishList getPublicationRecords(int offset, int count) throws WxErrorException; + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java index 6b6e30b7f3..fbe9e2d43a 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java @@ -567,6 +567,20 @@ public interface WxMpService extends WxService { */ WxMpReimburseInvoiceService getReimburseInvoiceService(); + /** + * 返回草稿箱相关接口 + * + * @return WxMpDraftService + */ + WxMpDraftService getDraftService(); + + /** + * 返回发布能力接口 + * + * @return WxMpFreePublishService + */ + WxMpFreePublishService getFreePublishService(); + /** * . * @@ -818,4 +832,18 @@ public interface WxMpService extends WxService { * @param merchantInvoiceService the merchant invoice service */ void setMerchantInvoiceService(WxMpMerchantInvoiceService merchantInvoiceService); + + /** + * Sets draft service. + * + * @param draftService the draft service + */ + void setDraftService(WxMpDraftService draftService); + + /** + * Sets free publish service. + * + * @param freePublishService the free publish service + */ + void setFreePublishService(WxMpFreePublishService freePublishService); } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java index 2b8d9bfd39..d11499bd4f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java @@ -25,7 +25,11 @@ import me.chanjar.weixin.common.util.DataUtils; import me.chanjar.weixin.common.util.RandomUtils; import me.chanjar.weixin.common.util.crypto.SHA1; -import me.chanjar.weixin.common.util.http.*; +import me.chanjar.weixin.common.util.http.RequestExecutor; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor; +import me.chanjar.weixin.common.util.http.SimplePostRequestExecutor; +import me.chanjar.weixin.common.util.http.URIUtil; import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.common.util.json.WxGsonBuilder; import me.chanjar.weixin.mp.api.*; @@ -42,7 +46,16 @@ import java.util.Map; import java.util.concurrent.locks.Lock; -import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.*; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.CLEAR_QUOTA_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.FETCH_SHORTEN_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GEN_SHORTEN_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GET_CALLBACK_IP_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GET_CURRENT_AUTOREPLY_INFO_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GET_TICKET_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.NETCHECK_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.QRCONNECT_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.SEMANTIC_SEMPROXY_SEARCH_URL; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.SHORTURL_API_URL; /** * 基础实现类. @@ -146,6 +159,14 @@ public abstract class BaseWxMpServiceImpl implements WxMpService, RequestH @Setter private WxMpReimburseInvoiceService reimburseInvoiceService = new WxMpReimburseInvoiceServiceImpl(this); + @Getter + @Setter + private WxMpDraftService draftService = new WxMpDraftServiceImpl(this); + + @Getter + @Setter + private WxMpFreePublishService freePublishService = new WxMpFreePublishServiceImpl(this); + private Map configStorageMap; private int retrySleepMillis = 1000; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java new file mode 100644 index 0000000000..96ff9f70b6 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java @@ -0,0 +1,84 @@ +package me.chanjar.weixin.mp.api.impl; + +import lombok.AllArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonHelper; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.mp.api.WxMpDraftService; +import me.chanjar.weixin.mp.api.WxMpService; +import me.chanjar.weixin.mp.bean.draft.WxMpAddDraft; +import me.chanjar.weixin.mp.bean.draft.WxMpDraftArticles; +import me.chanjar.weixin.mp.bean.draft.WxMpDraftInfo; +import me.chanjar.weixin.mp.bean.draft.WxMpDraftList; +import me.chanjar.weixin.mp.bean.draft.WxMpUpdateDraft; +import me.chanjar.weixin.mp.enums.WxMpApiUrl; + +import java.util.ArrayList; +import java.util.List; + +/** + * 草稿箱能力-service实现类. + * + * @author dragon + * @date 2021-10-22 + */ +@AllArgsConstructor +public class WxMpDraftServiceImpl implements WxMpDraftService { + + private static final String MEDIA_ID = "media_id"; + private static final String ERRCODE_SUCCESS = "0"; + private static final String ERRCODE = "errcode"; + private final WxMpService mpService; + + @Override + public String addDraft(String title, String content, String thumbMediaId) throws WxErrorException { + List draftArticleList = new ArrayList<>(); + WxMpDraftArticles draftArticle = WxMpDraftArticles.builder() + .title(title).content(content).thumbMediaId(thumbMediaId).build(); + WxMpAddDraft addDraft = WxMpAddDraft.builder().articles(draftArticleList).build(); + draftArticleList.add(draftArticle); + return addDraft(addDraft); + } + + @Override + public String addDraft(WxMpAddDraft addDraft) throws WxErrorException { + String json = this.mpService.post(WxMpApiUrl.Draft.ADD_DRAFT, addDraft); + return GsonParser.parse(json).get(MEDIA_ID).toString(); + } + + @Override + public Boolean updateDraft(WxMpUpdateDraft updateDraftInfo) throws WxErrorException { + String json = this.mpService.post(WxMpApiUrl.Draft.UPDATE_DRAFT, updateDraftInfo); + return GsonParser.parse(json).get(ERRCODE).toString().equals(ERRCODE_SUCCESS); + } + + @Override + public WxMpDraftInfo getDraft(String mediaId) throws WxErrorException { + return WxMpDraftInfo.fromJson(this.mpService.post(WxMpApiUrl.Draft.GET_DRAFT, + GsonHelper.buildJsonObject(MEDIA_ID, mediaId))); + } + + @Override + public Boolean delDraft(String mediaId) throws WxErrorException { + String json = this.mpService.post(WxMpApiUrl.Draft.DEL_DRAFT, + GsonHelper.buildJsonObject(MEDIA_ID, mediaId)); + return GsonParser.parse(json).get(ERRCODE).toString().equals(ERRCODE_SUCCESS); + } + + @Override + public WxMpDraftList listDraft(int offset, int count, int noContent) throws WxErrorException { + return WxMpDraftList.fromJson(this.mpService.post(WxMpApiUrl.Draft.LIST_DRAFT, + GsonHelper.buildJsonObject("offset", offset, "count", count, "no_content", noContent))); + } + + @Override + public WxMpDraftList listDraft(int offset, int count) throws WxErrorException { + return listDraft(offset, count, 0); + } + + @Override + public Long countDraft() throws WxErrorException { + String json = this.mpService.get(WxMpApiUrl.Draft.COUNT_DRAFT, null); + return Long.valueOf(GsonParser.parse(json).get("total_count").toString()); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java new file mode 100644 index 0000000000..f8f9b36843 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java @@ -0,0 +1,72 @@ +package me.chanjar.weixin.mp.api.impl; + +import lombok.AllArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonHelper; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.mp.api.WxMpFreePublishService; +import me.chanjar.weixin.mp.api.WxMpService; +import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishInfo; +import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishList; +import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishStatus; +import me.chanjar.weixin.mp.enums.WxMpApiUrl; + +/** + * 发布能力-service实现类. + * + * @author dragon + * @date 2021-10-23 + */ +@AllArgsConstructor +public class WxMpFreePublishServiceImpl implements WxMpFreePublishService { + + private static final String MEDIA_ID = "media_id"; + private static final String PUBLISH_ID = "publish_id"; + private static final String ARTICLE_ID = "article_id"; + private static final String ERRCODE_SUCCESS = "0"; + private static final String ERRCODE = "errcode"; + private final WxMpService mpService; + + @Override + public String submit(String mediaId) throws WxErrorException { + String json = this.mpService.post(WxMpApiUrl.FreePublish.SUBMIT, + GsonHelper.buildJsonObject(MEDIA_ID, mediaId)); + return GsonParser.parse(json).get(PUBLISH_ID).toString(); + } + + @Override + public WxMpFreePublishStatus getPushStatus(String publishId) throws WxErrorException { + return WxMpFreePublishStatus.fromJson(this.mpService.post(WxMpApiUrl.FreePublish.GET_PUSH_STATUS, + GsonHelper.buildJsonObject(PUBLISH_ID, publishId))); + } + + @Override + public Boolean deletePush(String articleId, Integer index) throws WxErrorException { + String json = this.mpService.post(WxMpApiUrl.FreePublish.DEL_PUSH, + GsonHelper.buildJsonObject(ARTICLE_ID, articleId, "index", index)); + return GsonParser.parse(json).get(ERRCODE).toString().equals(ERRCODE_SUCCESS); + } + + @Override + public Boolean deletePushAllArticle(String articleId) throws WxErrorException { + // index字段不填或填0会删除全部文章 + return deletePush(articleId, 0); + } + + @Override + public WxMpFreePublishInfo getArticleFromId(String articleId) throws WxErrorException { + return WxMpFreePublishInfo.fromJson(this.mpService.post(WxMpApiUrl.FreePublish.GET_ARTICLE, + GsonHelper.buildJsonObject(ARTICLE_ID, articleId))); + } + + @Override + public WxMpFreePublishList getPublicationRecords(int offset, int count, int noContent) throws WxErrorException { + return WxMpFreePublishList.fromJson(this.mpService.post(WxMpApiUrl.FreePublish.BATCH_GET, + GsonHelper.buildJsonObject("offset", offset, "count", count, "no_content", noContent))); + } + + @Override + public WxMpFreePublishList getPublicationRecords(int offset, int count) throws WxErrorException { + return getPublicationRecords(offset, count, 0); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java new file mode 100644 index 0000000000..400b228c0b --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java @@ -0,0 +1,44 @@ +package me.chanjar.weixin.mp.bean.draft; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 草稿箱能力-新建草稿. + * + * @author dragon + * @date 2021-10-22 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class WxMpAddDraft implements ToJson, Serializable { + private static final long serialVersionUID = 2481699972367293721L; + + /** + * 图文素材列表 + */ + @SerializedName("articles") + private List articles; + + public static WxMpAddDraft fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpAddDraft.class); + } + + @Override + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java new file mode 100644 index 0000000000..fdcff5c293 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java @@ -0,0 +1,81 @@ +package me.chanjar.weixin.mp.bean.draft; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 草稿箱能力-图文素材文章实体. + * + * @author dragon + * @date 2021-10-22 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class WxMpDraftArticles implements ToJson, Serializable { + /** + * 标题 + */ + @SerializedName("title") + private String title; + /** + * 作者 + */ + @SerializedName("author") + private String author; + /** + * 图文消息的摘要,仅有单图文消息才有摘要,多图文此处为空。如果本字段为没有填写,则默认抓取正文前54个字。 + */ + @SerializedName("digest") + private String digest; + /** + * 图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS,涉及图片url必须来源 "上传图文消息内的图片获取URL"接口获取。外部图片url将被过滤。 + */ + @SerializedName("content") + private String content; + /** + * 图文消息的原文地址,即点击“阅读原文”后的URL + */ + @SerializedName("content_source_url") + private String contentSourceUrl; + /** + * 图文消息的封面图片素材id(必须是永久MediaID) + */ + @SerializedName("thumb_media_id") + private String thumbMediaId; + /** + * 是否显示封面,0为false,即不显示,1为true,即显示(默认) + */ + @SerializedName("show_cover_pic") + private Integer showCoverPic; + /** + * 是否打开评论,0不打开(默认),1打开 + */ + @SerializedName("need_open_comment") + private Integer needOpenComment; + /** + * 是否粉丝才可评论,0所有人可评论(默认),1粉丝才可评论 + */ + @SerializedName("only_fans_can_comment") + private Integer onlyFansCanComment; + + public static WxMpDraftArticles fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpDraftArticles.class); + } + + @Override + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java new file mode 100644 index 0000000000..92a0c928d9 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java @@ -0,0 +1,44 @@ +package me.chanjar.weixin.mp.bean.draft; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 草稿箱能力-获取草稿详情. + * + * @author dragon + * @date 2021-10-22 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class WxMpDraftInfo implements ToJson, Serializable { + private static final long serialVersionUID = 6111694033486314392L; + + /** + * 文章列表 + */ + @SerializedName("news_item") + private List newsItem; + + public static WxMpDraftInfo fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpDraftInfo.class); + } + + @Override + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java new file mode 100644 index 0000000000..05294cade5 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java @@ -0,0 +1,33 @@ +package me.chanjar.weixin.mp.bean.draft; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 一条草稿 + * + * @author dragon + * @date 2021-10-22 + */ +@Data +public class WxMpDraftItem implements Serializable { + private static final long serialVersionUID = 214696458030935146L; + + /** + * 图文消息的id + */ + @SerializedName("media_id") + private String mediaId; + /** + * 图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS。 + */ + @SerializedName("content") + private WxMpDraftInfo content; + + public static WxMpDraftItem fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpDraftItem.class); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java new file mode 100644 index 0000000000..924ce4b048 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java @@ -0,0 +1,41 @@ +package me.chanjar.weixin.mp.bean.draft; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 草稿箱能力-获取草稿列表. + * + * @author dragon + * @date 2021-10-22 + */ +@Data +public class WxMpDraftList implements Serializable { + private static final long serialVersionUID = 7216822694952035295L; + + /** + * 草稿素材的总数 + */ + @SerializedName("total_count") + private Integer totalCount; + + /** + * 本次调用获取的素材的数量 + */ + @SerializedName("item_count") + private Integer itemCount; + + /** + * 所有草稿列表 + */ + @SerializedName("item") + private List items; + + public static WxMpDraftList fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpDraftList.class); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java new file mode 100644 index 0000000000..fa92a62397 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java @@ -0,0 +1,55 @@ +package me.chanjar.weixin.mp.bean.draft; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 草稿箱能力-修改草稿. + * + * @author dragon + * @date 2021-10-22 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class WxMpUpdateDraft implements ToJson, Serializable { + + private static final long serialVersionUID = -8564521168423899915L; + /** + * 要修改的图文消息的id + */ + @SerializedName("media_id") + private String mediaId; + + /** + * 要更新的文章在图文消息中的位置(多图文消息时,此字段才有意义),第一篇为0 + */ + @SerializedName("index") + private Integer index; + + /** + * 图文素材列表 + */ + @SerializedName("articles") + private WxMpDraftArticles articles; + + public static WxMpUpdateDraft fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpUpdateDraft.class); + } + + @Override + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java new file mode 100644 index 0000000000..20f915f195 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java @@ -0,0 +1,85 @@ +package me.chanjar.weixin.mp.bean.freepublish; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 一条发布的图文记录 + * + * @author dragon + * @date 2021-10-23 + */ +@NoArgsConstructor +@Data +public class WxMpFreePublishArticles implements Serializable { + private static final long serialVersionUID = -6435229818150835883L; + + /** + * 标题 + */ + @SerializedName("title") + private String title; + /** + * 作者 + */ + @SerializedName("author") + private String author; + /** + * 图文消息的摘要,仅有单图文消息才有摘要,多图文此处为空。 + */ + @SerializedName("digest") + private String digest; + /** + * 图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS + */ + @SerializedName("content") + private String content; + /** + * 图文消息的原文地址,即点击“阅读原文”后的URL + */ + @SerializedName("content_source_url") + private String contentSourceUrl; + /** + * 图文消息的封面图片素材id(一定是永久MediaID) + */ + @SerializedName("thumb_media_id") + private String thumbMediaId; + /** + * 是否显示封面,0为false,即不显示,1为true,即显示(默认) + */ + @SerializedName("show_cover_pic") + private Integer showCoverPic; + /** + * 是否打开评论,0不打开(默认),1打开 + */ + @SerializedName("need_open_comment") + private Integer needOpenComment; + /** + * 是否粉丝才可评论,0所有人可评论(默认),1粉丝才可评论 + */ + @SerializedName("only_fans_can_comment") + private Integer onlyFansCanComment; + + /* + * ===== 上面的参数,就是草稿箱的内容的字段,为了后续扩展,单独写一份==== + */ + + /** + * 草稿的临时链接 + */ + @SerializedName("url") + private String url; + /** + * 该图文是否被删除 + */ + @SerializedName("is_deleted") + private Boolean isDeleted; + + public static WxMpFreePublishArticles fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpFreePublishArticles.class); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java new file mode 100644 index 0000000000..79205aab98 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java @@ -0,0 +1,44 @@ +package me.chanjar.weixin.mp.bean.freepublish; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 发布能力-通过 article_id 获取已发布文章. + * + * @author dragon + * @date 2021-10-23 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class WxMpFreePublishInfo implements ToJson, Serializable { + private static final long serialVersionUID = 3331288672996730705L; + + /** + * 文章列表 + */ + @SerializedName("news_item") + private List newsItem; + + public static WxMpFreePublishInfo fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpFreePublishInfo.class); + } + + @Override + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java new file mode 100644 index 0000000000..f32b34a9ff --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java @@ -0,0 +1,35 @@ +package me.chanjar.weixin.mp.bean.freepublish; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 发布列表的一条记录 + * + * @author dragon + * @date 2021-10-23 + */ +@NoArgsConstructor +@Data +public class WxMpFreePublishItem implements Serializable { + private static final long serialVersionUID = -6435229818150835883L; + + /** + * 成功发布的图文消息id + */ + @SerializedName("article_id") + private String articleId; + /** + * 图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS。 + */ + @SerializedName("content") + private WxMpFreePublishInfo content; + + public static WxMpFreePublishItem fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpFreePublishItem.class); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java new file mode 100644 index 0000000000..c0c2e2dfba --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java @@ -0,0 +1,41 @@ +package me.chanjar.weixin.mp.bean.freepublish; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 发布能力-获取成功发布列表. + * + * @author dragon + * @date 2021-10-22 + */ +@Data +public class WxMpFreePublishList implements Serializable { + private static final long serialVersionUID = 764054773431665250L; + + /** + * 成功发布素材的总数 + */ + @SerializedName("total_count") + private Integer totalCount; + + /** + * 本次调用获取的素材的数量 + */ + @SerializedName("item_count") + private Integer itemCount; + + /** + * 所有成功发布列表 + */ + @SerializedName("item") + private List items; + + public static WxMpFreePublishList fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpFreePublishList.class); + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java new file mode 100644 index 0000000000..5734123960 --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java @@ -0,0 +1,56 @@ +package me.chanjar.weixin.mp.bean.freepublish; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 发布能力-发布状态轮询接口,通过publishId返回 article_id(删除发布时需要用到). + * + * @author dragon + * @date 2021-10-23 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class WxMpFreePublishStatus implements ToJson, Serializable { + + private static final long serialVersionUID = -7526369389476785732L; + private String publish_id; + private Integer publish_status; + private String article_id; + private ArticleDetail article_detail; + private List fail_idx; + + public static WxMpFreePublishStatus fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMpFreePublishStatus.class); + } + + @Override + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + + @NoArgsConstructor + @Data + public static class ArticleDetail { + private Integer count; + private List item; + + @NoArgsConstructor + @Data + public static class Item { + private Integer idx; + private String article_url; + } + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxMpApiUrl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxMpApiUrl.java index 8f6cfeea4c..6ecf757549 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxMpApiUrl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxMpApiUrl.java @@ -5,7 +5,10 @@ import me.chanjar.weixin.mp.config.WxMpConfigStorage; import me.chanjar.weixin.mp.config.WxMpHostConfig; -import static me.chanjar.weixin.mp.config.WxMpHostConfig.*; +import static me.chanjar.weixin.mp.config.WxMpHostConfig.API_DEFAULT_HOST_URL; +import static me.chanjar.weixin.mp.config.WxMpHostConfig.MP_DEFAULT_HOST_URL; +import static me.chanjar.weixin.mp.config.WxMpHostConfig.OPEN_DEFAULT_HOST_URL; +import static me.chanjar.weixin.mp.config.WxMpHostConfig.buildUrl; /** *
@@ -1374,6 +1377,90 @@ enum Guide implements WxMpApiUrl {
     ;
 
 
+    private final String prefix;
+    private final String path;
+
+  }
+
+  /**
+   * 草稿箱 能力:
+   * 新建草稿
+   * 获取草稿
+   * 删除草稿
+   * 修改草稿
+   * 获取草稿总数
+   * 获取草稿列表
+   * MP端开关(仅内测期间使用)- 上线后废弃,没实现,可以自己去公众号后台开启草稿箱
+   */
+  @AllArgsConstructor
+  @Getter
+  enum Draft implements WxMpApiUrl {
+
+    /**
+     * 新建草稿
+     */
+    ADD_DRAFT(API_DEFAULT_HOST_URL, "/cgi-bin/draft/add"),
+    /**
+     * 修改草稿
+     */
+    UPDATE_DRAFT(API_DEFAULT_HOST_URL, "/cgi-bin/draft/update"),
+    /**
+     * 获取草稿
+     */
+    GET_DRAFT(API_DEFAULT_HOST_URL, "/cgi-bin/draft/get"),
+    /**
+     * 删除草稿
+     */
+    DEL_DRAFT(API_DEFAULT_HOST_URL, "/cgi-bin/draft/delete"),
+    /**
+     * 获取草稿列表
+     */
+    LIST_DRAFT(API_DEFAULT_HOST_URL, "/cgi-bin/draft/batchget"),
+    /**
+     * 获取草稿总数
+     */
+    COUNT_DRAFT(API_DEFAULT_HOST_URL, "/cgi-bin/draft/count");
+
+    private final String prefix;
+    private final String path;
+
+  }
+
+  /**
+   * 发布能力:
+   * 发布接口
+   * 发布状态轮询接口
+   * 事件推送发布结果 -- 是回调,没实现
+   * 删除发布
+   * 通过 article_id 获取已发布文章
+   * 获取成功发布列表
+   */
+  @AllArgsConstructor
+  @Getter
+  enum FreePublish implements WxMpApiUrl {
+
+    /**
+     * 发布接口
+     */
+    SUBMIT(API_DEFAULT_HOST_URL, "/cgi-bin/freepublish/submit"),
+    /**
+     * 通过 article_id 获取已发布文章
+     */
+    GET_ARTICLE(API_DEFAULT_HOST_URL, "/cgi-bin/freepublish/getarticle"),
+    /**
+     * 发布状态轮询接口
+     */
+    GET_PUSH_STATUS(API_DEFAULT_HOST_URL, "/cgi-bin/freepublish/get"),
+    /**
+     * 删除发布
+     */
+    DEL_PUSH(API_DEFAULT_HOST_URL, "/cgi-bin/freepublish/delete"),
+    /**
+     * 获取成功发布列表
+     */
+    BATCH_GET(API_DEFAULT_HOST_URL, "/cgi-bin/freepublish/batchget")
+    ;
+
     private final String prefix;
     private final String path;
 
diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java
new file mode 100644
index 0000000000..193580a9f1
--- /dev/null
+++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java
@@ -0,0 +1,127 @@
+package me.chanjar.weixin.mp.api.impl;
+
+import com.google.inject.Inject;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.mp.api.WxMpService;
+import me.chanjar.weixin.mp.api.test.ApiTestModule;
+import me.chanjar.weixin.mp.bean.draft.WxMpAddDraft;
+import me.chanjar.weixin.mp.bean.draft.WxMpDraftArticles;
+import me.chanjar.weixin.mp.bean.draft.WxMpDraftInfo;
+import me.chanjar.weixin.mp.bean.draft.WxMpDraftList;
+import me.chanjar.weixin.mp.bean.draft.WxMpUpdateDraft;
+import org.testng.annotations.Guice;
+import org.testng.annotations.Test;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/**
+ * 草稿箱单元测试.
+ *
+ * @author dragon
+ * @date 2021-10-22
+ */
+@Guice(modules = ApiTestModule.class)
+public class WxMpDraftServiceImplTest {
+
+  /**
+   * 1.先上传一个永久图片素材:me.chanjar.weixin.mp.api.impl.WxMpMaterialServiceImplTest.testUploadMaterial
+   * 2.后续图文需要设置一个永久素材id
+   */
+  final String thumbMediaId = "zUUtT8ZYeXzZ4slFbtnAkh7Yd-f45DbFoF9ERzVC6s4";
+
+  /**
+   * 新增草稿后返回的id,后续查询、修改、删除,获取等需要使用
+   */
+  final String mediaId = "zUUtT8ZYeXzZ4slFbtnAkpgGKyqnTsjtUvMdVBRWJVk";
+
+  @Inject
+  protected WxMpService wxService;
+
+  @Test
+  public void testAddDraft() throws WxErrorException {
+    // {"mediaId":"zUUtT8ZYeXzZ4slFbtnAkh7Yd-f45DbFoF9ERzVC6s4","url":"http://mmbiz.qpic.cn/mmbiz_jpg/fLtyChQRfH84IyicNUbGt3l3IlHxJRibSFz7Tky0ibmzKykzVbo9tZGYhXQGJ2npFtDPbvPhKYxBz6JxkYIibTmUicQ/0?wx_fmt=jpeg"}
+    this.wxService.getDraftService().addDraft("标题", "图文消息的具体内容", thumbMediaId);
+    // 【响应数据】:{"media_id":"zUUtT8ZYeXzZ4slFbtnAks-nZeGiPQmwvhShTh72CqM","item":[]}
+  }
+
+  @Test
+  public void testAddGuide_another() throws WxErrorException {
+    List draftArticleList = new ArrayList<>();
+    WxMpDraftArticles draftArticle = WxMpDraftArticles.builder()
+      .title("新建草稿-对象形式")
+      .author("dragon")
+      .digest("图文消息的摘要,仅有单图文消息才有摘要,多图文此处为空")
+      .content("图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS")
+      .contentSourceUrl("https://github.com/Wechat-Group/WxJava")
+      .thumbMediaId(thumbMediaId)
+      // 显示封面、打开评论、所有人可评论
+      .showCoverPic(1).needOpenComment(1).onlyFansCanComment(0)
+      .build();
+    draftArticleList.add(draftArticle);
+
+    WxMpAddDraft addDraft = WxMpAddDraft.builder().articles(draftArticleList).build();
+    String mediaId = this.wxService.getDraftService().addDraft(addDraft);
+    // 【响应数据】:{"media_id":"zUUtT8ZYeXzZ4slFbtnAkpgGKyqnTsjtUvMdVBRWJVk","item":[]}
+    assertThat(mediaId).isNotNull();
+  }
+
+  @Test
+  public void testGetDraft() throws WxErrorException {
+    final WxMpDraftInfo draftInfo = this.wxService.getDraftService().getDraft(mediaId);
+    assertThat(draftInfo).isNotNull();
+    // 【响应数据】:{"news_item":[{"title":"标题","author":"","digest":"图文消息的具体内容","content":"图文消息的具体内容","content_source_url":"","thumb_media_id":"zUUtT8ZYeXzZ4slFbtnAkh7Yd-f45DbFoF9ERzVC6s4","show_cover_pic":1,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=Mzk0OTI5MzM1OQ==&mid=100000006&idx=1&sn=89903965ae5ebd6014903c7c5ca34daa&chksm=435bd946742c5050d18da32289904db5ede8bbd157d181438231a1762b85030419b3c0ed4c00#rd","thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/fLtyChQRfH84IyicNUbGt3l3IlHxJRibSFz7Tky0ibmzKykzVbo9tZGYhXQGJ2npFtDPbvPhKYxBz6JxkYIibTmUicQ\/0?wx_fmt=jpeg","need_open_comment":0,"only_fans_can_comment":0}],"create_time":1634886802,"update_time":1634886802}
+  }
+
+  @Test
+  public void testUpdateDraft() throws WxErrorException {
+    WxMpDraftArticles draftArticles = WxMpDraftArticles.builder()
+      .title("新标题").content("新图文消息的具体内容").thumbMediaId(thumbMediaId).build();
+    WxMpUpdateDraft updateDraft = WxMpUpdateDraft.builder()
+      .mediaId(mediaId)
+      .index(0)
+      .articles(draftArticles)
+      .build();
+    Boolean updateDraftResult = this.wxService.getDraftService().updateDraft(updateDraft);
+    // assertThat(updateDraftResult).isTrue();
+    assertThat(updateDraftResult).isTrue();
+  }
+
+  @Test
+  public void testDelDraft() throws WxErrorException {
+    Boolean delDraftResult = this.wxService.getDraftService().delDraft(mediaId);
+    // 【响应数据】:{"errcode":0,"errmsg":"ok"}
+    assertThat(delDraftResult).isTrue();
+  }
+
+  @Test
+  public void testListDraft() throws WxErrorException {
+    WxMpDraftList draftList = this.wxService.getDraftService().listDraft(0, 10);
+    /*
+    【响应数据】:{"item":[{"media_id":"zUUtT8ZYeXzZ4slFbtnAks-nZeGiPQmwvhShTh72CqM",
+    "content":{
+      "news_item":
+      [
+        {"title":"标题","author":"","digest":"图文消息的具体内容","content":"图文消息的具体内容",
+        "content_source_url":"","thumb_media_id":"zUUtT8ZYeXzZ4slFbtnAkh7Yd-f45DbFoF9ERzVC6s4",
+        "show_cover_pic":1,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=Mzk0OTI5MzM1?wx_fmt=jpeg",
+        "need_open_comment":0,"only_fans_can_comment":0}],
+        "create_time":1634886802,"update_time":1634886802},"update_time":1634886802}
+      ]
+    ,"total_count":1,"item_count":1}
+
+    */
+    assertThat(draftList).isNotNull();
+  }
+
+  @Test
+  public void testCountDraft() throws WxErrorException {
+    Long countDraft = this.wxService.getDraftService().countDraft();
+    // 【响应数据】:{"total_count":1}
+    assertThat(countDraft).isNotNull();
+  }
+
+}
+
diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java
new file mode 100644
index 0000000000..ff5cd0e5d3
--- /dev/null
+++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java
@@ -0,0 +1,109 @@
+package me.chanjar.weixin.mp.api.impl;
+
+import com.google.inject.Inject;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.mp.api.WxMpService;
+import me.chanjar.weixin.mp.api.test.ApiTestModule;
+import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishInfo;
+import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishList;
+import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishStatus;
+import org.testng.annotations.Guice;
+import org.testng.annotations.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/**
+ * 发布能力-单元测试.
+ *
+ * @author dragon
+ * @date 2021-10-23
+ */
+@Guice(modules = ApiTestModule.class)
+public class WxMpFreePublishServiceImplTest {
+
+  /**
+   * 新增草稿后返回的id,发布需要使用
+   */
+  final String mediaId = "HKVdzjkDfooMqBqJtvSs2EEeRAJaM33gJgkii_JDOHg";
+
+  /**
+   * 发布后的id,后续查询等需要使用
+   */
+  final String publishId = "2650177669";
+
+  /**
+   * 图文的 article_id,后续查询图文详情、删除发布内容 需要使用
+   * 要根据 publishId 来获取 article_id
+   *
+   * @see this.testGetPushStatus
+   */
+  final String articleId = "zjMKVd1g66BkEkpetwml4ElbDdniE8JeI2Ec324Sjqg";
+
+  @Inject
+  protected WxMpService wxService;
+
+  @Test
+  public void testSubmit() throws WxErrorException {
+    String submit = this.wxService.getFreePublishService().submit(mediaId);
+    assertThat(submit).isNotBlank();
+    // 【响应数据】:{"errcode":0,"errmsg":"ok","publish_id":2650177668}
+  }
+
+  @Test
+  public void testGetPushStatus() throws WxErrorException {
+    WxMpFreePublishStatus pushStatus = this.wxService.getFreePublishService().getPushStatus(publishId);
+    assertThat(pushStatus).isNotNull();
+    // 【响应数据】:{"publish_id":2650177668,"publish_status":0,"article_id":"zjMKVd1g66BkEkpetwml4J-4gNf4I1nsh-B-r_inemw",
+    // "article_detail":{"count":1,"item":
+    // [{"idx":1,"article_url":
+    // "https://mp.weixin.qq.com/s?__biz=MzAwMTE2MzA1xxxxxxxxxx"
+    // }]},"fail_idx":[]}
+    // article_url -> 已发布内容可被自定义菜单、自动回复、话题引用,也可用于公开传播
+  }
+
+  @Test
+  public void testGetArticleFromId() throws WxErrorException {
+    WxMpFreePublishInfo articleFromId = this.wxService.getFreePublishService().getArticleFromId(articleId);
+    assertThat(articleFromId).isNotNull();
+    /* 【响应数据】:{"news_item":[{"title":"欢迎你加入啊~ 这是我的第一条文字消息草稿","author":"","digest":"","content":"欢迎你加入啊~ 这是我的第一条文字消息草稿",
+    "content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq
+    .com\/s?__biz=MzAwMTE2MzA1Mg==&mid=2650177668","thumb_url":"","need_open_comment":1,"only_fans_can_comment":1,"is_deleted":false}],
+    "create_time":1634961670,"update_time":1634961672}
+     */
+  }
+
+  @Test
+  public void testDelPush() throws WxErrorException {
+    Boolean deletePush = this.wxService.getFreePublishService().deletePush(articleId, 0);
+    // 【响应数据】:{"errcode":0,"errmsg":"ok"}
+    assertThat(deletePush).isTrue();
+  }
+
+  @Test
+  public void testDeletePushAllArticle() throws WxErrorException {
+    Boolean deletePush = this.wxService.getFreePublishService().deletePushAllArticle(articleId);
+    // 【响应数据】:{"errcode":0,"errmsg":"ok"}
+    assertThat(deletePush).isTrue();
+  }
+
+  @Test
+  public void testGetPublicationRecords() throws WxErrorException {
+    WxMpFreePublishList publicationRecords = this.wxService.getFreePublishService().getPublicationRecords(0, 10, 0);
+    /*
+    【响应数据】:
+    {"item":[{"article_id":"zjMKVd1g66BkEkpetwml4BOSzatuEYNY3TFhCc0kSIE","content":{"news_item":[
+    {"title":"新建草稿-对象形式","author":"dragon","digest":"图文消息的摘要,仅有单图文消息才有摘要,多图文此处为空",
+    "content":"图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS",
+    "content_source_url":"https:\/\/github.com\/Wechat-Group\/WxJava","thumb_media_id":"HKVdzjkDfooMqBqJtvSs2Ajz2v6L_vtGhyyr_mqKcPU",
+    "show_cover_pic":1,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzAwMTE2MzA1Mg==&mid=26501776710e5adb91#rd",
+    "thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/0QSAUfroWrUmxHthQ\/0?wx_fmt=jpeg",
+    "need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],
+    "create_time":1634976306,"update_time":1634976318}}
+    ]
+    ,"total_count":1,"item_count":1}
+    */
+    assertThat(publicationRecords).isNotNull();
+  }
+
+}
+

From a2042dd7c285e28c8da8080b67d9d630e7f3754c Mon Sep 17 00:00:00 2001
From: tt <30398051+zhentang3@users.noreply.github.com>
Date: Sat, 23 Oct 2021 23:25:58 +0800
Subject: [PATCH 017/622] =?UTF-8?q?:art:=20#2354=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91urlscheme=E5=A2=9E=E5=8A=A0=E8=A6=81?=
 =?UTF-8?q?=E6=89=93=E5=BC=80=E7=9A=84=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=89=88?=
 =?UTF-8?q?=E6=9C=AC=E5=AD=97=E6=AE=B5=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=80=BC?=
 =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java
index 799a7390a6..80c5f90347 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java
@@ -39,6 +39,12 @@ public class WxMaGenerateSchemeRequest {
   @SerializedName("expire_time")
   private Long expireTime;
 
+  /**
+   * 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop"默认值:release
+   */
+  @SerializedName("env_version")
+  private String envVersion = "release";
+
   @Data
   @Builder(builderMethodName = "newBuilder")
   public static class JumpWxa {

From 44e4ee44160e1a85723c0c93e0ad107ff1286892 Mon Sep 17 00:00:00 2001
From: Kyle Scully 
Date: Sat, 23 Oct 2021 08:26:45 -0700
Subject: [PATCH 018/622] :art: modifier order

---
 .../weixin/common/util/http/WxDnsResolver.java     |  2 +-
 .../cp/config/impl/WxCpRedissonConfigImpl.java     |  8 ++++----
 .../config/impl/WxMaRedissonConfigImpl.java        |  8 ++++----
 .../wx/miniapp/util/WxMaConfigHolder.java          |  2 +-
 .../weixin/mp/util/WxMpConfigStorageHolder.java    |  2 +-
 .../impl/AbstractWxOpenInRedisConfigStorage.java   | 14 +++++++-------
 .../wxpay/bean/request/BaseWxPayRequest.java       |  2 +-
 .../qidian/util/WxQidianConfigStorageHolder.java   |  2 +-
 8 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java
index d0321af097..ff0977e8d8 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java
@@ -18,7 +18,7 @@
  */
 public class WxDnsResolver implements DnsResolver {
 
-  private final static String WECHAT_API_URL = "api.weixin.qq.com";
+  private static final String WECHAT_API_URL = "api.weixin.qq.com";
   private static Map MAPPINGS = new HashMap<>();
   protected final Logger log = LoggerFactory.getLogger(WxDnsResolver.class);
   private String wxApiIp;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java
index 61894b7599..a449348ad7 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java
@@ -20,19 +20,19 @@ public class WxCpRedissonConfigImpl extends WxCpDefaultConfigImpl {
   /**
    * The constant LOCK_KEY.
    */
-  protected final static String LOCK_KEY = "wechat_cp_lock:";
+  protected static final String LOCK_KEY = "wechat_cp_lock:";
   /**
    * The constant CP_ACCESS_TOKEN_KEY.
    */
-  protected final static String CP_ACCESS_TOKEN_KEY = "wechat_cp_access_token_key:";
+  protected static final String CP_ACCESS_TOKEN_KEY = "wechat_cp_access_token_key:";
   /**
    * The constant CP_JSAPI_TICKET_KEY.
    */
-  protected final static String CP_JSAPI_TICKET_KEY = "wechat_cp_jsapi_ticket_key:";
+  protected static final String CP_JSAPI_TICKET_KEY = "wechat_cp_jsapi_ticket_key:";
   /**
    * The constant CP_AGENT_JSAPI_TICKET_KEY.
    */
-  protected final static String CP_AGENT_JSAPI_TICKET_KEY = "wechat_cp_agent_jsapi_ticket_key:";
+  protected static final String CP_AGENT_JSAPI_TICKET_KEY = "wechat_cp_agent_jsapi_ticket_key:";
   private final WxRedisOps redisOps;
   /**
    * redis 存储的 key 的前缀,可为空
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java
index c45ad50946..b2d115fd26 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java
@@ -18,10 +18,10 @@
  */
 public class WxMaRedissonConfigImpl extends WxMaDefaultConfigImpl {
 
-  protected final static String LOCK_KEY = "wechat_ma_lock:";
-  protected final static String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:";
-  protected final static String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:";
-  protected final static String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:";
+  protected static final String LOCK_KEY = "wechat_ma_lock:";
+  protected static final String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:";
+  protected static final String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:";
+  protected static final String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:";
 
   /**
    * redis 存储的 key 的前缀,可为空
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java
index e73cb2282d..f99e9616d8 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java
@@ -7,7 +7,7 @@
  * @date 2020-08-16
  */
 public class WxMaConfigHolder {
-  private final static ThreadLocal THREAD_LOCAL = new ThreadLocal() {
+  private static final ThreadLocal THREAD_LOCAL = new ThreadLocal() {
     @Override
     protected String initialValue() {
       return "default";
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java
index e844c4866b..bb3d8eb43c 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java
@@ -5,7 +5,7 @@
  * @date 2019-03-20 22:06
  */
 public class WxMpConfigStorageHolder {
-  private final static ThreadLocal THREAD_LOCAL = new ThreadLocal() {
+  private static final ThreadLocal THREAD_LOCAL = new ThreadLocal() {
     @Override
     protected String initialValue() {
       return "default";
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java
index 52799da57c..5f21a94af3 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java
@@ -8,16 +8,16 @@
  * @date 2020/01/09
  **/
 public abstract class AbstractWxOpenInRedisConfigStorage extends WxOpenInMemoryConfigStorage {
-  protected final static String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:";
-  protected final static String COMPONENT_ACCESS_TOKEN_KEY = "wechat_component_access_token:";
+  protected static final String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:";
+  protected static final String COMPONENT_ACCESS_TOKEN_KEY = "wechat_component_access_token:";
 
-  protected final static String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_token:";
-  protected final static String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:";
+  protected static final String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_token:";
+  protected static final String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:";
 
-  protected final static String LOCK_KEY = "wechat_lock:";
+  protected static final String LOCK_KEY = "wechat_lock:";
 
-  protected final static String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:";
-  protected final static String CARD_API_TICKET_KEY = "wechat_card_api_ticket:";
+  protected static final String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:";
+  protected static final String CARD_API_TICKET_KEY = "wechat_card_api_ticket:";
 
   /**
    * redis 存储的 key 的前缀,可为空
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/BaseWxPayRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/BaseWxPayRequest.java
index 394bc8969b..fde7f7150f 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/BaseWxPayRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/BaseWxPayRequest.java
@@ -322,7 +322,7 @@ public Map getSignParams() {
    *
    * @param map 传入的属性Map
    */
-  abstract protected void storeMap(Map map);
+  protected abstract void storeMap(Map map);
 
   /**
    * 
diff --git a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java
index 1177ce4ac6..9ce4366b99 100644
--- a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java
+++ b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java
@@ -5,7 +5,7 @@
  * @date 2020年12月26日
  */
 public class WxQidianConfigStorageHolder {
-  private final static ThreadLocal THREAD_LOCAL = new ThreadLocal() {
+  private static final ThreadLocal THREAD_LOCAL = new ThreadLocal() {
     @Override
     protected String initialValue() {
       return "default";

From 3039dd018e3faa11230a44f842b43db9b3fabbda Mon Sep 17 00:00:00 2001
From: Kyle Scully 
Date: Sat, 23 Oct 2021 08:27:14 -0700
Subject: [PATCH 019/622] :art: Use explicit types on lambda arguments

---
 .../common/util/http/apache/ApacheHttpDnsClientBuilder.java | 2 +-
 .../chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java | 2 +-
 .../test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java | 6 +++---
 .../binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java | 2 +-
 .../chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
index af3a32ff71..698eb47bb9 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
@@ -48,7 +48,7 @@ public class ApacheHttpDnsClientBuilder implements ApacheHttpClientBuilder {
 
   private DnsResolver dnsResover;
 
-  private HttpRequestRetryHandler httpRequestRetryHandler = (exception, executionCount, context) -> false;
+  private HttpRequestRetryHandler httpRequestRetryHandler = (IOException exception, int executionCount, HttpContext context) -> false;
   private SSLConnectionSocketFactory sslConnectionSocketFactory = SSLConnectionSocketFactory.getSocketFactory();
   private PlainConnectionSocketFactory plainConnectionSocketFactory = PlainConnectionSocketFactory.getSocketFactory();
   private String httpProxyHost;
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java
index 739470a2d7..2e91aacbf4 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java
@@ -92,7 +92,7 @@ public WxCpConfigStorage getWxCpConfigStorage() {
     RequestExecutor re = mock(RequestExecutor.class);
 
     AtomicInteger counter = new AtomicInteger();
-    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer(invocation -> {
+    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
       counter.incrementAndGet();
       WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
       throw new WxErrorException(error);
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java
index 52bc8e2ab7..afc596df1b 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java
@@ -49,14 +49,14 @@ private static void initWeixin() throws IOException {
       wxCpService = new WxCpServiceImpl();
       wxCpService.setWxCpConfigStorage(config);
 
-      WxCpMessageHandler handler = (wxMessage, context, wxService, sessionManager) -> {
+      WxCpMessageHandler handler = (WxCpXmlMessage wxMessage, Map context, WxCpService wxService, WxSessionManager sessionManager) -> {
         WxCpXmlOutTextMessage m = WxCpXmlOutMessage.TEXT().content("测试加密消息")
           .fromUser(wxMessage.getToUserName())
           .toUser(wxMessage.getFromUserName()).build();
         return m;
       };
 
-      WxCpMessageHandler oauth2handler = (wxMessage, context, wxService, sessionManager) -> {
+      WxCpMessageHandler oauth2handler = (WxCpXmlMessage wxMessage, Map context, WxCpService wxService, WxSessionManager sessionManager) -> {
         String href = "测试oauth2";
@@ -78,7 +78,7 @@ private static void initWeixin() throws IOException {
         .end()
         .rule()
         .event(WxCpConsts.EventType.CHANGE_CONTACT)
-        .handler((wxMessage, context, wxCpService, sessionManager) -> {
+        .handler((WxCpXmlMessage wxMessage, Map context, WxCpService wxCpService, WxSessionManager sessionManager) -> {
           System.out.println("通讯录发生变更");
           return null;
         })
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java
index 73343d8e4e..7310a8fcd5 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java
@@ -127,7 +127,7 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException {
     RequestExecutor re = mock(RequestExecutor.class);
 
     AtomicInteger counter = new AtomicInteger();
-    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer(invocation -> {
+    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
       counter.incrementAndGet();
       WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
       throw new WxErrorException(error);
diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java
index c4b57ff13c..834ed8cb76 100644
--- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java
+++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java
@@ -237,7 +237,7 @@ public HttpType getRequestType() {
     RequestExecutor re = mock(RequestExecutor.class);
 
     AtomicInteger counter = new AtomicInteger();
-    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer(invocation -> {
+    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
       counter.incrementAndGet();
       WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
       throw new WxErrorException(error);

From 7164e2619508fca38e5e3ab64890cb3281cea07b Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 25 Oct 2021 00:09:14 +0800
Subject: [PATCH 020/622] =?UTF-8?q?:art:=20=E4=BB=A3=E7=A0=81=E4=BC=98?=
 =?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/bean/ecommerce/RefundsRequest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java
index 3666b43195..e026a403ee 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java
@@ -16,8 +16,8 @@
  */
 @Data
 @Builder
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-@AllArgsConstructor(access = AccessLevel.PRIVATE)
+@NoArgsConstructor
+@AllArgsConstructor
 public class RefundsRequest implements Serializable {
   private static final long serialVersionUID = -3186851559004865784L;
 

From dde445150a084daaea16dbaf9af7dddd31dea549 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BD=98=E5=AE=89?= 
Date: Sun, 31 Oct 2021 23:16:08 +0800
Subject: [PATCH 021/622] =?UTF-8?q?:new:=20#2365=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E8=8E=B7?=
 =?UTF-8?q?=E5=8F=96=E4=BC=81=E4=B8=9A=E7=BE=A4=E5=8F=91=E8=AE=B0=E5=BD=95?=
 =?UTF-8?q?=E5=8F=8A=E7=BB=93=E6=9E=9C=E7=9A=84=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../apache/ApacheHttpDnsClientBuilder.java    |  4 +
 .../cp/api/WxCpExternalContactService.java    | 51 ++++++++++-
 .../impl/WxCpExternalContactServiceImpl.java  | 85 ++++++++++++++++++-
 .../contact/WxCpGroupMsgListResult.java       | 60 +++++++++++++
 .../contact/WxCpGroupMsgSendResult.java       | 56 ++++++++++++
 .../contact/WxCpGroupMsgTaskResult.java       | 50 +++++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  4 +
 7 files changed, 306 insertions(+), 4 deletions(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
index 698eb47bb9..e1959f08f0 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
@@ -20,10 +20,12 @@
 import org.apache.http.impl.client.HttpClientBuilder;
 import org.apache.http.impl.client.HttpClients;
 import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
+import org.apache.http.protocol.HttpContext;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import javax.annotation.concurrent.NotThreadSafe;
+import java.io.IOException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicBoolean;
 
@@ -52,10 +54,12 @@ public class ApacheHttpDnsClientBuilder implements ApacheHttpClientBuilder {
   private SSLConnectionSocketFactory sslConnectionSocketFactory = SSLConnectionSocketFactory.getSocketFactory();
   private PlainConnectionSocketFactory plainConnectionSocketFactory = PlainConnectionSocketFactory.getSocketFactory();
   private String httpProxyHost;
+
   private int httpProxyPort;
   private String httpProxyUsername;
   private String httpProxyPassword;
 
+
   /**
    * 闲置连接监控线程.
    */
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java
index 2a6ffe218a..32a4df416f 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java
@@ -20,8 +20,8 @@
 import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerResp;
 import me.chanjar.weixin.cp.bean.external.WxCpUserTransferResultResp;
 import me.chanjar.weixin.cp.bean.external.WxCpWelcomeMsg;
-import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactBatchInfo;
-import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo;
+import me.chanjar.weixin.cp.bean.external.contact.*;
+import me.chanjar.weixin.cp.bean.oa.WxCpApprovalInfoQueryFilter;
 import org.jetbrains.annotations.NotNull;
 
 import java.util.Date;
@@ -587,4 +587,51 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c
   WxCpBaseResp markTag(String userid, String externalUserid, String[] addTag, String[] removeTag) throws WxErrorException;
 
 
+  /**
+   * 
+   * 企业和第三方应用可通过此接口获取企业与成员的群发记录。
+   * https://work.weixin.qq.com/api/doc/90000/90135/93338
+   * 
+ * + * @param chatType 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群 + * @param startTime 群发任务记录开始时间 + * @param endTime 群发任务记录结束时间 + * @param creator 群发任务创建人企业账号id + * @param filterType 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型 + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date startTime, @NonNull Date endTime, String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException; + + /** + *
+   * 企业和第三方应用可通过此接口获取企业与成员的群发记录。
+   * https://work.weixin.qq.com/api/doc/90000/90135/93338#获取企业群发成员执行结果
+   * 
+ * + * @param msgid 群发消息的id,通过获取群发记录列表接口返回 + * @param userid 发送成员userid,通过获取群发成员发送任务列表接口返回 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpGroupMsgSendResult getGroupMsgSendResult(String msgid, String userid, Integer limit, String cursor) throws WxErrorException; + + /** + *
+   * 获取群发成员发送任务列表。
+   * https://work.weixin.qq.com/api/doc/90000/90135/93338#获取群发成员发送任务列表
+   * 
+ * + * @param msgid 群发消息的id,通过获取群发记录列表接口返回 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, String cursor) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java index d4b4e7db48..598f4ac28c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java @@ -31,8 +31,7 @@ import me.chanjar.weixin.cp.bean.external.WxCpUserTransferResultResp; import me.chanjar.weixin.cp.bean.external.WxCpUserWithExternalPermission; import me.chanjar.weixin.cp.bean.external.WxCpWelcomeMsg; -import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactBatchInfo; -import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; +import me.chanjar.weixin.cp.bean.external.contact.*; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; import org.jetbrains.annotations.NotNull; @@ -449,4 +448,86 @@ public WxCpBaseResp markTag(String userid, String externalUserid, String[] addTa final String result = this.mainService.post(url, json.toString()); return WxCpBaseResp.fromJson(result); } + + /** + *
+   * 企业和第三方应用可通过此接口获取企业与成员的群发记录。
+   * https://work.weixin.qq.com/api/doc/90000/90135/93338
+   * 
+ * + * @param chatType 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群 + * @param startTime 群发任务记录开始时间 + * @param endTime 群发任务记录结束时间 + * @param creator 群发任务创建人企业账号id + * @param filterType 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型 + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date startTime, @NonNull Date endTime, String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("chat_type", chatType); + json.addProperty("start_time", startTime.getTime() / 1000); + json.addProperty("end_time", endTime.getTime() / 1000); + json.addProperty("creator", creator); + json.addProperty("filter_type", filterType); + json.addProperty("limit", limit); + json.addProperty("cursor", cursor); + + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_SEND_RESULT); + final String result = this.mainService.post(url, json.toString()); + return WxCpGroupMsgListResult.fromJson(result); + } + + /** + *
+   * 企业和第三方应用可通过此接口获取企业与成员的群发记录。
+   * https://work.weixin.qq.com/api/doc/90000/90135/93338#获取企业群发成员执行结果
+   * 
+ * + * @param msgid 群发消息的id,通过获取群发记录列表接口返回 + * @param userid 发送成员userid,通过获取群发成员发送任务列表接口返回 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpGroupMsgSendResult getGroupMsgSendResult(String msgid, String userid, Integer limit, String cursor) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("msgid", msgid); + json.addProperty("userid", userid); + json.addProperty("limit", limit); + json.addProperty("cursor", cursor); + + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_SEND_RESULT); + final String result = this.mainService.post(url, json.toString()); + return WxCpGroupMsgSendResult.fromJson(result); + } + + /** + *
+   * 获取群发成员发送任务列表。
+   * https://work.weixin.qq.com/api/doc/90000/90135/93338#获取群发成员发送任务列表
+   * 
+ * + * @param msgid 群发消息的id,通过获取群发记录列表接口返回 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, String cursor) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("msgid", msgid); + json.addProperty("limit", limit); + json.addProperty("cursor", cursor); + + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_SEND_RESULT); + final String result = this.mainService.post(url, json.toString()); + return WxCpGroupMsgTaskResult.fromJson(result); + } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java new file mode 100644 index 0000000000..e8cb1b81c9 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java @@ -0,0 +1,60 @@ +package me.chanjar.weixin.cp.bean.external.contact; + +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.external.msg.Attachment; +import me.chanjar.weixin.cp.bean.external.msg.Text; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 获取企业群发成员执行结果
+ * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/93338
+ * 
+ * + * @author Mr.Pan + */ +@Getter +@Setter +public class WxCpGroupMsgListResult extends WxCpBaseResp implements Serializable { + + private static final long serialVersionUID = 3464981991558716620L; + + @SerializedName("group_msg_list") + private List groupMsgList; + + @SerializedName("next_cursor") + private String nextCursor; + + @Getter + @Setter + public static class ExternalContactGroupMsgInfo implements Serializable { + + private static final long serialVersionUID = 3108435608725559381L; + @SerializedName("msgid") + private String msgId; + + private String creator; + + private Text text; + + private List attachments; + + @SerializedName("create_type") + private Integer createType; + + @SerializedName("create_time") + private Long createTime; + + } + + public static WxCpGroupMsgListResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgListResult.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java new file mode 100644 index 0000000000..704e53b8d3 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java @@ -0,0 +1,56 @@ +package me.chanjar.weixin.cp.bean.external.contact; + +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 获取企业群发成员执行结果
+ * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/93338
+ * 
+ * + * @author Mr.Pan + */ +@Getter +@Setter +public class WxCpGroupMsgSendResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5166048319463473186L; + + @SerializedName("send_list") + private List sendList; + + @SerializedName("next_cursor") + private String nextCursor; + + @Getter + @Setter + public static class ExternalContactGroupMsgSendInfo implements Serializable { + private static final long serialVersionUID = 1500416806087532531L; + + @SerializedName("external_userid") + private String externalUserId; + + @SerializedName("chat_id") + private String chatId; + + @SerializedName("userid") + private String userId; + + private Integer status; + + @SerializedName("send_time") + private Long sendTime; + + } + + public static WxCpGroupMsgSendResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgSendResult.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java new file mode 100644 index 0000000000..0f2299bb4e --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java @@ -0,0 +1,50 @@ +package me.chanjar.weixin.cp.bean.external.contact; + +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 获取群发成员发送任务列表
+ * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/93338
+ * 
+ * + * @author Mr.Pan + */ +@Getter +@Setter +public class WxCpGroupMsgTaskResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5166048319463473186L; + + @SerializedName("task_list") + private List taskList; + + @SerializedName("next_cursor") + private String nextCursor; + + @Getter + @Setter + public static class ExternalContactGroupMsgTaskInfo implements Serializable { + private static final long serialVersionUID = 1500416806087532531L; + + @SerializedName("userid") + private String userId; + + private Integer status; + + @SerializedName("send_time") + private Long sendTime; + + } + + public static WxCpGroupMsgTaskResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgTaskResult.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 1a184e9a54..dfa0c63477 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -205,5 +205,9 @@ interface ExternalContact { String EDIT_CORP_TAG = "/cgi-bin/externalcontact/edit_corp_tag"; String DEL_CORP_TAG = "/cgi-bin/externalcontact/del_corp_tag"; String MARK_TAG = "/cgi-bin/externalcontact/mark_tag"; + + String GET_GROUP_MSG_SEND_RESULT = "/cgi-bin/externalcontact/get_groupmsg_send_result"; + String GET_GROUP_MSG_TASK = "/cgi-bin/externalcontact/get_groupmsg_task"; + String GET_GROUP_MSG_LIST_V2 = "/cgi-bin/externalcontact/get_groupmsg_list_v2"; } } From 537a9332c0bf29d549e7ed788a3ed183f2c054c1 Mon Sep 17 00:00:00 2001 From: Boris Date: Sun, 31 Oct 2021 23:25:27 +0800 Subject: [PATCH 022/622] =?UTF-8?q?:new:=20#2361=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E6=9C=8B=E5=8F=8B=E5=9C=88=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 108 ++++++++++++++++- .../impl/WxCpExternalContactServiceImpl.java | 112 +++++++++++++++++- .../cp/bean/external/WxCpAddMomentResult.java | 27 +++++ .../cp/bean/external/WxCpAddMomentTask.java | 36 ++++++ .../bean/external/WxCpGetMomentComments.java | 40 +++++++ .../external/WxCpGetMomentCustomerList.java | 30 +++++ .../cp/bean/external/WxCpGetMomentList.java | 30 +++++ .../external/WxCpGetMomentSendResult.java | 30 +++++ .../cp/bean/external/WxCpGetMomentTask.java | 41 +++++++ .../external/WxCpGetMomentTaskResult.java | 50 ++++++++ .../WxCpUserExternalTagGroupInfo.java | 4 +- .../cp/bean/external/moment/CustomerItem.java | 14 +++ .../external/moment/ExternalContactList.java | 13 ++ .../cp/bean/external/moment/MomentInfo.java | 28 +++++ .../cp/bean/external/moment/SenderList.java | 15 +++ .../cp/bean/external/moment/VisibleRange.java | 13 ++ .../weixin/cp/bean/external/msg/Link.java | 2 + .../weixin/cp/bean/external/msg/Location.java | 16 +++ .../weixin/cp/bean/external/msg/Video.java | 2 + .../cp/bean/message/WxCpTpXmlMessage.java | 33 ++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 9 ++ .../WxCpExternalContactServiceImplTest.java | 4 +- 22 files changed, 651 insertions(+), 6 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index 32a4df416f..d252fb831e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -3,8 +3,16 @@ import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.external.WxCpAddMomentResult; +import me.chanjar.weixin.cp.bean.external.WxCpAddMomentTask; import me.chanjar.weixin.cp.bean.external.WxCpContactWayInfo; import me.chanjar.weixin.cp.bean.external.WxCpContactWayResult; +import me.chanjar.weixin.cp.bean.external.WxCpGetMomentComments; +import me.chanjar.weixin.cp.bean.external.WxCpGetMomentCustomerList; +import me.chanjar.weixin.cp.bean.external.WxCpGetMomentList; +import me.chanjar.weixin.cp.bean.external.WxCpGetMomentSendResult; +import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTask; +import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTaskResult; import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplate; import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplateAddResult; import me.chanjar.weixin.cp.bean.external.WxCpUpdateRemarkRequest; @@ -181,7 +189,7 @@ public interface WxCpExternalContactService { * @return 该企业的外部联系人ID * @throws WxErrorException . */ - String unionidToExternalUserid(String unionid) throws WxErrorException; + String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException; /** * 批量获取客户详情. @@ -586,6 +594,104 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c */ WxCpBaseResp markTag(String userid, String externalUserid, String[] addTag, String[] removeTag) throws WxErrorException; + /** + *
+ *   企业和第三方应用可通过该接口创建客户朋友圈的发表任务。
+ *   https://open.work.weixin.qq.com/api/doc/90000/90135/95094
+   * 
+ * @param task + * @return wx cp add moment result + * @throws WxErrorException the wx error exception + */ + WxCpAddMomentResult addMomentTask(WxCpAddMomentTask task) throws WxErrorException; + + /** + *
+   * 由于发表任务的创建是异步执行的,应用需要再调用该接口以获取创建的结果。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/95094
+   * 
+ * @param jobId 异步任务id,最大长度为64字节,由创建发表内容到客户朋友圈任务接口获取 + * @return + * @throws WxErrorException + */ + WxCpGetMomentTaskResult getMomentTaskResult(String jobId) throws WxErrorException; + + /** + *
+   * 获取客户朋友圈全部的发表记录 获取企业全部的发表列表
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
+   * 
+ * @param startTime 朋友圈记录开始时间。Unix时间戳 + * @param endTime 朋友圈记录结束时间。Unix时间戳 + * @param creator 朋友圈创建人的userid + * @param filterType 朋友圈类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值100,默认值100,超过最大值时取默认值 + * @return + * @throws WxErrorException + */ + WxCpGetMomentList getMomentList(Long startTime, Long endTime, String creator, Integer filterType, + String cursor, Integer limit) throws WxErrorException; + + /** + *
+   * 获取客户朋友圈全部的发表记录 获取客户朋友圈企业发表的列表
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
+   * 
+ * @param momentId 朋友圈id,仅支持企业发表的朋友圈id + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @return + * @throws WxErrorException + */ + WxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer limit) + throws WxErrorException; + + /** + *
+   * 获取客户朋友圈全部的发表记录 获取客户朋友圈发表时选择的可见范围
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
+   * 
+ * @param momentId 朋友圈id + * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的 + * 列表获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员userid + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @return + * @throws WxErrorException + */ + WxCpGetMomentCustomerList getMomentCustomerList(String momentId, String userId, + String cursor, Integer limit) throws WxErrorException; + + /** + *
+   * 获取客户朋友圈全部的发表记录 获取客户朋友圈发表后的可见客户列表
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
+   * 
+ * @param momentId 朋友圈id + * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid, + * 如果是个人创建的朋友圈,创建人userid就是企业发表成员userid + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值5000,默认值3000,超过最大值时取默认值 + * @return + * @throws WxErrorException + */ + WxCpGetMomentSendResult getMomentSendResult(String momentId, String userId, + String cursor, Integer limit) throws WxErrorException; + + /** + *
+   * 获取客户朋友圈全部的发表记录 获取客户朋友圈的互动数据
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
+   * 
+ * @param momentId 朋友圈id + * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid, + * 如果是个人创建的朋友圈,创建人userid就是企业发表成员userid + * @return + * @throws WxErrorException + */ + WxCpGetMomentComments getMomentComments(String momentId, String userId) + throws WxErrorException; /** *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
index 598f4ac28c..72c2c93b90 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
@@ -12,8 +12,16 @@
 import me.chanjar.weixin.cp.api.WxCpExternalContactService;
 import me.chanjar.weixin.cp.api.WxCpService;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.external.WxCpAddMomentResult;
+import me.chanjar.weixin.cp.bean.external.WxCpAddMomentTask;
 import me.chanjar.weixin.cp.bean.external.WxCpContactWayInfo;
 import me.chanjar.weixin.cp.bean.external.WxCpContactWayResult;
+import me.chanjar.weixin.cp.bean.external.WxCpGetMomentComments;
+import me.chanjar.weixin.cp.bean.external.WxCpGetMomentCustomerList;
+import me.chanjar.weixin.cp.bean.external.WxCpGetMomentList;
+import me.chanjar.weixin.cp.bean.external.WxCpGetMomentSendResult;
+import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTask;
+import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTaskResult;
 import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplate;
 import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplateAddResult;
 import me.chanjar.weixin.cp.bean.external.WxCpUpdateRemarkRequest;
@@ -137,9 +145,12 @@ public String convertToOpenid(@NotNull String externalUserId) throws WxErrorExce
   }
 
   @Override
-  public String unionidToExternalUserid(@NotNull String unionid) throws WxErrorException {
+  public String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException {
     JsonObject json = new JsonObject();
     json.addProperty("unionid", unionid);
+    if(StringUtils.isNotEmpty(openid)){
+      json.addProperty("openid",openid);
+    }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(UNIONID_TO_EXTERNAL_USERID);
     String responseContent = this.mainService.post(url, json.toString());
     JsonObject tmpJson = GsonParser.parse(responseContent);
@@ -449,6 +460,105 @@ public WxCpBaseResp markTag(String userid, String externalUserid, String[] addTa
     return WxCpBaseResp.fromJson(result);
   }
 
+  @Override
+  public WxCpAddMomentResult addMomentTask(WxCpAddMomentTask task) throws WxErrorException {
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(ADD_MOMENT_TASK);
+    final String result = this.mainService.post(url, task.toJson());
+    return WxCpAddMomentResult.fromJson(result);
+  }
+
+  @Override
+  public WxCpGetMomentTaskResult getMomentTaskResult(String jobId) throws WxErrorException {
+    String params = "&jobid=" + jobId;
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_TASK_RESULT);
+    final String result = this.mainService.get(url, params);
+    return WxCpGetMomentTaskResult.fromJson(result);
+  }
+
+  @Override
+  public WxCpGetMomentList getMomentList(Long startTime, Long endTime, String creator, Integer filterType,
+    String cursor, Integer limit) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("start_time", startTime);
+    json.addProperty("end_time", endTime);
+    if (!StringUtils.isEmpty(creator)) {
+      json.addProperty("creator", creator);
+    }
+    if (filterType!=null) {
+      json.addProperty("filter_type", filterType);
+    }
+    if (!StringUtils.isEmpty(cursor)) {
+      json.addProperty("cursor", cursor);
+    }
+    if (limit!=null) {
+      json.addProperty("limit", limit);
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_LIST);
+    final String result = this.mainService.post(url, json.toString());
+    return WxCpGetMomentList.fromJson(result);
+  }
+
+  @Override
+  public WxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer limit)
+    throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("moment_id", momentId);
+    if (!StringUtils.isEmpty(cursor)) {
+      json.addProperty("cursor", cursor);
+    }
+    if (limit!=null) {
+      json.addProperty("limit", limit);
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_TASK);
+    final String result = this.mainService.post(url, json.toString());
+    return WxCpGetMomentTask.fromJson(result);
+  }
+
+  @Override
+  public WxCpGetMomentCustomerList getMomentCustomerList(String momentId, String userId,
+    String cursor, Integer limit) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("moment_id", momentId);
+    json.addProperty("userid", userId);
+    if (!StringUtils.isEmpty(cursor)) {
+      json.addProperty("cursor", cursor);
+    }
+    if (limit!=null) {
+      json.addProperty("limit", limit);
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_CUSTOMER_LIST);
+    final String result = this.mainService.post(url, json.toString());
+    return WxCpGetMomentCustomerList.fromJson(result);
+  }
+
+  @Override
+  public WxCpGetMomentSendResult getMomentSendResult(String momentId, String userId,
+    String cursor, Integer limit) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("moment_id", momentId);
+    json.addProperty("userid", userId);
+    if (!StringUtils.isEmpty(cursor)) {
+      json.addProperty("cursor", cursor);
+    }
+    if (limit!=null) {
+      json.addProperty("limit", limit);
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_SEND_RESULT);
+    final String result = this.mainService.post(url, json.toString());
+    return WxCpGetMomentSendResult.fromJson(result);
+  }
+
+  @Override
+  public WxCpGetMomentComments getMomentComments(String momentId, String userId)
+    throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("moment_id", momentId);
+    json.addProperty("userid", userId);
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_COMMENTS);
+    final String result = this.mainService.post(url, json.toString());
+    return WxCpGetMomentComments.fromJson(result);
+  }
+
   /**
    * 
    * 企业和第三方应用可通过此接口获取企业与成员的群发记录。
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java
new file mode 100644
index 0000000000..3cfd66bb35
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java
@@ -0,0 +1,27 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 创建发表任务结果
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpAddMomentResult extends WxCpBaseResp {
+
+  @SerializedName("jobid")
+  private String jobId;
+
+  public static WxCpAddMomentResult fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpAddMomentResult.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java
new file mode 100644
index 0000000000..3e952ccb90
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java
@@ -0,0 +1,36 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.external.msg.Attachment;
+import me.chanjar.weixin.cp.bean.external.msg.Text;
+import me.chanjar.weixin.cp.bean.external.moment.VisibleRange;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 创建发表任务
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpAddMomentTask implements Serializable {
+  @SerializedName("visible_range")
+  private VisibleRange visibleRange;
+
+  private Text text;
+
+  private List attachments;
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java
new file mode 100644
index 0000000000..0cf49adcaa
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java
@@ -0,0 +1,40 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 获取客户朋友圈的互动数据
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpGetMomentComments extends WxCpBaseResp {
+  @SerializedName("comment_list")
+  private List commentList;
+  @SerializedName("like_list")
+  private List likeList;
+
+  @Getter
+  @Setter
+  public static class CommentLikeItem {
+    @SerializedName("external_userid")
+    private String externalUserId;
+    @SerializedName("create_time")
+    private Long createTime;
+  }
+
+  public static WxCpGetMomentComments fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentComments.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java
new file mode 100644
index 0000000000..795c9520d1
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java
@@ -0,0 +1,30 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.external.moment.CustomerItem;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpGetMomentCustomerList extends WxCpBaseResp {
+  @SerializedName("next_cursor")
+  private String nextCursor;
+  @SerializedName("customer_list")
+  private List customerList;
+
+  public static WxCpGetMomentCustomerList fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentCustomerList.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java
new file mode 100644
index 0000000000..6f4d07288e
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java
@@ -0,0 +1,30 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.external.moment.MomentInfo;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 获取企业全部的发表列表
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpGetMomentList extends WxCpBaseResp {
+  @SerializedName("next_cursor")
+  private String nextCursor;
+  @SerializedName("moment_list")
+  private List momentList;
+
+  public static WxCpGetMomentList fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentList.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java
new file mode 100644
index 0000000000..c7a6f48524
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java
@@ -0,0 +1,30 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.external.moment.CustomerItem;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 获取客户朋友圈发表后的可见客户列表
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpGetMomentSendResult extends WxCpBaseResp {
+  @SerializedName("next_cursor")
+  private String nextCursor;
+  @SerializedName("customer_list")
+  private List customerList;
+
+  public static WxCpGetMomentSendResult fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentSendResult.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java
new file mode 100644
index 0000000000..041d5e8029
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java
@@ -0,0 +1,41 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 获取客户朋友圈企业发表的列表
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpGetMomentTask extends WxCpBaseResp {
+  @SerializedName("next_cursor")
+  private String nextCursor;
+
+  @SerializedName("task_list")
+  private List taskList;
+
+  @Getter
+  @Setter
+  public static class MomentTaskItem {
+    @SerializedName("userid")
+    private String userId;
+    @SerializedName("publish_status")
+    private String publishStatus;
+  }
+
+  public static WxCpGetMomentTask fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentTask.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java
new file mode 100644
index 0000000000..f7ca6d8f38
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java
@@ -0,0 +1,50 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.external.moment.ExternalContactList;
+import me.chanjar.weixin.cp.bean.external.moment.SenderList;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 企业发表内容到客户的朋友圈 获取任务创建结果
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class WxCpGetMomentTaskResult extends WxCpBaseResp {
+  private Integer status;
+  private String type;
+  private TaskResult result;
+
+  @Getter
+  @Setter
+  public static class TaskResult extends WxCpBaseResp {
+    @SerializedName("moment_id")
+    private String momentId;
+    @SerializedName("invalid_sender_list")
+    private SenderList invalidSenderList;
+    @SerializedName("invalid_external_contact_list")
+    private ExternalContactList invalidExternalContactList;
+
+    public static TaskResult fromJson(String json) {
+      return WxCpGsonBuilder.create().fromJson(json, TaskResult.class);
+    }
+
+    public String toJson() {
+      return WxCpGsonBuilder.create().toJson(this);
+    }
+  }
+
+  public static WxCpGetMomentTaskResult fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentTaskResult.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java
index 5893065962..69e337b82d 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java
@@ -35,7 +35,7 @@ public static class TagGroup implements Serializable {
     private Long createTime;
 
     @SerializedName("order")
-    private Integer order;
+    private Long order;
 
     @SerializedName("deleted")
     private Boolean deleted;
@@ -67,7 +67,7 @@ public static class Tag implements Serializable {
     private Long createTime;
 
     @SerializedName("order")
-    private Integer order;
+    private Long order;
 
     @SerializedName("deleted")
     private Boolean deleted;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java
new file mode 100644
index 0000000000..08b1242392
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java
@@ -0,0 +1,14 @@
+package me.chanjar.weixin.cp.bean.external.moment;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class CustomerItem {
+  @SerializedName("external_userid")
+  private String externalUserId;
+  @SerializedName("userid")
+  private String userId;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java
new file mode 100644
index 0000000000..4d08bf3583
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java
@@ -0,0 +1,13 @@
+package me.chanjar.weixin.cp.bean.external.moment;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class ExternalContactList {
+  @SerializedName("tag_list")
+  private List tagList;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java
new file mode 100644
index 0000000000..2ed770e101
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java
@@ -0,0 +1,28 @@
+package me.chanjar.weixin.cp.bean.external.moment;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.cp.bean.external.msg.Image;
+import me.chanjar.weixin.cp.bean.external.msg.Link;
+import me.chanjar.weixin.cp.bean.external.msg.Location;
+import me.chanjar.weixin.cp.bean.external.msg.Text;
+import me.chanjar.weixin.cp.bean.external.msg.Video;
+
+@Data
+public class MomentInfo {
+  @SerializedName("moment_id")
+  private String momentId;
+  @SerializedName("creator")
+  private String creator;
+  @SerializedName("create_time")
+  private String createTime;
+  @SerializedName("create_type")
+  private Integer createType;
+  @SerializedName("visible_type")
+  private Integer visibleType;
+  private Text text;
+  private Image image;
+  private Video video;
+  private Link link;
+  private Location location;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java
new file mode 100644
index 0000000000..45889684c5
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java
@@ -0,0 +1,15 @@
+package me.chanjar.weixin.cp.bean.external.moment;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class SenderList {
+  @SerializedName("user_list")
+  private List userList;
+  @SerializedName("department_list")
+  private List departmentList;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
new file mode 100644
index 0000000000..251fb5e64c
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
@@ -0,0 +1,13 @@
+package me.chanjar.weixin.cp.bean.external.moment;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import lombok.Data;
+
+@Data
+public class VisibleRange implements Serializable {
+  @SerializedName("sender_list")
+  private SenderList senderList;
+  @SerializedName("external_contact_list")
+  private ExternalContactList externalContactList;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java
index a949a1a0f1..a33f4ad9ae 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java
@@ -19,4 +19,6 @@ public class Link implements Serializable {
   private String picUrl;
   private String desc;
   private String url;
+  @SerializedName("media_id")
+  private String mediaId;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java
new file mode 100644
index 0000000000..944f2f4876
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java
@@ -0,0 +1,16 @@
+package me.chanjar.weixin.cp.bean.external.msg;
+
+import lombok.Data;
+
+/**
+ * 地理位置
+ *
+ * @author leiin
+ * @date 2021-10-29
+ */
+@Data
+public class Location {
+  private String latitude;
+  private String longitude;
+  private String name;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java
index 237fb75cfe..863b028126 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java
@@ -16,4 +16,6 @@ public class Video implements Serializable {
   private static final long serialVersionUID = -6048642921382867138L;
   @SerializedName("media_id")
   private String mediaId;
+  @SerializedName("thumb_media_id")
+  private String thumbMediaId;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java
index e165e7c29d..fc159a9a3b 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java
@@ -189,6 +189,39 @@ public class WxCpTpXmlMessage implements Serializable {
   @XStreamConverter(value = XStreamCDataConverter.class)
   protected String externalUserID;
 
+  @XStreamAlias("State")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  protected String state;
+
+  @XStreamAlias("Source")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  protected String source;
+
+  @XStreamAlias("FailReason")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  protected String failReason;
+
+  @XStreamAlias("ChatId")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  protected String chatId;
+
+  @XStreamAlias("UpdateDetail")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  protected String updateDetail;
+
+  @XStreamAlias("JoinScene")
+  protected Integer joinScene;
+
+  @XStreamAlias("QuitScene")
+  protected Integer quitScene;
+
+  @XStreamAlias("MemChangeCnt")
+  protected Integer memChangeCnt;
+
+  @XStreamAlias("TagType")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  protected String tagType;
+
   @XStreamAlias("WelcomeCode")
   @XStreamConverter(value = XStreamCDataConverter.class)
   protected String welcomeCode;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index dfa0c63477..c09116d752 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -206,8 +206,17 @@ interface ExternalContact {
     String DEL_CORP_TAG = "/cgi-bin/externalcontact/del_corp_tag";
     String MARK_TAG = "/cgi-bin/externalcontact/mark_tag";
 
+    String ADD_MOMENT_TASK = "/cgi-bin/externalcontact/add_moment_task";
+    String GET_MOMENT_TASK_RESULT = "/cgi-bin/externalcontact/get_moment_task_result";
+    String GET_MOMENT_LIST = "/cgi-bin/externalcontact/get_moment_list";
+    String GET_MOMENT_TASK = "/cgi-bin/externalcontact/get_moment_task";
+    String GET_MOMENT_CUSTOMER_LIST = "/cgi-bin/externalcontact/get_moment_customer_list";
+    String GET_MOMENT_SEND_RESULT = "/cgi-bin/externalcontact/get_moment_send_result";
+    String GET_MOMENT_COMMENTS = "/cgi-bin/externalcontact/get_moment_comments";
+
     String GET_GROUP_MSG_SEND_RESULT = "/cgi-bin/externalcontact/get_groupmsg_send_result";
     String GET_GROUP_MSG_TASK = "/cgi-bin/externalcontact/get_groupmsg_task";
     String GET_GROUP_MSG_LIST_V2 = "/cgi-bin/externalcontact/get_groupmsg_list_v2";
+
   }
 }
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java
index cfbdcca930..60fdeb9b2e 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java
@@ -138,13 +138,13 @@ public void testAddCorpTag() throws WxErrorException {
     List list = new ArrayList<>();
     WxCpUserExternalTagGroupInfo.Tag tag = new WxCpUserExternalTagGroupInfo.Tag();
     tag.setName("测试标签20");
-    tag.setOrder(1);
+    tag.setOrder(1L);
     list.add(tag);
 
     WxCpUserExternalTagGroupInfo tagGroupInfo = new WxCpUserExternalTagGroupInfo();
     WxCpUserExternalTagGroupInfo.TagGroup tagGroup = new WxCpUserExternalTagGroupInfo.TagGroup();
     tagGroup.setGroupName("其他");
-    tagGroup.setOrder(1);
+    tagGroup.setOrder(1L);
     tagGroup.setTag(list);
     tagGroupInfo.setTagGroup(tagGroup);
 

From 6f57d4a5223df965cfda4e4ad973532927f8b4f1 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 31 Oct 2021 23:33:10 +0800
Subject: [PATCH 023/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E4=B8=80?=
 =?UTF-8?q?=E4=B8=AA=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?=
 =?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wxpay/bean/marketing/FavorStocksCreateRequest.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java
index 2225009075..855edc8528 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java
@@ -314,8 +314,8 @@ public static class StockUseRule implements Serializable {
   @Data
   @NoArgsConstructor
   public static class PatternInfo implements Serializable {
-
     private static final long serialVersionUID = 1L;
+
     /**
      * 
      * 字段名:使用说明
@@ -391,14 +391,14 @@ public static class PatternInfo implements Serializable {
      * 
*/ @SerializedName(value = "coupon_image") - private Boolean couponImage; + private String couponImage; } @Data @NoArgsConstructor public static class CouponUseRule implements Serializable { - private static final long serialVersionUID = 1L; + /** *
      * 字段名:券生效时间

From 7b4ba553ac51e995c3204bb754cf351bb6d4c95f Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 31 Oct 2021 23:48:54 +0800
Subject: [PATCH 024/622] =?UTF-8?q?:art:=20#2331=20=E3=80=90=E5=85=AC?=
 =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E3=80=90=E5=BC=80=E6=94=BE=E5=B9=B3?=
 =?UTF-8?q?=E5=8F=B0=E3=80=91=E6=A0=B9=E6=8D=AE=E5=BE=AE=E4=BF=A1=E5=B9=B3?=
 =?UTF-8?q?=E5=8F=B0=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?=
 =?UTF-8?q?=E6=9C=80=E6=96=B0=E8=B0=83=E6=95=B4=E5=8E=BB=E6=8E=89=E7=94=A8?=
 =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E7=B1=BB=E9=83=A8=E5=88=86=E6=97=A0?=
 =?UTF-8?q?=E7=94=A8=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/common/bean/WxOAuth2UserInfo.java   | 17 -----------------
 .../weixin/mp/bean/result/WxMpUser.java        | 11 -----------
 .../mp/util/json/WxMpUserGsonAdapter.java      | 18 ------------------
 3 files changed, 46 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java
index e647560026..69518b2565 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java
@@ -25,23 +25,6 @@ public class WxOAuth2UserInfo implements Serializable {
    * nickname	普通用户昵称
    */
   private String nickname;
-  /**
-   * sex	普通用户性别,1为男性,2为女性
-   */
-  private Integer sex;
-  /**
-   * city	普通用户个人资料填写的城市
-   */
-  private String city;
-
-  /**
-   * province	普通用户个人资料填写的省份
-   */
-  private String province;
-  /**
-   * country	国家,如中国为CN
-   */
-  private String country;
   /**
    * headimgurl	用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),
    * 用户没有头像时该项为空
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
index 4d22fab9e9..6edf351d44 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
@@ -22,18 +22,7 @@ public class WxMpUser implements Serializable {
   private Boolean subscribe;
   private String openId;
   private String nickname;
-  /**
-   * 性别描述信息:男、女、未知等.
-   */
-  private String sexDesc;
-  /**
-   * 性别表示:1,2等数字.
-   */
-  private Integer sex;
   private String language;
-  private String city;
-  private String province;
-  private String country;
   private String headImgUrl;
   private Long subscribeTime;
   /**
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserGsonAdapter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserGsonAdapter.java
index 910ae8c89f..f3a20fbcab 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserGsonAdapter.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpUserGsonAdapter.java
@@ -20,13 +20,10 @@ public WxMpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC
     if (subscribe != null) {
       user.setSubscribe(!new Integer(0).equals(subscribe));
     }
-    user.setCity(GsonHelper.getString(o, "city"));
-    user.setCountry(GsonHelper.getString(o, "country"));
     user.setHeadImgUrl(GsonHelper.getString(o, "headimgurl"));
     user.setLanguage(GsonHelper.getString(o, "language"));
     user.setNickname(GsonHelper.getString(o, "nickname"));
     user.setOpenId(GsonHelper.getString(o, "openid"));
-    user.setProvince(GsonHelper.getString(o, "province"));
     user.setSubscribeTime(GsonHelper.getLong(o, "subscribe_time"));
     user.setUnionId(GsonHelper.getString(o, "unionid"));
     user.setRemark(GsonHelper.getString(o, "remark"));
@@ -37,21 +34,6 @@ public WxMpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC
     user.setQrScene(GsonHelper.getString(o, "qr_scene"));
     user.setQrSceneStr(GsonHelper.getString(o, "qr_scene_str"));
 
-    Integer sex = GsonHelper.getInteger(o, "sex");
-    if (sex != null) {
-      user.setSex(sex);
-      switch (sex) {
-        case 1:
-          user.setSexDesc("男");
-          break;
-        case 2:
-          user.setSexDesc("女");
-          break;
-        default:
-          user.setSexDesc("未知");
-      }
-
-    }
     return user;
   }
 

From e343159e3a062135794146b3ed9596a12e9ce299 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 31 Oct 2021 23:51:51 +0800
Subject: [PATCH 025/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E6=B5=8B?=
 =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../main/java/me/chanjar/weixin/common/util/DataUtils.java  | 3 ++-
 .../chanjar/weixin/common/util/xml/XStreamInitializer.java  | 1 -
 .../chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java | 2 +-
 .../test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java | 6 +++---
 .../binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java | 2 +-
 .../chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java | 2 +-
 .../binarywang/wxpay/bean/result/WxSignQueryResult.java     | 2 ++
 7 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/DataUtils.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/DataUtils.java
index 983d9a668f..b8fb42e0e9 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/DataUtils.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/DataUtils.java
@@ -1,5 +1,6 @@
 package me.chanjar.weixin.common.util;
 
+import org.apache.commons.lang3.RegExUtils;
 import org.apache.commons.lang3.StringUtils;
 
 /**
@@ -17,7 +18,7 @@ public class DataUtils {
   public static  E handleDataWithSecret(E data) {
     E dataForLog = data;
     if(data instanceof String && StringUtils.contains((String)data, "&secret=")){
-      dataForLog = (E) StringUtils.replaceAll((String)data,"&secret=\\w+&","&secret=******&");
+      dataForLog = (E) RegExUtils.replaceAll((String)data,"&secret=\\w+&","&secret=******&");
     }
     return dataForLog;
   }
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/XStreamInitializer.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/XStreamInitializer.java
index 6997eb490d..334d75ee32 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/XStreamInitializer.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/XStreamInitializer.java
@@ -80,7 +80,6 @@ protected void setupConverters() {
     };
     xstream.ignoreUnknownElements();
     xstream.setMode(XStream.NO_REFERENCES);
-    XStream.setupDefaultSecurity(xstream);
     xstream.autodetectAnnotations(true);
 
     // setup proper security by limiting which classes can be loaded by XStream
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java
index 2e91aacbf4..739470a2d7 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImplTest.java
@@ -92,7 +92,7 @@ public WxCpConfigStorage getWxCpConfigStorage() {
     RequestExecutor re = mock(RequestExecutor.class);
 
     AtomicInteger counter = new AtomicInteger();
-    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
+    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer(invocation -> {
       counter.incrementAndGet();
       WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
       throw new WxErrorException(error);
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java
index afc596df1b..52bc8e2ab7 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/demo/WxCpDemoServer.java
@@ -49,14 +49,14 @@ private static void initWeixin() throws IOException {
       wxCpService = new WxCpServiceImpl();
       wxCpService.setWxCpConfigStorage(config);
 
-      WxCpMessageHandler handler = (WxCpXmlMessage wxMessage, Map context, WxCpService wxService, WxSessionManager sessionManager) -> {
+      WxCpMessageHandler handler = (wxMessage, context, wxService, sessionManager) -> {
         WxCpXmlOutTextMessage m = WxCpXmlOutMessage.TEXT().content("测试加密消息")
           .fromUser(wxMessage.getToUserName())
           .toUser(wxMessage.getFromUserName()).build();
         return m;
       };
 
-      WxCpMessageHandler oauth2handler = (WxCpXmlMessage wxMessage, Map context, WxCpService wxService, WxSessionManager sessionManager) -> {
+      WxCpMessageHandler oauth2handler = (wxMessage, context, wxService, sessionManager) -> {
         String href = "测试oauth2";
@@ -78,7 +78,7 @@ private static void initWeixin() throws IOException {
         .end()
         .rule()
         .event(WxCpConsts.EventType.CHANGE_CONTACT)
-        .handler((WxCpXmlMessage wxMessage, Map context, WxCpService wxCpService, WxSessionManager sessionManager) -> {
+        .handler((wxMessage, context, wxCpService, sessionManager) -> {
           System.out.println("通讯录发生变更");
           return null;
         })
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java
index 7310a8fcd5..dcbe3b3b0b 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImplTest.java
@@ -127,7 +127,7 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException {
     RequestExecutor re = mock(RequestExecutor.class);
 
     AtomicInteger counter = new AtomicInteger();
-    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
+    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((invocation) -> {
       counter.incrementAndGet();
       WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
       throw new WxErrorException(error);
diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java
index 834ed8cb76..c4b57ff13c 100644
--- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java
+++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java
@@ -237,7 +237,7 @@ public HttpType getRequestType() {
     RequestExecutor re = mock(RequestExecutor.class);
 
     AtomicInteger counter = new AtomicInteger();
-    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
+    Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer(invocation -> {
       counter.incrementAndGet();
       WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
       throw new WxErrorException(error);
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java
index 492c6c9251..abb72a5b79 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java
@@ -3,6 +3,7 @@
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import lombok.AllArgsConstructor;
 import lombok.Data;
+import lombok.EqualsAndHashCode;
 import lombok.NoArgsConstructor;
 import me.chanjar.weixin.common.util.json.WxGsonBuilder;
 import org.w3c.dom.Document;
@@ -18,6 +19,7 @@
  * 
*/ @Data +@EqualsAndHashCode(callSuper = true) @AllArgsConstructor @NoArgsConstructor public class WxSignQueryResult extends BaseWxPayResult implements Serializable { From 5f1aa6fc97a8299455816c9581762c742b36c086 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 1 Nov 2021 00:18:42 +0800 Subject: [PATCH 026/622] =?UTF-8?q?:art:=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java | 3 ++- .../java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java | 3 ++- .../java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java | 3 +++ .../weixin/cp/bean/external/WxCpAddMomentResult.java | 3 +++ .../weixin/cp/bean/external/WxCpContactWayResult.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentComments.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentCustomerList.java | 7 ++++++- .../chanjar/weixin/cp/bean/external/WxCpGetMomentList.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentSendResult.java | 3 +++ .../chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java | 3 +++ .../weixin/cp/bean/external/WxCpGetMomentTaskResult.java | 3 +++ .../me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java | 2 ++ .../java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java | 4 ++++ 13 files changed, 40 insertions(+), 3 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java index 2aa89d2158..5d77c975d5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.common.util.json.WxGsonBuilder; @@ -14,8 +15,8 @@ * @author huangxiaoming */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpTpAdmin extends WxCpBaseResp { - private static final long serialVersionUID = -5028321625140879571L; @SerializedName("admin") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java index 440e7b4df5..c949b0a1ba 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** @@ -9,8 +10,8 @@ * @author huangxiaoming */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpTpUserDetail extends WxCpBaseResp { - private static final long serialVersionUID = -5028321625140879571L; /** * 用户所属企业的corpid diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java index 6739082faf..0138b2a9d9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java @@ -2,12 +2,15 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** * @author huangxiaoming */ + @Data +@EqualsAndHashCode(callSuper = true) public class WxCpTpUserInfo extends WxCpBaseResp { private static final long serialVersionUID = -5028321625140879571L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java index 3cfd66bb35..8c67c814fc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -12,7 +13,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpAddMomentResult extends WxCpBaseResp { + private static final long serialVersionUID = -7212260280504857210L; @SerializedName("jobid") private String jobId; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java index 6bb9c41398..0a49719a95 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -9,7 +10,9 @@ * 「联系我」方式 处理结果 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpContactWayResult extends WxCpBaseResp { + private static final long serialVersionUID = -2612867517869192015L; @SerializedName("config_id") private String configId; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java index 0cf49adcaa..6976702612 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -15,7 +16,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentComments extends WxCpBaseResp { + private static final long serialVersionUID = -9056664072546234965L; @SerializedName("comment_list") private List commentList; @SerializedName("like_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java index 795c9520d1..0d144da14f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java @@ -1,12 +1,14 @@ package me.chanjar.weixin.cp.bean.external; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.moment.CustomerItem; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** * 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围 * @@ -14,7 +16,10 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentCustomerList extends WxCpBaseResp { + private static final long serialVersionUID = -8792120670063917097L; + @SerializedName("next_cursor") private String nextCursor; @SerializedName("customer_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java index 6f4d07288e..6ba154df83 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.moment.MomentInfo; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -14,7 +15,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentList extends WxCpBaseResp { + private static final long serialVersionUID = 106159971765109008L; @SerializedName("next_cursor") private String nextCursor; @SerializedName("moment_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java index c7a6f48524..38cd89a454 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.moment.CustomerItem; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -14,7 +15,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentSendResult extends WxCpBaseResp { + private static final long serialVersionUID = -5782811995184523379L; @SerializedName("next_cursor") private String nextCursor; @SerializedName("customer_list") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java index 041d5e8029..aa45bec4ef 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -15,7 +16,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentTask extends WxCpBaseResp { + private static final long serialVersionUID = 5621905029624794129L; @SerializedName("next_cursor") private String nextCursor; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java index f7ca6d8f38..019e7fdf1d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -16,7 +17,9 @@ * @date 2021-10-29 */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpGetMomentTaskResult extends WxCpBaseResp { + private static final long serialVersionUID = 2515140928288915077L; private Integer status; private String type; private TaskResult result; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java index b9b1af3c3a..7d372cdfcf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @@ -10,6 +11,7 @@ * @author element */ @Data +@EqualsAndHashCode(callSuper = true) public class WxCpApprovalApplier extends WxCpOperator implements Serializable { private static final long serialVersionUID = -8974662568286821271L; diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java index faa56bec34..a3d9e7af07 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java @@ -1,9 +1,13 @@ package me.chanjar.weixin.open.bean.ma; import lombok.Data; +import lombok.EqualsAndHashCode; import me.chanjar.weixin.open.bean.result.WxOpenResult; @Data +@EqualsAndHashCode(callSuper = true) public class WxMaScheme extends WxOpenResult { + private static final long serialVersionUID = 6099475183322341647L; + private String openlink; } From d5d61a4e1af69c995717ab74b28fed257975e4d0 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 1 Nov 2021 20:52:39 +0800 Subject: [PATCH 027/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.0?= =?UTF-8?q?=20=E6=AD=A3=E5=BC=8F=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 842aae46f1..f2e64f533c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.1.9.B + 4.2.0 pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 85fe5094b0..c6fbf375fb 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 743650b256..cd6e6da4be 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.1.9.B + 4.2.0 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index e62e70040c..aceef96ca7 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.1.9.B + 4.2.0 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 9545eb445f..78fc9bdc45 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.1.9.B + 4.2.0 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 074e202146..588f4b8f5a 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.1.9.B + 4.2.0 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index fe8b29ecaa..63cf2f2a56 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.1.9.B + 4.2.0 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 896a812b5a..7b5d9ad662 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 665f0d7b87..c5b0918c95 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 90edd559fb..85b5738665 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 1dba48165a..39d3442b4e 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 62ebb65b13..86b562160b 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 2407c52146..1676d1c01d 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index acd179ce4b..b6f9dfb246 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index f36c374918..4576f69186 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.1.9.B + 4.2.0 weixin-java-qidian From dd83e1655a14daa7acba93b9db6d664eb3eab702 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 1 Nov 2021 23:50:01 +0800 Subject: [PATCH 028/622] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e8636426c8..cecfc0215d 100644 --- a/README.md +++ b/README.md @@ -21,24 +21,21 @@ - + + + 赞助商招募中,欢迎联系洽谈 + + + - - - - -
1. 驰骋快速开发平台、工作流/表单引擎采用GPL协议。 -
2. 驰骋.NET版称为ccflow,Java版称为jflow,代码100%开源。 -
3. 支持10多个国内外数据库,有单机版\集团版\SAAS版本。 -
### 重要信息 -1. **2021-06-02 发布 [【4.1.0正式版】](https://mp.weixin.qq.com/s/nIk_xOf6dxkhKfqq830Cuw)**! +1. **2021-11-01 发布 [【4.2.0正式版】](https://mp.weixin.qq.com/s/nIk_xOf6dxkhKfqq830Cuw)**! 1. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。 1. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识; 1. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。 From 88301a619251c9b4a3c87f71c2e4117443f4661d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=AE=89?= Date: Wed, 3 Nov 2021 23:20:33 +0800 Subject: [PATCH 029/622] =?UTF-8?q?:new:=20#2372=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=BE=A4opengid=E8=BD=AC=E6=8D=A2=E5=92=8C=E5=85=A5?= =?UTF-8?q?=E7=BE=A4=E6=AC=A2=E8=BF=8E=E8=AF=AD=E7=B4=A0=E6=9D=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 99 +++++++++++---- .../impl/WxCpExternalContactServiceImpl.java | 120 +++++++++++++----- .../WxCpGroupWelcomeTemplateResult.java | 45 +++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 6 + 4 files changed, 216 insertions(+), 54 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index d252fb831e..396bbe4a9c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -3,31 +3,7 @@ import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.external.WxCpAddMomentResult; -import me.chanjar.weixin.cp.bean.external.WxCpAddMomentTask; -import me.chanjar.weixin.cp.bean.external.WxCpContactWayInfo; -import me.chanjar.weixin.cp.bean.external.WxCpContactWayResult; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentComments; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentCustomerList; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentList; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentSendResult; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTask; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTaskResult; -import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplate; -import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplateAddResult; -import me.chanjar.weixin.cp.bean.external.WxCpUpdateRemarkRequest; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatInfo; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatStatistic; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatTransferResp; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalTagGroupInfo; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalTagGroupList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalUnassignList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalUserBehaviorStatistic; -import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerReq; -import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerResp; -import me.chanjar.weixin.cp.bean.external.WxCpUserTransferResultResp; -import me.chanjar.weixin.cp.bean.external.WxCpWelcomeMsg; +import me.chanjar.weixin.cp.bean.external.*; import me.chanjar.weixin.cp.bean.external.contact.*; import me.chanjar.weixin.cp.bean.oa.WxCpApprovalInfoQueryFilter; import org.jetbrains.annotations.NotNull; @@ -191,6 +167,30 @@ public interface WxCpExternalContactService { */ String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException; + /** + * 客户群opengid转换 + *
+   *
+   * 文档地址:https://open.work.weixin.qq.com/api/doc/90000/90135/94822
+   *
+   * 用户在微信里的客户群里打开小程序时,某些场景下可以获取到群的opengid,如果该群是企业微信的客户群,
+   * 则企业或第三方可以调用此接口将一个opengid转换为客户群chat_id
+   *
+   * 权限说明:
+   *
+   * 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)
+   * 第三方应用需具有“企业客户权限->客户基础信息”权限
+   * 对于第三方/自建应用,群主必须在应用的可见范围
+   * 仅支持企业服务人员创建的客户群
+   * 仅可转换出自己企业下的客户群chat_id
+   * 
+ * + * @param opengid 小程序在微信获取到的群ID,参见wx.getGroupEnterInfo(https://developers.weixin.qq.com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html) + * @return 客户群ID,可以用来调用获取客户群详情 + * @throws WxErrorException . + */ + String opengidToChatid(@NotNull String opengid) throws WxErrorException; + /** * 批量获取客户详情. *
@@ -740,4 +740,53 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId)
    */
    WxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, String cursor) throws WxErrorException;
 
+  /**
+   * 
+   * 添加入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#添加入群欢迎语素材
+   * 
+ * + * @param template 素材内容 + * @return template_id 欢迎语素材id + * @throws WxErrorException the wx error exception + */ + String addGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws WxErrorException; + + /** + *
+   * 编辑入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#编辑入群欢迎语素材
+   * 
+ * + * @param template + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpBaseResp editGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws WxErrorException; + + /** + *
+   * 获取入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#获取入群欢迎语素材
+   * 
+ * + * @param templateId 群欢迎语的素材id + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpGroupWelcomeTemplateResult getGroupWelcomeTemplate(@NotNull String templateId) throws WxErrorException; + + /** + *
+   * 删除入群欢迎语素材。
+   * 企业可通过此API删除入群欢迎语素材,且仅能删除调用方自己创建的入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#删除入群欢迎语素材
+   * 
+ * + * @param templateId 群欢迎语的素材id + * @param templateId 授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpBaseResp delGroupWelcomeTemplate(@NotNull String templateId, String agentId) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java index 72c2c93b90..19937e3827 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java @@ -12,33 +12,7 @@ import me.chanjar.weixin.cp.api.WxCpExternalContactService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.external.WxCpAddMomentResult; -import me.chanjar.weixin.cp.bean.external.WxCpAddMomentTask; -import me.chanjar.weixin.cp.bean.external.WxCpContactWayInfo; -import me.chanjar.weixin.cp.bean.external.WxCpContactWayResult; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentComments; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentCustomerList; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentList; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentSendResult; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTask; -import me.chanjar.weixin.cp.bean.external.WxCpGetMomentTaskResult; -import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplate; -import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplateAddResult; -import me.chanjar.weixin.cp.bean.external.WxCpUpdateRemarkRequest; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalContactList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatInfo; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatStatistic; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatTransferResp; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalTagGroupInfo; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalTagGroupList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalUnassignList; -import me.chanjar.weixin.cp.bean.external.WxCpUserExternalUserBehaviorStatistic; -import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerReq; -import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerResp; -import me.chanjar.weixin.cp.bean.external.WxCpUserTransferResultResp; -import me.chanjar.weixin.cp.bean.external.WxCpUserWithExternalPermission; -import me.chanjar.weixin.cp.bean.external.WxCpWelcomeMsg; +import me.chanjar.weixin.cp.bean.external.*; import me.chanjar.weixin.cp.bean.external.contact.*; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; @@ -157,6 +131,16 @@ public String unionidToExternalUserid(@NotNull String unionid,String openid) thr return tmpJson.get("external_userid").getAsString(); } + @Override + public String opengidToChatid(@NotNull String opengid) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("opengid",opengid); + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(OPENID_TO_CHATID); + String responseContent = this.mainService.post(url, json.toString()); + JsonObject tmpJson = GsonParser.parse(responseContent); + return tmpJson.get("chat_id").getAsString(); + } + @Override public WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String cursor, @@ -586,7 +570,7 @@ public WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date s json.addProperty("limit", limit); json.addProperty("cursor", cursor); - final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_SEND_RESULT); + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_LIST_V2); final String result = this.mainService.post(url, json.toString()); return WxCpGroupMsgListResult.fromJson(result); } @@ -636,8 +620,86 @@ public WxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, Strin json.addProperty("limit", limit); json.addProperty("cursor", cursor); - final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_SEND_RESULT); + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_TASK); final String result = this.mainService.post(url, json.toString()); return WxCpGroupMsgTaskResult.fromJson(result); } + + /** + *
+   * 添加入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#添加入群欢迎语素材
+   * 
+ * + * @param template 素材内容 + * @return template_id 欢迎语素材id + * @throws WxErrorException the wx error exception + */ + @Override + public String addGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws WxErrorException { + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GROUP_WELCOME_TEMPLATE_ADD); + final String responseContent = this.mainService.post(url, template.toJson()); + JsonObject tmpJson = GsonParser.parse(responseContent); + return tmpJson.get("template_id").getAsString(); + } + + /** + *
+   * 编辑入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#编辑入群欢迎语素材
+   * 
+ * + * @param template + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpBaseResp editGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws WxErrorException { + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GROUP_WELCOME_TEMPLATE_EDIT); + final String result = this.mainService.post(url, template.toJson()); + return WxCpGroupWelcomeTemplateResult.fromJson(result); + } + + /** + *
+   * 获取入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#获取入群欢迎语素材
+   * 
+ * + * @param templateId 群欢迎语的素材id + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpGroupWelcomeTemplateResult getGroupWelcomeTemplate(@NotNull String templateId) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("template_id", templateId); + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GROUP_WELCOME_TEMPLATE_GET); + final String result = this.mainService.post(url, json.toString()); + return WxCpGroupWelcomeTemplateResult.fromJson(result); + } + + /** + *
+   * 删除入群欢迎语素材。
+   * 企业可通过此API删除入群欢迎语素材,且仅能删除调用方自己创建的入群欢迎语素材。
+   * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#删除入群欢迎语素材
+   * 
+ * + * @param templateId 群欢迎语的素材id + * @param agentId + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpBaseResp delGroupWelcomeTemplate(@NotNull String templateId, String agentId) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("template_id", templateId); + if (!StringUtils.isEmpty(agentId)) { + json.addProperty("agentid", agentId); + } + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GROUP_WELCOME_TEMPLATE_DEL); + final String result = this.mainService.post(url, json.toString()); + return WxCpBaseResp.fromJson(result); + } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java new file mode 100644 index 0000000000..5b92a02098 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java @@ -0,0 +1,45 @@ +package me.chanjar.weixin.cp.bean.external; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.external.msg.*; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 入群欢迎语素材. + * + * @author Mr.Pan + * @date 2021-11-3 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxCpGroupWelcomeTemplateResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -6406667238670580612L; + + private Text text; + + private Image image; + + private Link link; + + private MiniProgram miniprogram; + + private File file; + + private Video video; + + public static WxCpGroupWelcomeTemplateResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGroupWelcomeTemplateResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index c09116d752..ddc56d133e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -194,6 +194,7 @@ interface ExternalContact { String RESIGNED_TRANSFER_RESULT = "/cgi-bin/externalcontact/resigned/transfer_result"; String GROUP_CHAT_LIST = "/cgi-bin/externalcontact/groupchat/list"; String GROUP_CHAT_INFO = "/cgi-bin/externalcontact/groupchat/get"; + String OPENID_TO_CHATID= "/cgi-bin/externalcontact/opengid_to_chatid"; String GROUP_CHAT_TRANSFER = "/cgi-bin/externalcontact/groupchat/transfer"; String LIST_USER_BEHAVIOR_DATA = "/cgi-bin/externalcontact/get_user_behavior_data"; String LIST_GROUP_CHAT_DATA = "/cgi-bin/externalcontact/groupchat/statistic"; @@ -218,5 +219,10 @@ interface ExternalContact { String GET_GROUP_MSG_TASK = "/cgi-bin/externalcontact/get_groupmsg_task"; String GET_GROUP_MSG_LIST_V2 = "/cgi-bin/externalcontact/get_groupmsg_list_v2"; + String GROUP_WELCOME_TEMPLATE_ADD = "/cgi-bin/externalcontact/group_welcome_template/add"; + String GROUP_WELCOME_TEMPLATE_EDIT = "/cgi-bin/externalcontact/group_welcome_template/edit"; + String GROUP_WELCOME_TEMPLATE_GET = "/cgi-bin/externalcontact/group_welcome_template/get"; + String GROUP_WELCOME_TEMPLATE_DEL = "/cgi-bin/externalcontact/group_welcome_template/del"; + } } From bb6bec04b1202ce319a0a7ff7470252ae0d9f62b Mon Sep 17 00:00:00 2001 From: ray Wang Date: Mon, 8 Nov 2021 18:44:57 +0800 Subject: [PATCH 030/622] =?UTF-8?q?:new:=20#2379=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=BC=80=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=AA=E4=BA=BA=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=BF=AB?= =?UTF-8?q?=E9=80=9F=E6=B3=A8=E5=86=8C=E5=92=8C=E8=AF=95=E7=94=A8=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=BF=AB=E9=80=9F=E6=B3=A8=E5=86=8C=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/api/WxOpenComponentService.java | 48 +++++++++++++++++++ .../api/impl/WxOpenComponentServiceImpl.java | 28 +++++++++++ .../open/bean/message/WxOpenXmlMessage.java | 15 ++++++ .../result/WxOpenRegisterBetaWeappResult.java | 14 ++++++ .../WxOpenRegisterPersonalWeappResult.java | 15 ++++++ 5 files changed, 120 insertions(+) create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterBetaWeappResult.java create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterPersonalWeappResult.java diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java index c25acdf1aa..d56d8d4329 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java @@ -120,6 +120,21 @@ public interface WxOpenComponentService { */ String FAST_REGISTER_WEAPP_SEARCH_URL = "https://api.weixin.qq.com/cgi-bin/component/fastregisterweapp?action=search"; + /** + * 快速创建个人小程序接口. + */ + String FAST_REGISTER_PERSONAL_WEAPP_URL = "https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=create"; + + /** + * 查询快速创建个人小程序任务状态接口. + */ + String FAST_REGISTER_PERSONAL_WEAPP_SEARCH_URL = "https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=query"; + + /** + * 快速创建试用小程序接口. + */ + String FAST_REGISTER_BETA_WEAPP_URL = "https://api.weixin.qq.com/wxa/component/fastregisterbetaweapp"; + /** * 代小程序实现业务. * 小程序代码模版库管理:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1506504150_nMMh6&token=&lang=zh_CN @@ -581,6 +596,39 @@ public interface WxOpenComponentService { WxOpenResult fastRegisterWeappSearch(String name, String legalPersonaWechat, String legalPersonaName) throws WxErrorException; + /** + * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html + * 快速创建个人小程序 + * + * @param idname 个人用户名字 + * @param wxuser 个人用户微信号 + * @param componentPhone 第三方联系电话 + * @return the wx open result + * @throws WxErrorException + */ + WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeapp(String idname, String wxuser, String componentPhone) throws WxErrorException; + + /** + * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html + * 查询个人小程序注册任务状态 + * + * @param taskid 任务ID + * @return the wx open result + * @throws WxErrorException + */ + WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeappSearch(String taskid) throws WxErrorException; + + /** + * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html + * 注册试用小程序 + * + * @param name 小程序名称 + * @param openid 微信用户的openid(不是微信号) + * @return the wx open result + * @throws WxErrorException + */ + WxOpenRegisterBetaWeappResult fastRegisterBetaWeapp(String name, String openid) throws WxErrorException; + /** * https://api.weixin.qq.com/product/register/register_shop?component_access_token=xxxxxxxxx * 注册小商店账号 diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java index ac71523a7e..28bd71cb54 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java @@ -626,6 +626,34 @@ public WxOpenResult fastRegisterWeappSearch(String name, String legalPersonaWech return WxOpenGsonBuilder.create().fromJson(response, WxOpenResult.class); } + @Override + public WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeapp(String idname, String wxuser, String componentPhone) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("idname", idname); + jsonObject.addProperty("wxuser", wxuser); + jsonObject.addProperty("component_phone", componentPhone); + String response = post(FAST_REGISTER_PERSONAL_WEAPP_URL, jsonObject.toString(), "component_access_token"); + return WxOpenGsonBuilder.create().fromJson(response, WxOpenRegisterPersonalWeappResult.class); + } + + @Override + public WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeappSearch(String taskid) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("taskid", taskid); + String response = post(FAST_REGISTER_PERSONAL_WEAPP_SEARCH_URL, jsonObject.toString(), "component_access_token"); + return WxOpenGsonBuilder.create().fromJson(response, WxOpenRegisterPersonalWeappResult.class); + } + + @Override + public WxOpenRegisterBetaWeappResult fastRegisterBetaWeapp(String name, String openid) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("name", name); + jsonObject.addProperty("openid", openid); + String response = wxOpenService.getWxOpenComponentService() + .post(FAST_REGISTER_BETA_WEAPP_URL, jsonObject.toString(), "access_token"); + return WxOpenGsonBuilder.create().fromJson(response, WxOpenRegisterBetaWeappResult.class); + } + @Override public WxOpenResult registerShop(String wxName, String idCardName, String idCardNumber, String channelId, Integer apiOpenstoreType, String authPageUrl) throws WxErrorException { JsonObject jsonObject = new JsonObject(); diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java index 7a41355920..a79a7a9af0 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java @@ -102,6 +102,21 @@ public static class Info implements Serializable { @XStreamAlias("component_phone") @XStreamConverter(value = XStreamCDataConverter.class) private String componentPhone; + + // 创建个人小程序审核通知数据 + @XStreamAlias("wxuser") + @XStreamConverter(value = XStreamCDataConverter.class) + private String wxuser; + + @XStreamAlias("idname") + @XStreamConverter(value = XStreamCDataConverter.class) + private String idname; + + // 创建试用小程序成功/失败的通知数据 + @XStreamAlias("unique_id") + @XStreamConverter(value = XStreamCDataConverter.class) + private String uniqueId; + } public static String wxMpOutXmlMessageToEncryptedXml(WxMpXmlOutMessage message, WxOpenConfigStorage wxOpenConfigStorage) { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterBetaWeappResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterBetaWeappResult.java new file mode 100644 index 0000000000..735a26eca8 --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterBetaWeappResult.java @@ -0,0 +1,14 @@ +package me.chanjar.weixin.open.bean.result; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = true) +public class WxOpenRegisterBetaWeappResult extends WxOpenResult { + @SerializedName("authorize_url") + private String authorizeUrl; + @SerializedName("unique_id") + protected String uniqueId; +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterPersonalWeappResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterPersonalWeappResult.java new file mode 100644 index 0000000000..18ef23e39d --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenRegisterPersonalWeappResult.java @@ -0,0 +1,15 @@ +package me.chanjar.weixin.open.bean.result; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = true) +public class WxOpenRegisterPersonalWeappResult extends WxOpenResult { + private String taskid; + @SerializedName("authorize_url") + private String authorizeUrl; + @SerializedName("status") + private Integer status; +} From def6856b020ae6c4976f02875fefe8e8b1ea5336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=95=87=E6=B6=9B?= Date: Mon, 8 Nov 2021 21:00:55 +0800 Subject: [PATCH 031/622] =?UTF-8?q?:new:=20#2373=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91urllink=E7=94=9F=E6=88=90=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0env=5Fversion=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=E7=8E=AF=E5=A2=83=E9=9A=94=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/urllink/GenerateUrlLinkRequest.java | 14 +++++++++++++- .../miniapp/api/impl/WxMaLinkServiceImplTest.java | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java index 207aa3deee..9578e76949 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java @@ -1,9 +1,10 @@ package cn.binarywang.wx.miniapp.bean.urllink; -import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; +import lombok.NoArgsConstructor; import java.io.Serializable; @@ -16,6 +17,8 @@ */ @Data @Builder +@NoArgsConstructor +@AllArgsConstructor public class GenerateUrlLinkRequest implements Serializable { private static final long serialVersionUID = -2183685760797791910L; @@ -36,6 +39,15 @@ public class GenerateUrlLinkRequest implements Serializable { */ private String query; + /** + * 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop",仅在微信外打开时生效。 + *
+   * 是否必填: 否
+   * 
+ */ + @SerializedName("env_version") + private String envVersion = "release"; + /** * 生成的 URL Link 类型,到期失效:true,永久有效:false *
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java
index c97e11077d..8774affc0e 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java
@@ -5,12 +5,14 @@
 import cn.binarywang.wx.miniapp.bean.urllink.GenerateUrlLinkRequest;
 import cn.binarywang.wx.miniapp.test.ApiTestModule;
 import com.google.inject.Inject;
+import lombok.extern.slf4j.Slf4j;
 import me.chanjar.weixin.common.error.WxErrorException;
 import org.testng.annotations.Guice;
 import org.testng.annotations.Test;
 
 @Test
 @Guice(modules = ApiTestModule.class)
+@Slf4j
 public class WxMaLinkServiceImplTest {
   @Inject
   private WxMaService wxMaService;
@@ -34,4 +36,17 @@ public void testGenerateShortLink() throws WxErrorException {
     System.out.println("generate:");
     System.out.println(generate);
   }
+
+  /**
+   * 多版本链接生成测试
+   * 开发时,仅支持IOS设备打开体验版及开发版
+   */
+  @Test
+  public void testGenerateMultiEnvUrlLink() throws WxErrorException {
+    String url = this.wxMaService.getLinkService().generateUrlLink(GenerateUrlLinkRequest.builder()
+      .path("")
+      .envVersion("trial")
+      .build());
+    log.info("generate url link = {}", url);
+  }
 }

From 23a115fdee69f6fe555a9ac28a023ca30390cf04 Mon Sep 17 00:00:00 2001
From: tt <30398051+zhentang3@users.noreply.github.com>
Date: Mon, 8 Nov 2021 21:03:18 +0800
Subject: [PATCH 032/622] =?UTF-8?q?:art:=20#2375=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91urlscheme=E7=94=9F=E6=88=90=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3=E8=B0=83=E6=95=B4=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0?=
 =?UTF-8?q?=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../bean/scheme/WxMaGenerateSchemeRequest.java       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java
index 80c5f90347..f8ef32b2fd 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java
@@ -39,12 +39,6 @@ public class WxMaGenerateSchemeRequest {
   @SerializedName("expire_time")
   private Long expireTime;
 
-  /**
-   * 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop"默认值:release
-   */
-  @SerializedName("env_version")
-  private String envVersion = "release";
-
   @Data
   @Builder(builderMethodName = "newBuilder")
   public static class JumpWxa {
@@ -66,6 +60,12 @@ public static class JumpWxa {
      */
     @SerializedName("query")
     private String query;
+
+    /**
+     * 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop"默认值:release
+     */
+    @SerializedName("env_version")
+    private String envVersion = "release";
   }
 
   public String toJson() {

From ef99e3d24f17d6e8df60c6b16f7ea0522cc8d3bb Mon Sep 17 00:00:00 2001
From: hywr <33077958+hywr@users.noreply.github.com>
Date: Sun, 14 Nov 2021 21:29:00 +0800
Subject: [PATCH 033/622] =?UTF-8?q?:new:=20#2385=20=E3=80=90=E5=BC=80?=
 =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=20=E5=A2=9E=E5=8A=A0?=
 =?UTF-8?q?=E4=B8=BA=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=AE=BE=E7=BD=AE=E7=94=A8?=
 =?UTF-8?q?=E6=88=B7=E9=9A=90=E7=A7=81=E6=8C=87=E5=BC=95=E7=9A=84=E7=9B=B8?=
 =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../chanjar/weixin/common/error/WxError.java  |   7 +
 .../open/api/WxOpenMaPrivacyService.java      |  65 +++++++
 .../weixin/open/api/WxOpenMaService.java      |   7 +
 .../api/impl/WxOpenMaPrivacyServiceImpl.java  |  55 ++++++
 .../open/api/impl/WxOpenMaServiceImpl.java    |   4 +
 .../ma/privacy/GetPrivacySettingResult.java   | 118 +++++++++++
 .../open/bean/ma/privacy/PrivacyKeyEnum.java  |  62 ++++++
 .../bean/ma/privacy/PrivacyOwnerSetting.java  |  65 +++++++
 .../bean/ma/privacy/SetPrivacySetting.java    |  68 +++++++
 .../ma/privacy/UploadPrivacyFileResult.java   |  22 +++
 .../GenericUploadRequestExecutor.java         | 184 ++++++++++++++++++
 11 files changed, 657 insertions(+)
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacySettingResult.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyKeyEnum.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyOwnerSetting.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/SetPrivacySetting.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/UploadPrivacyFileResult.java
 create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
index f1be843827..044086496d 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
@@ -2,6 +2,7 @@
 
 import lombok.Builder;
 import lombok.Data;
+import lombok.NoArgsConstructor;
 import me.chanjar.weixin.common.enums.WxType;
 import me.chanjar.weixin.common.util.json.WxGsonBuilder;
 import org.apache.commons.lang3.StringUtils;
@@ -17,6 +18,7 @@
  * @author Daniel Qian & Binary Wang
  */
 @Data
+@NoArgsConstructor
 @Builder
 public class WxError implements Serializable {
   private static final long serialVersionUID = 7869786563361406291L;
@@ -39,6 +41,11 @@ public class WxError implements Serializable {
 
   private String json;
 
+  public WxError(int errorCode, String errorMsg) {
+    this.errorCode = errorCode;
+    this.errorMsg = errorMsg;
+  }
+
   public static WxError fromJson(String json) {
     return fromJson(json, null);
   }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java
new file mode 100644
index 0000000000..4bf78f53bc
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java
@@ -0,0 +1,65 @@
+package me.chanjar.weixin.open.api;
+
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.open.bean.ma.privacy.GetPrivacySettingResult;
+import me.chanjar.weixin.open.bean.ma.privacy.SetPrivacySetting;
+import me.chanjar.weixin.open.bean.ma.privacy.UploadPrivacyFileResult;
+import org.jetbrains.annotations.Nullable;
+
+/**
+ * 微信第三方平台 小程序用户隐私保护指引接口
+ * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/set_privacy_setting.html
+ *
+ * @author 广州跨界
+ */
+public interface WxOpenMaPrivacyService {
+
+  /**
+   * 1 设置小程序用户隐私保护指引
+   */
+  String OPEN_SET_PRIVACY_SETTING = "https://api.weixin.qq.com/cgi-bin/component/setprivacysetting";
+
+  /**
+   * 2 查询小程序用户隐私保护指引
+   */
+  String OPEN_GET_PRIVACY_SETTING = "https://api.weixin.qq.com/cgi-bin/component/getprivacysetting";
+
+  /**
+   * 3 上传小程序用户隐私保护指引文件
+   */
+  String OPEN_UPLOAD_PRIVACY_FILE = "https://api.weixin.qq.com/cgi-bin/component/uploadprivacyextfile";
+
+
+  /**
+   * 查询小程序用户隐私保护指引
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/get_privacy_setting.html
+   *
+   * @param privacyVer 1表示现网版本,即,传1则该接口返回的内容是现网版本的;2表示开发版,即,传2则该接口返回的内容是开发版本的。默认是2。
+   * @return 查询结果
+   * @throws WxErrorException 如果出错,抛出此异常
+   */
+  GetPrivacySettingResult getPrivacySetting(@Nullable Integer privacyVer) throws WxErrorException;
+
+
+  /**
+   * 设置小程序用户隐私保护指引
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/set_privacy_setting.html
+   *
+   * @param dto 参数对象
+   * @throws WxErrorException 如果出错,抛出此异常
+   */
+  void setPrivacySetting(SetPrivacySetting dto) throws WxErrorException;
+
+
+  /**
+   * 上传小程序用户隐私保护指引文件
+   * 本接口用于上传自定义的小程序的用户隐私保护指引
+   * 仅限文本文件, 限制文件大小为不超过100kb,否则会报错
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/upload_privacy_exfile.html
+   *
+   * @param content 文本文件内容
+   * @return 上传结果
+   * @throws WxErrorException 如果出错,抛出此异常
+   */
+  UploadPrivacyFileResult uploadPrivacyFile(String content) throws WxErrorException;
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java
index cbb4b23783..f907ff9be6 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java
@@ -632,6 +632,13 @@ WxOpenMaDomainResult modifyDomain(String action, List requestDomains, Li
    */
   WxOpenMaBasicService getBasicService();
 
+  /**
+   * 小程序用户隐私保护指引服务
+   *
+   * @return 小程序用户隐私保护指引服务
+   */
+  WxOpenMaPrivacyService getPrivacyService();
+
   /**
    * 小程序审核 提审素材上传接口
    *
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java
new file mode 100644
index 0000000000..f7deb523c6
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java
@@ -0,0 +1,55 @@
+package me.chanjar.weixin.open.api.impl;
+
+import cn.binarywang.wx.miniapp.api.WxMaService;
+import lombok.AllArgsConstructor;
+import lombok.SneakyThrows;
+import me.chanjar.weixin.common.error.WxError;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.open.api.WxOpenMaPrivacyService;
+import me.chanjar.weixin.open.bean.ma.privacy.GetPrivacySettingResult;
+import me.chanjar.weixin.open.bean.ma.privacy.SetPrivacySetting;
+import me.chanjar.weixin.open.bean.ma.privacy.UploadPrivacyFileResult;
+import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
+import org.jetbrains.annotations.Nullable;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 微信第三方平台 小程序用户隐私保护指引接口
+ * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/set_privacy_setting.html
+ *
+ * @author 广州跨界
+ */
+@AllArgsConstructor
+public class WxOpenMaPrivacyServiceImpl implements WxOpenMaPrivacyService {
+
+  private final WxMaService wxMaService;
+
+
+  @Override
+  public GetPrivacySettingResult getPrivacySetting(@Nullable Integer privacyVer) throws WxErrorException {
+    Map params = new HashMap<>();
+    if (privacyVer != null) {
+      params.put("privacy_ver", privacyVer);
+    }
+    String json = wxMaService.post(OPEN_GET_PRIVACY_SETTING, params);
+    return WxOpenGsonBuilder.create().fromJson(json, GetPrivacySettingResult.class);
+  }
+
+  @Override
+  public void setPrivacySetting(SetPrivacySetting dto) throws WxErrorException {
+    wxMaService.post(OPEN_SET_PRIVACY_SETTING, dto);
+  }
+
+  @SneakyThrows
+  @Override
+  public UploadPrivacyFileResult uploadPrivacyFile(String content) throws WxErrorException {
+    // TODO 应实现通过InputStream上传的功能,一下代码暂时无法正常运行
+//    ByteArrayInputStream data = new ByteArrayInputStream(content.getBytes("GBK"));
+//    GenericUploadRequestExecutor executor = new GenericUploadRequestExecutor(wxMaService.getRequestHttp(), "POST", "file", "/temp.txt");
+//    String json = wxMaService.execute(executor, OPEN_UPLOAD_PRIVACY_FILE, data);
+//    return WxOpenGsonBuilder.create().fromJson(json, UploadPrivacyFileResult.class);
+    throw new WxErrorException(new WxError(5003, "暂未实现用户隐私指引内容上传"));
+  }
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java
index 4fb637b393..7188a669c2 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java
@@ -15,6 +15,7 @@
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.open.api.WxOpenComponentService;
 import me.chanjar.weixin.open.api.WxOpenMaBasicService;
+import me.chanjar.weixin.open.api.WxOpenMaPrivacyService;
 import me.chanjar.weixin.open.api.WxOpenMaService;
 import me.chanjar.weixin.open.bean.ma.WxMaQrcodeParam;
 import me.chanjar.weixin.open.bean.ma.WxMaScheme;
@@ -42,12 +43,15 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ
   private final String appId;
   @Getter
   private final WxOpenMaBasicService basicService;
+  @Getter
+  private final WxOpenMaPrivacyService privacyService;
 
   public WxOpenMaServiceImpl(WxOpenComponentService wxOpenComponentService, String appId, WxMaConfig wxMaConfig) {
     this.wxOpenComponentService = wxOpenComponentService;
     this.appId = appId;
     this.wxMaConfig = wxMaConfig;
     this.basicService = new WxOpenMaBasicServiceImpl(this);
+    this.privacyService = new WxOpenMaPrivacyServiceImpl(this);
     initHttp();
   }
 
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacySettingResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacySettingResult.java
new file mode 100644
index 0000000000..a3b0a6ef1b
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacySettingResult.java
@@ -0,0 +1,118 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.open.bean.result.WxOpenResult;
+
+import java.util.List;
+
+/**
+ * 查询小程序用户隐私保护指引 响应
+ *
+ * @author 广州跨界
+ */
+@Getter
+@Setter
+public class GetPrivacySettingResult extends WxOpenResult {
+
+  /**
+   * 代码是否存在, 0 不存在, 1 存在 。如果最近没有通过commit接口上传代码,则会出现 code_exist=0的情况。
+   */
+  @SerializedName("code_exist")
+  private Integer codeExist;
+
+  /**
+   * 代码检测出来的用户信息类型(privacy_key)
+   */
+  @SerializedName("privacy_list")
+  private List privacyList;
+
+  /**
+   * 要收集的用户信息配置
+   */
+  @SerializedName("setting_list")
+  private List settingList;
+
+  /**
+   * 更新时间
+   */
+  @SerializedName("update_time")
+  private Long updateTime;
+
+  /**
+   * 收集方(开发者)信息配置
+   */
+  @SerializedName("owner_setting")
+  private PrivacyOwnerSetting ownerSetting;
+
+  /**
+   * 收集方(开发者)信息配置
+   */
+  @SerializedName("privacy_desc")
+  private PrivacyDesc privacyDesc;
+
+
+  @Data
+  public static class Setting {
+
+    /**
+     * 官方的可选值参考下方说明;该字段也支持自定义
+     *
+     * @see PrivacyKeyEnum
+     * @see PrivacyKeyEnum#getKey()
+     */
+    @SerializedName("privacy_key")
+    private String privacyKey;
+
+    /**
+     * 请填写收集该信息的用途。例如privacy_key=Location(位置信息),那么privacy_text则填写收集位置信息的用途。
+     * 无需再带上“为了”或者“用于”这些字眼,小程序端的显示格式是为了xxx,因此开发者只需要直接填写用途即可。
+     */
+    @SerializedName("privacy_text")
+    private String privacyText;
+
+    /**
+     * 用户信息类型的中文名称
+     *
+     * @see PrivacyKeyEnum#getDesc() ()
+     */
+    @SerializedName("privacy_label")
+    private String privacyLabel;
+  }
+
+
+  @Data
+  public static class PrivacyDesc {
+
+    /**
+     * 用户信息类型
+     */
+    @SerializedName("privacy_desc_list")
+    private List privacyDescList;
+  }
+
+  @Data
+  public static class PrivacyDescItem {
+
+    /**
+     * 用户信息类型的英文key
+     *
+     * @see PrivacyKeyEnum
+     * @see PrivacyKeyEnum#getKey()
+     */
+    @SerializedName("privacy_key")
+    private String privacyKey;
+
+    /**
+     * 用户信息类型的中文描述
+     *
+     * @see PrivacyKeyEnum#getDesc()
+     */
+    @SerializedName("privacy_desc")
+    private String privacyDesc;
+  }
+
+
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyKeyEnum.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyKeyEnum.java
new file mode 100644
index 0000000000..c3d6af281a
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyKeyEnum.java
@@ -0,0 +1,62 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+
+/**
+ * 隐私key枚举
+ *
+ * @author 广州跨界
+ */
+@Getter
+@AllArgsConstructor
+public enum PrivacyKeyEnum {
+
+  USER_INFO("UserInfo", "用户信息(微信昵称、头像)"),
+
+  LOCATION("Location", "位置信息"),
+
+  ADDRESS("Address", "地址"),
+
+  INVOICE("Invoice", "发票信息"),
+
+  RUN_DATA("RunData", "微信运动数据"),
+
+  RECORD("Record", "麦克风"),
+
+  ALBUM("Album", "选中的照片或视频信息"),
+
+  CAMERA("Camera", "摄像头"),
+
+  PHONE_NUMBER("PhoneNumber", "手机号码"),
+
+  CONTACT("Contact", "通讯录(仅写入)权限"),
+
+  DEVICE_INFO("DeviceInfo", "设备信息"),
+
+  EXID_NUMBER("EXIDNumber", "身份证号码"),
+
+  EX_ORDER_INFO("EXOrderInfo", "订单信息"),
+
+  EX_USER_PUBLISH_CONTENT("EXUserPublishContent", "发布内容"),
+
+  EX_USER_FOLLOW_ACCT("EXUserFollowAcct", "所关注账号"),
+
+  EX_USER_OP_LOG("EXUserOpLog", "操作日志"),
+
+  ALBUM_WRITE_ONLY("AlbumWriteOnly", "相册(仅写入)权限"),
+
+  LICENSE_PLATE("LicensePlate", "车牌号"),
+
+  BLUE_TOOTH("BlueTooth", "蓝牙"),
+
+  CALENDAR_WRITE_ONLY("CalendarWriteOnly", "日历(仅写入)权限"),
+
+  EMAIL("Email", "邮箱"),
+
+  MESSAGE_FILE("MessageFile", "选中的文件"),
+  ;
+
+  private final String key;
+  private final String desc;
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyOwnerSetting.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyOwnerSetting.java
new file mode 100644
index 0000000000..a52d0588a9
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/PrivacyOwnerSetting.java
@@ -0,0 +1,65 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * 小程序用户隐私保护指引 收集方(开发者)信息配置
+ *
+ * @author 广州跨界
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class PrivacyOwnerSetting {
+
+  /**
+   * 信息收集方(开发者)的邮箱地址,4种联系方式至少要填一种
+   */
+  @SerializedName("contact_email")
+  private String contactEmail;
+
+  /**
+   * 信息收集方(开发者)的手机号,4种联系方式至少要填一种
+   */
+  @SerializedName("contact_phone")
+  private String contactPhone;
+
+  /**
+   * 信息收集方(开发者)的qq号,4种联系方式至少要填一种
+   */
+  @SerializedName("contact_qq")
+  private String contactQq;
+
+  /**
+   * 信息收集方(开发者)的微信号,4种联系方式至少要填一种
+   */
+  @SerializedName("contact_weixin")
+  private String contactWeixin;
+
+  /**
+   * 如果开发者不使用微信提供的标准化用户隐私保护指引模板,也可以上传自定义的用户隐私保护指引,通过上传接口上传后可获取media_id
+   */
+  @SerializedName("ext_file_media_id")
+  private String extFileMediaId;
+
+  /**
+   * 通知方式,指的是当开发者收集信息有变动时,通过该方式通知用户。这里服务商需要按照实际情况填写,例如通过弹窗或者公告或者其他方式。
+   */
+  @NotNull
+  @SerializedName("notice_method")
+  private String noticeMethod;
+
+  /**
+   * 存储期限,指的是开发者收集用户信息存储多久。如果不填则展示为【开发者承诺,除法律法规另有规定,开发者对你的信息保存期限应当为实现处理目的所必要的最短时间】,
+   * 如果填请填数字+天,例如“30天”,否则会出现87072的报错。
+   */
+  @SerializedName("store_expire_timestamp")
+  private String storeExpireTimestamp;
+
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/SetPrivacySetting.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/SetPrivacySetting.java
new file mode 100644
index 0000000000..d74b86d45a
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/SetPrivacySetting.java
@@ -0,0 +1,68 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.jetbrains.annotations.NotNull;
+
+import java.util.List;
+
+/**
+ * 设置小程序用户隐私保护指引参数
+ *
+ * @author 广州跨界
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class SetPrivacySetting {
+
+  /**
+   * 用户隐私保护指引的版本,1表示现网版本;2表示开发版。默认是2开发版。
+   */
+  @SerializedName("privacy_ver")
+  private Integer privacyVer;
+
+  /**
+   * 收集方(开发者)信息配置
+   */
+  @NotNull
+  @SerializedName("owner_setting")
+  private PrivacyOwnerSetting ownerSetting;
+
+  /**
+   * 要收集的用户信息配置
+   */
+  @NotNull
+  @SerializedName("setting_list")
+  private List settingList;
+
+
+  @Data
+  @Builder
+  @NoArgsConstructor
+  @AllArgsConstructor
+  public static class Setting {
+
+    /**
+     * 官方的可选值参考下方说明;该字段也支持自定义
+     *
+     * @see PrivacyKeyEnum
+     * @see PrivacyKeyEnum#getKey()
+     */
+    @NotNull
+    @SerializedName("privacy_key")
+    private String privacyKey;
+
+    /**
+     * 请填写收集该信息的用途。例如privacy_key=Location(位置信息),那么privacy_text则填写收集位置信息的用途。
+     * 无需再带上“为了”或者“用于”这些字眼,小程序端的显示格式是为了xxx,因此开发者只需要直接填写用途即可。
+     */
+    @NotNull
+    @SerializedName("privacy_text")
+    private String privacyText;
+  }
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/UploadPrivacyFileResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/UploadPrivacyFileResult.java
new file mode 100644
index 0000000000..d2fcfecc50
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/UploadPrivacyFileResult.java
@@ -0,0 +1,22 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.open.bean.result.WxOpenResult;
+
+/**
+ * 上传小程序用户隐私保护指引文件 响应
+ *
+ * @author 广州跨界
+ */
+@Getter
+@Setter
+public class UploadPrivacyFileResult extends WxOpenResult {
+
+  /**
+   * 文件的media_id
+   */
+  @SerializedName("ext_file_media_id")
+  private String extFileMediaId;
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java
new file mode 100644
index 0000000000..3ef3fd2e1e
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java
@@ -0,0 +1,184 @@
+package me.chanjar.weixin.open.executor;
+
+import jodd.http.HttpConnectionProvider;
+import jodd.http.HttpRequest;
+import jodd.http.HttpResponse;
+import jodd.http.ProxyInfo;
+import lombok.Data;
+import me.chanjar.weixin.common.enums.WxType;
+import me.chanjar.weixin.common.error.WxError;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.common.util.http.RequestExecutor;
+import me.chanjar.weixin.common.util.http.RequestHttp;
+import me.chanjar.weixin.common.util.http.ResponseHandler;
+import me.chanjar.weixin.common.util.http.apache.Utf8ResponseHandler;
+import okhttp3.*;
+import org.apache.commons.io.IOUtils;
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpHost;
+import org.apache.http.client.config.RequestConfig;
+import org.apache.http.client.methods.*;
+import org.apache.http.entity.ContentType;
+import org.apache.http.entity.mime.HttpMultipartMode;
+import org.apache.http.entity.mime.MultipartEntityBuilder;
+import org.apache.http.impl.client.CloseableHttpClient;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+import java.util.Objects;
+
+/**
+ * 通用的上传请求执行器
+ */
+public class GenericUploadRequestExecutor implements RequestExecutor {
+
+  private final Executor executor;
+
+  /**
+   * 构造通用执行器
+   *
+   * @param requestHttp http请求
+   * @param httpMethod  http方法(POST PUT PATCH)
+   * @param paramName   参数名
+   * @param fileName    文件名
+   */
+  @SuppressWarnings("all")
+  public GenericUploadRequestExecutor(RequestHttp requestHttp, String httpMethod, String paramName, String fileName) {
+    switch (requestHttp.getRequestType()) {
+      case APACHE_HTTP:
+        executor = new ApacheExecutor();
+        break;
+      case OK_HTTP:
+        executor = new OkExecutor();
+        break;
+      case JODD_HTTP:
+        executor = new JoddExecutor();
+        break;
+      default:
+        throw new UnsupportedOperationException("使用了暂不支持的HTTP客户端:" + requestHttp.getRequestType());
+    }
+    executor.setRequestHttp((RequestHttp) requestHttp);
+    executor.setHttpMethod(httpMethod);
+    executor.setParamName(paramName);
+    executor.setFileName(fileName);
+  }
+
+  @Override
+  public String execute(String uri, InputStream data, WxType wxType) throws WxErrorException, IOException {
+    String json = executor.execute(uri, data, wxType);
+    WxError error = WxError.fromJson(json, wxType);
+    if (error.getErrorCode() != 0) {
+      throw new WxErrorException(error);
+    }
+    return json;
+  }
+
+  @Override
+  public void execute(String uri, InputStream data, ResponseHandler handler, WxType wxType) throws WxErrorException, IOException {
+    handler.handle(this.execute(uri, data, wxType));
+  }
+
+  /**
+   * 内部请求执行器
+   *
+   * @param  http客户端
+   * @param   http代理
+   */
+  @Data
+  public static abstract class Executor {
+
+    private RequestHttp requestHttp;
+    private String httpMethod;
+    private String paramName;
+    private String fileName;
+
+    public abstract String execute(String uri, InputStream data, WxType wxType) throws WxErrorException, IOException;
+  }
+
+  /**
+   * 阿帕奇执行器
+   */
+  public static class ApacheExecutor extends Executor {
+
+    @Override
+    public String execute(String uri, InputStream data, WxType wxType) throws WxErrorException, IOException {
+      HttpEntityEnclosingRequestBase bodyRequest;
+      switch (getHttpMethod()) {
+        case "POST":
+          bodyRequest = new HttpPost(uri);
+          break;
+        case "PUT":
+          bodyRequest = new HttpPut(uri);
+          break;
+        case "PATCH":
+          bodyRequest = new HttpPatch(uri);
+          break;
+        default:
+          throw new IllegalAccessError("不支持的请求方式:" + getHttpMethod());
+      }
+      if (getRequestHttp().getRequestHttpProxy() != null) {
+        RequestConfig config = RequestConfig.custom().setProxy(getRequestHttp().getRequestHttpProxy()).build();
+        bodyRequest.setConfig(config);
+      }
+
+      HttpEntity entity = MultipartEntityBuilder
+        .create()
+        .addBinaryBody(getParamName(), data, ContentType.create("multipart/form-data", StandardCharsets.UTF_8), getFileName())
+        .setMode(HttpMultipartMode.RFC6532)
+        .build();
+      bodyRequest.setEntity(entity);
+      bodyRequest.setHeader("Content-Type", ContentType.MULTIPART_FORM_DATA.toString());
+
+      try (CloseableHttpResponse response = getRequestHttp().getRequestHttpClient().execute(bodyRequest)) {
+        return Utf8ResponseHandler.INSTANCE.handleResponse(response);
+      } finally {
+        bodyRequest.releaseConnection();
+      }
+    }
+  }
+
+  /**
+   * ok执行器
+   */
+  public static class OkExecutor extends Executor {
+
+    @Override
+    public String execute(String uri, InputStream data, WxType wxType) throws WxErrorException, IOException {
+      OkHttpClient client = getRequestHttp().getRequestHttpClient();
+
+      byte[] bytes = data instanceof ByteArrayInputStream ? ((ByteArrayInputStream) data).readAllBytes() : IOUtils.toByteArray(data);
+      RequestBody body = new MultipartBody.Builder()
+        .setType(Objects.requireNonNull(MediaType.parse("multipart/form-data")))
+        .addFormDataPart("media", getFileName(), RequestBody.create(bytes, MediaType.parse("application/octet-stream")))
+        .build();
+
+      Request request = new Request.Builder().url(uri).method(getHttpMethod(), body).build();
+      Response response = client.newCall(request).execute();
+      return response.body().string();
+    }
+  }
+
+  /**
+   * jodd执行器
+   */
+  public static class JoddExecutor extends Executor {
+
+    @Override
+    public String execute(String uri, InputStream data, WxType wxType) throws WxErrorException, IOException {
+      HttpRequest request = HttpRequest.post(uri);
+      if (getRequestHttp().getRequestHttpProxy() != null) {
+        getRequestHttp().getRequestHttpClient().useProxy(getRequestHttp().getRequestHttpProxy());
+      }
+      request.withConnectionProvider(getRequestHttp().getRequestHttpClient());
+
+      byte[] bytes = data instanceof ByteArrayInputStream ? ((ByteArrayInputStream) data).readAllBytes() : IOUtils.toByteArray(data);
+      request.form(getParamName(), data);
+
+      HttpResponse response = request.send();
+      response.charset(StandardCharsets.UTF_8.name());
+      return response.bodyText();
+    }
+  }
+}

From 93779d227ab956d24760f73e7d3d1be806637d28 Mon Sep 17 00:00:00 2001
From: Lo_ading 
Date: Sun, 14 Nov 2021 21:31:29 +0800
Subject: [PATCH 034/622] =?UTF-8?q?:new=20:#2382=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=8E=B7?=
 =?UTF-8?q?=E5=8F=96=E5=95=86=E5=93=81=E5=9B=BE=E5=86=8C=E7=9A=84=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../cp/api/WxCpExternalContactService.java    | 34 ++++++++++--
 .../impl/WxCpExternalContactServiceImpl.java  | 49 ++++++++++++++++-
 .../bean/external/WxCpProductAlbumInfo.java   | 53 +++++++++++++++++++
 .../external/WxCpProductAlbumListResult.java  | 35 ++++++++++++
 .../bean/external/WxCpProductAlbumResult.java | 31 +++++++++++
 .../external/contact/ExternalContact.java     | 20 +++++++
 .../cp/bean/external/product/Attachment.java  | 31 +++++++++++
 .../cp/bean/external/product/Image.java       | 20 +++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  3 ++
 .../weixin/cp/constant/WxCpConsts.java        | 11 ++++
 .../WxCpExternalContactServiceImplTest.java   | 17 +++++-
 11 files changed, 298 insertions(+), 6 deletions(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java
index 396bbe4a9c..40e7741a97 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java
@@ -109,7 +109,7 @@ public interface WxCpExternalContactService {
    * @param userId 外部联系人的userid
    * @return . external contact
    * @throws WxErrorException the wx error exception
-   * @deprecated 建议使用 {@link #getContactDetail(String)}
+   * @deprecated 建议使用 {@link #getContactDetail(String, String)}
    */
   @Deprecated
   WxCpExternalContactInfo getExternalContact(String userId) throws WxErrorException;
@@ -130,10 +130,11 @@ public interface WxCpExternalContactService {
    * 
* * @param userId 外部联系人的userid,注意不是企业成员的帐号 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 * @return . contact detail * @throws WxErrorException . */ - WxCpExternalContactInfo getContactDetail(String userId) throws WxErrorException; + WxCpExternalContactInfo getContactDetail(String userId, String cursor) throws WxErrorException; /** * 企业和服务商可通过此接口,将微信外部联系人的userid转为微信openid,用于调用支付相关接口。暂不支持企业微信外部联系人(ExternalUserid为wo开头)的userid转openid。 @@ -190,7 +191,7 @@ public interface WxCpExternalContactService { * @throws WxErrorException . */ String opengidToChatid(@NotNull String opengid) throws WxErrorException; - + /** * 批量获取客户详情. *
@@ -789,4 +790,31 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId)
    * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp delGroupWelcomeTemplate(@NotNull String templateId, String agentId) throws WxErrorException;
+
+  /**
+   * 
+   * 获取商品图册
+   * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表
+   * 
+ * + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpProductAlbumListResult getProductAlbumList(Integer limit, String cursor) throws WxErrorException; + + /** + *
+   * 获取商品图册
+   * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
+   * 
+ * + * @param productId 商品id + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + WxCpProductAlbumResult getProductAlbum(String productId) throws WxErrorException; + + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java index 19937e3827..d9426a8340 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java @@ -102,8 +102,12 @@ public WxCpExternalContactInfo getExternalContact(String userId) throws WxErrorE } @Override - public WxCpExternalContactInfo getContactDetail(String userId) throws WxErrorException { - final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_CONTACT_DETAIL + userId); + public WxCpExternalContactInfo getContactDetail(String userId, String cursor) throws WxErrorException { + String params = userId; + if(StringUtils.isNotEmpty(cursor)){ + params = params + "&cursor=" + cursor; + } + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_CONTACT_DETAIL + params); String responseContent = this.mainService.get(url, null); return WxCpExternalContactInfo.fromJson(responseContent); } @@ -702,4 +706,45 @@ public WxCpBaseResp delGroupWelcomeTemplate(@NotNull String templateId, String a final String result = this.mainService.post(url, json.toString()); return WxCpBaseResp.fromJson(result); } + + /** + *
+   * 获取商品图册
+   * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表
+   * 
+ * + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpProductAlbumListResult getProductAlbumList(Integer limit, String cursor) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("limit", limit); + json.addProperty("cursor", cursor); + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_PRODUCT_ALBUM_LIST); + final String result = this.mainService.post(url, json.toString()); + return WxCpProductAlbumListResult.fromJson(result); + } + + /** + *
+   * 获取商品图册
+   * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
+   * 
+ * + * @param productId 商品id + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpProductAlbumResult getProductAlbum(String productId) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("product_id", productId); + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_PRODUCT_ALBUM); + final String result = this.mainService.post(url, json.toString()); + return WxCpProductAlbumResult.fromJson(result); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java new file mode 100644 index 0000000000..d84b9f232c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java @@ -0,0 +1,53 @@ +package me.chanjar.weixin.cp.bean.external; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.external.product.Attachment; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + *
+ * 获取商品图册
+ * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
+ * 
+ * + * @author Lo_ading + */ +@Getter +@Setter +public class WxCpProductAlbumInfo implements Serializable { + + private static final long serialVersionUID = -8338202601802366899L; + + @SerializedName("product_id") + private String productId; + + @SerializedName("product_sn") + private String productSn; + + @SerializedName("description") + private String description; + + /** + * NOTE: 20211110 价钱返回全部为0 + */ + @SerializedName("price") + private Integer price; + + /** + * NOTE: 20211110 商品列表接口不返回此字段, 商品详情接口返回 + */ + @SerializedName("create_time") + private Long createTime; + + @SerializedName("attachments") + private List attachments; + + public static WxCpProductAlbumInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumInfo.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java new file mode 100644 index 0000000000..29b9d4c571 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java @@ -0,0 +1,35 @@ +package me.chanjar.weixin.cp.bean.external; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + *
+ * 获取商品图册列表执行结果
+ * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表
+ * 
+ * + * @author Lo_ading + */ +@Getter +@Setter +public class WxCpProductAlbumListResult extends WxCpBaseResp implements Serializable { + + private static final long serialVersionUID = 121265727802015428L; + + @SerializedName("product_list") + private List productList; + + @SerializedName("next_cursor") + private String nextCursor; + + public static WxCpProductAlbumListResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumListResult.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java new file mode 100644 index 0000000000..74e5fc3be4 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java @@ -0,0 +1,31 @@ +package me.chanjar.weixin.cp.bean.external; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + *
+ * 获取商品图册执行结果
+ * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
+ * 
+ * + * @author Lo_ading + */ +@Getter +@Setter +public class WxCpProductAlbumResult extends WxCpBaseResp implements Serializable { + + private static final long serialVersionUID = 4076734101839851497L; + + @SerializedName("product") + private WxCpProductAlbumInfo product; + + public static WxCpProductAlbumResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumResult.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java index 5b7f9e67b1..f19584ed90 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java @@ -51,10 +51,30 @@ public class ExternalContact implements Serializable { public static class ExternalProfile implements Serializable { private static final long serialVersionUID = -2899906589789022765L; + @SerializedName("external_corp_name") + private String externalCorpName; + + @SerializedName("wechat_channels") + private WechatChannel wechatChannels; + @SerializedName("external_attr") private List externalAttrs; } + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class WechatChannel implements Serializable { + + @SerializedName("nickname") + private String nickname; + + @SerializedName("status") + private Integer status; + + } + @Data @Builder @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java new file mode 100644 index 0000000000..cfcb688c2d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java @@ -0,0 +1,31 @@ +package me.chanjar.weixin.cp.bean.external.product; + +import java.io.Serializable; +import lombok.Data; +import me.chanjar.weixin.cp.constant.WxCpConsts; + +/** + * 商品画册附件 + * + * @author Lo_ading + */ +@Data +public class Attachment implements Serializable { + + private static final long serialVersionUID = -4545283630169056262L; + + /** + * NOTE: 20211110 字段接口未返回 + */ + private String type; + + /** + * 附件类型,目前仅支持image + */ + private Image image; + + public void setImage(Image image) { + this.image = image; + this.type = WxCpConsts.ProductAttachmentType.IMAGE; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java new file mode 100644 index 0000000000..d56f0b2705 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java @@ -0,0 +1,20 @@ +package me.chanjar.weixin.cp.bean.external.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * 商品画册图片 + * + * @author Lo_ading + */ +@Data +public class Image implements Serializable { + + private static final long serialVersionUID = -2737415903252627814L; + + @SerializedName("media_id") + private String mediaId; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index ddc56d133e..71eadb63aa 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -219,6 +219,9 @@ interface ExternalContact { String GET_GROUP_MSG_TASK = "/cgi-bin/externalcontact/get_groupmsg_task"; String GET_GROUP_MSG_LIST_V2 = "/cgi-bin/externalcontact/get_groupmsg_list_v2"; + String GET_PRODUCT_ALBUM = "/cgi-bin/externalcontact/get_product_album"; + String GET_PRODUCT_ALBUM_LIST = "/cgi-bin/externalcontact/get_product_album_list"; + String GROUP_WELCOME_TEMPLATE_ADD = "/cgi-bin/externalcontact/group_welcome_template/add"; String GROUP_WELCOME_TEMPLATE_EDIT = "/cgi-bin/externalcontact/group_welcome_template/edit"; String GROUP_WELCOME_TEMPLATE_GET = "/cgi-bin/externalcontact/group_welcome_template/get"; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java index 601c7dbb30..f706c18991 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java @@ -359,4 +359,15 @@ public static class WelcomeMsgType { */ public static final String FILE = "file"; } + + @UtilityClass + public static class ProductAttachmentType { + + /** + * 图片消息. + */ + public static final String IMAGE = "image"; + + } + } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java index 60fdeb9b2e..f9f90192d8 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java @@ -20,6 +20,7 @@ import java.util.Collections; import java.util.Date; import java.util.List; +import org.testng.collections.CollectionUtils; import static org.testng.Assert.assertNotNull; @@ -111,7 +112,7 @@ public void testListExternalWithPermission() throws WxErrorException { @Test public void testGetContactDetail() throws WxErrorException { String externalUserId = this.configStorage.getExternalUserId(); - WxCpExternalContactInfo result = this.wxCpService.getExternalContactService().getContactDetail(externalUserId); + WxCpExternalContactInfo result = this.wxCpService.getExternalContactService().getContactDetail(externalUserId, null); System.out.println(result); assertNotNull(result); } @@ -314,4 +315,18 @@ public void testUpdateRemark() throws WxErrorException { .remarkPicMediaId("aaa") .build()); } + + @Test + public void testGetProductListAlbum() throws WxErrorException { + WxCpProductAlbumListResult result = this.wxCpService.getExternalContactService() + .getProductAlbumList(100, null); + System.out.println(result); + assertNotNull(result); + if(CollectionUtils.hasElements(result.getProductList())){ + WxCpProductAlbumResult result1 = this.wxCpService.getExternalContactService().getProductAlbum(result.getProductList().get(0).getProductId()); + System.out.println(result1); + assertNotNull(result1); + } + } + } From f7ab9f8f292099c696c03e0dbef756a751e7e17a Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 15 Nov 2021 09:58:44 +0800 Subject: [PATCH 035/622] =?UTF-8?q?:art:=20auditId=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=94=B9=E4=B8=BALong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java index 7d880ecc89..dfb7b1e48f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java @@ -20,7 +20,7 @@ public class WxMaLiveResult implements Serializable { private static final long serialVersionUID = 1L; private Integer total; - private Integer auditId; + private Long auditId; private Integer goodsId; private List goods; From 421fbd49934c1d3f8ebec790ab69750f6d4a2388 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 15 Nov 2021 10:34:07 +0800 Subject: [PATCH 036/622] add ccflow banner --- README.md | 11 +++++++++-- images/banners/ccflow.png | Bin 0 -> 104340 bytes 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 images/banners/ccflow.png diff --git a/README.md b/README.md index cecfc0215d..5c4963f591 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## WxJava - 微信开发 Java SDK(开发工具包) [![LICENSE](https://img.shields.io/badge/License-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) [![Badge](https://img.shields.io/badge/Link-996.icu-red.svg)](https://996.icu/#/zh_CN) +## WxJava - 微信开发 Java SDK [![LICENSE](https://img.shields.io/badge/License-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) [![Badge](https://img.shields.io/badge/Link-996.icu-red.svg)](https://996.icu/#/zh_CN) [![码云Gitee](https://gitee.com/binary/weixin-java-tools/badge/star.svg?theme=blue)](https://gitee.com/binary/weixin-java-tools) [![Github](https://img.shields.io/github/stars/Wechat-Group/WxJava?logo=github&style=flat)](https://github.com/Wechat-Group/WxJava) @@ -8,7 +8,7 @@ [![使用IntelliJ IDEA开发维护](https://img.shields.io/badge/IntelliJ%20IDEA-提供支持-blue.svg)](https://www.jetbrains.com/?from=WxJava-weixin-java-tools) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -#### 支持包括微信支付、开放平台、公众号、企业微信/企业号、小程序等微信功能的后端开发。 +#### 微信`Java`开发工具包,支持包括微信支付、开放平台、公众号、企业微信/企业号、小程序等微信功能模块的后端开发。

特别赞助 @@ -16,6 +16,13 @@
+ + +
+ + + +
diff --git a/images/banners/ccflow.png b/images/banners/ccflow.png new file mode 100644 index 0000000000000000000000000000000000000000..0b7d2b424ac0ba3f1228b4bb325bae8c36c825a7 GIT binary patch literal 104340 zcmV(?K-a&CP)Z%2!%)t zLa0Y|tFQX1`}V!}8_zj=t@p`~we~*y4BvO}?QXDFeSLeMbJkw-dWYwI*Sq-awOjZT zOeD*Lq_?H0Qchni$?}aY7w^1HX(q@PnIx4GoQuL2Kbg^Q)Bcqj0|i-my>BD{rvnJf zeIbcjz74wxz(BDpWY8q1lLY!Itm{Rsu2xDnP!fZ!Gqoz^yLsfxaNchax7k{nqK=5nLC zNI6&*g988zpj;A+fMKvc%YwP9cCHWm%8R+w1w;!Z@0(1%bad;7e*4!R+nF@Y=;o|B zksq|_`8It2ebZ0eqi0Sq^ElPawUy;5=Q(04Wm$q;oI6{o6*8FITBHnXWm!z}R-8Kp zOY*sxg#@(Vfmxfg zTx60ZKne+L1&~R~U;?u&D+{4C&!q$;1i|LnGvF|XTEWE(v}ATOa1Ku}D9)7=BvEdM zfrEkXk`fn|x-L-Ba=tWEb1aIXq`iU=|=N+bg*NCdow?BuaExmcvUM zB&UP&(qO`aBfBVxDn!Nrxi833-O()cL?!~rrYJSWgUlC?{93DQPKIV{itET2+g7yD zpkcINaOA}4+>WR5V2Z|YT` z=2(|y=*okPq{4z;kwMBNLkKRCEaZiiUt|WO;6`SrYjR;LgwQzLC@F#n+&j1R)mLtO z`v3ksFYJs6kfNd6d?G<7LIQ#%BFH1dJS#x7X#EZ(AixPTbNBex8R1=}x23ujo-};! zAM$F&w<$9Ng=Y1I*Ai4#r~2s!;O^*nJZsr>LO_sExNlcuq1Rr%R&6D{qw?~?N-67J zF_7Y-N5h`BJwRIh35O+-Xj0h3s-MfyqNlsW4YKq^aO)WIl60fqwJ#lkYqF z;$MH~!xu-kH3`u$AKNJBR^E=V?J-01>~mVqn!C4|j^qx(vN9b`r0f#pltK|Bl-=Rk zAu-G3bRfCRlpHQo<>GZ22b!a@HFu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h#L(bnjdJfx-%@%L6l5 zRP?I`MwB?_WmDbRREFbuYK5{U+ovEkq6A7NlTr0V0kL8QU6wjBn(7oU7AuUMa!C1+ z2bWK%DLZyZG01=fmiMO8R?uZtEv$+)%EFei6w2)br+O=vsGE$jzB9V;1QrEXh2u$R6W*)fnP73N4iAV-j1}4oC)G&!0 zI&R#8h1*qi{f34S!>ikOw>LI6ZrZfz*_qFb8+Ujznau5xMWO5>5qeM?G)uis$ItX9^oTlezIFF*6l%oR&Nu_6No3?Pny42U;x-VA^Y4;(nq z&DxHp#%G>>Qk2+uOFsNy>Iuisxa~KSr%p-4lkP&JwT;j(S-*Cjh@5ot_d%>-<#ZIL z_t;>OL?T&TUE}W2)fBB+y;_tE#Ki!DP~|A-66PQPD8xx`yK%EtK*63>Lmc5BB5%At z*MKZ^$BrEUSg>OG(z~WlUogM!$VroqJn{&Ls%w^!+gCB#rxYAUyW87I!6tV2w~spY zv@^nKVgSpQEo*IU{motXSXT`eEV`a4AR;2qWp<$u@!2q-B-*fH-CtjM>9Lv5EM2

* Created by songfan on 2020/7/14. * - * @author songfan + * @author songfan & Mr.Pan */ @Data @Builder @@ -28,21 +25,32 @@ public class WxCpMsgTemplate implements Serializable { private static final long serialVersionUID = 3172331565173474358L; + /** + * 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群 + */ @SerializedName("chat_type") private String chatType; + /** + * 客户的外部联系人id列表,仅在chat_type为single时有效,不可与sender同时为空,最多可传入1万个客户 + */ @SerializedName("external_userid") private List externalUserid; + /** + * 发送企业群发消息的成员userid,当类型为发送给客户群时必填 + */ private String sender; + /** + * 消息文本内容,最多4000个字节 + */ private Text text; - private Image image; - - private Link link; - - private MiniProgram miniprogram; + /** + * 附件,最多支持添加9个附件 + */ + private List attachments; public static WxCpMsgTemplate fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpMsgTemplate.class); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index b791fffb54..c22595b43b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -220,6 +220,12 @@ public class WxCpXmlMessage implements Serializable { @XStreamConverter(value = LongArrayConverter.class) private Long[] departments; + /** + * 主部门 + */ + @XStreamAlias("MainDepartment") + private Long mainDepartment; + /** * 手机号码. */ @@ -533,7 +539,7 @@ public static class SendPicsInfo implements Serializable { @Data public static class Item implements Serializable { private static final long serialVersionUID = -6549728838848064881L; - + @XStreamAlias("PicMd5Sum") @XStreamConverter(value = XStreamCDataConverter.class) private String picMd5Sum; From 8b4c105029488360305af26649a14037252e6541 Mon Sep 17 00:00:00 2001 From: Lo_ading Date: Wed, 17 Nov 2021 16:54:06 +0800 Subject: [PATCH 038/622] =?UTF-8?q?:art:=20#2387=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=AE=A2=E6=88=B7=E6=9C=8B?= =?UTF-8?q?=E5=8F=8B=E5=9C=88=E6=8E=A5=E5=8F=A3=E5=AD=97=E6=AE=B5=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/external/WxCpGetMomentComments.java | 2 ++ .../weixin/cp/bean/external/moment/MomentInfo.java | 3 ++- .../cp/api/impl/WxCpExternalContactServiceImplTest.java | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java index 6976702612..b397954dcc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java @@ -29,6 +29,8 @@ public class WxCpGetMomentComments extends WxCpBaseResp { public static class CommentLikeItem { @SerializedName("external_userid") private String externalUserId; + @SerializedName("userid") + private String userid; @SerializedName("create_time") private Long createTime; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java index 2ed770e101..589a4a58c0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java @@ -1,6 +1,7 @@ package me.chanjar.weixin.cp.bean.external.moment; import com.google.gson.annotations.SerializedName; +import java.util.List; import lombok.Data; import me.chanjar.weixin.cp.bean.external.msg.Image; import me.chanjar.weixin.cp.bean.external.msg.Link; @@ -21,7 +22,7 @@ public class MomentInfo { @SerializedName("visible_type") private Integer visibleType; private Text text; - private Image image; + private List image; private Video video; private Link link; private Location location; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java index f9f90192d8..3f7cc0b3b3 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java @@ -329,4 +329,12 @@ public void testGetProductListAlbum() throws WxErrorException { } } + @Test + public void testGetMomentList() throws WxErrorException { + WxCpGetMomentList result = this.wxCpService.getExternalContactService() + .getMomentList(1636732800L, 1636991999L, null, null, null, null); + System.out.println(result); + assertNotNull(result); + } + } From 1f830ecacfd8453eeb8193c5a274899e5c1a6ca2 Mon Sep 17 00:00:00 2001 From: haoyanbing Date: Wed, 17 Nov 2021 18:45:43 +0800 Subject: [PATCH 039/622] =?UTF-8?q?:art:=20#2390=20=E3=80=90=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E9=97=AE=E9=A2=98=E3=80=91ApacheHttpClientBuilder?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E7=AD=96=E7=95=A5=E5=92=8C=E8=B6=85=E6=97=B6=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DefaultApacheHttpClientBuilder.java | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java index 3bb0d6114c..d1d492c0d9 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java @@ -12,6 +12,7 @@ import org.apache.http.config.Registry; import org.apache.http.config.RegistryBuilder; import org.apache.http.config.SocketConfig; +import org.apache.http.conn.ConnectionKeepAliveStrategy; import org.apache.http.conn.HttpClientConnectionManager; import org.apache.http.conn.socket.ConnectionSocketFactory; import org.apache.http.conn.socket.PlainConnectionSocketFactory; @@ -92,7 +93,17 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder { */ private String userAgent; - private final HttpRequestRetryHandler httpRequestRetryHandler = new HttpRequestRetryHandler() { + /** + * 自定义重试策略 + */ + private HttpRequestRetryHandler httpRequestRetryHandler; + + /** + * 自定义KeepAlive策略 + */ + private ConnectionKeepAliveStrategy connectionKeepAliveStrategy; + + private final HttpRequestRetryHandler defaultHttpRequestRetryHandler = new HttpRequestRetryHandler() { @Override public boolean retryRequest(IOException exception, int executionCount, HttpContext context) { return false; @@ -187,7 +198,16 @@ private synchronized void prepare() { .setConnectTimeout(this.connectionTimeout) .setConnectionRequestTimeout(this.connectionRequestTimeout) .build() - ).setRetryHandler(this.httpRequestRetryHandler); + ); + + // 设置重试策略,没有则使用默认 + httpRequestRetryHandler = httpRequestRetryHandler == null ? defaultHttpRequestRetryHandler : httpRequestRetryHandler; + httpClientBuilder.setRetryHandler(httpRequestRetryHandler); + + // 设置KeepAliveStrategy,没有使用默认 + if (connectionKeepAliveStrategy != null) { + httpClientBuilder.setKeepAliveStrategy(connectionKeepAliveStrategy); + } if (StringUtils.isNotBlank(this.httpProxyHost) && StringUtils.isNotBlank(this.httpProxyUsername)) { // 使用代理服务器 需要用户认证的代理服务器 From 6cc0b2db223156b51204ccc752e14ca5bfb4bf85 Mon Sep 17 00:00:00 2001 From: S Date: Thu, 18 Nov 2021 11:15:35 +0800 Subject: [PATCH 040/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E6=9C=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/common/error/WxError.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java index 044086496d..0d80efe302 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.common.error; +import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @@ -19,6 +20,7 @@ */ @Data @NoArgsConstructor +@AllArgsConstructor @Builder public class WxError implements Serializable { private static final long serialVersionUID = 7869786563361406291L; From cffd17399ba790644f11f1fb4961d250a39b23de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=AE=89?= Date: Thu, 18 Nov 2021 11:17:54 +0800 Subject: [PATCH 041/622] =?UTF-8?q?:new:=20#2397=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=B8=90=E5=8F=B7ID?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=80=A7=E5=85=A8=E9=9D=A2=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E6=94=B9=E9=80=A0=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E5=A2=9E=E5=8A=A0=E4=BB=A3=E5=BC=80=E5=8F=91=E5=BA=94?= =?UTF-8?q?=E7=94=A8external=5Fuserid=E8=BD=AC=E6=8D=A2=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 91 +++++++++++++++++++ .../impl/WxCpExternalContactServiceImpl.java | 45 ++++++++- .../bean/external/WxCpExternalUserIdList.java | 53 +++++++++++ .../external/WxCpNewExternalUserIdList.java | 47 ++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 4 + 5 files changed, 239 insertions(+), 1 deletion(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index 40e7741a97..ef3cc2a3ad 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -168,6 +168,97 @@ public interface WxCpExternalContactService { */ String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException; + /** + * 代开发应用external_userid转换 + *

+   *
+   * 文档地址:https://work.weixin.qq.com/api/doc/90001/90143/95195
+   *
+   * 企业同时安装服务商第三方应用以及授权代开发自建应用的时,服务商可使用该接口将代开发应用获取到的外部联系人id跟第三方应用的id进行关联,
+   * 该接口可将代开发自建应用获取到的external_userid转换为服务商第三方应用的external_userid。
+   *
+   * 权限说明:
+   *
+   * 该企业授权了该服务商第三方应用,且授权的第三方应用具备“企业客户权限->客户基础信息”权限
+   * 该客户的跟进人必须在应用的可见范围之内
+   * 应用需具备“企业客户权限->客户基础信息”权限
+   * 
+ * + * @param externalUserid 代开发自建应用获取到的外部联系人ID + * @return 该服务商第三方应用下的企业的外部联系人ID + * @throws WxErrorException . + */ + String toServiceExternalUserid(@NotNull String externalUserid) throws WxErrorException; + + /** + * 企业客户微信unionid的升级 - unionid查询external_userid + *
+   *
+   * 文档地址:https://open.work.weixin.qq.com/api/doc/35863#4.2%20unionid%E6%9F%A5%E8%AF%A2external_userid
+   *
+   * 当微信用户在微信中使用第三方应用的小程序或公众号时,第三方可将获取到的unionid与openid,调用此接口转换为企业客户external_userid。
+   * 该接口调用频次有限,每个服务商每小时仅可调用1万次,仅用于微信用户主动使用第三方应用的场景来调用,服务商切不可滥用。
+   * 同时建议服务商的小程序路径或公众号页面链接带上corpid参数,如此可明确地转换出该企业对应的external_userid,以获得更好的性能。
+   *
+   * 权限说明:
+   *
+   * 该企业授权了该服务商第三方应用
+   * 调用频率最大为10000次/小时
+   * unionid和openid的主体需与服务商的主体一致
+   * openid与unionid必须是在同一个小程序或同一个公众号获取到的
+   * 
+ * + * @param unionid 微信客户的unionid + * @param openid 微信客户的openid + * @param corpid 需要换取的企业corpid,不填则拉取所有企业 + * @return 该服务商第三方应用下的企业的外部联系人ID + * @throws WxErrorException . + */ + WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull String unionid, @NotNull String openid, String corpid) throws WxErrorException; + + /** + * 转换external_userid + *
+   *
+   * 文档地址:https://open.work.weixin.qq.com/api/doc/35863#转换external_userid
+   *
+   * 对于历史已授权的企业,在2022年3月1号之前,所有接口与回调返回的external_userid仍然为旧的external_userid,
+   * 从2022年3月1号0点开始,所有输入与返回的external_userid字段,将启用升级后的external_userid。
+   * 所以服务商需要在此之前完成历史数据的迁移整改
+   *
+   * 权限说明:
+   *
+   * 该企业授权了该服务商第三方应用
+   * external_userid对应的跟进人需要在应用可见范围内
+   * 
+ * + * @param externalUserIdList 微信客户的unionid + * @return List 新外部联系人id + * @throws WxErrorException . + */ + WxCpNewExternalUserIdList getNewExternalUserId(String[] externalUserIdList) throws WxErrorException; + + /** + * 设置迁移完成 + *
+   *
+   * 文档地址:https://open.work.weixin.qq.com/api/doc/35863#转换external_userid
+   *
+   * 企业授权确认之后,且服务商完成了新旧external_userid的迁移,即可主动将该企业设置为“迁移完成”,
+   * 设置之后,从该企业获取到的将是新的external_userid。注意,该接口需要使用provider_access_token来调用,
+   * 对于有多个应用的服务商,可逐个应用进行external_userid的转换,最后再使用provider_access_token调用该接口完成设置。
+   *
+   * 权限说明:
+   *
+   * 该企业授权了该服务商第三方应用
+   * 
+ * + * @param corpid 企业corpid + * @return wx cp base resp + * @throws WxErrorException . + */ + WxCpBaseResp finishExternalUserIdMigration(@NotNull String corpid) throws WxErrorException; + /** * 客户群opengid转换 *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
index d9426a8340..6cf6172a88 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
@@ -25,7 +25,7 @@
 import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.ExternalContact.*;
 
 /**
- * @author 曹祖鹏 & yuanqixun
+ * @author 曹祖鹏 & yuanqixun & Mr.Pan
  */
 @RequiredArgsConstructor
 public class WxCpExternalContactServiceImpl implements WxCpExternalContactService {
@@ -135,6 +135,49 @@ public String unionidToExternalUserid(@NotNull String unionid,String openid) thr
     return tmpJson.get("external_userid").getAsString();
   }
 
+  @Override
+  public String toServiceExternalUserid(@NotNull String externalUserid) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("external_userid", externalUserid);
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(TO_SERVICE_EXTERNAL_USERID);
+    String responseContent = this.mainService.post(url, json.toString());
+    JsonObject tmpJson = GsonParser.parse(responseContent);
+    return tmpJson.get("external_userid").getAsString();
+  }
+
+  @Override
+  public WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull String unionid, @NotNull String openid, String corpid) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("unionid", unionid);
+    json.addProperty("openid", openid);
+    if(StringUtils.isNotEmpty(corpid)){
+      json.addProperty("corpid",corpid);
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(UNIONID_TO_EXTERNAL_USERID_3RD);
+    String responseContent = this.mainService.post(url, json.toString());
+    return WxCpExternalUserIdList.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpNewExternalUserIdList getNewExternalUserId(String[] externalUserIdList) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    if (ArrayUtils.isNotEmpty(externalUserIdList)) {
+      json.add("external_userid_list", new Gson().toJsonTree(externalUserIdList).getAsJsonArray());
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_NEW_EXTERNAL_USERID);
+    String responseContent = this.mainService.post(url, json.toString());
+    return WxCpNewExternalUserIdList.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpBaseResp finishExternalUserIdMigration(@NotNull String corpid) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("corpid", corpid);
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(FINISH_EXTERNAL_USERID_MIGRATION);
+    String responseContent = this.mainService.post(url, json.toString());
+    return WxCpBaseResp.fromJson(responseContent);
+  }
+
   @Override
   public String opengidToChatid(@NotNull String opengid) throws WxErrorException {
     JsonObject json = new JsonObject();
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java
new file mode 100644
index 0000000000..5de738c74b
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java
@@ -0,0 +1,53 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 企业客户微信unionid的升级 - 企业客户external_userid列表
+ *
+ * @author Mr.Pan
+ * @date 2021/11/18
+ */
+@Getter
+@Setter
+public class WxCpExternalUserIdList extends WxCpBaseResp {
+
+  @SerializedName("external_userid_info")
+  private List externalUserIdInfo;
+
+  @Getter
+  @Setter
+  public static class ExternalUserIdInfo implements Serializable {
+    private static final long serialVersionUID = 8846290993790709261L;
+
+    /**
+     * 所属企业id
+     */
+    @SerializedName("corpid")
+    private String corpId;
+
+    /**
+     * 外部联系人id
+     */
+    @SerializedName("external_userid")
+    private String externalUserId;
+
+    /**
+     * 新外部联系人id
+     */
+    @SerializedName("new_external_userid")
+    private String newExternalUserId;
+
+  }
+
+  public static WxCpExternalUserIdList fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpExternalUserIdList.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java
new file mode 100644
index 0000000000..4bc68f957d
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java
@@ -0,0 +1,47 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 企业客户微信unionid的升级 - 企业客户external_userid列表
+ *
+ * @author Mr.Pan
+ * @date 2021/11/18
+ */
+@Getter
+@Setter
+public class WxCpNewExternalUserIdList extends WxCpBaseResp {
+
+  @SerializedName("items")
+  private List items;
+
+  @Getter
+  @Setter
+  public static class NewExternalUserIdInfo implements Serializable {
+    private static final long serialVersionUID = 8846290993790709261L;
+
+    /**
+     * 外部联系人id
+     */
+    @SerializedName("external_userid")
+    private String externalUserId;
+
+    /**
+     * 新外部联系人id
+     */
+    @SerializedName("new_external_userid")
+    private String newExternalUserId;
+
+  }
+
+  public static WxCpNewExternalUserIdList fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpNewExternalUserIdList.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index 71eadb63aa..710f7f6a78 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -182,6 +182,10 @@ interface ExternalContact {
     String GET_CONTACT_DETAIL = "/cgi-bin/externalcontact/get?external_userid=";
     String CONVERT_TO_OPENID = "/cgi-bin/externalcontact/convert_to_openid";
     String UNIONID_TO_EXTERNAL_USERID = "/cgi-bin/externalcontact/unionid_to_external_userid";
+    String UNIONID_TO_EXTERNAL_USERID_3RD = "/cgi-bin/service/externalcontact/unionid_to_external_userid_3rd";
+    String GET_NEW_EXTERNAL_USERID = "/cgi-bin/service/externalcontact/get_new_external_userid";
+    String TO_SERVICE_EXTERNAL_USERID = "/cgi-bin/externalcontact/to_service_external_userid";
+    String FINISH_EXTERNAL_USERID_MIGRATION = "/cgi-bin/externalcontact/finish_external_userid_migration";
     String GET_CONTACT_DETAIL_BATCH = "/cgi-bin/externalcontact/batch/get_by_user?";
     String UPDATE_REMARK = "/cgi-bin/externalcontact/remark";
     String LIST_EXTERNAL_CONTACT = "/cgi-bin/externalcontact/list?userid=";

From 669b4ea7c255ccd17bacb122251790704bb17f34 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Wed, 17 Nov 2021 17:21:22 +0800
Subject: [PATCH 042/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96ApacheHttpCli?=
 =?UTF-8?q?entBuilder=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../http/apache/ApacheHttpClientBuilder.java  | 12 ++++++++
 .../apache/ApacheHttpDnsClientBuilder.java    | 28 ++++++++++++++-----
 .../DefaultApacheHttpClientBuilder.java       | 20 +++++++++----
 3 files changed, 47 insertions(+), 13 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpClientBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpClientBuilder.java
index fcd56c48a7..0d5073de14 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpClientBuilder.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpClientBuilder.java
@@ -1,5 +1,7 @@
 package me.chanjar.weixin.common.util.http.apache;
 
+import org.apache.http.client.HttpRequestRetryHandler;
+import org.apache.http.conn.ConnectionKeepAliveStrategy;
 import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
 import org.apache.http.impl.client.CloseableHttpClient;
 
@@ -37,6 +39,16 @@ public interface ApacheHttpClientBuilder {
    */
   ApacheHttpClientBuilder httpProxyPassword(String httpProxyPassword);
 
+  /**
+   * 重试策略.
+   */
+  ApacheHttpClientBuilder httpRequestRetryHandler(HttpRequestRetryHandler httpRequestRetryHandler );
+
+  /**
+   * 超时时间.
+   */
+  ApacheHttpClientBuilder keepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy);
+
   /**
    * ssl连接socket工厂.
    */
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
index e1959f08f0..6a136600e5 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheHttpDnsClientBuilder.java
@@ -10,6 +10,7 @@
 import org.apache.http.config.Registry;
 import org.apache.http.config.RegistryBuilder;
 import org.apache.http.config.SocketConfig;
+import org.apache.http.conn.ConnectionKeepAliveStrategy;
 import org.apache.http.conn.DnsResolver;
 import org.apache.http.conn.HttpClientConnectionManager;
 import org.apache.http.conn.socket.ConnectionSocketFactory;
@@ -48,12 +49,13 @@ public class ApacheHttpDnsClientBuilder implements ApacheHttpClientBuilder {
   private int maxTotalConn = 50;
   private String userAgent;
 
-  private DnsResolver dnsResover;
+  private DnsResolver dnsResolver;
 
   private HttpRequestRetryHandler httpRequestRetryHandler = (IOException exception, int executionCount, HttpContext context) -> false;
   private SSLConnectionSocketFactory sslConnectionSocketFactory = SSLConnectionSocketFactory.getSocketFactory();
   private PlainConnectionSocketFactory plainConnectionSocketFactory = PlainConnectionSocketFactory.getSocketFactory();
   private String httpProxyHost;
+  private ConnectionKeepAliveStrategy keepAliveStrategy;
 
   private int httpProxyPort;
   private String httpProxyUsername;
@@ -97,6 +99,18 @@ public ApacheHttpClientBuilder httpProxyPassword(String httpProxyPassword) {
     return this;
   }
 
+  @Override
+  public ApacheHttpClientBuilder httpRequestRetryHandler(HttpRequestRetryHandler httpRequestRetryHandler) {
+    this.httpRequestRetryHandler = httpRequestRetryHandler;
+    return this;
+  }
+
+  @Override
+  public ApacheHttpClientBuilder keepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy) {
+    this.keepAliveStrategy = keepAliveStrategy;
+    return this;
+  }
+
   @Override
   public ApacheHttpClientBuilder sslConnectionSocketFactory(SSLConnectionSocketFactory sslConnectionSocketFactory) {
     this.sslConnectionSocketFactory = sslConnectionSocketFactory;
@@ -202,11 +216,11 @@ private synchronized void prepare() {
 
     @SuppressWarnings("resource")
     PoolingHttpClientConnectionManager connectionManager;
-    if (dnsResover != null) {
+    if (dnsResolver != null) {
       if (log.isDebugEnabled()) {
         log.debug("specified dns resolver.");
       }
-      connectionManager = new PoolingHttpClientConnectionManager(registry, dnsResover);
+      connectionManager = new PoolingHttpClientConnectionManager(registry, dnsResolver);
     } else {
       if (log.isDebugEnabled()) {
         log.debug("Not specified dns resolver.");
@@ -254,12 +268,12 @@ public CloseableHttpClient build() {
     return this.httpClientBuilder.build();
   }
 
-  public DnsResolver getDnsResover() {
-    return dnsResover;
+  public DnsResolver getDnsResolver() {
+    return dnsResolver;
   }
 
-  public void setDnsResover(DnsResolver dnsResover) {
-    this.dnsResover = dnsResover;
+  public void setDnsResolver(DnsResolver dnsResolver) {
+    this.dnsResolver = dnsResolver;
   }
 
   public static class IdleConnectionMonitorThread extends Thread {
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java
index d1d492c0d9..198798c05a 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/DefaultApacheHttpClientBuilder.java
@@ -103,12 +103,8 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
    */
   private ConnectionKeepAliveStrategy connectionKeepAliveStrategy;
 
-  private final HttpRequestRetryHandler defaultHttpRequestRetryHandler = new HttpRequestRetryHandler() {
-    @Override
-    public boolean retryRequest(IOException exception, int executionCount, HttpContext context) {
-      return false;
-    }
-  };
+  private final HttpRequestRetryHandler defaultHttpRequestRetryHandler = (exception, executionCount, context) -> false;
+
   private SSLConnectionSocketFactory sslConnectionSocketFactory = SSLConnectionSocketFactory.getSocketFactory();
   private final PlainConnectionSocketFactory plainConnectionSocketFactory = PlainConnectionSocketFactory.getSocketFactory();
   private String httpProxyHost;
@@ -155,6 +151,18 @@ public ApacheHttpClientBuilder httpProxyPassword(String httpProxyPassword) {
     return this;
   }
 
+  @Override
+  public ApacheHttpClientBuilder httpRequestRetryHandler(HttpRequestRetryHandler httpRequestRetryHandler) {
+    this.httpRequestRetryHandler = httpRequestRetryHandler;
+    return this;
+  }
+
+  @Override
+  public ApacheHttpClientBuilder keepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy) {
+    this.connectionKeepAliveStrategy = keepAliveStrategy;
+    return this;
+  }
+
   @Override
   public ApacheHttpClientBuilder sslConnectionSocketFactory(SSLConnectionSocketFactory sslConnectionSocketFactory) {
     this.sslConnectionSocketFactory = sslConnectionSocketFactory;

From 1984b28ce30dd3c18d8d821d2ab436d13ee39f7c Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Thu, 18 Nov 2021 22:55:11 +0800
Subject: [PATCH 043/622] =?UTF-8?q?:art:=20=E5=A2=9E=E5=8A=A0=E7=BC=BA?=
 =?UTF-8?q?=E5=A4=B1=E5=AD=97=E6=AE=B5subMchid?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/bean/request/WxPayRefundV3Request.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
index da90306de4..4ebb10fba1 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
@@ -236,5 +236,8 @@ public static class GoodsDetail implements Serializable {
      */
     @SerializedName(value = "refund_quantity")
     private Integer refundQuantity;
+
+    @SerializedName(value = "sub_mchid")
+    private String subMchid;
   }
 }

From 95d130d92790ed0f4dc6554d9f9193cbe54a5b51 Mon Sep 17 00:00:00 2001
From: xiaowei6066 
Date: Wed, 24 Nov 2021 14:28:48 +0800
Subject: [PATCH 044/622] =?UTF-8?q?:new:=20#2399=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E5=86=85=E5=AE=B9?=
 =?UTF-8?q?=E5=AE=89=E5=85=A8mediaCheckAsync=E6=8E=A5=E5=8F=A3=E6=96=B0?=
 =?UTF-8?q?=E7=9A=84=E5=AE=9E=E7=8E=B0=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/api/WxMaSecCheckService.java   | 24 ++++++++++++-
 .../api/impl/WxMaSecCheckServiceImpl.java     | 19 ++++++++---
 .../WxMaMediaSecCheckCheckRequest.java        | 34 +++++++++++++++++++
 3 files changed, 72 insertions(+), 5 deletions(-)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java
index 8b135adcdf..a22061a007 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java
@@ -1,6 +1,7 @@
 package cn.binarywang.wx.miniapp.api;
 
 import cn.binarywang.wx.miniapp.bean.WxMaMediaAsyncCheckResult;
+import cn.binarywang.wx.miniapp.bean.security.WxMaMediaSecCheckCheckRequest;
 import cn.binarywang.wx.miniapp.bean.security.WxMaMsgSecCheckCheckRequest;
 import cn.binarywang.wx.miniapp.bean.security.WxMaMsgSecCheckCheckResponse;
 import me.chanjar.weixin.common.error.WxErrorException;
@@ -64,7 +65,7 @@ public interface WxMaSecCheckService {
    * 
* @param msgRequest * @return WxMaMsgSecCheckCheckResponse - * @throws WxErrorException + * @throws WxErrorException the wx error exception */ WxMaMsgSecCheckCheckResponse checkMessage(WxMaMsgSecCheckCheckRequest msgRequest) throws WxErrorException; @@ -88,4 +89,25 @@ public interface WxMaSecCheckService { */ WxMaMediaAsyncCheckResult mediaCheckAsync(String mediaUrl, int mediaType) throws WxErrorException; + + /** + *
+   * 异步校验图片/音频是否含有违法违规内容。(新版本接口,主要对request和respone做了参数优化)
+   * 应用场景举例:
+   * 语音风险识别:社交类用户发表的语音内容检测;
+   * 图片智能鉴黄:涉及拍照的工具类应用(如美拍,识图类应用)用户拍照上传检测;电商类商品上架图片检测;媒体类用户文章里的图片检测等;
+   * 敏感人脸识别:用户头像;媒体类用户文章里的图片检测;社交类用户上传的图片检测等。
+   * 频率限制:
+   * 单个 appId 调用上限为 2000 次/分钟,200,000 次/天;文件大小限制:单个文件大小不超过10M
+   * 详情请见:
+   * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html
+   * 
+ * + * @param medisRequest + * @return wx ma media async check result + * @throws WxErrorException the wx error exception + */ + + WxMaMediaAsyncCheckResult mediaCheckAsync(WxMaMediaSecCheckCheckRequest medisRequest) throws WxErrorException; + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java index 332a47ad7a..837674eb64 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java @@ -3,6 +3,7 @@ import cn.binarywang.wx.miniapp.api.WxMaSecCheckService; import cn.binarywang.wx.miniapp.api.WxMaService; import cn.binarywang.wx.miniapp.bean.WxMaMediaAsyncCheckResult; +import cn.binarywang.wx.miniapp.bean.security.WxMaMediaSecCheckCheckRequest; import cn.binarywang.wx.miniapp.bean.security.WxMaMsgSecCheckCheckRequest; import cn.binarywang.wx.miniapp.bean.security.WxMaMsgSecCheckCheckResponse; import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; @@ -68,10 +69,7 @@ public boolean checkMessage(String msgString) throws WxErrorException { @Override public WxMaMsgSecCheckCheckResponse checkMessage(WxMaMsgSecCheckCheckRequest msgRequest) throws WxErrorException { String response = this.service.post(MSG_SEC_CHECK_URL, msgRequest); - JsonObject jsonObject = GsonParser.parse(response); - if (jsonObject.get(ERRCODE).getAsInt() != 0) { - throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); - } + parseErrorResponse(response); return WxMaGsonBuilder.create().fromJson(response, WxMaMsgSecCheckCheckResponse.class); } @@ -86,4 +84,17 @@ public WxMaMediaAsyncCheckResult mediaCheckAsync(String mediaUrl, int mediaType) .fromJson(this.service.post(MEDIA_CHECK_ASYNC_URL, jsonObject.toString())); } + @Override + public WxMaMediaAsyncCheckResult mediaCheckAsync(WxMaMediaSecCheckCheckRequest medisRequest) throws WxErrorException { + String response = this.service.post(MEDIA_CHECK_ASYNC_URL,medisRequest); + parseErrorResponse(response); + return WxMaGsonBuilder.create().fromJson(response,WxMaMediaAsyncCheckResult.class); + } + + private void parseErrorResponse(String response) throws WxErrorException { + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERRCODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java new file mode 100644 index 0000000000..16b0d35c74 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java @@ -0,0 +1,34 @@ +package cn.binarywang.wx.miniapp.bean.security; + +import com.google.gson.annotations.SerializedName; +import lombok.Builder; +import lombok.Data; + +import java.io.Serializable; + +/** + * @author dingxw + * @date 2021/11/18 20:27 + */ +@Data +@Builder +public class WxMaMediaSecCheckCheckRequest implements Serializable { + + private static final long serialVersionUID = -3947838615379224577L; + + @SerializedName("media_url") + private String mediaUrl; + + @SerializedName("media_type") + private Integer mediaType; + + @SerializedName("version") + private Integer version; + + @SerializedName("openid") + private String openid; + + @SerializedName("scene") + private Integer scene; + +} From ddf207e15b3e6979b458e2413b3fc9b1a4fdc9cd Mon Sep 17 00:00:00 2001 From: sandy zeng <597747721@qq.com> Date: Sun, 28 Nov 2021 23:24:31 +0800 Subject: [PATCH 045/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E8=BD=AC=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/util/json/WxMpMassTagMessageGsonAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpMassTagMessageGsonAdapter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpMassTagMessageGsonAdapter.java index b73540d1f1..b75f11f689 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpMassTagMessageGsonAdapter.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpMassTagMessageGsonAdapter.java @@ -56,7 +56,7 @@ public JsonElement serialize(WxMpMassTagMessage message, Type typeOfSrc, JsonSer messageJson.add(WxConsts.MassMsgType.MPVIDEO, sub); } messageJson.addProperty("msgtype", message.getMsgType()); - messageJson.addProperty("send_ignore_reprint", message.isSendIgnoreReprint() ? 0 : 1); + messageJson.addProperty("send_ignore_reprint", message.isSendIgnoreReprint() ? 1 : 0); if (StringUtils.isNotEmpty(message.getClientMsgId())) { messageJson.addProperty("clientmsgid", message.getClientMsgId()); From 2e0b20021b142ecfe50727c62ed917a93b03858d Mon Sep 17 00:00:00 2001 From: qing Wang Date: Sun, 28 Nov 2021 23:26:51 +0800 Subject: [PATCH 046/622] :art: fix dependency conflicts --- pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pom.xml b/pom.xml index f2e64f533c..1087fd8b92 100644 --- a/pom.xml +++ b/pom.xml @@ -212,6 +212,16 @@ testng 7.1.0 test + + + guice + com.google.inject + + + org.yaml + snakeyaml + + org.mockito @@ -262,6 +272,20 @@ 3.12.0 true provided + + + com.fasterxml.jackson.core + jackson-core + + + org.jodd + jodd-core + + + org.reactivestreams + reactive-streams + + org.springframework.data From daae431ef085351010bf7dac3869f3016a102463 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 26 Nov 2021 14:26:27 +0800 Subject: [PATCH 047/622] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 53 +++++++++++++++++++++++++---------------------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 5c4963f591..694758d6a3 100644 --- a/README.md +++ b/README.md @@ -10,35 +10,32 @@ #### 微信`Java`开发工具包,支持包括微信支付、开放平台、公众号、企业微信/企业号、小程序等微信功能模块的后端开发。 -

+

特别赞助 -

-
- - - - - - - - - - - + +
- - - -
- - - - - 赞助商招募中,欢迎联系洽谈 - - - - -
+ + + + + + + +
+ + + +
+ + + + +
赞助商招募中,欢迎联系洽谈
+
+ + + +
### 重要信息 From cc6bc22c1de296b195ffdff00ae7b6d6436bffc8 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 28 Nov 2021 23:36:32 +0800 Subject: [PATCH 048/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mp/config/WxMpStorageAutoConfiguration.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/config/WxMpStorageAutoConfiguration.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/config/WxMpStorageAutoConfiguration.java index 145c663efe..cf3c48656d 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/config/WxMpStorageAutoConfiguration.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/config/WxMpStorageAutoConfiguration.java @@ -30,7 +30,7 @@ /** * 微信公众号存储策略自动配置. * - * @author someone + * @author Luo */ @Slf4j @Configuration @@ -40,12 +40,6 @@ public class WxMpStorageAutoConfiguration { private final WxMpProperties wxMpProperties; - @Value("${wx.mp.config-storage.redis.host:") - private String redisHost; - - @Value("${wx.mp.configStorage.redis.host:") - private String redisHost2; - @Bean @ConditionalOnMissingBean(WxMpConfigStorage.class) public WxMpConfigStorage wxMpConfigStorage() { @@ -81,14 +75,15 @@ private WxMpConfigStorage defaultConfigStorage() { private WxMpConfigStorage jedisConfigStorage() { JedisPoolAbstract jedisPool; - if (StringUtils.isNotEmpty(redisHost) || StringUtils.isNotEmpty(redisHost2)) { + if (wxMpProperties.getConfigStorage() != null && wxMpProperties.getConfigStorage().getRedis() != null + && StringUtils.isNotEmpty(wxMpProperties.getConfigStorage().getRedis().getHost())) { jedisPool = getJedisPool(); } else { jedisPool = applicationContext.getBean(JedisPool.class); } WxRedisOps redisOps = new JedisWxRedisOps(jedisPool); WxMpRedisConfigImpl wxMpRedisConfig = new WxMpRedisConfigImpl(redisOps, - wxMpProperties.getConfigStorage().getKeyPrefix()); + wxMpProperties.getConfigStorage().getKeyPrefix()); setWxMpInfo(wxMpRedisConfig); return wxMpRedisConfig; } @@ -114,7 +109,7 @@ private WxMpConfigStorage redisTemplateConfigStorage() { WxRedisOps redisOps = new RedisTemplateWxRedisOps(redisTemplate); WxMpRedisConfigImpl wxMpRedisConfig = new WxMpRedisConfigImpl(redisOps, - wxMpProperties.getConfigStorage().getKeyPrefix()); + wxMpProperties.getConfigStorage().getKeyPrefix()); setWxMpInfo(wxMpRedisConfig); return wxMpRedisConfig; @@ -160,6 +155,6 @@ private JedisPoolAbstract getJedisPool() { } return new JedisPool(config, redis.getHost(), redis.getPort(), redis.getTimeout(), redis.getPassword(), - redis.getDatabase()); + redis.getDatabase()); } } From 20011f8b7ee1c2e779fbc38c05528e934ad0c6c5 Mon Sep 17 00:00:00 2001 From: qing Wang Date: Mon, 29 Nov 2021 17:49:30 +0800 Subject: [PATCH 049/622] =?UTF-8?q?:art:=20#2411=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=85=AC=E4=BC=97=E5=8F=B7=E3=80=91=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=8D=89=E7=A8=BF=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/bean/draft/WxMpDraftArticles.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java index fdcff5c293..2be78d6ab1 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java @@ -68,6 +68,16 @@ public class WxMpDraftArticles implements ToJson, Serializable { */ @SerializedName("only_fans_can_comment") private Integer onlyFansCanComment; + /** + * 草稿的临时链接,点击图文消息跳转链接 + */ + @SerializedName("url") + private String url; + /** + * 图文消息的封面url + */ + @SerializedName("thumb_url") + private String thumbUrl; public static WxMpDraftArticles fromJson(String json) { return WxGsonBuilder.create().fromJson(json, WxMpDraftArticles.class); From f4bf76c49014b309c7e9cf24d54ac21b6b5d3067 Mon Sep 17 00:00:00 2001 From: qing Wang Date: Mon, 29 Nov 2021 22:11:43 +0800 Subject: [PATCH 050/622] =?UTF-8?q?:art:=20=E6=9B=B4=E6=AD=A3CODE=5F87013?= =?UTF-8?q?=20msg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java index 2a9fe01845..18da513480 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java @@ -409,7 +409,7 @@ public enum WxMaErrorMsgEnum { CODE_85012(85012, "无效的审核 id"), - CODE_87013(87013, "撤回次数达到上限(每天一次,每个月 10 次)"), + CODE_87013(87013, "撤回次数达到上限(每天5次,每个月 10 次)"), CODE_85019(85019, "没有审核版本"), From c22fc0519395f7cbad79a45557d3dd0548d93a4d Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 29 Nov 2021 22:19:02 +0800 Subject: [PATCH 051/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.1?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 1087fd8b92..4951ddb0f2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.2.0 + 4.2.1.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index c6fbf375fb..d72a766538 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index cd6e6da4be..f315b912b7 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.0 + 4.2.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index aceef96ca7..5b019981b3 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.0 + 4.2.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 78fc9bdc45..57a168eda5 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.0 + 4.2.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 588f4b8f5a..7438d5648f 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.0 + 4.2.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 63cf2f2a56..27db96aac5 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.0 + 4.2.1.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 7b5d9ad662..73c9e8e060 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index c5b0918c95..4b58976341 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 85b5738665..dcee208bc0 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 39d3442b4e..b28e10094e 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 86b562160b..4d2938203b 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 1676d1c01d..797c41918a 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index b6f9dfb246..42f129cbbb 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 4576f69186..989213752c 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.0 + 4.2.1.B weixin-java-qidian From 5ac4e00133de005724c326e0a4f053a18bb3b85d Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 29 Nov 2021 22:43:22 +0800 Subject: [PATCH 052/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/executor/GenericUploadRequestExecutor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java index 3ef3fd2e1e..e2d43a96a8 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/GenericUploadRequestExecutor.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.open.executor; +import com.google.common.io.Files; import jodd.http.HttpConnectionProvider; import jodd.http.HttpRequest; import jodd.http.HttpResponse; @@ -125,7 +126,8 @@ public String execute(String uri, InputStream data, WxType wxType) throws WxErro HttpEntity entity = MultipartEntityBuilder .create() - .addBinaryBody(getParamName(), data, ContentType.create("multipart/form-data", StandardCharsets.UTF_8), getFileName()) + .addBinaryBody(getParamName(), data, ContentType.create("multipart/form-data", StandardCharsets.UTF_8), + getFileName()) .setMode(HttpMultipartMode.RFC6532) .build(); bodyRequest.setEntity(entity); @@ -147,8 +149,7 @@ public static class OkExecutor extends Executor { @Override public String execute(String uri, InputStream data, WxType wxType) throws WxErrorException, IOException { OkHttpClient client = getRequestHttp().getRequestHttpClient(); - - byte[] bytes = data instanceof ByteArrayInputStream ? ((ByteArrayInputStream) data).readAllBytes() : IOUtils.toByteArray(data); + byte[] bytes = IOUtils.toByteArray(data); RequestBody body = new MultipartBody.Builder() .setType(Objects.requireNonNull(MediaType.parse("multipart/form-data"))) .addFormDataPart("media", getFileName(), RequestBody.create(bytes, MediaType.parse("application/octet-stream"))) @@ -173,7 +174,6 @@ public String execute(String uri, InputStream data, WxType wxType) throws WxErro } request.withConnectionProvider(getRequestHttp().getRequestHttpClient()); - byte[] bytes = data instanceof ByteArrayInputStream ? ((ByteArrayInputStream) data).readAllBytes() : IOUtils.toByteArray(data); request.form(getParamName(), data); HttpResponse response = request.send(); From 40ba792accf08be6452176e6af4466fa917a058a Mon Sep 17 00:00:00 2001 From: liufuguo <595726017@qq.com> Date: Wed, 1 Dec 2021 17:57:37 +0800 Subject: [PATCH 053/622] =?UTF-8?q?:bug:=20=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=9A=84=E6=9D=A1=E7=A0=81/=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E7=9A=84API=E8=AF=B7=E6=B1=82=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E6=94=B9=E4=B8=BApost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wx/miniapp/api/impl/WxMaImgProcServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImgProcServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImgProcServiceImpl.java index 1ed94fe4df..03f46fb31e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImgProcServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImgProcServiceImpl.java @@ -35,7 +35,7 @@ public WxImgProcQrCodeResult qrCode(String imgUrl) throws WxErrorException { //ignore } - final String result = this.service.get(String.format(QRCODE, imgUrl), null); + final String result = this.service.post(String.format(QRCODE, imgUrl), ""); return WxImgProcQrCodeResult.fromJson(result); } From a254d1ce340f859d5d5ad07af6be53498c8201f5 Mon Sep 17 00:00:00 2001 From: S Date: Thu, 2 Dec 2021 18:22:16 +0800 Subject: [PATCH 054/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96WxPayConfig?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=BA=E5=AD=97=E8=8A=82=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/config/WxPayConfig.java | 49 +++++++++++-------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java index a9092e2fda..6756b0b4ba 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java @@ -108,6 +108,16 @@ public class WxPayConfig { */ private String privateCertPath; + /** + * apiclient_key.pem证书文件内容的字节数组. + */ + private byte[] privateKeyContent; + + /** + * apiclient_cert.pem证书文件内容的字节数组. + */ + private byte[] privateCertContent; + /** * apiV3 秘钥值. */ @@ -205,15 +215,7 @@ public SSLContext initSSLContext() throws WxPayException { throw new WxPayException("请确保商户号mchId已设置"); } - InputStream inputStream; - if (this.keyContent != null) { - inputStream = new ByteArrayInputStream(this.keyContent); - } else { - if (StringUtils.isBlank(this.getKeyPath())) { - throw new WxPayException("请确保证书文件地址keyPath已配置"); - } - inputStream = this.loadConfigInputStream(this.getKeyPath()); - } + InputStream inputStream = this.loadConfigInputStream(this.getKeyPath(), this.keyContent, "p12证书"); try { KeyStore keystore = KeyStore.getInstance("PKCS12"); @@ -240,21 +242,12 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException { val privateCertPath = this.getPrivateCertPath(); val serialNo = this.getCertSerialNo(); val apiV3Key = this.getApiV3Key(); - if (StringUtils.isBlank(privateKeyPath)) { - throw new WxPayException("请确保privateKeyPath已设置"); - } - if (StringUtils.isBlank(privateCertPath)) { - throw new WxPayException("请确保privateCertPath已设置"); - } -// if (StringUtils.isBlank(certSerialNo)) { -// throw new WxPayException("请确保certSerialNo证书序列号已设置"); -// } if (StringUtils.isBlank(apiV3Key)) { throw new WxPayException("请确保apiV3Key值已设置"); } - InputStream keyInputStream = this.loadConfigInputStream(privateKeyPath); - InputStream certInputStream = this.loadConfigInputStream(privateCertPath); + InputStream keyInputStream = this.loadConfigInputStream(privateKeyPath, this.privateKeyContent, "privateKeyPath"); + InputStream certInputStream = this.loadConfigInputStream(privateCertPath, this.privateCertContent, "privateCertPath"); try { PrivateKey merchantPrivateKey = PemUtils.loadPrivateKey(keyInputStream); X509Certificate certificate = PemUtils.loadCertificate(certInputStream); @@ -281,6 +274,22 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException { } } + + + private InputStream loadConfigInputStream(String configPath, byte[] configContent, String fileName) throws WxPayException { + InputStream inputStream; + if (configContent != null) { + inputStream = new ByteArrayInputStream(configContent); + } else { + if (StringUtils.isBlank(configPath)) { + throw new WxPayException("请确保证书文件地址【" + fileName + "】或者内容已配置"); + } + inputStream = this.loadConfigInputStream(configPath); + } + return inputStream; + } + + /** * 从配置路径 加载配置 信息(支持 classpath、本地路径、网络url) * @param configPath 配置路径 From 05ea881fac5244463150a0f7bbf35c8b6627d920 Mon Sep 17 00:00:00 2001 From: wenjie Date: Sun, 5 Dec 2021 21:27:31 +0800 Subject: [PATCH 055/622] =?UTF-8?q?:art:=20#2386=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91createWxaCodeUnlimit=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=B9=E6=B3=95=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?env=5Fstring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaQrcodeService.java | 53 ++++++++++--------- .../api/impl/WxMaQrcodeServiceImpl.java | 19 +++---- .../wx/miniapp/bean/WxaCodeUnlimit.java | 3 ++ .../api/impl/WxMaQrcodeServiceImplTest.java | 2 +- 4 files changed, 42 insertions(+), 35 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java index 5ef3ba7982..32e4e78cad 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java @@ -190,17 +190,18 @@ File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor * 调试阶段可以使用开发工具的条件编译自定义参数 scene=xxxx 进行模拟,开发工具模拟时的 scene 的参数值需要进行 urlencode * * - * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, - * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) - * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 - * @param width 默认430 二维码的宽度 - * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 - * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} - * @param isHyaline 是否需要透明底色, is_hyaline 为true时,生成透明底色的小程序码 + * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, + * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) + * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 + * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" + * @param width 默认430 二维码的宽度 + * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 + * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} + * @param isHyaline 是否需要透明底色, is_hyaline 为true时,生成透明底色的小程序码 * @return 文件内容字节数组 * @throws WxErrorException 异常 */ - byte[] createWxaCodeUnlimitBytes(String scene, String page, int width, boolean autoColor, + byte[] createWxaCodeUnlimitBytes(String scene, String page, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** @@ -212,18 +213,19 @@ byte[] createWxaCodeUnlimitBytes(String scene, String page, int width, boolean a * 调试阶段可以使用开发工具的条件编译自定义参数 scene=xxxx 进行模拟,开发工具模拟时的 scene 的参数值需要进行 urlencode * * - * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, - * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) - * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 - * @param filePath 二维码生成的文件路径,例如: /var/temp - * @param width 默认430 二维码的宽度 - * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 - * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} - * @param isHyaline 是否需要透明底色, is_hyaline 为true时,生成透明底色的小程序码 + * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, + * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) + * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 + * @param filePath 二维码生成的文件路径,例如: /var/temp + * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" + * @param width 默认430 二维码的宽度 + * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 + * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} + * @param isHyaline 是否需要透明底色, is_hyaline 为true时,生成透明底色的小程序码 * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCodeUnlimit(String scene, String page, String filePath, int width, boolean autoColor, + File createWxaCodeUnlimit(String scene, String page, String filePath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** @@ -235,17 +237,18 @@ File createWxaCodeUnlimit(String scene, String page, String filePath, int width, * 调试阶段可以使用开发工具的条件编译自定义参数 scene=xxxx 进行模拟,开发工具模拟时的 scene 的参数值需要进行 urlencode * * - * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, - * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) - * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 - * @param width 默认430 二维码的宽度 - * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 - * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} - * @param isHyaline 是否需要透明底色, is_hyaline 为true时,生成透明底色的小程序码 + * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, + * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) + * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 + * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" + * @param width 默认430 二维码的宽度 + * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 + * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} + * @param isHyaline 是否需要透明底色, is_hyaline 为true时,生成透明底色的小程序码 * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCodeUnlimit(String scene, String page, int width, boolean autoColor, + File createWxaCodeUnlimit(String scene, String page, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java index 31bba36a3a..ccfac099b3 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java @@ -76,24 +76,25 @@ public File createWxaCode(String path) throws WxErrorException { } @Override - public byte[] createWxaCodeUnlimitBytes(String scene, String page, int width, boolean autoColor, + public byte[] createWxaCodeUnlimitBytes(String scene, String page, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeBytesRequestExecutor.create(this.service.getRequestHttp()), - GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, width, autoColor, lineColor, isHyaline)); + GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, envVersion, width, autoColor, lineColor, isHyaline)); } @Override - public File createWxaCodeUnlimit(String scene, String page, int width, boolean autoColor, + public File createWxaCodeUnlimit(String scene, String page, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp()), - GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, width, autoColor, lineColor, isHyaline)); + GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, envVersion, width, autoColor, lineColor, isHyaline)); } - private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, int width, boolean autoColor, + private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) { WxaCodeUnlimit wxaCodeUnlimit = new WxaCodeUnlimit(); wxaCodeUnlimit.setScene(scene); wxaCodeUnlimit.setPage(page); + wxaCodeUnlimit.setEnvVersion(envVersion); wxaCodeUnlimit.setWidth(width); wxaCodeUnlimit.setAutoColor(autoColor); wxaCodeUnlimit.setLineColor(lineColor); @@ -104,7 +105,7 @@ private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, int width, @Override public File createWxaCodeUnlimit(String scene, String page) throws WxErrorException { - return this.createWxaCodeUnlimit(scene, page, 430, true, null, false); + return this.createWxaCodeUnlimit(scene, page, "release", 430, true, null, false); } @Override @@ -143,15 +144,15 @@ public File createWxaCode(String path, String filePath) throws WxErrorException } @Override - public File createWxaCodeUnlimit(String scene, String page, String filePath, int width, boolean autoColor, + public File createWxaCodeUnlimit(String scene, String page, String filePath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp(), filePath), - GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, width, autoColor, lineColor, isHyaline)); + GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, envVersion, width, autoColor, lineColor, isHyaline)); } @Override public File createWxaCodeUnlimit(String scene, String page, String filePath) throws WxErrorException { - return this.createWxaCodeUnlimit(scene, page, filePath, 430, true, null, false); + return this.createWxaCodeUnlimit(scene, page, filePath, "release", 430, true, null, false); } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java index ab0dad4e2b..f9c902efd4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java @@ -20,6 +20,9 @@ public class WxaCodeUnlimit extends AbstractWxMaQrcodeWrapper implements Seriali private String scene; private String page; + @SerializedName("env_version") + private String envVersion = "release"; + private int width = 430; @SerializedName("auto_color") diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java index e6c5969441..cf500c2b2d 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java @@ -52,7 +52,7 @@ public void testCreateWxaCodeBytes() throws WxErrorException { @Test public void testCreateWxaCodeUnlimitBytes() throws WxErrorException { - final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimitBytes("111", null, 122, true, null, false); + final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimitBytes("111", null, "trial", 122, true, null, false); assertThat(wxCode).isNotNull(); } From e3fc6240529839f5acb4738a83de918dddb3773f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Forever=E6=9D=A8?= <453190450@qq.com> Date: Mon, 6 Dec 2021 17:07:43 +0800 Subject: [PATCH 056/622] =?UTF-8?q?:new:=20#2423=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=20Spring=20Boot=20Starter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/pom.xml | 1 + .../wx-java-cp-spring-boot-starter/pom.xml | 45 ++++++++ .../cp/config/WxCpAutoConfiguration.java | 21 ++++ .../config/WxCpServiceAutoConfiguration.java | 44 ++++++++ .../config/WxCpStorageAutoConfiguration.java | 18 ++++ .../wxjava/cp/properties/WxCpProperties.java | 101 ++++++++++++++++++ ...bstractWxCpConfigStorageConfiguration.java | 53 +++++++++ ...xCpInMemoryConfigStorageConfiguration.java | 33 ++++++ .../main/resources/META-INF/spring.factories | 2 + 9 files changed, 318 insertions(+) create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/resources/META-INF/spring.factories diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index d72a766538..cc9e3e15f9 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -21,6 +21,7 @@ wx-java-pay-spring-boot-starter wx-java-open-spring-boot-starter wx-java-qidian-spring-boot-starter + wx-java-cp-spring-boot-starter diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml new file mode 100644 index 0000000000..3d6103adb4 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -0,0 +1,45 @@ + + + + wx-java-spring-boot-starters + com.github.binarywang + 4.2.1.B + + 4.0.0 + + wx-java-cp-spring-boot-starter + WxJava - Spring Boot Starter for WxCp + 微信企业号开发的 Spring Boot Starter + + + + com.github.binarywang + weixin-java-cp + ${project.version} + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring.boot.version} + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + + diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java new file mode 100644 index 0000000000..194cf5c403 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java @@ -0,0 +1,21 @@ +package com.binarywang.spring.starter.wxjava.cp.config; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpProperties; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; + +/** + * 企业微信自动注册 + * + * @author yl + * @date 2021/12/6 + */ +@Configuration +@EnableConfigurationProperties(WxCpProperties.class) +@Import({ + WxCpStorageAutoConfiguration.class, + WxCpServiceAutoConfiguration.class +}) +public class WxCpAutoConfiguration { +} diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java new file mode 100644 index 0000000000..0e1db87a33 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java @@ -0,0 +1,44 @@ +package com.binarywang.spring.starter.wxjava.cp.config; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpProperties; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; +import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * 企业微信平台相关服务自动注册 + * + * @author yl + * @date 2021/12/6 + */ +@Configuration +@RequiredArgsConstructor +public class WxCpServiceAutoConfiguration { + private final WxCpProperties wxCpProperties; + + @Bean + @ConditionalOnMissingBean + @ConditionalOnBean(WxCpConfigStorage.class) + public WxCpService wxCpService(WxCpConfigStorage wxCpConfigStorage) { + WxCpService wxCpService = new WxCpServiceImpl(); + wxCpService.setWxCpConfigStorage(wxCpConfigStorage); + + WxCpProperties.ConfigStorage storage = wxCpProperties.getConfigStorage(); + int maxRetryTimes = storage.getMaxRetryTimes(); + if (maxRetryTimes < 0) { + maxRetryTimes = 0; + } + int retrySleepMillis = storage.getRetrySleepMillis(); + if (retrySleepMillis < 0) { + retrySleepMillis = 1000; + } + wxCpService.setRetrySleepMillis(retrySleepMillis); + wxCpService.setMaxRetryTimes(maxRetryTimes); + return wxCpService; + } +} diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java new file mode 100644 index 0000000000..5092b3b343 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java @@ -0,0 +1,18 @@ +package com.binarywang.spring.starter.wxjava.cp.config; + +import com.binarywang.spring.starter.wxjava.cp.storage.WxCpInMemoryConfigStorageConfiguration; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; + +/** + * 企业微信存储策略自动配置 + * + * @author yl + * @date 2021/12/6 + */ +@Configuration +@Import({ + WxCpInMemoryConfigStorageConfiguration.class +}) +public class WxCpStorageAutoConfiguration { +} diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java new file mode 100644 index 0000000000..e4b200f1a2 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java @@ -0,0 +1,101 @@ +package com.binarywang.spring.starter.wxjava.cp.properties; + +import lombok.Data; +import lombok.NoArgsConstructor; +import org.springframework.boot.context.properties.ConfigurationProperties; + +import java.io.Serializable; + +/** + * 企业微信接入相关配置属性 + * + * @author yl + * @date 2021/12/6 + */ +@Data +@NoArgsConstructor +@ConfigurationProperties(prefix = WxCpProperties.PREFIX) +public class WxCpProperties { + public static final String PREFIX = "wx.cp"; + + /** + * 微信企业号 corpId + */ + private String corpId; + /** + * 微信企业号 corpSecret + */ + private String corpSecret; + /** + * 微信企业号应用 token + */ + private String token; + /** + * 微信企业号应用 ID + */ + private Integer agentId; + /** + * 微信企业号应用 EncodingAESKey + */ + private String aesKey; + + /** + * 配置存储策略,默认内存 + */ + private ConfigStorage configStorage = new ConfigStorage(); + + @Data + @NoArgsConstructor + public static class ConfigStorage implements Serializable { + private static final long serialVersionUID = 4815731027000065434L; + /** + * 存储类型 + */ + private StorageType type = StorageType.memory; + + /** + * http代理主机 + */ + private String httpProxyHost; + + /** + * http代理端口 + */ + private Integer httpProxyPort; + + /** + * http代理用户名 + */ + private String httpProxyUsername; + + /** + * http代理密码 + */ + private String httpProxyPassword; + + /** + * http 请求最大重试次数 + *
+     *   {@link me.chanjar.weixin.cp.api.WxCpService#setMaxRetryTimes(int)}
+     *   {@link me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl#setMaxRetryTimes(int)}
+     * 
+ */ + private int maxRetryTimes = 5; + + /** + * http 请求重试间隔 + *
+     *   {@link me.chanjar.weixin.cp.api.WxCpService#setRetrySleepMillis(int)}
+     *   {@link me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl#setRetrySleepMillis(int)}
+     * 
+ */ + private int retrySleepMillis = 1000; + } + + public enum StorageType { + /** + * 内存 + */ + memory + } +} diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java new file mode 100644 index 0000000000..17e940928d --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java @@ -0,0 +1,53 @@ +package com.binarywang.spring.starter.wxjava.cp.storage; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpProperties; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import org.apache.commons.lang3.StringUtils; + +/** + * WxCpConfigStorage 抽象配置类 + * + * @author yl + * @date 2021/12/6 + */ +public abstract class AbstractWxCpConfigStorageConfiguration { + + protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpProperties properties) { + String corpId = properties.getCorpId(); + String corpSecret = properties.getCorpSecret(); + String token = properties.getToken(); + Integer agentId = properties.getAgentId(); + String aesKey = properties.getAesKey(); + + config.setCorpId(corpId); + config.setCorpSecret(corpSecret); + if (StringUtils.isNotBlank(token)) { + config.setToken(token); + } + if (agentId != null) { + config.setAgentId(agentId); + } + if (StringUtils.isNotBlank(aesKey)) { + config.setAesKey(aesKey); + } + + WxCpProperties.ConfigStorage storage = properties.getConfigStorage(); + String httpProxyHost = storage.getHttpProxyHost(); + Integer httpProxyPort = storage.getHttpProxyPort(); + String httpProxyUsername = storage.getHttpProxyUsername(); + String httpProxyPassword = storage.getHttpProxyPassword(); + if (StringUtils.isNotBlank(httpProxyHost)) { + config.setHttpProxyHost(httpProxyHost); + if (httpProxyPort != null) { + config.setHttpProxyPort(httpProxyPort); + } + if (StringUtils.isNotBlank(httpProxyUsername)) { + config.setHttpProxyUsername(httpProxyUsername); + } + if (StringUtils.isNotBlank(httpProxyPassword)) { + config.setHttpProxyPassword(httpProxyPassword); + } + } + return config; + } +} diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java new file mode 100644 index 0000000000..e713e4394c --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java @@ -0,0 +1,33 @@ +package com.binarywang.spring.starter.wxjava.cp.storage; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpProperties; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * 自动装配基于内存策略配置 + * + * @author yl + * @date 2021/12/6 + */ +@Configuration +@ConditionalOnProperty( + prefix = WxCpProperties.PREFIX + ".config-storage", name = "type", + matchIfMissing = true, havingValue = "memory" +) +@RequiredArgsConstructor +public class WxCpInMemoryConfigStorageConfiguration extends AbstractWxCpConfigStorageConfiguration { + private final WxCpProperties wxCpProperties; + + @Bean + @ConditionalOnMissingBean(WxCpConfigStorage.class) + public WxCpConfigStorage wxCpConfigStorage() { + WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl(); + return this.config(config, wxCpProperties); + } +} diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/resources/META-INF/spring.factories b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000000..c2ef7f6354 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ +com.binarywang.spring.starter.wxjava.cp.config.WxCpAutoConfiguration From 7f119387992d5afa3049c6752f8d7f04365c9f53 Mon Sep 17 00:00:00 2001 From: dagewang <15124178@qq.com> Date: Tue, 7 Dec 2021 13:54:20 +0800 Subject: [PATCH 057/622] =?UTF-8?q?:bug:=20#2422=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E4=BF=AE=E5=A4=8D=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E4=BB=98=E6=AC=BE=E7=BB=99=E5=91=98=E5=B7=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=AD=BE=E5=90=8D=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/entwxpay/EntWxEmpPayRequest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entwxpay/EntWxEmpPayRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entwxpay/EntWxEmpPayRequest.java index 193c5293f7..e093a818da 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entwxpay/EntWxEmpPayRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entwxpay/EntWxEmpPayRequest.java @@ -227,4 +227,9 @@ protected void storeMap(Map map) { map.put("approval_type", approvalType.toString()); map.put("agentid", agentId.toString()); } + + @Override + protected String[] getIgnoredParamsForSign() { + return new String[]{"sign_type"}; + } } From e2f370eedc7bcda8fa0ba4ab3a5823bcbee10397 Mon Sep 17 00:00:00 2001 From: Scruel Tao Date: Tue, 7 Dec 2021 15:42:36 +0800 Subject: [PATCH 058/622] =?UTF-8?q?:art:=20WxMpXmlMessage=20=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=94=AF=E6=8C=81=20jackson=20=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8C=96=E6=B3=A8=E8=A7=A3=EF=BC=88=E6=97=A0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=80=A7=E5=BD=B1=E5=93=8D=EF=BC=8C=E9=9D=9E=E5=BC=BA=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 + weixin-java-mp/pom.xml | 5 + .../mp/bean/message/WxMpXmlMessage.java | 112 ++++++++++++++++++ .../mp/bean/message/WxMpXmlOutMessage.java | 9 +- 4 files changed, 130 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4951ddb0f2..0c2b9a3cbd 100644 --- a/pom.xml +++ b/pom.xml @@ -187,6 +187,11 @@ gson 2.8.0 + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + 2.13.0 + diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 4d2938203b..2a75b3bee6 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -84,6 +84,11 @@ org.redisson redisson + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + true +
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java index 56af43a642..d144b63af4 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java @@ -1,5 +1,7 @@ package me.chanjar.weixin.mp.bean.message; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; import lombok.Data; @@ -33,6 +35,7 @@ @Data @Slf4j @XStreamAlias("xml") +@JacksonXmlRootElement(localName = "xml") public class WxMpXmlMessage implements Serializable { private static final long serialVersionUID = -3586245291677274914L; @@ -46,97 +49,123 @@ public class WxMpXmlMessage implements Serializable { /////////////////////// @XStreamAlias("ToUserName") + @JacksonXmlProperty(localName = "ToUserName") @XStreamConverter(value = XStreamCDataConverter.class) private String toUser; @XStreamAlias("FromUserName") + @JacksonXmlProperty(localName = "FromUserName") @XStreamConverter(value = XStreamCDataConverter.class) private String fromUser; @XStreamAlias("CreateTime") + @JacksonXmlProperty(localName = "CreateTime") private Long createTime; @XStreamAlias("MsgType") + @JacksonXmlProperty(localName = "MsgType") @XStreamConverter(value = XStreamCDataConverter.class) private String msgType; @XStreamAlias("Content") + @JacksonXmlProperty(localName = "Content") @XStreamConverter(value = XStreamCDataConverter.class) private String content; @XStreamAlias("MenuId") + @JacksonXmlProperty(localName = "MenuId") private Long menuId; @XStreamAlias("MsgId") + @JacksonXmlProperty(localName = "MsgId") private Long msgId; @XStreamAlias("PicUrl") + @JacksonXmlProperty(localName = "PicUrl") @XStreamConverter(value = XStreamCDataConverter.class) private String picUrl; @XStreamAlias("MediaId") + @JacksonXmlProperty(localName = "MediaId") @XStreamConverter(value = XStreamCDataConverter.class) private String mediaId; @XStreamAlias("Format") + @JacksonXmlProperty(localName = "Format") @XStreamConverter(value = XStreamCDataConverter.class) private String format; @XStreamAlias("ThumbMediaId") + @JacksonXmlProperty(localName = "ThumbMediaId") @XStreamConverter(value = XStreamCDataConverter.class) private String thumbMediaId; @XStreamAlias("Location_X") + @JacksonXmlProperty(localName = "Location_X") private Double locationX; @XStreamAlias("Location_Y") + @JacksonXmlProperty(localName = "Location_Y") private Double locationY; @XStreamAlias("Scale") + @JacksonXmlProperty(localName = "Scale") private Double scale; @XStreamAlias("Label") + @JacksonXmlProperty(localName = "Label") @XStreamConverter(value = XStreamCDataConverter.class) private String label; @XStreamAlias("Title") + @JacksonXmlProperty(localName = "Title") @XStreamConverter(value = XStreamCDataConverter.class) private String title; @XStreamAlias("Description") + @JacksonXmlProperty(localName = "Description") @XStreamConverter(value = XStreamCDataConverter.class) private String description; @XStreamAlias("Url") + @JacksonXmlProperty(localName = "Url") @XStreamConverter(value = XStreamCDataConverter.class) private String url; @XStreamAlias("Event") + @JacksonXmlProperty(localName = "Event") @XStreamConverter(value = XStreamCDataConverter.class) private String event; @XStreamAlias("EventKey") + @JacksonXmlProperty(localName = "EventKey") @XStreamConverter(value = XStreamCDataConverter.class) private String eventKey; @XStreamAlias("Ticket") + @JacksonXmlProperty(localName = "Ticket") @XStreamConverter(value = XStreamCDataConverter.class) private String ticket; @XStreamAlias("Latitude") + @JacksonXmlProperty(localName = "Latitude") private Double latitude; @XStreamAlias("Longitude") + @JacksonXmlProperty(localName = "Longitude") private Double longitude; @XStreamAlias("Precision") + @JacksonXmlProperty(localName = "Precision") private Double precision; @XStreamAlias("Recognition") + @JacksonXmlProperty(localName = "Recognition") @XStreamConverter(value = XStreamCDataConverter.class) private String recognition; @XStreamAlias("UnionId") + @JacksonXmlProperty(localName = "UnionId") @XStreamConverter(value = XStreamCDataConverter.class) private String unionId; @@ -147,28 +176,33 @@ public class WxMpXmlMessage implements Serializable { * 群发的结果. */ @XStreamAlias("Status") + @JacksonXmlProperty(localName = "Status") @XStreamConverter(value = XStreamCDataConverter.class) private String status; /** * group_id下粉丝数;或者openid_list中的粉丝数. */ @XStreamAlias("TotalCount") + @JacksonXmlProperty(localName = "TotalCount") private Integer totalCount; /** * 过滤(过滤是指特定地区、性别的过滤、用户设置拒收的过滤,用户接收已超4条的过滤)后,准备发送的粉丝数. * 原则上,filterCount = sentCount + errorCount */ @XStreamAlias("FilterCount") + @JacksonXmlProperty(localName = "FilterCount") private Integer filterCount; /** * 发送成功的粉丝数. */ @XStreamAlias("SentCount") + @JacksonXmlProperty(localName = "SentCount") private Integer sentCount; /** * 发送失败的粉丝数. */ @XStreamAlias("ErrorCount") + @JacksonXmlProperty(localName = "ErrorCount") private Integer errorCount; /////////////////////////////////////// @@ -178,16 +212,19 @@ public class WxMpXmlMessage implements Serializable { * 创建或关闭客服会话时的客服帐号. */ @XStreamAlias("KfAccount") + @JacksonXmlProperty(localName = "KfAccount") private String kfAccount; /** * 转接客服会话时的转入客服帐号. */ @XStreamAlias("ToKfAccount") + @JacksonXmlProperty(localName = "ToKfAccount") private String toKfAccount; /** * 转接客服会话时的转出客服帐号. */ @XStreamAlias("FromKfAccount") + @JacksonXmlProperty(localName = "FromKfAccount") private String fromKfAccount; /////////////////////////////////////// @@ -195,10 +232,12 @@ public class WxMpXmlMessage implements Serializable { /////////////////////////////////////// @XStreamAlias("CardId") + @JacksonXmlProperty(localName = "CardId") @XStreamConverter(value = XStreamCDataConverter.class) private String cardId; @XStreamAlias("FriendUserName") + @JacksonXmlProperty(localName = "FriendUserName") @XStreamConverter(value = XStreamCDataConverter.class) private String friendUserName; @@ -206,23 +245,28 @@ public class WxMpXmlMessage implements Serializable { * 是否为转赠,1代表是,0代表否. */ @XStreamAlias("IsGiveByFriend") + @JacksonXmlProperty(localName = "IsGiveByFriend") private Integer isGiveByFriend; @XStreamAlias("UserCardCode") + @JacksonXmlProperty(localName = "UserCardCode") @XStreamConverter(value = XStreamCDataConverter.class) private String userCardCode; @XStreamAlias("OldUserCardCode") + @JacksonXmlProperty(localName = "OldUserCardCode") @XStreamConverter(value = XStreamCDataConverter.class) private String oldUserCardCode; @XStreamAlias("OuterId") + @JacksonXmlProperty(localName = "OuterId") private Integer outerId; /** * 用户删除会员卡后可重新找回,当用户本次操作为找回时,该值为1,否则为0. */ @XStreamAlias("IsRestoreMemberCard") + @JacksonXmlProperty(localName = "IsRestoreMemberCard") private String isRestoreMemberCard; /** @@ -235,18 +279,21 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("OuterStr") + @JacksonXmlProperty(localName = "OuterStr") private String outerStr; /** * 是否转赠退回,0代表不是,1代表是. */ @XStreamAlias("IsReturnBack") + @JacksonXmlProperty(localName = "IsReturnBack") private String isReturnBack; /** * 是否是群转赠,0代表不是,1代表是. */ @XStreamAlias("IsChatRoom") + @JacksonXmlProperty(localName = "IsChatRoom") private String isChatRoom; /** @@ -254,6 +301,7 @@ public class WxMpXmlMessage implements Serializable { * 支持开发者统计API核销(FROM_API)、公众平台核销(FROM_MP)、卡券商户助手核销(FROM_MOBILE_HELPER)(核销员微信号) */ @XStreamAlias("ConsumeSource") + @JacksonXmlProperty(localName = "ConsumeSource") private String consumeSource; /** @@ -261,24 +309,28 @@ public class WxMpXmlMessage implements Serializable { * 当前卡券核销的门店名称(只有通过自助核销和买单核销时才会出现该字段) */ @XStreamAlias("LocationName") + @JacksonXmlProperty(localName = "LocationName") private String locationName; /** * 核销该卡券核销员的openid(只有通过卡券商户助手核销时才会出现). */ @XStreamAlias("StaffOpenId") + @JacksonXmlProperty(localName = "StaffOpenId") private String staffOpenId; /** * 自助核销时,用户输入的验证码. */ @XStreamAlias("VerifyCode") + @JacksonXmlProperty(localName = "VerifyCode") private String verifyCode; /** * 自助核销时,用户输入的备注金额. */ @XStreamAlias("RemarkAmount") + @JacksonXmlProperty(localName = "RemarkAmount") private String remarkAmount; /** @@ -288,6 +340,7 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("Detail") + @JacksonXmlProperty(localName = "Detail") private String detail; /** @@ -297,6 +350,7 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("ModifyBonus") + @JacksonXmlProperty(localName = "ModifyBonus") private String modifyBonus; /** @@ -306,6 +360,7 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("ModifyBalance") + @JacksonXmlProperty(localName = "ModifyBalance") private String modifyBalance; /** @@ -315,6 +370,7 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("TransId") + @JacksonXmlProperty(localName = "TransId") private String transId; /** @@ -324,6 +380,7 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("LocationId") + @JacksonXmlProperty(localName = "LocationId") private String locationId; /** @@ -333,6 +390,7 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("Fee") + @JacksonXmlProperty(localName = "Fee") private String fee; /** @@ -342,72 +400,86 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("OriginalFee") + @JacksonXmlProperty(localName = "OriginalFee") private String originalFee; @XStreamAlias("ScanCodeInfo") + @JacksonXmlProperty(localName = "ScanCodeInfo") private ScanCodeInfo scanCodeInfo = new ScanCodeInfo(); @XStreamAlias("SendPicsInfo") + @JacksonXmlProperty(localName = "SendPicsInfo") private SendPicsInfo sendPicsInfo = new SendPicsInfo(); @XStreamAlias("SendLocationInfo") + @JacksonXmlProperty(localName = "SendLocationInfo") private SendLocationInfo sendLocationInfo = new SendLocationInfo(); @XStreamAlias("ArticleUrlResult") + @JacksonXmlProperty(localName = "ArticleUrlResult") private ArticleUrlResult articleUrlResult = new ArticleUrlResult(); /** * 审核不通过原因 */ @XStreamAlias("RefuseReason") + @JacksonXmlProperty(localName = "RefuseReason") private String refuseReason; /** * 是否为朋友推荐,0代表否,1代表是 */ @XStreamAlias("IsRecommendByFriend") + @JacksonXmlProperty(localName = "IsRecommendByFriend") private String isRecommendByFriend; /** * 购买券点时,实际支付成功的时间 */ @XStreamAlias("PayFinishTime") + @JacksonXmlProperty(localName = "PayFinishTime") private String payFinishTime; /** * 购买券点时,支付二维码的生成时间 */ @XStreamAlias("CreateOrderTime") + @JacksonXmlProperty(localName = "CreateOrderTime") private String createOrderTime; /** * 购买券点时,支付二维码的生成时间 */ @XStreamAlias("Desc") + @JacksonXmlProperty(localName = "Desc") private String desc; /** * 剩余免费券点数量 */ @XStreamAlias("FreeCoinCount") + @JacksonXmlProperty(localName = "FreeCoinCount") private String freeCoinCount; /** * 剩余付费券点数量 */ @XStreamAlias("PayCoinCount") + @JacksonXmlProperty(localName = "PayCoinCount") private String payCoinCount; /** * 本次变动的免费券点数量 */ @XStreamAlias("RefundFreeCoinCount") + @JacksonXmlProperty(localName = "RefundFreeCoinCount") private String refundFreeCoinCount; /** * 本次变动的付费券点数量 */ @XStreamAlias("RefundPayCoinCount") + @JacksonXmlProperty(localName = "RefundPayCoinCount") private String refundPayCoinCount; /** @@ -417,18 +489,21 @@ public class WxMpXmlMessage implements Serializable { * */ @XStreamAlias("OrderType") + @JacksonXmlProperty(localName = "OrderType") private String orderType; /** * 系统备注,说明此次变动的缘由,如开通账户奖励、门店奖励、核销奖励以及充值、扣减。 */ @XStreamAlias("Memo") + @JacksonXmlProperty(localName = "Memo") private String memo; /** * 所开发票的详情 */ @XStreamAlias("ReceiptInfo") + @JacksonXmlProperty(localName = "ReceiptInfo") private String receiptInfo; @@ -439,12 +514,14 @@ public class WxMpXmlMessage implements Serializable { * 商户自己内部ID,即字段中的sid. */ @XStreamAlias("UniqId") + @JacksonXmlProperty(localName = "UniqId") private String storeUniqId; /** * 微信的门店ID,微信内门店唯一标示ID. */ @XStreamAlias("PoiId") + @JacksonXmlProperty(localName = "PoiId") private String poiId; /** @@ -453,12 +530,14 @@ public class WxMpXmlMessage implements Serializable { * 在商品审核结果推送时,verify_ok表示审核通过,verify_not_pass表示审核未通过。 */ @XStreamAlias("Result") + @JacksonXmlProperty(localName = "Result") private String result; /** * 成功的通知信息,或审核失败的驳回理由. */ @XStreamAlias("msg") + @JacksonXmlProperty(localName = "msg") private String msg; /////////////////////////////////////// @@ -470,16 +549,19 @@ public class WxMpXmlMessage implements Serializable { * 认证过期失效通知: 有效期 (整形),指的是时间戳,表示已于该时间戳认证过期,需要重新发起微信认证 */ @XStreamAlias("ExpiredTime") + @JacksonXmlProperty(localName = "ExpiredTime") private Long expiredTime; /** * 失败发生时间 (整形),时间戳. */ @XStreamAlias("FailTime") + @JacksonXmlProperty(localName = "FailTime") private Long failTime; /** * 认证失败的原因. */ @XStreamAlias("FailReason") + @JacksonXmlProperty(localName = "FailReason") private String failReason; /////////////////////////////////////// @@ -489,6 +571,7 @@ public class WxMpXmlMessage implements Serializable { * 订单ID. */ @XStreamAlias("OrderId") + @JacksonXmlProperty(localName = "OrderId") @XStreamConverter(value = XStreamCDataConverter.class) private String orderId; @@ -496,12 +579,14 @@ public class WxMpXmlMessage implements Serializable { * 订单状态. */ @XStreamAlias("OrderStatus") + @JacksonXmlProperty(localName = "OrderStatus") private String orderStatus; /** * 商品ID. */ @XStreamAlias("ProductId") + @JacksonXmlProperty(localName = "ProductId") @XStreamConverter(value = XStreamCDataConverter.class) private String productId; @@ -509,6 +594,7 @@ public class WxMpXmlMessage implements Serializable { * 商品SKU信息. */ @XStreamAlias("SkuInfo") + @JacksonXmlProperty(localName = "SkuInfo") @XStreamConverter(value = XStreamCDataConverter.class) private String skuInfo; @@ -520,6 +606,7 @@ public class WxMpXmlMessage implements Serializable { * 目前为"公众账号原始ID" */ @XStreamAlias("DeviceType") + @JacksonXmlProperty(localName = "DeviceType") @XStreamConverter(value = XStreamCDataConverter.class) private String deviceType; @@ -528,6 +615,7 @@ public class WxMpXmlMessage implements Serializable { * 第三方提供 */ @XStreamAlias("DeviceID") + @JacksonXmlProperty(localName = "DeviceID") @XStreamConverter(value = XStreamCDataConverter.class) private String deviceId; @@ -536,6 +624,7 @@ public class WxMpXmlMessage implements Serializable { * 因此响应中该字段第三方需要原封不变的带回 */ @XStreamAlias("SessionID") + @JacksonXmlProperty(localName = "SessionID") @XStreamConverter(value = XStreamCDataConverter.class) private String sessionId; @@ -543,10 +632,12 @@ public class WxMpXmlMessage implements Serializable { * 微信用户账号的OpenID. */ @XStreamAlias("OpenID") + @JacksonXmlProperty(localName = "OpenID") @XStreamConverter(value = XStreamCDataConverter.class) private String openId; @XStreamAlias("HardWare") + @JacksonXmlProperty(localName = "HardWare") private HardWare hardWare = new HardWare(); /** @@ -556,6 +647,7 @@ public class WxMpXmlMessage implements Serializable { * 2:订阅设备状态 */ @XStreamAlias("OpType") + @JacksonXmlProperty(localName = "OpType") private Integer opType; /** @@ -563,6 +655,7 @@ public class WxMpXmlMessage implements Serializable { * 0:未连接;1:已连接 */ @XStreamAlias("DeviceStatus") + @JacksonXmlProperty(localName = "DeviceStatus") private Integer deviceStatus; /////////////////////////////////////// @@ -572,12 +665,14 @@ public class WxMpXmlMessage implements Serializable { * 审核成功时的时间(整形),时间戳 */ @XStreamAlias("SuccTime") + @JacksonXmlProperty(localName = "SuccTime") private Long successTime; /** * 审核失败的原因 */ @XStreamAlias("Reason") + @JacksonXmlProperty(localName = "Reason") private String reason; /////////////////////////////////////// @@ -587,65 +682,76 @@ public class WxMpXmlMessage implements Serializable { * 商品编码标准 */ @XStreamAlias("KeyStandard") + @JacksonXmlProperty(localName = "KeyStandard") private String keyStandard; /** * 商品编码内容 */ @XStreamAlias("KeyStr") + @JacksonXmlProperty(localName = "KeyStr") private String keyStr; /** * 用户在微信内设置的国家 */ @XStreamAlias("Country") + @JacksonXmlProperty(localName = "Country") private String country; /** * 用户在微信内设置的省份 */ @XStreamAlias("Province") + @JacksonXmlProperty(localName = "Province") private String province; /** * 用户在微信内设置的城市 */ @XStreamAlias("City") + @JacksonXmlProperty(localName = "City") private String city; /** * 用户的性别,1为男性,2为女性,0代表未知 */ @XStreamAlias("Sex") + @JacksonXmlProperty(localName = "Sex") private String sex; /** * 打开商品主页的场景,1为扫码,2为其他打开场景(如会话、收藏或朋友圈) */ @XStreamAlias("Scene") + @JacksonXmlProperty(localName = "Scene") private String scene; /** * 调用“获取商品二维码接口”时传入的extinfo,为标识参数 */ @XStreamAlias("ExtInfo") + @JacksonXmlProperty(localName = "ExtInfo") private String extInfo; /** * 用户的实时地理位置信息(目前只精确到省一级),可在国家统计局网站查到对应明细: http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201504/t20150415_712722.html */ @XStreamAlias("RegionCode") + @JacksonXmlProperty(localName = "RegionCode") private String regionCode; /** * 审核未通过的原因. */ @XStreamAlias("ReasonMsg") + @JacksonXmlProperty(localName = "ReasonMsg") private String reasonMsg; /** * 给用户发菜单消息类型的客服消息后,用户所点击的菜单ID. */ @XStreamAlias("bizmsgmenuid") + @JacksonXmlProperty(localName = "bizmsgmenuid") private String bizMsgMenuId; /*------------------ 电子发票 ------------------*/ @@ -653,36 +759,42 @@ public class WxMpXmlMessage implements Serializable { * 授权成功的订单号,与失败订单号两者必显示其一 */ @XStreamAlias("SuccOrderId") + @JacksonXmlProperty(localName = "SuccOrderId") private String succOrderId; /** * 授权失败的订单号,与成功订单号两者必显示其一 */ @XStreamAlias("FailOrderId") + @JacksonXmlProperty(localName = "FailOrderId") private String failOrderId; /** * 获取授权页链接的AppId */ @XStreamAlias("AuthorizeAppId") + @JacksonXmlProperty(localName = "AuthorizeAppId") private String authorizeAppId; /** * 授权来源,web:公众号开票,app:app开票,wxa:小程序开票,wap:h5开票 */ @XStreamAlias("source") + @JacksonXmlProperty(localName = "source") private String source; /** * 发票请求流水号,唯一识别发票请求的流水号 */ @XStreamAlias("fpqqlsh") + @JacksonXmlProperty(localName = "fpqqlsh") private String fpqqlsh; /** * 纳税人识别码 */ @XStreamAlias("nsrsbh") + @JacksonXmlProperty(localName = "nsrsbh") private String nsrsbh; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java index 40e0b41a2b..1d2b073f01 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java @@ -1,5 +1,7 @@ package me.chanjar.weixin.mp.bean.message; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; import lombok.Data; @@ -11,23 +13,28 @@ import java.io.Serializable; -@XStreamAlias("xml") @Data +@XStreamAlias("xml") +@JacksonXmlRootElement(localName = "xml") public abstract class WxMpXmlOutMessage implements Serializable { private static final long serialVersionUID = -381382011286216263L; @XStreamAlias("ToUserName") + @JacksonXmlProperty(localName = "ToUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String toUserName; @XStreamAlias("FromUserName") + @JacksonXmlProperty(localName = "FromUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String fromUserName; @XStreamAlias("CreateTime") + @JacksonXmlProperty(localName = "CreateTime") protected Long createTime; @XStreamAlias("MsgType") + @JacksonXmlProperty(localName = "MsgType") @XStreamConverter(value = XStreamCDataConverter.class) protected String msgType; From ce8bf302fa55f042b79001ca5e96a8f5848810f5 Mon Sep 17 00:00:00 2001 From: sunzsh Date: Wed, 8 Dec 2021 09:13:34 +0800 Subject: [PATCH 059/622] =?UTF-8?q?:art:=20#2428=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=96=B0=E5=BC=95=E5=85=A5=E7=9A=84=E7=9B=B4=E5=B1=9E=E9=A2=86?= =?UTF-8?q?=E5=AF=BC=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java | 1 + .../java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java index 18ef125ab2..0c4bac9ea8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java @@ -70,6 +70,7 @@ public class WxCpUser implements Serializable { private String externalCorpName; private WechatChannels wechatChannels; + private String[] directLeader; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java index 6cecde0b4d..d88a22cb18 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java @@ -89,6 +89,7 @@ public WxCpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC user.setToInvite(GsonHelper.getBoolean(o, "to_invite")); user.setOpenUserId(GsonHelper.getString(o, "open_userid")); user.setMainDepartment(GsonHelper.getString(o, "main_department")); + user.setDirectLeader(GsonHelper.getStringArray(o, "direct_leader")); if (GsonHelper.isNotNull(o.get(EXTRA_ATTR))) { this.buildExtraAttrs(o, user); From 1c6b7fc07cb5b978c6e325982783742ddff08008 Mon Sep 17 00:00:00 2001 From: Scruel Tao Date: Wed, 8 Dec 2021 09:41:59 +0800 Subject: [PATCH 060/622] =?UTF-8?q?:art:=20=E5=A2=9E=E5=8A=A0=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E8=87=AA=E8=BA=AB=E7=9A=84=E8=A7=A3=E5=AF=86=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E8=B0=83=E6=95=B4=E8=A7=A3=E5=AF=86=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=B1=BB=E6=96=B9=E6=B3=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/util/crypto/WxCryptUtil.java | 83 +++++++++++++++++-- .../mp/bean/message/WxMpXmlMessage.java | 15 +++- 2 files changed, 89 insertions(+), 9 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java index a73e01d0d5..c36561c2d8 100755 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java @@ -14,6 +14,8 @@ import com.google.common.base.CharMatcher; import com.google.common.io.BaseEncoding; +import lombok.AllArgsConstructor; +import lombok.Data; import me.chanjar.weixin.common.error.WxRuntimeException; import org.apache.commons.codec.binary.Base64; import org.w3c.dom.Document; @@ -157,6 +159,29 @@ public String encrypt(String plainText) { return generateXml(encryptedXml, signature, timeStamp, nonce); } + /** + * 将公众平台回复用户的消息加密打包. + *
    + *
  1. 对要发送的消息进行AES-CBC加密
  2. + *
  3. 生成安全签名
  4. + *
  5. 将消息密文和安全签名打包成xml格式
  6. + *
+ * + * @param plainText 公众平台待回复用户的消息,xml格式的字符串 + * @return 加密消息所需的值对象 + */ + public EncryptContext encryptContext(String plainText) { + // 加密 + String encryptedXml = encrypt(genRandomStr(), plainText); + + // 生成安全签名 + String timeStamp = Long.toString(System.currentTimeMillis() / 1000L); + String nonce = genRandomStr(); + + String signature = SHA1.gen(this.token, timeStamp, nonce, encryptedXml); + return new EncryptContext(encryptedXml, signature, timeStamp, nonce); + } + /** * 对明文进行加密. * @@ -211,22 +236,56 @@ public String encrypt(String randomStr, String plainText) { * @param msgSignature 签名串,对应URL参数的msg_signature * @param timeStamp 时间戳,对应URL参数的timestamp * @param nonce 随机串,对应URL参数的nonce - * @param encryptedXml 密文,对应POST请求的数据 + * @param encryptedXml 包含 Encrypt 密文的 xml,对应POST请求的数据 * @return 解密后的原文 */ - public String decrypt(String msgSignature, String timeStamp, String nonce, String encryptedXml) { + public String decryptXml(String msgSignature, String timeStamp, String nonce, String encryptedXml) { // 密钥,公众账号的app corpSecret // 提取密文 String cipherText = extractEncryptPart(encryptedXml); + return decryptContent(msgSignature, timeStamp, nonce, cipherText); + } + + /** + * 检验消息的真实性,并且获取解密后的明文. + *
    + *
  1. 利用收到的密文生成安全签名,进行签名验证
  2. + *
  3. 若验证通过,则提取xml中的加密消息
  4. + *
  5. 对消息进行解密
  6. + *
+ * + * @param msgSignature 签名串,对应URL参数的msg_signature + * @param timeStamp 时间戳,对应URL参数的timestamp + * @param nonce 随机串,对应URL参数的nonce + * @param encryptedXml 包含 Encrypt 密文的 xml,对应POST请求的数据 + * @return 解密后的原文 + */ + public String decrypt(String msgSignature, String timeStamp, String nonce, String encryptedXml) { + return decryptXml(msgSignature, timeStamp, nonce, encryptedXml); + } + /** + * 检验消息的真实性,并且获取解密后的明文. + *
    + *
  1. 利用收到的密文生成安全签名,进行签名验证
  2. + *
  3. 若验证通过,则提取xml中的加密消息
  4. + *
  5. 对消息进行解密
  6. + *
+ * + * @param msgSignature 签名串,对应URL参数的msg_signature + * @param timeStamp 时间戳,对应URL参数的timestamp + * @param nonce 随机串,对应URL参数的nonce + * @param encryptedContent 加密文本体 + * @return 解密后的原文 + */ + public String decryptContent(String msgSignature, String timeStamp, String nonce, String encryptedContent) { // 验证安全签名 - String signature = SHA1.gen(this.token, timeStamp, nonce, cipherText); + String signature = SHA1.gen(this.token, timeStamp, nonce, encryptedContent); if (!signature.equals(msgSignature)) { throw new WxRuntimeException("加密消息签名校验失败"); } - // 解密 - return decrypt(cipherText); + return decrypt(encryptedContent); } /** @@ -271,12 +330,20 @@ public String decrypt(String cipherText) { } // appid不相同的情况 暂时忽略这段判断 -// if (!fromAppid.equals(this.appidOrCorpid)) { -// throw new WxRuntimeException("AppID不正确,请核实!"); -// } + // if (!fromAppid.equals(this.appidOrCorpid)) { + // throw new WxRuntimeException("AppID不正确,请核实!"); + // } return xmlContent; } + @Data + @AllArgsConstructor + public static class EncryptContext { + private String encrypt; + private String signature; + private String timeStamp; + private String nonce; + } } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java index d144b63af4..063938d274 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java @@ -506,7 +506,6 @@ public class WxMpXmlMessage implements Serializable { @JacksonXmlProperty(localName = "ReceiptInfo") private String receiptInfo; - /////////////////////////////////////// // 门店审核事件推送 /////////////////////////////////////// @@ -797,6 +796,12 @@ public class WxMpXmlMessage implements Serializable { @JacksonXmlProperty(localName = "nsrsbh") private String nsrsbh; + /** + * 加密消息 + */ + @XStreamAlias("Encrypt") + @JacksonXmlProperty(localName = "Encrypt") + private String encrypt; public static WxMpXmlMessage fromXml(String xml) { //修改微信变态的消息内容格式,方便解析 @@ -836,6 +841,14 @@ public static WxMpXmlMessage fromEncryptedXml(InputStream is, WxMpConfigStorage } } + public WxMpXmlMessage decryptField(WxMpConfigStorage wxMpConfigStorage, + String timestamp, String nonce, String msgSignature) { + WxMpCryptUtil cryptUtil = new WxMpCryptUtil(wxMpConfigStorage); + String plainText = cryptUtil.decryptContent(msgSignature, timestamp, nonce, this.encrypt); + log.debug("解密后的原始xml消息内容:{}", plainText); + return fromXml(plainText); + } + /** *
    * 当接受用户消息时,可能会获得以下值:

From fcb599b76e027e0502efac0edce15f3e23d50d5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Forever=E6=9D=A8?= <453190450@qq.com>
Date: Wed, 8 Dec 2021 14:47:00 +0800
Subject: [PATCH 061/622] =?UTF-8?q?:memo:=20=E6=96=B0=E5=A2=9E=20=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=20Spring=20Boot=20Starter=20?=
 =?UTF-8?q?=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx-java-cp-spring-boot-starter/README.md  | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 spring-boot-starters/wx-java-cp-spring-boot-starter/README.md

diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md b/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md
new file mode 100644
index 0000000000..439ee5c726
--- /dev/null
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md
@@ -0,0 +1,39 @@
+# wx-java-cp-spring-boot-starter
+
+## 快速开始
+
+1. 引入依赖
+    ```xml
+    
+        com.github.binarywang
+        wx-java-cp-spring-boot-starter
+        ${version}
+    
+    ```
+2. 添加配置(application.properties)
+    ```properties
+    # 企业微信号配置(必填)
+    wx.cp.corp-id = @corp-id
+    wx.cp.corp-secret = @corp-secret
+    # 选填
+    wx.cp.token = @token
+    wx.cp.aes-key = @aes-key
+    wx.cp.agent-id = @agent-id
+    # ConfigStorage 配置(选填)
+    wx.cp.config-storage.type=memory # memory 默认,目前只支持 memory 类型,可以自行扩展 redis 等类型
+    # http 客户端配置(选填)
+    wx.cp.config-storage.http-proxy-host=
+    wx.cp.config-storage.http-proxy-port=
+    wx.cp.config-storage.http-proxy-username=
+    wx.cp.config-storage.http-proxy-password=
+    # 最大重试次数,默认:5 次,如果小于 0,则为 0
+    wx.cp.config-storage.max-retry-times=5
+    # 重试时间间隔步进,默认:1000 毫秒,如果小于 0,则为 1000
+    wx.cp.config-storage.retry-sleep-millis=1000
+    ```
+3. 支持自动注入的类型: `WxCpService`, `WxCpConfigStorage`
+
+4. 覆盖自动配置: 自定义注入的bean会覆盖自动注入的
+
+- WxCpService
+- WxCpConfigStorage

From f2ac81ef5ef5b7ee9ba4b1527f47b09bb6f8fa48 Mon Sep 17 00:00:00 2001
From: Scruel Tao 
Date: Wed, 8 Dec 2021 14:47:49 +0800
Subject: [PATCH 062/622] =?UTF-8?q?:recycle:=20=E8=BF=87=E6=97=B6=E8=AF=AD?=
 =?UTF-8?q?=E4=B9=89=E4=B8=8D=E6=B8=85=E6=99=B0=E7=9A=84=20decrypt=20?=
 =?UTF-8?q?=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../me/chanjar/weixin/common/util/crypto/WxCryptUtil.java     | 2 ++
 .../me/chanjar/weixin/common/util/crypto/WxCryptUtilTest.java | 2 +-
 .../me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java     | 2 +-
 .../main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java  | 2 +-
 .../me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java     | 2 +-
 .../me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java | 4 ++--
 6 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java
index c36561c2d8..f55672b0b4 100755
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java
@@ -259,7 +259,9 @@ public String decryptXml(String msgSignature, String timeStamp, String nonce, St
    * @param nonce        随机串,对应URL参数的nonce
    * @param encryptedXml 包含 Encrypt 密文的 xml,对应POST请求的数据
    * @return 解密后的原文
+   * @deprecated 由于语义不清晰,置为过时方法,请查看替代方法 {@link #decryptXml}
    */
+  @Deprecated
   public String decrypt(String msgSignature, String timeStamp, String nonce, String encryptedXml) {
     return decryptXml(msgSignature, timeStamp, nonce, encryptedXml);
   }
diff --git a/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/crypto/WxCryptUtilTest.java b/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/crypto/WxCryptUtilTest.java
index 82cfa9d2d6..b61696c1ea 100755
--- a/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/crypto/WxCryptUtilTest.java
+++ b/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/crypto/WxCryptUtilTest.java
@@ -96,7 +96,7 @@ public void testValidateSignatureError() throws ParserConfigurationException, SA
 
       String encrypt = nodelist1.item(0).getTextContent();
       String fromXML = String.format(this.xmlFormat, encrypt);
-      pc.decrypt("12345", this.timestamp, this.nonce, fromXML); // 这里签名错误
+      pc.decryptXml("12345", this.timestamp, this.nonce, fromXML); // 这里签名错误
     } catch (RuntimeException e) {
       assertEquals(e.getMessage(), "加密消息签名校验失败");
       return;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
index c22595b43b..51beb27eee 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
@@ -463,7 +463,7 @@ protected static WxCpXmlMessage fromXml(InputStream is) {
   public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigStorage wxCpConfigStorage,
                                                 String timestamp, String nonce, String msgSignature) {
     WxCpCryptUtil cryptUtil = new WxCpCryptUtil(wxCpConfigStorage);
-    String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
+    String plainText = cryptUtil.decryptXml(msgSignature, timestamp, nonce, encryptedXml);
     log.debug("解密后的原始xml消息内容:{}", plainText);
     return fromXml(plainText);
   }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
index 57d6a5b9be..ff7a48e471 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
@@ -165,7 +165,7 @@ public static WxMaMessage fromXml(InputStream is) {
   public static WxMaMessage fromEncryptedXml(String encryptedXml,
                                              WxMaConfig wxMaConfig, String timestamp, String nonce,
                                              String msgSignature) {
-    String plainText = new WxMaCryptUtils(wxMaConfig).decrypt(msgSignature, timestamp, nonce, encryptedXml);
+    String plainText = new WxMaCryptUtils(wxMaConfig).decryptXml(msgSignature, timestamp, nonce, encryptedXml);
     return fromXml(plainText);
   }
 
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java
index 063938d274..f85ee5c6a4 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java
@@ -827,7 +827,7 @@ public static WxMpXmlMessage fromXml(InputStream is) {
   public static WxMpXmlMessage fromEncryptedXml(String encryptedXml, WxMpConfigStorage wxMpConfigStorage,
                                                 String timestamp, String nonce, String msgSignature) {
     WxMpCryptUtil cryptUtil = new WxMpCryptUtil(wxMpConfigStorage);
-    String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
+    String plainText = cryptUtil.decryptXml(msgSignature, timestamp, nonce, encryptedXml);
     log.debug("解密后的原始xml消息内容:{}", plainText);
     return fromXml(plainText);
   }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java
index a79a7a9af0..dc99fcc18c 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenXmlMessage.java
@@ -147,7 +147,7 @@ public static WxOpenXmlMessage fromXml(InputStream is) {
   public static WxOpenXmlMessage fromEncryptedXml(String encryptedXml, WxOpenConfigStorage wxOpenConfigStorage,
                                                   String timestamp, String nonce, String msgSignature) {
     WxOpenCryptUtil cryptUtil = new WxOpenCryptUtil(wxOpenConfigStorage);
-    String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
+    String plainText = cryptUtil.decryptXml(msgSignature, timestamp, nonce, encryptedXml);
     log.debug("解密后的原始xml消息内容:{}", plainText);
     return fromXml(plainText);
   }
@@ -155,7 +155,7 @@ public static WxOpenXmlMessage fromEncryptedXml(String encryptedXml, WxOpenConfi
   public static WxMpXmlMessage fromEncryptedMpXml(String encryptedXml, WxOpenConfigStorage wxOpenConfigStorage,
                                                   String timestamp, String nonce, String msgSignature) {
     WxOpenCryptUtil cryptUtil = new WxOpenCryptUtil(wxOpenConfigStorage);
-    String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
+    String plainText = cryptUtil.decryptXml(msgSignature, timestamp, nonce, encryptedXml);
     return WxMpXmlMessage.fromXml(plainText);
   }
 

From 05fd45b853a83d44b336fa69d50bc31d10fd6bc4 Mon Sep 17 00:00:00 2001
From: Scruel Tao 
Date: Wed, 8 Dec 2021 14:50:44 +0800
Subject: [PATCH 063/622] =?UTF-8?q?:new:=20=E8=A1=A5=E5=85=A8=E6=B6=88?=
 =?UTF-8?q?=E6=81=AF=E8=BE=93=E5=87=BA=E7=AD=89=E7=9B=B8=E5=85=B3=E7=B1=BB?=
 =?UTF-8?q?=E7=9A=84=20jackson=20=E6=B3=A8=E8=A7=A3=EF=BC=88=E4=B8=BB?=
 =?UTF-8?q?=E8=A6=81=E6=98=AF=20@JacksonXmlCData=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../mp/bean/message/ArticleUrlResult.java     | 14 ++-
 .../weixin/mp/bean/message/HardWare.java      | 11 ++-
 .../weixin/mp/bean/message/ScanCodeInfo.java  | 10 ++-
 .../mp/bean/message/SendLocationInfo.java     | 16 +++-
 .../weixin/mp/bean/message/SendPicsInfo.java  | 13 ++-
 .../mp/bean/message/WxMpXmlMessage.java       | 85 +++++++++++++------
 .../bean/message/WxMpXmlOutDeviceMessage.java | 84 ++++++++++--------
 .../bean/message/WxMpXmlOutImageMessage.java  |  8 +-
 .../bean/message/WxMpXmlOutMusicMessage.java  | 20 ++++-
 .../bean/message/WxMpXmlOutNewsMessage.java   | 19 ++++-
 .../bean/message/WxMpXmlOutTextMessage.java   |  8 +-
 .../WxMpXmlOutTransferKefuMessage.java        | 12 ++-
 .../bean/message/WxMpXmlOutVideoMessage.java  | 16 +++-
 .../bean/message/WxMpXmlOutVoiceMessage.java  |  8 +-
 14 files changed, 242 insertions(+), 82 deletions(-)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ArticleUrlResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ArticleUrlResult.java
index e635e7e506..601c187430 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ArticleUrlResult.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ArticleUrlResult.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -13,14 +16,17 @@
  * @author plw on 2021/9/7 10:39 AM.
  * @version 1.0
  */
-@XStreamAlias("ArticleUrlResult")
 @Data
+@XStreamAlias("ArticleUrlResult")
+@JacksonXmlRootElement(localName = "ArticleUrlResult")
 public class ArticleUrlResult implements Serializable {
 
   @XStreamAlias("ResultList")
+  @JacksonXmlProperty(localName = "ResultList")
   private List resultList;
 
   @XStreamAlias("Count")
+  @JacksonXmlProperty(localName = "Count")
   private Long count;
 
   @Override
@@ -28,15 +34,19 @@ public String toString() {
     return WxMpGsonBuilder.create().toJson(this);
   }
 
-  @XStreamAlias("item")
   @Data
+  @XStreamAlias("item")
+  @JacksonXmlRootElement(localName = "item")
   public static class Item implements Serializable {
 
     @XStreamAlias("ArticleIdx")
+    @JacksonXmlProperty(localName = "ArticleIdx")
     private String articleIdx;
 
     @XStreamAlias("ArticleUrl")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "ArticleUrl")
+    @JacksonXmlCData
     private String articleUrl;
 
     @Override
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/HardWare.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/HardWare.java
index a75c98e02c..2dbd701404 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/HardWare.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/HardWare.java
@@ -2,6 +2,9 @@
 
 import java.io.Serializable;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -15,8 +18,9 @@
  *
  * @author Binary Wang
  */
-@XStreamAlias("HardWare")
 @Data
+@XStreamAlias("HardWare")
+@JacksonXmlRootElement(localName = "HardWare")
 public class HardWare implements Serializable {
   private static final long serialVersionUID = -1295785297354896461L;
 
@@ -25,12 +29,17 @@ public class HardWare implements Serializable {
    */
   @XStreamAlias("MessageView")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "MessageView")
+  @JacksonXmlCData
   private String messageView;
+
   /**
    * 消息点击动作,目前支持ranklist(点击跳转排行榜)
    */
   @XStreamAlias("MessageAction")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "MessageAction")
+  @JacksonXmlCData
   private String messageAction;
 
   @Override
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ScanCodeInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ScanCodeInfo.java
index f53b44c41d..685290bf31 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ScanCodeInfo.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ScanCodeInfo.java
@@ -2,6 +2,9 @@
 
 import java.io.Serializable;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -15,8 +18,9 @@
  *
  * @author Binary Wang
  */
-@XStreamAlias("ScanCodeInfo")
 @Data
+@XStreamAlias("ScanCodeInfo")
+@JacksonXmlRootElement(localName = "ScanCodeInfo")
 public class ScanCodeInfo implements Serializable {
   private static final long serialVersionUID = 4745181270645050122L;
 
@@ -25,6 +29,8 @@ public class ScanCodeInfo implements Serializable {
    */
   @XStreamAlias("ScanType")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ScanType")
+  @JacksonXmlCData
   private String scanType;
 
   /**
@@ -32,6 +38,8 @@ public class ScanCodeInfo implements Serializable {
    */
   @XStreamAlias("ScanResult")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ScanResult")
+  @JacksonXmlCData
   private String scanResult;
 
   @Override
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendLocationInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendLocationInfo.java
index 09f1776bb5..6fb4695546 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendLocationInfo.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendLocationInfo.java
@@ -2,6 +2,9 @@
 
 import java.io.Serializable;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -15,29 +18,40 @@
  *
  * @author Binary Wang
  */
-@XStreamAlias("SendLocationInfo")
 @Data
+@XStreamAlias("SendLocationInfo")
+@JacksonXmlRootElement(localName = "SendLocationInfo")
 public class SendLocationInfo implements Serializable {
   private static final long serialVersionUID = 6633214140499161130L;
 
   @XStreamAlias("Location_X")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Location_X")
+  @JacksonXmlCData
   private String locationX;
 
   @XStreamAlias("Location_Y")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Location_Y")
+  @JacksonXmlCData
   private String locationY;
 
   @XStreamAlias("Scale")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Scale")
+  @JacksonXmlCData
   private String scale;
 
   @XStreamAlias("Label")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Label")
+  @JacksonXmlCData
   private String label;
 
   @XStreamAlias("Poiname")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Poiname")
+  @JacksonXmlCData
   private String poiName;
 
   @Override
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendPicsInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendPicsInfo.java
index a01e66596c..c5533328c6 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendPicsInfo.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/SendPicsInfo.java
@@ -4,6 +4,9 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -17,15 +20,18 @@
  *
  * @author Binary Wang
  */
-@XStreamAlias("SendPicsInfo")
 @Data
+@XStreamAlias("SendPicsInfo")
+@JacksonXmlRootElement(localName = "SendPicsInfo")
 public class SendPicsInfo implements Serializable {
   private static final long serialVersionUID = -4572837013294199227L;
 
   @XStreamAlias("PicList")
+  @JacksonXmlProperty(localName = "PicList")
   protected final List picList = new ArrayList<>();
 
   @XStreamAlias("Count")
+  @JacksonXmlProperty(localName = "Count")
   private Long count;
 
   @Override
@@ -33,13 +39,16 @@ public String toString() {
     return WxMpGsonBuilder.create().toJson(this);
   }
 
-  @XStreamAlias("item")
   @Data
+  @XStreamAlias("item")
+  @JacksonXmlRootElement(localName = "item")
   public static class Item implements Serializable {
     private static final long serialVersionUID = 7706235740094081194L;
 
     @XStreamAlias("PicMd5Sum")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "PicMd5Sum")
+    @JacksonXmlCData
     private String picMd5Sum;
 
     @Override
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java
index f85ee5c6a4..6a1d6c1697 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java
@@ -1,5 +1,6 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
@@ -49,13 +50,15 @@ public class WxMpXmlMessage implements Serializable {
   ///////////////////////
 
   @XStreamAlias("ToUserName")
-  @JacksonXmlProperty(localName = "ToUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ToUserName")
+  @JacksonXmlCData
   private String toUser;
 
   @XStreamAlias("FromUserName")
-  @JacksonXmlProperty(localName = "FromUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "FromUserName")
+  @JacksonXmlCData
   private String fromUser;
 
   @XStreamAlias("CreateTime")
@@ -63,13 +66,15 @@ public class WxMpXmlMessage implements Serializable {
   private Long createTime;
 
   @XStreamAlias("MsgType")
-  @JacksonXmlProperty(localName = "MsgType")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "MsgType")
+  @JacksonXmlCData
   private String msgType;
 
   @XStreamAlias("Content")
-  @JacksonXmlProperty(localName = "Content")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Content")
+  @JacksonXmlCData
   private String content;
 
   @XStreamAlias("MenuId")
@@ -81,23 +86,27 @@ public class WxMpXmlMessage implements Serializable {
   private Long msgId;
 
   @XStreamAlias("PicUrl")
-  @JacksonXmlProperty(localName = "PicUrl")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "PicUrl")
+  @JacksonXmlCData
   private String picUrl;
 
   @XStreamAlias("MediaId")
-  @JacksonXmlProperty(localName = "MediaId")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "MediaId")
+  @JacksonXmlCData
   private String mediaId;
 
   @XStreamAlias("Format")
-  @JacksonXmlProperty(localName = "Format")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Format")
+  @JacksonXmlCData
   private String format;
 
   @XStreamAlias("ThumbMediaId")
-  @JacksonXmlProperty(localName = "ThumbMediaId")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ThumbMediaId")
+  @JacksonXmlCData
   private String thumbMediaId;
 
   @XStreamAlias("Location_X")
@@ -113,38 +122,45 @@ public class WxMpXmlMessage implements Serializable {
   private Double scale;
 
   @XStreamAlias("Label")
-  @JacksonXmlProperty(localName = "Label")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Label")
+  @JacksonXmlCData
   private String label;
 
   @XStreamAlias("Title")
-  @JacksonXmlProperty(localName = "Title")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Title")
+  @JacksonXmlCData
   private String title;
 
   @XStreamAlias("Description")
-  @JacksonXmlProperty(localName = "Description")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Description")
+  @JacksonXmlCData
   private String description;
 
   @XStreamAlias("Url")
-  @JacksonXmlProperty(localName = "Url")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Url")
+  @JacksonXmlCData
   private String url;
 
   @XStreamAlias("Event")
-  @JacksonXmlProperty(localName = "Event")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Event")
+  @JacksonXmlCData
   private String event;
 
   @XStreamAlias("EventKey")
-  @JacksonXmlProperty(localName = "EventKey")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "EventKey")
+  @JacksonXmlCData
   private String eventKey;
 
   @XStreamAlias("Ticket")
-  @JacksonXmlProperty(localName = "Ticket")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Ticket")
+  @JacksonXmlCData
   private String ticket;
 
   @XStreamAlias("Latitude")
@@ -165,8 +181,9 @@ public class WxMpXmlMessage implements Serializable {
   private String recognition;
 
   @XStreamAlias("UnionId")
-  @JacksonXmlProperty(localName = "UnionId")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "UnionId")
+  @JacksonXmlCData
   private String unionId;
 
   ///////////////////////////////////////
@@ -176,8 +193,9 @@ public class WxMpXmlMessage implements Serializable {
    * 群发的结果.
    */
   @XStreamAlias("Status")
-  @JacksonXmlProperty(localName = "Status")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Status")
+  @JacksonXmlCData
   private String status;
   /**
    * group_id下粉丝数;或者openid_list中的粉丝数.
@@ -232,13 +250,15 @@ public class WxMpXmlMessage implements Serializable {
   ///////////////////////////////////////
 
   @XStreamAlias("CardId")
-  @JacksonXmlProperty(localName = "CardId")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "CardId")
+  @JacksonXmlCData
   private String cardId;
 
   @XStreamAlias("FriendUserName")
-  @JacksonXmlProperty(localName = "FriendUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "FriendUserName")
+  @JacksonXmlCData
   private String friendUserName;
 
   /**
@@ -249,13 +269,15 @@ public class WxMpXmlMessage implements Serializable {
   private Integer isGiveByFriend;
 
   @XStreamAlias("UserCardCode")
-  @JacksonXmlProperty(localName = "UserCardCode")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "UserCardCode")
+  @JacksonXmlCData
   private String userCardCode;
 
   @XStreamAlias("OldUserCardCode")
-  @JacksonXmlProperty(localName = "OldUserCardCode")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "OldUserCardCode")
+  @JacksonXmlCData
   private String oldUserCardCode;
 
   @XStreamAlias("OuterId")
@@ -570,8 +592,9 @@ public class WxMpXmlMessage implements Serializable {
    * 订单ID.
    */
   @XStreamAlias("OrderId")
-  @JacksonXmlProperty(localName = "OrderId")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "OrderId")
+  @JacksonXmlCData
   private String orderId;
 
   /**
@@ -585,16 +608,18 @@ public class WxMpXmlMessage implements Serializable {
    * 商品ID.
    */
   @XStreamAlias("ProductId")
-  @JacksonXmlProperty(localName = "ProductId")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ProductId")
+  @JacksonXmlCData
   private String productId;
 
   /**
    * 商品SKU信息.
    */
   @XStreamAlias("SkuInfo")
-  @JacksonXmlProperty(localName = "SkuInfo")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "SkuInfo")
+  @JacksonXmlCData
   private String skuInfo;
 
   ///////////////////////////////////////
@@ -605,8 +630,9 @@ public class WxMpXmlMessage implements Serializable {
    * 目前为"公众账号原始ID"
    */
   @XStreamAlias("DeviceType")
-  @JacksonXmlProperty(localName = "DeviceType")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "DeviceType")
+  @JacksonXmlCData
   private String deviceType;
 
   /**
@@ -614,8 +640,9 @@ public class WxMpXmlMessage implements Serializable {
    * 第三方提供
    */
   @XStreamAlias("DeviceID")
-  @JacksonXmlProperty(localName = "DeviceID")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "DeviceID")
+  @JacksonXmlCData
   private String deviceId;
 
   /**
@@ -623,16 +650,18 @@ public class WxMpXmlMessage implements Serializable {
    * 因此响应中该字段第三方需要原封不变的带回
    */
   @XStreamAlias("SessionID")
-  @JacksonXmlProperty(localName = "SessionID")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "SessionID")
+  @JacksonXmlCData
   private String sessionId;
 
   /**
    * 微信用户账号的OpenID.
    */
   @XStreamAlias("OpenID")
-  @JacksonXmlProperty(localName = "OpenID")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "OpenID")
+  @JacksonXmlCData
   private String openId;
 
   @XStreamAlias("HardWare")
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutDeviceMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutDeviceMessage.java
index b32935a106..d8b41bb249 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutDeviceMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutDeviceMessage.java
@@ -1,36 +1,48 @@
-package me.chanjar.weixin.mp.bean.message;
-
-import com.thoughtworks.xstream.annotations.XStreamAlias;
-import com.thoughtworks.xstream.annotations.XStreamConverter;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import me.chanjar.weixin.common.api.WxConsts;
-import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
-
-@XStreamAlias("xml")
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class WxMpXmlOutDeviceMessage extends WxMpXmlOutMessage {
-  private static final long serialVersionUID = -3093843149649157587L;
-
-  @XStreamAlias("DeviceType")
-  @XStreamConverter(value = XStreamCDataConverter.class)
-  private String deviceType;
-
-  @XStreamAlias("DeviceID")
-  @XStreamConverter(value = XStreamCDataConverter.class)
-  private String deviceId;
-
-  @XStreamAlias("Content")
-  @XStreamConverter(value = XStreamCDataConverter.class)
-  private String content;
-
-  @XStreamAlias("SessionID")
-  @XStreamConverter(value = XStreamCDataConverter.class)
-  private String sessionId;
-
-  public WxMpXmlOutDeviceMessage() {
-    this.msgType = WxConsts.XmlMsgType.DEVICE_TEXT;
-  }
-}
+package me.chanjar.weixin.mp.bean.message;
+
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
+import com.thoughtworks.xstream.annotations.XStreamAlias;
+import com.thoughtworks.xstream.annotations.XStreamConverter;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.common.api.WxConsts;
+import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
+
+@Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
+@EqualsAndHashCode(callSuper = true)
+public class WxMpXmlOutDeviceMessage extends WxMpXmlOutMessage {
+  private static final long serialVersionUID = -3093843149649157587L;
+
+  @XStreamAlias("DeviceType")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "DeviceType")
+  @JacksonXmlCData
+  private String deviceType;
+
+  @XStreamAlias("DeviceID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "DeviceID")
+  @JacksonXmlCData
+  private String deviceId;
+
+  @XStreamAlias("Content")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Content")
+  @JacksonXmlCData
+  private String content;
+
+  @XStreamAlias("SessionID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "SessionID")
+  @JacksonXmlCData
+  private String sessionId;
+
+  public WxMpXmlOutDeviceMessage() {
+    this.msgType = WxConsts.XmlMsgType.DEVICE_TEXT;
+  }
+}
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutImageMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutImageMessage.java
index dbb0ab90f9..d2328890e5 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutImageMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutImageMessage.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -7,14 +10,17 @@
 import me.chanjar.weixin.common.api.WxConsts;
 import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter;
 
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutImageMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = -2684778597067990723L;
 
   @XStreamAlias("Image")
   @XStreamConverter(value = XStreamMediaIdConverter.class)
+  @JacksonXmlProperty(localName = "Image")
+  @JacksonXmlCData
   private String mediaId;
 
   public WxMpXmlOutImageMessage() {
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMusicMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMusicMessage.java
index 1124f45857..240b979fac 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMusicMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMusicMessage.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -9,42 +12,55 @@
 
 import java.io.Serializable;
 
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutMusicMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = -4159937804975448945L;
 
   @XStreamAlias("Music")
+  @JacksonXmlProperty(localName = "Music")
   protected final Music music = new Music();
 
   public WxMpXmlOutMusicMessage() {
     this.msgType = WxConsts.XmlMsgType.MUSIC;
   }
 
-  @XStreamAlias("Music")
   @Data
+  @XStreamAlias("Music")
+  @JacksonXmlRootElement(localName = "Music")
   public static class Music implements Serializable {
     private static final long serialVersionUID = -5492592401691895334L;
 
     @XStreamAlias("Title")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Title")
+    @JacksonXmlCData
     private String title;
 
     @XStreamAlias("Description")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Description")
+    @JacksonXmlCData
     private String description;
 
     @XStreamAlias("ThumbMediaId")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "ThumbMediaId")
+    @JacksonXmlCData
     private String thumbMediaId;
 
     @XStreamAlias("MusicUrl")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "MusicUrl")
+    @JacksonXmlCData
     private String musicUrl;
 
     @XStreamAlias("HQMusicUrl")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "HQMusicUrl")
+    @JacksonXmlCData
     private String hqMusicUrl;
   }
 
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutNewsMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutNewsMessage.java
index 00f8d70c88..192b24a354 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutNewsMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutNewsMessage.java
@@ -4,6 +4,9 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -15,8 +18,9 @@
  * 被动回复的图文消息xml.
  * @author chanjarster
  */
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutNewsMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = -4604402850905714772L;
@@ -26,12 +30,14 @@ public class WxMpXmlOutNewsMessage extends WxMpXmlOutMessage {
    * 注意,如果图文数超过限制,则将只发限制内的条数
    */
   @XStreamAlias("Articles")
+  @JacksonXmlProperty(localName = "Articles")
   protected final List articles = new ArrayList<>();
   /**
    * 图文消息个数.
    * 当用户发送文本、图片、视频、图文、地理位置这五种消息时,开发者只能回复1条图文消息;其余场景最多可回复8条图文消息
    */
   @XStreamAlias("ArticleCount")
+  @JacksonXmlProperty(localName = "ArticleCount")
   protected int articleCount;
 
   public WxMpXmlOutNewsMessage() {
@@ -43,8 +49,9 @@ public void addArticle(Item item) {
     this.articleCount = this.articles.size();
   }
 
-  @XStreamAlias("item")
   @Data
+  @XStreamAlias("item")
+  @JacksonXmlRootElement(localName = "item")
   public static class Item implements Serializable {
     private static final long serialVersionUID = -4971456355028904754L;
 
@@ -53,6 +60,8 @@ public static class Item implements Serializable {
      */
     @XStreamAlias("Title")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Title")
+    @JacksonXmlCData
     private String title;
 
     /**
@@ -60,6 +69,8 @@ public static class Item implements Serializable {
      */
     @XStreamAlias("Description")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Description")
+    @JacksonXmlCData
     private String description;
 
     /**
@@ -68,6 +79,8 @@ public static class Item implements Serializable {
      */
     @XStreamAlias("PicUrl")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "PicUrl")
+    @JacksonXmlCData
     private String picUrl;
 
     /**
@@ -75,6 +88,8 @@ public static class Item implements Serializable {
      */
     @XStreamAlias("Url")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Url")
+    @JacksonXmlCData
     private String url;
 
   }
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTextMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTextMessage.java
index cbaa05abc3..b9c7747b0e 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTextMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTextMessage.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -7,14 +10,17 @@
 import me.chanjar.weixin.common.api.WxConsts;
 import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
 
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutTextMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = -3972786455288763361L;
 
   @XStreamAlias("Content")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Content")
+  @JacksonXmlCData
   private String content;
 
   public WxMpXmlOutTextMessage() {
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTransferKefuMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTransferKefuMessage.java
index 5b0857830e..1d70738616 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTransferKefuMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutTransferKefuMessage.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -9,26 +12,31 @@
 
 import java.io.Serializable;
 
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutTransferKefuMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = 1850903037285841322L;
 
   @XStreamAlias("TransInfo")
+  @JacksonXmlProperty(localName = "TransInfo")
   protected TransInfo transInfo;
 
   public WxMpXmlOutTransferKefuMessage() {
     this.msgType = WxConsts.KefuMsgType.TRANSFER_CUSTOMER_SERVICE;
   }
 
-  @XStreamAlias("TransInfo")
   @Data
+  @XStreamAlias("TransInfo")
+  @JacksonXmlRootElement(localName = "TransInfo")
   public static class TransInfo implements Serializable {
     private static final long serialVersionUID = -6317885617135706056L;
 
     @XStreamAlias("KfAccount")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "KfAccount")
+    @JacksonXmlCData
     private String kfAccount;
 
   }
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVideoMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVideoMessage.java
index 7f43a56809..101fa9605b 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVideoMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVideoMessage.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -9,34 +12,43 @@
 
 import java.io.Serializable;
 
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutVideoMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = 1745902309380113978L;
 
   @XStreamAlias("Video")
+  @JacksonXmlProperty(localName = "Video")
   protected final Video video = new Video();
 
   public WxMpXmlOutVideoMessage() {
     this.msgType = WxConsts.XmlMsgType.VIDEO;
   }
 
-  @XStreamAlias("Video")
   @Data
+  @XStreamAlias("Video")
+  @JacksonXmlRootElement(localName = "Video")
   public static class Video implements Serializable {
     private static final long serialVersionUID = -6445448977569651183L;
 
     @XStreamAlias("MediaId")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "MediaId")
+    @JacksonXmlCData
     private String mediaId;
 
     @XStreamAlias("Title")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Title")
+    @JacksonXmlCData
     private String title;
 
     @XStreamAlias("Description")
     @XStreamConverter(value = XStreamCDataConverter.class)
+    @JacksonXmlProperty(localName = "Description")
+    @JacksonXmlCData
     private String description;
 
   }
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVoiceMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVoiceMessage.java
index bd91b861ee..f8330efd70 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVoiceMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutVoiceMessage.java
@@ -1,5 +1,8 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -7,14 +10,17 @@
 import me.chanjar.weixin.common.api.WxConsts;
 import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter;
 
-@XStreamAlias("xml")
 @Data
+@XStreamAlias("xml")
+@JacksonXmlRootElement(localName = "xml")
 @EqualsAndHashCode(callSuper = true)
 public class WxMpXmlOutVoiceMessage extends WxMpXmlOutMessage {
   private static final long serialVersionUID = 240367390249860551L;
 
   @XStreamAlias("Voice")
   @XStreamConverter(value = XStreamMediaIdConverter.class)
+  @JacksonXmlProperty(localName = "Voice")
+  @JacksonXmlCData
   private String mediaId;
 
   public WxMpXmlOutVoiceMessage() {

From 3f8b6e1c7a76102f134e31361f4702bbdf352c4c Mon Sep 17 00:00:00 2001
From: Scruel Tao 
Date: Wed, 8 Dec 2021 14:51:06 +0800
Subject: [PATCH 064/622] =?UTF-8?q?:new:=20=E5=A2=9E=E5=8A=A0=20WxMpXmlOut?=
 =?UTF-8?q?Message=20=E8=BF=94=E5=9B=9E=E5=8C=85=E5=90=AB=E8=A2=AB?=
 =?UTF-8?q?=E5=8A=A0=E5=AF=86=E4=BF=A1=E6=81=AF=E5=AF=B9=E8=B1=A1=E7=9A=84?=
 =?UTF-8?q?=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../mp/bean/message/WxMpXmlOutMessage.java    | 51 +++++++++++++++++--
 1 file changed, 48 insertions(+), 3 deletions(-)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java
index 1d2b073f01..b4f1aa9897 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java
@@ -1,10 +1,12 @@
 package me.chanjar.weixin.mp.bean.message;
 
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
+import me.chanjar.weixin.common.util.crypto.WxCryptUtil;
 import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
 import me.chanjar.weixin.mp.config.WxMpConfigStorage;
 import me.chanjar.weixin.mp.builder.outxml.*;
@@ -20,13 +22,15 @@ public abstract class WxMpXmlOutMessage implements Serializable {
   private static final long serialVersionUID = -381382011286216263L;
 
   @XStreamAlias("ToUserName")
-  @JacksonXmlProperty(localName = "ToUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ToUserName")
+  @JacksonXmlCData
   protected String toUserName;
 
   @XStreamAlias("FromUserName")
-  @JacksonXmlProperty(localName = "FromUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "ToUserName")
+  @JacksonXmlCData
   protected String fromUserName;
 
   @XStreamAlias("CreateTime")
@@ -34,10 +38,36 @@ public abstract class WxMpXmlOutMessage implements Serializable {
   protected Long createTime;
 
   @XStreamAlias("MsgType")
-  @JacksonXmlProperty(localName = "MsgType")
   @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "MsgType")
+  @JacksonXmlCData
   protected String msgType;
 
+
+  @XStreamAlias("Encrypt")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Encrypt")
+  @JacksonXmlCData
+  private String encrypt;
+
+  @XStreamAlias("MsgSignature")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "MsgSignature")
+  @JacksonXmlCData
+  private String msgSignature;
+
+  @XStreamAlias("TimeStamp")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "TimeStamp")
+  @JacksonXmlCData
+  private String timeStamp;
+
+  @XStreamAlias("Nonce")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  @JacksonXmlProperty(localName = "Nonce")
+  @JacksonXmlCData
+  private String nonce;
+
   /**
    * 获得文本消息builder
    */
@@ -99,6 +129,21 @@ public String toXml() {
     return XStreamTransformer.toXml((Class) this.getClass(), this);
   }
 
+  /**
+   * 转换成加密的结果
+   */
+  public WxMpXmlOutMessage toEncrypted(WxMpConfigStorage wxMpConfigStorage) {
+    String plainXml = toXml();
+    WxMpCryptUtil pc = new WxMpCryptUtil(wxMpConfigStorage);
+    WxCryptUtil.EncryptContext context = pc.encryptContext(plainXml);
+    WxMpXmlOutMessage res = new WxMpXmlOutMessage() {};
+    res.setNonce(context.getNonce());
+    res.setEncrypt(context.getEncrypt());
+    res.setTimeStamp(context.getTimeStamp());
+    res.setMsgSignature(context.getSignature());
+    return res;
+  }
+
   /**
    * 转换成加密的xml格式
    */

From f351ecf2a1819bb45807447ed45ace47440e37fc Mon Sep 17 00:00:00 2001
From: Scruel Tao 
Date: Wed, 8 Dec 2021 18:24:41 +0800
Subject: [PATCH 065/622] :bug: fix annotation typo.

---
 .../me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java
index b4f1aa9897..a44aea740c 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlOutMessage.java
@@ -29,7 +29,7 @@ public abstract class WxMpXmlOutMessage implements Serializable {
 
   @XStreamAlias("FromUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
-  @JacksonXmlProperty(localName = "ToUserName")
+  @JacksonXmlProperty(localName = "FromUserName")
   @JacksonXmlCData
   protected String fromUserName;
 

From b8f328b90b492e7065235ce91f1ca875698ebf69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Forever=E6=9D=A8?= <453190450@qq.com>
Date: Wed, 8 Dec 2021 18:26:49 +0800
Subject: [PATCH 066/622] =?UTF-8?q?:art:=E3=80=90=E5=BE=AE=E4=BF=A1?=
 =?UTF-8?q?=E5=BC=80=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E4=BC=98=E5=8C=96?=
 =?UTF-8?q?=20Spring=20Boot=20Starter=20=E9=85=8D=E7=BD=AE=E9=80=BB?=
 =?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ...tractWxOpenConfigStorageConfiguration.java | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/open/config/storage/AbstractWxOpenConfigStorageConfiguration.java b/spring-boot-starters/wx-java-open-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/open/config/storage/AbstractWxOpenConfigStorageConfiguration.java
index 0f77633e4d..ee0443c9ae 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/open/config/storage/AbstractWxOpenConfigStorageConfiguration.java
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/open/config/storage/AbstractWxOpenConfigStorageConfiguration.java
@@ -9,19 +9,20 @@
 public abstract class AbstractWxOpenConfigStorageConfiguration {
 
   protected WxOpenInMemoryConfigStorage config(WxOpenInMemoryConfigStorage config, WxOpenProperties properties) {
-    WxOpenProperties.ConfigStorage configStorageProperties = properties.getConfigStorage();
+    WxOpenProperties.ConfigStorage storage = properties.getConfigStorage();
     config.setWxOpenInfo(properties.getAppId(), properties.getSecret(), properties.getToken(), properties.getAesKey());
-    config.setHttpProxyHost(configStorageProperties.getHttpProxyHost());
-    config.setHttpProxyUsername(configStorageProperties.getHttpProxyUsername());
-    config.setHttpProxyPassword(configStorageProperties.getHttpProxyPassword());
-    if (configStorageProperties.getHttpProxyPort() != null) {
-      config.setHttpProxyPort(configStorageProperties.getHttpProxyPort());
+    config.setHttpProxyHost(storage.getHttpProxyHost());
+    config.setHttpProxyUsername(storage.getHttpProxyUsername());
+    config.setHttpProxyPassword(storage.getHttpProxyPassword());
+    Integer httpProxyPort = storage.getHttpProxyPort();
+    if (httpProxyPort != null) {
+      config.setHttpProxyPort(httpProxyPort);
     }
-    int maxRetryTimes = configStorageProperties.getMaxRetryTimes();
-    if (configStorageProperties.getMaxRetryTimes() < 0) {
+    int maxRetryTimes = storage.getMaxRetryTimes();
+    if (maxRetryTimes < 0) {
       maxRetryTimes = 0;
     }
-    int retrySleepMillis = configStorageProperties.getRetrySleepMillis();
+    int retrySleepMillis = storage.getRetrySleepMillis();
     if (retrySleepMillis < 0) {
       retrySleepMillis = 1000;
     }

From fa2c990ab22e8ffdfbfca1a55a83eb489dcad73a Mon Sep 17 00:00:00 2001
From: xujijie 
Date: Fri, 10 Dec 2021 15:23:58 +0800
Subject: [PATCH 067/622] =?UTF-8?q?:art:=20#2434=20=E3=80=90=E5=85=AC?=
 =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E5=BE=AE=E4=BF=A1=E5=8F=91=E5=B8=83?=
 =?UTF-8?q?=E8=83=BD=E5=8A=9B=E6=8E=A5=E5=8F=A3=E6=96=87=E7=AB=A0=E4=BF=A1?=
 =?UTF-8?q?=E6=81=AF=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E5=A2=9E=E5=8A=A0?=
 =?UTF-8?q?thumb=5Furl?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/mp/bean/freepublish/WxMpFreePublishArticles.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java
index 20f915f195..3c378934e5 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java
@@ -64,6 +64,12 @@ public class WxMpFreePublishArticles implements Serializable {
   @SerializedName("only_fans_can_comment")
   private Integer onlyFansCanComment;
 
+  /**
+   * 图文消息的封面url
+   */
+  @SerializedName("thumb_url")
+  private String thumbUrl;
+
   /*
    * ===== 上面的参数,就是草稿箱的内容的字段,为了后续扩展,单独写一份====
    */

From 7bf9373b55fcc263d4da7176381c316785a7e608 Mon Sep 17 00:00:00 2001
From: Jc826 
Date: Fri, 10 Dec 2021 16:04:49 +0800
Subject: [PATCH 068/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
 =?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java
index e0dd4a915c..156795d4ca 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java
@@ -29,7 +29,7 @@ public String generateUrlLink(GenerateUrlLinkRequest request) throws WxErrorExce
     String linkField = "url_link";
     JsonObject jsonObject = GsonParser.parse(result);
     if (jsonObject.has(linkField)) {
-      return jsonObject.get(linkField).toString();
+      return jsonObject.get(linkField).getAsString();
     }
     throw new WxErrorException("无url_link");
   }
@@ -40,7 +40,7 @@ public String generateShortLink(GenerateShortLinkRequest request) throws WxError
     String linkField = "link";
     JsonObject jsonObject = GsonParser.parse(result);
     if (jsonObject.has(linkField)) {
-      return jsonObject.get(linkField).toString();
+      return jsonObject.get(linkField).getAsString();
     }
     throw new WxErrorException("无link");
   }

From fc856b66bb4ff594dd87c90c77fcb182035b9a58 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Fri, 10 Dec 2021 16:11:16 +0800
Subject: [PATCH 069/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E6=96=87?=
 =?UTF-8?q?=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wxpay/bean/request/WxPayUnifiedOrderV3Request.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayUnifiedOrderV3Request.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayUnifiedOrderV3Request.java
index c0bf417825..98b46e1154 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayUnifiedOrderV3Request.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayUnifiedOrderV3Request.java
@@ -80,7 +80,7 @@ public class WxPayUnifiedOrderV3Request implements Serializable {
   /**
    * 
    * 字段名:交易结束时间
-   * 变量名:out_trade_no
+   * 变量名:time_expire
    * 是否必填:是
    * 类型:string[1,64]
    * 描述:

From 23bc3bc763eba4e38bbce20a971eb974513e0615 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Fri, 10 Dec 2021 17:48:12 +0800
Subject: [PATCH 070/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
 =?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../config/impl/WxMaRedisBetterConfigImpl.java | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedisBetterConfigImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedisBetterConfigImpl.java
index 48c5e8e31f..4b38f1d642 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedisBetterConfigImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedisBetterConfigImpl.java
@@ -7,6 +7,8 @@
 
 /**
  * 基于redis存储的微信小程序配置类
+ *
+ * @author Mario Luo, 2020-04-18 23:08
  */
 public class WxMaRedisBetterConfigImpl extends WxMaDefaultConfigImpl {
   private static final String ACCESS_TOKEN_KEY_TPL = "%s:access_token:%s";
@@ -121,4 +123,20 @@ private void doExpireTicket(TicketType type) {
     redisOps.expire(this.getTicketRedisKey(type), 0, TimeUnit.SECONDS);
   }
 
+  @Override
+  public String toString() {
+    return "WxMaRedisBetterConfigImpl{" +
+      "appid='" + appid + '\'' +
+      ", token='" + token + '\'' +
+      ", originalId='" + originalId + '\'' +
+      ", accessTokenLock=" + accessTokenLock +
+      ", tmpDirFile=" + tmpDirFile +
+      ", jsapiTicketLock=" + jsapiTicketLock +
+      ", cardApiTicketLock=" + cardApiTicketLock +
+      ", redisOps=" + redisOps +
+      ", keyPrefix='" + keyPrefix + '\'' +
+      ", accessTokenKey='" + accessTokenKey + '\'' +
+      ", lockKey='" + lockKey + '\'' +
+      '}';
+  }
 }

From 6f35b985b1925d414c4c44f9afdf8ceed1e7189e Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 12 Dec 2021 23:52:19 +0800
Subject: [PATCH 071/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.2?=
 =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0c2b9a3cbd..9695198cf4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.2.1.B
+  4.2.2.B
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index cc9e3e15f9..1cabe75c01 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index 3d6103adb4..47f4c1d7c7 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index f315b912b7..b565682220 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index 5b019981b3..a0784c7819 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index 57a168eda5..e05b84550c 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index 7438d5648f..3c7daeea13 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index 27db96aac5..f6bd676779 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index 73c9e8e060..2245e84d69 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index 4b58976341..471dac4948 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index dcee208bc0..712659e69b 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index b28e10094e..c510836191 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index 2a75b3bee6..d12beb7b9c 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index 797c41918a..ea7954110e 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index 42f129cbbb..6767779950 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index 989213752c..c1ffd88fbf 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.1.B
+    4.2.2.B
   
 
   weixin-java-qidian

From c1d0b68d32bfaf815b89b69cff9f8e0858ccb90e Mon Sep 17 00:00:00 2001
From: xiaoguaiYJ <33287565+xiaoguaiYJ@users.noreply.github.com>
Date: Tue, 14 Dec 2021 12:41:48 +0800
Subject: [PATCH 072/622] =?UTF-8?q?:new:=20#2443=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0=E6=9C=8D?=
 =?UTF-8?q?=E5=8A=A1=E5=95=86=E5=BE=AE=E5=B7=A5=E5=8D=A1=E7=9B=B8=E5=85=B3?=
 =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=8E=A5=E5=8F=A3=E4=BB=A5=E5=8F=8A=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=89=B9=E9=87=8F=E8=BD=AC=E8=B4=A6=E5=88=B0=E9=9B=B6?=
 =?UTF-8?q?=E9=92=B1=E7=9A=84=E6=9C=8D=E5=8A=A1=E5=95=86=E6=8E=A5=E5=8F=A3?=
 =?UTF-8?q?=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: xiaoqiang 
---
 .../marketing/payroll/AuthRecordRequest.java  | 135 ++++++
 .../marketing/payroll/AuthRecordResult.java   | 213 ++++++++++
 .../payroll/AuthenticationsResult.java        | 182 ++++++++
 .../payroll/MerchantIncomeRecordsRequest.java |  83 ++++
 .../payroll/MerchantIncomeRecordsResult.java  | 286 +++++++++++++
 .../payroll/PartnerIncomeRecordsRequest.java  |  97 +++++
 .../payroll/PartnerIncomeRecordsResult.java   | 286 +++++++++++++
 .../marketing/payroll/PreOrderRequest.java    | 125 ++++++
 .../marketing/payroll/PreOrderResult.java     | 111 +++++
 .../payroll/PreOrderWithAuthRequest.java      | 169 ++++++++
 .../payroll/PreOrderWithAuthResult.java       | 110 +++++
 .../marketing/payroll/RelationsRequest.java   |  83 ++++
 .../marketing/payroll/RelationsResult.java    | 114 +++++
 .../payroll/SubFundFlowBillResult.java        | 100 +++++
 .../bean/marketing/payroll/TokensRequest.java | 128 ++++++
 .../bean/marketing/payroll/TokensResult.java  |  97 +++++
 .../transfer/BatchDetailsRequest.java         |  53 +++
 .../transfer/BatchDetailsResult.java          | 239 +++++++++++
 .../transfer/BatchNumberRequest.java          |  96 +++++
 .../marketing/transfer/BatchNumberResult.java | 393 ++++++++++++++++++
 .../marketing/transfer/BillReceiptResult.java | 143 +++++++
 .../marketing/transfer/DownloadRequest.java   |  65 +++
 .../transfer/ElectronicReceiptsRequest.java   |  70 ++++
 .../transfer/ElectronicReceiptsResult.java    | 137 ++++++
 .../transfer/MerchantBatchRequest.java        |  97 +++++
 .../transfer/PartnerTransferRequest.java      | 289 +++++++++++++
 .../transfer/PartnerTransferResult.java       |  67 +++
 .../transfer/ReceiptBillRequest.java          |  35 ++
 .../wxpay/service/PartnerTransferService.java | 201 +++++++++
 .../wxpay/service/PayrollService.java         | 103 +++++
 .../wxpay/service/WxPayService.java           |  14 +
 .../service/impl/BaseWxPayServiceImpl.java    |   9 +-
 .../impl/PartnerTransferServiceImpl.java      | 311 ++++++++++++++
 .../service/impl/PayrollServiceImpl.java      | 192 +++++++++
 .../impl/PartnerTransferServiceImplTest.java  | 139 +++++++
 .../service/impl/PayrollServiceImplTest.java  | 128 ++++++
 36 files changed, 5099 insertions(+), 1 deletion(-)
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java
 create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java
 create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java
new file mode 100644
index 0000000000..2de2168504
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java
@@ -0,0 +1,135 @@
+package com.github.binarywang.wxpay.bean.marketing.payroll;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 
+ * 查询核身记录
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_5.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class AuthRecordRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:应用ID
+   * 变量名:appid
+   * 是否必填:二选一
+   * 类型:string[1, 32]
+   * 描述:
+   *   是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。
+   *  当输入应用ID时,会校验其与服务商商户号的绑定关系。服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:子商户应用ID
+   * 变量名:sub_appid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  是特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。当输入子商户应用ID时,会校验其与特约商户号的绑定关系。 服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   * 示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:核身日期
+   * 变量名:authenticate_date
+   * 是否必填:是
+   * 类型:string[8, 8]
+   * 描述:
+   *  query核身日期,一次只能查询一天,最久可查询90天内的记录,格式为“YYYY-MM-DD”
+   *     示例值:2020-12-25
+   * 
+ */ + @SerializedName(value = "authenticate_date") + private String authenticateDate; + /** + *
+   * 字段名:核身状态
+   * 变量名:authenticate_state
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   * query核身状态,列表查询仅提供成功状态的核身记录查询,故此字段固定默认值即可
+   *     示例值:AUTHENTICATE_SUCCESS
+   * 
+ */ + @SerializedName(value = "authenticate_state") + private String authenticateState; + /** + *
+   * 字段名:本次查询偏移量
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   * query非负整数,表示该次请求资源的起始位置,从0开始计数。调用方选填,默认为0。offset为10,limit为10时,查询第10-19条数据
+   * 
+ */ + @SerializedName(value = "offset") + private Integer offset; + /** + *
+   * 字段名:本次请求最大查询条数
+   * 变量名:limit
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   * query非0非负的整数,该次请求可返回的最大资源条数,默认值为10,最大支持10条。
+   *     示例值:10
+   * 
+ */ + @SerializedName(value = "limit") + private Integer limit; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java new file mode 100644 index 0000000000..abf8397633 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java @@ -0,0 +1,213 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 查询核身记录
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_5.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class AuthRecordResult implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName(value = "data") + private List dataList; + + @Data + @NoArgsConstructor + public static class RecordData implements Serializable { + private static final long serialVersionUID = 1L; + /** + *
+     * 字段名:商户号
+     * 变量名:mchid
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  微信服务商商户的商户号,由微信支付生成并下发。
+     *  示例值:1111111
+     * 
+ */ + @SerializedName(value = "mchid") + private Integer mchid; + /** + *
+     * 字段名:子商户号
+     * 变量名:sub_mchid
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  微信服务商下特约商户的商户号,由微信支付生成并下发
+     *  示例值:111111
+     * 
+ */ + @SerializedName(value = "sub_mchid") + private Integer subMchid; + /** + *
+     * 字段名:用户标识
+     * 变量名:openid
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  用户在商户对应appid下的唯一标识
+     *  示例值:onqOjjmo8wmTOOtSKwXtGjg9Gb58
+     * 
+ */ + @SerializedName(value = "openid") + private Integer openid; + /** + *
+     * 字段名:核身渠道
+     * 变量名:authenticate_scene
+     * 是否必填:是
+     * 类型:string[1, 16]
+     * 描述:
+     *  核身渠道,发起核身时的来源渠道,如通过小程序,硬件设备等
+     *         FROM_MINI_APP:来自小程序方式核身
+     *         FROM_HARDWARE:来自硬件设备方式核身
+     *  示例值:FROM_HARDWARE
+     * 
+ */ + @SerializedName(value = "authenticate_scene") + private Integer authenticateScene; + /** + *
+     * 字段名:核身渠道标识
+     * 变量名:authenticate_source
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  核身渠道标识,用于定位渠道具体来源,如果是扫码打卡渠道标识就是具体的小程序appid,若是硬件设备,则是设备的序列号等
+     *  示例值:wdiooewl7587443649000
+     * 
+ */ + @SerializedName(value = "authenticate_source") + private Integer authenticateSource; + /** + *
+     * 字段名:项目名称
+     * 变量名:project_name
+     * 是否必填:是
+     * 类型:string[1, 12]
+     * 描述:
+     *  该项目的名称
+     *  示例值:某项目
+     * 
+ */ + @SerializedName(value = "project_name") + private Integer projectName; + /** + *
+     * 字段名:单位名称
+     * 变量名:employer_name
+     * 是否必填:是
+     * 类型:string[1, 12]
+     * 描述:
+     *    该用户所属的单位名称。
+     *     示例值:某单位名称
+     * 
+ */ + @SerializedName(value = "employer_name") + private String employerName; + /** + *
+     * 字段名:核身状态
+     * 变量名:authenticate_state
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *    核身状态
+     *     AUTHENTICATE_PROCESSING:核身中
+     *     AUTHENTICATE_SUCCESS:核身成功
+     *     AUTHENTICATE_FAILED:核身失败
+     *  示例值:AUTHENTICATE_PROCESSING
+     * 
+ */ + @SerializedName(value = "authenticate_state") + private String authenticateState; + + /** + *
+     * 字段名:核身时间
+     * 变量名:authenticate_time
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *   核身时间,遵循RFC3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
+     *   示例值:2015-05-20T13:29:35+08:00
+     * 
+ */ + @SerializedName(value = "authenticate_time") + private String authenticateTime; + /** + *
+     * 字段名:商家核身单号
+     * 变量名:authenticate_number
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
+     *  示例值:mcdhehfgisdhfjghed39384564i83
+     * 
+ */ + @SerializedName(value = "authenticate_number") + private String authenticateNumber; + } + + /** + *
+   * 字段名:总记录条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  经过条件筛选,查询到的记录总数
+   *  示例值:9
+   * 
+ */ + @SerializedName(value = "total_count") + private Integer totalCount; + + /** + *
+   * 字段名:记录起始位置
+   * 变量名:offset
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0
+   * 
+ */ + @SerializedName(value = "offset") + private Integer offset; + + /** + *
+   * 字段名:本次返回条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  经过条件筛选,本次查询到的记录条数
+   *  示例值:10
+   * 
+ */ + @SerializedName(value = "limit") + private Integer limit; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java new file mode 100644 index 0000000000..7557248691 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java @@ -0,0 +1,182 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 获取核身结果
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_4.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/{authenticate_number}
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class AuthenticationsResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  query微信服务商下特约商户的商户号,由微信支付生成并下发
+   *     示例值:1111111
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  query微信服务商下特约商户的商户号,由微信支付生成并下发
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + /** + *
+   * 字段名:用户标识
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   * 示例值:onqOjjmo8wmTOOtSKwXtGjg9Gb58
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:核身渠道
+   * 变量名:authenticate_scene
+   * 是否必填:是
+   * 类型:string[1, 16]
+   * 描述:
+   *   核身渠道,发起核身时的来源渠道,如通过小程序,硬件设备等
+   *     FROM_MINI_APP:来自小程序方式核身
+   *     FROM_HARDWARE:来自硬件设备方式核身
+   *  示例值:onqOjjmo8wmTOOtSKwXtGjg9Gb58
+   * 
+ */ + @SerializedName(value = "authenticate_scene") + private String authenticateScene; + + /** + *
+   * 字段名:核身渠道标识
+   * 变量名:authenticate_source
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *    核身渠道标识,用于定位渠道具体来源,如果是扫码打卡渠道标识就是具体的小程序appid,若是硬件设备,则是设备的序列号等
+   * 示例值:wdiooewl7587443649000
+   * 
+ */ + @SerializedName(value = "authenticate_source") + private String authenticateSource; + + /** + *
+   * 字段名:项目名称
+   * 变量名:project_name
+   * 是否必填:是
+   * 类型:string[1, 12]
+   * 描述:
+   *    该项目的名称
+   *  示例值:某项目
+   * 
+ */ + @SerializedName(value = "project_name") + private String projectName; + + /** + *
+   * 字段名:单位名称
+   * 变量名:employer_name
+   * 是否必填:是
+   * 类型:string[1, 12]
+   * 描述:
+   *    该用户所属的单位名称。
+   *  示例值:某单位名称
+   * 
+ */ + @SerializedName(value = "employer_name") + private String employerName; + + /** + *
+   * 字段名:核身状态
+   * 变量名:authenticate_state
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *    核身状态
+   *     AUTHENTICATE_PROCESSING:核身中
+   *     AUTHENTICATE_SUCCESS:核身成功
+   *     AUTHENTICATE_FAILED:核身失败
+   *  示例值:AUTHENTICATE_PROCESSING
+   * 
+ */ + @SerializedName(value = "authenticate_state") + private String authenticateState; + /** + *
+   * 字段名:核身时间
+   * 变量名:authenticate_time
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *   核身时间,遵循RFC3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
+   *   示例值:2015-05-20T13:29:35+08:00
+   * 
+ */ + @SerializedName(value = "authenticate_time") + private String authenticateTime; + /** + *
+   * 字段名:商家核身单号
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
+   *  示例值:mcdhehfgisdhfjghed39384564i83
+   * 
+ */ + @SerializedName(value = "authenticate_number") + private String authenticateNumber; + + /** + *
+   * 字段名:核身失败原因
+   * 变量名:authenticate_failed_reason
+   * 是否必填:否
+   * 类型:string[1, 128]
+   * 描述:
+   *  结果为核身失败时的原因描述,仅在失败记录返回
+   *  示例值:人脸验证未通过
+   * 
+ */ + @SerializedName(value = "authenticate_failed_reason") + private String authenticateFailedReason; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java new file mode 100644 index 0000000000..04fe709649 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java @@ -0,0 +1,83 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 服务商银行来账查询
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_28.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/merchantfund/merchant/income-records
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/7 + */ +@Data +@NoArgsConstructor +public class MerchantIncomeRecordsRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:账户类型
+   * 变量名:account_type
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * query需查询银行来账记录商户的账户类型。
+   *     枚举值:
+   *     BASIC:基本账户
+   *     OPERATION:运营账户
+   *     FEES:手续费账户
+   * 示例值:BASIC
+   * 
+ */ + @SerializedName(value = "account_type") + private String accountType; + /** + *
+   * 字段名:日期
+   * 变量名:date
+   * 是否必填:是
+   * 类型:string[10, 10]
+   * 描述:
+   * query查询的日期,一次只能查询一天,最久可查询90天内的记录,格式为“YYYY-MM-DD”。
+   * 示例值:2019-06-11
+   * 
+ */ + @SerializedName(value = "date") + private String date; + /** + *
+   * 字段名:本次查询偏移量
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   * query非负整数,表示该次请求资源的起始位置,从0开始计数。调用方选填,默认为0。offset为20,limit为100时,查询第20-119条数据。
+   * 示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private int offset; + /** + *
+   * 字段名:本次请求最大查询条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * query非0非负的整数,该次请求可返回的最大资源条数,最大支持100条。
+   * 示例值:100
+   * 
+ */ + @SerializedName(value = "limit") + private int limit; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java new file mode 100644 index 0000000000..a587d27f0c --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java @@ -0,0 +1,286 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 服务商银行来账查询
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_28.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/merchantfund/merchant/income-records
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/7 + */ +@Data +@NoArgsConstructor +public class MerchantIncomeRecordsResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:查询数据总条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  经过条件筛选,查询到的银行来账记录总数 。
+   * 示例值:20
+   * 
+ */ + @SerializedName(value = "total_count") + private int totalCount; + + /** + *
+   * 字段名:本次查询偏移量
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   * 该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0。
+   * 示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private int offset; + /** + *
+   * 字段名:本次请求最大查询条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * 经过条件筛选,本次查询到的银行来账记录条数。
+   * 示例值:100
+   * 
+ */ + @SerializedName(value = "limit") + private int limit; + /** + *
+   * 字段名:银行来账记录列表
+   * 变量名:data
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  单次查询返回的银行来账记录列表结果,如果查询结果为空时,则为空数组。
+   * 
+ */ + @SerializedName(value = "data") + private List incomeRecordDataList; + + + @Data + @NoArgsConstructor + public static class IncomeRecordData implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+     * 字段名:商户号
+     * 变量名:sub_mchid
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  需查询银行来账记录列表的商户号
+     * 示例值:2480253391
+     * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+     * 字段名:账户类型
+     * 变量名:account_type
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  需查询银行来账记录商户的账户类型。
+     *     枚举值:
+     *     BASIC:基本账户
+     *     OPERATION:运营账户
+     *     FEES:手续费账户
+     * 示例值:BASIC
+     * 
+ */ + @SerializedName(value = "account_type") + private String accountType; + /** + *
+     * 字段名:银行来账类型
+     * 变量名:income_record_type
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  银行来账类型,后续会有所扩展。
+     *     枚举值:
+     *     OFFLINERECHARGE:转账充值
+     *     ENTERPRISEDIRECTREVENUE:企业直收
+     * 示例值:OFFLINERECHARGE
+     * 
+ */ + @SerializedName(value = "income_record_type") + private String incomeRecordType; + /** + *
+     * 字段名:银行来账微信单号
+     * 变量名:income_record_id
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  银行来账的微信单号
+     * 示例值:4200000811202011056138519459
+     * 
+ */ + @SerializedName(value = "income_record_id") + private String incomeRecordId; + /** + *
+     * 字段名:银行来账金额
+     * 变量名:amount
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  银行来账金额,单位为分,只能为整数。
+     * 示例值:2734921
+     * 
+ */ + @SerializedName(value = "amount") + private String amount; + /** + *
+     * 字段名:银行来账完成时间
+     * 变量名:success_time
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  银行来账完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。
+     * 示例值:2017-12-08T00:08:00.00+08:00
+     * 
+ */ + @SerializedName(value = "success_time") + private String successTime; + /** + *
+     * 字段名:付款方银行名称
+     * 变量名:bank_name
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  银行来账的付款方银行名称,由于部分银行的数据获取限制,该字段有可能为空。
+     * 示例值:招商银行
+     * 
+ */ + @SerializedName(value = "bank_name") + private String bankName; + /** + *
+     * 字段名:付款方银行户名
+     * 变量名:bank_account_name
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  银行来账的付款方银行账户信息,户名为全称、明文,由于部分银行的数据获取限制,该字段有可能为空。
+     * 示例值:北京三快科技有限公司
+     * 
+ */ + @SerializedName(value = "bank_account_name") + private String bankAccountName; + /** + *
+     * 字段名:付款方银行卡号
+     * 变量名:bank_account_number
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  四位掩码+付款方银行卡尾号后四位。
+     * 示例值:****6473
+     * 
+ */ + @SerializedName(value = "bank_account_number") + private String bankAccountNumber; + /** + *
+     * 字段名:银行备注
+     * 变量名:recharge_remark
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  随银行转账时,商户填入的附言、摘要等信息,目前支持的银行及填写指引请查看各银行对账详情
+     * 示例值:单号:202106010001
+     * 
+ */ + @SerializedName(value = "recharge_remark") + private String rechargeRemark; + } + + /** + *
+   * 字段名:分页链接
+   * 变量名:links
+   * 是否必填:是
+   * 类型:object
+   * 描述:
+   *  返回前后页和当前页面的访问链接
+   * 
+ */ + @SerializedName(value = "links") + private List linksDataList; + + + @Data + @NoArgsConstructor + public static class LinksData implements Serializable { + private static final long serialVersionUID = 109053454401492L; + + /** + *
+     * 字段名:下一页链接
+     * 变量名:next
+     * 是否必填:是
+     * 类型:string[1, 2048]
+     * 描述:
+     *  使用同样的limit进行下一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果已经到最后时,为空 。
+     * 示例值:/v3/merchantfund/partner/income-records?offset=10&limit=5
+     * 
+ */ + @SerializedName(value = "next") + private String next; + /** + *
+     * 字段名:上一页链接
+     * 变量名:prev
+     * 是否必填:是
+     * 类型:string[1, 2048]
+     * 描述:
+     *  使用同样的limit进行上一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果是第一页,为空。
+     * 示例值:/v3/merchantfund/partner/income-records?offset=0&limit=5
+     * 
+ */ + @SerializedName(value = "prev") + private String prev; + /** + *
+     * 字段名:当前链接
+     * 变量名:self
+     * 是否必填:是
+     * 类型:string[1, 2048]
+     * 描述:
+     *  当前的相对请求链接,使用方需要自行根据当前域名进行拼接。
+     * 示例值:/v3/merchantfund/partner/income-records?offset=5&limit=5
+     * 
+ */ + @SerializedName(value = "self") + private String self; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java new file mode 100644 index 0000000000..f266bdb17b --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java @@ -0,0 +1,97 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 特约商户银行来账查询
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_27.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/merchantfund/partner/income-records
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/7 + */ +@Data +@NoArgsConstructor +public class PartnerIncomeRecordsRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:特约商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  query需查询银行来账记录列表的特约商户的商户号,该商户号须为服务商的特约商户号。
+   *  示例值:2480253391
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:账户类型
+   * 变量名:account_type
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * query需查询银行来账记录商户的账户类型。
+   *     枚举值:
+   *     BASIC:基本账户
+   *     OPERATION:运营账户
+   *     FEES:手续费账户
+   * 示例值:BASIC
+   * 
+ */ + @SerializedName(value = "account_type") + private String accountType; + /** + *
+   * 字段名:日期
+   * 变量名:date
+   * 是否必填:是
+   * 类型:string[10, 10]
+   * 描述:
+   * query查询的日期,一次只能查询一天,最久可查询90天内的记录,格式为“YYYY-MM-DD”。
+   * 示例值:2019-06-11
+   * 
+ */ + @SerializedName(value = "date") + private String date; + /** + *
+   * 字段名:本次查询偏移量
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   * query非负整数,表示该次请求资源的起始位置,从0开始计数。调用方选填,默认为0。offset为20,limit为100时,查询第20-119条数据。
+   * 示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private int offset; + /** + *
+   * 字段名:本次请求最大查询条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * query非0非负的整数,该次请求可返回的最大资源条数,最大支持100条。
+   * 示例值:100
+   * 
+ */ + @SerializedName(value = "limit") + private int limit; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java new file mode 100644 index 0000000000..90d7d6cc15 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java @@ -0,0 +1,286 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 特约商户银行来账查询
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_27.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/merchantfund/partner/income-records
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/7 + */ +@Data +@NoArgsConstructor +public class PartnerIncomeRecordsResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:查询数据总条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  经过条件筛选,查询到的银行来账记录总数 。
+   * 示例值:20
+   * 
+ */ + @SerializedName(value = "total_count") + private int totalCount; + + /** + *
+   * 字段名:本次查询偏移量
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   * 该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0。
+   * 示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private int offset; + /** + *
+   * 字段名:本次请求最大查询条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * 经过条件筛选,本次查询到的银行来账记录条数。
+   * 示例值:100
+   * 
+ */ + @SerializedName(value = "limit") + private int limit; + /** + *
+   * 字段名:银行来账记录列表
+   * 变量名:data
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  单次查询返回的银行来账记录列表结果,如果查询结果为空时,则为空数组。
+   * 
+ */ + @SerializedName(value = "data") + private List incomeRecordDataList; + + + @Data + @NoArgsConstructor + public static class IncomeRecordData implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+     * 字段名:特约商户号
+     * 变量名:sub_mchid
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  需查询银行来账记录列表的特约商户的商户号,该商户号须为服务商的特约商户号。
+     * 示例值:2480253391
+     * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+     * 字段名:账户类型
+     * 变量名:account_type
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  需查询银行来账记录商户的账户类型。
+     *     枚举值:
+     *     BASIC:基本账户
+     *     OPERATION:运营账户
+     *     FEES:手续费账户
+     * 示例值:BASIC
+     * 
+ */ + @SerializedName(value = "account_type") + private String accountType; + /** + *
+     * 字段名:银行来账类型
+     * 变量名:income_record_type
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  银行来账类型,后续会有所扩展。
+     *     枚举值:
+     *     OFFLINERECHARGE:转账充值
+     *     ENTERPRISEDIRECTREVENUE:企业直收
+     * 示例值:OFFLINERECHARGE
+     * 
+ */ + @SerializedName(value = "income_record_type") + private String incomeRecordType; + /** + *
+     * 字段名:银行来账微信单号
+     * 变量名:income_record_id
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  银行来账的微信单号
+     * 示例值:4200000811202011056138519459
+     * 
+ */ + @SerializedName(value = "income_record_id") + private String incomeRecordId; + /** + *
+     * 字段名:银行来账金额
+     * 变量名:amount
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  银行来账金额,单位为分,只能为整数。
+     * 示例值:2734921
+     * 
+ */ + @SerializedName(value = "amount") + private String amount; + /** + *
+     * 字段名:银行来账完成时间
+     * 变量名:success_time
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  银行来账完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。
+     * 示例值:2017-12-08T00:08:00.00+08:00
+     * 
+ */ + @SerializedName(value = "success_time") + private String successTime; + /** + *
+     * 字段名:付款方银行名称
+     * 变量名:bank_name
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  银行来账的付款方银行名称,由于部分银行的数据获取限制,该字段有可能为空。
+     * 示例值:招商银行
+     * 
+ */ + @SerializedName(value = "bank_name") + private String bankName; + /** + *
+     * 字段名:付款方银行户名
+     * 变量名:bank_account_name
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  银行来账的付款方银行账户信息,户名为全称、明文,由于部分银行的数据获取限制,该字段有可能为空。
+     * 示例值:北京三快科技有限公司
+     * 
+ */ + @SerializedName(value = "bank_account_name") + private String bankAccountName; + /** + *
+     * 字段名:付款方银行卡号
+     * 变量名:bank_account_number
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  四位掩码+付款方银行卡尾号后四位。
+     * 示例值:****6473
+     * 
+ */ + @SerializedName(value = "bank_account_number") + private String bankAccountNumber; + /** + *
+     * 字段名:银行备注
+     * 变量名:recharge_remark
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  随银行转账时,商户填入的附言、摘要等信息,目前支持的银行及填写指引请查看各银行对账详情
+     * 示例值:单号:202106010001
+     * 
+ */ + @SerializedName(value = "recharge_remark") + private String rechargeRemark; + } + + /** + *
+   * 字段名:分页链接
+   * 变量名:links
+   * 是否必填:是
+   * 类型:object
+   * 描述:
+   *  返回前后页和当前页面的访问链接
+   * 
+ */ + @SerializedName(value = "links") + private List linksDataList; + + + @Data + @NoArgsConstructor + public static class LinksData implements Serializable { + private static final long serialVersionUID = 109053454401492L; + + /** + *
+     * 字段名:下一页链接
+     * 变量名:next
+     * 是否必填:是
+     * 类型:string[1, 2048]
+     * 描述:
+     *  使用同样的limit进行下一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果已经到最后时,为空 。
+     * 示例值:/v3/merchantfund/partner/income-records?offset=10&limit=5
+     * 
+ */ + @SerializedName(value = "next") + private String next; + /** + *
+     * 字段名:上一页链接
+     * 变量名:prev
+     * 是否必填:是
+     * 类型:string[1, 2048]
+     * 描述:
+     *  使用同样的limit进行上一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果是第一页,为空。
+     * 示例值:/v3/merchantfund/partner/income-records?offset=0&limit=5
+     * 
+ */ + @SerializedName(value = "prev") + private String prev; + /** + *
+     * 字段名:当前链接
+     * 变量名:self
+     * 是否必填:是
+     * 类型:string[1, 2048]
+     * 描述:
+     *  当前的相对请求链接,使用方需要自行根据当前域名进行拼接。
+     * 示例值:/v3/merchantfund/partner/income-records?offset=5&limit=5
+     * 
+ */ + @SerializedName(value = "self") + private String self; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java new file mode 100644 index 0000000000..80d0ed9f4d --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java @@ -0,0 +1,125 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 微工卡核身预下单
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_3.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order
+ * 请求方式:POST
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class PreOrderRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:应用ID
+   * 变量名:appid
+   * 是否必填:二选一
+   * 类型:string[1, 32]
+   * 描述:
+   *   是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。
+   *  当输入应用ID时,会校验其与服务商商户号的绑定关系。服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   * 示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:子商户应用ID
+   * 变量名:sub_appid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  是特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。当输入子商户应用ID时,会校验其与特约商户号的绑定关系。 服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; + + /** + *
+   * 字段名:商家核身单号
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  body商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
+   *  示例值:mcdhehfgisdhfjghed39384564i83
+   * 
+ */ + @SerializedName(value = "authenticate_number") + private String authenticateNumber; + + /** + *
+   * 字段名:项目名称
+   * 变量名:project_name
+   * 是否必填:是
+   * 类型:string[1, 12]
+   * 描述:
+   * body该项目的名称
+   * 示例值:某项目
+   * 
+ */ + @SerializedName(value = "project_name") + private String projectName; + /** + *
+   * 字段名:单位名称
+   * 变量名:employer_name
+   * 是否必填:是
+   * 类型:string[1, 12]
+   * 描述:
+   * body该用户所属的单位名称
+   * 示例值:某单位名称
+   * 
+ */ + @SerializedName(value = "employer_name") + private String employerName; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java new file mode 100644 index 0000000000..dbe909ac69 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java @@ -0,0 +1,111 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 微工卡核身预下单
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_3.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order
+ * 请求方式:POST
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class PreOrderResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:商家核身单号
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
+   *  示例值:mcdhehfgisdhfjghed39384564i83
+   * 
+ */ + @SerializedName(value = "authenticate_number") + private String authenticateNumber; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:服务商商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商商户的商户号,由微信支付生成并下发。
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:授权token
+   * 变量名:token
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  授权token
+   *  示例值:abcdefghijklmn
+   * 
+ */ + @SerializedName(value = "token") + private String token; + + /** + *
+   * 字段名:token有效时间
+   * 变量名:expires_in
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * token有效时间,单位秒
+   * 示例值:1800
+   * 
+ */ + @SerializedName(value = "expires_in") + private Integer expiresIn; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java new file mode 100644 index 0000000000..5f4e8ae57b --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java @@ -0,0 +1,169 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 微工卡核身预下单(流程中完成授权)
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_1.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order-with-auth
+ * 请求方式:POST
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class PreOrderWithAuthRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:应用ID
+   * 变量名:appid
+   * 是否必填:二选一
+   * 类型:string[1, 32]
+   * 描述:
+   *   是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。
+   *  当输入应用ID时,会校验其与服务商商户号的绑定关系。服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   * 示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:子商户应用ID
+   * 变量名:sub_appid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  是特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。当输入子商户应用ID时,会校验其与特约商户号的绑定关系。 服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; + + /** + *
+   * 字段名:商家核身单号
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
+   *  示例值:mcdhehfgisdhfjghed39384564i83
+   * 
+ */ + @SerializedName(value = "authenticate_number") + private String authenticateNumber; + + /** + *
+   * 字段名:项目名称
+   * 变量名:project_name
+   * 是否必填:是
+   * 类型:string[1, 12]
+   * 描述:
+   *  该项目的名称
+   *  示例值:某项目
+   * 
+ */ + @SerializedName(value = "project_name") + private String projectName; + /** + *
+   * 字段名:用工单位名称
+   * 变量名:employer_name
+   * 是否必填:是
+   * 类型:string[1, 12]
+   * 描述:
+   *    该用户所属的单位名称。
+   *     示例值:某单位名称
+   * 
+ */ + @SerializedName(value = "employer_name") + private String employerName; + + /** + *
+   * 字段名:用户实名
+   * 变量名:user_name
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  用户证件号,该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+   * 示例值:7FzH5XksJG3a8HLLsaaUV6K54y1OnPMY5
+   * 
+ */ + @SerializedName(value = "user_name") + private String userName; + + /** + *
+   * 字段名:用户证件号
+   * 变量名:id_card_number
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  用户证件号,该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+   * 示例值:7FzH5XksJG3a8HLLsaaUV6K54y1OnPMY5
+   * 
+ */ + @SerializedName(value = "id_card_number") + private String idCardNumber; + + /** + *
+   * 字段名:用工类型
+   * 变量名:employment_type
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值:
+   * LONG_TERM_EMPLOYMENT:长期用工,
+   * SHORT_TERM_EMPLOYMENT: 短期用工,
+   * COOPERATION_EMPLOYMENT:合作关系
+   * 示例值:LONG_TERM_EMPLOYMENT
+   * 
+ */ + @SerializedName(value = "employment_type") + private String employmentType; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java new file mode 100644 index 0000000000..235ac056d5 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java @@ -0,0 +1,110 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 微工卡核身预下单(流程中完成授权)
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_1.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order-with-auth
+ * 请求方式:POST
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class PreOrderWithAuthResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:商家核身单号
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
+   *  示例值:mcdhehfgisdhfjghed39384564i83
+   * 
+ */ + @SerializedName(value = "authenticate_number") + private String authenticateNumber; + + /** + *
+   * 字段名:用户标识
+   * 变量名:authenticate_number
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   * 示例值:onqOjjmo8wmTOOtSKwXtGjg9Gb58
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商商户的商户号,由微信支付生成并下发
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "mchid") + private Integer mchid; + + /** + *
+   * 字段名:特约商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   *  示例值:1900000109
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:授权token
+   * 变量名:token
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  授权token
+   *  示例值:abcdefghijklmn
+   * 
+ */ + @SerializedName(value = "token") + private String token; + + /** + *
+   * 字段名:token有效时间
+   * 变量名:expires_in
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * token有效时间,单位秒
+   * 示例值:300
+   * 
+ */ + @SerializedName(value = "expires_in") + private Integer expiresIn; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java new file mode 100644 index 0000000000..e2d77abb2f --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java @@ -0,0 +1,83 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 查询微工卡授权关系
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_2.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/relations/{openid}
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class RelationsRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   * 示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:应用ID
+   * 变量名:appid
+   * 是否必填:二选一
+   * 类型:string[1, 32]
+   * 描述:
+   *   是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。
+   *  当输入应用ID时,会校验其与服务商商户号的绑定关系。服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:子商户应用ID
+   * 变量名:sub_appid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  是特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。当输入子商户应用ID时,会校验其与特约商户号的绑定关系。 服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java new file mode 100644 index 0000000000..70225850c7 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java @@ -0,0 +1,114 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 查询微工卡授权关系
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_2.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/relations/{openid}
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class RelationsResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:服务商商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商商户的商户号,由微信支付生成并下发。
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:授权状态
+   * 变量名:authorize_state
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  授权状态:
+   *      UNAUTHORIZED:未授权
+   *      AUTHORIZED:已授权
+   *      DEAUTHORIZED:已取消授权
+   * 示例值:UNAUTHORIZED
+   * 
+ */ + @SerializedName(value = "authorize_state") + private String authorizeState; + + /** + *
+   * 字段名:授权时间
+   * 变量名:authorize_time
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  授权时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
+   *  示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "authorize_time") + private String authorizeTime; + + /** + *
+   * 字段名:取消授权时间
+   * 变量名:deauthorize_time
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  取消授权时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
+   *  示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "deauthorize_time") + private String deauthorizeTime; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java new file mode 100644 index 0000000000..f1c9d3abdc --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java @@ -0,0 +1,100 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 申请单个子商户资金账单
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_25.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/bill/sub-merchant-fundflowbill
+ * 请求方式:GET
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/7 + */ +@Data +@NoArgsConstructor +public class SubFundFlowBillResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  query下载指定子商户的账单。
+   *  示例值:19000000001
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:账单日期
+   * 变量名:bill_date
+   * 是否必填:是
+   * 类型:string[10, 10]
+   * 描述:
+   *  query格式YYYY-MM-DD
+   *  示例值:2019-06-11
+   * 
+ */ + @SerializedName(value = "bill_date") + private String billDate; + + /** + *
+   * 字段名:资金账户类型
+   * 变量名:account_type
+   * 是否必填:是
+   * 类型:string[1, 16]
+   * 描述:
+   * query枚举值:
+   *     BASIC:基本账户
+   *     OPERATION:运营账户
+   *     FEES:手续费账户
+   * 示例值:BASIC
+   * 
+ */ + @SerializedName(value = "account_type") + private String accountType; + /** + *
+   * 字段名:加密算法
+   * 变量名:algorithm
+   * 是否必填:是
+   * 类型:string[1, 31]
+   * 描述:
+   * query枚举值:
+   *     AEAD_AES_256_GCM:AEAD_AES_256_GCM加密算法
+   * 示例值:AEAD_AES_256_GCM
+   * 
+ */ + @SerializedName(value = "algorithm") + private String algorithm; + /** + *
+   * 字段名:压缩格式
+   * 变量名:tar_type
+   * 是否必填:否
+   * 类型:string[1, 8]
+   * 描述:
+   * query不填则以不压缩的方式返回数据流
+   *     枚举值:
+   *     GZIP:返回格式为.gzip的压缩包账单
+   * 示例值:GZIP
+   * 
+ */ + @SerializedName(value = "tar_type") + private String tarType; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java new file mode 100644 index 0000000000..f760a10f95 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java @@ -0,0 +1,128 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 生成授权token
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_1.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/tokens
+ * 请求方式:POST
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class TokensRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:应用ID
+   * 变量名:appid
+   * 是否必填:二选一
+   * 类型:string[1, 32]
+   * 描述:
+   *   是服务商在微信申请公众号/小程序或移动应用成功后分配的账号ID(与服务商主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。
+   *  当输入应用ID时,会校验其与服务商商户号的绑定关系。服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:子商户应用ID
+   * 变量名:sub_appid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  是特约商户在微信申请公众号/小程序或移动应用成功后分配的账号ID(与特约商户主体一致),登录平台为mp.weixin.qq.com或open.weixin.qq.com。当输入子商户应用ID时,会校验其与特约商户号的绑定关系。 服务商应用ID和与子商户应用ID至少输入一个,且必须要有拉起微工卡时使用的APPID。
+   *  示例值:wxa1111111
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   * 示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:用户实名
+   * 变量名:user_name
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  用户证件号,该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+   * 示例值:7FzH5XksJG3a8HLLsaaUV6K54y1OnPMY5
+   * 
+ */ + @SerializedName(value = "user_name") + private String userName; + + /** + *
+   * 字段名:用户证件号
+   * 变量名:id_card_number
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  用户证件号,该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+   * 示例值:7FzH5XksJG3a8HLLsaaUV6K54y1OnPMY5
+   * 
+ */ + @SerializedName(value = "id_card_number") + private String idCardNumber; + + /** + *
+   * 字段名:用工类型
+   * 变量名:employment_type
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  微工卡服务仅支持用于与商户有用工关系的用户,需明确用工类型;参考值:
+   * LONG_TERM_EMPLOYMENT:长期用工,
+   * SHORT_TERM_EMPLOYMENT: 短期用工,
+   * COOPERATION_EMPLOYMENT:合作关系
+   * 示例值:LONG_TERM_EMPLOYMENT
+   * 
+ */ + @SerializedName(value = "employment_type") + private String employmentType; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java new file mode 100644 index 0000000000..c49286436d --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java @@ -0,0 +1,97 @@ +package com.github.binarywang.wxpay.bean.marketing.payroll; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 生成授权token
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_1_1.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/tokens
+ * 请求方式:POST
+ * 
+ * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Data +@NoArgsConstructor +public class TokensResult implements Serializable { + private static final long serialVersionUID = 1L; + + /** + *
+   * 字段名:用户标识
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   *  用户在商户对应appid下的唯一标识
+   *  示例值:9x111111
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+   * 字段名:服务商商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商商户的商户号,由微信支付生成并下发。
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:子商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信服务商下特约商户的商户号,由微信支付生成并下发
+   *  示例值:1111111
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:授权token
+   * 变量名:token
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   *  授权token
+   *  示例值:abcdefghijklmn
+   * 
+ */ + @SerializedName(value = "token") + private String token; + + /** + *
+   * 字段名:token有效时间
+   * 变量名:expires_in
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * token有效时间,单位秒
+   * 示例值:1800
+   * 
+ */ + @SerializedName(value = "expires_in") + private Integer expiresIn; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java new file mode 100644 index 0000000000..aeb778f690 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java @@ -0,0 +1,53 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 微信支付明细单号查询明细单API
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_3.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}
+ * 请求方式:GET
+ * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class BatchDetailsRequest implements Serializable { + public static final float serialVersionUID = 1L; + /** + *
+   * 字段名:微信支付批次单号
+   * 变量名:need_query_detail
+   * 是否必填:是
+   * 类型:string[32, 64]
+   * 描述:
+   *  path微信支付批次单号,微信商家转账系统返回的唯一标识
+   *  示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName(value = "batch_id") + private String batchId; + /** + *
+   * 字段名:微信明细单号
+   * 变量名:need_query_detail
+   * 是否必填:是
+   * 类型:string[32, 64]
+   * 描述:
+   *  path微信支付系统内部区分转账批次单下不同转账明细单的唯一标识
+   *  示例值:1040000071100999991182020050700019500100
+   * 
+ */ + @SerializedName(value = "detail_id") + private String detailId; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java new file mode 100644 index 0000000000..0ca10dcb40 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java @@ -0,0 +1,239 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.Date; + +/** + *
+ * 微信支付明细单号查询明细单API
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_3.shtml
+ *
+ * 适用对象:服务商
+ * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}
+ * 请求方式:GET
+ * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class BatchDetailsResult implements Serializable { + public static final float serialVersionUID = 1L; + + @Override + public String toString() { + return WxGsonBuilder.create().toJson(this); + } + + /** + *
+   * 字段名:服务商商户号
+   * 变量名:sp_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信支付分配的商户号,此处为服务商商户号
+   *  示例值:1900001109
+   * 
+ */ + @SerializedName(value = "sp_mchid") + private String spMchid; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  商户系统内部的商家批次单号,在商户系统内部唯一
+   *     示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + /** + *
+   * 字段名:微信支付批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  微信支付批次单号,微信商家转账系统返回的唯一标识
+   *     示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName(value = "batch_id") + private String batchId; + /** + *
+   * 字段名:商户的appid
+   * 变量名:
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   * 微信分配的特约商户公众账号ID。特约商户授权类型为 INFORMATION_AUTHORIZATION_TYPE和
+   *     INFORMATION_AND_FUND_AUTHORIZATION_TYPE时对应的是特约商户的appid,
+   *     特约商户授权类型为FUND_AUTHORIZATION_TYPE时为服务商的appid
+   * 例值:wxf636efh567hg4356
+   * 
+ */ + @Expose + @SerializedName(value = "appid") + private String appId; + /** + *
+   * 字段名:商家明细单号
+   * 变量名:out_detail_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   * 商户系统内部区分转账批次单下不同转账明细单的唯一标识
+   *     示例值:x23zy545Bd5436
+   * 
+ */ + @SerializedName(value = "out_detail_no") + private String outDetailNo; + /** + *
+   * 字段名:微信支付明细单号
+   * 变量名:detail_id
+   * 是否必填:是
+   * 类型:string[32, 64]
+   * 描述:
+   * 微信支付系统内部区分转账批次单下不同转账明细单的唯一标识
+   *     示例值:1040000071100999991182020050700019500100
+   * 
+ */ + @SerializedName(value = "detail_id") + private String detailId; + /** + *
+   * 字段名:明细状态
+   * 变量名:detail_status
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * 枚举值:
+   *     PROCESSING:转账中。正在处理中,转账结果尚未明确
+   *     SUCCESS:转账成功
+   *     FAIL:转账失败。需要确认失败原因后,再决定是否重新发起对该笔明细单的转账(并非整个转账批次单)
+   * 示例值:SUCCESS
+   * 
+ */ + @SerializedName(value = "detail_status") + private String detailStatus; + /** + *
+   * 字段名:转账金额
+   * 变量名:transfer_amount
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   * 转账金额单位为“分”
+   *     示例值:200000
+   * 
+ */ + @SerializedName(value = "transfer_amount") + private Integer transferAmount; + /** + *
+   * 字段名:转账备注
+   * 变量名:transfer_remark
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * 单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符
+   *     示例值:2020年4月报销
+   * 
+ */ + @SerializedName(value = "transfer_remark") + private String transferRemark; + /** + *
+   * 字段名:明细失败原因
+   * 变量名:fail_reason
+   * 是否必填:否
+   * 类型:string[1, 64]
+   * 描述:
+   * 如果转账失败则有失败原因:
+   *     ACCOUNT_FROZEN:账户冻结
+   *     REAL_NAME_CHECK_FAIL:用户未实名
+   *     NAME_NOT_CORRECT:用户姓名校验失败
+   *     OPENID_INVALID:Openid校验失败
+   *     TRANSFER_QUOTA_EXCEED:超过用户单笔收款额度
+   *     DAY_RECEIVED_QUOTA_EXCEED:超过用户单日收款额度
+   *     MONTH_RECEIVED_QUOTA_EXCEED:超过用户单月收款额度
+   *     DAY_RECEIVED_COUNT_EXCEED:超过用户单日收款次数
+   *     PRODUCT_AUTH_CHECK_FAIL:产品权限校验失败
+   *     OVERDUE_CLOSE:转账关闭
+   *     ID_CARD_NOT_CORRECT:用户身份证校验失败
+   *     ACCOUNT_NOT_EXIST:用户账户不存在
+   *     TRANSFER_RISK:转账存在风险
+   * 示例值:ACCOUNT_FROZEN
+   * 
+ */ + @SerializedName(value = "fail_reason") + private String failReason; + /** + *
+   * 字段名:收款用户openid
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1, 64]
+   * 描述:
+   * 收款用户openid。如果转账特约商户授权类型是INFORMATION_AUTHORIZATION_TYPE,对应的是特约商户公众号下的openid;
+   *     如果转账特约商户授权类型是FUND_AUTHORIZATION_TYPE,对应的是服务商商户公众号下的openid。
+   * 示例值:o-MYE42l80oelYMDE34nYD456Xoy
+   * 
+ */ + @SerializedName(value = "openid") + private String openid; + /** + *
+   * 字段名:收款用户姓名
+   * 变量名:username
+   * 是否必填:是
+   * 类型:string[1, 1024]
+   * 描述:
+   * 1、收款方姓名。采用标准RSA算法,公钥由微信侧提供
+   * 2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+   *     示例值:757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45
+   * 
+ */ + @SerializedName(value = "username") + private String userName; + /** + *
+   * 字段名:转账发起时间
+   * 变量名:initiate_time
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * 转账发起的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   *     示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "initiate_time") + private String initiateTime; + /** + *
+   * 字段名:明细更新时间
+   * 变量名:initiate_time
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * 明细最后一次状态变更的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   *     示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "update_time") + private Date updateTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java new file mode 100644 index 0000000000..904fc2d03a --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java @@ -0,0 +1,96 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 微信支付批次单号查询批次单API
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_2.shtml
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class BatchNumberRequest implements Serializable { + public static final float serialVersionUID = 1L; + + /** + *
+   * 字段名:微信支付批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[32, 64]
+   * 描述:
+   *  path微信支付批次单号,微信商家转账系统返回的唯一标识
+   *  示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName(value = "batch_id") + private String batchId; + + /** + *
+   * 字段名:是否查询转账明细单
+   * 变量名:need_query_detail
+   * 是否必填:是
+   * 类型:boolean 默认否
+   * 描述:
+   *  商户可选择是否查询指定状态的转账明细单,当转账批次单状态为“FINISHED”(已完成)时,才会返回满足条件的转账明细单
+   *  示例值:true
+   * 
+ */ + @SerializedName(value = "need_query_detail") + private Boolean needQueryDetail; + + /** + *
+   * 字段名:请求资源起始位置
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求资源的起始位置。返回的明细是按照设置的明细条数进行分页展示的,一次查询可能无法返回所有明细,我们使用该参数标识查询开始位置,默认值为0
+   *  示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private Integer offset; + + /** + *
+   * 字段名:最大资源条数
+   * 变量名:limit
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求可返回的最大明细条数,最小20条,最大100条,不传则默认20条。不足20条按实际条数返回
+   * 示例值:20
+   * 
+ */ + @SerializedName(value = "limit") + private Integer limit; + + /** + *
+   * 字段名:明细状态
+   * 变量名:detail_status
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  query查询指定状态的转账明细单,不传没有明细状态信息返回。当need_query_detail为true时,该字段必填
+   *  枚举值:
+   *     ALL:全部。需要同时查询转账成功和转账失败的明细单
+   *     SUCCESS:转账成功。只查询转账成功的明细单
+   *     FAIL:转账失败。只查询转账失败的明细单
+   *  示例值:FAIL
+   * 
+ */ + @SerializedName(value = "detail_status") + private String detailStatus; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java new file mode 100644 index 0000000000..9f1036d229 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java @@ -0,0 +1,393 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + *
+ * 微信支付批次单号查询批次单API
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_2.shtml
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class BatchNumberResult implements Serializable { + public static final float serialVersionUID = 1L; + + @Override + public String toString() { + return WxGsonBuilder.create().toJson(this); + } + + /** + *
+   * 字段名:服务商商户号
+   * 变量名:sp_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信支付分配的服务商商户号
+   *  示例值:1900001109
+   * 
+ */ + @SerializedName(value = "sp_mchid") + private String spMchid; + + /** + *
+   * 字段名:特约商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信支付分配的特约商户号
+   *  示例值:1900000109
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  商户系统内部的商家批次单号,在商户系统内部唯一
+   *  示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:微信支付批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[32, 64]
+   * 描述:
+   *  微信支付批次单号,微信商家转账系统返回的唯一标识
+   *  示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName(value = "batch_id") + private String batchId; + /** + *
+   * 字段名:特约商户appid
+   * 变量名:sub_appid
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  微信分配的特约商户公众账号ID。特约商户appid
+   *   示例值:wxf636efh567hg4356
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; + /** + *
+   * 字段名:批次状态
+   * 变量名:batch_status
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  枚举值:
+   *     WAIT_PAY:待付款,商户员工确认付款阶段。
+   *     ACCEPTED:已受理。批次已受理成功,若发起批量转账的30分钟后,转账批次单仍处于该状态,可能原因是商户账户余额不足等。商户可查询账户资金流水,若该笔转账批次单的扣款已经发生,则表示批次已经进入转账中,请再次查单确认
+   *     PROCESSING:转账中。已开始处理批次内的转账明细单
+   *     FINISHED:已完成。批次内的所有转账明细单都已处理完成
+   *     CLOSED:已关闭。可查询具体的批次关闭原因确认
+   *  示例值:ACCEPTED
+   * 
+ */ + @SerializedName(value = "batch_status") + private String batchStatus; + + /** + *
+   * 字段名:批次类型
+   * 变量名:batch_type
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  枚举值:
+   *     API:API方式发起
+   *     WEB:页面方式发起
+   * 示例值:API
+   * 
+ */ + @SerializedName(value = "batch_type") + private String batchType; + + /** + *
+   * 字段名:特约商户授权类型
+   * 变量名:authorization_type
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  特约商户授权类型:
+   *     INFORMATION_AUTHORIZATION_TYPE:信息授权类型
+   *     FUND_AUTHORIZATION_TYPE:资金授权类型
+   *     INFORMATION_AND_FUND_AUTHORIZATION_TYPE:信息和资金授权类型
+   * 示例值:INFORMATION_AUTHORIZATION_TYPE
+   * 
+ */ + @SerializedName(value = "authorization_type") + private String authorizationType; + + /** + *
+   * 字段名:批次名称
+   * 变量名:batch_name
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   * 示例值:2019年1月深圳分部报销单
+   * 
+ */ + @SerializedName(value = "batch_name") + private String batchName; + + /** + *
+   * 字段名:批次备注
+   * 变量名:batch_remark
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *      转账说明,UTF8编码,最多允许32个字符
+   *  示例值:2019年1月深圳分部报销单
+   * 
+ */ + @SerializedName(value = "batch_remark") + private String batchRemark; + + /** + *
+   * 字段名:批次关闭原因
+   * 变量名:close_reason
+   * 是否必填:否
+   * 类型:string[1, 64]
+   * 描述:
+   *    如果批次单状态为“CLOSED”(已关闭),则有关闭原因:
+   *     MERCHANT_REVOCATION:商户主动撤销
+   *     OVERDUE_CLOSE:系统超时关闭
+   * 示例值:OVERDUE_CLOSE
+   * 
+ */ + @SerializedName(value = "close_reason") + private String closeReason; + + /** + *
+   * 字段名:转账总金额
+   * 变量名:total_amount
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *   转账金额单位为“分”
+   * 示例值:4000000
+   * 
+ */ + @SerializedName(value = "total_amount") + private Integer totalAmount; + + /** + *
+   * 字段名:转账总笔数
+   * 变量名:total_num
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *   一个转账批次单最多发起三千笔转账
+   * 示例值:200
+   * 
+ */ + @SerializedName(value = "total_num") + private Integer totalNum; + /** + *
+   * 字段名:批次创建时间
+   * 变量名:create_time
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  批次受理成功时返回,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "create_time") + private String createTime; + /** + *
+   * 字段名:批次更新时间
+   * 变量名:update_time
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  批次最近一次状态变更的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   *  示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "update_time") + private String updateTime; + /** + *
+   * 字段名:转账成功金额
+   * 变量名:success_amount
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  转账成功的金额,单位为“分”。当批次状态为“PROCESSING”(转账中)时,转账成功金额随时可能变化
+   *  示例值:3900000
+   * 
+ */ + @SerializedName(value = "success_amount") + private Integer successAmount; + /** + *
+   * 字段名:转账成功笔数
+   * 变量名:success_num
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  转账成功的笔数。当批次状态为“PROCESSING”(转账中)时,转账成功笔数随时可能变化
+   * 示例值:199
+   * 
+ */ + @SerializedName(value = "success_num") + private Integer successNum; + /** + *
+   * 字段名:转账失败金额
+   * 变量名:fail_amount
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  转账失败的金额,单位为“分”
+   *     示例值:100000
+   * 
+ */ + @SerializedName(value = "fail_amount") + private Integer failAmount; + /** + *
+   * 字段名:转账失败笔数
+   * 变量名:fail_amount
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  转账失败的笔数
+   *     示例值:1
+   * 
+ */ + @SerializedName(value = "fail_num") + private Integer failNum; + /** + *
+   * 字段名:转账明细单列表
+   * 变量名:transfer_detail_list
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  当批次状态为“FINISHED”(已完成),且成功查询到转账明细单时返回。包括微信明细单号、明细状态信息
+   * 
+ */ + @SerializedName(value = "transfer_detail_list") + private List transferDetailList; + + @Data + @NoArgsConstructor + public static class TransferDetail implements Serializable { + private static final long serialVersionUID = 10941148801492L; + /** + *
+     * 字段名:微信支付明细单号
+     * 变量名:detail_id
+     * 是否必填:是
+     * 类型:string[32, 64]
+     * 描述:
+     *  微信支付系统内部区分转账批次单下不同转账明细单的唯一标识
+     *  示例值:1040000071100999991182020050700019500100
+     * 
+ */ + @SerializedName(value = "detail_id") + private String detailId; + + /** + *
+     * 字段名:商家明细单号
+     * 变量名:out_detail_no
+     * 是否必填:是
+     * 类型:string[5, 32]
+     * 描述:
+     *  商户系统内部区分转账批次单下不同转账明细单的唯一标识
+     *  示例值:x23zy545Bd5436
+     * 
+ */ + @SerializedName(value = "out_detail_no") + private String outDetailNo; + + /** + *
+     * 字段名:明细状态
+     * 变量名:detail_status
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *     枚举值:
+     *         PROCESSING:转账中。正在处理中,转账结果尚未明确
+     *         SUCCESS:转账成功
+     *         FAIL:转账失败。需要确认失败原因后,再决定是否重新发起对该笔明细单的转账(并非整个转账批次单)
+     * 示例值:SUCCESS
+     * 
+ */ + @SerializedName(value = "detail_status") + private String detailStatus; + } + + /** + *
+   * 字段名:服务商的appid
+   * 变量名:sp_appid
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *    微信分配的服务商商户公众账号ID,特约商户授权类型为FUND_AUTHORIZATION_TYPE时才有该字段
+   *     示例值:wxf636efh567hg4388
+   * 
+ */ + @SerializedName(value = "sp_appid") + private String spAppid; + /** + *
+   * 字段名:批量转账用途
+   * 变量名:transfer_purpose
+   * 是否必填:否
+   * 类型:string[1,16]
+   * 描述:
+   *   批量转账用途:
+   *     GOODSPAYMENT:货款
+   *     COMMISSION:佣金
+   *     REFUND:退款
+   *     REIMBURSEMENT:报销
+   *     FREIGHT:运费
+   *     OTHERS:其他
+   * 示例值:COMMISSION
+   * 
+ */ + @SerializedName(value = "transfer_purpose") + private String transferPurpose; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java new file mode 100644 index 0000000000..a6f98e6aa1 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java @@ -0,0 +1,143 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 转账电子回单申请受理API + * 接口说明 + * 适用对象:直连商户 服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt + * 请求方式:POST + * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class BillReceiptResult implements Serializable { + public static final float serialVersionUID = 1L; + + @Override + public String toString() { + return WxGsonBuilder.create().toJson(this); + } + + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5,32]
+   * 描述:
+   *  商户系统内部的商家批次单号,在商户系统内部唯一。需要电子回单的批次单号
+   *  示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:电子回单申请单号
+   * 变量名:signature_no
+   * 是否必填:是
+   * 类型:string[3.45]
+   * 描述:
+   *  电子回单申请单号,申请单据的唯一标识
+   *     示例值:1050000010509999485212020110200058820001
+   * 
+ */ + @SerializedName(value = "signature_no") + private String signatureNo; + + /** + *
+   * 字段名:电子回单状态
+   * 变量名:signature_status
+   * 是否必填:否
+   * 类型:string[1,10]
+   * 描述:
+   *  枚举值:
+   *     ACCEPTED:已受理,电子签章已受理成功
+   *     FINISHED:已完成。电子签章已处理完成
+   *     示例值:ACCEPTED
+   * 
+ */ + @SerializedName(value = "signature_status") + private String signatureStatus; + + /** + *
+   * 字段名:电子回单文件的hash方法
+   * 变量名:hash_type
+   * 是否必填:否
+   * 类型:string[1,20]
+   * 描述:
+   *  电子回单文件的hash方法,回单状态为:FINISHED时返回。
+   *     示例值:SHA256
+   * 
+ */ + @SerializedName(value = "hash_type") + private String hashType; + + /** + *
+   * 字段名:电子回单文件的hash值
+   * 变量名:hash_value
+   * 是否必填:否
+   * 类型:string[3,1000]
+   * 描述:
+   *  电子回单文件的hash值,用于下载之后验证文件的完整、正确性,回单状态为:FINISHED时返回。
+   *     示例值:DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529
+   * 
+ */ + @SerializedName(value = "hash_value") + private String hashValue; + + + /** + *
+   * 字段名:电子回单文件的下载地址
+   * 变量名:hash_value
+   * 是否必填:否
+   * 类型:string[10,3000]
+   * 描述:
+   *  电子回单文件的下载地址,回单状态为:FINISHED时返回。URL有效时长为10分钟,10分钟后需要重新去获取下载地址
+   *     示例值:https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx
+   * 
+ */ + @SerializedName(value = "download_url") + private String downloadUrl; + + /** + *
+   * 字段名:创建时间
+   * 变量名:create_time
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   * 	电子签章单创建时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   *     示例值:2020-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "create_time") + private String createTime; + /** + *
+   * 字段名:更新时间
+   * 变量名:update_time
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   * 	电子签章单最近一次状态变更的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   *     示例值:2020-05-21T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "update_time") + private String updateTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java new file mode 100644 index 0000000000..639b2cd572 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java @@ -0,0 +1,65 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 下载电子回单API + * 接口说明 + * 适用对象:直连商户 服务商 + * 请求URL:通过申请账单接口获取到“download_url”,URL有效期10min + * 请求方式:GET + * 前置条件:调用申请账单接口并获取到“download_url” + * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml + * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class DownloadRequest implements Serializable { + public static final float serialVersionUID = 1L; + + /** + *
+   * 字段名:电子回单文件的hash方法
+   * 变量名:hash_type
+   * 是否必填:否
+   * 类型:string[1, 20]
+   * 描述:
+   *  电子回单文件的hash方法,回单状态为:FINISHED时返回
+   *  例值:SHA256
+   * 
+ */ + @SerializedName(value = "hash_type") + private String hashType; + /** + *
+   * 字段名:电子回单文件的hash值
+   * 变量名:hash_value
+   * 是否必填:否
+   * 类型:string[3, 1000]
+   * 描述:
+   *  电子回单文件的hash值,用于下载之后验证文件的完整、正确性,回单状态为:FINISHED时返回
+   *  示例值:DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529
+   * 
+ */ + @SerializedName(value = "hash_value") + private String hashValue; + /** + *
+   * 字段名:电子回单文件的下载地址
+   * 变量名:download_url
+   * 是否必填:否
+   * 类型:string[10, 3000]
+   * 描述:
+   *  电子回单文件的下载地址,回单状态为:FINISHED时返回。URL有效时长为10分钟,10分钟后需要重新去获取下载地址(但不需要走受理)
+   * 示例值:https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx
+   * 
+ */ + @SerializedName(value = "download_url") + private String downloadUrl; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java new file mode 100644 index 0000000000..6c54cbc9c9 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java @@ -0,0 +1,70 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 转账明细电子回单受理API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:POST + * 前置条件:只支持受理最近90天内的转账明细单 + * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml + * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class ElectronicReceiptsRequest implements Serializable { + public static final float serialVersionUID = 1L; + /** + *
+   * 字段名:受理类型
+   * 变量名:accept_type
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  body电子回单受理类型:
+   *     BATCH_TRANSFER:批量转账明细电子回单
+   *     TRANSFER_TO_POCKET:企业付款至零钱电子回单
+   *     TRANSFER_TO_BANK:企业付款至银行卡电子回单
+   * 示例值:BATCH_TRANSFER
+   * 
+ */ + @SerializedName(value = "accept_type") + private String acceptType; + + /** + *
+   * 字段名:商家转账批次单号
+   * 变量名:out_batch_no
+   * 是否必填:否
+   * 类型:string[5, 32]
+   * 描述:
+   *  body需要电子回单的批量转账明细单所在的转账批次单号,该单号为商户申请转账时生成的商户单号。受理类型为BATCH_TRANSFER时该单号必填,否则该单号留空。
+   *  示例值:GD2021011610162610BBdkkIwcu3
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:商家转账明细单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  body该单号为商户申请转账时生成的商家转账明细单号。
+   *             1.受理类型为BATCH_TRANSFER时填写商家批量转账明细单号。
+   *             2. 受理类型为TRANSFER_TO_POCKET或TRANSFER_TO_BANK时填写商家转账单号。
+   *  示例值:mx0911231610162610v4CNkO4HAf
+   * 
+ */ + @SerializedName(value = "out_detail_no") + private String outDetailNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java new file mode 100644 index 0000000000..75d1243e4c --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java @@ -0,0 +1,137 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 转账明细电子回单受理API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:POST + * 前置条件:只支持受理最近90天内的转账明细单 + * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml + * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class ElectronicReceiptsResult implements Serializable { + public static final float serialVersionUID = 1L; + /** + *
+   * 字段名:受理类型
+   * 变量名:accept_type
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  电子回单受理类型:
+   *     BATCH_TRANSFER:批量转账明细电子回单
+   *     TRANSFER_TO_POCKET:企业付款至零钱电子回单
+   *     TRANSFER_TO_BANK:企业付款至银行卡电子回单
+   *  示例值:BATCH_TRANSFER
+   * 
+ */ + @SerializedName(value = "accept_type") + private String acceptType; + + /** + *
+   * 字段名:商家转账批次单号
+   * 变量名:out_batch_no
+   * 是否必填:否
+   * 类型:string[5, 32]
+   * 描述:
+   *  需要电子回单的批量转账明细单所在的转账批次单号,该单号为商户申请转账时生成的商户单号。受理类型为BATCH_TRANSFER时该单号必填,否则该单号留空。
+   *  示例值:GD2021011610162610BBdkkIwcu3
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:商家转账明细单号
+   * 变量名:out_detail_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  该单号为商户申请转账时生成的商家转账明细单号。
+   *     1.受理类型为BATCH_TRANSFER时填写商家批量转账明细单号。
+   *     2. 受理类型为TRANSFER_TO_POCKET或TRANSFER_TO_BANK时填写商家转账单号。
+   *  示例值:mx0911231610162610v4CNkO4HAf
+   * 
+ */ + @SerializedName(value = "out_detail_no") + private String outDetailNo; + /** + *
+   * 字段名:电子回单受理单号
+   * 变量名:signature_no
+   * 是否必填:是
+   * 类型:string[3, 256]
+   * 描述:
+   *  电子回单受理单号,受理单据的唯一标识
+   *  示例值:1050000010509999485212020110200058820001
+   * 
+ */ + @SerializedName(value = "signature_no") + private String signatureNo; + /** + *
+   * 字段名:电子回单状态
+   * 变量名:signature_status
+   * 是否必填:否
+   * 类型:string[1, 10]
+   * 描述:
+   *  枚举值:
+   *     ACCEPTED:已受理,电子签章已受理成功
+   *     FINISHED:已完成。电子签章已处理完成
+   *  示例值:ACCEPTED
+   * 
+ */ + @SerializedName(value = "signature_status") + private String signatureStatus; + /** + *
+   * 字段名:电子回单文件的hash方法
+   * 变量名:hash_type
+   * 是否必填:否
+   * 类型:string[1, 20]
+   * 描述:
+   *  电子回单文件的hash方法,回单状态为:FINISHED时返回
+   *  例值:SHA256
+   * 
+ */ + @SerializedName(value = "hash_type") + private String hashType; + /** + *
+   * 字段名:电子回单文件的hash值
+   * 变量名:hash_value
+   * 是否必填:否
+   * 类型:string[3, 1000]
+   * 描述:
+   *  电子回单文件的hash值,用于下载之后验证文件的完整、正确性,回单状态为:FINISHED时返回
+   *  示例值:DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529
+   * 
+ */ + @SerializedName(value = "hash_value") + private String hashValue; + /** + *
+   * 字段名:电子回单文件的下载地址
+   * 变量名:download_url
+   * 是否必填:否
+   * 类型:string[10, 3000]
+   * 描述:
+   *  电子回单文件的下载地址,回单状态为:FINISHED时返回。URL有效时长为10分钟,10分钟后需要重新去获取下载地址(但不需要走受理)
+   * 示例值:https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx
+   * 
+ */ + @SerializedName(value = "download_url") + private String downloadUrl; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java new file mode 100644 index 0000000000..3a1e3ed80d --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java @@ -0,0 +1,97 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 商家批次单号查询批次单API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/out-batch-no/{out_batch_no} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml + * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class MerchantBatchRequest implements Serializable { + public static final float serialVersionUID = 1L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  path商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一
+   *     示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:是否查询转账明细单
+   * 变量名:need_query_detail
+   * 是否必填:是
+   * 类型:boolean 默认否
+   * 描述:
+   *  商户可选择是否查询指定状态的转账明细单,当转账批次单状态为“FINISHED”(已完成)时,才会返回满足条件的转账明细单
+   *  示例值:true
+   * 
+ */ + @SerializedName(value = "need_query_detail") + private Boolean needQueryDetail; + + /** + *
+   * 字段名:请求资源起始位置
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求资源的起始位置。返回的明细是按照设置的明细条数进行分页展示的,一次查询可能无法返回所有明细,我们使用该参数标识查询开始位置,默认值为0
+   *  示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private Integer offset; + + /** + *
+   * 字段名:最大资源条数
+   * 变量名:limit
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求可返回的最大明细条数,最小20条,最大100条,不传则默认20条。不足20条按实际条数返回
+   * 示例值:20
+   * 
+ */ + @SerializedName(value = "limit") + private Integer limit; + + /** + *
+   * 字段名:明细状态
+   * 变量名:detail_status
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  query查询指定状态的转账明细单,不传没有明细状态信息返回。当need_query_detail为true时,该字段必填
+   *  枚举值:
+   *     ALL:全部。需要同时查询转账成功和转账失败的明细单
+   *     SUCCESS:转账成功。只查询转账成功的明细单
+   *     FAIL:转账失败。只查询转账失败的明细单
+   *  示例值:FAIL
+   * 
+ */ + @SerializedName(value = "detail_status") + private String detailStatus; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java new file mode 100644 index 0000000000..ce4738ae1f --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java @@ -0,0 +1,289 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * 发起批量转账API + *
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_1.shtml
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class PartnerTransferRequest implements Serializable { + public static final float serialVersionUID = 1L; + + /** + *
+   * 字段名:特约商户号
+   * 变量名:sub_mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  特约商户号
+   *  示例值:1900000109
+   * 
+ */ + @SerializedName(value = "sub_mchid") + private String subMchid; + + /** + *
+   * 字段名:特约商户appid
+   * 变量名:sub_appid
+   * 是否必填:否
+   * 类型:string(32)
+   * 描述:
+   *  示例值:wxf636efh567hg4356
+   * 
+ */ + @SerializedName(value = "sub_appid") + private String subAppid; + + /** + *
+   * 字段名:特约商户授权类型
+   * 变量名:authorization_type
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  特约商户授权类型:
+   *    INFORMATION_AUTHORIZATION_TYPE:特约商户信息授权类型
+   *    FUND_AUTHORIZATION_TYPE:特约商户资金授权类型
+   *    INFORMATION_AND_FUND_AUTHORIZATION_TYPE:特约商户信息和资金授权类型
+   * 示例值:INFORMATION_AUTHORIZATION_TYPE
+   * 
+ */ + @SerializedName(value = "authorization_type") + private String authorizationType; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string(5-32)
+   * 描述:
+   *    商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一
+   *    示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:批次名称
+   * 变量名:batch_name
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  body该笔批量转账的名称
+   *  示例值:2019年1月深圳分部报销单
+   * 
+ */ + @SerializedName(value = "batch_name") + private String batchName; + + /** + *
+   * 字段名:批次备注
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  body转账说明,UTF8编码,最多允许32个字符
+   *   示例值:2019年1月深圳分部报销单
+   * 
+ */ + @SerializedName(value = "batch_remark") + private String batchRemark; + + /** + *
+   * 字段名:转账总金额
+   * 变量名:time_expire
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  body转账金额单位为“分”。转账总金额必须与批次内所有明细转账金额之和保持一致,否则无法发起转账操作
+   *  示例值:4000000
+   * 
+ */ + @SerializedName(value = "total_amount") + private Integer totalAmount; + + /** + *
+   * 字段名:转账总笔数
+   * 变量名:total_num
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  body一个转账批次单最多发起三千笔转账。转账总笔数必须与批次内所有明细之和保持一致,否则无法发起转账操作
+   *  示例值:200
+   * 
+ */ + @SerializedName(value = "total_num") + private Integer totalNum; + + /** + *
+   * 字段名:转账明细列表
+   * 变量名:transfer_detail_list
+   * 是否必填:是
+   * 类型:array
+   * 描述:
+   *  body发起批量转账的明细列表,最多三千笔
+   * 
+ */ + @SerializedName(value = "transfer_detail_list") + private List transferDetailList; + + @Data + @NoArgsConstructor + public static class TransferDetail implements Serializable { + private static final long serialVersionUID = 109053454401492L; + + /** + *
+     * 字段名:商家明细单号
+     * 变量名:out_detail_no
+     * 是否必填:是
+     * 类型:string[5, 32]
+     * 描述:
+     *  商户系统内部区分转账批次单下不同转账明细单的唯一标识,要求此参数只能由数字、大小写字母组成
+     *  示例值:x23zy545Bd5436
+     * 
+ */ + @SerializedName(value = "out_detail_no") + private String outDetailNo; + + + /** + *
+     * 字段名:转账金额
+     * 变量名:transfer_amount
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  转账金额单位为“分”
+     *  示例值:200000
+     * 
+ */ + @SerializedName(value = "transfer_amount") + private Integer transferAmount; + + /** + *
+     * 字段名:转账备注
+     * 变量名:transfer_amount
+     * 是否必填:是
+     * 类型:string[1, 32]
+     * 描述:
+     *  单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符
+     *  示例值:2020年4月报销
+     * 
+ */ + @SerializedName(value = "transfer_remark") + private String transferRemark; + + /** + *
+     * 字段名:收款用户openid
+     * 变量名:openid
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  收款用户openid。如果转账特约商户授权类型是INFORMATION_AUTHORIZATION_TYPE,对应的是特约商户公众号下的openid。
+     *  示例值:o-MYE42l80oelYMDE34nYD456Xoy
+     * 
+ */ + @SerializedName(value = "openid") + private String openid; + + /** + *
+     * 字段名:收款用户姓名
+     * 变量名:user_name
+     * 是否必填:是
+     * 类型:string[1, 1024]
+     * 描述:
+     *  1、收款用户姓名。采用标准RSA算法,公钥由微信侧提供
+     *  2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45
+     * 
+ */ + @SerializedName(value = "user_name") + private String userName; + /** + *
+     * 字段名:收款用户身份证
+     * 变量名:user_id_card
+     * 是否必填:否
+     * 类型:string[1, 1024]
+     * 描述:
+     *  1、收款方身份证号,可不用填(采用标准RSA算法,公钥由微信侧提供)
+     *  2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f
+     * 
+ */ + @SerializedName(value = "user_id_card") + private String userIdCard; + } + + /** + *
+   * 字段名:服务商的appid
+   * 变量名:sp_appid
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  特约商户授权类型为FUND_AUTHORIZATION_TYPE时需要填写
+   *  示例值:wxf636efh567hg4388
+   * 
+ */ + @SerializedName(value = "sp_appid") + private String spAppid; + + + /** + *
+   * 字段名:批量转账用途
+   * 变量名:transfer_purpose
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  body批量转账用途,枚举值:
+   *        GOODSPAYMENT:货款、COMMISSION:佣金、REFUND:退款、REIMBURSEMENT:报销
+   *        FREIGHT:运费、OTHERS:其他
+   *  示例值:COMMISSION
+   * 
+ */ + @SerializedName(value = "transfer_purpose") + private String transferPurpose; + + /** + *
+   * 字段名:转账场景【微工卡】
+   * 变量名:transfer_scene
+   * 是否必填:否
+   * 类型:string[1, 32]
+   * 描述:
+   *  body商户的转账场景
+   *     ORDINARY_TRANSFER:普通转账,可转入用户的零钱账户
+   *     PAYROLL_CARD_TRANSFER:微工卡转账,可转入用户在微工卡选择的收款账户(零钱/银行卡)
+   *  示例值:ORDINARY_TRANSFER
+   * 
+ */ + @SerializedName(value = "transfer_scene") + private String transferScene; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java new file mode 100644 index 0000000000..9ecc6a7a57 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java @@ -0,0 +1,67 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 发起批量转账API + *
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_1.shtml
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class PartnerTransferResult implements Serializable { + public static final float serialVersionUID = 1L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  商户系统内部的商家批次单号,在商户系统内部唯一
+   *  示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:微信支付批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[32, 64]
+   * 描述:
+   *  微信支付批次单号,微信商家转账系统返回的唯一标识
+   *  示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName(value = "batch_id") + private String batchId; + + /** + *
+   * 字段名:批次创建时间
+   * 变量名:create_time
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  批次受理成功时返回,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,
+   *  T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,
+   *  领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   *
+   *  示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName(value = "create_time") + private String createTime; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java new file mode 100644 index 0000000000..967ba4f155 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java @@ -0,0 +1,35 @@ +package com.github.binarywang.wxpay.bean.marketing.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 转账电子回单申请受理API + *
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_1.shtml
+ * 
+ * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Data +@NoArgsConstructor +public class ReceiptBillRequest implements Serializable { + public static final float serialVersionUID = 1L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5, 32]
+   * 描述:
+   *  body商户系统内部的商家批次单号,在商户系统内部唯一。需要电子回单的批次单号
+   *  示例值:plfk2020042013
+   * 
+ */ + @SerializedName(value = "out_batch_no") + private String outBatchNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java new file mode 100644 index 0000000000..0bfc96cf3f --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java @@ -0,0 +1,201 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.ecommerce.FundBalanceResult; +import com.github.binarywang.wxpay.bean.ecommerce.enums.SpAccountTypeEnum; +import com.github.binarywang.wxpay.bean.marketing.transfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; + +import javax.crypto.BadPaddingException; +import java.io.InputStream; + +/** + * 微信批量转账到零钱【V3接口】服务商API + * + * @author xiaoqiang + * @date 2021-12-06 + */ +public interface PartnerTransferService { + + /** + * 发起批量转账API + * 适用对象:服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter3_1.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches + * 请求方式:POST + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + PartnerTransferResult batchTransfer(PartnerTransferRequest request) throws WxPayException; + + /** + * 微信支付批次单号查询批次单API + * 接口说明 + * 适用对象:服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter3_2.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/{batch_id} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + BatchNumberResult queryBatchByBatchId(BatchNumberRequest request) throws WxPayException; + + /** + * 微信支付明细单号查询明细单API + * 接口说明 + * 适用对象:服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter3_3.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param batchId 微信批次单号 + * @param detailId 微信明细单号 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + * @throws BadPaddingException the wx decrypt exception + */ + BatchDetailsResult queryBatchDetailByWeChat(String batchId, String detailId) throws WxPayException, BadPaddingException; + + /** + * 商家批次单号查询批次单API + * 接口说明 + * 适用对象:服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter3_4.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/out-batch-no/{out_batch_no} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + BatchNumberResult queryBatchByOutBatchNo(MerchantBatchRequest request) throws WxPayException; + + /** + * 商家明细单号查询明细单API + * 接口说明 + * 适用对象:服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter3_5.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param outBatchNo 商家明细单号 + * @param outDetailNo 商家批次单号 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + * @throws BadPaddingException the wx decrypt exception + */ + BatchDetailsResult queryBatchDetailByMch(String outBatchNo, String outDetailNo) throws WxPayException, BadPaddingException; + + + /** + * 转账电子回单申请受理API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_1.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt + * 请求方式:POST + * + * @param request 商家批次单号 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + BillReceiptResult receiptBill(ReceiptBillRequest request) throws WxPayException; + + + /** + * 查询转账电子回单API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_2.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt/{out_batch_no} + * 请求方式:GET + * + * @param outBatchNo 商家批次单号 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + BillReceiptResult queryBillReceipt(String outBatchNo) throws WxPayException; + + /** + * 转账明细电子回单受理API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_4.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:POST + * 前置条件:只支持受理最近90天内的转账明细单 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + ElectronicReceiptsResult transferElectronic(ElectronicReceiptsRequest request) throws WxPayException; + + /** + * 查询转账明细电子回单受理结果API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_5.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:GET + * 前置条件:只支持查询最近90天内的转账明细单 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + ElectronicReceiptsResult queryTransferElectronicResult(ElectronicReceiptsRequest request) throws WxPayException; + + /** + * 下载电子回单API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_3.shtml + * 请求URL:通过申请账单接口获取到“download_url”,URL有效期10min + * 请求方式:GET + * 前置条件:调用申请账单接口并获取到“download_url” + * + * @param url 微信返回的电子回单地址。 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + InputStream transferDownload(String url) throws WxPayException; + + /** + *
+   * 查询账户实时余额API
+   * 接口说明
+   * 适用对象:直连商户 服务商
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter5_1.shtml
+   * 请求URL:https://api.mch.weixin.qq.com/v3/merchant/fund/balance/{account_type}
+   * 请求方式:GET
+   * 
+ * + * @param accountType 服务商账户类型 {@link SpAccountTypeEnum} + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + FundBalanceResult fundBalance(SpAccountTypeEnum accountType) throws WxPayException; + + /** + *
+   * 服务商账户日终余额
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter5_2.shtml
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
+   * 
+ * + * @param accountType 服务商账户类型 + * @param date 查询日期 2020-09-11 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + FundBalanceResult spDayEndBalance(SpAccountTypeEnum accountType, String date); +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java new file mode 100644 index 0000000000..be9c64f2e1 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java @@ -0,0 +1,103 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.marketing.payroll.*; +import com.github.binarywang.wxpay.exception.WxPayException; + +/** + * 微工卡-对接微信api + * + * @author xiaoqiang + * @date 2021/12/7 14:26 + */ +public interface PayrollService { + /** + * 生成授权token + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/tokens + * 请求方式:POST + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + TokensResult payrollCardTokens(TokensRequest request) throws WxPayException; + + /** + * 查询微工卡授权关系API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/relations/{openid} + * 请求方式:GET + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + RelationsResult payrollCardRelations(RelationsRequest request) throws WxPayException; + + /** + * 微工卡核身预下单API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order + * 请求方式:POST + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + PreOrderResult payrollCardPreOrder(PreOrderRequest request) throws WxPayException; + + /** + * 获取核身结果API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/{authenticate_number} + * 请求方式:GET + * + * @param subMchid 子商户号 + * @param authenticateNumber 商家核身单号 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + AuthenticationsResult payrollCardAuthenticationsNumber(String subMchid, String authenticateNumber) throws WxPayException; + + /** + * 查询核身记录API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications + * 请求方式:GET + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + AuthRecordResult payrollCardAuthentications(AuthRecordRequest request) throws WxPayException; + + /** + * 微工卡核身预下单(流程中完成授权) + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order-with-auth + * 请求方式:POST + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + PreOrderWithAuthResult payrollCardPreOrderWithAuth(PreOrderWithAuthRequest request) throws WxPayException; + + /** + * 按日下载提现异常文件API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/merchant/fund/withdraw/bill-type/{bill_type} + * 请求方式:GET + * + * @param billType 账单类型 + * NO_SUCC:提现异常账单,包括提现失败和提现退票账单。 + * 示例值:NO_SUCC + * @param billDate 账单日期 表示所在日期的提现账单,格式为YYYY-MM-DD。 + * 例如:2008-01-01日发起的提现,2008-01-03日银行返回提现失败,则该提现数据将出现在bill_date为2008-01-03日的账单中。 + * 示例值:2019-08-17 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + PreOrderWithAuthResult merchantFundWithdrawBillType(String billType, String billDate) throws WxPayException; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 73dad0c9d2..2a567fa1df 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -179,6 +179,20 @@ public interface WxPayService { */ WxEntrustPapService getWxEntrustPapService(); + /** + * 获取批量转账到零钱服务类. + * + * @return the Batch transfer to change service + */ + PartnerTransferService getPartnerTransferService(); + + /** + * 微工卡 + * + * @return the micro card + */ + PayrollService getPayrollService(); + /** * 获取企业付款服务类. * diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index e5ef0be8be..437b618678 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -75,7 +75,8 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { private final MarketingFavorService marketingFavorService = new MarketingFavorServiceImpl(this); private final MarketingBusiFavorService marketingBusiFavorService = new MarketingBusiFavorServiceImpl(this); private final WxEntrustPapService wxEntrustPapService = new WxEntrustPapServiceImpl(this); - + private final PartnerTransferService partnerTransferService = new PartnerTransferServiceImpl(this); + private final PayrollService payrollService = new PayrollServiceImpl(this); protected Map configMap; @@ -144,6 +145,12 @@ public WxEntrustPapService getWxEntrustPapService() { return wxEntrustPapService; } + @Override + public PartnerTransferService getPartnerTransferService(){return partnerTransferService;} + + @Override + public PayrollService getPayrollService(){return payrollService;} + @Override public WxPayConfig getConfig() { if (this.configMap.size() == 1) { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java new file mode 100644 index 0000000000..1a8a28f84b --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java @@ -0,0 +1,311 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.ecommerce.FundBalanceResult; +import com.github.binarywang.wxpay.bean.ecommerce.enums.SpAccountTypeEnum; +import com.github.binarywang.wxpay.bean.marketing.transfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.PartnerTransferService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import jodd.util.StringUtil; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import javax.crypto.BadPaddingException; +import javax.crypto.IllegalBlockSizeException; +import java.io.InputStream; + +/** + * 批量转账到零钱(服务商) + * + * @author xiaoqiang + * @date 2021-12-06 + */ +@Slf4j +@RequiredArgsConstructor +public class PartnerTransferServiceImpl implements PartnerTransferService { + + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService; + + /** + * 发起批量转账API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches + * 请求方式:POST + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request 请求对象 + * @return 返回数据 {@link PartnerTransferResult} + * @throws WxPayException the wx pay exception + */ + @Override + public PartnerTransferResult batchTransfer(PartnerTransferRequest request) throws WxPayException { + request.getTransferDetailList().stream().forEach(p -> { + try { + String userName = RsaCryptoUtil.encryptOAEP(p.getUserName(), this.payService.getConfig().getVerifier().getValidCertificate()); + p.setUserName(userName); + } catch (IllegalBlockSizeException e) { + throw new RuntimeException("姓名转换异常!", e); + } + }); + String url = String.format("%s/v3/partner-transfer/batches", this.payService.getPayBaseUrl()); + String response = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); + return GSON.fromJson(response, PartnerTransferResult.class); + } + + /** + * 微信支付批次单号查询批次单API + * 接口说明 + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/{batch_id} + * https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/1030000071100999991182020050700019480001?need_query_detail=true&offset=1 + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request 请求对象 + * @return 返回数据 {@link BatchNumberResult} + * @throws WxPayException the wx pay exception + */ + @Override + public BatchNumberResult queryBatchByBatchId(BatchNumberRequest request) throws WxPayException { + String url = String.format("%s/v3/partner-transfer/batches/batch-id/%s", this.payService.getPayBaseUrl(), request.getBatchId()); + if (request.getOffset() == null) { + request.setOffset(0); + } + if (request.getLimit() == null || request.getLimit() <= 0) { + request.setLimit(20); + } + String query = String.format("?need_query_detail=true&detail_status=ALL&offset=%s&limit=%s", request.getNeedQueryDetail(), request.getOffset(), request.getLimit()); + if (StringUtil.isNotBlank(request.getDetailStatus())){ + query += "&detail_status="+request.getDetailStatus(); + } + String response = this.payService.getV3(url + query); + return GSON.fromJson(response, BatchNumberResult.class); + } + + /** + * 商家批次单号查询批次单API + * 接口说明 + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/out-batch-no/{out_batch_no} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request 请求对象 + * @return 返回数据 {@link BatchNumberResult} + * @throws WxPayException the wx pay exception + */ + @Override + public BatchNumberResult queryBatchByOutBatchNo(MerchantBatchRequest request) throws WxPayException { + String url = String.format("%s/v3/partner-transfer/batches/out-batch-no/%s", this.payService.getPayBaseUrl(), request.getOutBatchNo()); + if (request.getOffset() == null) { + request.setOffset(0); + } + if (request.getLimit() == null || request.getLimit() <= 0) { + request.setLimit(20); + } + String query = String.format("?need_query_detail=true&offset=%s&limit=%s", request.getNeedQueryDetail(), request.getOffset(), request.getLimit()); + if (StringUtil.isNotBlank(request.getDetailStatus())){ + query += "&detail_status="+request.getDetailStatus(); + } + String response = this.payService.getV3(url + query); + return GSON.fromJson(response, BatchNumberResult.class); + } + + /** + * 微信支付明细单号查询明细单API + * 接口说明 + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param batchId 微信批次单号 + * @param detailId 微信明细单号 + * @return 返回数据 {@link BatchDetailsResult} + * @throws WxPayException the wx pay exception + * @throws BadPaddingException the wx decrypt exception + */ + @Override + public BatchDetailsResult queryBatchDetailByWeChat(String batchId, String detailId) throws WxPayException, BadPaddingException { + String url = String.format("%s/v3/partner-transfer/batches/batch-id/%s/details/detail-id/%s", this.payService.getPayBaseUrl(), batchId, detailId); + String response = this.payService.getV3(url); + BatchDetailsResult batchDetailsResult = GSON.fromJson(response, BatchDetailsResult.class); + String userName = RsaCryptoUtil.decryptOAEP(batchDetailsResult.getUserName(), this.payService.getConfig().getPrivateKey()); + batchDetailsResult.setUserName(userName); + return batchDetailsResult; + } + + /** + * 商家明细单号查询明细单API + * 接口说明 + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/partner-transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no} + * 请求方式:GET + * 接口限频:单个服务商 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param outBatchNo 商家明细单号 + * @param outDetailNo 商家批次单号 + * @return 返回数据 {@link BatchDetailsResult} + * @throws WxPayException the wx pay exception + * @throws BadPaddingException the wx decrypt exception + */ + @Override + public BatchDetailsResult queryBatchDetailByMch(String outBatchNo, String outDetailNo) throws WxPayException, BadPaddingException { + String url = String.format("%s/v3/partner-transfer/batches/out-batch-no/%s/details/out-detail-no/%s", this.payService.getPayBaseUrl(), outBatchNo, outDetailNo); + String response = this.payService.getV3(url); + BatchDetailsResult batchDetailsResult = GSON.fromJson(response, BatchDetailsResult.class); + String userName = RsaCryptoUtil.decryptOAEP(batchDetailsResult.getUserName(), this.payService.getConfig().getPrivateKey()); + batchDetailsResult.setUserName(userName); + return batchDetailsResult; + } + + + /** + * 转账电子回单申请受理API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_1.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt + * 请求方式:POST + * + * @param request 商家批次单号 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public BillReceiptResult receiptBill(ReceiptBillRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/bill-receipt", this.payService.getPayBaseUrl()); + String response = this.payService.postV3(url, GSON.toJson(request)); + return GSON.fromJson(response, BillReceiptResult.class); + } + + + /** + * 查询转账电子回单API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_2.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt/{out_batch_no} + * 请求方式:GET + * + * @param outBatchNo 商家批次单号 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public BillReceiptResult queryBillReceipt(String outBatchNo) throws WxPayException { + String url = String.format("%s/v3/transfer/bill-receipt/%s", this.payService.getPayBaseUrl(), outBatchNo); + String response = this.payService.getV3(url); + return GSON.fromJson(response, BillReceiptResult.class); + } + + /** + * 转账明细电子回单受理API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_4.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:POST + * 前置条件:只支持受理最近90天内的转账明细单 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public ElectronicReceiptsResult transferElectronic(ElectronicReceiptsRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer-detail/electronic-receipts", this.payService.getPayBaseUrl()); + String response = this.payService.postV3(url, GSON.toJson(request)); + return GSON.fromJson(response, ElectronicReceiptsResult.class); + } + + + /** + * 查询转账明细电子回单受理结果API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_5.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:GET + * 前置条件:只支持查询最近90天内的转账明细单 + * + * @param request 请求对象 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public ElectronicReceiptsResult queryTransferElectronicResult(ElectronicReceiptsRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer-detail/electronic-receipts", this.payService.getPayBaseUrl()); + String query = String.format("?accept_type=%s&out_batch_no=%s&out_detail_no=%s", request.getAcceptType(), request.getOutBatchNo(), request.getOutDetailNo()); + String response = this.payService.getV3(url + query); + return GSON.fromJson(response, ElectronicReceiptsResult.class); + } + + /** + * 下载电子回单API + * 接口说明 + * 适用对象:直连商户 服务商 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter4_3.shtml + * 请求URL:通过申请账单接口获取到“download_url”,URL有效期10min + * 请求方式:GET + * 前置条件:调用申请账单接口并获取到“download_url” + * + * @param url 微信返回的电子回单地址。 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public InputStream transferDownload(String url) throws WxPayException { + InputStream response = this.payService.downloadV3(url); + return response; + } + + /** + *
+   * 查询账户实时余额API
+   * 接口说明
+   * 适用对象:直连商户 服务商
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter5_1.shtml
+   * 请求URL:https://api.mch.weixin.qq.com/v3/merchant/fund/balance/{account_type}
+   * 请求方式:GET
+   * 
+ * + * @param accountType 服务商账户类型 {@link SpAccountTypeEnum} + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public FundBalanceResult fundBalance(SpAccountTypeEnum accountType) throws WxPayException { + String url = String.format("%s/v3/merchant/fund/balance/%s", this.payService.getPayBaseUrl(), accountType); + String response = this.payService.getV3(url); + return GSON.fromJson(response, FundBalanceResult.class); + } + + /** + *
+   * 服务商账户日终余额
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer/chapter5_2.shtml
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
+   * 
+ * + * @param accountType 服务商账户类型 + * @param date 查询日期 2020-09-11 + * @return 返回数据 fund balance result + * @throws WxPayException the wx pay exception + */ + @Override + public FundBalanceResult spDayEndBalance(SpAccountTypeEnum accountType, String date) { + try { + return this.payService.getEcommerceService().spDayEndBalance(accountType, date); + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java new file mode 100644 index 0000000000..51947a2747 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java @@ -0,0 +1,192 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.marketing.payroll.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.PayrollService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; + +import javax.crypto.IllegalBlockSizeException; + +/** + * 微信支付-微工卡 + * + * @author xiaoqiang + * @date 2021/12/2 + */ +@Slf4j +@RequiredArgsConstructor +public class PayrollServiceImpl implements PayrollService { + + private static final Gson GSON = new GsonBuilder().create(); + + private final WxPayService payService; + + /** + * 生成授权token + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/tokens + * 请求方式:POST + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public TokensResult payrollCardTokens(TokensRequest request) throws WxPayException { + String url = String.format("%s/v3/payroll-card/tokens", payService.getPayBaseUrl()); + try { + String userName = RsaCryptoUtil.encryptOAEP(request.getUserName(), payService.getConfig().getVerifier().getValidCertificate()); + request.setUserName(userName); + String idCardNumber = RsaCryptoUtil.encryptOAEP(request.getIdCardNumber(), payService.getConfig().getVerifier().getValidCertificate()); + request.setIdCardNumber(idCardNumber); + } catch (IllegalBlockSizeException e) { + throw new RuntimeException("加密异常!", e); + } + String response = payService.postV3(url, GSON.toJson(request)); + return GSON.fromJson(response, TokensResult.class); + } + + /** + * 查询微工卡授权关系API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/relations/{openid} + * 请求方式:GET + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public RelationsResult payrollCardRelations(RelationsRequest request) throws WxPayException { + String url = String.format("%s/v3/payroll-card/relations/%s", + payService.getPayBaseUrl(), request.getOpenid()); + String query = String.format("?sub_mchid=%s", request.getSubMchid()); + if (StringUtils.isNotEmpty(request.getAppid())) { + query += "&appid=" + request.getAppid(); + } + if (StringUtils.isNotEmpty(request.getSubAppid())) { + query += "&sub_appid=" + request.getSubAppid(); + } + String response = payService.getV3(url + query); + return GSON.fromJson(response, RelationsResult.class); + } + + /** + * 微工卡核身预下单API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order + * 请求方式:POST + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public PreOrderResult payrollCardPreOrder(PreOrderRequest request) throws WxPayException { + String url = String.format("%s/v3/payroll-card/authentications/pre-order", payService.getPayBaseUrl()); + String response = payService.postV3(url, GSON.toJson(request)); + return GSON.fromJson(response, PreOrderResult.class); + } + + /** + * 获取核身结果API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/{authenticate_number} + * 请求方式:GET + * + * @param subMchid 子商户号 + * @param authenticateNumber 商家核身单号 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public AuthenticationsResult payrollCardAuthenticationsNumber(String subMchid, String authenticateNumber) throws WxPayException { + String url = String.format("%s/v3/payroll-card/authentications/%s", payService.getPayBaseUrl(), authenticateNumber); + String query = String.format("?sub_mchid=%s", subMchid); + String response = payService.getV3(url + query); + return GSON.fromJson(response, AuthenticationsResult.class); + } + + /** + * 查询核身记录API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications + * 请求方式:GET + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public AuthRecordResult payrollCardAuthentications(AuthRecordRequest request) throws WxPayException { + String url = String.format("%s/v3/payroll-card/authentications", payService.getPayBaseUrl()); + String query = String.format("?openid=%s&sub_mchid=%s&authenticate_date=%s", + request.getOpenid(), request.getAppid(), request.getSubMchid(), request.getAuthenticateDate()); + if (StringUtils.isNotEmpty(request.getAppid())) { + query += "&appid=" + request.getAppid(); + } + if (StringUtils.isNotEmpty(request.getAppid())) { + query += "&sub_appid=" + request.getSubAppid(); + } + if (StringUtils.isNotEmpty(request.getAuthenticateState())) { + query += "&authenticate_state=" + request.getAuthenticateState(); + } + String response = payService.getV3(url + query); + return GSON.fromJson(response, AuthRecordResult.class); + } + + /** + * 微工卡核身预下单(流程中完成授权) + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order-with-auth + * 请求方式:POST + * + * @param request 请求参数 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public PreOrderWithAuthResult payrollCardPreOrderWithAuth(PreOrderWithAuthRequest request) throws WxPayException { + String url = String.format("%s/v3/payroll-card/authentications/pre-order-with-auth", payService.getPayBaseUrl()); + try { + String userName = RsaCryptoUtil.encryptOAEP(request.getUserName(), payService.getConfig().getVerifier().getValidCertificate()); + request.setUserName(userName); + String idCardNumber = RsaCryptoUtil.encryptOAEP(request.getIdCardNumber(), payService.getConfig().getVerifier().getValidCertificate()); + request.setIdCardNumber(idCardNumber); + } catch (IllegalBlockSizeException e) { + throw new RuntimeException("敏感信息加密异常!", e); + } + String response = payService.postV3(url, GSON.toJson(request)); + return GSON.fromJson(response, PreOrderWithAuthResult.class); + } + + /** + * 按日下载提现异常文件API + * 适用对象:服务商 + * 请求URL:https://api.mch.weixin.qq.com/v3/merchant/fund/withdraw/bill-type/{bill_type} + * 请求方式:GET + * + * @param billType 账单类型 + * NO_SUCC:提现异常账单,包括提现失败和提现退票账单。 + * 示例值:NO_SUCC + * @param billDate 账单日期 表示所在日期的提现账单,格式为YYYY-MM-DD。 + * 例如:2008-01-01日发起的提现,2008-01-03日银行返回提现失败,则该提现数据将出现在bill_date为2008-01-03日的账单中。 + * 示例值:2019-08-17 + * @return 返回数据 + * @throws WxPayException the wx pay exception + */ + @Override + public PreOrderWithAuthResult merchantFundWithdrawBillType(String billType, String billDate) throws WxPayException { + String url = String.format("%s/v3/merchant/fund/withdraw/bill-type/%s", payService.getPayBaseUrl(), billType); + String query = String.format("?bill_date=%s", billDate); + String response = payService.getV3(url + query); + return GSON.fromJson(response, PreOrderWithAuthResult.class); + } + +} diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java new file mode 100644 index 0000000000..9c7b1cb541 --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java @@ -0,0 +1,139 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.ecommerce.FundBalanceResult; +import com.github.binarywang.wxpay.bean.ecommerce.enums.SpAccountTypeEnum; +import com.github.binarywang.wxpay.bean.marketing.transfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import javax.crypto.BadPaddingException; +import java.io.InputStream; + +/** + * 批量转账到零钱(服务商) + * + * @author xiaoqiang + * @date 2021/12/9 + */ +@Slf4j +@Test +@Guice(modules = ApiTestModule.class) +public class PartnerTransferServiceImplTest { + + @Inject + private WxPayService wxPayService; + + private static final Gson GSON = new GsonBuilder().create(); + + @Test + public void batchTransfer() throws WxPayException { + String requestParamStr = "{\"sub_mchid\":\"1608*****1\",\"authorization_type\":\"FUND_AUTHORIZATION_TYPE\",\"out_batch_no\":\"202108241345*****4618387\",\"batch_name\":\"用户提现批次单2021-12-13_13_45_50\",\"batch_remark\":\"用户>提现\",\"total_amount\":30,\"total_num\":1,\"transfer_detail_list\":[{\"out_detail_no\":\"DN202112131345506240631640467671\",\"transfer_amount\":30,\"transfer_remark\":\"钱包提现\",\"openid\":\"oUaIE6PdSuBpsHAOtvf_jsgtqu5I\",\"user_name\":\"Q2FoOMuf1Ulsab+j0nObLjkIZAUZan8Z7RaEU5qOjv1RUq5ImuqqAqoQZ4f/zD5CMxuLD7lM1TIdGIvrvO8pe2YOwoUdRxiRzDX+Z0Rsy5Y9QqEiuHHK1JTR7vC18eKp0a4PlY7K4jUl49jG0QE+6gOG83Cqj3Z9dupPor94fPRUM/ZIzF293ONgSJW1iuHkd6g7EHTpizHZ/r5XcT+qh*************************kqjtVkT3GiuDXmMA8d/hO85uY50ItNNa5Ov8kmJbLCgFreoS49LUEwj/yuDap6F4g\\u003d\\u003d\"}],\"sp_appid\":\"wx6aa************ef\",\"transfer_purpose\":\"OTHERS\"}"; + + PartnerTransferRequest request = GSON.fromJson(requestParamStr, PartnerTransferRequest.class); + + PartnerTransferResult partnerTransferResult = wxPayService.getPartnerTransferService().batchTransfer(request); + log.info(partnerTransferResult.toString()); + } + + + @Test + public void queryBatchByBatchId() throws WxPayException { + BatchNumberRequest request = new BatchNumberRequest(); + request.setBatchId("1030000071100999991182020050700019480001"); + request.setNeedQueryDetail(true); + request.setDetailStatus("ALL"); + BatchNumberResult batchResult = wxPayService.getPartnerTransferService().queryBatchByBatchId(request); + log.info(batchResult.toString()); + } + + + @Test + public void queryBatchDetailByWeChat() throws WxPayException, BadPaddingException { + String batchId = "1030000071100999991182020050700019480001"; + String detailId = "1040000071100999991182020050700019500100"; + BatchDetailsResult batchResult = wxPayService.getPartnerTransferService().queryBatchDetailByWeChat(batchId, detailId); + log.info(batchResult.toString()); + } + + @Test + public void queryBatchByOutBatchNo() throws WxPayException { + MerchantBatchRequest request = new MerchantBatchRequest(); + request.setOutBatchNo("10300000************0019480001"); + request.setDetailStatus("ALL"); + request.setNeedQueryDetail(true); + BatchNumberResult batchResult = wxPayService.getPartnerTransferService().queryBatchByOutBatchNo(request); + log.info(batchResult.toString()); + } + + @Test + public void queryBatchDetailByMch() throws WxPayException, BadPaddingException { + String outBatchNo = "10300000************0019480001"; + String outDetailNo = "10***********0019480001"; + BatchDetailsResult batchResult = wxPayService.getPartnerTransferService().queryBatchDetailByMch(outBatchNo, outDetailNo); + log.info(batchResult.toString()); + } + + @Test + public void receiptBill() throws WxPayException { + ReceiptBillRequest request = new ReceiptBillRequest(); + request.setOutBatchNo("10300000************0019480001"); + BillReceiptResult batchResult = wxPayService.getPartnerTransferService().receiptBill(request); + log.info(batchResult.toString()); + } + + @Test + public void queryBillReceipt() throws WxPayException { + String outBatchNo = "10300000************0019480001"; + BillReceiptResult batchResult = wxPayService.getPartnerTransferService().queryBillReceipt(outBatchNo); + log.info(batchResult.toString()); + } + + @Test + public void transferElectronic() throws WxPayException { + ElectronicReceiptsRequest request = new ElectronicReceiptsRequest(); + request.setAcceptType("BATCH_TRANSFER"); + request.setOutBatchNo("GD2021011610162610BBdkkIwcu3"); + request.setOutDetailNo("mx0911231610162610v4CNkO4HAf"); + ElectronicReceiptsResult batchResult = wxPayService.getPartnerTransferService().transferElectronic(request); + log.info(batchResult.toString()); + } + + @Test + public void queryTransferElectronicResult() throws WxPayException { + ElectronicReceiptsRequest request = new ElectronicReceiptsRequest(); + request.setAcceptType("BATCH_TRANSFER"); + request.setOutBatchNo("GD2021011610162610BBdkkIwcu3"); + request.setOutDetailNo("mx0911231610162610v4CNkO4HAf"); + ElectronicReceiptsResult batchResult = wxPayService.getPartnerTransferService().queryTransferElectronicResult(request); + log.info(batchResult.toString()); + } + + + @Test + public void transferDownload() throws WxPayException { + String url = "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx"; + InputStream batchResult = wxPayService.getPartnerTransferService().transferDownload(url); + log.info(batchResult.toString()); + } + + @Test + public void fundBalance() throws WxPayException { + FundBalanceResult batchResult = wxPayService.getPartnerTransferService().fundBalance(SpAccountTypeEnum.BASIC); + log.info(batchResult.toString()); + } + + @Test + public void spDayEndBalance() { + String date = "2020-09-11"; + FundBalanceResult batchResult = wxPayService.getPartnerTransferService().spDayEndBalance(SpAccountTypeEnum.BASIC, date); + log.info(batchResult.toString()); + } + +} diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java new file mode 100644 index 0000000000..406d1fdf12 --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java @@ -0,0 +1,128 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.marketing.payroll.*; +import com.github.binarywang.wxpay.bean.marketing.transfer.PartnerTransferRequest; +import com.github.binarywang.wxpay.bean.marketing.transfer.PartnerTransferResult; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +/** + * 微工卡(服务商) + * + * @author xiaoqiang + * @date 2021/12/9 + */ +@Slf4j +@Test +@Guice(modules = ApiTestModule.class) +public class PayrollServiceImplTest { + + + @Inject + private WxPayService wxPayService; + + private static final Gson GSON = new GsonBuilder().create(); + + @Test + public void payrollCardTokens() throws WxPayException { + TokensRequest request = new TokensRequest(); + request.setOpenid("onqOjjmo8wmTOOtSKwXtGjg9Gb58"); + request.setAppid("wxa1111111"); + request.setSubMchid("1111111"); + request.setSubAppid("wxa1111111"); + request.setUserName("LP7bT4hQXUsOZCEvK2YrSiqFsnP0oRMfeoLN0vBg"); + request.setIdCardNumber("7FzH5XksJG3a8HLLsaaUV6K54y1OnPMY5"); + request.setEmploymentType("LONG_TERM_EMPLOYMENT"); + TokensResult tokensResult = wxPayService.getPayrollService().payrollCardTokens(request); + log.info(tokensResult.toString()); + + } + + @Test + public void payrollCardRelations() throws WxPayException { + RelationsRequest request = new RelationsRequest(); + request.setOpenid("onqOjjmo8wmTOOtSKwXtGjg9Gb58"); + request.setSubMchid("1111111"); + request.setAppid("wxa1111111"); + request.setSubAppid("wxa1111111"); + RelationsResult relationsResult = wxPayService.getPayrollService().payrollCardRelations(request); + log.info(relationsResult.toString()); + + } + + + @Test + public void payrollCardPreOrder() throws WxPayException { + PreOrderRequest request = new PreOrderRequest(); + request.setOpenid("onqOjjmo8wmTOOtSKwXtGjg9Gb58"); + request.setSubMchid("1111111"); + request.setAppid("wxa1111111"); + request.setSubAppid("wxa1111111"); + request.setAuthenticateNumber("mcdhehfgisdhfjghed39384564i83"); + request.setProjectName("某项目"); + request.setEmployerName("某单位名称"); + PreOrderResult preOrderResult = wxPayService.getPayrollService().payrollCardPreOrder(request); + log.info(preOrderResult.toString()); + + } + + @Test + public void payrollCardAuthenticationsNumber() throws WxPayException { + String subMchid = "1111111"; + String authenticateNumber = "mcdhehfgisdhfjghed39384564i83"; + AuthenticationsResult authenticationsResult = wxPayService.getPayrollService().payrollCardAuthenticationsNumber(subMchid, authenticateNumber); + log.info(authenticationsResult.toString()); + + } + + @Test + public void payrollCardAuthentications() throws WxPayException { + AuthRecordRequest request = new AuthRecordRequest(); + request.setOpenid("onqOjjmo8wmTOOtSKwXtGjg9Gb58"); + request.setSubMchid("1111111"); + request.setAppid("wxa1111111"); + request.setSubAppid("wxa1111111"); + request.setAuthenticateDate("2020-12-25"); + request.setAuthenticateState("AUTHENTICATE_SUCCESS"); + request.setOffset(0); + request.setLimit(10); + AuthRecordResult authRecordResult = wxPayService.getPayrollService().payrollCardAuthentications(request); + log.info(authRecordResult.toString()); + + } + + @Test + public void payrollCardPreOrderWithAuth() throws WxPayException { + PreOrderWithAuthRequest request = new PreOrderWithAuthRequest(); + request.setOpenid("onqOjjmo8wmTOOtSKwXtGjg9Gb58"); + request.setSubMchid("1111111"); + request.setAppid("wxa1111111"); + request.setSubAppid("wxa1111111"); + request.setAuthenticateNumber("mcdhehfgisdhfjghed39384564i83"); + request.setEmployerName("某用工企业"); + request.setEmploymentType("LONG_TERM_EMPLOYMENT"); + request.setIdCardNumber("7FzH5XksJG3a8HLLsaaUV6K54y1OnPMY5"); + request.setProjectName("某项目"); + request.setUserName("LP7bT4hQXUsOZCEvK2YrSiqFsnP0oRMfeoLN0vBg"); + PreOrderWithAuthResult preOrderWithAuthResult = wxPayService.getPayrollService().payrollCardPreOrderWithAuth(request); + log.info(preOrderWithAuthResult.toString()); + + } + + @Test + public void merchantFundWithdrawBillType() throws WxPayException { + String billType = "NO_SUCC"; + String billDate = "2019-08-17"; + PreOrderWithAuthResult preOrderWithAuthResult = wxPayService.getPayrollService().merchantFundWithdrawBillType(billType, billDate); + log.info(preOrderWithAuthResult.toString()); + + } + +} From d70b9074071f4f08cb23697e43ec132a9f21619b Mon Sep 17 00:00:00 2001 From: JCLee <452415615@qq.com> Date: Fri, 17 Dec 2021 11:57:15 +0800 Subject: [PATCH 073/622] =?UTF-8?q?:new:=20#2451=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E6=B6=88=E6=81=AF=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/WxMaDeviceSubscribeService.java | 40 +++++++++++ .../wx/miniapp/api/WxMaService.java | 7 ++ .../miniapp/api/impl/BaseWxMaServiceImpl.java | 4 ++ .../impl/WxMaDeviceSubscribeServiceImpl.java | 50 +++++++++++++ .../WxMaDeviceSubscribeMessageRequest.java | 72 +++++++++++++++++++ .../bean/device/WxMaDeviceTicketRequest.java | 41 +++++++++++ .../miniapp/constant/WxMaApiUrlConstants.java | 14 ++++ .../WxMaDeviceSubscribeServiceImplTest.java | 59 +++++++++++++++ 8 files changed, 287 insertions(+) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaDeviceSubscribeService.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImpl.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceSubscribeMessageRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceTicketRequest.java create mode 100644 weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImplTest.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaDeviceSubscribeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaDeviceSubscribeService.java new file mode 100644 index 0000000000..f44f64e48d --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaDeviceSubscribeService.java @@ -0,0 +1,40 @@ +package cn.binarywang.wx.miniapp.api; + +import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceSubscribeMessageRequest; +import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceTicketRequest; +import me.chanjar.weixin.common.error.WxErrorException; + +/** + * 小程序设备订阅消息相关 API + * 文档: + * + * @author
JCLee + * @since 2021-12-16 17:13:35 + */ +public interface WxMaDeviceSubscribeService { + + /** + *
+   * 获取设备票据
+   * 应用场景:
+   * 小程序前端界面拉起设备消息授权订阅弹框界面
+   * 注意:
+   * 设备ticket有效时间为5分钟
+   * 
+ * @param deviceTicketRequest + * @return + * @throws WxErrorException + */ + String getSnTicket(WxMaDeviceTicketRequest deviceTicketRequest) throws WxErrorException; + + /** + *
+   * 发送设备订阅消息
+   * 
+ * + * @param deviceSubscribeMessageRequest 订阅消息 + * @throws WxErrorException . + */ + void sendDeviceSubscribeMsg(WxMaDeviceSubscribeMessageRequest deviceSubscribeMessageRequest) throws WxErrorException; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index d0b2dcf12b..b22f865381 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -462,4 +462,11 @@ public interface WxMaService extends WxService { * @return */ WxMaReimburseInvoiceService getReimburseInvoiceService(); + + /** + * 返回设备订阅消息相关接口服务对象 + * + * @return WxMaDeviceSubscribeService plugin service + */ + WxMaDeviceSubscribeService getDeviceSubscribeService(); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index ecbce2ee05..e6ab2b9887 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -75,6 +75,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaShopDeliveryService shopDeliveryService = new WxMaShopDeliveryServiceImpl(this); private final WxMaLinkService linkService = new WxMaLinkServiceImpl(this); private final WxMaReimburseInvoiceService reimburseInvoiceService = new WxMaReimburseInvoiceServiceImpl(this); + private final WxMaDeviceSubscribeService deviceSubscribeService = new WxMaDeviceSubscribeServiceImpl(this); private Map configMap; private int retrySleepMillis = 1000; private int maxRetryTimes = 5; @@ -573,4 +574,7 @@ public WxMaLinkService getLinkService() { public WxMaReimburseInvoiceService getReimburseInvoiceService() { return this.reimburseInvoiceService; } + + @Override + public WxMaDeviceSubscribeService getDeviceSubscribeService(){ return this.deviceSubscribeService; } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImpl.java new file mode 100644 index 0000000000..db12ab9b5f --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImpl.java @@ -0,0 +1,50 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaDeviceSubscribeService; +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceSubscribeMessageRequest; +import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceTicketRequest; +import cn.binarywang.wx.miniapp.constant.WxMaConstants; +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; + +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.DeviceSubscribe.GET_SN_TICKET_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.DeviceSubscribe.SEND_DEVICE_SUBSCRIBE_MSG_URL; + +/** + * 小程序设备订阅消息相关 API + * 文档: + * + * @author JCLee + * @since 2021-12-16 17:13:35 + */ + +@RequiredArgsConstructor +public class WxMaDeviceSubscribeServiceImpl implements WxMaDeviceSubscribeService { + + private final WxMaService service; + + @Override + public String getSnTicket(WxMaDeviceTicketRequest deviceTicketRequest) throws WxErrorException { + String responseContent = this.service.post(GET_SN_TICKET_URL, deviceTicketRequest.toJson()); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(WxMaConstants.ERRCODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + String snTicket = jsonObject.get("sn_ticket").getAsString(); + return snTicket; + } + + @Override + public void sendDeviceSubscribeMsg(WxMaDeviceSubscribeMessageRequest deviceSubscribeMessageRequest) throws WxErrorException { + String responseContent = this.service.post(SEND_DEVICE_SUBSCRIBE_MSG_URL, deviceSubscribeMessageRequest.toJson()); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(WxMaConstants.ERRCODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceSubscribeMessageRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceSubscribeMessageRequest.java new file mode 100644 index 0000000000..34158391a0 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceSubscribeMessageRequest.java @@ -0,0 +1,72 @@ +package cn.binarywang.wx.miniapp.bean.device; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * 小程序设备订阅消息请求参数 + * + * @author JCLee + * @since 2021-12-16 17:13:22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaDeviceSubscribeMessageRequest implements Serializable { + + private static final long serialVersionUID = -7973228178407991299L; + + /** + * 接收者(用户)的 openid列表. + */ + @SerializedName("to_openid_list") + private List toOpenidList; + + /** + * 下发通知的设备唯⼀序列号。由⼚商⽣成 + */ + @SerializedName("sn") + private String sn; + + /** + * 所需下发的消息模板ID + */ + @SerializedName("template_id") + private String templateId; + + /** + * 点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转. + */ + @SerializedName("page") + private String page; + + /** + * 跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版. + */ + @SerializedName("miniprogram_state") + private String miniprogramState; + + /** + * 进入小程序查看”的语言类型,支持zh_CN(简体中文)、en_US(英文)、zh_HK(繁体中文)、zh_TW(繁体中文),默认为zh_CN. + */ + @SerializedName("lang") + private String lang; + + /** + * 模板内容,格式形如 { "key1": { "value": any }, "key2": { "value": any } }. + */ + @SerializedName("data") + private Object data; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceTicketRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceTicketRequest.java new file mode 100644 index 0000000000..c3319eecde --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/device/WxMaDeviceTicketRequest.java @@ -0,0 +1,41 @@ +package cn.binarywang.wx.miniapp.bean.device; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 小程序设备ticket请求参数 + * + * @author JCLee + * @since 2021-12-16 17:13:28 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaDeviceTicketRequest implements Serializable { + private static final long serialVersionUID = -2152114813101871295L; + + /** + * 设备型号id。通过注册设备获得(必填) + * + */ + @SerializedName("model_id") + private String modelId; + + /** + * 设备唯⼀序列号。由⼚商分配。⻓度不能超过128字节。字符只接受数字与⼤⼩写字⺟(必填) + */ + @SerializedName("sn") + private String sn; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 17b72c8db5..0ab0d279d3 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -396,4 +396,18 @@ public interface Invoice{ public interface Internet{ String GET_USER_ENCRYPT_KEY = "https://api.weixin.qq.com/wxa/business/getuserencryptkey"; } + + /** + * 设备订阅消息 + */ + public interface DeviceSubscribe { + /** + * 获取设备票据 + */ + String GET_SN_TICKET_URL = "https://api.weixin.qq.com/wxa/getsnticket"; + /** + * 发送设备订阅消息 + */ + String SEND_DEVICE_SUBSCRIBE_MSG_URL = "https://api.weixin.qq.com/cgi-bin/message/device/subscribe/send"; + } } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImplTest.java new file mode 100644 index 0000000000..e1c4390549 --- /dev/null +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaDeviceSubscribeServiceImplTest.java @@ -0,0 +1,59 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceSubscribeMessageRequest; +import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceTicketRequest; +import cn.binarywang.wx.miniapp.test.ApiTestModule; +import com.google.common.collect.Lists; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonObject; +import com.google.inject.Inject; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +/** + * 小程序设备订阅消息相关 测试类 + * + * @author JCLee + * @since 2021-12-16 17:13:35 + */ +@Test +@Guice(modules = ApiTestModule.class) +public class WxMaDeviceSubscribeServiceImplTest { + + @Inject + protected WxMaService wxService; + + @Test + public void testGetSnTicket() throws WxErrorException{ + WxMaDeviceTicketRequest wxMaDeviceTicketRequest = new WxMaDeviceTicketRequest(); + wxMaDeviceTicketRequest.setModelId("11111"); + wxMaDeviceTicketRequest.setSn("11111"); + String snTicket = this.wxService.getDeviceSubscribeService().getSnTicket(wxMaDeviceTicketRequest); + System.out.println(snTicket); + } + + @Test + public void sendDeviceSubscribeMsg() throws WxErrorException{ + WxMaDeviceSubscribeMessageRequest wxMaDeviceSubscribeMessageRequest = new WxMaDeviceSubscribeMessageRequest(); + wxMaDeviceSubscribeMessageRequest.setToOpenidList(Lists.newArrayList("1", "2")); + wxMaDeviceSubscribeMessageRequest.setPage("pages/index/index"); + wxMaDeviceSubscribeMessageRequest.setTemplateId("11111111"); + wxMaDeviceSubscribeMessageRequest.setSn("111111"); + JsonObject data = GsonParser.parse("{\n" + + "\t\t\"thing2\": {\n" + + "\t\t\t\"value\": \"阳台\"\n" + + "\t\t},\n" + + "\t\t\"time1\": {\n" + + "\t\t\t\"value\": \"2021-09-30 13:32:44\"\n" + + "\t\t},\n" + + "\t\t\"thing3\": {\n" + + "\t\t\t\"value\": \"洗衣已完成\"\n" + + "\t\t}\n" + + "\t}"); + wxMaDeviceSubscribeMessageRequest.setData(data); + this.wxService.getDeviceSubscribeService().sendDeviceSubscribeMsg(wxMaDeviceSubscribeMessageRequest); + } +} From 51b3dc0efb9605167104fb255875e400d8a5e254 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 17 Dec 2021 12:06:32 +0800 Subject: [PATCH 074/622] =?UTF-8?q?:art:=20=E9=83=A8=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=BA=E5=A4=B1=E7=9A=84@Data=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java | 3 +++ .../mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java index 9048ceb059..0d48cd79fd 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java @@ -1,10 +1,13 @@ package me.chanjar.weixin.mp.bean.invoice.merchant; +import lombok.Data; + import java.io.Serializable; /** * 拒绝开票请求参数 */ +@Data public class InvoiceRejectRequest implements Serializable { /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java index f7a64edfc3..9c54b82c1f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java @@ -1,10 +1,13 @@ package me.chanjar.weixin.mp.bean.invoice.merchant; +import lombok.Data; + import java.io.Serializable; /** * 商户的开票平台信息 */ +@Data public class MerchantInvoicePlatformInfo implements Serializable { /** From ef293d284e1c24b5b774546ee53ba277f0466e5f Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 17 Dec 2021 12:06:47 +0800 Subject: [PATCH 075/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=AD=97=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/result/WxPayApplyBillV3Result.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayApplyBillV3Result.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayApplyBillV3Result.java index f5fbf764c3..11915538f5 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayApplyBillV3Result.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayApplyBillV3Result.java @@ -41,8 +41,8 @@ public class WxPayApplyBillV3Result implements Serializable { * 示例值:79bb0f45fc4c42234a918000b2668d689e2bde04 *
*/ - @SerializedName(value = "out_refund_no") - private String outRefundNo; + @SerializedName(value = "hash_value") + private String hashValue; /** *
    * 字段名:账单下载地址

From 228c71c42a3d24ed49224b4c3e9896aed13f0b9e Mon Sep 17 00:00:00 2001
From: 0katekate0 <32161300+0katekate0@users.noreply.github.com>
Date: Fri, 17 Dec 2021 16:16:48 +0800
Subject: [PATCH 076/622] =?UTF-8?q?:art:=20#2452=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E9=83=A8?=
 =?UTF-8?q?=E9=97=A8=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0?=
 =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=AD=97=E6=AE=B5=20departmentLeader?=
 =?UTF-8?q?=EF=BC=88=E9=83=A8=E9=97=A8=E8=B4=9F=E8=B4=A3=E4=BA=BA=E7=9A=84?=
 =?UTF-8?q?UserID=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../me/chanjar/weixin/cp/bean/WxCpDepart.java |  5 ++-
 .../cp/util/json/WxCpDepartGsonAdapter.java   | 29 +++++++++-----
 .../WxCpUserExternalContactInfoTest.java      | 38 +++++++++++++++++++
 3 files changed, 61 insertions(+), 11 deletions(-)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java
index f5b9b32592..5c640c51ce 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java
@@ -1,10 +1,10 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import lombok.Data;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * 企业微信的部门.
  *
@@ -17,6 +17,7 @@ public class WxCpDepart implements Serializable {
   private Long id;
   private String name;
   private String enName;
+  private String[] departmentLeader;
   private Long parentId;
   private Long order;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpDepartGsonAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpDepartGsonAdapter.java
index 4340855fda..af9344b701 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpDepartGsonAdapter.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpDepartGsonAdapter.java
@@ -8,18 +8,12 @@
  */
 package me.chanjar.weixin.cp.util.json;
 
-import java.lang.reflect.Type;
-
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.JsonSerializationContext;
-import com.google.gson.JsonSerializer;
+import com.google.gson.*;
 import me.chanjar.weixin.common.util.json.GsonHelper;
 import me.chanjar.weixin.cp.bean.WxCpDepart;
 
+import java.lang.reflect.Type;
+
 /**
  * WxCpDepart的gson适配器.
  *
@@ -29,6 +23,7 @@ public class WxCpDepartGsonAdapter implements JsonSerializer, JsonDe
   private static final String ID = "id";
   private static final String NAME = "name";
   private static final String EN_NAME = "name_en";
+  private static final String DEPARTMENT_LEADER = "department_leader";
   private static final String PARENT_ID = "parentid";
   private static final String ORDER = "order";
 
@@ -44,6 +39,13 @@ public JsonElement serialize(WxCpDepart group, Type typeOfSrc, JsonSerialization
     if (group.getEnName() != null) {
       json.addProperty(EN_NAME, group.getEnName());
     }
+    if (group.getDepartmentLeader() != null) {
+      JsonArray jsonArray = new JsonArray();
+      for (String department : group.getDepartmentLeader()) {
+        jsonArray.add(new JsonPrimitive(department));
+      }
+      json.add(DEPARTMENT_LEADER, jsonArray);
+    }
     if (group.getParentId() != null) {
       json.addProperty(PARENT_ID, group.getParentId());
     }
@@ -67,6 +69,15 @@ public WxCpDepart deserialize(JsonElement json, Type typeOfT, JsonDeserializatio
     if (departJson.get(EN_NAME) != null && !departJson.get(EN_NAME).isJsonNull()) {
       depart.setEnName(GsonHelper.getAsString(departJson.get(EN_NAME)));
     }
+    if (departJson.getAsJsonArray(DEPARTMENT_LEADER) != null && !departJson.get(DEPARTMENT_LEADER).isJsonNull()) {
+      JsonArray jsonArray = departJson.getAsJsonArray(DEPARTMENT_LEADER);
+      String[] departments = new String[jsonArray.size()];
+      int i = 0;
+      for (JsonElement jsonElement : jsonArray) {
+        departments[i++] = jsonElement.getAsString();
+      }
+      depart.setDepartmentLeader(departments);
+    }
     if (departJson.get(ORDER) != null && !departJson.get(ORDER).isJsonNull()) {
       depart.setOrder(GsonHelper.getAsLong(departJson.get(ORDER)));
     }
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java
index c666c1b94d..d0003ccd8f 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java
@@ -78,6 +78,44 @@ public void testFromJson() {
       "    }\n" +
       "  ]\n" +
       "}";
+    
+        final String testJson = "{\n" +
+      "   \"errcode\": 0,\n" +
+      "   \"errmsg\": \"ok\",\n" +
+      "   \"department\": [\n" +
+      "       {\n" +
+      "           \"id\": 2,\n" +
+      "           \"name\": \"广州研发中心\",\n" +
+      "           \"name_en\": \"RDGZ\",\n" +
+      "           \"department_leader\":[\"zhangsan\",\"lisi\"],\n" +
+      "           \"parentid\": 1,\n" +
+      "           \"order\": 10\n" +
+      "       },\n" +
+      "       {\n" +
+      "           \"id\": 3,\n" +
+      "           \"name\": \"邮箱产品部\",\n" +
+      "           \"name_en\": \"mail\",\n" +
+      "           \"department_leader\":[\"lisi\",\"wangwu\"],\n" +
+      "           \"parentid\": 2,\n" +
+      "           \"order\": 40\n" +
+      "       }\n" +
+      "   ]\n" +
+      "}\n";
+
+    // 测试序列化
+    val depart = new WxCpDepart();
+    depart.setId(8L);
+    depart.setName("name");
+    depart.setEnName("enName");
+    depart.setDepartmentLeader(new String[]{"zhangsan", "lisi"});
+    depart.setParentId(88L);
+    depart.setOrder(99L);
+
+    String toJson = depart.toJson();
+
+    // 测试企业微信字段返回
+    List department = WxCpGsonBuilder.create().fromJson(GsonParser.parse(two).get("department"), new TypeToken>() {
+    }.getType());
 
     final WxCpExternalContactInfo contactInfo = WxCpExternalContactInfo.fromJson(json);
     assertThat(contactInfo).isNotNull();

From 8449f2f942589eb8debd56f4a64c1d2202643bdb Mon Sep 17 00:00:00 2001
From: Aron 
Date: Fri, 17 Dec 2021 15:00:39 +0000
Subject: [PATCH 077/622] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=AD=A3=E6=B3=A8?=
 =?UTF-8?q?=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/bean/request/WxPayRefundV3Request.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
index 4ebb10fba1..b534416257 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
@@ -143,7 +143,7 @@ public static class Amount implements Serializable {
      * 
      * 字段名:币类型
      * 变量名:currency
-     * 是否必填:否
+     * 是否必填:是
      * 类型:string[1, 16]
      * 描述:
      *  符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。

From d6d0e3598427bb6a6db9a7965e95f94320db4f16 Mon Sep 17 00:00:00 2001
From: Wong <1960779692@qq.com>
Date: Mon, 20 Dec 2021 15:34:35 +0000
Subject: [PATCH 078/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E6=B5=8B?=
 =?UTF-8?q?=E8=AF=95=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../external/WxCpUserExternalContactInfoTest.java     | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java
index d0003ccd8f..ce5475358a 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactInfoTest.java
@@ -1,8 +1,13 @@
 package me.chanjar.weixin.cp.bean.external;
 
+import com.google.gson.reflect.TypeToken;
+import lombok.val;
+import me.chanjar.weixin.common.util.json.GsonParser;
+import me.chanjar.weixin.cp.bean.WxCpDepart;
 import me.chanjar.weixin.cp.bean.external.contact.ExternalContact;
 import me.chanjar.weixin.cp.bean.external.contact.FollowedUser;
 import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 import org.testng.annotations.*;
 
 import java.util.List;
@@ -78,8 +83,8 @@ public void testFromJson() {
       "    }\n" +
       "  ]\n" +
       "}";
-    
-        final String testJson = "{\n" +
+
+    final String testJson = "{\n" +
       "   \"errcode\": 0,\n" +
       "   \"errmsg\": \"ok\",\n" +
       "   \"department\": [\n" +
@@ -114,7 +119,7 @@ public void testFromJson() {
     String toJson = depart.toJson();
 
     // 测试企业微信字段返回
-    List department = WxCpGsonBuilder.create().fromJson(GsonParser.parse(two).get("department"), new TypeToken>() {
+    List department = WxCpGsonBuilder.create().fromJson(GsonParser.parse(testJson).get("department"), new TypeToken>() {
     }.getType());
 
     final WxCpExternalContactInfo contactInfo = WxCpExternalContactInfo.fromJson(json);

From 43594d71b1cdbaa7f90a0b07bc20ea84a3c339bc Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Wed, 22 Dec 2021 12:41:29 +0800
Subject: [PATCH 079/622] Update README.md

---
 README.md | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 694758d6a3..18db207f70 100644
--- a/README.md
+++ b/README.md
@@ -40,11 +40,12 @@
 
 ### 重要信息
 1. **2021-11-01 发布 [【4.2.0正式版】](https://mp.weixin.qq.com/s/nIk_xOf6dxkhKfqq830Cuw)**!
-1. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。
-1. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识;
-1. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。
-1. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前,请先阅读[【提问的智慧】](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间;
-1. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com 
+2. 贡献源码,请参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007)
+3. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。
+4. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识;
+5. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。
+6. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前,请先阅读[【提问的智慧】](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间;
+7. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com 
 
 --------------------------------
 ### 其他说明

From 2e4d73e8b796bb1c573e4e55ee3ca9492c0673cd Mon Sep 17 00:00:00 2001
From: jamy888 
Date: Thu, 23 Dec 2021 08:47:44 +0000
Subject: [PATCH 080/622] =?UTF-8?q?:new:=20=E3=80=90=E4=BC=81=E4=B8=9A?=
 =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E6=94=B9=E8=A7=A3=E6=9E=90?=
 =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E6=8E=A8=E9=80=81=E6=B6=88?=
 =?UTF-8?q?=E6=81=AF=E7=B1=BB=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=AF=B9=E4=BC=81?=
 =?UTF-8?q?=E5=BE=AE=E5=AE=A2=E6=88=B7=E8=81=94=E7=B3=BB=E5=8F=98=E6=9B=B4?=
 =?UTF-8?q?=E5=9B=9E=E8=B0=83=E4=BA=8B=E4=BB=B6=E7=9A=84=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../cp/bean/message/WxCpXmlMessage.java       |  41 +++++-
 .../bean/message/WxCpXmlOutEventMessage.java  |  83 +++++++++++
 .../cp/bean/message/WxCpXmlOutMessage.java    |   7 +
 .../cp/bean/outxmlbuilder/EventBuilder.java   | 131 ++++++++++++++++++
 .../weixin/cp/constant/WxCpConsts.java        | 119 ++++++++++++++--
 .../cp/util/xml/XStreamTransformer.java       |   8 ++
 6 files changed, 379 insertions(+), 10 deletions(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
index 51beb27eee..a95870590f 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
@@ -138,6 +138,29 @@ public class WxCpXmlMessage implements Serializable {
   @XStreamConverter(value = XStreamCDataConverter.class)
   private String event;
 
+  @XStreamAlias("UpdateDetail")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String updateDetail;
+
+  @XStreamAlias("JoinScene")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String joinScene;
+
+  @XStreamAlias("QuitScene")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String quitScene;
+
+  @XStreamAlias("MemChangeCnt")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String memChangeCnt;
+
+  @XStreamAlias("Source")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String source;
+
+  @XStreamAlias("StrategyId")
+  private String strategyId;
+
   @XStreamAlias("EventKey")
   @XStreamConverter(value = XStreamCDataConverter.class)
   private String eventKey;
@@ -453,6 +476,14 @@ protected static WxCpXmlMessage fromXml(String xml) {
     return xmlMessage;
   }
 
+  public static WxCpXmlMessage fromXml(String xml, Integer agentId) {
+    //修改微信变态的消息内容格式,方便解析
+    xml = xml.replace("", "");
+    final WxCpXmlMessage xmlMessage = fromXml(xml);
+    xmlMessage.setAgentId(agentId);
+    return xmlMessage;
+  }
+
   protected static WxCpXmlMessage fromXml(InputStream is) {
     return XStreamTransformer.fromXml(WxCpXmlMessage.class, is);
   }
@@ -463,9 +494,15 @@ protected static WxCpXmlMessage fromXml(InputStream is) {
   public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigStorage wxCpConfigStorage,
                                                 String timestamp, String nonce, String msgSignature) {
     WxCpCryptUtil cryptUtil = new WxCpCryptUtil(wxCpConfigStorage);
-    String plainText = cryptUtil.decryptXml(msgSignature, timestamp, nonce, encryptedXml);
+    WxCpXmlMessage wxCpXmlMessage = fromXml(encryptedXml);
+    String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
     log.debug("解密后的原始xml消息内容:{}", plainText);
-    return fromXml(plainText);
+    if (null != wxCpXmlMessage.getAgentId()) {
+      return fromXml(plainText, wxCpXmlMessage.getAgentId());
+    } else {
+      return fromXml(plainText);
+    }
+
   }
 
   public static WxCpXmlMessage fromEncryptedXml(InputStream is, WxCpConfigStorage wxCpConfigStorage,
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java
new file mode 100644
index 0000000000..2b32d9c40e
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java
@@ -0,0 +1,83 @@
+package me.chanjar.weixin.cp.bean.message;
+
+import com.thoughtworks.xstream.annotations.XStreamAlias;
+import com.thoughtworks.xstream.annotations.XStreamConverter;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.common.api.WxConsts;
+import me.chanjar.weixin.common.util.xml.*;
+
+/**
+ * @author eYoung
+ * @description:
+ * @date create at 2021/12/3 16:36
+ */
+@XStreamAlias("xml")
+@Data
+@EqualsAndHashCode(callSuper = false)
+public class WxCpXmlOutEventMessage extends WxCpXmlOutMessage {
+
+  @XStreamAlias("Event")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String event;
+
+  @XStreamAlias("ChatId")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String chatId;
+
+  @XStreamAlias("ChangeType")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String changeType;
+
+  @XStreamAlias("UpdateDetail")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String updateDetail;
+
+  @XStreamAlias("JoinScene")
+  private String joinScene;
+
+  @XStreamAlias("QuitScene")
+  private String quitScene;
+
+  @XStreamAlias("MemChangeCnt")
+  private String memChangeCnt;
+
+  @XStreamAlias("TagType")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String tagType;
+
+  @XStreamAlias("StrategyId")
+  private String strategyId;
+
+  @XStreamAlias("UserID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String userID;
+
+  @XStreamAlias("ExternalUserID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String externalUserID;
+
+  @XStreamAlias("State")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String state;
+
+  @XStreamAlias("WelcomeCode")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String welcomeCode;
+
+  @XStreamAlias("Source")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String source;
+
+  @XStreamAlias("FailReason")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String failReason;
+
+  @XStreamAlias("Id")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String id;
+
+  public WxCpXmlOutEventMessage() {
+    this.msgType = WxConsts.XmlMsgType.EVENT;
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java
index 70882561b7..f1c9831b92 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java
@@ -86,6 +86,13 @@ public static UpdateButtonBuilder UPDATE_BUTTON() {
     return new UpdateButtonBuilder();
   }
 
+  /**
+   * 获得事件消息builder.
+   */
+  public static EventBuilder EVENT() {
+    return new EventBuilder();
+  }
+
   protected String toXml() {
     return XStreamTransformer.toXml((Class) this.getClass(), this);
   }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java
new file mode 100644
index 0000000000..5e2ee481fc
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java
@@ -0,0 +1,131 @@
+package me.chanjar.weixin.cp.bean.outxmlbuilder;
+
+import me.chanjar.weixin.cp.bean.message.WxCpXmlOutEventMessage;
+
+/**
+ * @author eYoung
+ * @description:
+ * @date create at 2021/12/3 16:34
+ */
+public class EventBuilder extends BaseBuilder {
+
+  private String event;
+  private String chatId;
+  private String changeType;
+  private String updateDetail;
+  private String joinScene;
+  private String quitScene;
+  private String memChangeCnt;
+  private String tagType;
+  private String strategyId;
+  private String userID;
+  private String externalUserID;
+  private String state;
+  private String welcomeCode;
+  private String source;
+  private String failReason;
+  private String id;
+
+  public EventBuilder chatId(String chatId) {
+    this.chatId = chatId;
+    return this;
+  }
+
+  public EventBuilder event(String event) {
+    this.event = event;
+    return this;
+  }
+
+  public EventBuilder changeType(String changeType) {
+    this.changeType = changeType;
+    return this;
+  }
+
+  public EventBuilder updateDetail(String updateDetail) {
+    this.updateDetail = updateDetail;
+    return this;
+  }
+
+  public EventBuilder joinScene(String joinScene) {
+    this.joinScene = joinScene;
+    return this;
+  }
+
+  public EventBuilder quitScene(String quitScene) {
+    this.quitScene = quitScene;
+    return this;
+  }
+
+  public EventBuilder memChangeCnt(String memChangeCnt) {
+    this.memChangeCnt = memChangeCnt;
+    return this;
+  }
+
+  public EventBuilder tagType(String tagType) {
+    this.tagType = tagType;
+    return this;
+  }
+
+  public EventBuilder strategyId(String strategyId) {
+    this.strategyId = strategyId;
+    return this;
+  }
+
+  public EventBuilder userID(String userID) {
+    this.userID = userID;
+    return this;
+  }
+
+  public EventBuilder externalUserID(String externalUserID) {
+    this.externalUserID = externalUserID;
+    return this;
+  }
+
+  public EventBuilder state(String state) {
+    this.state = state;
+    return this;
+  }
+
+  public EventBuilder source(String source){
+    this.source = source;
+    return this;
+  }
+
+  public EventBuilder welcomeCode(String welcomeCode) {
+    this.welcomeCode = welcomeCode;
+    return this;
+  }
+
+  public EventBuilder failReason(String failReason){
+    this.failReason = failReason;
+    return this;
+  }
+
+  public EventBuilder id(String id){
+    this.id = id;
+    return this;
+  }
+
+  @Override
+  public WxCpXmlOutEventMessage build() {
+    WxCpXmlOutEventMessage m = new WxCpXmlOutEventMessage();
+    super.setCommon(m);
+    m.setEvent(this.event);
+    m.setChatId(this.chatId);
+    m.setChangeType(this.changeType);
+    m.setUpdateDetail(this.updateDetail);
+    m.setJoinScene(this.joinScene);
+    m.setQuitScene(this.quitScene);
+    m.setMemChangeCnt(this.memChangeCnt);
+    m.setTagType(this.tagType);
+    m.setStrategyId(this.strategyId);
+    m.setUserID(this.userID);
+    m.setExternalUserID(this.externalUserID);
+    m.setState(this.state);
+    m.setWelcomeCode(this.welcomeCode);
+    m.setSource(this.source);
+    m.setFailReason(this.failReason);
+    m.setId(this.id);
+    return m;
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java
index f706c18991..0c7648a9e9 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java
@@ -98,6 +98,16 @@ public static class EventType {
      */
     public static final String CHANGE_EXTERNAL_CONTACT = "change_external_contact";
 
+    /**
+     * 客户群事件推送
+     */
+    public static final String CHANGE_EXTERNAL_CHAT = "change_external_chat";
+
+    /**
+     * 企业客户标签事件推送
+     */
+    public static final String CHANGE_EXTERNAL_TAG = "change_external_tag";
+
     /**
      * 企业微信审批事件推送(自建应用审批)
      */
@@ -144,6 +154,10 @@ public static class ExternalContactChangeType {
      * 新增外部联系人
      */
     public static final String ADD_EXTERNAL_CONTACT = "add_external_contact";
+    /**
+     * 编辑外部联系人
+     */
+    public static final String EDIT_EXTERNAL_CONTACT = "edit_external_contact";
     /**
      * 删除外部联系人
      */
@@ -157,7 +171,96 @@ public static class ExternalContactChangeType {
      * 删除跟进成员事件
      */
     public static final String DEL_FOLLOW_USER = "del_follow_user";
+    /**
+     * 客户接替失败事件
+     */
+    public static final String TRANSFER_FAIL = "transfer_fail";
+
+    @UtilityClass
+    public static class ExternalContactTransferFailReason {
+      /**
+       * 客户拒绝
+       */
+      public static final String CUSTOMER_REFUSED = "customer_refused";
+      /**
+       * 接替成员的客户数达到上限
+       */
+      public static final String CUSTOMER_LIMIT_EXCEED = "customer_limit_exceed";
+    }
+  }
+
+  @UtilityClass
+  public static class ExternalChatChangeType {
+    /**
+     * 客户群变更事件
+     */
+    public static final String CREATE = "create";
+    /**
+     * 客户群变更事件
+     */
+    public static final String UPDATE = "update";
+    /**
+     * 客户群解散事件
+     */
+    public static final String DISMISS = "dismiss";
+
+    @UtilityClass
+    public static class ExternalChatUpdateDetail {
+      /**
+       * 成员入群
+       */
+      public static final String ADD_MEMBER = "add_member";
+      /**
+       * 成员退群
+       */
+      public static final String DEL_MEMBER = "del_member";
+      /**
+       * 成员退群
+       */
+      public static final String CHANGE_OWNER = "change_owner";
+      /**
+       * 群名变更
+       */
+      public static final String CHANGE_NAME = "change_name";
+      /**
+       * 群公告变更
+       */
+      public static final String CHANGE_NOTICE = "change_notice";
+    }
   }
+  @UtilityClass
+  public static class ExternalTagChangeType{
+
+    /**
+     * 创建企业客户标签
+     */
+    public static final String CREATE = "create";
+    /**
+     * 变更企业客户标签
+     */
+    public static final String UPDATE = "update";
+    /**
+     * 删除企业客户标签
+     */
+    public static final String DELETE = "delete";
+    /**
+     * 重排企业客户标签
+     */
+    public static final String SHUFFLE = "shuffle";
+  }
+
+  @UtilityClass
+  public static class TageType{
+    /**
+     * 标签
+     */
+    public static final String TAG = "tag";
+    /**
+     * 标签组
+     */
+    public static final String TAG_GROUP = "tag_group";
+  }
+
 
   /**
    * 企业微信通讯录变更事件.
@@ -318,20 +421,20 @@ public static class AppChatMsgType {
   @UtilityClass
   public static class WorkBenchType {
     /*
-    * 关键数据型
-    * */
+     * 关键数据型
+     * */
     public static final String KEYDATA = "keydata";
     /*
-    * 图片型
-    * */
+     * 图片型
+     * */
     public static final String IMAGE = "image";
     /*
-    * 列表型
-    * */
+     * 列表型
+     * */
     public static final String LIST = "list";
     /*
-    * webview型
-    * */
+     * webview型
+     * */
     public static final String WEBVIEW = "webview";
   }
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java
index 421765bc0f..62ea5072ee 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java
@@ -57,6 +57,7 @@ private static Map configXStreamInstance() {
     map.put(WxCpXmlOutUpdateBtnMessage.class, configWxCpXmlOutUpdateBtnMessage());
     map.put(WxCpTpXmlPackage.class, configWxCpTpXmlPackage());
     map.put(WxCpTpXmlMessage.class, configWxCpTpXmlMessage());
+    map.put(WxCpXmlOutEventMessage.class, configWxCpXmlOutEventMessage());
     return map;
   }
 
@@ -141,4 +142,11 @@ private static XStream configWxCpTpXmlMessage() {
     return xstream;
   }
 
+  private static XStream configWxCpXmlOutEventMessage() {
+    XStream xstream = XStreamInitializer.getInstance();
+    xstream.processAnnotations(WxCpXmlOutMessage.class);
+    xstream.processAnnotations(WxCpXmlOutEventMessage.class);
+    return xstream;
+  }
+
 }

From 2175e94158a44c757bc03722d67f58fdeb7e2548 Mon Sep 17 00:00:00 2001
From: Wong <1960779692@qq.com>
Date: Fri, 24 Dec 2021 01:29:52 +0000
Subject: [PATCH 081/622] =?UTF-8?q?:new:=20=E3=80=90=E4=BC=81=E4=B8=9A?=
 =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E7=9B=B4=E6=92=AD?=
 =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/api/WxCpLivingService.java      | 125 ++++++++++++++++++
 .../me/chanjar/weixin/cp/api/WxCpService.java |   7 +
 .../cp/api/impl/BaseWxCpServiceImpl.java      |   6 +
 .../cp/api/impl/WxCpLivingServiceImpl.java    | 118 +++++++++++++++++
 .../bean/living/WxCpLivingCreateRequest.java  |  86 ++++++++++++
 .../weixin/cp/bean/living/WxCpLivingInfo.java |  80 +++++++++++
 .../bean/living/WxCpLivingModifyRequest.java  |  56 ++++++++
 .../cp/bean/living/WxCpLivingResult.java      |  55 ++++++++
 .../cp/bean/living/WxCpLivingShareInfo.java   |  40 ++++++
 .../weixin/cp/bean/living/WxCpWatchStat.java  |  90 +++++++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  15 ++-
 .../chanjar/weixin/cp/api/WxCpLivingTest.java |  99 ++++++++++++++
 12 files changed, 775 insertions(+), 2 deletions(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java
 create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java
new file mode 100644
index 0000000000..4b417e90f2
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java
@@ -0,0 +1,125 @@
+package me.chanjar.weixin.cp.api;
+
+import lombok.NonNull;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.bean.living.*;
+
+/**
+ * 企业微信直播接口.
+ * 官方文档:https://work.weixin.qq.com/api/doc/90000/90135/93633
+ *
+ * @author Wang_Wong
+ * @date 2021-12-21
+ */
+public interface WxCpLivingService {
+
+  /**
+   * 获取微信观看直播凭证
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/get_living_code?access_token=ACCESS_TOKEN
+   *
+   * @param openId 用户openid
+   * @param livingId 直播id
+   * @return living_code 微信观看直播凭证
+   * @throws WxErrorException the wx error exception
+   */
+  String getLivingCode(@NonNull String openId, @NonNull String livingId) throws WxErrorException;
+
+  /**
+   * 获取直播详情
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_living_info?access_token=ACCESS_TOKEN&livingid=LIVINGID
+   *
+   * @param livingId 直播id
+   * @return 获取的直播详情
+   * @throws WxErrorException the wx error exception
+   */
+  WxCpLivingInfo getLivingInfo(@NonNull String livingId) throws WxErrorException;
+
+  /**
+   * 获取直播观看明细
+   * 通过该接口可以获取所有观看直播的人员统计
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_watch_stat?access_token=ACCESS_TOKEN
+   *
+   * @param livingId 直播id
+   * @param nextKey 上一次调用时返回的next_key,初次调用可以填”0”
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpWatchStat getWatchStat(@NonNull String livingId, Integer nextKey) throws WxErrorException;
+
+  /**
+   * 获取成员直播ID列表
+   * 通过此接口可以获取指定成员的所有直播ID
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?access_token=ACCESS_TOKEN
+   *
+   * @param userId 企业成员的userid
+   * @param cursor 上一次调用时返回的next_cursor,第一次拉取可以不填
+   * @param limit 每次拉取的数据量,默认值和最大值都为100
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpLivingResult.LivingIdResult getUserAllLivingId(@NonNull String userId, String cursor, Integer limit) throws WxErrorException;
+
+  /**
+   * 获取跳转小程序商城的直播观众信息
+   * 通过此接口,开发者可获取跳转小程序商城的直播间(“推广产品”直播)观众id、邀请人id及对应直播间id,以打通卖货直播的“人货场”信息闭环。
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_living_share_info?access_token=ACCESS_TOKEN
+   *
+   * @param wwShareCode "推广产品"直播观众跳转小程序商城时会在小程序path中带上ww_share_code=xxxxx参数
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpLivingShareInfo getLivingShareInfo(@NonNull String wwShareCode) throws WxErrorException;
+
+  /**
+   * 创建预约直播
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/create?access_token=ACCESS_TOKEN
+   *
+   * @param request 创建预约直播请求参数.
+   * @return
+   * @throws WxErrorException
+   */
+  String livingCreate(WxCpLivingCreateRequest request) throws WxErrorException;
+
+  /**
+   * 修改预约直播
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/modify?access_token=ACCESS_TOKEN
+   *
+   * @param request 修改预约直播请求参数.
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpLivingResult livingModify(WxCpLivingModifyRequest request) throws WxErrorException;
+
+  /**
+   * 取消预约直播
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/cancel?access_token=ACCESS_TOKEN
+   *
+   * @param livingId 直播id,仅允许取消预约状态下的直播id
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpLivingResult livingCancel(@NonNull String livingId) throws WxErrorException;
+
+  /**
+   * 删除直播回放
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/delete_replay_data?access_token=ACCESS_TOKEN
+   *
+   * @param livingId 直播id
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpLivingResult deleteReplayData(@NonNull String livingId) throws WxErrorException;
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
index 94cd212637..123697b8ed 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
@@ -392,6 +392,13 @@ public interface WxCpService extends WxService {
    */
   WxCpOaService getOaService();
 
+  /**
+   * 获取直播相关接口的服务类对象
+   *
+   * @return the Living service
+   */
+  WxCpLivingService getLivingService();
+
   /**
    * 获取日历相关接口的服务类对象
    *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java
index 89221f1a1e..210d54f540 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java
@@ -49,6 +49,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH
   private WxCpTagService tagService = new WxCpTagServiceImpl(this);
   private WxCpAgentService agentService = new WxCpAgentServiceImpl(this);
   private WxCpOaService oaService = new WxCpOaServiceImpl(this);
+  private WxCpLivingService livingService = new WxCpLivingServiceImpl(this);
   private WxCpTaskCardService taskCardService = new WxCpTaskCardServiceImpl(this);
   private WxCpExternalContactService externalContactService = new WxCpExternalContactServiceImpl(this);
   private WxCpGroupRobotService groupRobotService = new WxCpGroupRobotServiceImpl(this);
@@ -477,6 +478,11 @@ public WxCpOaService getOaService() {
     return oaService;
   }
 
+  @Override
+  public WxCpLivingService getLivingService() {
+    return livingService;
+  }
+
   @Override
   public WxCpOaCalendarService getOaCalendarService() {
     return this.oaCalendarService;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java
new file mode 100644
index 0000000000..5fdf18cf88
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java
@@ -0,0 +1,118 @@
+package me.chanjar.weixin.cp.api.impl;
+
+import com.google.gson.JsonObject;
+import com.google.gson.reflect.TypeToken;
+import lombok.NonNull;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.common.util.json.GsonHelper;
+import me.chanjar.weixin.common.util.json.GsonParser;
+import me.chanjar.weixin.cp.api.WxCpLivingService;
+import me.chanjar.weixin.cp.api.WxCpService;
+import me.chanjar.weixin.cp.bean.living.*;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Living.*;
+
+/**
+ * 企业微信直播接口实现类.
+ *
+ * @author Wang_Wong
+ * @date 2021-12-21
+ */
+@Slf4j
+@RequiredArgsConstructor
+public class WxCpLivingServiceImpl implements WxCpLivingService {
+  private final WxCpService cpService;
+
+  @Override
+  public String getLivingCode(String openId, String livingId) throws WxErrorException {
+    final String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_LIVING_CODE);
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("openid", openId);
+    jsonObject.addProperty("livingid", livingId);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return GsonHelper.getString(GsonParser.parse(responseContent), "living_code");
+  }
+
+  @Override
+  public WxCpLivingInfo getLivingInfo(String livingId) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_LIVING_INFO) + livingId;
+    String responseContent = this.cpService.get(apiUrl, null);
+    return WxCpGsonBuilder.create()
+      .fromJson(GsonParser.parse(responseContent).get("living_info"),
+        new TypeToken() {
+        }.getType()
+      );
+  }
+
+  @Override
+  public WxCpWatchStat getWatchStat(String livingId, Integer nextKey) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_WATCH_STAT);
+    JsonObject jsonObject = new JsonObject();
+    if (nextKey != null) {
+      jsonObject.addProperty("next_key", String.valueOf(nextKey));
+    }
+    jsonObject.addProperty("livingid", livingId);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return WxCpWatchStat.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpLivingResult.LivingIdResult getUserAllLivingId(String userId, String cursor, Integer limit) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_USER_ALL_LIVINGID);
+    JsonObject jsonObject = new JsonObject();
+    if (cursor != null) {
+      jsonObject.addProperty("cursor", cursor);
+    }
+    if (limit != null) {
+      jsonObject.addProperty("limit", limit);
+    }
+    jsonObject.addProperty("userid", userId);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return WxCpLivingResult.LivingIdResult.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpLivingShareInfo getLivingShareInfo(String wwShareCode) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_LIVING_SHARE_INFO);
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("ww_share_code", wwShareCode);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return WxCpLivingShareInfo.fromJson(responseContent);
+  }
+
+  @Override
+  public String livingCreate(WxCpLivingCreateRequest request) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CREATE);
+    String responseContent = this.cpService.post(apiUrl, request.toJson());
+    return GsonHelper.getString(GsonParser.parse(responseContent), "livingid");
+  }
+
+  @Override
+  public WxCpLivingResult livingModify(WxCpLivingModifyRequest request) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(MODIFY);
+    String responseContent = this.cpService.post(apiUrl, request.toJson());
+    return WxCpLivingResult.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpLivingResult livingCancel(@NonNull String livingId) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CANCEL);
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("livingid", livingId);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return WxCpLivingResult.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpLivingResult deleteReplayData(@NonNull String livingId) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DELETE_REPLAY_DATA);
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("livingid", livingId);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return WxCpLivingResult.fromJson(responseContent);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java
new file mode 100644
index 0000000000..6da6b81e55
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java
@@ -0,0 +1,86 @@
+package me.chanjar.weixin.cp.bean.living;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 创建预约直播请求.
+ *
+ * @author Wang_Wong
+ * @date 2021-12-23
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxCpLivingCreateRequest implements Serializable {
+  private static final long serialVersionUID = -4960239393895754138L;
+
+  @SerializedName("anchor_userid")
+  private String anchorUserid;
+
+  @SerializedName("theme")
+  private String theme;
+
+  @SerializedName("living_start")
+  private Long livingStart;
+
+  @SerializedName("living_duration")
+  private Long livingDuration;
+
+  @SerializedName("remind_time")
+  private Long remindTime;
+
+  @SerializedName("description")
+  private String description;
+
+  @SerializedName("type")
+  private Integer type;
+
+  @SerializedName("agentid")
+  private Integer agentId;
+
+  @SerializedName("activity_cover_mediaid")
+  private String activityCoverMediaid;
+
+  @SerializedName("activity_share_mediaid")
+  private String activityShareMediaid;
+
+  @SerializedName("activity_detail")
+  private ActivityDetail activityDetail;
+
+  public static class ActivityDetail implements Serializable {
+
+    @SerializedName("image_list")
+    private String[] imageList;
+
+    @SerializedName("description")
+    private String description;
+
+    public static ActivityDetail fromJson(String json) {
+      return WxCpGsonBuilder.create().fromJson(json, ActivityDetail.class);
+    }
+
+    public String toJson() {
+      return WxCpGsonBuilder.create().toJson(this);
+    }
+
+  }
+
+  public static WxCpLivingCreateRequest fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpLivingCreateRequest.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java
new file mode 100644
index 0000000000..b7010e57e1
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java
@@ -0,0 +1,80 @@
+package me.chanjar.weixin.cp.bean.living;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 直播详情信息.
+ *
+ * @author Wang_Wong
+ */
+@Data
+public class WxCpLivingInfo implements Serializable {
+  private static final long serialVersionUID = -5028321625140879571L;
+
+  @SerializedName("theme")
+  private String theme;
+
+  @SerializedName("living_start")
+  private Long livingStart;
+
+  @SerializedName("living_duration")
+  private Long livingDurationme;
+
+  @SerializedName("status")
+  private Integer status;
+
+  @SerializedName("reserve_living_duration")
+  private Long reserveLivingDuration;
+
+  @SerializedName("reserve_start")
+  private Long reserveStart;
+
+  @SerializedName("description")
+  private String description;
+
+  @SerializedName("anchor_userid")
+  private String anchorUserid;
+
+  @SerializedName("main_department")
+  private Long mainDepartment;
+
+  @SerializedName("viewer_num")
+  private Integer viewerNum;
+
+  @SerializedName("comment_num")
+  private Integer commentNum;
+
+  @SerializedName("mic_num")
+  private Integer micNum;
+
+  @SerializedName("open_replay")
+  private Integer openReplay;
+
+  @SerializedName("replay_status")
+  private Integer replayStatus;
+
+  @SerializedName("type")
+  private Integer type;
+
+  @SerializedName("push_stream_url")
+  private String pushStreamUrl;
+
+  @SerializedName("online_count")
+  private Integer onlineCount;
+
+  @SerializedName("subscribe_count")
+  private Integer subscribeCount;
+
+  public static WxCpLivingInfo fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpLivingInfo.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java
new file mode 100644
index 0000000000..00d1938209
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java
@@ -0,0 +1,56 @@
+package me.chanjar.weixin.cp.bean.living;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 创建预约直播请求.
+ *
+ * @author Wang_Wong
+ * @date 2021-12-23
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxCpLivingModifyRequest implements Serializable {
+  private static final long serialVersionUID = -4960239393895754138L;
+
+  @SerializedName("livingid")
+  private String livingId;
+
+  @SerializedName("theme")
+  private String theme;
+
+  @SerializedName("living_start")
+  private Long livingStart;
+
+  @SerializedName("living_duration")
+  private Long livingDuration;
+
+  @SerializedName("remind_time")
+  private Long remindTime;
+
+  @SerializedName("description")
+  private String description;
+
+  @SerializedName("type")
+  private Integer type;
+
+  public static WxCpLivingModifyRequest fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpLivingModifyRequest.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java
new file mode 100644
index 0000000000..3312eec779
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java
@@ -0,0 +1,55 @@
+package me.chanjar.weixin.cp.bean.living;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 直播返回对象.
+ *
+ * @author Wang_Wong
+ */
+@Data
+public class WxCpLivingResult implements Serializable {
+  private static final long serialVersionUID = -5028321625140879571L;
+
+  @SerializedName("errcode")
+  private Integer errcode;
+
+  @SerializedName("errmsg")
+  private String errmsg;
+
+  @Getter
+  @Setter
+  public static class LivingIdResult implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    @SerializedName("next_cursor")
+    private String nextCursor;
+
+    @SerializedName("livingid_list")
+    private String[] livingidList;
+
+    public static LivingIdResult fromJson(String json) {
+      return WxCpGsonBuilder.create().fromJson(json, LivingIdResult.class);
+    }
+
+    public String toJson() {
+      return WxCpGsonBuilder.create().toJson(this);
+    }
+
+  }
+
+  public static WxCpLivingResult fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpLivingResult.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java
new file mode 100644
index 0000000000..f0b96cc961
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java
@@ -0,0 +1,40 @@
+package me.chanjar.weixin.cp.bean.living;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 跳转小程序商城的直播观众信息.
+ *
+ * @author Wang_Wong
+ */
+@Data
+public class WxCpLivingShareInfo implements Serializable {
+  private static final long serialVersionUID = -5028321625140879571L;
+
+  private String livingid;
+
+  @SerializedName("viewer_userid")
+  private String viewerUserid;
+
+  @SerializedName("viewer_external_userid")
+  private String viewerExternalUserid;
+
+  @SerializedName("invitor_userid")
+  private String invitorUserid;
+
+  @SerializedName("invitor_external_userid")
+  private String invitorExternalUserid;
+
+  public static WxCpLivingShareInfo fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpLivingShareInfo.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java
new file mode 100644
index 0000000000..4a77bdd450
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java
@@ -0,0 +1,90 @@
+package me.chanjar.weixin.cp.bean.living;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 直播观看明细.
+ *
+ * @author Wang_Wong
+ */
+@Data
+public class WxCpWatchStat implements Serializable {
+  private static final long serialVersionUID = -5028321625140879571L;
+
+  private Integer ending;
+
+  @SerializedName("next_key")
+  private String nextKey;
+
+  @SerializedName("stat_info")
+  private StatInfo statInfo;
+
+  @Getter
+  @Setter
+  public static class StatInfo implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    @SerializedName("users")
+    private List users;
+
+    @SerializedName("external_users")
+    private List externalUsers;
+
+  }
+
+  @Getter
+  @Setter
+  public static class User implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    private String userid;
+
+    @SerializedName("watch_time")
+    private Long watchTime;
+
+    @SerializedName("is_comment")
+    private Integer isComment;
+
+    @SerializedName("is_mic")
+    private Integer isMic;
+
+  }
+
+  @Getter
+  @Setter
+  public static class ExternalUser implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    private String name;
+    private Integer type;
+
+    @SerializedName("external_userid")
+    private String externalUserid;
+
+    @SerializedName("watch_time")
+    private Long watchTime;
+
+    @SerializedName("is_comment")
+    private Integer isComment;
+
+    @SerializedName("is_mic")
+    private Integer isMic;
+
+  }
+
+  public static WxCpWatchStat fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpWatchStat.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index 710f7f6a78..c807b0f048 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -1,8 +1,6 @@
 package me.chanjar.weixin.cp.constant;
 
 
-import lombok.experimental.UtilityClass;
-
 /**
  * 
  *  企业微信api地址常量类
@@ -118,6 +116,19 @@ interface Oa {
     String COPY_TEMPLATE = "/cgi-bin/oa/approval/copytemplate";
   }
 
+  interface Living {
+    String GET_LIVING_CODE = "/cgi-bin/living/get_living_code";
+    String GET_LIVING_INFO = "/cgi-bin/living/get_living_info?livingid=";
+    String GET_WATCH_STAT = "/cgi-bin/living/get_watch_stat";
+    String GET_LIVING_SHARE_INFO = "/cgi-bin/living/get_living_share_info";
+    String GET_USER_ALL_LIVINGID = "/cgi-bin/living/get_user_all_livingid";
+
+    String CREATE = "/cgi-bin/living/create";
+    String MODIFY = "/cgi-bin/living/modify";
+    String CANCEL = "/cgi-bin/living/cancel";
+    String DELETE_REPLAY_DATA = "/cgi-bin/living/delete_replay_data";
+  }
+
   interface Tag {
     String TAG_CREATE = "/cgi-bin/tag/create";
     String TAG_UPDATE = "/cgi-bin/tag/update";
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java
new file mode 100644
index 0000000000..295f0497ff
--- /dev/null
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java
@@ -0,0 +1,99 @@
+package me.chanjar.weixin.cp.api;
+
+import lombok.extern.slf4j.Slf4j;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl;
+import me.chanjar.weixin.cp.bean.living.*;
+import me.chanjar.weixin.cp.config.WxCpConfigStorage;
+import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage;
+import org.eclipse.jetty.util.ajax.JSON;
+import org.testng.annotations.Test;
+
+import java.io.InputStream;
+import java.util.Date;
+
+/**
+ * 企业微信直播测试类.
+ * 官方文档:https://open.work.weixin.qq.com/api/doc/90000/90135/93632
+ *
+ * @author Wang_Wong
+ */
+@Slf4j
+public class WxCpLivingTest {
+
+  private static WxCpConfigStorage wxCpConfigStorage;
+  private static WxCpService wxCpService;
+
+  @Test
+  public void test() throws WxErrorException {
+
+    InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml");
+    WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream);
+
+    wxCpConfigStorage = config;
+    wxCpService = new WxCpServiceImpl();
+    wxCpService.setWxCpConfigStorage(config);
+
+    String livingCode = wxCpService.getLivingService().getLivingCode("o50by5NezHciWnoexJsrI49ILNqI", "lvOQpTDwAAD2MYuOq9y_bmLNMJfbbdGw");
+    log.info(JSON.toString(livingCode));
+
+    // 直播详情
+    WxCpLivingInfo livingInfo = wxCpService.getLivingService().getLivingInfo("lvOQpTDwAAcP9wNOSSxTwpbni-TMPNSg");
+    log.info(livingInfo.toJson());
+
+    // 直播观看明细
+    WxCpWatchStat watchStat = wxCpService.getLivingService().getWatchStat("lvOQpTDwAAcP9wNOSSxTwpbni-TMPNSg", 0);
+    log.info(watchStat.toJson());
+
+    final String watchStateJson = "{\"errcode\":0,\"errmsg\":\"ok\",\"ending\":1,\"next_key\":\"NEXT_KEY\",\"stat_info\":{\"users\":[{\"userid\":\"userid\",\"watch_time\":30,\"is_comment\":1,\"is_mic\":1}],\"external_users\":[{\"external_userid\":\"external_userid1\",\"type\":1,\"name\":\"user name\",\"watch_time\":30,\"is_comment\":1,\"is_mic\":1},{\"external_userid\":\"external_userid2\",\"type\":2,\"name\":\"user_name\",\"watch_time\":30,\"is_comment\":1,\"is_mic\":1}]}}";
+
+    WxCpWatchStat wxCpWatchStat = WxCpWatchStat.fromJson(watchStateJson);
+    log.info(wxCpWatchStat.toJson());
+
+    // 直播观众信息
+    final String livingShareInfo = "{\"errcode\":0,\"errmsg\":\"ok\",\"livingid\":\"livingid\",\"viewer_userid\":\"viewer_userid\",\"viewer_external_userid\":\"viewer_external_userid\",\"invitor_userid\":\"invitor_userid\",\"invitor_external_userid\":\"invitor_external_userid\"}";
+
+    WxCpLivingShareInfo wxCpLivingShareInfo = WxCpLivingShareInfo.fromJson(livingShareInfo);
+    log.info(wxCpLivingShareInfo.toJson());
+
+    // 获取成员直播ID列表
+    WxCpLivingResult.LivingIdResult livingResult = wxCpService.getLivingService().getUserAllLivingId("ChenHu", null, null);
+    log.info(livingResult.toJson());
+
+    String livinglist = "{\"errcode\":0,\"errmsg\":\"ok\",\"next_cursor\":\"next_cursor\",\"livingid_list\":[\"livingid1\",\"livingid2\"]}";
+    WxCpLivingResult.LivingIdResult livingIdResult = WxCpLivingResult.LivingIdResult.fromJson(livinglist);
+    log.info(livingIdResult.toJson());
+
+
+    log.info("{}", new Date().getTime());
+    // 创建预约直播
+    String create = "{\"anchor_userid\":\"ChenHu\",\"theme\":\"theme\",\"living_start\":164037820420,\"living_duration\":3600,\"description\":\"test description\",\"type\":4,\"remind_time\":60,\"activity_cover_mediaid\":\"MEDIA_ID\",\"activity_share_mediaid\":\"MEDIA_ID\",\"activity_detail\":{\"description\":\"活动描述,非活动类型的直播不用传\",\"image_list\":[\"xxxx1\",\"xxxx1\"]}}";
+    WxCpLivingCreateRequest request = WxCpLivingCreateRequest.fromJson(create);
+    String livingId = wxCpService.getLivingService().livingCreate(request);
+    log.info("livingId为:{}", livingId);
+
+
+    String modify = "{\"livingid\": \""+ livingId +"\",\"theme\":\"theme\",\"living_start\":164047820420,\"living_duration\":3600,\"description\":\"描述:description\",\"type\":1,\"remind_time\":60}";
+    WxCpLivingModifyRequest modifyReq = WxCpLivingModifyRequest.fromJson(modify);
+    WxCpLivingResult result = wxCpService.getLivingService().livingModify(modifyReq);
+    log.info("result:{}", result.toJson());
+
+
+    // 取消预约直播
+//    WxCpLivingResult result2 = wxCpService.getLivingService().livingCancel("lvOQpTDwAA0KyLmWZhf_LIENzYIBVD2g");
+    WxCpLivingResult result2 = wxCpService.getLivingService().livingCancel(livingId);
+    log.info("取消预约直播为:{}", result2.toJson());
+
+
+    // 删除直播回放
+//    WxCpLivingResult response = wxCpService.getLivingService().deleteReplayData("lvOQpTDwAAVdCHyXMgSK63TKPfKDII7w");
+//    log.info(response.toJson());
+
+
+  }
+
+  public static void main(String[] args){
+    log.info("{}", new Date().getTime());
+  }
+
+}

From bcd5806cdcdaa84e5adeac18b9532fd3c7bf1db5 Mon Sep 17 00:00:00 2001
From: Scruel Tao 
Date: Mon, 27 Dec 2021 15:01:25 +0800
Subject: [PATCH 082/622] =?UTF-8?q?:recycle:=20=E6=97=A0=E6=95=88=E5=AD=97?=
 =?UTF-8?q?=E6=AE=B5=E8=BF=87=E6=97=B6=E6=A0=87=E8=AE=B0=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../java/me/chanjar/weixin/mp/bean/result/WxMpUser.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
index 6edf351d44..45b13a97bf 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
@@ -21,8 +21,16 @@ public class WxMpUser implements Serializable {
 
   private Boolean subscribe;
   private String openId;
+  /**
+   * @deprecated 2021年12月27日之后不再输出
+   */
+  @Deprecated
   private String nickname;
   private String language;
+  /**
+   * @deprecated 2021年12月27日之后不再输出
+   */
+  @Deprecated
   private String headImgUrl;
   private Long subscribeTime;
   /**
@@ -60,7 +68,6 @@ public class WxMpUser implements Serializable {
    */
   private String qrSceneStr;
 
-
   public static WxMpUser fromJson(String json) {
     return WxMpGsonBuilder.create().fromJson(json, WxMpUser.class);
   }

From 31984c130f8946d699c9369a8128f09b43227abd Mon Sep 17 00:00:00 2001
From: Scruel Tao 
Date: Mon, 27 Dec 2021 15:02:14 +0800
Subject: [PATCH 083/622] =?UTF-8?q?:bulb:=20=E5=A2=9E=E5=8A=A0=20ADD=5FSCE?=
 =?UTF-8?q?NE=5FWECHAT=5FADVERTISEMENT=20=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
index 45b13a97bf..bfd8b6d8dd 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpUser.java
@@ -53,8 +53,7 @@ public class WxMpUser implements Serializable {
   private String[] privileges;
 
   /**
-   * subscribe_scene 返回用户关注的渠道来源.
-   * ADD_SCENE_SEARCH 公众号搜索,ADD_SCENE_ACCOUNT_MIGRATION 公众号迁移,ADD_SCENE_PROFILE_CARD 名片分享,ADD_SCENE_QR_CODE 扫描二维码,ADD_SCENEPROFILE LINK 图文页内名称点击,ADD_SCENE_PROFILE_ITEM 图文页右上角菜单,ADD_SCENE_PAID 支付后关注,ADD_SCENE_OTHERS 其他
+   * subscribe_scene 返回用户关注的渠道来源,ADD_SCENE_SEARCH 公众号搜索,ADD_SCENE_ACCOUNT_MIGRATION 公众号迁移,ADD_SCENE_PROFILE_CARD 名片分享,ADD_SCENE_QR_CODE 扫描二维码,ADD_SCENE_PROFILE_LINK 图文页内名称点击,ADD_SCENE_PROFILE_ITEM 图文页右上角菜单,ADD_SCENE_PAID 支付后关注,ADD_SCENE_WECHAT_ADVERTISEMENT 微信广告,ADD_SCENE_OTHERS 其他
    */
   private String subscribeScene;
 

From c66ecbfd4da62406fab4114f05e2295ceb706952 Mon Sep 17 00:00:00 2001
From: linlinjava 
Date: Mon, 27 Dec 2021 15:03:02 +0800
Subject: [PATCH 084/622] =?UTF-8?q?:art:=20#2461=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BA=A4?=
 =?UTF-8?q?=E6=98=93=E7=BB=84=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=8E=A5=E5=8F=A3?=
 =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9B=BE=E7=89=87=E9=93=BE=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ...inishopUploadRequestCustomizeExecutor.java | 19 +++++++++----
 ...opMediaUploadRequestCustomizeExecutor.java | 20 +++++++++++---
 ...opMediaUploadRequestCustomizeExecutor.java | 15 ++++++++---
 ...opMediaUploadRequestCustomizeExecutor.java | 27 +++++++++++++------
 .../wx/miniapp/api/WxMaShopImgService.java    | 10 +++++++
 .../api/impl/WxMaShopImgServiceImpl.java      | 11 ++++++--
 .../api/impl/WxMaShopImgServiceImplTest.java  |  7 +++++
 7 files changed, 88 insertions(+), 21 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MinishopUploadRequestCustomizeExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MinishopUploadRequestCustomizeExecutor.java
index 23309202d7..e94b2d8d6a 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MinishopUploadRequestCustomizeExecutor.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MinishopUploadRequestCustomizeExecutor.java
@@ -13,10 +13,19 @@
 public abstract class MinishopUploadRequestCustomizeExecutor implements RequestExecutor {
   protected RequestHttp requestHttp;
   protected String respType;
+  protected String uploadType;
+  protected String imgUrl;
 
-  public MinishopUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType) {
+  public MinishopUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType, String imgUrl) {
     this.requestHttp = requestHttp;
     this.respType = respType;
+    if (imgUrl == null || imgUrl.isEmpty()) {
+      this.uploadType = "0";
+    }
+    else {
+      this.uploadType = "1";
+      this.imgUrl = imgUrl;
+    }
   }
 
   @Override
@@ -24,14 +33,14 @@ public void execute(String uri, File data, ResponseHandler create(RequestHttp requestHttp, String respType) {
+  public static RequestExecutor create(RequestHttp requestHttp, String respType, String imgUrl) {
     switch (requestHttp.getRequestType()) {
       case APACHE_HTTP:
-        return new ApacheMinishopMediaUploadRequestCustomizeExecutor(requestHttp, respType);
+        return new ApacheMinishopMediaUploadRequestCustomizeExecutor(requestHttp, respType, imgUrl);
       case JODD_HTTP:
-        return new JoddHttpMinishopMediaUploadRequestCustomizeExecutor(requestHttp, respType);
+        return new JoddHttpMinishopMediaUploadRequestCustomizeExecutor(requestHttp, respType, imgUrl);
       case OK_HTTP:
-        return new OkHttpMinishopMediaUploadRequestCustomizeExecutor(requestHttp, respType);
+        return new OkHttpMinishopMediaUploadRequestCustomizeExecutor(requestHttp, respType, imgUrl);
       default:
         return null;
     }
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMinishopMediaUploadRequestCustomizeExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMinishopMediaUploadRequestCustomizeExecutor.java
index 64888c08d6..9af02af5d0 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMinishopMediaUploadRequestCustomizeExecutor.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMinishopMediaUploadRequestCustomizeExecutor.java
@@ -24,8 +24,8 @@
  */
 @Slf4j
 public class ApacheMinishopMediaUploadRequestCustomizeExecutor extends MinishopUploadRequestCustomizeExecutor {
-  public ApacheMinishopMediaUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType) {
-    super(requestHttp, respType);
+  public ApacheMinishopMediaUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType, String imgUrl) {
+    super(requestHttp, respType, imgUrl);
   }
 
   @Override
@@ -35,15 +35,29 @@ public WxMinishopImageUploadCustomizeResult execute(String uri, File file, WxTyp
       RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build();
       httpPost.setConfig(config);
     }
-    if (file != null) {
+    if (this.uploadType.equals("0")) {
+      if (file == null) {
+        throw new WxErrorException("上传文件为空");
+      }
       HttpEntity entity = MultipartEntityBuilder
         .create()
         .addBinaryBody("media", file)
         .addTextBody("resp_type", this.respType)
+        .addTextBody("upload_type", this.uploadType)
         .setMode(HttpMultipartMode.RFC6532)
         .build();
       httpPost.setEntity(entity);
     }
+    else {
+      HttpEntity entity = MultipartEntityBuilder
+              .create()
+              .addTextBody("resp_type", this.respType)
+              .addTextBody("upload_type", this.uploadType)
+              .addTextBody("img_url", this.imgUrl)
+              .setMode(HttpMultipartMode.RFC6532)
+              .build();
+      httpPost.setEntity(entity);
+    }
     try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) {
       String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response);
       WxError error = WxError.fromJson(responseContent, wxType);
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java
index a79eb8eda5..e36f5a7a18 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java
@@ -22,8 +22,8 @@
  */
 @Slf4j
 public class JoddHttpMinishopMediaUploadRequestCustomizeExecutor extends MinishopUploadRequestCustomizeExecutor {
-  public JoddHttpMinishopMediaUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType) {
-    super(requestHttp, respType);
+  public JoddHttpMinishopMediaUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType, String imgUrl) {
+    super(requestHttp, respType, imgUrl);
   }
 
   @Override
@@ -33,7 +33,16 @@ public WxMinishopImageUploadCustomizeResult execute(String uri, File file, WxTyp
       requestHttp.getRequestHttpClient().useProxy(requestHttp.getRequestHttpProxy());
     }
     request.withConnectionProvider(requestHttp.getRequestHttpClient());
-    request.form("media", file);
+    if (this.uploadType.equals("0")) {
+      request.form("resp_type", this.respType,
+              "upload_type", this.uploadType,
+              "media", file);
+    }
+    else {
+      request.form("resp_type", this.respType,
+              "upload_type", this.uploadType,
+              "img_url", this.imgUrl);
+    }
     HttpResponse response = request.send();
     response.charset(StandardCharsets.UTF_8.name());
 
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java
index 45d112cd6c..367bddd60a 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java
@@ -18,19 +18,30 @@
  */
 @Slf4j
 public class OkHttpMinishopMediaUploadRequestCustomizeExecutor extends MinishopUploadRequestCustomizeExecutor {
-  public OkHttpMinishopMediaUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType) {
-    super(requestHttp, respType);
+  public OkHttpMinishopMediaUploadRequestCustomizeExecutor(RequestHttp requestHttp, String respType, String imgUrl) {
+    super(requestHttp, respType, imgUrl);
   }
 
   @Override
   public WxMinishopImageUploadCustomizeResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException {
 
-    RequestBody body = new MultipartBody.Builder()
-      .setType(MediaType.parse("multipart/form-data"))
-      .addFormDataPart("media",
-        file.getName(),
-        RequestBody.create(MediaType.parse("application/octet-stream"), file))
-      .build();
+    RequestBody body = null;
+    if (this.uploadType.equals("0")) {
+      body = new MultipartBody.Builder()
+              .setType(MediaType.parse("multipart/form-data"))
+              .addFormDataPart("resp_type", this.respType)
+              .addFormDataPart("upload_type", this.uploadType)
+              .addFormDataPart("media", file.getName(), RequestBody.create(MediaType.parse("application/octet-stream"), file))
+              .build();
+    }
+    else {
+      body = new MultipartBody.Builder()
+              .setType(MediaType.parse("multipart/form-data"))
+              .addFormDataPart("resp_type", this.respType)
+              .addFormDataPart("upload_type", this.uploadType)
+              .addFormDataPart("img_url", this.imgUrl)
+              .build();
+    }
     Request request = new Request.Builder().url(uri).post(body).build();
 
     Response response = requestHttp.getRequestHttpClient().newCall(request).execute();
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopImgService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopImgService.java
index 2cb9334fc2..0bb4d31987 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopImgService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopImgService.java
@@ -29,4 +29,14 @@ public interface WxMaShopImgService {
    * @throws WxErrorException
    */
   WxMinishopImageUploadCustomizeResult uploadImg(File file, String respType) throws WxErrorException;
+
+  /**
+   * 上传图片链接,带respType参数
+   *
+   * @param imgUrl
+   * @param respType
+   * @return WxMinishopImageUploadCustomizeResult
+   * @throws WxErrorException
+   */
+  WxMinishopImageUploadCustomizeResult uploadImg(String imgUrl, String respType) throws WxErrorException;
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImpl.java
index 1c69f8dc80..33e2a5de57 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImpl.java
@@ -23,14 +23,21 @@ public class WxMaShopImgServiceImpl implements WxMaShopImgService {
   @Override
   public WxMinishopImageUploadCustomizeResult uploadImg(File file) throws WxErrorException {
     WxMinishopImageUploadCustomizeResult result = this.service.execute(
-      MinishopUploadRequestCustomizeExecutor.create(this.service.getRequestHttp(), "0"), IMG_UPLOAD, file);
+      MinishopUploadRequestCustomizeExecutor.create(this.service.getRequestHttp(), "0", null), IMG_UPLOAD, file);
     return result;
   }
 
   @Override
   public WxMinishopImageUploadCustomizeResult uploadImg(File file, String respType) throws WxErrorException {
     WxMinishopImageUploadCustomizeResult result = this.service.execute(
-      MinishopUploadRequestCustomizeExecutor.create(this.service.getRequestHttp(), respType), IMG_UPLOAD, file);
+      MinishopUploadRequestCustomizeExecutor.create(this.service.getRequestHttp(), respType, null), IMG_UPLOAD, file);
+    return result;
+  }
+
+  @Override
+  public WxMinishopImageUploadCustomizeResult uploadImg(String imgUrl, String respType) throws WxErrorException {
+    WxMinishopImageUploadCustomizeResult result = this.service.execute(
+            MinishopUploadRequestCustomizeExecutor.create(this.service.getRequestHttp(), respType, imgUrl), IMG_UPLOAD, null);
     return result;
   }
 }
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImplTest.java
index 060896ab09..9999c14ab6 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImplTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopImgServiceImplTest.java
@@ -35,4 +35,11 @@ public void testUploadImg2() throws WxErrorException {
     WxMinishopImageUploadCustomizeResult result = wxService.getShopImgService().uploadImg(file, "1");
     assertThat(result).isNotNull();
   }
+
+  @Test
+  public void testUploadImg3() throws WxErrorException {
+    String imgUrl = "https://www.example.com/demo.jpg";
+    WxMinishopImageUploadCustomizeResult result = wxService.getShopImgService().uploadImg(imgUrl, "1");
+    assertThat(result).isNotNull();
+  }
 }

From 7116fe5ae21318bee4a1665736c1b09b053b6657 Mon Sep 17 00:00:00 2001
From: zp961466717 <43167276+zp961466717@users.noreply.github.com>
Date: Mon, 27 Dec 2021 15:09:42 +0800
Subject: [PATCH 085/622] =?UTF-8?q?:new:=20#2459=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E6=8E=88=E6=9D=83=E8=B5=84=E6=96=99?=
 =?UTF-8?q?=E5=8F=98=E6=9B=B4=E4=BA=8B=E4=BB=B6=E6=B6=88=E6=81=AF=E5=A2=9E?=
 =?UTF-8?q?=E5=8A=A0OpenPID=EF=BC=8CPluginID=EF=BC=8COpenID=EF=BC=8CRevoke?=
 =?UTF-8?q?Info=E7=AD=89=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/bean/WxMaMessage.java          | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
index ff7a48e471..4a8713cad5 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
@@ -145,6 +145,27 @@ public class WxMaMessage implements Serializable {
   @XStreamConverter(value = XStreamCDataConverter.class)
   private String query;
 
+  @SerializedName("RevokeInfo")
+  @XStreamAlias("RevokeInfo")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String revokeInfo;
+
+  @SerializedName("OpenID")
+  @XStreamAlias("OpenID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String openId;
+
+  @SerializedName("PluginID")
+  @XStreamAlias("PluginID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String pluginId;
+
+  @SerializedName("OpenPID")
+  @XStreamAlias("OpenPID")
+  @XStreamConverter(value = XStreamCDataConverter.class)
+  private String openPid;
+
+
   public static WxMaMessage fromXml(String xml) {
     return XStreamTransformer.fromXml(WxMaMessage.class, xml);
   }

From 1bda3eee1539e22c7421b914f8458cc0a5bae02e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=97=A0=E5=A4=84=E4=B8=8D=E5=9C=A82015?=
 <464097+wuchubuzai@user.noreply.gitee.com>
Date: Mon, 27 Dec 2021 15:53:14 +0000
Subject: [PATCH 086/622] =?UTF-8?q?:art:=20#2467=20=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=BE=AE=E4=BF=A1=E6=94=AF?=
 =?UTF-8?q?=E4=BB=98V3=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=E5=A2=9E?=
 =?UTF-8?q?=E5=8A=A0=E4=BB=A3=E7=90=86=E8=AE=BE=E7=BD=AE=E5=8F=82=E6=95=B0?=
 =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/config/WxPayConfig.java  | 34 +++++++++++++++++--
 .../impl/BaseWxPayServiceImplTest.java        | 21 ++++++++++++
 2 files changed, 52 insertions(+), 3 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
index 6756b0b4ba..641ee9a53a 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
@@ -9,7 +9,13 @@
 import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang3.RegExUtils;
 import org.apache.commons.lang3.StringUtils;
+import org.apache.http.HttpHost;
+import org.apache.http.auth.AuthScope;
+import org.apache.http.auth.UsernamePasswordCredentials;
+import org.apache.http.client.CredentialsProvider;
+import org.apache.http.impl.client.BasicCredentialsProvider;
 import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClientBuilder;
 import org.apache.http.ssl.SSLContexts;
 
 import javax.net.ssl.SSLContext;
@@ -259,11 +265,15 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException {
         new WxPayCredentials(mchId, new PrivateKeySigner(certSerialNo, merchantPrivateKey)),
         apiV3Key.getBytes(StandardCharsets.UTF_8), this.getCertAutoUpdateTime());
 
-      CloseableHttpClient httpClient = WxPayV3HttpClientBuilder.create()
+      WxPayV3HttpClientBuilder wxPayV3HttpClientBuilder = WxPayV3HttpClientBuilder.create()
         .withMerchant(mchId, certSerialNo, merchantPrivateKey)
         .withWechatpay(Collections.singletonList(certificate))
-        .withValidator(new WxPayValidator(verifier))
-        .build();
+        .withValidator(new WxPayValidator(verifier));
+      //初始化V3接口正向代理设置
+      initHttpProxy(wxPayV3HttpClientBuilder);
+
+      CloseableHttpClient httpClient = wxPayV3HttpClientBuilder.build();
+
       this.apiV3HttpClient = httpClient;
       this.verifier=verifier;
       this.privateKey = merchantPrivateKey;
@@ -274,7 +284,25 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException {
     }
   }
 
+  /**
+   * 配置 http 正向代理
+   * 参考代码: WxPayServiceApacheHttpImpl 中的方法 createHttpClientBuilder
+   * @param httpClientBuilder http构造参数
+   */
+  private void initHttpProxy(HttpClientBuilder httpClientBuilder) {
+    if (StringUtils.isNotBlank(this.getHttpProxyHost()) && this.getHttpProxyPort() > 0) {
+      if (StringUtils.isEmpty(this.getHttpProxyUsername())) {
+        this.setHttpProxyUsername("whatever");
+      }
 
+      // 使用代理服务器 需要用户认证的代理服务器
+      CredentialsProvider provider = new BasicCredentialsProvider();
+      provider.setCredentials(new AuthScope(this.getHttpProxyHost(), this.getHttpProxyPort()),
+        new UsernamePasswordCredentials(this.getHttpProxyUsername(), this.getHttpProxyPassword()));
+      httpClientBuilder.setDefaultCredentialsProvider(provider);
+      httpClientBuilder.setProxy(new HttpHost(this.getHttpProxyHost(), this.getHttpProxyPort()));
+    }
+  }
 
   private InputStream loadConfigInputStream(String configPath, byte[] configContent, String fileName) throws WxPayException {
     InputStream inputStream;
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
index 920d917ffc..e25efe5cb1 100644
--- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
@@ -10,6 +10,7 @@
 import com.github.binarywang.wxpay.bean.request.*;
 import com.github.binarywang.wxpay.bean.result.*;
 import com.github.binarywang.wxpay.bean.result.enums.TradeTypeEnum;
+import com.github.binarywang.wxpay.config.WxPayConfig;
 import com.github.binarywang.wxpay.constant.WxPayConstants.AccountType;
 import com.github.binarywang.wxpay.constant.WxPayConstants.BillType;
 import com.github.binarywang.wxpay.constant.WxPayConstants.SignType;
@@ -775,4 +776,24 @@ public void testRefundQueryV3() throws WxPayException {
     System.out.println(GSON.toJson(result));
   }
 
+  /**
+   * 测试包含正向代理的测试
+   * @throws WxPayException
+   */
+  @Test
+  public void testQueryOrderV3WithProxy()  {
+    try {
+      WxPayOrderQueryV3Request request = new WxPayOrderQueryV3Request();
+      request.setOutTradeNo("n1ZvYqjAg3D3LUBa");
+      WxPayConfig config = this.payService.getConfig();
+      config.setPayBaseUrl("http://api.mch.weixin.qq.com");
+      config.setHttpProxyHost("12.11.1.113");
+      config.setHttpProxyPort(8015);
+      WxPayOrderQueryV3Result result = this.payService.queryOrderV3(request);
+      System.out.println(GSON.toJson(result));
+    } catch (WxPayException e) {
+    }
+
+  }
+
 }

From 739c222586f10b80c04d7fce7bba14d64b46561d Mon Sep 17 00:00:00 2001
From: luxiang0412 <1374920889@qq.com>
Date: Mon, 27 Dec 2021 23:58:01 +0800
Subject: [PATCH 087/622] =?UTF-8?q?:new:=20#2468=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E5=AE=A1?=
 =?UTF-8?q?=E6=89=B9=E7=94=B3=E8=AF=B7=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3?=
 =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E5=A2=9E=E5=8A=A0=E5=85=B3?=
 =?UTF-8?q?=E8=81=94=E5=AE=A1=E6=89=B9=E5=8D=95=E6=8E=A7=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../cp/bean/oa/applydata/ContentValue.java    | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java
index 1ad07bf2a8..23a8749620 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java
@@ -35,6 +35,9 @@ public class ContentValue implements Serializable {
 
   private List children;
 
+  @SerializedName("related_approval")
+  private List relatedApproval;
+
   private Attendance attendance;
 
   private Vacation vacation;
@@ -124,4 +127,43 @@ public static class Vacation implements Serializable {
     private Attendance attendance;
   }
 
+  /**
+   * 关联审批单控件
+   */
+  @Data
+  public static class RelatedApproval implements Serializable{
+    private static final long serialVersionUID = 8629601623267510738L;
+    /**
+     *关联审批单的模板名
+     */
+    @SerializedName("template_names")
+    private List templateNames;
+    /**
+     * 关联审批单的状态
+     */
+    @SerializedName("sp_status")
+    private Integer spStatus;
+    /**
+     * 关联审批单的提单者
+     */
+    private String name;
+    /**
+     * 关联审批单的提单时间
+     */
+    @SerializedName("create_time")
+    private Long createTime;
+    /**
+     * 关联审批单的审批单号
+     */
+    @SerializedName("sp_no")
+    private String spNo;
+  }
+
+  @Data
+  public static class TemplateName implements Serializable{
+    private static final long serialVersionUID = 3152481506054355937L;
+    private String text;
+    private String lang;
+  }
+
 }

From 7101c22899c954525f33cb314d81c642e55a10f6 Mon Sep 17 00:00:00 2001
From: wuchubuzai2018 <42382506+wuchubuzai2018@users.noreply.github.com>
Date: Tue, 28 Dec 2021 17:59:38 +0800
Subject: [PATCH 088/622] =?UTF-8?q?:art:=20#2467=20=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=BE=AE=E4=BF=A1=E6=94=AF?=
 =?UTF-8?q?=E4=BB=98V3=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=E5=A2=9E?=
 =?UTF-8?q?=E5=8A=A0=E4=BB=A3=E7=90=86=E8=AE=BE=E7=BD=AE=E5=8F=82=E6=95=B0?=
 =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/config/WxPayConfig.java  | 26 +++----
 .../wxpay/config/WxPayHttpProxy.java          | 75 +++++++++++++++++++
 .../binarywang/wxpay/util/HttpProxyUtils.java | 49 ++++++++++++
 .../auth/AutoUpdateCertificatesVerifier.java  | 34 ++++++++-
 4 files changed, 165 insertions(+), 19 deletions(-)
 create mode 100755 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java
 create mode 100755 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java
 mode change 100644 => 100755 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
index 641ee9a53a..59733944ae 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
@@ -1,6 +1,7 @@
 package com.github.binarywang.wxpay.config;
 
 import com.github.binarywang.wxpay.exception.WxPayException;
+import com.github.binarywang.wxpay.util.HttpProxyUtils;
 import com.github.binarywang.wxpay.util.ResourcesUtils;
 import com.github.binarywang.wxpay.v3.WxPayV3HttpClientBuilder;
 import com.github.binarywang.wxpay.v3.auth.*;
@@ -260,17 +261,19 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException {
       if(StringUtils.isBlank(serialNo)){
         this.certSerialNo = certificate.getSerialNumber().toString(16).toUpperCase();
       }
+      //构造Http Proxy正向代理
+      WxPayHttpProxy wxPayHttpProxy = getWxPayHttpProxy();
 
       AutoUpdateCertificatesVerifier verifier = new AutoUpdateCertificatesVerifier(
         new WxPayCredentials(mchId, new PrivateKeySigner(certSerialNo, merchantPrivateKey)),
-        apiV3Key.getBytes(StandardCharsets.UTF_8), this.getCertAutoUpdateTime());
+        apiV3Key.getBytes(StandardCharsets.UTF_8), this.getCertAutoUpdateTime(),wxPayHttpProxy);
 
       WxPayV3HttpClientBuilder wxPayV3HttpClientBuilder = WxPayV3HttpClientBuilder.create()
         .withMerchant(mchId, certSerialNo, merchantPrivateKey)
         .withWechatpay(Collections.singletonList(certificate))
         .withValidator(new WxPayValidator(verifier));
       //初始化V3接口正向代理设置
-      initHttpProxy(wxPayV3HttpClientBuilder);
+      HttpProxyUtils.initHttpProxy(wxPayV3HttpClientBuilder,wxPayHttpProxy);
 
       CloseableHttpClient httpClient = wxPayV3HttpClientBuilder.build();
 
@@ -285,23 +288,14 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException {
   }
 
   /**
-   * 配置 http 正向代理
-   * 参考代码: WxPayServiceApacheHttpImpl 中的方法 createHttpClientBuilder
-   * @param httpClientBuilder http构造参数
+   * 初始化一个WxPayHttpProxy对象
+   * @return 返回封装的WxPayHttpProxy对象。如未指定代理主机和端口,则默认返回null
    */
-  private void initHttpProxy(HttpClientBuilder httpClientBuilder) {
+  private WxPayHttpProxy getWxPayHttpProxy() {
     if (StringUtils.isNotBlank(this.getHttpProxyHost()) && this.getHttpProxyPort() > 0) {
-      if (StringUtils.isEmpty(this.getHttpProxyUsername())) {
-        this.setHttpProxyUsername("whatever");
-      }
-
-      // 使用代理服务器 需要用户认证的代理服务器
-      CredentialsProvider provider = new BasicCredentialsProvider();
-      provider.setCredentials(new AuthScope(this.getHttpProxyHost(), this.getHttpProxyPort()),
-        new UsernamePasswordCredentials(this.getHttpProxyUsername(), this.getHttpProxyPassword()));
-      httpClientBuilder.setDefaultCredentialsProvider(provider);
-      httpClientBuilder.setProxy(new HttpHost(this.getHttpProxyHost(), this.getHttpProxyPort()));
+      return new WxPayHttpProxy(getHttpProxyHost(), getHttpProxyPort(), getHttpProxyUsername(), getHttpProxyPassword());
     }
+    return null;
   }
 
   private InputStream loadConfigInputStream(String configPath, byte[] configContent, String fileName) throws WxPayException {
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java
new file mode 100755
index 0000000000..2b3b1c937d
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java
@@ -0,0 +1,75 @@
+package com.github.binarywang.wxpay.config;
+
+
+import java.io.Serializable;
+
+/**
+ * 微信支付 HTTP Proxy 正向代理配置
+ *
+ * @author Long Yu
+ * @date 2021-12-28 15:49:03
+ */
+public class WxPayHttpProxy implements Serializable {
+
+  /**
+   * 代理主机
+   */
+  private String httpProxyHost;
+  /**
+   * 代理端口
+   */
+  private Integer httpProxyPort;
+  /**
+   * 代理用户名称
+   */
+  private String httpProxyUsername;
+  /**
+   * 代理密码
+   */
+  private String httpProxyPassword;
+
+  public WxPayHttpProxy() {
+  }
+
+  public WxPayHttpProxy(String httpProxyHost, Integer httpProxyPort, String httpProxyUsername, String httpProxyPassword) {
+    this.httpProxyHost = httpProxyHost;
+    this.httpProxyPort = httpProxyPort;
+    this.httpProxyUsername = httpProxyUsername;
+    this.httpProxyPassword = httpProxyPassword;
+  }
+
+  public String getHttpProxyHost() {
+    return httpProxyHost;
+  }
+
+  public void setHttpProxyHost(String httpProxyHost) {
+    this.httpProxyHost = httpProxyHost;
+  }
+
+  public Integer getHttpProxyPort() {
+    return httpProxyPort;
+  }
+
+  public void setHttpProxyPort(Integer httpProxyPort) {
+    this.httpProxyPort = httpProxyPort;
+  }
+
+  public String getHttpProxyUsername() {
+    return httpProxyUsername;
+  }
+
+  public void setHttpProxyUsername(String httpProxyUsername) {
+    this.httpProxyUsername = httpProxyUsername;
+  }
+
+  public String getHttpProxyPassword() {
+    return httpProxyPassword;
+  }
+
+  public void setHttpProxyPassword(String httpProxyPassword) {
+    this.httpProxyPassword = httpProxyPassword;
+  }
+
+
+
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java
new file mode 100755
index 0000000000..7e24cde80c
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java
@@ -0,0 +1,49 @@
+package com.github.binarywang.wxpay.util;
+
+import com.github.binarywang.wxpay.config.WxPayHttpProxy;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.http.HttpHost;
+import org.apache.http.auth.AuthScope;
+import org.apache.http.auth.UsernamePasswordCredentials;
+import org.apache.http.client.CredentialsProvider;
+import org.apache.http.impl.client.BasicCredentialsProvider;
+import org.apache.http.impl.client.HttpClientBuilder;
+
+/**
+ * 微信支付 HTTP Proxy 工具类
+ *
+ * @author Long Yu
+ * @date 2021-12-28 15:58:03
+ */
+public class HttpProxyUtils {
+
+  /**
+   * 配置 http 正向代理 可以实现内网服务通过代理调用接口
+   * 参考代码: WxPayServiceApacheHttpImpl 中的方法 createHttpClientBuilder
+   *
+   * @param wxPayHttpProxy 代理配置
+   * @param httpClientBuilder http构造参数
+   */
+  public static void initHttpProxy(HttpClientBuilder httpClientBuilder, WxPayHttpProxy wxPayHttpProxy) {
+    if(wxPayHttpProxy == null){
+      return;
+    }
+    if (StringUtils.isNotBlank(wxPayHttpProxy.getHttpProxyHost()) && wxPayHttpProxy.getHttpProxyPort() > 0) {
+      if (StringUtils.isEmpty(wxPayHttpProxy.getHttpProxyUsername())) {
+        wxPayHttpProxy.setHttpProxyUsername("whatever");
+      }
+
+      // 使用代理服务器 需要用户认证的代理服务器
+      CredentialsProvider provider = new BasicCredentialsProvider();
+      provider.setCredentials(new AuthScope(wxPayHttpProxy.getHttpProxyHost(), wxPayHttpProxy.getHttpProxyPort()),
+        new UsernamePasswordCredentials(wxPayHttpProxy.getHttpProxyUsername(), wxPayHttpProxy.getHttpProxyPassword()));
+      httpClientBuilder.setDefaultCredentialsProvider(provider);
+      httpClientBuilder.setProxy(new HttpHost(wxPayHttpProxy.getHttpProxyHost(), wxPayHttpProxy.getHttpProxyPort()));
+    }
+  }
+
+
+
+
+
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java
old mode 100644
new mode 100755
index d365ccaf4f..ca8b30bc80
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java
@@ -1,5 +1,7 @@
 package com.github.binarywang.wxpay.v3.auth;
 
+import com.github.binarywang.wxpay.config.WxPayHttpProxy;
+import com.github.binarywang.wxpay.util.HttpProxyUtils;
 import com.github.binarywang.wxpay.v3.Credentials;
 import com.github.binarywang.wxpay.v3.Validator;
 import com.github.binarywang.wxpay.v3.WxPayV3HttpClientBuilder;
@@ -35,6 +37,7 @@
  * 在原有CertificatesVerifier基础上,增加自动更新证书功能
  *
  * @author doger.wang
+ * @author Long Yu
  */
 @Slf4j
 public class AutoUpdateCertificatesVerifier implements Verifier {
@@ -61,6 +64,11 @@ public class AutoUpdateCertificatesVerifier implements Verifier {
 
   private final ReentrantLock lock = new ReentrantLock();
 
+  /**
+   * 微信支付代理对象
+   */
+  private WxPayHttpProxy wxPayHttpProxy;
+
   /**
    * 时间间隔枚举,支持一小时、六小时以及十二小时
    */
@@ -88,9 +96,14 @@ public AutoUpdateCertificatesVerifier(Credentials credentials, byte[] apiV3Key)
   }
 
   public AutoUpdateCertificatesVerifier(Credentials credentials, byte[] apiV3Key, int minutesInterval) {
+    this(credentials,apiV3Key,minutesInterval,null);
+  }
+
+  public AutoUpdateCertificatesVerifier(Credentials credentials, byte[] apiV3Key, int minutesInterval,WxPayHttpProxy wxPayHttpProxy) {
     this.credentials = credentials;
     this.apiV3Key = apiV3Key;
     this.minutesInterval = minutesInterval;
+    this.wxPayHttpProxy = wxPayHttpProxy;
     //构造时更新证书
     try {
       autoUpdateCert();
@@ -126,15 +139,22 @@ private void checkAndAutoUpdateCert() {
   }
 
   private void autoUpdateCert() throws IOException, GeneralSecurityException {
-    CloseableHttpClient httpClient = WxPayV3HttpClientBuilder.create()
+    WxPayV3HttpClientBuilder wxPayV3HttpClientBuilder = WxPayV3HttpClientBuilder.create()
       .withCredentials(credentials)
       .withValidator(verifier == null ? new Validator() {
         @Override
         public boolean validate(CloseableHttpResponse response) throws IOException {
           return true;
         }
-      } : new WxPayValidator(verifier))
-      .build();
+      } : new WxPayValidator(verifier));
+
+    //调用自定义扩展设置设置HTTP PROXY对象
+    HttpProxyUtils.initHttpProxy(wxPayV3HttpClientBuilder,this.wxPayHttpProxy);
+
+    //增加自定义扩展点,子类可以设置其他构造参数
+    this.customHttpClientBuilder(wxPayV3HttpClientBuilder);
+
+    CloseableHttpClient httpClient = wxPayV3HttpClientBuilder.build();
 
     HttpGet httpGet = new HttpGet(CERT_DOWNLOAD_PATH);
     httpGet.addHeader("Accept", "application/json");
@@ -154,6 +174,14 @@ public boolean validate(CloseableHttpResponse response) throws IOException {
     }
   }
 
+
+  /**
+   * 子类可以自定义添加Http client builder的信息
+   * @param builder httpclient构造器
+   */
+  public void customHttpClientBuilder(WxPayV3HttpClientBuilder builder) {
+  }
+
   /**
    * 反序列化证书并解密
    */

From 94ad8169fa10460b673260495717971d3b6ee9aa Mon Sep 17 00:00:00 2001
From: hb0730 <1278032416@qq.com>
Date: Tue, 28 Dec 2021 18:01:22 +0800
Subject: [PATCH 089/622] =?UTF-8?q?:new:=20#2455=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E6=96=B0=E7=9A=84?=
 =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=9A=84=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/api/WxMaUserService.java         |  9 +++++++++
 .../miniapp/api/impl/WxMaUserServiceImpl.java   | 17 +++++++++++++++++
 .../miniapp/constant/WxMaApiUrlConstants.java   |  9 +++++----
 .../api/impl/WxMaUserServiceImplTest.java       |  5 +++++
 4 files changed, 36 insertions(+), 4 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaUserService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaUserService.java
index 0c513789cd..0a0d66f6e0 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaUserService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaUserService.java
@@ -54,6 +54,15 @@ public interface WxMaUserService {
    */
   WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedData, String ivStr);
 
+  /**
+   * 获取手机号信息,基础库:2.21.2及以上
+   *
+   * @param code 动态令牌
+   * @return .
+   * @throws WxErrorException .
+   */
+  WxMaPhoneNumberInfo getNewPhoneNoInfo(String code) throws WxErrorException;
+
   /**
    * 验证用户信息完整性.
    *
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImpl.java
index 97c2d196a1..fe513368c7 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImpl.java
@@ -6,16 +6,19 @@
 import cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo;
 import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
 import cn.binarywang.wx.miniapp.config.WxMaConfig;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
 import cn.binarywang.wx.miniapp.util.crypt.WxMaCryptUtils;
 import com.google.gson.JsonArray;
 import com.google.gson.JsonObject;
 import lombok.RequiredArgsConstructor;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.common.util.SignUtils;
+import me.chanjar.weixin.common.util.json.GsonParser;
 import org.apache.commons.codec.digest.DigestUtils;
 
 import java.util.Map;
 
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.User.GET_PHONE_NUMBER_URL;
 import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.User.SET_USER_STORAGE;
 
 /**
@@ -58,6 +61,20 @@ public WxMaPhoneNumberInfo getPhoneNoInfo(String sessionKey, String encryptedDat
     return WxMaPhoneNumberInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr));
   }
 
+  @Override
+  public WxMaPhoneNumberInfo getNewPhoneNoInfo(String code) throws WxErrorException {
+    JsonObject param = new JsonObject();
+    param.addProperty("code", code);
+    String responseContent = this.service.post(GET_PHONE_NUMBER_URL, param.toString());
+    JsonObject response = GsonParser.parse(responseContent);
+    boolean hasPhoneInfo = response.has("phone_info");
+    if (hasPhoneInfo) {
+      return WxMaGsonBuilder.create().fromJson(response.getAsJsonObject("phone_info"), WxMaPhoneNumberInfo.class);
+    } else {
+      return null;
+    }
+  }
+
   @Override
   public boolean checkUserInfo(String sessionKey, String rawData, String signature) {
     final String generatedSignature = DigestUtils.sha1Hex(rawData + sessionKey);
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
index 0ab0d279d3..ae57072068 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
@@ -288,6 +288,7 @@ public interface Subscribe {
 
   public interface User {
     String SET_USER_STORAGE = "https://api.weixin.qq.com/wxa/set_user_storage?appid=%s&signature=%s&openid=%s&sig_method=%s";
+    String GET_PHONE_NUMBER_URL = "https://api.weixin.qq.com/wxa/business/getuserphonenumber";
   }
 
   public interface Ocr {
@@ -357,20 +358,20 @@ interface Audit {
     interface Delivery {
       String GET_COMPANY_LIST = "https://api.weixin.qq.com/shop/delivery/get_company_list";
       String DELIVERY_SEND = "https://api.weixin.qq.com/shop/delivery/send";
-      String DELIVERY_RECEIVE  = "https://api.weixin.qq.com/shop/delivery/recieve";
+      String DELIVERY_RECEIVE = "https://api.weixin.qq.com/shop/delivery/recieve";
     }
 
     interface Aftersale {
       String AFTERSALE_ADD = "https://api.weixin.qq.com/shop/aftersale/add";
       String AFTERSALE_GET = "https://api.weixin.qq.com/shop/aftersale/get";
-      String AFTERSALE_UPDATE  = "https://api.weixin.qq.com/shop/aftersale/update";
+      String AFTERSALE_UPDATE = "https://api.weixin.qq.com/shop/aftersale/update";
     }
   }
 
   /**
    * 电子发票报销方
    */
-  public interface Invoice{
+  public interface Invoice {
 
     /**
      * 报销方查询报销发票信息
@@ -393,7 +394,7 @@ public interface Invoice{
     String UPDATE_STATUS_BATCH = "https://api.weixin.qq.com/card/invoice/reimburse/updatestatusbatch";
   }
 
-  public interface Internet{
+  public interface Internet {
     String GET_USER_ENCRYPT_KEY = "https://api.weixin.qq.com/wxa/business/getuserencryptkey";
   }
 
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java
index fe3fa1675c..dbee3f9c90 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java
@@ -71,4 +71,9 @@ public void testSetUserStorage() throws WxErrorException {
     this.wxService.getUserService().setUserStorage(ImmutableMap.of("1","2"),
       "r7BXXKkLb8qrSNn05n0qiA",((TestConfig)this.wxService.getWxMaConfig()).getOpenid());
   }
+
+  @Test
+  public void testGetNewPhoneNoInfo() throws Exception{
+    assertNotNull(wxService.getUserService().getNewPhoneNoInfo("test"));
+  }
 }

From 1474e727b2c0a27a0286c8a7dab6c333e613dd13 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Tue, 28 Dec 2021 18:10:48 +0800
Subject: [PATCH 090/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.3?=
 =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index 9695198cf4..553a4f2936 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.2.2.B
+  4.2.3.B
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index 1cabe75c01..c7fd4b0075 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index 47f4c1d7c7..8a1c8b7024 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index b565682220..dd00a70a88 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index a0784c7819..769c5ee4ea 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index e05b84550c..e4cd456da1 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index 3c7daeea13..cfbc3b83e9 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index f6bd676779..a506de185d 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index 2245e84d69..47abb3890c 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index 471dac4948..ccb96d30a3 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index 712659e69b..b726737dd7 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index c510836191..16e3da3300 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index d12beb7b9c..b5440d093c 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index ea7954110e..ddad8cf810 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index 6767779950..3d5dbcd37c 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index c1ffd88fbf..f3131dc19e 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.2.B
+    4.2.3.B
   
 
   weixin-java-qidian

From 1309e9e2dc7327aa7021da88eb1a05b489ddf9c5 Mon Sep 17 00:00:00 2001
From: 184759547 <96714930+184759547@users.noreply.github.com>
Date: Thu, 30 Dec 2021 09:16:10 +0800
Subject: [PATCH 091/622] =?UTF-8?q?:new:=20#2473=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E6=8E=A5=E5=85=A5=E5=B0=8F=E7=A8=8B?=
 =?UTF-8?q?=E5=BA=8F=E5=B9=BF=E5=91=8A=E5=AE=9E=E7=8E=B0=EF=BC=8C=E5=AE=9E?=
 =?UTF-8?q?=E7=8E=B0=E5=88=9B=E5=BB=BA=E6=95=B0=E6=8D=AE=E6=BA=90=E5=92=8C?=
 =?UTF-8?q?=E5=9B=9E=E4=BC=A0=E6=95=B0=E6=8D=AE=E4=B8=A4=E4=B8=AA=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: wywy12300 
---
 .../wx/miniapp/api/WxMaMarketingService.java  | 35 +++++++++
 .../wx/miniapp/api/WxMaService.java           |  7 ++
 .../miniapp/api/impl/BaseWxMaServiceImpl.java |  4 +
 .../api/impl/WxMaMarketingServiceImpl.java    | 42 +++++++++++
 .../bean/marketing/WxMaUserAction.java        | 74 +++++++++++++++++++
 5 files changed, 162 insertions(+)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMarketingService.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaMarketingServiceImpl.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMarketingService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMarketingService.java
new file mode 100644
index 0000000000..be40288d6e
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMarketingService.java
@@ -0,0 +1,35 @@
+package cn.binarywang.wx.miniapp.api;
+
+import cn.binarywang.wx.miniapp.bean.marketing.WxMaUserAction;
+import me.chanjar.weixin.common.error.WxErrorException;
+import java.util.List;
+
+/**
+ *
+ * @Description :微信营销接口
+ * @author 184759547
+ * @since : 2021/12/28
+ */
+public interface WxMaMarketingService {
+  /**
+   * 
+   * 创建数据源.
+   * 接口调用请求说明
+   * https://ad.weixin.qq.com/guide/457
+   * 
+ * + * @param type 用户行为源类型 + * @param name 用户行为源名称 必填 + * @param description 用户行为源描述,字段长度最小 1 字节,长度最大 128 字节 + */ + long addUserActionSets(String type, String name, String description) throws WxErrorException; + + /** + * 回传数据. + * 接口调用请求说明 + * https://ad.weixin.qq.com/guide/457 + * + * @param actions 用户行为源类型 + */ + String addUserAction(List actions, Long userActionSetId) throws WxErrorException; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index b22f865381..225a52a558 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -469,4 +469,11 @@ public interface WxMaService extends WxService { * @return WxMaDeviceSubscribeService plugin service */ WxMaDeviceSubscribeService getDeviceSubscribeService(); + + /** + * 返回小程序广告接入相关接口服务对象 + * + * @return WxMaDeviceSubscribeService plugin service + */ + WxMaMarketingService getMarketingService(); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index e6ab2b9887..bf8e1e9033 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -76,6 +76,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaLinkService linkService = new WxMaLinkServiceImpl(this); private final WxMaReimburseInvoiceService reimburseInvoiceService = new WxMaReimburseInvoiceServiceImpl(this); private final WxMaDeviceSubscribeService deviceSubscribeService = new WxMaDeviceSubscribeServiceImpl(this); + private final WxMaMarketingService marketingService = new WxMaMarketingServiceImpl(this); private Map configMap; private int retrySleepMillis = 1000; private int maxRetryTimes = 5; @@ -577,4 +578,7 @@ public WxMaReimburseInvoiceService getReimburseInvoiceService() { @Override public WxMaDeviceSubscribeService getDeviceSubscribeService(){ return this.deviceSubscribeService; } + + @Override + public WxMaMarketingService getMarketingService() {return this.marketingService; } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaMarketingServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaMarketingServiceImpl.java new file mode 100644 index 0000000000..001519e56c --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaMarketingServiceImpl.java @@ -0,0 +1,42 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaMarketingService; +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.marketing.WxMaUserAction; +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; + +import java.util.List; + +/** + * @author 184759547 + * @Description :微信营销接口 + * @since : 2021/12/28 + */ +@Slf4j +@RequiredArgsConstructor +public class WxMaMarketingServiceImpl implements WxMaMarketingService { + private final WxMaService wxMaService; + private final String USER_ACTION_SETS_ADD = "https://api.weixin.qq.com/marketing/user_action_sets/add?version=v1.0"; + private final String USER_ACTIONS_ADD = "https://api.weixin.qq.com/marketing/user_actions/add?version=v1.0"; + + @Override + public long addUserActionSets(String type, String name, String description) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("type", type); + json.addProperty("name", name); + json.addProperty("description", description); + String responseContent = wxMaService.post(USER_ACTION_SETS_ADD, json.toString()); + JsonObject tmpJson = GsonParser.parse(responseContent); + return tmpJson.get("data").getAsJsonObject().get("user_action_set_id").getAsLong(); + } + + @Override + public String addUserAction(List actions, Long userActionSetId) throws WxErrorException { + return wxMaService.post(USER_ACTIONS_ADD, WxMaUserAction.listToJson(actions, userActionSetId)); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java new file mode 100644 index 0000000000..5427aa2ab5 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java @@ -0,0 +1,74 @@ +package cn.binarywang.wx.miniapp.bean.marketing; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import sun.rmi.runtime.Log; + +import java.io.Serializable; +import java.util.List; + +/** + * @Description :微信营销接口 + * @author 184759547 + * @since : 2021/12/28 + */ + +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class WxMaUserAction implements Serializable { + private static final long serialVersionUID = 7482378011709983616L; + private String url; + private Integer actionTime; + private String actionType; + private String leadsType; + private String clickId; + private Integer actionParam; + + private JsonObject toJsonObject() { + JsonObject json = new JsonObject(); + json.addProperty("url", this.url); + json.addProperty("action_time", this.actionTime); + json.addProperty("action_type", this.actionType); + + if (this.clickId != null) { + JsonObject traceJson = new JsonObject(); + traceJson.addProperty("click_id", this.clickId); + json.add("trace", traceJson); + } + + if (this.actionParam != null) { + JsonObject actionParamJson = new JsonObject(); + actionParamJson.addProperty("value", actionParam); + if (this.leadsType != null) { + actionParamJson.addProperty("leads_type", leadsType); + } + json.add("action_param", actionParamJson); + } + + return json; + } + + /** + * list对象转换为json字符串 + * + * @param actions . + * @return . + */ + public static String listToJson(List actions, Long userActionSetId) { + JsonArray array = new JsonArray(); + for (WxMaUserAction action : actions) { + array.add(action.toJsonObject()); + } + + JsonObject result = new JsonObject(); + result.addProperty("user_action_set_id", userActionSetId); + result.add("actions", array); + return result.toString(); + } +} From a647fe8c5b096a4bbd50be81cce07e699055e396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=97=E8=8B=97=E5=AD=90?= <994599447@qq.com> Date: Thu, 30 Dec 2021 09:17:19 +0800 Subject: [PATCH 092/622] =?UTF-8?q?:art:=20#2474=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91createWxaCodeUnlimit=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=B9=E6=B3=95=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?check=5Fpath=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaQrcodeService.java | 12 +++++++++--- .../api/impl/WxMaQrcodeServiceImpl.java | 19 ++++++++++--------- .../wx/miniapp/bean/WxaCodeUnlimit.java | 3 +++ .../api/impl/WxMaQrcodeServiceImplTest.java | 2 +- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java index 32e4e78cad..46fc97d2b5 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java @@ -193,6 +193,8 @@ File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 + * @param checkPath 默认true 检查 page 是否存在,为 true 时 page 必须是已经发布的小程序存在的页面(否则报错); + * 为 false 时允许小程序未发布或者 page 不存在,但 page 有数量上限(60000个)请勿滥用 * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" * @param width 默认430 二维码的宽度 * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 @@ -201,7 +203,7 @@ File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor * @return 文件内容字节数组 * @throws WxErrorException 异常 */ - byte[] createWxaCodeUnlimitBytes(String scene, String page, String envVersion, int width, boolean autoColor, + byte[] createWxaCodeUnlimitBytes(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** @@ -217,6 +219,8 @@ byte[] createWxaCodeUnlimitBytes(String scene, String page, String envVersion, i * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 * @param filePath 二维码生成的文件路径,例如: /var/temp + * @param checkPath 默认true 检查 page 是否存在,为 true 时 page 必须是已经发布的小程序存在的页面(否则报错); + * 为 false 时允许小程序未发布或者 page 不存在,但 page 有数量上限(60000个)请勿滥用 * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" * @param width 默认430 二维码的宽度 * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 @@ -225,7 +229,7 @@ byte[] createWxaCodeUnlimitBytes(String scene, String page, String envVersion, i * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCodeUnlimit(String scene, String page, String filePath, String envVersion, int width, boolean autoColor, + File createWxaCodeUnlimit(String scene, String page, String filePath, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** @@ -240,6 +244,8 @@ File createWxaCodeUnlimit(String scene, String page, String filePath, String env * @param scene 最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:!#$&'()*+,/:;=?@-._~, * 其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) * @param page 必须是已经发布的小程序页面,例如 "pages/index/index" ,如果不填写这个字段,默认跳主页面 + * @param checkPath 默认true 检查 page 是否存在,为 true 时 page 必须是已经发布的小程序存在的页面(否则报错); + * 为 false 时允许小程序未发布或者 page 不存在,但 page 有数量上限(60000个)请勿滥用 * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" * @param width 默认430 二维码的宽度 * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 @@ -248,7 +254,7 @@ File createWxaCodeUnlimit(String scene, String page, String filePath, String env * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCodeUnlimit(String scene, String page, String envVersion, int width, boolean autoColor, + File createWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java index ccfac099b3..072119bc2a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java @@ -76,24 +76,25 @@ public File createWxaCode(String path) throws WxErrorException { } @Override - public byte[] createWxaCodeUnlimitBytes(String scene, String page, String envVersion, int width, boolean autoColor, + public byte[] createWxaCodeUnlimitBytes(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeBytesRequestExecutor.create(this.service.getRequestHttp()), - GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, envVersion, width, autoColor, lineColor, isHyaline)); + GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, checkPath, envVersion, width, autoColor, lineColor, isHyaline)); } @Override - public File createWxaCodeUnlimit(String scene, String page, String envVersion, int width, boolean autoColor, + public File createWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp()), - GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, envVersion, width, autoColor, lineColor, isHyaline)); + GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, checkPath, envVersion, width, autoColor, lineColor, isHyaline)); } - private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, String envVersion, int width, boolean autoColor, + private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) { WxaCodeUnlimit wxaCodeUnlimit = new WxaCodeUnlimit(); wxaCodeUnlimit.setScene(scene); wxaCodeUnlimit.setPage(page); + wxaCodeUnlimit.setCheckPath(checkPath); wxaCodeUnlimit.setEnvVersion(envVersion); wxaCodeUnlimit.setWidth(width); wxaCodeUnlimit.setAutoColor(autoColor); @@ -105,7 +106,7 @@ private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, String env @Override public File createWxaCodeUnlimit(String scene, String page) throws WxErrorException { - return this.createWxaCodeUnlimit(scene, page, "release", 430, true, null, false); + return this.createWxaCodeUnlimit(scene, page, true, "release", 430, true, null, false); } @Override @@ -144,15 +145,15 @@ public File createWxaCode(String path, String filePath) throws WxErrorException } @Override - public File createWxaCodeUnlimit(String scene, String page, String filePath, String envVersion, int width, boolean autoColor, + public File createWxaCodeUnlimit(String scene, String page, String filePath, boolean checkPath, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp(), filePath), - GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, envVersion, width, autoColor, lineColor, isHyaline)); + GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, checkPath, envVersion, width, autoColor, lineColor, isHyaline)); } @Override public File createWxaCodeUnlimit(String scene, String page, String filePath) throws WxErrorException { - return this.createWxaCodeUnlimit(scene, page, filePath, "release", 430, true, null, false); + return this.createWxaCodeUnlimit(scene, page, filePath, true, "release", 430, true, null, false); } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java index f9c902efd4..32e713ad84 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java @@ -20,6 +20,9 @@ public class WxaCodeUnlimit extends AbstractWxMaQrcodeWrapper implements Seriali private String scene; private String page; + @SerializedName("check_path") + private boolean checkPath = true; + @SerializedName("env_version") private String envVersion = "release"; diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java index cf500c2b2d..25988f5fd5 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java @@ -52,7 +52,7 @@ public void testCreateWxaCodeBytes() throws WxErrorException { @Test public void testCreateWxaCodeUnlimitBytes() throws WxErrorException { - final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimitBytes("111", null, "trial", 122, true, null, false); + final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimitBytes("111", "pages/unknown", false, "trial", 122, true, null, false); assertThat(wxCode).isNotNull(); } From fd8e02a81a208066332a70c8b7317f63cad75217 Mon Sep 17 00:00:00 2001 From: JCLee <452415615@qq.com> Date: Fri, 31 Dec 2021 15:04:07 +0800 Subject: [PATCH 093/622] =?UTF-8?q?:art:=20#2476=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E5=AE=A2=E6=9C=8D=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8D=89=E7=A8=BF=E7=AE=B1=E5=9B=BE=E6=96=87?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/api/WxConsts.java | 5 +++ .../weixin/mp/bean/kefu/WxMpKefuMessage.java | 9 +++++ .../mp/builder/kefu/MpNewsArticleBuilder.java | 33 +++++++++++++++++++ .../util/json/WxMpKefuMessageGsonAdapter.java | 5 +++ .../mp/bean/kefu/WxMpKefuMessageTest.java | 9 +++++ 5 files changed, 61 insertions(+) create mode 100644 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/builder/kefu/MpNewsArticleBuilder.java diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java index 01b1d36483..b6b94a7641 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java @@ -126,6 +126,11 @@ public static class KefuMsgType { * 模板卡片消息. */ public static final String TEMPLATE_CARD = "template_card"; + + /** + * 发送图文消息(点击跳转到图文消息页面)使用通过 “发布” 系列接口得到的 article_id(草稿箱功能上线后不再支持客服接口中带 media_id 的 mpnews 类型的图文消息) + */ + public static final String MP_NEWS_ARTICLE = "mpnewsarticle"; } /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessage.java index 37beb77e78..7ac8bee4f6 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessage.java @@ -37,6 +37,7 @@ public class WxMpKefuMessage implements Serializable { private String headContent; private String tailContent; private List articles = new ArrayList<>(); + private String mpNewsArticleId; /** * 菜单消息里的菜单内容. @@ -113,6 +114,13 @@ public static MiniProgramPageBuilder MINIPROGRAMPAGE() { return new MiniProgramPageBuilder(); } + /** + * 发送图文消息(点击跳转到图文消息页面)使用通过 “发布” 系列接口得到的 article_id(草稿箱功能上线后不再支持客服接口中带 media_id 的 mpnews 类型的图文消息) + */ + public static MpNewsArticleBuilder MPNEWSARTICLE() { + return new MpNewsArticleBuilder(); + } + /** *
    * 请使用
@@ -127,6 +135,7 @@ public static MiniProgramPageBuilder MINIPROGRAMPAGE() {
    * {@link WxConsts.KefuMsgType#MINIPROGRAMPAGE}
    * {@link WxConsts.KefuMsgType#TASKCARD}
    * {@link WxConsts.KefuMsgType#MSGMENU}
+   * {@link WxConsts.KefuMsgType#MP_NEWS_ARTICLE}
    * 
*/ public void setMsgType(String msgType) { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/builder/kefu/MpNewsArticleBuilder.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/builder/kefu/MpNewsArticleBuilder.java new file mode 100644 index 0000000000..2d6babcf8a --- /dev/null +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/builder/kefu/MpNewsArticleBuilder.java @@ -0,0 +1,33 @@ +package me.chanjar.weixin.mp.builder.kefu; + +import me.chanjar.weixin.common.api.WxConsts; +import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage; + +/** + * 图文消息builder + *
+ * 用法:
+ * WxMpKefuMessage m = WxMpKefuMessage.MPNEWSARTICLE().articleId("xxxxx").toUser(...).build();
+ * 
+ * + * @author JCLee + */ +public final class MpNewsArticleBuilder extends BaseBuilder{ + private String articleId; + + public MpNewsArticleBuilder() { + this.msgType = WxConsts.KefuMsgType.MP_NEWS_ARTICLE; + } + + public MpNewsArticleBuilder articleId(String articleId) { + this.articleId = articleId; + return this; + } + + @Override + public WxMpKefuMessage build() { + WxMpKefuMessage m = super.build(); + m.setMpNewsArticleId(this.articleId); + return m; + } +} diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpKefuMessageGsonAdapter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpKefuMessageGsonAdapter.java index 679f8db1ac..c4b1244526 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpKefuMessageGsonAdapter.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpKefuMessageGsonAdapter.java @@ -96,6 +96,11 @@ public JsonElement serialize(WxMpKefuMessage message, Type typeOfSrc, JsonSerial messageJson.add("msgmenu", msgmenuJsonObject); break; } + case KefuMsgType.MP_NEWS_ARTICLE: + JsonObject mpNewsArticleJson = new JsonObject(); + mpNewsArticleJson.addProperty("article_id", message.getMpNewsArticleId()); + messageJson.add("mpnewsarticle", mpNewsArticleJson); + break; default: { throw new WxRuntimeException("非法消息类型,暂不支持"); } diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessageTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessageTest.java index ec754875da..e74f200b44 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessageTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/kefu/WxMpKefuMessageTest.java @@ -166,4 +166,13 @@ public void testMsgMenuBuild() { "{\"touser\":\"OPENID\",\"msgtype\":\"msgmenu\",\"msgmenu\":{\"head_content\":\"head_content\",\"list\":[{\"id\":\"101\",\"content\":\"msgmenu1\"},{\"id\":\"102\",\"content\":\"msgmenu2\"}],\"tail_content\":\"tail_content\"}}"); } + public void testMpNewsArticleBuilder() { + WxMpKefuMessage reply = WxMpKefuMessage.MPNEWSARTICLE() + .toUser("OPENID") + .articleId("ARTICLE_ID") + .build(); + Assert.assertEquals(reply.toJson(), + "{\"touser\":\"OPENID\",\"msgtype\":\"mpnewsarticle\",\"mpnewsarticle\":{\"article_id\":\"ARTICLE_ID\"}}"); + } + } From 0c35f778dbbbeb6528f193cfa7e7d18615097eaa Mon Sep 17 00:00:00 2001 From: zp961466717 <43167276+zp961466717@users.noreply.github.com> Date: Mon, 3 Jan 2022 23:09:27 +0800 Subject: [PATCH 094/622] =?UTF-8?q?:art:=20#2481=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=8F=91=E9=80=81=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E9=80=9A=E7=9F=A5=E5=9E=8B=E7=9A=84=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=8D=A1=E7=89=87=E6=B6=88=E6=81=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E6=96=87=E6=9C=AC=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/message/WxCpMessage.java | 11 +++ .../messagebuilder/TemplateCardBuilder.java | 11 +++ .../cp/bean/templatecard/QuoteArea.java | 74 +++++++++++++++++++ .../cp/bean/message/WxCpMessageTest.java | 12 ++- 4 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java index a2f6e6c5c6..027a518837 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java @@ -199,6 +199,11 @@ public class WxCpMessage implements Serializable { */ private List selects; + /** + * 引用文献样式 + */ + private QuoteArea quoteArea; + /** * 获得文本消息builder. */ @@ -606,6 +611,12 @@ private void handleMsgType(JsonObject messageJson) { template.add("select_list", selectJsonArray); } + QuoteArea quoteArea = this.getQuoteArea(); + if (null != quoteArea){ + JsonObject quoteAreaJson = quoteArea.toJson(); + template.add("quote_area",quoteAreaJson); + } + messageJson.add("template_card", template); break; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java index 7a29491ab1..ecee5108ea 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java @@ -146,6 +146,11 @@ public class TemplateCardBuilder extends BaseBuilder{ */ private List selects; + /** + * 引用文献样式 + */ + private QuoteArea quoteArea; + public TemplateCardBuilder() { this.msgType = WxConsts.KefuMsgType.TEMPLATE_CARD; @@ -266,6 +271,11 @@ public TemplateCardBuilder selects(List selects) { return this; } + public TemplateCardBuilder quoteArea(QuoteArea quoteArea) { + this.quoteArea = quoteArea; + return this; + } + @Override public WxCpMessage build() { WxCpMessage m = super.build(); @@ -295,6 +305,7 @@ public WxCpMessage build() { m.setSubmit_button_text(this.submit_button_text); m.setSubmit_button_key(this.submit_button_key); m.setSelects(this.selects); + m.setQuoteArea(this.quoteArea); return m; } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java new file mode 100644 index 0000000000..564500a45f --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java @@ -0,0 +1,74 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 引用文献样式 + * + * @author zp + * @date 2022/1/2 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class QuoteArea implements Serializable { + + private static final long serialVersionUID = -2209656515382964356L; + + /** + * 非必填 引用文献样式区域点击事件,0或不填代表没有点击事件,1 代表跳转url,2 代表跳转小程序 + */ + private Integer type; + /** + * 点击跳转的url,quote_area.type是1时必填 + */ + private String url; + /** + * 点击跳转的小程序的appid,必须是与当前应用关联的小程序,quote_area.type是2时必填 + */ + private String appid; + /** + * 点击跳转的小程序的pagepath,quote_area.type是2时选填 + */ + private String pagepath; + /** + * 引用文献样式的标题 + */ + private String title; + /** + * 引用文献样式的引用文案 + */ + private String quoteText; + + public JsonObject toJson() { + JsonObject quoteAreaJson = new JsonObject(); + if (null != this.getType()) { + quoteAreaJson.addProperty("type", this.getType()); + } + if (StringUtils.isNotBlank(this.getUrl())) { + quoteAreaJson.addProperty("url", this.getUrl()); + } + if (StringUtils.isNotBlank(this.getAppid())) { + quoteAreaJson.addProperty("appid", this.getAppid()); + } + if (StringUtils.isNotBlank(this.getPagepath())) { + quoteAreaJson.addProperty("pagepath", this.getPagepath()); + } + if (StringUtils.isNotBlank(this.getTitle())) { + quoteAreaJson.addProperty("title", this.getTitle()); + } + if (StringUtils.isNotBlank(this.getQuoteText())) { + quoteAreaJson.addProperty("quote_text", this.getQuoteText()); + } + return quoteAreaJson; + } + +} diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java index a1cfee801b..552fe3d5ab 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java @@ -178,7 +178,14 @@ public void TestTemplateCardBuilder_text_notice() { .appid("小程序的appid") .pagepath("/index.html") .build(); - + QuoteArea quoteArea=QuoteArea.builder() + .type(1) + .title("引用文献标题") + .appid("小程序的appid") + .pagepath("/index.html") + .url("https://work.weixin.qq.com") + .quoteText("引用文献样式的引用文案") + .build(); WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") .agentId(1000002) .card_type(WxConsts.TemplateCardType.TEXT_NOTICE) @@ -195,13 +202,14 @@ public void TestTemplateCardBuilder_text_notice() { .card_action_appid("小程序的appid") .card_action_url("https://work.weixin.qq.com") .card_action_pagepath("/index.html") + .quoteArea(quoteArea) .build(); reply.setEnableIdTrans(false); reply.setEnableDuplicateCheck(false); reply.setDuplicateCheckInterval(1800); // System.out.println(reply.toJson()); assertThat(reply.toJson()) - .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"text_notice\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"emphasis_content\":{\"title\":\"100\",\"desc\":\"核心数据\"},\"sub_title_text\":\"下载企业微信还能抢红包!\",\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"}],\"jump_list\":[{\"type\":1,\"title\":\"企业微信官网\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"title\":\"跳转小程序\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}}}"); + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"text_notice\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"emphasis_content\":{\"title\":\"100\",\"desc\":\"核心数据\"},\"sub_title_text\":\"下载企业微信还能抢红包!\",\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"}],\"jump_list\":[{\"type\":1,\"title\":\"企业微信官网\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"title\":\"跳转小程序\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"},\"quote_area\":{\"type\":1,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\",\"title\":\"引用文献标题\",\"quote_text\":\"引用文献样式的引用文案\"}}}"); } From 4b92f94a41ea00af9c3e60e916c76536e555cb44 Mon Sep 17 00:00:00 2001 From: Tim Sims Date: Mon, 3 Jan 2022 23:11:19 +0800 Subject: [PATCH 095/622] =?UTF-8?q?:new:=20#2479=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=BC=81=E4=B8=9A=E7=BE=A4=E5=8F=91=E6=88=90=E5=91=98?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E7=BB=93=E6=9E=9C=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 14 +++++ .../impl/WxCpExternalContactServiceImpl.java | 24 ++++++++ .../external/contact/WxCpGroupMsgResult.java | 59 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + .../contact/WxCpGroupMsgResultTest.java | 37 ++++++++++++ 5 files changed, 135 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResultTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index ef3cc2a3ad..76ab62350e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -818,6 +818,20 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) */ WxCpGroupMsgSendResult getGroupMsgSendResult(String msgid, String userid, Integer limit, String cursor) throws WxErrorException; + /** + *
+   * 企业跟第三方应用可通过该接口获取到创建企业群发的群发发送结果。
+   * https://work.weixin.qq.com/api/doc/16251
+   * 
+ * + * @param msgid 群发消息的id,通过创建企业群发接口返回 + * @param limit 返回的最大记录数,整型,最大值10000,默认值10000 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + public WxCpGroupMsgResult getGroupMsgResult(String msgid, Integer limit, String cursor) throws WxErrorException; + /** *
    * 获取群发成员发送任务列表。
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
index 6cf6172a88..87e9895784 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
@@ -648,6 +648,30 @@ public WxCpGroupMsgSendResult getGroupMsgSendResult(String msgid, String userid,
     return WxCpGroupMsgSendResult.fromJson(result);
   }
 
+  /**
+   * 
+   * 企业跟第三方应用可通过该接口获取到创建企业群发的群发发送结果。
+   * https://work.weixin.qq.com/api/doc/16251
+   * 
+ * + * @param msgid 群发消息的id,通过创建企业群发接口返回 + * @param limit 返回的最大记录数,整型,最大值10000,默认值10000 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @return wx cp base resp + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpGroupMsgResult getGroupMsgResult(String msgid, Integer limit, String cursor) throws WxErrorException { + JsonObject json = new JsonObject(); + json.addProperty("msgid", msgid); + json.addProperty("limit", limit); + json.addProperty("cursor", cursor); + + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_GROUP_MSG_RESULT); + final String result = this.mainService.post(url, json.toString()); + return WxCpGroupMsgResult.fromJson(result); + } + /** *
    * 获取群发成员发送任务列表。
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java
new file mode 100644
index 0000000000..5cae404f05
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java
@@ -0,0 +1,59 @@
+package me.chanjar.weixin.cp.bean.external.contact;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 
+ * 获取企业群发成员执行结果
+ * 参考文档:https://work.weixin.qq.com/api/doc/16251
+ * 
+ * + * @author Tim Sims + */ +@Getter +@Setter +public class WxCpGroupMsgResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5166048319463473186L; + + @SerializedName("detail_list") + private List detailList; + + @SerializedName("next_cursor") + private String nextCursor; + + @Getter + @Setter + public static class ExternalContactGroupMsgDetailInfo implements Serializable { + private static final long serialVersionUID = 1500416806087532531L; + + // 外部联系人userid,群发消息到企业的客户群不吐出该字段 + @SerializedName("external_userid") + private String externalUserId; + + // 外部客户群id,群发消息到客户不吐出该字段 + @SerializedName("chat_id") + private String chatId; + + // 企业服务人员的userid + @SerializedName("userid") + private String userId; + + // 发送状态 0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败 + private Integer status; + + // 发送时间,发送状态为1时返回 + @SerializedName("send_time") + private Long sendTime; + } + + public static WxCpGroupMsgResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgResult.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index c807b0f048..cea1bcb9ba 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -233,6 +233,7 @@ interface ExternalContact { String GET_GROUP_MSG_SEND_RESULT = "/cgi-bin/externalcontact/get_groupmsg_send_result"; String GET_GROUP_MSG_TASK = "/cgi-bin/externalcontact/get_groupmsg_task"; String GET_GROUP_MSG_LIST_V2 = "/cgi-bin/externalcontact/get_groupmsg_list_v2"; + String GET_GROUP_MSG_RESULT = "/cgi-bin/externalcontact/get_group_msg_result"; String GET_PRODUCT_ALBUM = "/cgi-bin/externalcontact/get_product_album"; String GET_PRODUCT_ALBUM_LIST = "/cgi-bin/externalcontact/get_product_album_list"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResultTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResultTest.java new file mode 100644 index 0000000000..a0bc98b105 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResultTest.java @@ -0,0 +1,37 @@ +package me.chanjar.weixin.cp.bean.external.contact; + +import org.testng.annotations.Test; + +import static org.assertj.core.api.Assertions.assertThat; + +public class WxCpGroupMsgResultTest { + + @Test + public void testToJson() { + /* + @see https://work.weixin.qq.com/api/doc/16251 + */ + String json = "{ " + + "\"errcode\": 0, " + + "\"errmsg\": \"ok\", " + + "\"detail_list\": [ " + + " { " + + " \"external_userid\": \"wmqfasd1e19278asdasAAAA\", " + + " \"chat_id\":\"wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA\", " + + " \"userid\": \"zhangsan\", " + + " \"status\": 1, " + + " \"send_time\": 1552536375 " + + " } " + + " ] " + + "}"; + + WxCpGroupMsgResult result = WxCpGroupMsgResult.fromJson(json); + assertThat(result.getDetailList().size()).isEqualTo(1); + WxCpGroupMsgResult.ExternalContactGroupMsgDetailInfo detail = result.getDetailList().get(0); + assertThat(detail.getChatId()).isEqualTo("wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA"); + assertThat(detail.getExternalUserId()).isEqualTo("wmqfasd1e19278asdasAAAA"); + assertThat(detail.getUserId()).isEqualTo("zhangsan"); + assertThat(detail.getStatus()).isEqualTo(1); + assertThat(detail.getSendTime()).isEqualTo(1552536375L); + } +} From 76ea7fe2a8097f77cc9436a22324b31a11e6192d Mon Sep 17 00:00:00 2001 From: dany1 Date: Mon, 3 Jan 2022 23:15:31 +0800 Subject: [PATCH 096/622] =?UTF-8?q?:art:=20#2477=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5=E4=BA=8B=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=B1=9E=E6=80=A7=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/bean/WxMaMessage.java | 48 ++++- .../miniapp/bean/WxMaSubscribeMsgEvent.java | 118 ++++++++++++ .../wx/miniapp/json/WxMaGsonBuilder.java | 2 + .../WxMaSubscribeMsgEventJsonAdapter.java | 104 ++++++++++ .../wx/miniapp/bean/WxMaMessageTest.java | 179 ++++++++++++++++++ 5 files changed, 450 insertions(+), 1 deletion(-) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java index 4a8713cad5..76017659f3 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java @@ -11,6 +11,7 @@ import me.chanjar.weixin.common.error.WxRuntimeException; import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; import org.apache.commons.io.IOUtils; +import org.apache.commons.lang3.StringUtils; import java.io.IOException; import java.io.InputStream; @@ -165,6 +166,39 @@ public class WxMaMessage implements Serializable { @XStreamConverter(value = XStreamCDataConverter.class) private String openPid; + @XStreamAlias("SubscribeMsgPopupEvent") + private WxMaSubscribeMsgEvent.SubscribeMsgPopupEvent subscribeMsgPopupEvent; + + @XStreamAlias("SubscribeMsgChangeEvent") + private WxMaSubscribeMsgEvent.SubscribeMsgChangeEvent subscribeMsgChangeEvent; + + @XStreamAlias("SubscribeMsgSentEvent") + private WxMaSubscribeMsgEvent.SubscribeMsgSentEvent subscribeMsgSentEvent; + + /** + * 不要直接使用这个字段, + * 这个字段只是为了适配 SubscribeMsgPopupEvent SubscribeMsgChangeEvent SubscribeMsgSentEvent + * 在json里面名称都是List并且有时候是对象有时候是数组的问题 + * 当List只有一个对象的时候,微信服务器推送过来的的List是对象而非数组,当有多个对象的时候推送过来的才是数组 + * 当只有一个对象的时候 + * "List": { + * "TemplateId": "hD-ixGOhYmUfjOnI8MCzQMPshzGVeux_2vzyvQu7O68", + * "SubscribeStatusString": "accept", + * "PopupScene": "0" + * } + * 当有多条数据的时候 + * "List": [ { + * "TemplateId": "hD-ixGOhYmUfjOnI8MCzQMPshzGVeux_2vzyvQu7O68", + * "SubscribeStatusString": "accept", + * "PopupScene": "0" + * }, { + * "TemplateId": "hD-ixGOhYmUfjOnI8MCzQMPshzGVeux_2vzyvQu7O68", + * "SubscribeStatusString": "accept", + * "PopupScene": "0" + * }] + */ + @SerializedName("List") + private WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson uselessMsg; public static WxMaMessage fromXml(String xml) { return XStreamTransformer.fromXml(WxMaMessage.class, xml); @@ -201,7 +235,19 @@ public static WxMaMessage fromEncryptedXml(InputStream is, WxMaConfig wxMaConfig } public static WxMaMessage fromJson(String json) { - return WxMaGsonBuilder.create().fromJson(json, WxMaMessage.class); + WxMaMessage message = WxMaGsonBuilder.create().fromJson(json, WxMaMessage.class); + // 在这里处理 event的json格式时候的 list 问题,让json和xml的程序接口可以保持一致, 详见 uselessMsg 字段的注释 + if (message.getUselessMsg() != null) { + if (StringUtils.equals(message.getEvent(), "subscribe_msg_popup_event")) { + message.setSubscribeMsgPopupEvent(message.getUselessMsg().getPopupEvents()); + } else if (StringUtils.equals(message.getEvent(), "subscribe_msg_change_event")) { + message.setSubscribeMsgChangeEvent(message.getUselessMsg().getChangeEvents()); + } else if (StringUtils.equals(message.getEvent(), "subscribe_msg_sent_event")) { + message.setSubscribeMsgSentEvent(message.getUselessMsg().getSentEvent()); + } + message.setUselessMsg(null); + } + return message; } public static WxMaMessage fromEncryptedJson(String encryptedJson, WxMaConfig config) { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java new file mode 100644 index 0000000000..2191dd8386 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java @@ -0,0 +1,118 @@ +package cn.binarywang.wx.miniapp.bean; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamConverter; +import com.thoughtworks.xstream.annotations.XStreamImplicit; +import lombok.Data; +import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; + +import java.io.Serializable; +import java.util.LinkedList; +import java.util.List; + +/** + * WxMaSubscribeMsgEvent class + * 客户端订阅,服务端收到的通知 + * @author dany + * @date 2021/12/31 + */ +public class WxMaSubscribeMsgEvent { + /** + * https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html + */ + @Data + @XStreamAlias("SubscribeMsgPopupEvent") + public static class SubscribeMsgPopupEvent implements Serializable { + private static final long serialVersionUID = 6319723189257161326L; + @XStreamImplicit(itemFieldName = "List") + private List list = new LinkedList<>(); + } + + @Data + @XStreamAlias("SubscribeMsgChangeEvent") + public static class SubscribeMsgChangeEvent implements Serializable { + private static final long serialVersionUID = 7705686111539437751L; + @XStreamImplicit(itemFieldName = "List") + private List list = new LinkedList<>(); + } + + @Data + @XStreamAlias("SubscribeMsgSentEvent") + public static class SubscribeMsgSentEvent implements Serializable { + private static final long serialVersionUID = 7705686111539437751L; + @XStreamAlias("List") + private SentEvent list; + } + + + @Data + public static class PopupEvent implements Serializable { + private static final long serialVersionUID = 4934029303241387226L; + /** + * 模板id + */ + @XStreamAlias("TemplateId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String templateId; + /** + * 订阅结果(accept接收;reject拒收) + */ + @XStreamAlias("SubscribeStatusString") + @XStreamConverter(value = XStreamCDataConverter.class) + private String subscribeStatusString; + /** + * 弹框场景,0代表在小程序页面内 + */ + @XStreamAlias("PopupScene") + private String popupScene; + } + + @Data + public static class ChangeEvent implements Serializable { + private static final long serialVersionUID = 1523634146232757624L; + /** + * 模板id + */ + @XStreamAlias("TemplateId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String templateId; + /** + * 订阅结果(accept接收;reject拒收) + */ + @XStreamAlias("SubscribeStatusString") + @XStreamConverter(value = XStreamCDataConverter.class) + private String subscribeStatusString; + } + + @Data + public static class SentEvent implements Serializable { + private static final long serialVersionUID = -8734478345463177940L; + /** + * 模板id + */ + @XStreamAlias("TemplateId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String templateId; + + @XStreamAlias("MsgID") + private String msgId; + + @XStreamAlias("ErrorCode") + private String errorCode; + + @XStreamAlias("ErrorStatus") + @XStreamConverter(value = XStreamCDataConverter.class) + private String errorStatus; + } + + @Data + public static class WxMaSubscribeMsgEventJson implements Serializable { + private static final long serialVersionUID = -4820758280837190275L; + + private SubscribeMsgPopupEvent popupEvents; + + private SubscribeMsgChangeEvent changeEvents; + + private SubscribeMsgSentEvent sentEvent; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java index e6f6842fa2..0918935ee9 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java @@ -1,6 +1,7 @@ package cn.binarywang.wx.miniapp.json; import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMessage; +import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMsgEvent; import cn.binarywang.wx.miniapp.bean.WxMaUniformMessage; import cn.binarywang.wx.miniapp.bean.analysis.WxMaRetainInfo; import cn.binarywang.wx.miniapp.bean.analysis.WxMaUserPortrait; @@ -26,6 +27,7 @@ public class WxMaGsonBuilder { INSTANCE.registerTypeAdapter(WxMaVisitDistribution.class, new WxMaVisitDistributionGsonAdapter()); INSTANCE.registerTypeAdapter(WxMaRetainInfo.class, new WxMaRetainInfoGsonAdapter()); INSTANCE.registerTypeAdapter(WxMaUserPortrait.class, new WxMaUserPortraitGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson.class, new WxMaSubscribeMsgEventJsonAdapter()); } public static Gson create() { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java new file mode 100644 index 0000000000..d489f14a7b --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java @@ -0,0 +1,104 @@ +package cn.binarywang.wx.miniapp.json.adaptor; + +import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMsgEvent; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import lombok.extern.slf4j.Slf4j; + +import java.lang.reflect.Type; + +/** + * WxMaSubscribeMsgEventJsonAdapter class + * + * @author dany + * @date 2021/12/31 + */ +@Slf4j +public class WxMaSubscribeMsgEventJsonAdapter implements JsonDeserializer { + @Override + public WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { + WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson result = new WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson(); + if (json.isJsonArray()) { + JsonArray array = json.getAsJsonArray(); + if (array.size() > 0) { + JsonObject obj = array.get(0).getAsJsonObject(); + MsgEventTypeEnum eventType = detectMsgEventType(obj); + for (int i = 0; i < array.size(); ++i) { + obj = array.get(i).getAsJsonObject(); + setField(result, eventType, obj); + } + } + } else { + JsonObject obj = json.getAsJsonObject(); + MsgEventTypeEnum eventType = detectMsgEventType(obj); + setField(result, eventType, obj); + } + return result; + } + + public enum MsgEventTypeEnum { + EVENT_POPUP,EVENT_CHANGE,EVENT_SENT; + } + private MsgEventTypeEnum detectMsgEventType(JsonObject obj) { + JsonElement popupScene = obj.get("PopupScene"); + if (popupScene != null) { + return MsgEventTypeEnum.EVENT_POPUP; + } + + JsonElement msgId = obj.get("MsgID"); + if (msgId != null) { + return MsgEventTypeEnum.EVENT_SENT; + } + JsonElement errorCode = obj.get("ErrorCode"); + if (errorCode != null) { + return MsgEventTypeEnum.EVENT_SENT; + } + JsonElement errorStatus = obj.get("ErrorStatus"); + if (errorStatus != null) { + return MsgEventTypeEnum.EVENT_SENT; + } + + return MsgEventTypeEnum.EVENT_CHANGE; + } + + private WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson setField(WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson target, + MsgEventTypeEnum eventType, JsonObject json) { + switch (eventType) { + case EVENT_POPUP: + if (target.getPopupEvents() == null) { + target.setPopupEvents(new WxMaSubscribeMsgEvent.SubscribeMsgPopupEvent()); + } + WxMaSubscribeMsgEvent.PopupEvent popupEvent = new WxMaSubscribeMsgEvent.PopupEvent(); + popupEvent.setTemplateId(json.get("TemplateId").getAsString()); + popupEvent.setSubscribeStatusString(json.get("SubscribeStatusString").getAsString()); + popupEvent.setPopupScene(json.get("PopupScene").getAsString()); + target.getPopupEvents().getList().add(popupEvent); + break; + case EVENT_CHANGE: + if (target.getChangeEvents() == null) { + target.setChangeEvents(new WxMaSubscribeMsgEvent.SubscribeMsgChangeEvent()); + } + WxMaSubscribeMsgEvent.ChangeEvent changeEvent = new WxMaSubscribeMsgEvent.ChangeEvent(); + changeEvent.setTemplateId(json.get("TemplateId").getAsString()); + changeEvent.setSubscribeStatusString(json.get("SubscribeStatusString").getAsString()); + target.getChangeEvents().getList().add(changeEvent); + break; + case EVENT_SENT: + if (target.getSentEvent() == null) { + target.setSentEvent(new WxMaSubscribeMsgEvent.SubscribeMsgSentEvent()); + } + WxMaSubscribeMsgEvent.SentEvent sentEvent = new WxMaSubscribeMsgEvent.SentEvent(); + sentEvent.setTemplateId(json.get("TemplateId").getAsString()); + sentEvent.setMsgId(json.get("MsgID").getAsString()); + sentEvent.setErrorCode(json.get("ErrorCode").getAsString()); + sentEvent.setErrorStatus(json.get("ErrorStatus").getAsString()); + target.getSentEvent().setList(sentEvent); + break; + } + return target; + } +} diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java index 26855b36ef..1269734842 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java @@ -4,6 +4,7 @@ import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; /** * @author Binary Wang @@ -47,4 +48,182 @@ public void testFromXml() { assertEquals(wxMessage.getSessionFrom(), "sessionFrom"); } + public void testSubscribeMsgPopupEvent() { + // xml 格式 + String xml = "" + + "\n" + + "\n" + + "1610969440\n" + + "\n" + + "\n" + + "\n" + + " \n" + + " \n" + + " \n" + + " 0\n" + + " \n" + + "" + + ""; + + WxMaMessage wxMessage = WxMaMessage.fromXml(xml); + checkSubscribeMsgPopupEvent(wxMessage); + + // 订阅单个模板 json格式 (对象) + String json = "{\n" + + " \"ToUserName\": \"gh_123456789abc\",\n" + + " \"FromUserName\": \"otFpruAK8D-E6EfStSYonYSBZ8_4\",\n" + + " \"CreateTime\": \"1610969440\",\n" + + " \"MsgType\": \"event\",\n" + + " \"Event\": \"subscribe_msg_popup_event\",\n" + + " \"List\": {\n" + + " \"TemplateId\": \"VRR0UEO9VJOLs0MHlU0OilqX6MVFDwH3_3gz3Oc0NIc\",\n" + + " \"SubscribeStatusString\": \"accept\",\n" + + " \"PopupScene\": \"0\"\n" + + " }\n" + + " }"; + wxMessage = WxMaMessage.fromJson(json); + checkSubscribeMsgPopupEvent(wxMessage); + // 订阅多条模板的 json格式(数组) + json = "{\n" + + " \"ToUserName\": \"gh_123456789abc\",\n" + + " \"FromUserName\": \"otFpruAK8D-E6EfStSYonYSBZ8_4\",\n" + + " \"CreateTime\": \"1610969440\",\n" + + " \"MsgType\": \"event\",\n" + + " \"Event\": \"subscribe_msg_popup_event\",\n" + + " \"List\": [{\n" + + " \"TemplateId\": \"VRR0UEO9VJOLs0MHlU0OilqX6MVFDwH3_3gz3Oc0NIc\",\n" + + " \"SubscribeStatusString\": \"accept\",\n" + + " \"PopupScene\": \"0\"\n" + + " }]\n" + + " }"; + wxMessage = WxMaMessage.fromJson(json); + checkSubscribeMsgPopupEvent(wxMessage); + } + + private void checkSubscribeMsgPopupEvent(WxMaMessage wxMessage) { + assertEquals(wxMessage.getToUser(), "gh_123456789abc"); + assertEquals(wxMessage.getFromUser(), "otFpruAK8D-E6EfStSYonYSBZ8_4"); + assertEquals(wxMessage.getCreateTime(),new Integer(1610969440)); + assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.EVENT); + assertEquals(wxMessage.getEvent(), "subscribe_msg_popup_event"); + assertEquals(wxMessage.getSubscribeMsgPopupEvent().getList().size(), 1); + WxMaSubscribeMsgEvent.PopupEvent event = wxMessage.getSubscribeMsgPopupEvent().getList().get(0); + assertEquals(event.getTemplateId(), "VRR0UEO9VJOLs0MHlU0OilqX6MVFDwH3_3gz3Oc0NIc"); + assertEquals(event.getSubscribeStatusString(),"accept"); + assertEquals(event.getPopupScene(), "0"); + } + + public void testSubscribeMsgChangeEvent() { + // xml 格式 + String xml = "\n" + + " \n" + + " \n" + + " 1610968440\n" + + " \n" + + " \n" + + " \n" + + " " + + " \n" + + " \n" + + " \n" + + " \n" + + ""; + + WxMaMessage wxMessage = WxMaMessage.fromXml(xml); + checkSubscribeMsgChangeEvent(wxMessage); + + // json格式 (对象) + String json = "{\n" + + " \"ToUserName\": \"gh_123456789abc\",\n" + + " \"FromUserName\": \"o7esq5OI1Uej6Xixw1lA2H7XDVbc\",\n" + + " \"CreateTime\": \"1610968440\",\n" + + " \"MsgType\": \"event\",\n" + + " \"Event\": \"subscribe_msg_change_event\",\n" + + " \"List\": {\n" + + " \"TemplateId\":\"BEwX0BOT3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8\",\n" + + " \"SubscribeStatusString\": \"reject\"\n" + + " }\n" + + "}\n"; + wxMessage = WxMaMessage.fromJson(json); + checkSubscribeMsgChangeEvent(wxMessage); + // json格式(数组) + json = "{\n" + + " \"ToUserName\": \"gh_123456789abc\",\n" + + " \"FromUserName\": \"o7esq5OI1Uej6Xixw1lA2H7XDVbc\",\n" + + " \"CreateTime\": \"1610968440\",\n" + + " \"MsgType\": \"event\",\n" + + " \"Event\": \"subscribe_msg_change_event\",\n" + + " \"List\": [ {\n" + + " \"TemplateId\":\"BEwX0BOT3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8\",\n" + + " \"SubscribeStatusString\": \"reject\"\n" + + " }]" + + "}"; + wxMessage = WxMaMessage.fromJson(json); + checkSubscribeMsgChangeEvent(wxMessage); + } + + private void checkSubscribeMsgChangeEvent(WxMaMessage wxMessage) { + assertEquals(wxMessage.getToUser(), "gh_123456789abc"); + assertEquals(wxMessage.getFromUser(), "o7esq5OI1Uej6Xixw1lA2H7XDVbc"); + assertEquals(wxMessage.getCreateTime(),new Integer(1610968440)); + assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.EVENT); + assertEquals(wxMessage.getEvent(), "subscribe_msg_change_event"); + assertEquals(wxMessage.getSubscribeMsgChangeEvent().getList().size(), 1); + WxMaSubscribeMsgEvent.ChangeEvent event = wxMessage.getSubscribeMsgChangeEvent().getList().get(0); + assertEquals(event.getTemplateId(), "BEwX0BOT3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8"); + assertEquals(event.getSubscribeStatusString(),"reject"); + } + + public void testSubscribeMsgSentEvent() { + // xml 格式 + String xml = "\n" + + " \n" + + " \n" + + " 1620963428\n" + + " \n" + + " \n" + + " \n" + + " " + + " \n" + + " 1864323726461255680\n" + + " 0\n" + + " \n" + + " \n" + + " \n" + + ""; + + WxMaMessage wxMessage = WxMaMessage.fromXml(xml); + checkSubscribeMsgSentEvent(wxMessage); + + // json格式 (对象) + String json = "{\n" + + " \"ToUserName\": \"gh_123456789abc\",\n" + + " \"FromUserName\": \"o7esq5PHRGBQYmeNyfG064wEFVpQ\",\n" + + " \"CreateTime\": \"1620963428\",\n" + + " \"MsgType\": \"event\",\n" + + " \"Event\": \"subscribe_msg_sent_event\",\n" + + " \"List\": {\n" + + " \"TemplateId\": \"BEwX0BO-T3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8\",\n" + + " \"MsgID\": \"1864323726461255680\",\n" + + " \"ErrorCode\": \"0\",\n" + + " \"ErrorStatus\": \"success\"\n" + + " }\n" + + "}"; + wxMessage = WxMaMessage.fromJson(json); + checkSubscribeMsgSentEvent(wxMessage); + } + private void checkSubscribeMsgSentEvent(WxMaMessage wxMessage) { + assertEquals(wxMessage.getToUser(), "gh_123456789abc"); + assertEquals(wxMessage.getFromUser(), "o7esq5PHRGBQYmeNyfG064wEFVpQ"); + assertEquals(wxMessage.getCreateTime(),new Integer(1620963428)); + assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.EVENT); + assertEquals(wxMessage.getEvent(), "subscribe_msg_sent_event"); + assertNotNull(wxMessage.getSubscribeMsgSentEvent()); + WxMaSubscribeMsgEvent.SentEvent event = wxMessage.getSubscribeMsgSentEvent().getList(); + assertEquals(event.getTemplateId(), "BEwX0BO-T3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8"); + assertEquals(event.getMsgId(),"1864323726461255680"); + assertEquals(event.getErrorCode(),"0"); + assertEquals(event.getErrorStatus(),"success"); + } + } From bb9a1857c8926ec1ed3314f8402e8f043d73ebbf Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 5 Jan 2022 08:53:25 +0800 Subject: [PATCH 097/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.4?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 553a4f2936..8ddf83161d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index c7fd4b0075..be3ffa29ed 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 8a1c8b7024..403d110e92 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index dd00a70a88..bc0df80a34 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 769c5ee4ea..6f39cf83a6 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index e4cd456da1..c88de56372 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index cfbc3b83e9..00b0b47e97 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index a506de185d..74685629b7 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 47abb3890c..dd74121d63 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index ccb96d30a3..78a97e7346 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index b726737dd7..0d8750d186 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 16e3da3300..e7017eb0b0 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index b5440d093c..a9db15a504 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index ddad8cf810..c587b86cf1 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 3d5dbcd37c..76a2f816d5 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index f3131dc19e..0b93578b43 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.3.B + 4.2.4.B weixin-java-qidian From 6fb083aeea02ba2c5fb05e6d12195640d9f21eae Mon Sep 17 00:00:00 2001 From: shouyuwang <93957183+shouyuwang@users.noreply.github.com> Date: Thu, 6 Jan 2022 14:48:32 +0800 Subject: [PATCH 098/622] =?UTF-8?q?:art:=20=E3=80=90=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E3=80=91=E6=94=AF=E4=BB=98=E5=88=86=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=8E=A5=E5=8F=A3=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PayScoreServiceImpl.java | 55 ++++++++++++++----- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java index 0b237fda34..4181e74f26 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java @@ -10,6 +10,7 @@ import com.github.binarywang.wxpay.service.PayScoreService; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.v3.util.AesUtils; +import com.google.common.base.Strings; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import lombok.RequiredArgsConstructor; @@ -38,17 +39,23 @@ public class PayScoreServiceImpl implements PayScoreService { public WxPayScoreResult permissions(WxPayScoreRequest request) throws WxPayException { WxPayConfig config = this.payService.getConfig(); String url = this.payService.getPayBaseUrl() + "/v3/payscore/permissions"; - request.setAppid(config.getAppId()); - request.setServiceId(config.getServiceId()); - String permissionNotifyUrl = config.getPayScorePermissionNotifyUrl(); - if (StringUtils.isBlank(permissionNotifyUrl)) { - throw new WxPayException("授权回调地址未配置"); + if(Strings.isNullOrEmpty(request.getAppid())){ + request.setAppid(config.getAppId()); + } + if(Strings.isNullOrEmpty(request.getServiceId())){ + request.setServiceId(config.getServiceId()); + } + if(Strings.isNullOrEmpty(request.getNotifyUrl())){ + String permissionNotifyUrl = config.getPayScorePermissionNotifyUrl(); + if (StringUtils.isBlank(permissionNotifyUrl)) { + throw new WxPayException("授权回调地址未配置"); + } + request.setNotifyUrl(permissionNotifyUrl); } String authorizationCode = request.getAuthorizationCode(); if (StringUtils.isBlank(authorizationCode)) { throw new WxPayException("authorizationCode不允许为空"); } - request.setNotifyUrl(permissionNotifyUrl); String result = this.payService.postV3(url, request.toJson()); return WxPayScoreResult.fromJson(result); @@ -139,9 +146,15 @@ public WxPayScoreResult createServiceOrder(WxPayScoreRequest request) throws WxP boolean needUserConfirm = request.getNeedUserConfirm(); WxPayConfig config = this.payService.getConfig(); String url = this.payService.getPayBaseUrl() + "/v3/payscore/serviceorder"; - request.setAppid(config.getAppId()); - request.setServiceId(config.getServiceId()); - request.setNotifyUrl(config.getPayScoreNotifyUrl()); + if(Strings.isNullOrEmpty(request.getAppid())){ + request.setAppid(config.getAppId()); + } + if(Strings.isNullOrEmpty(request.getServiceId())){ + request.setServiceId(config.getServiceId()); + } + if(Strings.isNullOrEmpty(request.getNotifyUrl())){ + request.setNotifyUrl(config.getPayScoreNotifyUrl()); + } String result = this.payService.postV3(url, request.toJson()); WxPayScoreResult wxPayScoreCreateResult = WxPayScoreResult.fromJson(result); @@ -213,8 +226,12 @@ public WxPayScoreResult modifyServiceOrder(WxPayScoreRequest request) throws WxP WxPayConfig config = this.payService.getConfig(); String outOrderNo = request.getOutOrderNo(); String url = String.format("%s/v3/payscore/serviceorder/%s/modify", this.payService.getPayBaseUrl(), outOrderNo); - request.setAppid(config.getAppId()); - request.setServiceId(config.getServiceId()); + if(Strings.isNullOrEmpty(request.getAppid())){ + request.setAppid(config.getAppId()); + } + if(Strings.isNullOrEmpty(config.getServiceId())){ + request.setServiceId(config.getServiceId()); + } request.setOutOrderNo(null); String result = payService.postV3(url, request.toJson()); return WxPayScoreResult.fromJson(result); @@ -225,8 +242,12 @@ public WxPayScoreResult completeServiceOrder(WxPayScoreRequest request) throws W WxPayConfig config = this.payService.getConfig(); String outOrderNo = request.getOutOrderNo(); String url = String.format("%s/v3/payscore/serviceorder/%s/complete", this.payService.getPayBaseUrl(), outOrderNo); - request.setAppid(config.getAppId()); - request.setServiceId(config.getServiceId()); + if(Strings.isNullOrEmpty(request.getAppid())){ + request.setAppid(config.getAppId()); + } + if(Strings.isNullOrEmpty(request.getServiceId())){ + request.setServiceId(config.getServiceId()); + } request.setOutOrderNo(null); String result = payService.postV3(url, request.toJson()); return WxPayScoreResult.fromJson(result); @@ -248,8 +269,12 @@ public WxPayScoreResult syncServiceOrder(WxPayScoreRequest request) throws WxPay WxPayConfig config = this.payService.getConfig(); String outOrderNo = request.getOutOrderNo(); String url = String.format("%s/v3/payscore/serviceorder/%s/sync", this.payService.getPayBaseUrl(), outOrderNo); - request.setAppid(config.getAppId()); - request.setServiceId(config.getServiceId()); + if(Strings.isNullOrEmpty(request.getAppid())){ + request.setAppid(config.getAppId()); + } + if(Strings.isNullOrEmpty(request.getServiceId())){ + request.setServiceId(config.getServiceId()); + } request.setOutOrderNo(null); String result = payService.postV3(url, request.toJson()); return WxPayScoreResult.fromJson(result); From be40eb7c14002a3f34f3a7ac6d11229ac22eef7b Mon Sep 17 00:00:00 2001 From: wongswoon Date: Thu, 6 Jan 2022 16:12:38 +0800 Subject: [PATCH 099/622] =?UTF-8?q?:art:=20=E3=80=90=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91WxMaMessage=E5=A2=9E=E5=8A=A0=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=92=A4=E9=94=80=E6=8E=88=E6=9D=83AppID?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/binarywang/wx/miniapp/bean/WxMaMessage.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java index 76017659f3..85df2e458b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java @@ -145,7 +145,19 @@ public class WxMaMessage implements Serializable { @XStreamAlias("Query") @XStreamConverter(value = XStreamCDataConverter.class) private String query; + + @SerializedName("AppID") + @XStreamAlias("AppID") + @XStreamConverter(value = XStreamCDataConverter.class) + private String appID; + public String getAppID() { + return appID; + } + public void setAppID(String appID) { + this.appID = appID; + } + @SerializedName("RevokeInfo") @XStreamAlias("RevokeInfo") @XStreamConverter(value = XStreamCDataConverter.class) From 4c781ee7ee424191244bba3d6261577878610a07 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 6 Jan 2022 16:15:30 +0800 Subject: [PATCH 100/622] =?UTF-8?q?:art:=20=E7=AE=80=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java index 85df2e458b..1915e4e8bd 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java @@ -145,19 +145,12 @@ public class WxMaMessage implements Serializable { @XStreamAlias("Query") @XStreamConverter(value = XStreamCDataConverter.class) private String query; - + @SerializedName("AppID") @XStreamAlias("AppID") @XStreamConverter(value = XStreamCDataConverter.class) private String appID; - public String getAppID() { - return appID; - } - public void setAppID(String appID) { - this.appID = appID; - } - @SerializedName("RevokeInfo") @XStreamAlias("RevokeInfo") @XStreamConverter(value = XStreamCDataConverter.class) From ee17a5ee6f812150202909caf23ac312b8889971 Mon Sep 17 00:00:00 2001 From: DDERGOU <519702306@qq.com> Date: Tue, 11 Jan 2022 12:44:50 +0800 Subject: [PATCH 101/622] =?UTF-8?q?:art:=20=E8=A7=A3=E6=9E=90=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E7=9A=84Gson=E6=9E=84=E5=BB=BA=E7=B1=BB=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA=E5=8D=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/util/json/WxGsonBuilder.java | 73 +++++---- .../weixin/cp/util/json/WxCpGsonBuilder.java | 77 +++++---- .../wx/miniapp/json/WxMaGsonBuilder.java | 11 +- .../weixin/mp/util/json/WxMpGsonBuilder.java | 149 ++++++++++-------- .../open/util/json/WxOpenGsonBuilder.java | 12 +- 5 files changed, 183 insertions(+), 139 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java index 0624923508..71304dc79b 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java @@ -1,32 +1,41 @@ -package me.chanjar.weixin.common.util.json; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import me.chanjar.weixin.common.bean.WxAccessToken; -import me.chanjar.weixin.common.bean.WxNetCheckResult; -import me.chanjar.weixin.common.bean.menu.WxMenu; -import me.chanjar.weixin.common.error.WxError; -import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; - -/** - * . - * @author chanjarster - */ -public class WxGsonBuilder { - private static final GsonBuilder INSTANCE = new GsonBuilder(); - - static { - INSTANCE.disableHtmlEscaping(); - INSTANCE.registerTypeAdapter(WxAccessToken.class, new WxAccessTokenAdapter()); - INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); - INSTANCE.registerTypeAdapter(WxMenu.class, new WxMenuGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMediaUploadResult.class, new WxMediaUploadResultAdapter()); - INSTANCE.registerTypeAdapter(WxNetCheckResult.class, new WxNetCheckResultGsonAdapter()); - - } - - public static Gson create() { - return INSTANCE.create(); - } - -} +package me.chanjar.weixin.common.util.json; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import me.chanjar.weixin.common.bean.WxAccessToken; +import me.chanjar.weixin.common.bean.WxNetCheckResult; +import me.chanjar.weixin.common.bean.menu.WxMenu; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import java.util.Objects; + +/** + * . + * @author chanjarster + */ +public class WxGsonBuilder { + private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; + + static { + INSTANCE.disableHtmlEscaping(); + INSTANCE.registerTypeAdapter(WxAccessToken.class, new WxAccessTokenAdapter()); + INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); + INSTANCE.registerTypeAdapter(WxMenu.class, new WxMenuGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMediaUploadResult.class, new WxMediaUploadResultAdapter()); + INSTANCE.registerTypeAdapter(WxNetCheckResult.class, new WxNetCheckResultGsonAdapter()); + + } + + public static Gson create() { + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (GSON_INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java index 16f0108e09..c7179aa160 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java @@ -1,34 +1,43 @@ -package me.chanjar.weixin.cp.util.json; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import me.chanjar.weixin.common.bean.menu.WxMenu; -import me.chanjar.weixin.common.error.WxError; -import me.chanjar.weixin.common.util.json.WxErrorAdapter; -import me.chanjar.weixin.cp.bean.WxCpChat; -import me.chanjar.weixin.cp.bean.WxCpDepart; -import me.chanjar.weixin.cp.bean.WxCpTag; -import me.chanjar.weixin.cp.bean.WxCpUser; - -/** - * @author Daniel Qian - */ -public class WxCpGsonBuilder { - - private static final GsonBuilder INSTANCE = new GsonBuilder(); - - static { - INSTANCE.disableHtmlEscaping(); - INSTANCE.registerTypeAdapter(WxCpChat.class, new WxCpChatGsonAdapter()); - INSTANCE.registerTypeAdapter(WxCpDepart.class, new WxCpDepartGsonAdapter()); - INSTANCE.registerTypeAdapter(WxCpUser.class, new WxCpUserGsonAdapter()); - INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); - INSTANCE.registerTypeAdapter(WxMenu.class, new WxCpMenuGsonAdapter()); - INSTANCE.registerTypeAdapter(WxCpTag.class, new WxCpTagGsonAdapter()); - } - - public static Gson create() { - return INSTANCE.create(); - } - -} +package me.chanjar.weixin.cp.util.json; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import me.chanjar.weixin.common.bean.menu.WxMenu; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.util.json.WxErrorAdapter; +import me.chanjar.weixin.cp.bean.WxCpChat; +import me.chanjar.weixin.cp.bean.WxCpDepart; +import me.chanjar.weixin.cp.bean.WxCpTag; +import me.chanjar.weixin.cp.bean.WxCpUser; +import java.util.Objects; + +/** + * @author Daniel Qian + */ +public class WxCpGsonBuilder { + + private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; + + static { + INSTANCE.disableHtmlEscaping(); + INSTANCE.registerTypeAdapter(WxCpChat.class, new WxCpChatGsonAdapter()); + INSTANCE.registerTypeAdapter(WxCpDepart.class, new WxCpDepartGsonAdapter()); + INSTANCE.registerTypeAdapter(WxCpUser.class, new WxCpUserGsonAdapter()); + INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); + INSTANCE.registerTypeAdapter(WxMenu.class, new WxCpMenuGsonAdapter()); + INSTANCE.registerTypeAdapter(WxCpTag.class, new WxCpTagGsonAdapter()); + } + + public static Gson create() { + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (GSON_INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java index 0918935ee9..cfa6090585 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java @@ -11,12 +11,14 @@ import cn.binarywang.wx.miniapp.json.adaptor.*; import com.google.gson.Gson; import com.google.gson.GsonBuilder; +import java.util.Objects; /** * @author Binary Wang */ public class WxMaGsonBuilder { private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; static { INSTANCE.disableHtmlEscaping(); @@ -31,7 +33,14 @@ public class WxMaGsonBuilder { } public static Gson create() { - return INSTANCE.create(); + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (GSON_INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; } } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java index 5f762cc6dc..b7773f503c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java @@ -1,70 +1,79 @@ -package me.chanjar.weixin.mp.util.json; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import me.chanjar.weixin.mp.bean.*; -import me.chanjar.weixin.mp.bean.card.WxMpCard; -import me.chanjar.weixin.mp.bean.card.WxMpCardResult; -import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserCumulate; -import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserSummary; -import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage; -import me.chanjar.weixin.mp.bean.material.*; -import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardActivateTempInfoResult; -import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUpdateResult; -import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUserInfoResult; -import me.chanjar.weixin.mp.bean.result.*; -import me.chanjar.weixin.mp.bean.subscribe.WxMpSubscribeMessage; -import me.chanjar.weixin.mp.bean.template.WxMpTemplateIndustry; -import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage; - -/** - * @author someone - */ -public class WxMpGsonBuilder { - - private static final GsonBuilder INSTANCE = new GsonBuilder(); - - static { - INSTANCE.disableHtmlEscaping(); - INSTANCE.registerTypeAdapter(WxMpKefuMessage.class, new WxMpKefuMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassNews.class, new WxMpMassNewsGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassTagMessage.class, new WxMpMassTagMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassOpenIdsMessage.class, new WxMpMassOpenIdsMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpUser.class, new WxMpUserGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpChangeOpenid.class, new WxMpChangeOpenidGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpUserList.class, new WxUserListGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassVideo.class, new WxMpMassVideoAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassSendResult.class, new WxMpMassSendResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassUploadResult.class, new WxMpMassUploadResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpQrCodeTicket.class, new WxQrCodeTicketAdapter()); - INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpSubscribeMessage.class, new WxMpSubscribeMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpSemanticQueryResult.class, new WxMpSemanticQueryResultAdapter()); - INSTANCE.registerTypeAdapter(WxDataCubeUserSummary.class, new WxMpUserSummaryGsonAdapter()); - INSTANCE.registerTypeAdapter(WxDataCubeUserCumulate.class, new WxMpUserCumulateGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialUploadResult.class, new WxMpMaterialUploadResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialVideoInfoResult.class, new WxMpMaterialVideoInfoResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialArticleUpdate.class, new WxMpMaterialArticleUpdateGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialCountResult.class, new WxMpMaterialCountResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialNews.class, new WxMpMaterialNewsGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpNewsArticle.class, new WxMpNewsArticleGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.class, new WxMpMaterialNewsBatchGetGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem.class, new WxMpMaterialNewsBatchGetGsonItemAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.class, new WxMpMaterialFileBatchGetGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem.class, new WxMpMaterialFileBatchGetGsonItemAdapter()); - INSTANCE.registerTypeAdapter(WxMpCardResult.class, new WxMpCardResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpCard.class, new WxMpCardGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassPreviewMessage.class, new WxMpMassPreviewMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMediaImgUploadResult.class, new WxMediaImgUploadResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpTemplateIndustry.class, new WxMpIndustryGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpUserBlacklistGetResult.class, new WxUserBlacklistGetResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMemberCardUserInfoResult.class, new WxMpMemberCardUserInfoResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMemberCardUpdateResult.class, new WxMpMemberCardUpdateResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMemberCardActivateTempInfoResult.class, new WxMpMemberCardActivateTempInfoResultGsonAdapter()); - } - - public static Gson create() { - return INSTANCE.create(); - } - -} +package me.chanjar.weixin.mp.util.json; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import me.chanjar.weixin.mp.bean.*; +import me.chanjar.weixin.mp.bean.card.WxMpCard; +import me.chanjar.weixin.mp.bean.card.WxMpCardResult; +import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserCumulate; +import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserSummary; +import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage; +import me.chanjar.weixin.mp.bean.material.*; +import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardActivateTempInfoResult; +import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUpdateResult; +import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUserInfoResult; +import me.chanjar.weixin.mp.bean.result.*; +import me.chanjar.weixin.mp.bean.subscribe.WxMpSubscribeMessage; +import me.chanjar.weixin.mp.bean.template.WxMpTemplateIndustry; +import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage; +import java.util.Objects; + +/** + * @author someone + */ +public class WxMpGsonBuilder { + + private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; + + static { + INSTANCE.disableHtmlEscaping(); + INSTANCE.registerTypeAdapter(WxMpKefuMessage.class, new WxMpKefuMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassNews.class, new WxMpMassNewsGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassTagMessage.class, new WxMpMassTagMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassOpenIdsMessage.class, new WxMpMassOpenIdsMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpUser.class, new WxMpUserGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpChangeOpenid.class, new WxMpChangeOpenidGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpUserList.class, new WxUserListGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassVideo.class, new WxMpMassVideoAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassSendResult.class, new WxMpMassSendResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassUploadResult.class, new WxMpMassUploadResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpQrCodeTicket.class, new WxQrCodeTicketAdapter()); + INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpSubscribeMessage.class, new WxMpSubscribeMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpSemanticQueryResult.class, new WxMpSemanticQueryResultAdapter()); + INSTANCE.registerTypeAdapter(WxDataCubeUserSummary.class, new WxMpUserSummaryGsonAdapter()); + INSTANCE.registerTypeAdapter(WxDataCubeUserCumulate.class, new WxMpUserCumulateGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialUploadResult.class, new WxMpMaterialUploadResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialVideoInfoResult.class, new WxMpMaterialVideoInfoResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialArticleUpdate.class, new WxMpMaterialArticleUpdateGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialCountResult.class, new WxMpMaterialCountResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialNews.class, new WxMpMaterialNewsGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpNewsArticle.class, new WxMpNewsArticleGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.class, new WxMpMaterialNewsBatchGetGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem.class, new WxMpMaterialNewsBatchGetGsonItemAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.class, new WxMpMaterialFileBatchGetGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem.class, new WxMpMaterialFileBatchGetGsonItemAdapter()); + INSTANCE.registerTypeAdapter(WxMpCardResult.class, new WxMpCardResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpCard.class, new WxMpCardGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassPreviewMessage.class, new WxMpMassPreviewMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMediaImgUploadResult.class, new WxMediaImgUploadResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpTemplateIndustry.class, new WxMpIndustryGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpUserBlacklistGetResult.class, new WxUserBlacklistGetResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMemberCardUserInfoResult.class, new WxMpMemberCardUserInfoResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMemberCardUpdateResult.class, new WxMpMemberCardUpdateResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMemberCardActivateTempInfoResult.class, new WxMpMemberCardActivateTempInfoResultGsonAdapter()); + } + + public static Gson create() { + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (GSON_INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; + } + +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java index 325383ebf0..cfed3f084e 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java @@ -7,6 +7,7 @@ import me.chanjar.weixin.open.bean.auth.WxOpenAuthorizationInfo; import me.chanjar.weixin.open.bean.auth.WxOpenAuthorizerInfo; import me.chanjar.weixin.open.bean.result.*; +import java.util.Objects; /** * @author 007 @@ -14,6 +15,7 @@ public class WxOpenGsonBuilder { private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; static { INSTANCE.disableHtmlEscaping(); @@ -26,11 +28,17 @@ public class WxOpenGsonBuilder { INSTANCE.registerTypeAdapter(WxOpenAuthorizerOptionResult.class, new WxOpenAuthorizerOptionResultGsonAdapter()); INSTANCE.registerTypeAdapter(WxFastMaAccountBasicInfoResult.class, new WxFastMaAccountBasicInfoGsonAdapter()); INSTANCE.registerTypeAdapter(WxOpenAuthorizerListResult.class, new WxOpenAuthorizerListResultGsonAdapter()); - } public static Gson create() { - return INSTANCE.create(); + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (GSON_INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; } } From 0601e8fb1751bf05a038056881adc569da57a8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=87=AF=E6=97=8B?= <42696884+azouever@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:26:11 +0800 Subject: [PATCH 102/622] :art: fix GsonBuilder singleton NPE --- .../common/util/json/WxGsonBuilder.java | 82 ++++----- .../weixin/cp/util/json/WxCpGsonBuilder.java | 86 +++++----- .../wx/miniapp/json/WxMaGsonBuilder.java | 2 +- .../weixin/mp/util/json/WxMpGsonBuilder.java | 158 +++++++++--------- .../open/util/json/WxOpenGsonBuilder.java | 2 +- 5 files changed, 165 insertions(+), 165 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java index 71304dc79b..ff260c16fb 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxGsonBuilder.java @@ -1,41 +1,41 @@ -package me.chanjar.weixin.common.util.json; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import me.chanjar.weixin.common.bean.WxAccessToken; -import me.chanjar.weixin.common.bean.WxNetCheckResult; -import me.chanjar.weixin.common.bean.menu.WxMenu; -import me.chanjar.weixin.common.error.WxError; -import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; -import java.util.Objects; - -/** - * . - * @author chanjarster - */ -public class WxGsonBuilder { - private static final GsonBuilder INSTANCE = new GsonBuilder(); - private static volatile Gson GSON_INSTANCE; - - static { - INSTANCE.disableHtmlEscaping(); - INSTANCE.registerTypeAdapter(WxAccessToken.class, new WxAccessTokenAdapter()); - INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); - INSTANCE.registerTypeAdapter(WxMenu.class, new WxMenuGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMediaUploadResult.class, new WxMediaUploadResultAdapter()); - INSTANCE.registerTypeAdapter(WxNetCheckResult.class, new WxNetCheckResultGsonAdapter()); - - } - - public static Gson create() { - if (Objects.isNull(GSON_INSTANCE)) { - synchronized (GSON_INSTANCE) { - if (Objects.isNull(GSON_INSTANCE)) { - GSON_INSTANCE = INSTANCE.create(); - } - } - } - return GSON_INSTANCE; - } - -} +package me.chanjar.weixin.common.util.json; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import me.chanjar.weixin.common.bean.WxAccessToken; +import me.chanjar.weixin.common.bean.WxNetCheckResult; +import me.chanjar.weixin.common.bean.menu.WxMenu; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import java.util.Objects; + +/** + * . + * @author chanjarster + */ +public class WxGsonBuilder { + private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; + + static { + INSTANCE.disableHtmlEscaping(); + INSTANCE.registerTypeAdapter(WxAccessToken.class, new WxAccessTokenAdapter()); + INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); + INSTANCE.registerTypeAdapter(WxMenu.class, new WxMenuGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMediaUploadResult.class, new WxMediaUploadResultAdapter()); + INSTANCE.registerTypeAdapter(WxNetCheckResult.class, new WxNetCheckResultGsonAdapter()); + + } + + public static Gson create() { + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java index c7179aa160..098935bf03 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java @@ -1,43 +1,43 @@ -package me.chanjar.weixin.cp.util.json; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import me.chanjar.weixin.common.bean.menu.WxMenu; -import me.chanjar.weixin.common.error.WxError; -import me.chanjar.weixin.common.util.json.WxErrorAdapter; -import me.chanjar.weixin.cp.bean.WxCpChat; -import me.chanjar.weixin.cp.bean.WxCpDepart; -import me.chanjar.weixin.cp.bean.WxCpTag; -import me.chanjar.weixin.cp.bean.WxCpUser; -import java.util.Objects; - -/** - * @author Daniel Qian - */ -public class WxCpGsonBuilder { - - private static final GsonBuilder INSTANCE = new GsonBuilder(); - private static volatile Gson GSON_INSTANCE; - - static { - INSTANCE.disableHtmlEscaping(); - INSTANCE.registerTypeAdapter(WxCpChat.class, new WxCpChatGsonAdapter()); - INSTANCE.registerTypeAdapter(WxCpDepart.class, new WxCpDepartGsonAdapter()); - INSTANCE.registerTypeAdapter(WxCpUser.class, new WxCpUserGsonAdapter()); - INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); - INSTANCE.registerTypeAdapter(WxMenu.class, new WxCpMenuGsonAdapter()); - INSTANCE.registerTypeAdapter(WxCpTag.class, new WxCpTagGsonAdapter()); - } - - public static Gson create() { - if (Objects.isNull(GSON_INSTANCE)) { - synchronized (GSON_INSTANCE) { - if (Objects.isNull(GSON_INSTANCE)) { - GSON_INSTANCE = INSTANCE.create(); - } - } - } - return GSON_INSTANCE; - } - -} +package me.chanjar.weixin.cp.util.json; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import me.chanjar.weixin.common.bean.menu.WxMenu; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.util.json.WxErrorAdapter; +import me.chanjar.weixin.cp.bean.WxCpChat; +import me.chanjar.weixin.cp.bean.WxCpDepart; +import me.chanjar.weixin.cp.bean.WxCpTag; +import me.chanjar.weixin.cp.bean.WxCpUser; +import java.util.Objects; + +/** + * @author Daniel Qian + */ +public class WxCpGsonBuilder { + + private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; + + static { + INSTANCE.disableHtmlEscaping(); + INSTANCE.registerTypeAdapter(WxCpChat.class, new WxCpChatGsonAdapter()); + INSTANCE.registerTypeAdapter(WxCpDepart.class, new WxCpDepartGsonAdapter()); + INSTANCE.registerTypeAdapter(WxCpUser.class, new WxCpUserGsonAdapter()); + INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter()); + INSTANCE.registerTypeAdapter(WxMenu.class, new WxCpMenuGsonAdapter()); + INSTANCE.registerTypeAdapter(WxCpTag.class, new WxCpTagGsonAdapter()); + } + + public static Gson create() { + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java index cfa6090585..5379826656 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/WxMaGsonBuilder.java @@ -34,7 +34,7 @@ public class WxMaGsonBuilder { public static Gson create() { if (Objects.isNull(GSON_INSTANCE)) { - synchronized (GSON_INSTANCE) { + synchronized (INSTANCE) { if (Objects.isNull(GSON_INSTANCE)) { GSON_INSTANCE = INSTANCE.create(); } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java index b7773f503c..53c39a0c47 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpGsonBuilder.java @@ -1,79 +1,79 @@ -package me.chanjar.weixin.mp.util.json; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import me.chanjar.weixin.mp.bean.*; -import me.chanjar.weixin.mp.bean.card.WxMpCard; -import me.chanjar.weixin.mp.bean.card.WxMpCardResult; -import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserCumulate; -import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserSummary; -import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage; -import me.chanjar.weixin.mp.bean.material.*; -import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardActivateTempInfoResult; -import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUpdateResult; -import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUserInfoResult; -import me.chanjar.weixin.mp.bean.result.*; -import me.chanjar.weixin.mp.bean.subscribe.WxMpSubscribeMessage; -import me.chanjar.weixin.mp.bean.template.WxMpTemplateIndustry; -import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage; -import java.util.Objects; - -/** - * @author someone - */ -public class WxMpGsonBuilder { - - private static final GsonBuilder INSTANCE = new GsonBuilder(); - private static volatile Gson GSON_INSTANCE; - - static { - INSTANCE.disableHtmlEscaping(); - INSTANCE.registerTypeAdapter(WxMpKefuMessage.class, new WxMpKefuMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassNews.class, new WxMpMassNewsGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassTagMessage.class, new WxMpMassTagMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassOpenIdsMessage.class, new WxMpMassOpenIdsMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpUser.class, new WxMpUserGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpChangeOpenid.class, new WxMpChangeOpenidGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpUserList.class, new WxUserListGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassVideo.class, new WxMpMassVideoAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassSendResult.class, new WxMpMassSendResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassUploadResult.class, new WxMpMassUploadResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpQrCodeTicket.class, new WxQrCodeTicketAdapter()); - INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpSubscribeMessage.class, new WxMpSubscribeMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpSemanticQueryResult.class, new WxMpSemanticQueryResultAdapter()); - INSTANCE.registerTypeAdapter(WxDataCubeUserSummary.class, new WxMpUserSummaryGsonAdapter()); - INSTANCE.registerTypeAdapter(WxDataCubeUserCumulate.class, new WxMpUserCumulateGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialUploadResult.class, new WxMpMaterialUploadResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialVideoInfoResult.class, new WxMpMaterialVideoInfoResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialArticleUpdate.class, new WxMpMaterialArticleUpdateGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialCountResult.class, new WxMpMaterialCountResultAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialNews.class, new WxMpMaterialNewsGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpNewsArticle.class, new WxMpNewsArticleGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.class, new WxMpMaterialNewsBatchGetGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem.class, new WxMpMaterialNewsBatchGetGsonItemAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.class, new WxMpMaterialFileBatchGetGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem.class, new WxMpMaterialFileBatchGetGsonItemAdapter()); - INSTANCE.registerTypeAdapter(WxMpCardResult.class, new WxMpCardResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpCard.class, new WxMpCardGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMassPreviewMessage.class, new WxMpMassPreviewMessageGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMediaImgUploadResult.class, new WxMediaImgUploadResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpTemplateIndustry.class, new WxMpIndustryGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpUserBlacklistGetResult.class, new WxUserBlacklistGetResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMemberCardUserInfoResult.class, new WxMpMemberCardUserInfoResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMemberCardUpdateResult.class, new WxMpMemberCardUpdateResultGsonAdapter()); - INSTANCE.registerTypeAdapter(WxMpMemberCardActivateTempInfoResult.class, new WxMpMemberCardActivateTempInfoResultGsonAdapter()); - } - - public static Gson create() { - if (Objects.isNull(GSON_INSTANCE)) { - synchronized (GSON_INSTANCE) { - if (Objects.isNull(GSON_INSTANCE)) { - GSON_INSTANCE = INSTANCE.create(); - } - } - } - return GSON_INSTANCE; - } - -} +package me.chanjar.weixin.mp.util.json; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import me.chanjar.weixin.mp.bean.*; +import me.chanjar.weixin.mp.bean.card.WxMpCard; +import me.chanjar.weixin.mp.bean.card.WxMpCardResult; +import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserCumulate; +import me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserSummary; +import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage; +import me.chanjar.weixin.mp.bean.material.*; +import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardActivateTempInfoResult; +import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUpdateResult; +import me.chanjar.weixin.mp.bean.card.membercard.WxMpMemberCardUserInfoResult; +import me.chanjar.weixin.mp.bean.result.*; +import me.chanjar.weixin.mp.bean.subscribe.WxMpSubscribeMessage; +import me.chanjar.weixin.mp.bean.template.WxMpTemplateIndustry; +import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage; +import java.util.Objects; + +/** + * @author someone + */ +public class WxMpGsonBuilder { + + private static final GsonBuilder INSTANCE = new GsonBuilder(); + private static volatile Gson GSON_INSTANCE; + + static { + INSTANCE.disableHtmlEscaping(); + INSTANCE.registerTypeAdapter(WxMpKefuMessage.class, new WxMpKefuMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassNews.class, new WxMpMassNewsGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassTagMessage.class, new WxMpMassTagMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassOpenIdsMessage.class, new WxMpMassOpenIdsMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpUser.class, new WxMpUserGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpChangeOpenid.class, new WxMpChangeOpenidGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpUserList.class, new WxUserListGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassVideo.class, new WxMpMassVideoAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassSendResult.class, new WxMpMassSendResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassUploadResult.class, new WxMpMassUploadResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpQrCodeTicket.class, new WxQrCodeTicketAdapter()); + INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpSubscribeMessage.class, new WxMpSubscribeMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpSemanticQueryResult.class, new WxMpSemanticQueryResultAdapter()); + INSTANCE.registerTypeAdapter(WxDataCubeUserSummary.class, new WxMpUserSummaryGsonAdapter()); + INSTANCE.registerTypeAdapter(WxDataCubeUserCumulate.class, new WxMpUserCumulateGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialUploadResult.class, new WxMpMaterialUploadResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialVideoInfoResult.class, new WxMpMaterialVideoInfoResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialArticleUpdate.class, new WxMpMaterialArticleUpdateGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialCountResult.class, new WxMpMaterialCountResultAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialNews.class, new WxMpMaterialNewsGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpNewsArticle.class, new WxMpNewsArticleGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.class, new WxMpMaterialNewsBatchGetGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem.class, new WxMpMaterialNewsBatchGetGsonItemAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.class, new WxMpMaterialFileBatchGetGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem.class, new WxMpMaterialFileBatchGetGsonItemAdapter()); + INSTANCE.registerTypeAdapter(WxMpCardResult.class, new WxMpCardResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpCard.class, new WxMpCardGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMassPreviewMessage.class, new WxMpMassPreviewMessageGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMediaImgUploadResult.class, new WxMediaImgUploadResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpTemplateIndustry.class, new WxMpIndustryGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpUserBlacklistGetResult.class, new WxUserBlacklistGetResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMemberCardUserInfoResult.class, new WxMpMemberCardUserInfoResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMemberCardUpdateResult.class, new WxMpMemberCardUpdateResultGsonAdapter()); + INSTANCE.registerTypeAdapter(WxMpMemberCardActivateTempInfoResult.class, new WxMpMemberCardActivateTempInfoResultGsonAdapter()); + } + + public static Gson create() { + if (Objects.isNull(GSON_INSTANCE)) { + synchronized (INSTANCE) { + if (Objects.isNull(GSON_INSTANCE)) { + GSON_INSTANCE = INSTANCE.create(); + } + } + } + return GSON_INSTANCE; + } + +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java index cfed3f084e..5dbae037a2 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenGsonBuilder.java @@ -32,7 +32,7 @@ public class WxOpenGsonBuilder { public static Gson create() { if (Objects.isNull(GSON_INSTANCE)) { - synchronized (GSON_INSTANCE) { + synchronized (INSTANCE) { if (Objects.isNull(GSON_INSTANCE)) { GSON_INSTANCE = INSTANCE.create(); } From 1dc58f00212c8ebd78e84b56b81dda0c980f87ba Mon Sep 17 00:00:00 2001 From: huazai Date: Mon, 17 Jan 2022 13:49:23 +0800 Subject: [PATCH 103/622] =?UTF-8?q?:art:=20#2506=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E8=A1=A5=E5=85=85=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7encryptKey=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaInternetService.java | 20 +++++++++- .../api/impl/WxMaInternetServiceImpl.java | 39 +++++++++++++++++-- .../api/impl/WxMaInternetServiceImplTest.java | 36 ++++++++++++++--- .../api/impl/WxMaUserServiceImplTest.java | 5 +++ 4 files changed, 90 insertions(+), 10 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaInternetService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaInternetService.java index 8e6a3e2d80..4d055ba2de 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaInternetService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaInternetService.java @@ -8,20 +8,36 @@ * 【小程序-服务端-网络】网络相关接口. * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/internet/internet.getUserEncryptKey.html *
+ * * @author chutian0124 */ public interface WxMaInternetService { /** + *
+   * 获取用户encryptKey。 会获取用户最近3次的key,每个key的存活时间为3600s。
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/internet/internet.getUserEncryptKey.html
+   * 接口地址:POST https://api.weixin.qq.com/wxa/business/getuserencryptkey?access_token=ACCESS_TOKEN&openid=OPENID&signature=SIGNATURE&sig_method=hmac_sha256
+   * @param openid 用户的openid
+   * @param signature 用sessionkey对空字符串签名得到的结果
+   * @param sigMethod 签名方法,只支持 hmac_sha256
+   * 
* - * + * @return {@link WxMaInternetResponse} + * @throws WxErrorException + */ + WxMaInternetResponse getUserEncryptKey(String openid, String signature, String sigMethod) throws WxErrorException; + + /** *
    * 获取用户encryptKey。 会获取用户最近3次的key,每个key的存活时间为3600s。
    * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/internet/internet.getUserEncryptKey.html
    * 接口地址:POST https://api.weixin.qq.com/wxa/business/getuserencryptkey?access_token=ACCESS_TOKEN&openid=OPENID&signature=SIGNATURE&sig_method=hmac_sha256
+   * @param openid 用户的openid
+   * @param sessionKey 用户的sessionKey
    * 
* * @return {@link WxMaInternetResponse} * @throws WxErrorException */ - WxMaInternetResponse getUserEncryptKey() throws WxErrorException; + WxMaInternetResponse getUserEncryptKey(String openid, String sessionKey) throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java index 8ee023baf5..c723828366 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java @@ -9,9 +9,12 @@ import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; +import org.jetbrains.annotations.NotNull; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; /** - * * 服务端网络相关接口 * * @author chutian0124 @@ -21,9 +24,39 @@ public class WxMaInternetServiceImpl implements WxMaInternetService { private final WxMaService wxMaService; + private String sha256(String data, String sessionKey) throws Exception { + Mac sha256_HMAC = Mac.getInstance("HmacSHA256"); + SecretKeySpec secret_key = new SecretKeySpec(sessionKey.getBytes("UTF-8"), "HmacSHA256"); + sha256_HMAC.init(secret_key); + byte[] array = sha256_HMAC.doFinal(data.getBytes("UTF-8")); + StringBuilder sb = new StringBuilder(); + for (byte item : array) { + sb.append(Integer.toHexString((item & 0xFF) | 0x100).substring(1, 3)); + } + return sb.toString().toUpperCase(); + } + @Override - public WxMaInternetResponse getUserEncryptKey() throws WxErrorException { - String responseContent = this.wxMaService.post(WxMaApiUrlConstants.Internet.GET_USER_ENCRYPT_KEY, ""); + public WxMaInternetResponse getUserEncryptKey(String openid, String signature, String sigMethod) throws WxErrorException { + String url = WxMaApiUrlConstants.Internet.GET_USER_ENCRYPT_KEY + "?openid=" + openid + "&signature=" + signature + "&sig_method=" + sigMethod; + return getWxMaInternetResponse(url); + } + + @Override + public WxMaInternetResponse getUserEncryptKey(String openid, String sessionKey) throws WxErrorException { + String signature = null; + try { + signature = sha256("", sessionKey); + } catch (Exception e) { + throw new WxErrorException("签名错误"); + } + String url = WxMaApiUrlConstants.Internet.GET_USER_ENCRYPT_KEY + "?sig_method=hmac_sha256&openid=" + openid + "&signature=" + signature; + return getWxMaInternetResponse(url); + } + + @NotNull + private WxMaInternetResponse getWxMaInternetResponse(String url) throws WxErrorException { + String responseContent = this.wxMaService.post(url, ""); WxMaInternetResponse response = WxMaGsonBuilder.create().fromJson(responseContent, WxMaInternetResponse.class); if (response.getErrcode() == -1) { throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java index ccc2f9c93a..9b1ffa1678 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java @@ -4,12 +4,15 @@ import cn.binarywang.wx.miniapp.bean.internet.WxMaInternetResponse; import cn.binarywang.wx.miniapp.test.ApiTestModule; import com.google.inject.Inject; -import me.chanjar.weixin.common.error.WxErrorException; import org.testng.annotations.Guice; import org.testng.annotations.Test; +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; + +import static org.assertj.core.api.Assertions.assertThat; + /** - * * 服务端网络相关接口测试 * * @author chutian0124 @@ -21,9 +24,32 @@ public class WxMaInternetServiceImplTest { @Inject private WxMaService wxService; + private static String HMACSHA256(String data, String key) throws Exception { + Mac sha256_HMAC = Mac.getInstance("HmacSHA256"); + SecretKeySpec secret_key = new SecretKeySpec(key.getBytes("UTF-8"), "HmacSHA256"); + sha256_HMAC.init(secret_key); + byte[] array = sha256_HMAC.doFinal(data.getBytes("UTF-8")); + StringBuilder sb = new StringBuilder(); + for (byte item : array) { + sb.append(Integer.toHexString((item & 0xFF) | 0x100).substring(1, 3)); + } + return sb.toString().toUpperCase(); + } + + @Test + public void testGetUserEncryptKey() throws Exception { + String openid = "ogu-84hVFTbTt-myGisQESoDJ6BM"; + String signature = HMACSHA256("", "9ny8n3t0KULoi0deF7T9pw=="); + String sigMethod = "hmac_sha256"; + WxMaInternetResponse response = this.wxService.getInternetService().getUserEncryptKey(openid, signature, sigMethod); + assertThat(response).isNotNull(); + } + @Test - public void testGetUserEncryptKey() throws WxErrorException { - WxMaInternetResponse response = this.wxService.getInternetService().getUserEncryptKey(); - System.out.println(response); + public void testGetUserEncryptKey2() throws Exception { + String openid = "ogu-84hVFTbTt-myGisQESoDJ6BM"; + String sessionKey = "9ny8n3t0KULoi0deF7T9pw=="; + WxMaInternetResponse response = this.wxService.getInternetService().getUserEncryptKey(openid, sessionKey); + assertThat(response).isNotNull(); } } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java index dbee3f9c90..5b04d05f81 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaUserServiceImplTest.java @@ -76,4 +76,9 @@ public void testSetUserStorage() throws WxErrorException { public void testGetNewPhoneNoInfo() throws Exception{ assertNotNull(wxService.getUserService().getNewPhoneNoInfo("test")); } + + @Test + public void testGetAccessToken() throws Exception{ + assertNotNull(wxService.getAccessToken(true)); + } } From a6f55b3ef15923246127bfddb49b29425db6d5b7 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 17 Jan 2022 14:23:41 +0800 Subject: [PATCH 104/622] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 18db207f70..d8fd00b97a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ com.github.binarywang (不同模块参考下文) - 4.1.0 + 4.2.0 ``` From 2c48303f8db143f85c1fd73c090fda4afef70237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=BB=E6=B3=BC=E5=BC=80=E6=9C=97=E5=A4=A7=E7=94=B7?= =?UTF-8?q?=E5=AD=A9=E5=8F=98=E8=BA=AB=E6=8A=80=E6=9C=AF=E5=AE=85?= <43976956+luozeqiang8716@users.noreply.github.com> Date: Wed, 19 Jan 2022 20:26:18 +0800 Subject: [PATCH 105/622] =?UTF-8?q?:new:=20#2510=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=8D=B3=E6=97=B6=E9=85=8D=E9=80=81?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/WxMaImmediateDeliveryService.java | 100 +++ .../wx/miniapp/api/WxMaService.java | 8 + .../miniapp/api/impl/BaseWxMaServiceImpl.java | 6 + .../WxMaImmediateDeliveryServiceImpl.java | 190 ++++++ .../bean/delivery/AbnormalConfirmRequest.java | 43 ++ .../delivery/AbnormalConfirmResponse.java | 25 + .../bean/delivery/AddOrderRequest.java | 639 ++++++++++++++++++ .../bean/delivery/AddOrderResponse.java | 92 +++ .../bean/delivery/BindAccountResponse.java | 66 ++ .../bean/delivery/CancelOrderRequest.java | 52 ++ .../bean/delivery/CancelOrderResponse.java | 38 ++ .../bean/delivery/GetOrderRequest.java | 24 + .../bean/delivery/GetOrderResponse.java | 68 ++ .../bean/delivery/MockUpdateOrderRequest.java | 58 ++ .../delivery/MockUpdateOrderResponse.java | 25 + .../base/WxMaDeliveryBaseRequest.java | 119 ++++ .../base/WxMaDeliveryBaseResponse.java | 66 ++ .../miniapp/constant/WxMaApiUrlConstants.java | 114 ++++ .../WxMaImmediateDeliveryServiceImplTest.java | 203 ++++++ 19 files changed, 1936 insertions(+) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java create mode 100644 weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java new file mode 100644 index 0000000000..d372799ecf --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java @@ -0,0 +1,100 @@ +package cn.binarywang.wx.miniapp.api; + +import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmRequest; +import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmResponse; +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.BindAccountResponse; +import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.GetOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; +import me.chanjar.weixin.common.error.WxErrorException; + +/** + * 微信小程序即时配送服务. + *
+ *     文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/immediate-delivery/overview.html
+ * 
+ * + * @author Luo + * @version 1.0 + * @date 2021-10-13 16:40 + */ +public interface WxMaImmediateDeliveryService { + + /** + * 拉取已绑定账号. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html
+     * 
+ * + * @return 响应 + * @throws WxErrorException 异常 + */ + BindAccountResponse getBindAccount() throws WxErrorException; + + /** + * 下配送单接口. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html
+     * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + AddOrderResponse addOrder(AddOrderRequest request) throws WxErrorException; + + /** + * 拉取配送单信息. + *
+     * 商家可使用本接口查询某一配送单的配送状态,便于商家掌握配送情况。
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html
+     * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + GetOrderResponse getOrder(GetOrderRequest request) throws WxErrorException; + + /** + * 取消配送单接口. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html
+     * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + CancelOrderResponse cancelOrder(CancelOrderRequest request) throws WxErrorException; + + /** + * 异常件退回商家商家确认收货接口. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html
+     * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + AbnormalConfirmResponse abnormalConfirm(AbnormalConfirmRequest request) throws WxErrorException; + + /** + * 模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html
+     * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + MockUpdateOrderResponse mockUpdateOrder(MockUpdateOrderRequest request) throws WxErrorException; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index 225a52a558..81ed12aa89 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -476,4 +476,12 @@ public interface WxMaService extends WxService { * @return WxMaDeviceSubscribeService plugin service */ WxMaMarketingService getMarketingService(); + + /** + * 返回微信小程序即时配送服务接口. + * + * @return WxMaImmediateDeliveryService + */ + WxMaImmediateDeliveryService getWxMaImmediateDeliveryService(); + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index bf8e1e9033..21ca0f7214 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -77,6 +77,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaReimburseInvoiceService reimburseInvoiceService = new WxMaReimburseInvoiceServiceImpl(this); private final WxMaDeviceSubscribeService deviceSubscribeService = new WxMaDeviceSubscribeServiceImpl(this); private final WxMaMarketingService marketingService = new WxMaMarketingServiceImpl(this); + private final WxMaImmediateDeliveryService immediateDeliveryService = new WxMaImmediateDeliveryServiceImpl(this); private Map configMap; private int retrySleepMillis = 1000; private int maxRetryTimes = 5; @@ -581,4 +582,9 @@ public WxMaReimburseInvoiceService getReimburseInvoiceService() { @Override public WxMaMarketingService getMarketingService() {return this.marketingService; } + + @Override + public WxMaImmediateDeliveryService getWxMaImmediateDeliveryService() { + return this.immediateDeliveryService; + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java new file mode 100644 index 0000000000..75f88eb63c --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -0,0 +1,190 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaImmediateDeliveryService; +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmRequest; +import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmResponse; +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.BindAccountResponse; +import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.GetOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import javassist.bytecode.ConstPool; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; + +/** + * 微信小程序即时配送服务. + *
+ *     文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/immediate-delivery/overview.html
+ * 
+ * + * @author Luo + * @version 1.0 + * @date 2021-10-13 16:40 + */ +@RequiredArgsConstructor +public class WxMaImmediateDeliveryServiceImpl implements WxMaImmediateDeliveryService { + + /** + * 微信响应码. + */ + public static final String ERR_CODE = "errcode"; + + /** + * 顺丰同城响应码. + */ + public static final String SF_ERR_CODE = "resultcode"; + + /** + * 顺丰同城响应说明. + */ + public static final String SF_ERR_MSG = "resultmsg"; + + /** + * 成功响应状态码. + */ + public static final int SUCCESS_CODE = 0; + + private final WxMaService wxMaService; + + /** + * 拉取已绑定账号. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html
+   * 
+ * + * @return 响应 + * @throws WxErrorException 异常 + */ + @Override + public BindAccountResponse getBindAccount() throws WxErrorException { + return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.GET_BIND_ACCOUNT, "{}"), + BindAccountResponse.class); + } + + /** + * 下配送单接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + @Override + public AddOrderResponse addOrder(final AddOrderRequest request) throws WxErrorException { + return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.PlaceAnOrder.ADD_ORDER, request), + AddOrderResponse.class); + } + + /** + * 拉取配送单信息. + *
+   * 商家可使用本接口查询某一配送单的配送状态,便于商家掌握配送情况。
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + @Override + public GetOrderResponse getOrder(final GetOrderRequest request) throws WxErrorException { + return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.GET_ORDER, request), + GetOrderResponse.class); + } + + /** + * 取消配送单接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + @Override + public CancelOrderResponse cancelOrder(final CancelOrderRequest request) throws WxErrorException { + return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.Cancel.CANCEL_ORDER, request), + CancelOrderResponse.class); + } + + /** + * 异常件退回商家商家确认收货接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + @Override + public AbnormalConfirmResponse abnormalConfirm(final AbnormalConfirmRequest request) throws WxErrorException { + return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.Cancel.ABNORMAL_CONFIRM, request), + AbnormalConfirmResponse.class); + } + + /** + * 模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + @Override + public MockUpdateOrderResponse mockUpdateOrder(final MockUpdateOrderRequest request) throws WxErrorException { + return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.MOCK_UPDATE_ORDER, request), + MockUpdateOrderResponse.class); + } + + /** + * 解析响应. + * + * @param responseContent 响应内容 + * @param valueType 类型 + * @param 类型 + * @return 结果 + * @throws WxErrorException 异常 + */ + private T parse(final String responseContent, final Class valueType) throws WxErrorException { + if (StringUtils.isBlank(responseContent)) { + throw new RuntimeException("the responseContent cannot be empty"); + } + // 解析成Json对象 + JsonObject jsonObject = GsonParser.parse(responseContent); + // 是否为微信错误响应 当 errcode==0 或者 不存在 还需要看 运力方 resultcode 状态码 + JsonElement element = jsonObject.get(ERR_CODE); + // 正常响应下不会有该字段返回 + if (!ObjectUtils.isEmpty(element) && SUCCESS_CODE != element.getAsInt()) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + // 是否为运力方错误响应 + JsonElement delivery = jsonObject.get(SF_ERR_CODE); + if (!ObjectUtils.isEmpty(delivery) && SUCCESS_CODE != delivery.getAsInt()) { + throw new WxErrorException(jsonObject.get(SF_ERR_MSG).getAsString()); + } + // 解析成对应响应对象 + return WxMaDeliveryBaseResponse.fromJson(responseContent, valueType); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java new file mode 100644 index 0000000000..af461e47c6 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java @@ -0,0 +1,43 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseRequest; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信小程序即时配送 异常件退回商家商家确认收货接口 请求参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class AbnormalConfirmRequest extends WxMaDeliveryBaseRequest implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 配送单id. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * 备注. + *
+     * 是否必填:否
+     * 
+ */ + @SerializedName("remark") + private String remark; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java new file mode 100644 index 0000000000..641ab7e38b --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java @@ -0,0 +1,25 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信小程序即时配送 异常件退回商家商家确认收货接口 响应参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class AbnormalConfirmResponse extends WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java new file mode 100644 index 0000000000..c8a220776f --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java @@ -0,0 +1,639 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseRequest; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.List; + +/** + * 微信小程序即时配送 下配送单接口 请求参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class AddOrderRequest extends WxMaDeliveryBaseRequest implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 子商户id,区分小程序内部多个子商户. + *
+     * 是否必填:否
+     * 
+ */ + @SerializedName("sub_biz_id") + private String subBizId; + + /** + * 发件人信息,顺丰同城急送必须填写,美团配送、达达、闪送,若传了shop_no的值可不填该字段. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("sender") + private Sender sender; + + /** + * 收件人信息. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("receiver") + private Receiver receiver; + + /** + * 货物信息. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("cargo") + private Cargo cargo; + + /** + * 订单信息. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("order_info") + private OrderInfo orderInfo; + + /** + * 商品信息,会展示到物流通知消息中. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("shop") + private Shop shop; + + /** + * 发件人信息. + */ + @Data + @Accessors(chain = true) + public static class Sender implements Serializable { + + private static final long serialVersionUID = -8101805250220380047L; + + /** + * 姓名,最长不超过256个字符. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("name") + private String name; + + /** + * 城市名称,如广州市. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("city") + private String city; + + /** + * 地址(街道、小区、大厦等,用于定位). + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("address") + private String address; + + /** + * 地址(街道、小区、大厦等,用于定位). + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("address_detail") + private String addressDetail; + + /** + * 坐标类型,默认 0:火星坐标(高德,腾讯地图均采用火星坐标) 1:百度坐标. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("coordinate_type") + private int coordinateType; + + /** + * 经度(火星坐标或百度坐标,和 coordinate_type 字段配合使用,确到小数点后6位. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("lng") + private BigDecimal lng; + + /** + * 纬度(火星坐标或百度坐标,和 coordinate_type 字段配合使用,精确到小数点后6位). + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("lat") + private BigDecimal lat; + + /** + * 电话/手机号,最长不超过64个字符. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("phone") + private String phone; + + } + + /** + * 收件人信息. + */ + @Data + @Accessors(chain = true) + public static class Receiver implements Serializable { + + private static final long serialVersionUID = -8101805250220380047L; + + /** + * 姓名,最长不超过256个字符. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("name") + private String name; + + /** + * 城市名称,如广州市. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("city") + private String city; + + /** + * 地址(街道、小区、大厦等,用于定位). + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("address") + private String address; + + /** + * 地址(街道、小区、大厦等,用于定位). + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("address_detail") + private String addressDetail; + + /** + * 坐标类型,默认 0:火星坐标(高德,腾讯地图均采用火星坐标) 1:百度坐标. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("coordinate_type") + private int coordinateType; + + /** + * 经度(火星坐标或百度坐标,和 coordinate_type 字段配合使用,确到小数点后6位. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("lng") + private BigDecimal lng; + + /** + * 纬度(火星坐标或百度坐标,和 coordinate_type 字段配合使用,精确到小数点后6位). + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("lat") + private BigDecimal lat; + + /** + * 电话/手机号,最长不超过64个字符. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("phone") + private String phone; + + } + + /** + * 商品信息. + */ + @Data + @Accessors(chain = true) + public static class Shop implements Serializable { + + private static final long serialVersionUID = -8958461649711388689L; + + /** + * 商品数量. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("goods_count") + private Integer goodsCount; + + /** + * 商品名称. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("goods_name") + private String goodsName; + + /** + * 商品缩略图 url. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("img_url") + private String imgUrl; + + /** + * 商家小程序的路径,建议为订单页面. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("wxa_path") + private String wxaPath; + + /** + * 若结算方式为:第三方向配送公司统一结算,商户后续和第三方结算,则该参数必填. + * 在该结算模式下,第三方用自己的开发小程序替授权商户发起下单,并将授权小程序的appid给平台,后续配送通知中可回流授权商户小程序. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("wxa_appid") + private String wxaAppid; + + } + + /** + * 订单信息. + */ + @Data + @Accessors(chain = true) + public static class OrderInfo implements Serializable { + + private static final long serialVersionUID = 5277759430030747900L; + + /** + * 配送服务代码 不同配送公司自定义, 顺丰和达达不填. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("delivery_service_code") + private String deliveryServiceCode; + + /** + * 订单类型, 0: 即时单 1 预约单,如预约单,需要设置expected_delivery_time或expected_finish_time或expected_pick_time. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("order_type") + private Integer orderType; + + /** + * 期望派单时间(达达支持,表示达达系统调度时间, 到那个时间才会有状态更新的回调通知),unix-timestamp, 比如1586342180. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("expected_delivery_time") + private Long expectedDeliveryTime; + + /** + * 期望送达时间(美团、顺丰同城急送支持),unix-timestamp, 比如1586342180. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("expected_finish_time") + private Long expectedFinishTime; + + /** + * 期望取件时间(闪送、顺丰同城急送支持,闪送需要设置两个小时后的时间,顺丰同城急送只需传expected_finish_time或expected_pick_time其中之一即可,同时都传则以expected_finish_time为准),unix-timestamp, 比如1586342180. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("expected_pick_time") + private Long expectedPickTime; + + /** + * 备注,最长不超过200个字符. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("note") + private String note; + + /** + * 门店订单流水号,建议提供,方便骑手门店取货,最长不超过32个字符. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("poi_seq") + private String poiSeq; + + /** + * 用户下单付款时间, 顺丰必填, 比如1555220757. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("order_time") + private Long orderTime; + + /** + * 是否保价,0:非保价,1:保价. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("is_insured") + private Integer isInsured; + + /** + * 保价金额,单位为元,精确到分. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("declared_value") + private BigDecimal declaredValue; + + /** + * 小费,单位为元, 下单一般不加小费. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("tips") + private Integer tips; + + /** + * 是否选择直拿直送(0:不需要;1:需要。选择直拿直送后,同一时间骑手只能配送此订单至完成,配送费用也相应高一些,闪送必须选1,达达可选0或1,其余配送公司不支持直拿直送). + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("is_direct_delivery") + private Integer isDirectDelivery; + + /** + * 骑手应付金额,单位为元,精确到分. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("cash_on_delivery") + private BigDecimal cashOnDelivery; + + /** + * 骑手应收金额,单位为元,精确到分. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("cash_on_pickup") + private BigDecimal cashOnPickup; + + /** + * 物流流向,1:从门店取件送至用户;2:从用户取件送至门店. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("rider_pick_method") + private Integer riderPickMethod; + + /** + * 收货码(0:不需要;1:需要。收货码的作用是:骑手必须输入收货码才能完成订单妥投). + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("is_finish_code_needed") + private Integer isFinishCodeNeeded; + + /** + * 取货码(0:不需要;1:需要。取货码的作用是:骑手必须输入取货码才能从商家取货). + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("is_pickup_code_needed") + private Integer isPickupCodeNeeded; + + } + + /** + * 货物信息. + */ + @NoArgsConstructor + @Data + @Accessors(chain = true) + public static class Cargo implements Serializable { + + private static final long serialVersionUID = -8339389045820636620L; + + /** + * 货物价格,单位为元,精确到小数点后两位(如果小数点后位数多于两位,则四舍五入保留两位小数),范围为(0-5000]. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("goods_value") + private BigDecimal goodsValue; + + /** + * 货物高度,单位为cm,精确到小数点后两位(如果小数点后位数多于两位,则四舍五入保留两位小数),范围为(0-45]. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("goods_height") + private BigDecimal goodsHeight; + + /** + * 货物长度,单位为cm,精确到小数点后两位(如果小数点后位数多于两位,则四舍五入保留两位小数),范围为(0-65]. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("goods_length") + private BigDecimal goodsLength; + + /** + * 货物宽度,单位为cm,精确到小数点后两位(如果小数点后位数多于两位,则四舍五入保留两位小数),范围为(0-50]. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("goods_width") + private BigDecimal goodsWidth; + + /** + * 货物重量,单位为kg,精确到小数点后两位(如果小数点后位数多于两位,则四舍五入保留两位小数),范围为(0-50]. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("goods_weight") + private BigDecimal goodsWeight; + + /** + * 货物详情,最长不超过10240个字符. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("goods_detail") + private GoodsDetail goodsDetail; + + /** + * 货物取货信息,用于骑手到店取货,最长不超过100个字符. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("goods_pickup_info") + private String goodsPickupInfo; + + /** + * 货物交付信息,最长不超过100个字符. + *
+         * 是否必填:否
+         * 
+ */ + @SerializedName("goods_delivery_info") + private String goodsDeliveryInfo; + + /** + * 品类一级类目, 详见品类表 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/union/access-guidelines/promoter/api/product/category.html. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("cargo_first_class") + private String cargoFirstClass; + + /** + * 品类二级类目. + *
+         * 是否必填:是
+         * 
+ */ + @SerializedName("cargo_second_class") + private String cargoSecondClass; + + /** + * 货物详情. + */ + @Data + @Accessors(chain = true) + public static class GoodsDetail implements Serializable { + + private static final long serialVersionUID = -8339389045820636620L; + + /** + * 货物列表. + *
+             * 是否必填:是
+             * 
+ */ + @SerializedName("goods") + private List goods; + + /** + * 货物详情. + */ + @NoArgsConstructor + @Data + @Accessors(chain = true) + public static class Goods implements Serializable { + + private static final long serialVersionUID = -8339389045820636620L; + + /** + * 货物数量. + *
+                 * 是否必填:是
+                 * 
+ */ + @SerializedName("good_count") + private Integer goodCount; + + /** + * 货品名称. + *
+                 * 是否必填:是
+                 * 
+ */ + @SerializedName("good_name") + private String goodName; + + /** + * 货品单价,精确到小数点后两位(如果小数点后位数多于两位,则四舍五入保留两位小数). + *
+                 * 是否必填:否
+                 * 
+ */ + @SerializedName("good_price") + private BigDecimal goodPrice; + + /** + * 货品单位,最长不超过20个字符. + *
+                 * 是否必填:否
+                 * 
+ */ + @SerializedName("good_unit") + private String goodUnit; + + } + + } + + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java new file mode 100644 index 0000000000..5f56b007b3 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java @@ -0,0 +1,92 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.math.BigDecimal; + +/** + * 微信小程序即时配送 下配送单接口 响应参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class AddOrderResponse extends WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 实际运费(单位:元),运费减去优惠券费用. + */ + @SerializedName("fee") + private BigDecimal fee; + + /** + * 运费(单位:元). + */ + @SerializedName("deliverfee") + private BigDecimal deliverFee; + + /** + * 优惠券费用(单位:元). + */ + @SerializedName("couponfee") + private BigDecimal couponFee; + + /** + * 小费(单位:元). + */ + @SerializedName("tips") + private BigDecimal tips; + + /** + * 保价费(单位:元). + */ + @SerializedName("insurancfee") + private BigDecimal insurancFee; + + /** + * 配送距离(整数单位:米). + */ + @SerializedName("distance") + private BigDecimal distance; + + /** + * 配送单号. + */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * 配送状态. + */ + @SerializedName("order_status") + private Integer orderStatus; + + /** + * 收货码. + */ + @SerializedName("finish_code") + private Integer finishCode; + + /** + * 取货码. + */ + @SerializedName("pickup_code") + private Integer pickupCode; + + /** + * 预计骑手接单时间,单位秒,比如5分钟,就填300, 无法预计填0. + */ + @SerializedName("dispatch_duration") + private BigDecimal dispatchDuration; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java new file mode 100644 index 0000000000..0afb174eb8 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java @@ -0,0 +1,66 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * 微信小程序即时配送 拉取已绑定账号 响应参数. + *
+ * 使用场景:
+ *      1.商家可通过本接口查询自己已经在小程序后台绑定的和配送公司签约的账号;
+ *      2.服务商可通过本接口查询代开发的小程序在小程序后台绑定的和配送公司签约的账号,为其完成后续的接口代开发业务;
+ * 
+ * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class BindAccountResponse extends WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 店铺账号信息集合. + */ + @SerializedName("shop_list") + private List shopList; + + /** + * 店铺账号信息. + */ + @Data + @Accessors(chain = true) + public static class Shop implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 配送公司Id. + */ + @SerializedName("delivery_id") + private String deliveryId; + + /** + * 商家id. + */ + @SerializedName("shopid") + private String shopId; + + /** + * 审核状态 0:审核通过、1:审核中、2:审核不通过. + */ + @SerializedName("audit_result") + private String auditResult; + + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java new file mode 100644 index 0000000000..1220e08072 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java @@ -0,0 +1,52 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseRequest; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信小程序即时配送 取消配送单接口 请求参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class CancelOrderRequest extends WxMaDeliveryBaseRequest implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 配送单id. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * 取消原因Id. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("cancel_reason_id") + private Integer cancelReasonId; + + /** + * 取消原因. + *
+     * 是否必填:否
+     * 
+ */ + @SerializedName("cancel_reason") + private String cancelReason; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java new file mode 100644 index 0000000000..a556fba99a --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java @@ -0,0 +1,38 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.math.BigDecimal; + +/** + * 微信小程序即时配送 取消配送单接口 响应参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class CancelOrderResponse extends WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 扣除的违约金(单位:元),精确到分. + */ + @SerializedName("deduct_fee") + private BigDecimal deductFee; + + /** + * 说明. + */ + @SerializedName("desc") + private String desc; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java new file mode 100644 index 0000000000..9927ee06d0 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java @@ -0,0 +1,24 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseRequest; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信小程序即时配送 拉取配送单信息 请求参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class GetOrderRequest extends WxMaDeliveryBaseRequest implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java new file mode 100644 index 0000000000..ec06026a04 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java @@ -0,0 +1,68 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.math.BigDecimal; + +/** + * 微信小程序即时配送 拉取配送单信息 响应参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class GetOrderResponse extends WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 配送状态. + */ + @SerializedName("order_status") + private Integer orderStatus; + + /** + * 配送单号. + */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * 骑手姓名. + */ + @SerializedName("rider_name") + private String riderName; + + /** + * 骑手电话. + */ + @SerializedName("rider_phone") + private String riderPhone; + + /** + * 骑手位置经度, 配送中时返回. + */ + @SerializedName("rider_lng") + private BigDecimal riderLng; + + /** + * 骑手位置纬度, 配送中时返回. + */ + @SerializedName("rider_lat") + private BigDecimal riderLat; + + /** + * 预计还剩多久送达时间, 配送中时返回,单位秒, 已取货配送中需返回,比如5分钟后送达,填300. + */ + @SerializedName("reach_time") + private BigDecimal reachTime; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java new file mode 100644 index 0000000000..1adf020281 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java @@ -0,0 +1,58 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信小程序即时配送 模拟配送公司更新配送单状态 请求参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +public class MockUpdateOrderRequest implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 商家id, 必须是 "test_shop_id". + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("shopid") + private String shopId = "test_shop_id"; + + /** + * 唯一标识订单的 ID,由商户生成. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("shop_order_id") + private String shopOrderId; + + /** + * 状态变更时间点,Unix秒级时间戳. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("action_time") + private Long actionTime; + + /** + * 配送状态,枚举值. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("order_status") + private Integer orderStatus; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java new file mode 100644 index 0000000000..de861493ed --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java @@ -0,0 +1,25 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信小程序即时配送 模拟配送公司更新配送单状态 响应参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:49 + */ +@Data +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class MockUpdateOrderResponse extends WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java new file mode 100644 index 0000000000..a139ea9076 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java @@ -0,0 +1,119 @@ +package cn.binarywang.wx.miniapp.bean.delivery.base; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import lombok.AccessLevel; +import lombok.Data; +import lombok.Setter; +import lombok.experimental.Accessors; +import org.apache.commons.codec.digest.DigestUtils; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 微信小程序 即时配送 基础请求参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:36 + */ +@Data +@Accessors(chain = true) +public abstract class WxMaDeliveryBaseRequest implements Serializable { + + private static final long serialVersionUID = -6811550517417623460L; + + /** + * 配送公司ID. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("delivery_id") + private String deliveryId; + + /** + * 唯一标识订单的 ID,由商户生成, 不超过 128 字节. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("shop_order_id") + private String shopOrderId; + + /** + * 下单用户的openid. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("openid") + private String openid; + + /** + * 商家门店编号,在配送公司登记,如果只有一个门店,美团闪送必填, 值为店铺id. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("shop_no") + private String shopNo; + + /** + * 商家id,由配送公司分配的appKey. + *
+     * 是否必填:是
+     * 
+ */ + @SerializedName("shopid") + private String shopId; + + /** + * 用配送公司提供的appSecret加密的校验串. + *
+     * 除了平台本身的加解密和签名,和订单相关的请求还需要带上运力侧签名delivery_sign,签名规则为
+     * 如果接口请求里有字段shop_order_id ,则delivery_sign=SHA1(shopid + shop_order_id + AppSecret),其中shopid对应运力侧的appkey,shop_order_id对应订单id,AppSecret即配送公司帐号对应的秘钥
+     * 如果请求里没有字段shop_order_id ,则delivery_sign=SHA1(shopid + AppSecret),其中shopid对应运力侧的appkey,AppSecret即配送公司帐号对应的秘钥
+     * 示例:shopid=“test_shop_id”,shop_order_id =“test_shop_order_id”, AppSecret=“test_app_secrect”,则delivery_sign=“a93d8d6bae9a9483c1b1d4e8670e7f6226ec94cb”
+     * 是否必填:是
+     * 
+ */ + @Setter(AccessLevel.NONE) + @SerializedName("delivery_sign") + private String deliverySign; + + /** + * 配送公司分配的appSecret. + *
+     * 是否必填:是
+     * 
+ */ + @Expose + private String appSecret; + + /** + * 获取签名. + *
+     * 除了平台本身的加解密和签名,和订单相关的请求还需要带上运力侧签名delivery_sign,签名规则为
+     * 如果接口请求里有字段shop_order_id ,则delivery_sign=SHA1(shopid + shop_order_id + AppSecret),其中shopid对应运力侧的appkey,shop_order_id对应订单id,AppSecret即配送公司帐号对应的秘钥
+     * 如果请求里没有字段shop_order_id ,则delivery_sign=SHA1(shopid + AppSecret),其中shopid对应运力侧的appkey,AppSecret即配送公司帐号对应的秘钥
+     * 示例:shopid=“test_shop_id”,shop_order_id =“test_shop_order_id”, AppSecret=“test_app_secrect”,则delivery_sign=“a93d8d6bae9a9483c1b1d4e8670e7f6226ec94cb”
+     * 是否必填:是
+     * 
+ * + * @return 结果 + */ + public String getDeliverySign() { + if (StringUtils.isBlank(getShopId()) || StringUtils.isBlank(getAppSecret())) { + throw new RuntimeException("shopId or appSecret can not be empty"); + } + String str = getShopId(); + if (StringUtils.isNotBlank(getShopOrderId())) { + str = str.concat(getShopOrderId()); + } + str = str.concat(getAppSecret()); + return DigestUtils.sha1Hex(str); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java new file mode 100644 index 0000000000..38f354bb74 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java @@ -0,0 +1,66 @@ +package cn.binarywang.wx.miniapp.bean.delivery.base; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; + +/** + * 微信小程序 即时配送 基础响应参数. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 10:36 + */ +@Data +@Accessors(chain = true) +public abstract class WxMaDeliveryBaseResponse implements Serializable { + + private static final long serialVersionUID = -6811550517417623460L; + + /** + * 成功状态码. + */ + private static final int SUCCESS_CODE = 0; + + /** + * 运力返回的错误码. + */ + @SerializedName("resultcode") + private Integer resultCode; + + /** + * 运力返回的错误描述. + */ + @SerializedName("resultmsg") + private String resultMsg; + + /** + * 是否响应成功. + * + * @return true:成功、false:失败 + */ + public boolean success() { + return SUCCESS_CODE == getResultCode(); + } + + /** + * 解析响应. + * + * @param json 响应内容 + * @param valueType 类型 + * @param 类型 + * @return 结果 + */ + public static T fromJson(final String json, final Class valueType) { + if (StringUtils.isBlank(json)) { + throw new RuntimeException("the json cannot be empty"); + } + // 解析成对应响应对象 + return WxMaGsonBuilder.create().fromJson(json, valueType); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index ae57072068..5d4379b9d1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -411,4 +411,118 @@ public interface DeviceSubscribe { */ String SEND_DEVICE_SUBSCRIBE_MSG_URL = "https://api.weixin.qq.com/cgi-bin/message/device/subscribe/send"; } + + /** + * 即时配送相关接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/immediate-delivery/overview.html
+   * 
+ */ + public interface InstantDelivery { + + /** + * 拉取已绑定账号. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html
+     * 
+ */ + String GET_BIND_ACCOUNT = "https://api.weixin.qq.com/cgi-bin/express/local/business/shop/get"; + + /** + * 拉取配送单信息. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html
+     * 
+ */ + String GET_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/get"; + + /** + * 模拟配送公司更新配送单状态. + *
+     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html
+     * 
+ */ + String MOCK_UPDATE_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/test_update_order"; + + /** + * 下单接口. + */ + interface PlaceAnOrder { + + /** + * 获取已支持的配送公司列表接口. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getAllImmeDelivery.html
+       * 
+ */ + String GET_ALL_IMME_DELIVERY = "https://api.weixin.qq.com/cgi-bin/express/local/business/delivery/getall"; + + /** + * 预下配送单接口. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.preAddOrder.html
+       * 
+ */ + String PRE_ADD_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add"; + + /** + * 下配送单接口. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html
+       * 
+ */ + String ADD_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/add"; + + /** + * 重新下单. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.reOrder.html
+       * 
+ */ + String RE_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/readd"; + + /** + * 增加小费. + *
+       * 可以对待接单状态的订单增加小费。需要注意:订单的小费,以最新一次加小费动作的金额为准,故下一次增加小费额必须大于上一次小费额.
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addTip.html
+       * 
+ */ + String ADD_TIP = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/addtips"; + + } + + /** + * 取消接口. + */ + interface Cancel { + + /** + * 预取消配送单接口. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.preCancelOrder.html
+       * 
+ */ + String PRE_CANCEL_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/precancel"; + + /** + * 取消配送单接口. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html
+       * 
+ */ + String CANCEL_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/cancel"; + + /** + * 异常件退回商家商家确认收货接口. + *
+       * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html
+       * 
+ */ + String ABNORMAL_CONFIRM = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/confirm_return"; + + } + + } + } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java new file mode 100644 index 0000000000..739bc998ff --- /dev/null +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java @@ -0,0 +1,203 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmRequest; +import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmResponse; +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.BindAccountResponse; +import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.GetOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; +import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; +import cn.binarywang.wx.miniapp.test.ApiTestModule; +import com.google.common.collect.Lists; +import com.google.inject.Inject; +import me.chanjar.weixin.common.error.WxErrorException; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.math.BigDecimal; + +/** + * 微信小程序即时配送服务测试. + * + * @author Luo + * @version 1.0 + * @date 2021-10-14 11:48 + */ +@Guice(modules = ApiTestModule.class) +public class WxMaImmediateDeliveryServiceImplTest { + + /** + * 对应配送公司的appKey. + */ + private static final String SHOP_ID = "***"; + + /** + * 对应配送公司appSecret. + */ + private static final String APP_SECRET = "****"; + + /** + * 商家门店编号. + */ + private static final String SHOP_NO = "***"; + + /** + * 快递公司Id. + */ + private static final String DELIVERY_ID = "SFTC"; + + @Inject + private WxMaService wxMaService; + + /** + * 测试拉取已绑定账号接口. + * + * @throws WxErrorException 异常 + */ + @Test + public void testGetBindAccount() throws WxErrorException { + BindAccountResponse response = wxMaService.getWxMaImmediateDeliveryService().getBindAccount(); + System.out.println("response = " + response); + } + + /** + * 测试下配送单接口. + * + * @throws WxErrorException 异常 + */ + @Test + public void testAddOrder() throws WxErrorException { + AddOrderRequest request = new AddOrderRequest(); + // 下单用户的openid + request.setOpenid("*****"); + // 微信平台字段,对应配送公司的appkey + request.setShopId(SHOP_ID); + // 对应配送公司appSecret + request.setAppSecret(APP_SECRET); + // 商家门店编号,在配送公司登记,如果只有一个门店,美团闪送必填, 值为店铺id + // 商家对不同门店进行的编号,需要在配送公司系统有过登记,比如商家自己门店系统中有100个门店,编号是1-100,在顺丰同城的系统中有登记过这100个门店,且在顺丰同城登记的编号也是1-100,那么下单的时候传shop_no + // =1,就是编号为1 的门店下的配送单 + request.setShopNo(SHOP_NO); + // 配送公司Id + request.setDeliveryId(DELIVERY_ID); + // 唯一标识订单的 ID,由商户生成, 不超过 128 字节 + String shopOrderId = String.valueOf(System.currentTimeMillis()); + request.setShopOrderId(shopOrderId); + + // 订单信息 + AddOrderRequest.OrderInfo orderInfo = new AddOrderRequest.OrderInfo(); + orderInfo.setOrderTime(System.currentTimeMillis() / 1000L); + request.setOrderInfo(orderInfo); + + // 发件人信息 + AddOrderRequest.Sender sender = new AddOrderRequest.Sender(); + sender.setCity("上海市").setAddress("***").setAddressDetail("****"); + sender.setName("***").setPhone("166****8829"); + sender.setLng(new BigDecimal("121.281379")).setLat(new BigDecimal("31.049363")); + request.setSender(sender); + + // 收件人信息 + AddOrderRequest.Receiver receiver = new AddOrderRequest.Receiver().setCoordinateType(1); + receiver.setCity("北京市").setAddress("海淀区").setAddressDetail("北京市海淀区学清嘉创大厦A座15层"); + receiver.setName("顺丰同城").setPhone("166****8829"); + receiver.setLng(new BigDecimal("116.359442")).setLat(new BigDecimal("40.020407")); + request.setReceiver(receiver); + + // 商品信息 + AddOrderRequest.Cargo cargo = new AddOrderRequest.Cargo(); + cargo.setCargoFirstClass("电商").setCargoSecondClass("线上商城"); + cargo.setGoodsHeight(BigDecimal.valueOf(1)).setGoodsLength(BigDecimal.valueOf(3)); + cargo.setGoodsValue(BigDecimal.valueOf(5)).setGoodsWeight(BigDecimal.valueOf(1)).setGoodsWidth(BigDecimal.valueOf(2)); + // 商品列表 + AddOrderRequest.Cargo.GoodsDetail goodsDetail = new AddOrderRequest.Cargo.GoodsDetail(); + AddOrderRequest.Cargo.GoodsDetail.Goods goods1 = new AddOrderRequest.Cargo.GoodsDetail.Goods(); + goods1.setGoodCount(1).setGoodName("水果").setGoodPrice(new BigDecimal(10)); + AddOrderRequest.Cargo.GoodsDetail.Goods goods2 = new AddOrderRequest.Cargo.GoodsDetail.Goods(); + goods2.setGoodCount(2).setGoodName("蔬菜").setGoodPrice(new BigDecimal(20)); + goodsDetail.setGoods(Lists.newArrayList(goods1, goods2)); + cargo.setGoodsDetail(goodsDetail); + request.setCargo(cargo); + + // 店铺信息 + AddOrderRequest.Shop shop = new AddOrderRequest.Shop(); + int sum = + request.getCargo().getGoodsDetail().getGoods().stream().mapToInt(AddOrderRequest.Cargo.GoodsDetail.Goods::getGoodCount).sum(); + shop.setGoodsCount(sum).setGoodsName("商品"); + shop.setImgUrl("https://").setWxaPath("pages/index/index"); + request.setShop(shop); + + AddOrderResponse response = wxMaService.getWxMaImmediateDeliveryService().addOrder(request); + System.out.println("response = " + response); + + } + + /** + * 测试拉取配送单信息接口. + * + * @throws WxErrorException 异常 + */ + @Test + public void testGetOrder() throws WxErrorException { + GetOrderRequest request = new GetOrderRequest(); + request.setShopId(SHOP_ID).setShopNo(SHOP_NO).setAppSecret(APP_SECRET); + request.setShopOrderId("1561399675737608193"); + GetOrderResponse response = wxMaService.getWxMaImmediateDeliveryService().getOrder(request); + System.out.println("response = " + response); + } + + /** + * 测试取消配送单信息接口. + * + * @throws WxErrorException 异常 + */ + @Test + public void testCancelOrder() throws WxErrorException { + CancelOrderRequest request = new CancelOrderRequest(); + request.setShopId(SHOP_ID).setShopNo(SHOP_NO).setAppSecret(APP_SECRET); + request.setDeliveryId(DELIVERY_ID); + request.setCancelReasonId(1); + request.setShopOrderId("1560365275348471809"); + request.setWaybillId("3427365636312065025"); + CancelOrderResponse response = wxMaService.getWxMaImmediateDeliveryService().cancelOrder(request); + System.out.println("response = " + response); + } + + /** + * 测试异常件退回商家商家确认收货接口. + * + * @throws WxErrorException 异常 + */ + @Test + public void testAbnormalConfirm() throws WxErrorException { + AbnormalConfirmRequest request = new AbnormalConfirmRequest(); + request.setShopId(SHOP_ID).setShopNo(SHOP_NO).setAppSecret(APP_SECRET); + request.setDeliveryId(DELIVERY_ID); + request.setShopOrderId("1561399675737608193"); + request.setWaybillId("3427882855372591617"); + request.setRemark("测试签收异常订单"); + AbnormalConfirmResponse response = wxMaService.getWxMaImmediateDeliveryService().abnormalConfirm(request); + System.out.println("response = " + response); + } + + /** + * 测试模拟配送公司更新配送单状态接口. + * + * @throws WxErrorException 异常 + */ + @Test + public void testMockUpdateOrder() throws WxErrorException { + // 请求参数 + MockUpdateOrderRequest request = new MockUpdateOrderRequest(); + request.setActionTime(System.currentTimeMillis() / 1000L); + request.setOrderStatus(102); + request.setShopOrderId(""); + MockUpdateOrderResponse response = wxMaService.getWxMaImmediateDeliveryService().mockUpdateOrder(request); + System.out.println("response = " + response); + } + +} From 6bccbf5fc333ca1484ec782fda06e0047bc71e36 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 19 Jan 2022 20:31:35 +0800 Subject: [PATCH 106/622] Update README.md --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d8fd00b97a..d31f0beb06 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@

$9eSX$VcaVO(c*z+jo^bPwJC2=la#21TYcopu zzW?(>`u)3Q+pd%?Pk8xc;7Gm{5LHwy!X$LhN)GWGag=jd*A2qD(?+ZlNrrXJiDTB! z?n&<()T_@AM;-Fk#`UdxJ9_m=^ch^D*yxKbu-1C9w%Wl^MmDWrfrVkV5T36^WyoG z$!1IAnVP<_?yR5bvS4&)k?zLcEOmElue^zaN{81BIs4Gcal?BJC@dhcVA`Fr>SujF z+oddEMb>~+4PYRyixe3Ufviu;nx!rydH)9lo$D=A;A4h>x`w&5K#NDB_j|^8a3D2x zclnugcRS!26OVbxd@r6Ci{%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 HcmV?d00001 From a5cd1a6cd52422046d73ba05bf54e696021b0360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=AE=89?= Date: Wed, 17 Nov 2021 16:52:20 +0800 Subject: [PATCH 037/622] =?UTF-8?q?:art:=20#2391=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BC=81=E4=B8=9A=E7=BE=A4?= =?UTF-8?q?=E5=8F=91=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/external/WxCpMsgTemplate.java | 28 ++++++++++++------- .../cp/bean/message/WxCpXmlMessage.java | 8 +++++- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java index 295eecb636..845aefcc77 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java @@ -5,10 +5,7 @@ import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import me.chanjar.weixin.cp.bean.external.msg.Image; -import me.chanjar.weixin.cp.bean.external.msg.Link; -import me.chanjar.weixin.cp.bean.external.msg.MiniProgram; -import me.chanjar.weixin.cp.bean.external.msg.Text; +import me.chanjar.weixin.cp.bean.external.msg.*; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.io.Serializable; @@ -19,7 +16,7 @@ *

-
赞助商招募中,欢迎联系洽谈
+
赞助商招募中,欢迎微信联系洽谈
@@ -39,13 +39,14 @@
### 重要信息 -1. **2021-11-01 发布 [【4.2.0正式版】](https://mp.weixin.qq.com/s/nIk_xOf6dxkhKfqq830Cuw)**! -2. 贡献源码,请参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007) -3. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。 -4. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识; -5. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。 -6. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前,请先阅读[【提问的智慧】](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间; -7. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com +1. 项目合作洽谈,请联系微信`binary0000`(在微信里自行搜索并添加好友即可,请注明来意)。 +2. **2021-11-01 发布 [【4.2.0正式版】](https://mp.weixin.qq.com/s/nIk_xOf6dxkhKfqq830Cuw)**! +3. 贡献源码可以参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007) +4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。 +5. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识; +6. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。 +7. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前,请先阅读[【提问的智慧】](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间; +8. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com -------------------------------- ### 其他说明 From 31efa1ad66165b57f7d77be84fddec65be6e60a6 Mon Sep 17 00:00:00 2001 From: JCLee <452415615@qq.com> Date: Thu, 20 Jan 2022 12:04:09 +0800 Subject: [PATCH 107/622] =?UTF-8?q?:art:=20#2511=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E8=8D=89=E7=A8=BF=E7=AE=B1=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=9B=BE=E6=96=87=E7=B4=A0=E6=9D=90=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E7=B1=BB=E5=A2=9E=E5=8A=A0=E5=9B=BE=E6=96=87=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=B4=A0=E6=9D=90=E7=9A=84=E6=9C=80=E5=90=8E=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java index 05294cade5..0ae42b17f7 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java @@ -27,6 +27,12 @@ public class WxMpDraftItem implements Serializable { @SerializedName("content") private WxMpDraftInfo content; + /** + * 本草稿的图文消息素材的最后更新时间 + */ + @SerializedName("update_time") + private Long updateTime; + public static WxMpDraftItem fromJson(String json) { return WxGsonBuilder.create().fromJson(json, WxMpDraftItem.class); } From 649af3e4bd2ebb3a3493db2485471c2eda342850 Mon Sep 17 00:00:00 2001 From: ichengzi Date: Thu, 20 Jan 2022 12:05:12 +0800 Subject: [PATCH 108/622] =?UTF-8?q?:art:=20=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E5=90=AB=E4=B9=89=E5=8C=B9=E9=85=8D=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/common/error/WxCpErrorMsgEnum.java | 31 +++++++++++-------- .../weixin/common/error/WxMaErrorMsgEnum.java | 19 +++++++----- .../weixin/common/error/WxMpErrorMsgEnum.java | 23 ++++++++------ 3 files changed, 44 insertions(+), 29 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java index c742959bb6..61b863bf1a 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java @@ -1,7 +1,10 @@ package me.chanjar.weixin.common.error; +import com.google.common.collect.Maps; import lombok.Getter; +import java.util.Map; + /** *

  * 企业微信全局错误码.
@@ -1072,7 +1075,7 @@ public enum WxCpErrorMsgEnum {
   /**
    * 提交审批单请求参数错误
    */
-  CODE_301025(301025,"提交审批单请求参数错误"),
+  CODE_301025(301025, "提交审批单请求参数错误"),
   /**
    * 不允许更新该用户的userid.
    */
@@ -1080,15 +1083,15 @@ public enum WxCpErrorMsgEnum {
   /**
    * 无审批应用权限,或者提单者不在审批应用/自建应用的可见范围
    */
-  CODE_301055(301055,"无审批应用权限,或者提单者不在审批应用/自建应用的可见范围"),
+  CODE_301055(301055, "无审批应用权限,或者提单者不在审批应用/自建应用的可见范围"),
   /**
    * 审批应用已停用
    */
-  CODE_301056(301056,"审批应用已停用"),
+  CODE_301056(301056, "审批应用已停用"),
   /**
    * 通用错误码,提交审批单内部接口失败
    */
-  CODE_301057(301057,"通用错误码,提交审批单内部接口失败"),
+  CODE_301057(301057, "通用错误码,提交审批单内部接口失败"),
   /**
    * 批量导入任务的文件中userid有重复.
    */
@@ -1114,24 +1117,26 @@ public enum WxCpErrorMsgEnum {
    */
   CODE_2000002(2000002, "CorpId参数无效;指定的CorpId不存在");
 
-  private int code;
-  private String msg;
+  private final int code;
+  private final String msg;
 
   WxCpErrorMsgEnum(int code, String msg) {
     this.code = code;
     this.msg = msg;
   }
 
+  static final Map valueMap = Maps.newHashMap();
+
+  static {
+    for (WxCpErrorMsgEnum value : WxCpErrorMsgEnum.values()) {
+      valueMap.put(value.code, value.msg);
+    }
+  }
+
   /**
    * 通过错误代码查找其中文含义..
    */
   public static String findMsgByCode(int code) {
-    for (WxCpErrorMsgEnum value : WxCpErrorMsgEnum.values()) {
-      if (value.code == code) {
-        return value.msg;
-      }
-    }
-
-    return null;
+    return valueMap.getOrDefault(code, null);
   }
 }
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java
index 18da513480..10cbe5436f 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMaErrorMsgEnum.java
@@ -1,7 +1,10 @@
 package me.chanjar.weixin.common.error;
 
+import com.google.common.collect.Maps;
 import lombok.Getter;
 
+import java.util.Map;
+
 /**
  * 微信小程序错误码
  *
@@ -664,16 +667,18 @@ public enum WxMaErrorMsgEnum {
     this.msg = msg;
   }
 
+  static final Map valueMap = Maps.newHashMap();
+
+  static {
+    for (WxMaErrorMsgEnum value : WxMaErrorMsgEnum.values()) {
+      valueMap.put(value.code, value.msg);
+    }
+  }
+
   /**
    * 通过错误代码查找其中文含义.
    */
   public static String findMsgByCode(int code) {
-    for (WxMaErrorMsgEnum value : WxMaErrorMsgEnum.values()) {
-      if (value.code == code) {
-        return value.msg;
-      }
-    }
-
-    return null;
+    return valueMap.getOrDefault(code, null);
   }
 }
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java
index 58dc4f345d..56cce6b598 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java
@@ -1,7 +1,10 @@
 package me.chanjar.weixin.common.error;
 
+import com.google.common.collect.Maps;
 import lombok.Getter;
 
+import java.util.Map;
+
 /**
  * 
  * 微信公众平台全局返回码.
@@ -648,24 +651,26 @@ public enum WxMpErrorMsgEnum {
    */
   CODE_45084(45084, "没有设置 speed 参数");
 
-  private int code;
-  private String msg;
+  private final int code;
+  private final String msg;
 
   WxMpErrorMsgEnum(int code, String msg) {
     this.code = code;
     this.msg = msg;
   }
 
+  static final Map valueMap = Maps.newHashMap();
+
+  static {
+    for (WxMpErrorMsgEnum value : WxMpErrorMsgEnum.values()) {
+      valueMap.put(value.code, value.msg);
+    }
+  }
+
   /**
    * 通过错误代码查找其中文含义..
    */
   public static String findMsgByCode(int code) {
-    for (WxMpErrorMsgEnum value : WxMpErrorMsgEnum.values()) {
-      if (value.code == code) {
-        return value.msg;
-      }
-    }
-
-    return null;
+    return valueMap.getOrDefault(code, null);
   }
 }

From 487cc7f689452779a5c8574b32e67148047c8380 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=94=E6=98=8E?=
 <41773644+fu9809@users.noreply.github.com>
Date: Thu, 20 Jan 2022 12:07:56 +0800
Subject: [PATCH 109/622] =?UTF-8?q?:new:=20#2309=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E5=AE=A2=E6=9C=8D=E5=B8=90=E5=8F=B7=E7=AE=A1=E7=90=86?=
 =?UTF-8?q?=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../chanjar/weixin/cp/api/WxCpKfService.java  | 70 ++++++++++++++++
 .../me/chanjar/weixin/cp/api/WxCpService.java | 13 +++
 .../cp/api/impl/BaseWxCpServiceImpl.java      | 11 +++
 .../weixin/cp/api/impl/WxCpKfServiceImpl.java | 64 +++++++++++++++
 .../weixin/cp/bean/kf/WxCpKfAccountAdd.java   | 33 ++++++++
 .../cp/bean/kf/WxCpKfAccountAddResp.java      | 32 ++++++++
 .../weixin/cp/bean/kf/WxCpKfAccountDel.java   | 28 +++++++
 .../weixin/cp/bean/kf/WxCpKfAccountLink.java  | 40 +++++++++
 .../cp/bean/kf/WxCpKfAccountLinkResp.java     | 32 ++++++++
 .../cp/bean/kf/WxCpKfAccountListResp.java     | 57 +++++++++++++
 .../weixin/cp/bean/kf/WxCpKfAccountUpd.java   | 41 ++++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  9 ++
 .../cp/api/impl/WxCpKfServiceImplTest.java    | 82 +++++++++++++++++++
 13 files changed, 512 insertions(+)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java
 create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java
new file mode 100644
index 0000000000..a77b42a6c2
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java
@@ -0,0 +1,70 @@
+package me.chanjar.weixin.cp.api;
+
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd;
+
+/**
+ * 微信客服接口
+ *
+ *  微信客服由腾讯微信团队为企业打造,用于满足企业的客服需求,帮助企业做好客户服务。企业可以在微信内、外各个场景中接入微信客服,
+ *  用户可以发起咨询,企业可以进行回复。
+ *  企业可在微信客服官网使用企业微信扫码开通微信客服,开通后即可使用。
+ *
+ * @author Fu
+ * @date 2022/1/19 19:25
+ */
+public interface WxCpKfService {
+
+  /**
+   * 添加客服帐号,并可设置客服名称和头像。目前一家企业最多可添加10个客服帐号
+   *
+   * @param add 客服帐号信息
+   * @return result-新创建的客服帐号ID
+   * @throws WxErrorException 异常
+   */
+  WxCpKfAccountAddResp addAccount(WxCpKfAccountAdd add) throws WxErrorException;
+
+  /**
+   * 修改已有的客服帐号,可修改客服名称和头像。
+   *
+   * @param upd 新的客服账号信息
+   * @return result
+   * @throws WxErrorException 异常
+   */
+  WxCpBaseResp updAccount(WxCpKfAccountUpd upd) throws WxErrorException;
+
+  /**
+   * 删除已有的客服帐号
+   *
+   * @param del 要删除的客服帐号
+   * @return result
+   * @throws WxErrorException 异常
+   */
+  WxCpBaseResp delAccount(WxCpKfAccountDel del) throws WxErrorException;
+
+  /**
+   * 获取客服帐号列表,包括所有的客服帐号的客服ID、名称和头像。
+   *
+   * @return 客服帐号列表
+   * @throws WxErrorException 异常
+   */
+  WxCpKfAccountListResp listAccount() throws WxErrorException;
+
+  /**
+   * 企业可通过此接口获取带有不同参数的客服链接,不同客服帐号对应不同的客服链接。获取后,企业可将链接嵌入到网页等场景中,
+   * 微信用户点击链接即可向对应的客服帐号发起咨询。企业可依据参数来识别用户的咨询来源等
+   *
+   * @param link 参数
+   * @return 链接
+   * @throws WxErrorException 异常
+   */
+  WxCpKfAccountLinkResp getAccountLink(WxCpKfAccountLink link) throws WxErrorException;
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
index 123697b8ed..5e525213fe 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
@@ -427,6 +427,13 @@ public interface WxCpService extends WxService {
    */
   WxCpAgentWorkBenchService getWorkBenchService();
 
+  /**
+   * 获取微信客服服务
+   *
+   * @return 微信客服服务
+   */
+  WxCpKfService getKfService();
+
   /**
    * http请求对象
    *
@@ -476,4 +483,10 @@ public interface WxCpService extends WxService {
    */
   void setTagService(WxCpTagService tagService);
 
+  /**
+   * Sets kf service.
+   *
+   * @param kfService the kf service
+   */
+  void setKfService(WxCpKfService kfService);
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java
index 210d54f540..18a8a9e52c 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java
@@ -57,6 +57,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH
   private WxCpOaCalendarService oaCalendarService = new WxCpOaCalendarServiceImpl(this);
   private WxCpOaScheduleService oaScheduleService = new WxCpOaOaScheduleServiceImpl(this);
   private WxCpAgentWorkBenchService workBenchService = new WxCpAgentWorkBenchServiceImpl(this);
+  private WxCpKfService kfService = new WxCpKfServiceImpl(this);
 
   /**
    * 全局的是否正在刷新access token的锁.
@@ -556,4 +557,14 @@ public void setAgentService(WxCpAgentService agentService) {
   public WxCpOaScheduleService getOaScheduleService() {
     return this.oaScheduleService;
   }
+
+  @Override
+  public WxCpKfService getKfService() {
+    return kfService;
+  }
+
+  @Override
+  public void setKfService(WxCpKfService kfService) {
+    this.kfService = kfService;
+  }
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java
new file mode 100644
index 0000000000..53e520d3c4
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java
@@ -0,0 +1,64 @@
+package me.chanjar.weixin.cp.api.impl;
+
+import lombok.RequiredArgsConstructor;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.api.WxCpKfService;
+import me.chanjar.weixin.cp.api.WxCpService;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Kf.*;
+
+/**
+ * 微信客服接口-服务实现
+ *
+ * @author Fu
+ * @date 2022/1/19 19:41
+ */
+@RequiredArgsConstructor
+public class WxCpKfServiceImpl implements WxCpKfService {
+  private final WxCpService cpService;
+
+  @Override
+  public WxCpKfAccountAddResp addAccount(WxCpKfAccountAdd add) throws WxErrorException {
+    String url = cpService.getWxCpConfigStorage().getApiUrl(ACCOUNT_ADD);
+    String responseContent = cpService.post(url, WxCpGsonBuilder.create().toJson(add));
+    return WxCpKfAccountAddResp.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpBaseResp updAccount(WxCpKfAccountUpd upd) throws WxErrorException {
+    String url = cpService.getWxCpConfigStorage().getApiUrl(ACCOUNT_UPD);
+    String responseContent = cpService.post(url, WxCpGsonBuilder.create().toJson(upd));
+    return WxCpBaseResp.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpBaseResp delAccount(WxCpKfAccountDel del) throws WxErrorException {
+    String url = cpService.getWxCpConfigStorage().getApiUrl(ACCOUNT_DEL);
+    String responseContent = cpService.post(url, WxCpGsonBuilder.create().toJson(del));
+    return WxCpBaseResp.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpKfAccountListResp listAccount() throws WxErrorException {
+    String url = cpService.getWxCpConfigStorage().getApiUrl(ACCOUNT_LIST);
+    String responseContent = cpService.post(url, "{}");
+    return WxCpKfAccountListResp.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpKfAccountLinkResp getAccountLink(WxCpKfAccountLink link) throws WxErrorException {
+    String url = cpService.getWxCpConfigStorage().getApiUrl(ADD_CONTACT_WAY);
+    String responseContent = cpService.post(url, WxCpGsonBuilder.create().toJson(link));
+    return WxCpKfAccountLinkResp.fromJson(responseContent);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java
new file mode 100644
index 0000000000..14ca9f0f8b
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java
@@ -0,0 +1,33 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 添加客服帐号-请求参数
+ *
+ * @author Fu
+ * @date 2022/1/19 18:59
+ */
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountAdd implements Serializable {
+
+  private static final long serialVersionUID = 3565729481246537411L;
+
+  /**
+   * 客服名称;不多于16个字符
+   */
+  @SerializedName("name")
+  private String name;
+
+  /**
+   * 客服头像临时素材。可以调用上传临时素材接口获取。
+   * 不多于128个字节
+   */
+  @SerializedName("media_id")
+  private String mediaId;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java
new file mode 100644
index 0000000000..1e47d696b2
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java
@@ -0,0 +1,32 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 添加客服帐号-返回结果
+ *
+ * @author Fu
+ * @date 2022/1/19 19:04
+ */
+@EqualsAndHashCode(callSuper = true)
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountAddResp extends WxCpBaseResp {
+
+  private static final long serialVersionUID = -6649323005421772827L;
+
+  /**
+   * 新创建的客服帐号ID
+   */
+  @SerializedName("open_kfid")
+  private String openKfid;
+
+  public static WxCpKfAccountAddResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpKfAccountAddResp.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java
new file mode 100644
index 0000000000..026e05510f
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java
@@ -0,0 +1,28 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 删除客服帐号-请求参数
+ *
+ * @author Fu
+ * @date 2022/1/19 19:09
+ */
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountDel implements Serializable {
+
+  private static final long serialVersionUID = 1997221467585676772L;
+
+  /**
+   * 客服帐号ID。
+   * 不多于64字节
+   */
+  @SerializedName("open_kfid")
+  private String openKfid;
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java
new file mode 100644
index 0000000000..a17e5c5e83
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java
@@ -0,0 +1,40 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 获取客服帐号链接-请求参数
+ *
+ * @author Fu
+ * @date 2022/1/19 19:18
+ */
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountLink implements Serializable {
+
+  private static final long serialVersionUID = -1920926948347984256L;
+
+  /**
+   * 客服帐号ID
+   */
+  @SerializedName("open_kfid")
+  private String openKfid;
+
+  /**
+   * 场景值,字符串类型,由开发者自定义。
+   * 不多于32字节
+   * 字符串取值范围(正则表达式):[0-9a-zA-Z_-]*
+   *
+   * 1. 若scene非空,返回的客服链接开发者可拼接scene_param=SCENE_PARAM参数使用,用户进入会话事件会将SCENE_PARAM原样返回。
+   *    其中SCENE_PARAM需要urlencode,且长度不能超过128字节。
+   *    如 https://work.weixin.qq.com/kf/kfcbf8f8d07ac7215f?enc_scene=ENCGFSDF567DF&scene_param=a%3D1%26b%3D2
+   * 2. 历史调用接口返回的客服链接(包含encScene=XXX参数),不支持scene_param参数。
+   * 3. 返回的客服链接,不能修改或复制参数到其他链接使用。否则进入会话事件参数校验不通过,导致无法回调。
+   */
+  @SerializedName("scene")
+  private String scene;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java
new file mode 100644
index 0000000000..89bf635958
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java
@@ -0,0 +1,32 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 获取客服帐号链接-结果
+ *
+ * @author Fu
+ * @date 2022/1/19 19:18
+ */
+@EqualsAndHashCode(callSuper = true)
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountLinkResp extends WxCpBaseResp {
+
+  private static final long serialVersionUID = 910205439597092481L;
+
+  /**
+   * 客服链接,开发者可将该链接嵌入到H5页面中,用户点击链接即可向对应的微信客服帐号发起咨询。开发者也可根据该url自行生成需要的二维码图片
+   */
+  @SerializedName("url")
+  private String url;
+
+  public static WxCpKfAccountLinkResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpKfAccountLinkResp.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java
new file mode 100644
index 0000000000..c2676a44dd
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java
@@ -0,0 +1,57 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 获取客服帐号列表-结果
+ *
+ * @author Fu
+ * @date 2022/1/19 19:13
+ */
+@EqualsAndHashCode(callSuper = true)
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountListResp extends WxCpBaseResp {
+
+  private static final long serialVersionUID = -1317201649692262217L;
+
+  /**
+   * 	帐号信息列表
+   */
+  @JsonProperty("account_list")
+  private List accountList;
+
+  @NoArgsConstructor
+  @Data
+  public static class AccountListDTO {
+    /**
+     * 客服帐号ID
+     */
+    @SerializedName("open_kfid")
+    private String openKfid;
+
+    /**
+     * 客服名称
+     */
+    @SerializedName("name")
+    private String name;
+
+    /**
+     * 客服头像URL
+     */
+    @SerializedName("avatar")
+    private String avatar;
+  }
+
+  public static WxCpKfAccountListResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpKfAccountListResp.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java
new file mode 100644
index 0000000000..d3ce7269a5
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java
@@ -0,0 +1,41 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 修改客服帐号-请求参数
+ *
+ * @author Fu
+ * @date 2022/1/19 19:10
+ */
+@NoArgsConstructor
+@Data
+public class WxCpKfAccountUpd implements Serializable {
+
+  private static final long serialVersionUID = -900712046553752529L;
+
+  /**
+   * 要修改的客服帐号ID。
+   * 不多于64字节
+   */
+  @SerializedName("open_kfid")
+  private String openKfid;
+
+  /**
+   * 新的客服名称,如不需要修改可不填。
+   * 不多于16个字符
+   */
+  @SerializedName("name")
+  private String name;
+
+  /**
+   * 新的客服头像临时素材,如不需要修改可不填。可以调用上传临时素材接口获取。
+   * 不多于128个字节
+   */
+  @SerializedName("media_id")
+  private String mediaId;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index cea1bcb9ba..a55b4726f1 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -244,4 +244,13 @@ interface ExternalContact {
     String GROUP_WELCOME_TEMPLATE_DEL = "/cgi-bin/externalcontact/group_welcome_template/del";
 
   }
+
+  interface Kf {
+    String ACCOUNT_ADD = "/cgi-bin/kf/account/add";
+    String ACCOUNT_UPD = "/cgi-bin/kf/account/update";
+    String ACCOUNT_DEL = "/cgi-bin/kf/account/del";
+    String ACCOUNT_LIST = "/cgi-bin/kf/account/list";
+    String ADD_CONTACT_WAY = "/cgi-bin/kf/add_contact_way";
+
+  }
 }
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java
new file mode 100644
index 0000000000..09a4f568c3
--- /dev/null
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java
@@ -0,0 +1,82 @@
+package me.chanjar.weixin.cp.api.impl;
+
+import com.google.inject.Inject;
+import me.chanjar.weixin.common.api.WxConsts;
+import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
+import me.chanjar.weixin.cp.api.ApiTestModule;
+import me.chanjar.weixin.cp.api.WxCpService;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd;
+import org.testng.annotations.Guice;
+import org.testng.annotations.Test;
+
+import java.io.InputStream;
+
+/**
+ * WxCpKfServiceImpl-测试类
+ * 需要用到专门的 secret https://kf.weixin.qq.com/api/doc/path/93304#secret
+ *
+ * @author Fu
+ * @date 2022/1/19 20:12
+ */
+@Guice(modules = ApiTestModule.class)
+public class WxCpKfServiceImplTest {
+
+  @Inject
+  private WxCpService wxService;
+
+  private static String kfid = "wkPzhXVAAAJD9oR75LrO1DmURSOUFBIg";
+
+  @Test(priority = 1)
+  public void testAccountAdd() throws Exception {
+    try (InputStream in = ClassLoader.getSystemResourceAsStream("mm.jpeg")) {
+      WxMediaUploadResult result = this.wxService.getMediaService().upload(WxConsts.MediaFileType.IMAGE, "jpeg", in);
+      String mediaId = result.getMediaId();
+      WxCpKfAccountAdd add = new WxCpKfAccountAdd();
+      add.setMediaId(mediaId);
+      add.setName("kefu01");
+      WxCpKfAccountAddResp resp = this.wxService.getKfService().addAccount(add);
+      System.out.println(resp);
+      kfid = resp.getOpenKfid();
+    }
+  }
+
+  @Test(priority = 2)
+  public void testAccountUpd() throws Exception {
+    WxCpKfAccountUpd upd = new WxCpKfAccountUpd();
+    upd.setOpenKfid(kfid);
+    upd.setName("kefu01-upd");
+    WxCpBaseResp resp = this.wxService.getKfService().updAccount(upd);
+    System.out.println(resp);
+  }
+
+  @Test(priority = 3)
+  public void testAccountList() throws Exception {
+    WxCpKfAccountListResp resp = this.wxService.getKfService().listAccount();
+    System.out.println(resp);
+  }
+
+  @Test(priority = 4)
+  public void testAccountLink() throws Exception {
+    WxCpKfAccountLink link = new WxCpKfAccountLink();
+    link.setOpenKfid(kfid);
+    link.setScene("scene");
+    WxCpKfAccountLinkResp resp = this.wxService.getKfService().getAccountLink(link);
+    System.out.println(resp);
+  }
+
+  @Test(priority = 5)
+  public void testAccountDel() throws Exception {
+    WxCpKfAccountDel del = new WxCpKfAccountDel();
+    del.setOpenKfid(kfid);
+    WxCpBaseResp resp = this.wxService.getKfService().delAccount(del);
+    System.out.println(resp);
+  }
+
+}

From 04914f5b01fe29311100cf32551c1b60252986c2 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 24 Jan 2022 00:03:05 +0800
Subject: [PATCH 110/622] =?UTF-8?q?:art:=20#2518=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E5=AE=A1?=
 =?UTF-8?q?=E6=89=B9=E8=AE=B0=E5=BD=95=E7=9A=84=E5=AE=A1=E6=89=B9=E7=8A=B6?=
 =?UTF-8?q?=E6=80=81=E5=A2=9E=E5=8A=A0=E5=B7=B2=E9=80=80=E5=9B=9E=E7=8A=B6?=
 =?UTF-8?q?=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/bean/oa/WxCpApprovalDetail.java | 78 -------------------
 .../cp/bean/oa/WxCpApprovalDetailResult.java  | 67 ++++++++++++++++
 .../weixin/cp/bean/oa/WxCpRecordSpStatus.java | 21 +++--
 .../merchant/ClearOutInvoiceRequest.java      |  2 -
 4 files changed, 80 insertions(+), 88 deletions(-)
 delete mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetail.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetail.java
deleted file mode 100644
index cba31fc27c..0000000000
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetail.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package me.chanjar.weixin.cp.bean.oa;
-
-import com.google.gson.annotations.SerializedName;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * 审批申请详情
- *
- * @author element
- */
-@Data
-public class WxCpApprovalDetail implements Serializable {
-  private static final long serialVersionUID = 1353393306564207170L;
-
-  /**
-   * 审批编号
-   */
-  @SerializedName("sp_no")
-  private String spNo;
-
-  /**
-   * 审批申请类型名称(审批模板名称)
-   */
-  @SerializedName("sp_name")
-  private String spName;
-
-  /**
-   * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付
-   */
-  @SerializedName("sp_status")
-  private WxCpSpStatus spStatus;
-
-  /**
-   * 审批模板id。可在“获取审批申请详情”、“审批状态变化回调通知”中获得,也可在审批模板的模板编辑页面链接中获得。
-   */
-  @SerializedName("template_id")
-  private String templateId;
-
-  /**
-   * 审批申请提交时间,Unix时间戳
-   */
-  @SerializedName("apply_time")
-  private Long applyTime;
-
-  /**
-   * 申请人信息
-   */
-  @SerializedName("applyer")
-  private WxCpApprovalApplier applier;
-
-  /**
-   * 审批流程信息,可能有多个审批节点
-   */
-  @SerializedName("sp_record")
-  private WxCpApprovalRecord[] spRecords;
-
-  /**
-   * 抄送信息,可能有多个抄送节点
-   */
-  @SerializedName("notifyer")
-  private WxCpOperator[] notifiers;
-
-  /**
-   * 审批申请数据
-   */
-  @SerializedName("apply_data")
-  private WxCpApprovalApplyData applyData;
-
-  /**
-   * 审批申请备注信息,可能有多个备注节点
-   */
-  @SerializedName("comments")
-  private List comments;
-
-}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java
index fdbc096a5c..2714cc95f5 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java
@@ -4,6 +4,7 @@
 import lombok.Data;
 
 import java.io.Serializable;
+import java.util.List;
 
 /**
  * 审批申请详情响应结果
@@ -23,4 +24,70 @@ public class WxCpApprovalDetailResult implements Serializable {
   @SerializedName("info")
   private WxCpApprovalDetail info;
 
+  @Data
+  public static class WxCpApprovalDetail implements Serializable {
+    private static final long serialVersionUID = 1353393306564207170L;
+
+    /**
+     * 审批编号
+     */
+    @SerializedName("sp_no")
+    private String spNo;
+
+    /**
+     * 审批申请类型名称(审批模板名称)
+     */
+    @SerializedName("sp_name")
+    private String spName;
+
+    /**
+     * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付
+     */
+    @SerializedName("sp_status")
+    private WxCpSpStatus spStatus;
+
+    /**
+     * 审批模板id。可在“获取审批申请详情”、“审批状态变化回调通知”中获得,也可在审批模板的模板编辑页面链接中获得。
+     */
+    @SerializedName("template_id")
+    private String templateId;
+
+    /**
+     * 审批申请提交时间,Unix时间戳
+     */
+    @SerializedName("apply_time")
+    private Long applyTime;
+
+    /**
+     * 申请人信息
+     */
+    @SerializedName("applyer")
+    private WxCpApprovalApplier applier;
+
+    /**
+     * 审批流程信息,可能有多个审批节点
+     */
+    @SerializedName("sp_record")
+    private WxCpApprovalRecord[] spRecords;
+
+    /**
+     * 抄送信息,可能有多个抄送节点
+     */
+    @SerializedName("notifyer")
+    private WxCpOperator[] notifiers;
+
+    /**
+     * 审批申请数据
+     */
+    @SerializedName("apply_data")
+    private WxCpApprovalApplyData applyData;
+
+    /**
+     * 审批申请备注信息,可能有多个备注节点
+     */
+    @SerializedName("comments")
+    private List comments;
+
+  }
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java
index 206a0aa04e..055871e23f 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java
@@ -1,14 +1,18 @@
 package me.chanjar.weixin.cp.bean.oa;
 
 import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Getter;
 
 /**
  * 审批记录(节点)分支审批状态
- *
- * 1-审批中;2-已同意;3-已驳回;4-已转审
+ * 

+ * 1-审批中;2-已同意;3-已驳回;4-已转审;11-已退回 * * @author element */ +@AllArgsConstructor +@Getter public enum WxCpRecordSpStatus { /** @@ -30,12 +34,13 @@ public enum WxCpRecordSpStatus { * 已转审 */ @SerializedName("4") - TURNED(4); - - private Integer status; + TURNED(4), + /** + * 已退回 + */ + @SerializedName("11") + WITHDRAWN(11); - private WxCpRecordSpStatus(Integer status) { - this.status = status; - } + private final Integer status; } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java index 108e76ca23..d0d0f6a9a8 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java @@ -9,8 +9,6 @@ */ @Data public class ClearOutInvoiceRequest implements Serializable { - - private ClearOutInvoiceInfo invoiceinfo; @Data From f3b2e93a088a979af3435a7cb1a2cdd17fd6b1cb Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 24 Jan 2022 00:07:33 +0800 Subject: [PATCH 111/622] =?UTF-8?q?:art:=20#2491=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E8=8E=B7=E5=8F=96=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8Fscheme=E7=A0=81=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=A4=E4=B8=AA=E8=BF=87=E6=9C=9F=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scheme/WxMaGenerateSchemeRequest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java index f8ef32b2fd..a62c1334af 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java @@ -39,6 +39,25 @@ public class WxMaGenerateSchemeRequest { @SerializedName("expire_time") private Long expireTime; + /** + * 到期失效的 scheme 码失效类型,失效时间:0,失效间隔天数:1 + *

+   * 是否必填:否
+   * 
+ */ + @SerializedName("expire_type") + private Integer expireType; + + /** + * 到期失效的 scheme 码的失效间隔天数。 + *
+   * 生成的到期失效 scheme 码在该间隔时间到达前有效。最长间隔天数为365天。is_expire 为 true 且 expire_type 为 1 时必填   * 
+   * 是否必填:否
+   * 
+ */ + @SerializedName("expire_interval") + private Integer expireInterval; + @Data @Builder(builderMethodName = "newBuilder") public static class JumpWxa { From 189ee0925e327dc9babecb1fce74d99e3cb10382 Mon Sep 17 00:00:00 2001 From: zhoushuofu <1065058691@qq.com> Date: Mon, 24 Jan 2022 00:09:37 +0800 Subject: [PATCH 112/622] =?UTF-8?q?:art:=20#2516=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E8=8F=9C=E5=8D=95=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=B0=E7=9A=84=E5=9B=BE=E6=96=87=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/common/bean/menu/WxMenuButton.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/menu/WxMenuButton.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/menu/WxMenuButton.java index 114e267d41..344f544bad 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/menu/WxMenuButton.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/menu/WxMenuButton.java @@ -58,6 +58,15 @@ public class WxMenuButton implements Serializable { @SerializedName("media_id") private String mediaId; + /** + *
+   * 调用发布图文接口获得的article_id.
+   * article_id类型和article_view_limited类型必须
+   * 
+ */ + @SerializedName("article_id") + private String articleId; + /** *
    * 小程序的appid.

From 74b5f806d01895f8638cc22e6df7ef49add59bdb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A0=88=E6=9C=A8?= <360586021@qq.com>
Date: Mon, 24 Jan 2022 00:10:11 +0800
Subject: [PATCH 113/622] =?UTF-8?q?:art:=20=E6=9B=B4=E6=96=B0=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E5=85=AC=E4=BC=97=E5=B9=B3=E5=8F=B0=E6=96=87=E6=A1=A3?=
 =?UTF-8?q?=E5=9C=B0=E5=9D=80&=E5=A2=9E=E5=8A=A0clientmsgid=E7=9B=B8?=
 =?UTF-8?q?=E5=85=B3=E8=BF=94=E5=9B=9E=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../me/chanjar/weixin/common/error/WxError.java    |  2 +-
 .../weixin/common/error/WxMpErrorMsgEnum.java      | 14 +++++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
index 0d80efe302..aa7f508f5b 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
@@ -13,7 +13,7 @@
 /**
  * 微信错误码.
  * 请阅读:
- * 公众平台:全局返回码说明
+ * 公众平台:全局返回码说明
  * 企业微信:全局错误码
  *
  * @author Daniel Qian & Binary Wang
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java
index 56cce6b598..fdfb397cb3 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxMpErrorMsgEnum.java
@@ -8,7 +8,7 @@
 /**
  * 
  * 微信公众平台全局返回码.
- * 参考文档:公众平台全局返回码
+ * 参考文档:公众平台全局返回码
  * Created by Binary Wang on 2018/5/13.
  * 
* @@ -376,6 +376,18 @@ public enum WxMpErrorMsgEnum { * 非法的tag_id. */ CODE_45159(45159, "非法的tag_id"), + /** + * 相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid + */ + CODE_45065(45065, "相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid"), + /** + * 相同 clientmsgid 重试速度过快,请间隔1分钟重试 + */ + CODE_45066(45066, "相同 clientmsgid 重试速度过快,请间隔1分钟重试"), + /** + * clientmsgid 长度超过限制 + */ + CODE_45067(45067, "clientmsgid 长度超过限制"), /** * 不存在媒体数据. */ From bd670742e7cf5ec91d76e474a9418f8901986bf2 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 24 Jan 2022 00:34:21 +0800 Subject: [PATCH 114/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.5?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 8ddf83161d..5e983b885e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index be3ffa29ed..1e1297db76 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 403d110e92..e17747d526 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index bc0df80a34..8e953637c4 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 6f39cf83a6..bf37e8f9d3 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index c88de56372..517736a70a 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 00b0b47e97..9e1ee87f06 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 74685629b7..d477a313c6 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index dd74121d63..c1676ae620 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 78a97e7346..e602174890 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 0d8750d186..c19593c63a 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index e7017eb0b0..4a320b1e68 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index a9db15a504..f4bbce9dec 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index c587b86cf1..0ceb56f2df 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 76a2f816d5..6bed599621 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 0b93578b43..2235028c36 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.4.B + 4.2.5.B weixin-java-qidian From b8dd04b89f64d716de00358cf476e199e0491fd1 Mon Sep 17 00:00:00 2001 From: aniaan Date: Mon, 24 Jan 2022 23:51:38 +0800 Subject: [PATCH 115/622] =?UTF-8?q?:art:=20=E6=96=B0=E5=A2=9Eview=5Fminipr?= =?UTF-8?q?ogram=E4=BA=8B=E4=BB=B6=E7=B1=BB=E5=9E=8B=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/common/api/WxConsts.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java index b6b94a7641..35a201edb0 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java @@ -345,6 +345,11 @@ public static class EventType { */ public static final String WEAPP_AUDIT_FAIL = "weapp_audit_fail"; + /** + * 点击菜单跳转小程序的事件推送 + */ + public static final String VIEW_MINIPROGRAM = "view_miniprogram"; + } /** From c0535f87fb6ed32e78dbc65e09c0922e92c0691c Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Mon, 24 Jan 2022 16:09:16 +0000 Subject: [PATCH 116/622] =?UTF-8?q?:new:=20#1596=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=AD=98=E6=A1=A3=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxjava/cp/properties/WxCpProperties.java | 4 + .../common/util/crypto/WxCryptUtil.java | 25 +- .../main/java/com/tencent/wework/Finance.java | 207 ++++ .../weixin/cp/api/WxCpMsgAuditService.java | 108 ++ .../me/chanjar/weixin/cp/api/WxCpService.java | 7 + .../cp/api/impl/BaseWxCpServiceImpl.java | 6 + .../cp/api/impl/WxCpMsgAuditServiceImpl.java | 196 ++++ .../cp/bean/msgaudit/WxCpAgreeInfo.java | 65 ++ .../cp/bean/msgaudit/WxCpChatDatas.java | 68 ++ .../cp/bean/msgaudit/WxCpChatModel.java | 987 ++++++++++++++++++ .../bean/msgaudit/WxCpCheckAgreeRequest.java | 57 + .../weixin/cp/bean/msgaudit/WxCpFileItem.java | 39 + .../cp/bean/msgaudit/WxCpGroupChat.java | 61 ++ .../weixin/cp/config/WxCpConfigStorage.java | 7 + .../cp/config/impl/WxCpDefaultConfigImpl.java | 6 + .../cp/config/impl/WxCpRedisConfigImpl.java | 6 + .../weixin/cp/constant/WxCpApiPathConsts.java | 6 + .../weixin/cp/util/crypto/WxCpCryptUtil.java | 33 + .../weixin/cp/api/WxCpMsgAuditTest.java | 433 ++++++++ 19 files changed, 2308 insertions(+), 13 deletions(-) create mode 100644 weixin-java-cp/src/main/java/com/tencent/wework/Finance.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java index e4b200f1a2..b2cc778ac0 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java @@ -38,6 +38,10 @@ public class WxCpProperties { * 微信企业号应用 EncodingAESKey */ private String aesKey; + /** + * 微信企业号应用 会话存档类库路径 + */ + private String msgAuditLibPath; /** * 配置存储策略,默认内存 diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java index f55672b0b4..d44791eb18 100755 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java @@ -1,19 +1,6 @@ package me.chanjar.weixin.common.util.crypto; -import java.io.StringReader; -import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; -import java.util.Arrays; -import java.util.Random; -import javax.crypto.Cipher; -import javax.crypto.spec.IvParameterSpec; -import javax.crypto.spec.SecretKeySpec; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; - import com.google.common.base.CharMatcher; -import com.google.common.io.BaseEncoding; import lombok.AllArgsConstructor; import lombok.Data; import me.chanjar.weixin.common.error.WxRuntimeException; @@ -22,6 +9,18 @@ import org.w3c.dom.Element; import org.xml.sax.InputSource; +import javax.crypto.Cipher; +import javax.crypto.spec.IvParameterSpec; +import javax.crypto.spec.SecretKeySpec; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import java.io.StringReader; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Random; + /** *
  * 对公众平台发送给公众账号的消息加解密示例代码.
diff --git a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java
new file mode 100644
index 0000000000..e653fd0f47
--- /dev/null
+++ b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java
@@ -0,0 +1,207 @@
+package com.tencent.wework;
+
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 注意:
+ * 此类必须配置在com.tencent.wework路径底下,否则会报错:
+ * java.lang.UnsatisfiedLinkError: com.xxx.Finance.NewSdk()
+ * 

+ * Q:JAVA版本的sdk报错UnsatisfiedLinkError? + * A:请检查是否修改了sdk的包名。 + *

+ * 官方文档: + * https://developer.work.weixin.qq.com/document/path/91552 + * + * @author Wang_Wong + * @date 2022-01-17 + */ +@Slf4j +public class Finance { + + private static volatile long sdk = -1L; + private static Finance finance = null; + private static final String SO_FILE = "so"; + private static final String DLL_FILE = "dll"; + + public native static long NewSdk(); + + /** + * 初始化函数 + * Return值=0表示该API调用成功 + * + * @param [in] sdk NewSdk返回的sdk指针 + * @param [in] corpid 调用企业的企业id,例如:wwd08c8exxxx5ab44d,可以在企业微信管理端--我的企业--企业信息查看 + * @param [in] secret 聊天内容存档的Secret,可以在企业微信管理端--管理工具--聊天内容存档查看 + * @return 返回是否初始化成功 + * 0 - 成功 + * !=0 - 失败 + */ + public native static int Init(long sdk, String corpid, String secret); + + /** + * 拉取聊天记录函数 + * Return值=0表示该API调用成功 + * + * @param [in] sdk NewSdk返回的sdk指针 + * @param [in] seq 从指定的seq开始拉取消息,注意的是返回的消息从seq+1开始返回,seq为之前接口返回的最大seq值。首次使用请使用seq:0 + * @param [in] limit 一次拉取的消息条数,最大值1000条,超过1000条会返回错误 + * @param [in] proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081 + * @param [in] passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123 + * @param [out] chatDatas 返回本次拉取消息的数据,slice结构体.内容包括errcode/errmsg,以及每条消息内容。 + * @return 返回是否调用成功 + * 0 - 成功 + * !=0 - 失败 + */ + public native static int GetChatData(long sdk, long seq, long limit, String proxy, String passwd, long timeout, long chatData); + + /** + * 拉取媒体消息函数 + * Return值=0表示该API调用成功 + * + * @param [in] sdk NewSdk返回的sdk指针 + * @param [in] sdkFileid 从GetChatData返回的聊天消息中,媒体消息包括的sdkfileid + * @param [in] proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081 + * @param [in] passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123 + * @param [in] indexbuf 媒体消息分片拉取,需要填入每次拉取的索引信息。首次不需要填写,默认拉取512k,后续每次调用只需要将上次调用返回的outindexbuf填入即可。 + * @param [out] media_data 返回本次拉取的媒体数据.MediaData结构体.内容包括data(数据内容)/outindexbuf(下次索引)/is_finish(拉取完成标记) + * @return 返回是否调用成功 + * 0 - 成功 + * !=0 - 失败 + */ + public native static int GetMediaData(long sdk, String indexbuf, String sdkField, String proxy, String passwd, long timeout, long mediaData); + + /** + * @param [in] encrypt_key, getchatdata返回的encrypt_key + * @param [in] encrypt_msg, getchatdata返回的content + * @param [out] msg, 解密的消息明文 + * @return 返回是否调用成功 + * 0 - 成功 + * !=0 - 失败 + * @brief 解析密文 + */ + public native static int DecryptData(long sdk, String encrypt_key, String encrypt_msg, long msg); + + public native static void DestroySdk(long sdk); + + public native static long NewSlice(); + + /** + * @return + * @brief 释放slice,和NewSlice成对使用 + */ + public native static void FreeSlice(long slice); + + /** + * @return 内容 + * @brief 获取slice内容 + */ + public native static String GetContentFromSlice(long slice); + + /** + * @return 内容 + * @brief 获取slice内容长度 + */ + public native static int GetSliceLen(long slice); + + public native static long NewMediaData(); + + public native static void FreeMediaData(long mediaData); + + /** + * @return outindex + * @brief 获取mediadata outindex + */ + public native static String GetOutIndexBuf(long mediaData); + + /** + * @return data + * @brief 获取mediadata data数据 + */ + public native static byte[] GetData(long mediaData); + + public native static int GetIndexLen(long mediaData); + + public native static int GetDataLen(long mediaData); + + /** + * @return 1完成、0未完成 + * @brief 判断mediadata是否结束 + */ + public native static int IsMediaDataFinish(long mediaData); + + /** + * 判断Windows环境 + * + * @return + */ + public static boolean isWindows() { + String osName = System.getProperties().getProperty("os.name"); + log.info("Loading System Libraries, Current OS Version Is: {}", osName); + return osName.toUpperCase().contains("WINDOWS"); + } + + /** + * 加载系统类库 + * + * @param libFiles 类库配置文件 + * @param prefixPath 类库文件的前缀路径 + */ + public Finance(String[] libFiles, String prefixPath) { + boolean isWindows = Finance.isWindows(); + for (String file : libFiles) { + String suffix = file.substring(file.lastIndexOf(".") + 1); + if (isWindows) { + // 加载dll文件 + if (suffix.equalsIgnoreCase(DLL_FILE)) { + System.load(prefixPath + file); + } + } else { + // 加载so文件 + if (suffix.equalsIgnoreCase(SO_FILE)) { + System.load(prefixPath + file); + } + } + } + + } + + /** + * 初始化类库文件 + * + * @param libFiles + * @param prefixPath + * @return + */ + public synchronized static Finance loadingLibraries(String[] libFiles, String prefixPath) { + if (finance != null) { + return finance; + } + finance = new Finance(libFiles, prefixPath); + return finance; + } + + /** + * 单例sdk + * + * @return + */ + public synchronized static long SingletonSDK() { + if (sdk > 0) { + return sdk; + } + sdk = Finance.NewSdk(); + return sdk; + } + + /** + * 销毁sdk,保证线程可见性 + * + * @return + */ + public synchronized static void DestroySingletonSDK(long destroySDK) { + sdk = 0L; + Finance.DestroySdk(destroySDK); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java new file mode 100644 index 0000000000..63389aeb8c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java @@ -0,0 +1,108 @@ +package me.chanjar.weixin.cp.api; + +import lombok.NonNull; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.msgaudit.*; + +import java.util.List; + +/** + * 会话内容存档接口. + * 官方文档:https://developer.work.weixin.qq.com/document/path/91360 + *

+ * 如需自行实现,亦可调用Finance类库函数,进行实现: + * com.tencent.wework.Finance + * + * @author Wang_Wong + * @date 2022-01-14 + */ +public interface WxCpMsgAuditService { + + /** + * 拉取聊天记录函数 + * + * @param seq 从指定的seq开始拉取消息,注意的是返回的消息从seq+1开始返回,seq为之前接口返回的最大seq值。首次使用请使用seq:0 + * @param limit 一次拉取的消息条数,最大值1000条,超过1000条会返回错误 + * @param proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081,如果没有传null + * @param passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123,如果没有传null + * @param timeout 超时时间,根据实际需要填写 + * @return 返回是否调用成功 + */ + WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, String passwd, @NonNull long timeout) throws Exception; + + /** + * 获取解密的聊天数据Model + * + * @param chatData getChatDatas()获取到的聊天数据 + * @return 解密后的聊天数据 + * @throws Exception + */ + WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData) throws Exception; + + /** + * 获取解密的聊天数据明文 + * + * @param chatData getChatDatas()获取到的聊天数据 + * @return 解密后的明文 + * @throws Exception + */ + String getChatPlainText(@NonNull WxCpChatDatas.WxCpChatData chatData) throws Exception; + + /** + * 获取媒体文件 + * 针对图片、文件等媒体数据,提供sdk接口拉取数据内容。 + * + * 注意: + * 根据上面返回的文件类型,拼接好存放文件的绝对路径即可。此时绝对路径写入文件流,来达到获取媒体文件的目的。 + * 详情可以看官方文档,亦可阅读此接口源码。 + * + * @param sdkfileid 消息体内容中的sdkfileid信息 + * @param proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081,如果没有传null + * @param passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123,如果没有传null + * @param timeout 超时时间,分片数据需累加到文件存储。单次最大返回512K字节,如果文件比较大,自行设置长一点,比如timeout=10000 + * @param targetFilePath 目标文件绝对路径+实际文件名,比如:/usr/local/file/20220114/474f866b39d10718810d55262af82662.gif + * @throws WxErrorException + */ + void getMediaFile(@NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException; + + /** + * 获取会话内容存档开启成员列表 + * 企业可通过此接口,获取企业开启会话内容存档的成员列表 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/msgaudit/get_permit_user_list?access_token=ACCESS_TOKEN + * + * @param type 拉取对应版本的开启成员列表。1表示办公版;2表示服务版;3表示企业版。非必填,不填写的时候返回全量成员列表。 + * @return + * @throws WxErrorException + */ + List getPermitUserList(Integer type) throws WxErrorException; + + /** + * 获取会话内容存档内部群信息 + * 企业可通过此接口,获取会话内容存档本企业的内部群信息,包括群名称、群主id、公告、群创建时间以及所有群成员的id与加入时间。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/msgaudit/groupchat/get?access_token=ACCESS_TOKEN + * + * @param roomid 待查询的群id + * @return + * @throws WxErrorException + */ + WxCpGroupChat getGroupChat(@NonNull String roomid) throws WxErrorException; + + /** + * 获取会话同意情况 + * 企业可通过下述接口,获取会话中外部成员的同意情况 + *

+ * 单聊请求地址:https://qyapi.weixin.qq.com/cgi-bin/msgaudit/check_single_agree?access_token=ACCESS_TOKEN + *

+ * 请求方式:POST(HTTPS) + * + * @param checkAgreeRequest 待查询的会话信息 + * @return + * @throws WxErrorException + */ + WxCpAgreeInfo checkSingleAgree(@NonNull WxCpCheckAgreeRequest checkAgreeRequest) throws WxErrorException; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 5e525213fe..473fb3dfcb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -399,6 +399,13 @@ public interface WxCpService extends WxService { */ WxCpLivingService getLivingService(); + /** + * 获取会话存档相关接口的服务类对象 + * + * @return + */ + WxCpMsgAuditService getMsgAuditService(); + /** * 获取日历相关接口的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 18a8a9e52c..cccbe8648d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -50,6 +50,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpAgentService agentService = new WxCpAgentServiceImpl(this); private WxCpOaService oaService = new WxCpOaServiceImpl(this); private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); + private WxCpMsgAuditService msgAuditService = new WxCpMsgAuditServiceImpl(this); private WxCpTaskCardService taskCardService = new WxCpTaskCardServiceImpl(this); private WxCpExternalContactService externalContactService = new WxCpExternalContactServiceImpl(this); private WxCpGroupRobotService groupRobotService = new WxCpGroupRobotServiceImpl(this); @@ -484,6 +485,11 @@ public WxCpLivingService getLivingService() { return livingService; } + @Override + public WxCpMsgAuditService getMsgAuditService() { + return msgAuditService; + } + @Override public WxCpOaCalendarService getOaCalendarService() { return this.oaCalendarService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java new file mode 100644 index 0000000000..6e47a4648c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java @@ -0,0 +1,196 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.JsonObject; +import com.google.gson.reflect.TypeToken; +import com.tencent.wework.Finance; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.cp.api.WxCpMsgAuditService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.msgaudit.*; +import me.chanjar.weixin.cp.util.crypto.WxCpCryptUtil; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import org.apache.commons.lang3.StringUtils; + +import java.io.File; +import java.io.FileOutputStream; +import java.util.List; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.MsgAudit.*; + +/** + * 会话内容存档接口实现类. + * + * @author Wang_Wong + * @date 2022-01-17 + */ +@Slf4j +@RequiredArgsConstructor +public class WxCpMsgAuditServiceImpl implements WxCpMsgAuditService { + private final WxCpService cpService; + + @Override + public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, String passwd, @NonNull long timeout) throws Exception { + String configPath = cpService.getWxCpConfigStorage().getMsgAuditLibPath(); + if (StringUtils.isEmpty(configPath)) { + throw new WxErrorException("请配置会话存档sdk文件的路径,不要配错了!!"); + } + + // 替换斜杠 + String replacePath = configPath.replace("\\", "/"); + // 所有的后缀文件 + String suffixFiles = replacePath.substring(replacePath.lastIndexOf("/") + 1); + // 获取的前缀路径 + String prefixPath = replacePath.substring(0, replacePath.lastIndexOf("/") + 1); + + // 包含so文件 + String[] libFiles = suffixFiles.split(","); + if (libFiles.length <= 0) { + throw new WxErrorException("请仔细配置会话存档文件路径!!"); + } + + Finance.loadingLibraries(libFiles, prefixPath); + long sdk = Finance.SingletonSDK(); + + long ret = Finance.Init(sdk, cpService.getWxCpConfigStorage().getCorpId(), cpService.getWxCpConfigStorage().getCorpSecret()); + if (ret != 0) { + Finance.DestroySingletonSDK(sdk); + throw new WxErrorException("init sdk err ret " + ret); + } + + long slice = Finance.NewSlice(); + ret = Finance.GetChatData(sdk, seq, limit, proxy, passwd, timeout, slice); + if (ret != 0) { + Finance.FreeSlice(slice); + Finance.DestroySingletonSDK(sdk); + throw new WxErrorException("getchatdata err ret " + ret); + } + + // 拉取会话存档 + String content = Finance.GetContentFromSlice(slice); + Finance.FreeSlice(slice); + WxCpChatDatas chatDatas = WxCpChatDatas.fromJson(content); + if (chatDatas.getErrCode().intValue() != 0) { + throw new WxErrorException(chatDatas.toJson()); + } + + return chatDatas; + } + + @Override + public WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData) throws Exception { + String plainText = this.decryptChatData(chatData); + return WxCpChatModel.fromJson(plainText); + } + + public String decryptChatData(WxCpChatDatas.WxCpChatData chatData) throws Exception { + // 企业获取的会话内容将用公钥加密,企业可用自行保存的私钥解开会话内容数据,aeskey不能为空 + String priKey = cpService.getWxCpConfigStorage().getAesKey(); + if (StringUtils.isEmpty(priKey)) { + throw new WxErrorException("请配置会话存档私钥【aesKey】"); + } + + String decryptByPriKey = WxCpCryptUtil.decryptByPriKey(chatData.getEncryptRandomKey(), priKey); + // 每次使用DecryptData解密会话存档前需要调用NewSlice获取一个slice,在使用完slice中数据后,还需要调用FreeSlice释放。 + long sdk = Finance.SingletonSDK(); + long msg = Finance.NewSlice(); + + int ret = Finance.DecryptData(sdk, decryptByPriKey, chatData.getEncryptChatMsg(), msg); + if (ret != 0) { + Finance.FreeSlice(msg); + Finance.DestroySingletonSDK(sdk); + throw new WxErrorException("msg err ret " + ret); + } + + // 明文 + String plainText = Finance.GetContentFromSlice(msg); + Finance.FreeSlice(msg); + return plainText; + } + + @Override + public String getChatPlainText(WxCpChatDatas.@NonNull WxCpChatData chatData) throws Exception { + return this.decryptChatData(chatData); + } + + @Override + public void getMediaFile(@NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException { + /** + * 1、媒体文件每次拉取的最大size为512k,因此超过512k的文件需要分片拉取。 + * 2、若该文件未拉取完整,sdk的IsMediaDataFinish接口会返回0,同时通过GetOutIndexBuf接口返回下次拉取需要传入GetMediaData的indexbuf。 + * 3、indexbuf一般格式如右侧所示,”Range:bytes=524288-1048575“:表示这次拉取的是从524288到1048575的分片。单个文件首次拉取填写的indexbuf为空字符串,拉取后续分片时直接填入上次返回的indexbuf即可。 + */ + File targetFile = new File(targetFilePath); + if (!targetFile.getParentFile().exists()) { + targetFile.getParentFile().mkdirs(); + } + + String indexbuf = ""; + int ret, data_len = 0; + while (true) { + long mediaData = Finance.NewMediaData(); + long sdk = Finance.SingletonSDK(); + ret = Finance.GetMediaData(sdk, indexbuf, sdkfileid, proxy, passwd, timeout, mediaData); + if (ret != 0) { + Finance.FreeMediaData(mediaData); + Finance.DestroySingletonSDK(sdk); + throw new WxErrorException("getmediadata err ret " + ret); + } + + data_len += Finance.GetDataLen(mediaData); + log.info("正在分片拉取媒体文件 len:{}, data_len:{}, is_finis:{} \n", Finance.GetIndexLen(mediaData), data_len, Finance.IsMediaDataFinish(mediaData)); + + try { + // 大于512k的文件会分片拉取,此处需要使用追加写,避免后面的分片覆盖之前的数据。 + FileOutputStream outputStream = new FileOutputStream(new File(targetFilePath), true); + outputStream.write(Finance.GetData(mediaData)); + outputStream.close(); + } catch (Exception e) { + e.printStackTrace(); + } + + if (Finance.IsMediaDataFinish(mediaData) == 1) { + // 已经拉取完成最后一个分片 + Finance.FreeMediaData(mediaData); + break; + } else { + // 获取下次拉取需要使用的indexbuf + indexbuf = Finance.GetOutIndexBuf(mediaData); + Finance.FreeMediaData(mediaData); + } + } + } + + @Override + public List getPermitUserList(Integer type) throws WxErrorException { + final String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_PERMIT_USER_LIST); + JsonObject jsonObject = new JsonObject(); + if (type != null) { + jsonObject.addProperty("type", type); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGsonBuilder.create().fromJson(GsonParser.parse(responseContent).getAsJsonArray("ids"), + new TypeToken>() { + }.getType()); + } + + @Override + public WxCpGroupChat getGroupChat(@NonNull String roomid) throws WxErrorException { + final String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_GROUP_CHAT); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("roomid", roomid); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGroupChat.fromJson(responseContent); + } + + @Override + public WxCpAgreeInfo checkSingleAgree(@NonNull WxCpCheckAgreeRequest checkAgreeRequest) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CHECK_SINGLE_AGREE); + String responseContent = this.cpService.post(apiUrl, checkAgreeRequest.toJson()); + return WxCpAgreeInfo.fromJson(responseContent); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java new file mode 100644 index 0000000000..43a36681ed --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java @@ -0,0 +1,65 @@ +package me.chanjar.weixin.cp.bean.msgaudit; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取会话同意情况返回对象. + * + * @author Wang_Wong + */ +@Data +public class WxCpAgreeInfo implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("errcode") + private Integer errcode; + + @SerializedName("errmsg") + private String errmsg; + + @SerializedName("agreeinfo") + private List agreeInfo; + + @Getter + @Setter + public static class AgreeInfo implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("status_change_time") + private Long statusChangeTime; + + @SerializedName("userid") + private String userid; + + @SerializedName("exteranalopenid") + private String exteranalOpenId; + + @SerializedName("agree_status") + private String agreeStatus; + + public static AgreeInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AgreeInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpAgreeInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpAgreeInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java new file mode 100644 index 0000000000..8359bc087d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java @@ -0,0 +1,68 @@ +package me.chanjar.weixin.cp.bean.msgaudit; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 聊天记录数据内容. + * + * @author Wang_Wong + */ +@Data +public class WxCpChatDatas implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("errcode") + private Integer errCode; + + @SerializedName("errmsg") + private String errMsg; + + @SerializedName("chatdata") + private List chatData; + + @Getter + @Setter + public static class WxCpChatData implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("seq") + private Long seq; + + @SerializedName("msgid") + private String msgId; + + @SerializedName("publickey_ver") + private Integer publickeyVer; + + @SerializedName("encrypt_random_key") + private String encryptRandomKey; + + @SerializedName("encrypt_chat_msg") + private String encryptChatMsg; + + public static WxCpChatData fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpChatData.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpChatDatas fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpChatDatas.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java new file mode 100644 index 0000000000..888f7f399c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java @@ -0,0 +1,987 @@ +package me.chanjar.weixin.cp.bean.msgaudit; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 聊天记录数据内容. + * + * @author Wang_Wong + */ +@Data +public class WxCpChatModel implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("msgid") + private String msgId; + + @SerializedName("action") + private String action; + + @SerializedName("send") + private String send; + + @SerializedName("from") + private String from; + + @SerializedName("tolist") + private String[] tolist; + + @SerializedName("roomid") + private String roomId; + + @SerializedName("msgtime") + private Long msgTime; + + @SerializedName("msgtype") + private String msgType; + + /** + * 文本 + */ + @SerializedName("text") + private Text text; + + /** + * 图片 + */ + @SerializedName("image") + private Image image; + + /** + * 撤回消息 + */ + @SerializedName("revoke") + private Revoke revoke; + + /** + * 同意会话聊天内容 + */ + @SerializedName(value = "agree") + private Agree agree; + + @SerializedName(value = "disagree") + private Agree disagree; + + /** + * 语音 + */ + @SerializedName(value = "voice") + private Voice voice; + + /** + * 视频 + */ + @SerializedName(value = "video") + private Video video; + + /** + * 名片 + */ + @SerializedName(value = "card") + private Card card; + + /** + * 位置 + */ + @SerializedName(value = "location") + private Location location; + + /** + * 表情 + */ + @SerializedName(value = "emotion") + private Emotion emotion; + + /** + * 文件 + */ + @SerializedName(value = "file") + private File file; + + /** + * 链接 + */ + @SerializedName(value = "link") + private Link link; + + /** + * 小程序消息 + */ + @SerializedName(value = "weapp") + private Weapp weapp; + + /** + * 会话记录消息 + */ + @SerializedName(value = "chatrecord") + private ChatRecord chatRecord; + + /** + * 待办消息 官网暂无 + */ + + /** + * 投票消息 官网暂无 + */ + + /** + * 填表消息 + */ + @SerializedName(value = "collect") + private Collect collect; + + /** + * 红包消息 + * 互通红包消息 + */ + @SerializedName("redpacket") + private Redpacket redPacket; + + /** + * 会议邀请消息 + */ + @SerializedName("meeting") + private Meeting meeting; + + /** + * 切换企业日志 + */ + @SerializedName("time") + private Long time; + + @SerializedName("user") + private String user; + + /** + * 在线文档消息 + */ + @SerializedName("doc") + private Doc doc; + + @SerializedName("info") + private Info info; + + /** + * 日程消息 + */ + @SerializedName("calendar") + private Calendar calendar; + + /** + * 混合消息 + */ + @SerializedName("mixed") + private Mixed mixed; + + /** + * 音频存档消息 + */ + @SerializedName("voiceid") + private String voiceId; + + @SerializedName("meeting_voice_call") + private MeetingVoiceCall meetingVoiceCall; + + /** + * 音频共享文档消息 + */ + @SerializedName("voipid") + private String voipId; + + @SerializedName("voip_doc_share") + private WxCpFileItem voipDocShare; + + /** + * 视频号消息 + */ + @SerializedName("sphfeed") + private SphFeed sphFeed; + + public static WxCpChatModel fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpChatModel.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + + @Getter + @Setter + public static class Text implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("content") + private String content; + + public static Text fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Text.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Image implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("md5sum") + private String md5Sum; + + @SerializedName("sdkfileid") + private String sdkFileId; + + @SerializedName("filesize") + private Long fileSize; + + public static Image fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Image.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Revoke implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("pre_msgid") + private String preMsgId; + + public static Revoke fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Revoke.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Agree implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("userid") + private String userId; + + @SerializedName(value = "agree_time") + private Long agreeTime; + + @SerializedName(value = "disagree_time") + private Long disagreeTime; + + public static Agree fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Agree.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Voice implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("md5sum") + private String md5Sum; + + @SerializedName("sdkfileid") + private String sdkFileId; + + @SerializedName("voice_size") + private Long voiceSize; + + @SerializedName("play_length") + private Long playLength; + + public static Voice fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Voice.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Video implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("md5sum") + private String md5Sum; + + @SerializedName("sdkfileid") + private String sdkFileId; + + @SerializedName("filesize") + private Long fileSize; + + @SerializedName("play_length") + private Long playLength; + + public static Video fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Video.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Card implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("corpname") + private String corpName; + + @SerializedName("userid") + private String userId; + + public static Card fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Card.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Location implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("longitude") + private Double longitude; + + @SerializedName("latitude") + private Double latitude; + + @SerializedName("address") + private String address; + + @SerializedName("title") + private String title; + + @SerializedName("zoom") + private Integer zoom; + + public static Location fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Location.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Emotion implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("type") + private Integer type; + + @SerializedName("width") + private Integer width; + + @SerializedName("height") + private Integer height; + + @SerializedName("title") + private String title; + + @SerializedName("imagesize") + private Integer imageSize; + + @SerializedName("md5sum") + private String md5Sum; + + @SerializedName("sdkfileid") + private String sdkFileId; + + public static Emotion fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Emotion.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class File implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("md5sum") + private String md5Sum; + + @SerializedName("filename") + private String fileName; + + @SerializedName("fileext") + private String fileExt; + + @SerializedName("sdkfileid") + private String sdkFileId; + + @SerializedName("filesize") + private Integer fileSize; + + public static File fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, File.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Link implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("title") + private String title; + + @SerializedName("description") + private String description; + + @SerializedName("link_url") + private String linkUrl; + + @SerializedName("image_url") + private String imageUrl; + + public static Link fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Link.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 小程序消息 + */ + @Getter + @Setter + public static class Weapp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("title") + private String title; + + @SerializedName("description") + private String description; + + @SerializedName("username") + private String userName; + + @SerializedName("displayname") + private String displayName; + + public static Weapp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Weapp.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 会话记录消息 + */ + @Getter + @Setter + public static class ChatRecord implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName(value = "item") + private List item; + + @SerializedName("title") + private String title; + + public static ChatRecord fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ChatRecord.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class ChatRecordItem implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("type") + private String type; + + @SerializedName("msgtime") + private Long msgTime; + + @SerializedName("content") + private String content; + + @SerializedName("from_chatroom") + private Boolean fromChatRoom; + + public static ChatRecordItem fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ChatRecordItem.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 填表消息 + */ + @Getter + @Setter + public static class Collect implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("room_name") + private String roomName; + + @SerializedName("creator") + private String creator; + + @SerializedName("create_time") + private String createTime; + + @SerializedName("title") + private String title; + + @SerializedName("details") + private List

details; + + public static Collect fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Collect.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + @Getter + @Setter + public static class Details implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("id") + private Long id; + + @SerializedName("ques") + private String ques; + + @SerializedName("type") + private String type; + + public static Details fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Details.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 红包消息 + */ + @Getter + @Setter + public static class Redpacket implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("type") + private Integer type; + + @SerializedName("totalcnt") + private Integer totalCnt; + + @SerializedName("totalamount") + private Integer totalAmount; + + @SerializedName("wish") + private String wish; + + public static Redpacket fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Redpacket.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 会议邀请消息 + */ + @Getter + @Setter + public static class Meeting implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("topic") + private String topic; + + @SerializedName("starttime") + private Long startTime; + + @SerializedName("endtime") + private Long endTime; + + @SerializedName("address") + private String address; + + @SerializedName("remarks") + private String remarks; + + @SerializedName("meetingtype") + private Integer meetingType; + + @SerializedName("meetingid") + private Long meetingId; + + @SerializedName("status") + private Integer status; + + public static Meeting fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Meeting.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 在线文档消息 + */ + @Getter + @Setter + public static class Doc implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("title") + private String title; + + @SerializedName("doc_creator") + private String docCreator; + + @SerializedName("link_url") + private String linkUrl; + + public static Doc fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Doc.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * MarkDown格式消息 + */ + @Getter + @Setter + public static class Info implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("content") + private String content; + + @SerializedName("item") + private List newsItem; + + public static Info fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Info.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 图文消息 + */ + @Getter + @Setter + public static class NewsItem implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("title") + private String title; + + @SerializedName("description") + private String description; + + @SerializedName("url") + private String url; + + @SerializedName("picurl") + private String picUrl; + + public static NewsItem fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, NewsItem.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 日程消息 + */ + @Getter + @Setter + public static class Calendar implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("title") + private String title; + + @SerializedName("creatorname") + private String creatorName; + + @SerializedName("attendeename") + private String[] attendeeName; + + @SerializedName("starttime") + private Long startTime; + + @SerializedName("endtime") + private Long endTime; + + @SerializedName("place") + private String place; + + @SerializedName("remarks") + private String remarks; + + public static Calendar fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Calendar.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + + /** + * 混合消息 + */ + @Getter + @Setter + public static class Mixed implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("item") + private List item; + + @Getter + @Setter + public static class Item implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("type") + private String type; + + @SerializedName("content") + private String content; + + } + + } + + + /** + * 音频存档消息 + */ + @Getter + @Setter + public static class MeetingVoiceCall implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("endtime") + private Long endTime; + + @SerializedName("sdkfileid") + private String sdkFileId; + + @SerializedName("demofiledata") + private List demoFileData; + + @SerializedName("sharescreendata") + private List shareScreenData; + + public static MeetingVoiceCall fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, MeetingVoiceCall.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + @Getter + @Setter + public static class DemoFileData implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("filename") + private String fileName; + + @SerializedName("demooperator") + private String demoOperator; + + @SerializedName("starttime") + private Long startTime; + + @SerializedName("endtime") + private Long endTime; + + public static DemoFileData fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, DemoFileData.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ShareScreenData implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("share") + private String share; + + @SerializedName("starttime") + private Long startTime; + + @SerializedName("endtime") + private Long endTime; + + public static ShareScreenData fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ShareScreenData.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + } + + + /** + * 视频号消息 + */ + @Getter + @Setter + public static class SphFeed implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("feed_type") + private Integer feedType; + + @SerializedName("sph_name") + private String sphName; + + @SerializedName("feed_desc") + private String feedDesc; + + public static SphFeed fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, SphFeed.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java new file mode 100644 index 0000000000..83d1b18127 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java @@ -0,0 +1,57 @@ +package me.chanjar.weixin.cp.bean.msgaudit; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取会话同意情况请求参数. + * + * @author Wang_Wong + * @date 2022-01-21 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpCheckAgreeRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("info") + private List info; + + public static WxCpCheckAgreeRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpCheckAgreeRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + @Getter + @Setter + public static class Info implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userid; + + @SerializedName("exteranalopenid") + private String exteranalOpenId; + + public static Info fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Info.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java new file mode 100644 index 0000000000..7b7be15c5f --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java @@ -0,0 +1,39 @@ +package me.chanjar.weixin.cp.bean.msgaudit; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 会话存档 文档信息对象 + * + * @author Wang_Wong + */ +@Data +public class WxCpFileItem implements Serializable { + + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("filename") + private String fileName; + + @SerializedName("md5sum") + private String md5Sum; + + @SerializedName("sdkfileid") + private String sdkFileId; + + @SerializedName("filesize") + private Long fileSize; + + public static WxCpFileItem fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileItem.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java new file mode 100644 index 0000000000..3a2656bfb0 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java @@ -0,0 +1,61 @@ +package me.chanjar.weixin.cp.bean.msgaudit; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 内部群信息 + * + * @author Wang_Wong + */ +@Data +public class WxCpGroupChat implements Serializable { + + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("roomname") + private String roomName; + + @SerializedName("creator") + private String creator; + + @SerializedName("room_create_time") + private Long roomCreateTime; + + @SerializedName("notice") + private String notice; + + private List members; + + @Getter + @Setter + public class Member implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("memberid") + private String memberId; + + @SerializedName("jointime") + private Long joinTime; + + public Member fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Member.class); + } + + } + + public static WxCpGroupChat fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGroupChat.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java index 02a7af880e..1d7e9685d0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java @@ -174,6 +174,13 @@ public interface WxCpConfigStorage { */ String getAesKey(); + /** + * 获取企微会话存档系统库 绝对路径 + * + * @return + */ + String getMsgAuditLibPath(); + /** * Gets expires time. * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java index 0fbf61724d..b7304628a7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java @@ -43,6 +43,7 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable { private volatile String token; private volatile String aesKey; private volatile long expiresTime; + private volatile String msgAuditLibPath; private volatile String oauth2redirectUri; private volatile String httpProxyHost; private volatile int httpProxyPort; @@ -256,6 +257,11 @@ public String getAesKey() { return this.aesKey; } + @Override + public String getMsgAuditLibPath() { + return this.msgAuditLibPath; + } + /** * Sets aes key. * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java index 027ab825c7..89b939e613 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java @@ -40,6 +40,7 @@ public class WxCpRedisConfigImpl implements WxCpConfigStorage { private volatile String token; private volatile String aesKey; private volatile Integer agentId; + private volatile String msgAuditLibPath; private volatile String oauth2redirectUri; private volatile String httpProxyHost; private volatile int httpProxyPort; @@ -320,6 +321,11 @@ public String getAesKey() { return this.aesKey; } + @Override + public String getMsgAuditLibPath() { + return this.msgAuditLibPath; + } + /** * Sets aes key. * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index a55b4726f1..374c7947c5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -129,6 +129,12 @@ interface Living { String DELETE_REPLAY_DATA = "/cgi-bin/living/delete_replay_data"; } + interface MsgAudit { + String GET_PERMIT_USER_LIST = "/cgi-bin/msgaudit/get_permit_user_list"; + String GET_GROUP_CHAT = "/cgi-bin/msgaudit/groupchat/get"; + String CHECK_SINGLE_AGREE = "/cgi-bin/msgaudit/check_single_agree"; + } + interface Tag { String TAG_CREATE = "/cgi-bin/tag/create"; String TAG_UPDATE = "/cgi-bin/tag/update"; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java index 2914945b89..d36a1ce342 100755 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java @@ -4,6 +4,12 @@ import com.google.common.io.BaseEncoding; import me.chanjar.weixin.common.util.crypto.WxCryptUtil; import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import org.apache.commons.codec.binary.Base64; + +import javax.crypto.Cipher; +import java.security.KeyFactory; +import java.security.PrivateKey; +import java.security.spec.PKCS8EncodedKeySpec; public class WxCpCryptUtil extends WxCryptUtil { public WxCpCryptUtil(WxCpConfigStorage wxCpConfigStorage) { @@ -21,4 +27,31 @@ public WxCpCryptUtil(WxCpConfigStorage wxCpConfigStorage) { this.aesKey = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey)); } + /** + * 会话存档接口解密私钥 + * 企业获取的会话内容将用公钥加密,企业用自行保存的私钥解开会话内容数据 + * + * @param encryptRandomKey + * @param msgAuditPriKey + * @return + * @throws Exception + */ + public static String decryptByPriKey(String encryptRandomKey, String msgAuditPriKey) throws Exception { + String privateKey = msgAuditPriKey.replaceAll("\\n", "") + .replace("-----BEGIN PRIVATE KEY-----", "") + .replace("-----END PRIVATE KEY-----", "") + .replaceAll(" ", ""); + + byte[] keyByte = Base64.decodeBase64(privateKey); + PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyByte); + KeyFactory keyFactory = KeyFactory.getInstance("RSA"); + PrivateKey priKey = keyFactory.generatePrivate(pkcs8KeySpec); + + Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm()); + cipher.init(Cipher.DECRYPT_MODE, priKey); + byte[] utf8 = cipher.doFinal(Base64.decodeBase64(encryptRandomKey)); + + return new String(utf8, "UTF-8"); + } + } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java new file mode 100644 index 0000000000..457996a0e4 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -0,0 +1,433 @@ +package me.chanjar.weixin.cp.api; +import com.google.common.collect.Lists; + +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.msgaudit.*; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import org.testng.annotations.Test; + +import java.io.InputStream; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; + +/** + * 企业微信会话内容存档测试类. + * 官方文档:https://developer.work.weixin.qq.com/document/path/91360 + * + * @author Wang_Wong + * @date 2022-01-17 + */ +@Slf4j +public class WxCpMsgAuditTest { + + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + // com.binarywang.spring.starter.wxjava.cp.config.WxCpServiceAutoConfiguration + @Test + public void test() throws Exception { + + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + + /** + * 配置: + * + * wwa3bexxXXXXXX + * 自定义agentId + * xIpum7Yt4NMXXXXXXX + * 2bSNqXXXXXXXX + * MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDZuPVMyVyMvJkdSCZA893B2pggd1r95T8k2QZgz+VejtaDJCbD60m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cl+JnmASyErqvye89LJja4GcN5BRzdvVDflDeXBHThlU4zza1eVCGyQ+7ko4rsnIVJIvTaHs0LQguO2aStBk3I4ECgYAyBsO3VK3L9fNLWItjThtTCWsIq8rpq6reiTf5yqBjgi2sYlqlrDtFMFDlU190RWZl/Lh/G1TFbpjgypf4jEp89Ft9UugRMpc7sw9g9dk0xmiRUwvw1eXP0NZOqysHIPgvt+qJX7qPgHKBoaD3Bpy3/Lmg82Jr4xa8wECCgnZmwQKBgH7hirPs1/HqBrbxS726IZUf9QTmVkyOYIwzuwFYKb/+4caSah+iaXexVux0xS5tchj/6c1dQSKJmlegV8smIb6EEcko7llA1y1P5QFtXtaaRd07tTsv3BKEg496YLRjbxPzgJn6Fsoz3TTdGwESL8Q3I2h0WmVVhmr/rjr+RkWQ + * + * 注意:最好先配置lib开头的系统库,再配置sdk类库,配置绝对路径,最好配置为linux路径 + * windows: + * D:/WorkSpace/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + * linux: + * /www/osfile/work_msg_storage/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + * + */ + + /** + * 建议放到redis,本次请求获取消息记录开始的seq值。首次访问填写0,非首次使用上次企业微信返回的最大seq。允许从任意seq重入拉取。 + */ + long seq = 0L; + + /** + * 图片,语音,视频,表情,文件,音频存档消息,音频共享文档消息调用 获取媒体消息 + */ + List mediaType = Arrays.asList(new String[]{"image", "voice", "video", "emotion", "file", "meeting_voice_call", "voip_doc_share"}); + + // 模拟多次拉取数据,根据seq拉取 + for (int i = 0; i < 3; i++) { + // 本次请求获取消息记录开始的seq值。首次访问填写0,非首次使用上次企业微信返回的最大seq。允许从任意seq重入拉取。 + WxCpChatDatas chatDatas = cpService.getMsgAuditService().getChatDatas(seq, 10L, null, null, 1000L); + if (chatDatas != null && chatDatas.getChatData().size() > 0) { + + List chatdata = chatDatas.getChatData(); + Iterator iterator = chatdata.iterator(); + while (iterator.hasNext()) { + WxCpChatDatas.WxCpChatData chatData = iterator.next(); + seq = chatData.getSeq(); + + // 数据 +// String msgId = chatData.getMsgId(); +// String encryptChatMsg = chatData.getEncryptChatMsg(); +// String encryptRandomKey = chatData.getEncryptRandomKey(); +// Integer publickeyVer = chatData.getPublickeyVer(); + + // 获取明文数据 + final String chatPlainText = cpService.getMsgAuditService().getChatPlainText(chatData); + final WxCpChatModel wxCpChatModel = WxCpChatModel.fromJson(chatPlainText); + log.info("明文数据为:{}", wxCpChatModel.toJson()); + + // 获取消息数据 + final WxCpChatModel decryptData = cpService.getMsgAuditService().getDecryptData(chatData); + log.info("获取消息数据为:{}", decryptData.toJson()); + + /** + * 注意: + * 根据上面返回的文件类型来获取媒体文件, + * 不同的文件类型,拼接好存放文件的绝对路径,写入文件流,获取媒体文件。(拼接绝对文件路径的原因,以便上传到腾讯云或阿里云对象存储) + * + * 目标文件绝对路径+实际文件名,比如:/usr/local/file/20220114/474f866b39d10718810d55262af82662.gif + */ + String path = "/usr/local/file/"; + String msgType = decryptData.getMsgType(); + if (mediaType.contains(decryptData.getMsgType())) { + // 文件后缀 + String suffix = ""; + // 文件名md5 + String md5Sum = ""; + // sdkFileId + String sdkFileId = ""; + switch (msgType) { + case "image": + suffix = ".jpg"; + md5Sum = decryptData.getImage().getMd5Sum(); + sdkFileId = decryptData.getImage().getSdkFileId(); + break; + case "voice": + suffix = ".amr"; + md5Sum = decryptData.getVoice().getMd5Sum(); + sdkFileId = decryptData.getVoice().getSdkFileId(); + break; + case "video": + suffix = ".mp4"; + md5Sum = decryptData.getVideo().getMd5Sum(); + sdkFileId = decryptData.getVideo().getSdkFileId(); + break; + case "emotion": + md5Sum = decryptData.getEmotion().getMd5Sum(); + sdkFileId = decryptData.getEmotion().getSdkFileId(); + int type = decryptData.getEmotion().getType(); + switch (type) { + case 1: + suffix = ".gif"; + break; + case 2: + suffix = ".png"; + break; + default: + return; + } + break; + case "file": + md5Sum = decryptData.getFile().getMd5Sum(); + suffix = "." + decryptData.getFile().getFileExt(); + sdkFileId = decryptData.getFile().getSdkFileId(); + break; + // 音频存档消息 + case "meeting_voice_call": + + md5Sum = decryptData.getVoiceId(); + sdkFileId = decryptData.getMeetingVoiceCall().getSdkFileId(); + for (WxCpChatModel.MeetingVoiceCall.DemoFileData demofiledata : decryptData.getMeetingVoiceCall().getDemoFileData()) { + String demoFileDataFileName = demofiledata.getFileName(); + suffix = demoFileDataFileName.substring(demoFileDataFileName.lastIndexOf(".") + 1); + } + + break; + // 音频共享文档消息 + case "voip_doc_share": + + md5Sum = decryptData.getVoipId(); + WxCpFileItem docShare = decryptData.getVoipDocShare(); + String fileName = docShare.getFileName(); + suffix = fileName.substring(fileName.lastIndexOf(".") + 1); + + break; + default: + return; + } + + // 拉取媒体文件 + String targetPath = path + md5Sum + suffix; + cpService.getMsgAuditService().getMediaFile(sdkFileId, null, null, 1000L, targetPath); + + } + + } + + } + + } + + + /** + * 文本 + */ +// String text = "{\"msgid\":\"CAQQluDa4QUY0On2rYSAgAMgzPrShAE=\",\"action\":\"send\",\"from\":\"XuJinSheng\",\"tolist\":[\"icefog\"],\"roomid\":\"\",\"msgtime\":1547087894783,\"msgtype\":\"text\",\"text\":{\"content\":\"test\"}}"; + String text = "{\"msgid\":\"CAQQluDa4QUY0On2rYSAgAMgzPrShAE=\",\"action\":\"send\",\"from\":\"XuJinSheng\",\"tolist\":[\"icefog\"],\"roomid\":\"\",\"msgtime\":1547087894783,\"msgtype\":\"text\",\"text\":{\"content\":\"这是一条引用/回复消息:\\\"\\n------\\n@nick777\"}}"; + WxCpChatModel modelText = WxCpChatModel.fromJson(text); + log.info("数据为:" + modelText.toJson()); + + + /** + * 图片 + */ + String image = "{\"msgid\":\"CAQQvPnc4QUY0On2rYSAgAMgooLa0Q8=\",\"action\":\"send\",\"from\":\"XuJinSheng\",\"tolist\":[\"icefog\"],\"roomid\":\"\",\"msgtime\":0,\"msgtype\":\"image\",\"image\":{\"md5sum\":\"50de8e5ae8ffe4f1df7a93841f71993a\",\"filesize\":70961,\"sdkfileid\":\"CtYBMzA2OTAyMDEwMjA0NjIzMDYwMDIwMTAwMDIwNGI3ZmU0MDZlMDIwMzBmNTliMTAyMDQ1YzliNTQ3NzAyMDQ1YzM3M2NiYzA0MjQ2NjM0MzgzNTM0NjEzNTY1MmQzNDYxMzQzODJkMzQzMTYxNjEyZDM5NjEzOTM2MmQ2MTM2NjQ2NDY0NjUzMDY2NjE2NjM1MzcwMjAxMDAwMjAzMDExNTQwMDQxMDUwZGU4ZTVhZThmZmU0ZjFkZjdhOTM4NDFmNzE5OTNhMDIwMTAyMDIwMTAwMDQwMBI4TkRkZk1UWTRPRGcxTVRBek1ETXlORFF6TWw4eE9UUTVOamN6TkRZMlh6RTFORGN4TWpNNU1ERT0aIGEwNGQwYWUyM2JlYzQ3NzQ5MjZhNWZjMjk0ZTEyNTkz\"}}"; + WxCpChatModel modelImage = WxCpChatModel.fromJson(image); + log.info("数据为:" + modelImage.toJson()); + + + /** + * 撤回消息 + */ + String revoke = "{\"msgid\":\"15775510700152506326_1603875615\",\"action\":\"recall\",\"from\":\"kenshin\",\"tolist\":[\"wmUu0zBgAALV7ZymkcMyxvbTe8YdWxxA\"],\"roomid\":\"\",\"msgtime\":1603875615723,\"msgtype\":\"revoke\",\"revoke\":{\"pre_msgid\":\"14822339130656386894_1603875600\"}}"; + WxCpChatModel modelRevoke = WxCpChatModel.fromJson(revoke); + log.info("数据为:" + modelRevoke.toJson()); + + + /** + * 同意会话聊天内容 + */ + String agree = "{\"msgid\":\"8891446340739254950_1603875826\",\"action\":\"send\",\"from\":\"wmGAgeDQAAvQeaTqWwkMTxGMkvI7OOuQ\",\"tolist\":[\"kenshin\"],\"roomid\":\"\",\"msgtime\":1603875826656,\"msgtype\":\"agree\",\"agree\":{\"userid\":\"wmGAgeDQAAvQeaTqWwkMTxGMkvI7OOuQ\",\"agree_time\":1603875826656}}"; + String disagree = "{\"msgid\":\"17972321270926900092_1603875944\",\"action\":\"send\",\"from\":\"wmErxtDgAA9AW32YyyuYRimKr7D1KWlw\",\"tolist\":[\"kenshin\"],\"roomid\":\"\",\"msgtime\":1603875944122,\"msgtype\":\"disagree\",\"disagree\":{\"userid\":\"wmErxtDgAA9AW32YyyuYRimKr7D1KWlw\",\"disagree_time\":1603875944122}}"; + WxCpChatModel modelAgree = WxCpChatModel.fromJson(agree); + WxCpChatModel modelDisagree = WxCpChatModel.fromJson(disagree); + log.info("数据为:" + modelAgree.toJson()); + log.info("数据为:" + modelDisagree.toJson()); + + + /** + * 语音 + */ + String voice = "{\"msgid\":\"10958372969718811103_1603875609\",\"action\":\"send\",\"from\":\"wmGAgeDQAAdBjb8CK4ieMPRm7Cqm-9VA\",\"tolist\":[\"kenshin\"],\"roomid\":\"\",\"msgtime\":1603875609704,\"msgtype\":\"voice\",\"voice\":{\"md5sum\":\"9db09c7fa627c9e53f17736c786a74d5\",\"voice_size\":6810,\"play_length\":10,\"sdkfileid\":\"kcyZjZqOXhETGYxajB2Zkp5Rk8zYzh4RVF3ZzZGdXlXNWRjMUoxVGZxbzFTTDJnQ2YxL0NraVcxUUJNK3VUamhEVGxtNklCbjZmMEEwSGRwN0h2cU1GQTU1MDRSMWdTSmN3b25ZMkFOeG5hMS90Y3hTQ0VXRlVxYkR0Ymt5c3JmV2VVcGt6UlNXR1ZuTFRWVGtudXVldDRjQ3hscDBrMmNhMFFXVnAwT3Y5NGVqVGpOcWNQV2wrbUJwV01TRm9xWmNDRVVrcFY5Nk9OUS9GbXIvSmZvOVVZZjYxUXBkWnMvUENkVFQxTHc2N0drb2pJT0FLZnhVekRKZ1FSNDU3ZnZtdmYvTzZDOG9DRXl2SUNIOHc9PRI0TkRkZk56ZzRNVE13TVRjMk5qQTRNak0yTmw4ek5qRTVOalExTjE4eE5qQXpPRGMxTmpBNRogNzM3MDY2NmM2YTc5Njg3NDdhNzU3NDY0NzY3NTY4NjY=\"}}"; + WxCpChatModel modelVoice = WxCpChatModel.fromJson(voice); + log.info("数据为:" + modelVoice.toJson()); + + + /** + * 视频 + */ + String video = "{\"msgid\":\"17955920891003447432_1603875627\",\"action\":\"send\",\"from\":\"kenshin\",\"tolist\":[\"wmGAgeDQAAHuRJbt4ZQI_1cqoQcf41WQ\"],\"roomid\":\"\",\"msgtime\":1603875626823,\"msgtype\":\"video\",\"video\":{\"md5sum\":\"d06fc80c01d6fbffcca3b229ba41eac6\",\"filesize\":15169724,\"play_length\":108,\"sdkfileid\":\"MzAzMjYxMzAzNTYzMzgzMjMyMzQwMjAxMDAwMjA0MDBlNzc4YzAwNDEwZDA2ZmM4MGMwMWQ2ZmJmZmNjYTNiMjI5YmE0MWVhYzYwMjAxMDQwMjAxMDAwNDAwEjhORGRmTVRZNE9EZzFNREEyTlRjM056QXpORjgxTWpZeE9USTBOek5mTVRZd016ZzNOVFl5Tnc9PRogNTIzNGQ1NTQ5N2RhNDM1ZDhlZTU5ODk4NDQ4NzRhNDk=\"}}"; + WxCpChatModel modelVideo = WxCpChatModel.fromJson(video); + log.info("数据为:" + modelVideo.toJson()); + + + /** + * 名片 + */ + String card = "{\"msgid\":\"13714216591700685558_1603875680\",\"action\":\"send\",\"from\":\"kenshin\",\"tolist\":[\"wmGAgeDQAAy2Dtr0F8aK4dTuatfm-5Rg\"],\"roomid\":\"\",\"msgtime\":1603875680377,\"msgtype\":\"card\",\"card\":{\"corpname\":\"微信联系人\",\"userid\":\"wmGAgeDQAAGjFmfnP7A3j2JxQDdLNhSw\"}}"; + WxCpChatModel modelCard = WxCpChatModel.fromJson(card); + log.info("数据为:" + modelCard.toJson()); + + + /** + * 位置 + */ + String location = "{\"msgid\":\"2641513858500683770_1603876152\",\"action\":\"send\",\"from\":\"icefog\",\"tolist\":[\"wmN6etBgAA0sbJ3invMvRxPQDFoq9uWA\"],\"roomid\":\"\",\"msgtime\":1603876152141,\"msgtype\":\"location\",\"location\":{\"longitude\":116.586285899,\"latitude\":39.911125799,\"address\":\"北京市xxx区xxx路xxx大厦x座\",\"title\":\"xxx管理中心\",\"zoom\":15}}"; + WxCpChatModel modelLocation = WxCpChatModel.fromJson(location); + log.info("数据为:" + modelLocation.toJson()); + + + /** + * 表情 + */ + String emotion = "{\"msgid\":\"6623217619416669654_1603875612\",\"action\":\"send\",\"from\":\"icef\",\"tolist\":[\"wmErxtDgAAhteCglUZH2kUt3rq431qmg\"],\"roomid\":\"\",\"msgtime\":1603875611148,\"msgtype\":\"emotion\",\"emotion\":{\"type\":1,\"width\":290,\"height\":290,\"imagesize\":962604,\"md5sum\":\"94c2b0bba52cc456cb8221b248096612\",\"sdkfileid\":\"4eE1ESTVNalE1TnprMFh6RTJNRE00TnpVMk1UST0aIDc0NzI2NjY1NzE3NTc0Nzg2ZDZlNzg2YTY5NjY2MTYx\"}}"; + WxCpChatModel modelEmotion = WxCpChatModel.fromJson(emotion); + log.info("数据为:" + modelEmotion.toJson()); + + + /** + * 文件 + */ + String file = "{\"msgid\":\"18039699423706571225_1603875608\",\"action\":\"send\",\"from\":\"kens\",\"tolist\":[\"wmErxtDgAArDlFIhf76O6w4GxU81al8w\"],\"roomid\":\"\",\"msgtime\":1603875608214,\"msgtype\":\"file\",\"file\":{\"md5sum\":\"18e93fc2ea884df23b3d2d3b8667b9f0\",\"filename\":\"资料.docx\",\"fileext\":\"docx\",\"filesize\":18181,\"sdkfileid\":\"E4ODRkZjIzYjNkMmQzYjg2NjdiOWYwMDIwMTA1MDIwMTAwMDQwMBI4TkRkZk1UWTRPRGcxTURrek9UZzBPVEF6TTE4eE1EUXpOVGcxTlRVNVh6RTJNRE00TnpVMk1EZz0aIDMwMzkzMzY0NjEzNjM3NjY2NDY1NjMzNjYxMzIzNzYx\"}}"; + WxCpChatModel modelFile = WxCpChatModel.fromJson(file); + log.info("数据为:" + modelFile.toJson()); + + + /** + * 链接 + */ + String link = "{\"msgid\":\"11788441727514772650_1603875624\",\"action\":\"send\",\"from\":\"kenshin\",\"tolist\":[\"0000726\"],\"roomid\":\"\",\"msgtime\":1603875624476,\"msgtype\":\"link\",\"link\":{\"title\":\"邀请你加入群聊\",\"description\":\"技术支持群,进入可查看详情\",\"link_url\":\"https://work.weixin.qq.com/wework_admin/external_room/join/exceed?vcode=xxx\",\"image_url\":\"https://wework.qpic.cn/wwpic/xxx/0\"}}"; + WxCpChatModel modelLink = WxCpChatModel.fromJson(link); + log.info("数据为:" + modelLink.toJson()); + + + /** + * 小程序消息 + */ + String weapp = "{\"msgid\":\"11930598857592605935_1603875608\",\"action\":\"send\",\"from\":\"kens\",\"tolist\":[\"wmGAgeDQAAsgQetTQGqRbMxrkodpM3fA\"],\"roomid\":\"\",\"msgtime\":1603875608691,\"msgtype\":\"weapp\",\"weapp\":{\"title\":\"开始聊天前请仔细阅读服务须知事项\",\"description\":\"客户需同意存档聊天记录\",\"username\":\"xxx@app\",\"displayname\":\"服务须知\"}}"; + WxCpChatModel modelWeapp = WxCpChatModel.fromJson(weapp); + log.info("数据为:" + modelWeapp.toJson()); + + + /** + * 会话记录消息 + */ + String chatrecord = "{\"msgid\":\"11354299838102555191_1603875658\",\"action\":\"send\",\"from\":\"ken\",\"tolist\":[\"icef\"],\"roomid\":\"\",\"msgtime\":1603875657905,\"msgtype\":\"chatrecord\",\"chatrecord\":{\"title\":\"群聊\",\"item\":[{\"type\":\"ChatRecordText\",\"msgtime\":1603875610,\"content\":\"{\\\"content\\\":\\\"test\\\"}\",\"from_chatroom\":false},{\"type\":\"ChatRecordText\",\"msgtime\":1603875620,\"content\":\"{\\\"content\\\":\\\"test2\\\"}\",\"from_chatroom\":false}]}}"; + WxCpChatModel modelChatRecord = WxCpChatModel.fromJson(chatrecord); + log.info("数据为:" + modelChatRecord.toJson()); + + + /** + * 填表消息 + */ + String collect = "{\"msgid\":\"2500536226619379797_1576034482\",\"action\":\"send\",\"from\":\"nick\",\"tolist\":[\"XuJinSheng\",\"15108264797\"],\"roomid\":\"wrjc7bDwYAOAhf9quEwRRxyyoMm0QAAA\",\"msgtime\":1576034482344,\"msgtype\":\"collect\",\"collect\":{\"room_name\":\"这是一个群\",\"creator\":\"nick\",\"create_time\":\"2019-12-11 11:21:22\",\"title\":\"这是填表title\",\"details\":[{\"id\":1,\"ques\":\"表项1,文本\",\"type\":\"Text\"},{\"id\":2,\"ques\":\"表项2,数字\",\"type\":\"Number\"},{\"id\":3,\"ques\":\"表项3,日期\",\"type\":\"Date\"},{\"id\":4,\"ques\":\"表项4,时间\",\"type\":\"Time\"}]}}"; + WxCpChatModel modelCollect = WxCpChatModel.fromJson(collect); + log.info("数据为:" + modelCollect.toJson()); + + + /** + * 红包消息 + */ + String redpacket = "{\"msgid\":\"333590477316965370_1603877439\",\"action\":\"send\",\"from\":\"kens\",\"tolist\":[\"1000000444696\"],\"roomid\":\"\",\"msgtime\":1603877439038,\"msgtype\":\"redpacket\",\"redpacket\":{\"type\":1,\"wish\":\"恭喜发财,大吉大利\",\"totalcnt\":1,\"totalamount\":3000}}"; + WxCpChatModel modelRedpacket = WxCpChatModel.fromJson(redpacket); + log.info("数据为:" + modelRedpacket.toJson()); + + + /** + * 会议邀请信息 + */ + String meeting = "{\"msgid\":\"5935786683775673543_1603877328\",\"action\":\"send\",\"from\":\"ken\",\"tolist\":[\"icef\",\"test\"],\"roomid\":\"wr2vOpDgAAN4zVWKbS\",\"msgtime\":1603877328914,\"msgtype\":\"meeting\",\"meeting\":{\"topic\":\"夕会\",\"starttime\":1603877400,\"endtime\":1603881000,\"address\":\"\",\"remarks\":\"\",\"meetingtype\":102,\"meetingid\":1210342560,\"status\":1}}"; + WxCpChatModel modelMeeting = WxCpChatModel.fromJson(meeting); + log.info("数据为:" + modelMeeting.toJson()); + + + /** + * 切换企业日志 + */ + String switchlog = "{\"msgid\":\"125289002219525886280\",\"action\":\"switch\",\"time\":1554119421840,\"user\":\"XuJinSheng\"}"; + WxCpChatModel modelSwitchLog = WxCpChatModel.fromJson(switchlog); + log.info("数据为:" + modelSwitchLog.toJson()); + + + /** + * 在线文档消息 + */ + String docMsg = "{\"msgid\":\"9732089160923053207_1603877765\",\"action\":\"send\",\"from\":\"ken\",\"tolist\":[\"icef\",\"test\"],\"roomid\":\"wrJawBCQAAStr3jxVxEH\",\"msgtime\":1603877765291,\"msgtype\":\"docmsg\",\"doc\":{\"title\":\"测试&演示客户\",\"doc_creator\":\"test\",\"link_url\":\"https://doc.weixin.qq.com/txdoc/excel?docid=xxx\"}}"; + WxCpChatModel modelDocMsg = WxCpChatModel.fromJson(docMsg); + log.info("数据为:" + modelDocMsg.toJson()); + + + /** + * MarkDown格式消息 + */ + String markDown = "{\"msgid\":\"7546287934688259248_1603875715\",\"action\":\"send\",\"from\":\"ken\",\"tolist\":[\"icef\",\"test\"],\"roomid\":\"wr0SfLCgAAgCaCPeM33UNe\",\"msgtime\":1603875715782,\"msgtype\":\"markdown\",\"info\":{\"content\":\"请前往系统查看,谢谢。\"}}"; + WxCpChatModel modelMarkDown = WxCpChatModel.fromJson(markDown); + log.info("数据为:" + modelMarkDown.toJson()); + + + /** + * 图文消息 + */ + String news = "{\"msgid\":\"118732825779547782215\",\"action\":\"send\",\"from\":\"kens\",\"tolist\":[\"icef\",\"test\"],\"roomid\":\"wrErxtDgAA0jgXE5\",\"msgtime\":1603876045165,\"msgtype\":\"news\",\"info\":{\"item\":[{\"title\":\"service \",\"description\":\"test\",\"url\":\"http://xxx\",\"picurl\":\"https://www.qq.com/xxx.jpg\"}]}}"; + WxCpChatModel modelNews = WxCpChatModel.fromJson(news); + log.info("数据为:" + modelNews.toJson()); + + + /** + * 日程消息 + */ + String calendar = "{\"msgid\":\"2345881211604379705_1603877680\",\"action\":\"send\",\"from\":\"ken\",\"tolist\":[\"icef\",\"test\"],\"roomid\":\"wr2LO0CAAAFrTZCGWWAxBA\",\"msgtime\":1603877680795,\"msgtype\":\"calendar\",\"calendar\":{\"title\":\"xxx业绩复盘会\",\"creatorname\":\"test\",\"attendeename\":[\"aaa\",\"bbb\"],\"starttime\":1603882800,\"endtime\":1603886400,\"place\":\"\",\"remarks\":\"\"}}"; + WxCpChatModel modelCalendar = WxCpChatModel.fromJson(calendar); + log.info("数据为:" + modelCalendar.toJson()); + + + /** + * 混合消息 + */ + String mixed = "{\"msgid\":\"DAQQluDa4QUY0On4kYSABAMgzPrShAE=\",\"action\":\"send\",\"from\":\"HeMiao\",\"tolist\":[\"HeChangTian\",\"LiuZeYu\"],\"roomid\":\"wr_tZ2BwAAUwHpYMwy9cIWqnlU3Hzqfg\",\"msgtime\":1577414359072,\"msgtype\":\"mixed\",\"mixed\":{\"item\":[{\"type\":\"text\",\"content\":\"{\\\"content\\\":\\\"你好[微笑]\\\\n\\\"}\"},{\"type\":\"image\",\"content\":\"{\\\"md5sum\\\":\\\"368b6c18c82e6441bfd89b343e9d2429\\\",\\\"filesize\\\":13177,\\\"sdkfileid\\\":\\\"CtYBMzA2OTAyMDEwMjA0NjIzMDYwMDIwMTAwMDWwNDVmYWY4Y2Q3MDIwMzBmNTliMTAyMDQwYzljNTQ3NzAyMDQ1ZTA1NmFlMjA0MjQ2NjM0NjIzNjY2MzYzNTMyMmQzNzYxMzQ2NDJkMzQ2MjYxNjQyZDM4MzMzMzM4MmQ3MTYyMzczMTM4NjM2NDYxMzczMjY2MzkwMjAxMDAwMjAzMDIwMDEwMDQxMDM2OGI2YzE4YzgyZTY0NDFiZmQ4OWIyNDNlOWQyNDI4MDIwMTAyMDIwMTAwMDQwMBI4TkRkZk2UWTRPRGcxTVRneE5URTFNRGc1TVY4eE1UTTFOak0yTURVeFh6RTFOemMwTVRNek5EYz0aIDQzMTY5NDFlM2MxZDRmZjhhMjEwY2M0NDQzZGUXOTEy\\\"}\"}]}}"; + WxCpChatModel modelMixed = WxCpChatModel.fromJson(mixed); + log.info("获取混合消息,文件对象为:{}", modelMixed.getMixed().getItem().get(0).getContent()); + + // 返回文件对象 + WxCpFileItem wxCpFileItem = WxCpFileItem.fromJson(modelMixed.getMixed().getItem().get(1).getContent()); + log.info("获取混合消息,文件对象为:{}", wxCpFileItem.toJson()); + log.info("数据为:" + modelMixed.toJson()); + + + /** + * 音频存档消息 + */ + String meetingVoiceCall = "{\"msgid\":\"17952229780246929345_1594197637\",\"action\":\"send\",\"from\":\"wo137MCgAAYW6pIiKKrDe5SlzEhSgwbA\",\"tolist\":[\"wo137MCgAAYW6pIiKKrDe5SlzEhSgwbA\"],\"msgtime\":1594197581203,\"msgtype\":\"meeting_voice_call\",\"voiceid\":\"grb8a4c48a3c094a70982c518d55e40557\",\"meeting_voice_call\":{\"endtime\":1594197635,\"sdkfileid\":\"CpsBKjAqd0xhb2JWRUJldGtwcE5DVTB6UjRUalN6c09vTjVyRnF4YVJ5M24rZC9YcHF3cHRPVzRwUUlaMy9iTytFcnc0SlBkZDU1YjRNb0MzbTZtRnViOXV5WjUwZUIwKzhjbU9uRUlxZ3pyK2VXSVhUWVN2ejAyWFJaTldGSkRJVFl0aUhkcVdjbDJ1L2RPbjJsRlBOamJaVDNnPT0SOE5EZGZNVFk0T0RnMU16YzVNVGt5T1RJMk9GOHhNalk0TXpBeE9EZzJYekUxT1RReE9UYzJNemM9GiA3YTYyNzA3NTY4Nzc2MTY3NzQ2MTY0NzA2ZTc4NjQ2OQ==\",\"demofiledata\":[{\"filename\":\"65eb1cdd3e7a3c1740ecd74220b6c627.docx\",\"demooperator\":\"wo137MCgAAYW6pIiKKrDe5SlzEhSgwbA\",\"starttime\":1594197599,\"endtime\":1594197609}],\"sharescreendata\":[{\"share\":\"wo137MCgAAYW6pIiKKrDe5SlzEhSgwbA\",\"starttime\":1594197624,\"endtime\":1594197624}]}}"; + WxCpChatModel modelMeetingVoiceCall = WxCpChatModel.fromJson(meetingVoiceCall); + log.info("数据为:" + modelMeetingVoiceCall.toJson()); + + + /** + * 音频共享文档消息 + */ + String voipDocShare = "{\"msgid\":\"16527954622422422847_1594199256\",\"action\":\"send\",\"from\":\"18002520162\",\"tolist\":[\"wo137MCgAAYW6pIiKKrDe5SlzEhSgwbA\"],\"msgtime\":1594199235014,\"msgtype\":\"voip_doc_share\",\"voipid\":\"gr2751c98b19300571f8afb3b74514bd32\",\"voip_doc_share\":{\"filename\":\"欢迎使用微盘.pdf.pdf\",\"md5sum\":\"ff893900f24e55e216e617a40e5c4648\",\"filesize\":4400654,\"sdkfileid\":\"CpsBKjAqZUlLdWJMd2gvQ1JxMzd0ZjlpdW5mZzJOOE9JZm5kbndvRmRqdnBETjY0QlcvdGtHSFFTYm95dHM2VlllQXhkUUN5KzRmSy9KT3pudnA2aHhYZFlPemc2aVZ6YktzaVh3YkFPZHlqNnl2L2MvcGlqcVRjRTlhZEZsOGlGdHJpQ2RWSVNVUngrVFpuUmo3TGlPQ1BJemlRPT0SOE5EZGZNVFk0T0RnMU16YzVNVGt5T1RJMk9GODFNelUyTlRBd01qQmZNVFU1TkRFNU9USTFOZz09GiA3YTcwNmQ2Zjc5NjY3MDZjNjY2Zjc4NzI3NTZmN2E2YQ==\"}}"; + WxCpChatModel modelVoipDocShare = WxCpChatModel.fromJson(voipDocShare); + log.info("数据为:" + modelVoipDocShare.toJson()); + + + /** + * 互通红包消息 + */ + String externalRedpacket = "{\"msgid\":\"8632214264349267353_1603786184\",\"action\":\"send\",\"from\":\"woJ7ijBwAAmqwojT8r_DaNMbr_NAvaag\",\"tolist\":[\"woJ7ijBwAA6SjS_sIyPLZtyEPJlT7Cfw\",\"tiny-six768\"],\"roomid\":\"wrJ7ijBwAAG1vly_DzVI72Ghc-PtA5Dw\",\"msgtime\":1603786183955,\"msgtype\":\"external_redpacket\",\"redpacket\":{\"type\":1,\"wish\":\"恭喜发财,大吉大利\",\"totalcnt\":2,\"totalamount\":20}}"; + WxCpChatModel modelExternalRedpacket = WxCpChatModel.fromJson(externalRedpacket); + log.info("数据为:" + modelExternalRedpacket.toJson()); + + + /** + * 视频号消息 + */ + String sphfeed = "{\"msgid\":\"5702551662099334532_1619511584_external\",\"action\":\"send\",\"from\":\"yangzhu1\",\"tolist\":[\"wmJSb5CgAA4aWXWndJspQGpJMDbsMwMA\"],\"roomid\":\"\",\"msgtime\":1619511584444,\"msgtype\":\"sphfeed\",\"sphfeed\":{\"feed_type\":4,\"sph_name\":\"云游天地旅行家\",\"feed_desc\":\"瑞士丨盖尔默缆车,名副其实的过山车~\\n\\n#旅行#风景#热门\"}}"; + WxCpChatModel modelSphFeed = WxCpChatModel.fromJson(sphfeed); + log.info("数据为:" + modelSphFeed.toJson()); + + + /** + * 获取会话内容存档开启成员列表 + */ + List permitUserList = cpService.getMsgAuditService().getPermitUserList(null); + log.info(permitUserList.toString()); + + + ArrayList userList = Lists.newArrayList(); + WxCpCheckAgreeRequest checkAgreeRequest = new WxCpCheckAgreeRequest(); + /** + * 获取会话同意情况 + */ + WxCpCheckAgreeRequest.Info info = new WxCpCheckAgreeRequest.Info(); + info.setUserid("wangkai"); + info.setExteranalOpenId("wmOQpTDwAAkOscTrtUlSli0YLU2jcpUg"); + if(info != null){ + userList.add(info); + checkAgreeRequest.setInfo(userList); + } + + WxCpAgreeInfo wxCpAgreeInfo = cpService.getMsgAuditService().checkSingleAgree(checkAgreeRequest); + log.info(wxCpAgreeInfo.toJson()); + + + /** + * 获取会话内容存档内部群信息 + */ + WxCpGroupChat room = cpService.getMsgAuditService().getGroupChat("wrOQpTDwAAyPl84GBJ40W5eWxWtixSCA"); + log.info(room.toJson()); + + } + +} From 65d8059221a4ebf9135d6f86ab4bcfa044748d5d Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 25 Jan 2022 00:18:31 +0800 Subject: [PATCH 117/622] =?UTF-8?q?:art:=20=E3=80=90=E5=85=AC=E4=BC=97?= =?UTF-8?q?=E5=8F=B7=E3=80=91=E5=8F=91=E5=B8=83=E8=83=BD=E5=8A=9B=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=88=90=E5=8A=9F=E5=8F=91=E5=B8=83=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=A2=9E=E5=8A=A0update=5F?= =?UTF-8?q?time=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/bean/freepublish/WxMpFreePublishItem.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java index f32b34a9ff..dfe953e5b4 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java @@ -23,12 +23,19 @@ public class WxMpFreePublishItem implements Serializable { */ @SerializedName("article_id") private String articleId; + /** * 图文消息的具体内容,支持HTML标签,必须少于2万字符,小于1M,且此处会去除JS。 */ @SerializedName("content") private WxMpFreePublishInfo content; + /** + * 这篇图文消息素材的最后更新时间 + */ + @SerializedName("update_time") + private String updateTime; + public static WxMpFreePublishItem fromJson(String json) { return WxGsonBuilder.create().fromJson(json, WxMpFreePublishItem.class); } From 93616adf3af637e38ee9293b43a28e98ab33e347 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 25 Jan 2022 09:34:43 +0800 Subject: [PATCH 118/622] =?UTF-8?q?:art:=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/bean/Gender.java | 4 +- .../me/chanjar/weixin/cp/bean/WxCpAgent.java | 14 +- .../weixin/cp/bean/WxCpAgentWorkBench.java | 60 +++-- .../me/chanjar/weixin/cp/bean/WxCpChat.java | 44 ++-- .../weixin/cp/bean/WxCpInviteResult.java | 4 +- .../cp/bean/WxCpMaJsCode2SessionResult.java | 1 + .../weixin/cp/bean/WxCpOauth2UserInfo.java | 6 +- .../weixin/cp/bean/WxCpProviderToken.java | 5 +- .../me/chanjar/weixin/cp/bean/WxCpTag.java | 5 +- .../bean/WxCpTagAddOrRemoveUsersResult.java | 11 +- .../chanjar/weixin/cp/bean/WxCpTpAdmin.java | 1 + .../weixin/cp/bean/WxCpTpContactSearch.java | 82 +++--- .../cp/bean/WxCpTpContactSearchResp.java | 62 ++--- .../me/chanjar/weixin/cp/bean/WxCpTpCorp.java | 5 +- .../weixin/cp/bean/WxCpTpPreauthCode.java | 1 + .../me/chanjar/weixin/cp/bean/WxCpTpTag.java | 2 - .../bean/WxCpTpTagAddOrRemoveUsersResult.java | 1 + .../weixin/cp/bean/WxCpTpTagGetResult.java | 1 + .../weixin/cp/bean/WxCpTpUserDetail.java | 1 - .../weixin/cp/bean/WxCpTpXmlPackage.java | 6 +- .../me/chanjar/weixin/cp/bean/WxCpUser.java | 1 - .../weixin/cp/bean/WxCpUserDetail.java | 4 +- .../cp/bean/WxCpUserExternalContactInfo.java | 3 +- .../cp/bean/external/WxCpAddMomentTask.java | 7 +- .../cp/bean/external/WxCpContactWayInfo.java | 4 +- .../bean/external/WxCpContactWayResult.java | 3 + .../bean/external/WxCpExternalUserIdList.java | 1 + .../bean/external/WxCpGetMomentComments.java | 4 +- .../cp/bean/external/WxCpGetMomentList.java | 4 +- .../external/WxCpGetMomentSendResult.java | 4 +- .../cp/bean/external/WxCpGetMomentTask.java | 4 +- .../external/WxCpGetMomentTaskResult.java | 3 + .../WxCpGroupWelcomeTemplateResult.java | 6 +- .../cp/bean/external/WxCpMsgTemplate.java | 3 +- .../bean/external/WxCpProductAlbumInfo.java | 6 +- .../external/WxCpProductAlbumListResult.java | 6 +- .../bean/external/WxCpProductAlbumResult.java | 4 +- .../cp/bean/external/moment/CustomerItem.java | 3 + .../external/moment/ExternalContactList.java | 3 +- .../cp/bean/external/moment/MomentInfo.java | 12 +- .../cp/bean/external/moment/SenderList.java | 6 +- .../cp/bean/external/moment/VisibleRange.java | 8 +- .../cp/bean/external/msg/Attachment.java | 2 +- .../cp/bean/external/product/Attachment.java | 4 +- .../cp/bean/external/product/Image.java | 4 +- .../weixin/cp/bean/kf/WxCpKfAccountLink.java | 6 +- .../cp/bean/kf/WxCpKfAccountListResp.java | 2 +- .../bean/message/WxCpGroupRobotMessage.java | 2 +- .../weixin/cp/bean/message/WxCpMessage.java | 16 +- .../bean/message/WxCpMessageSendResult.java | 13 +- .../message/WxCpMessageSendStatistics.java | 4 +- .../cp/bean/message/WxCpTpXmlMessage.java | 10 +- .../cp/bean/message/WxCpXmlMessage.java | 20 +- .../bean/message/WxCpXmlOutEventMessage.java | 2 +- .../cp/bean/message/WxCpXmlOutMessage.java | 4 +- .../message/WxCpXmlOutUpdateBtnMessage.java | 7 +- .../bean/message/WxCpXmlOutVideoMessage.java | 4 +- .../cp/bean/messagebuilder/MpnewsBuilder.java | 2 +- .../cp/bean/messagebuilder/NewsBuilder.java | 2 +- .../messagebuilder/TemplateCardBuilder.java | 9 +- .../weixin/cp/bean/oa/SummaryInfo.java | 3 +- .../cp/bean/oa/WxCpApprovalApplier.java | 1 + .../weixin/cp/bean/oa/WxCpApprovalInfo.java | 6 +- .../bean/oa/WxCpApprovalInfoQueryFilter.java | 6 +- .../weixin/cp/bean/oa/WxCpApprovalRecord.java | 1 + .../cp/bean/oa/WxCpApprovalRecordDetail.java | 2 +- .../weixin/cp/bean/oa/WxCpApproverAttr.java | 4 +- .../weixin/cp/bean/oa/WxCpCheckinData.java | 14 +- .../weixin/cp/bean/oa/WxCpCheckinDayData.java | 22 +- .../cp/bean/oa/WxCpCheckinMonthData.java | 23 +- .../cp/bean/oa/WxCpCropCheckinOption.java | 237 +++++++++--------- .../cp/bean/oa/WxCpSetCheckinSchedule.java | 4 +- .../weixin/cp/bean/oa/WxCpSpStatus.java | 4 +- .../cp/bean/oa/applydata/ContentValue.java | 6 +- .../bean/oa/templatedata/TemplateConfig.java | 1 + .../templatedata/control/TemplateTable.java | 1 - .../cp/bean/outxmlbuilder/EventBuilder.java | 6 +- .../cp/bean/outxmlbuilder/NewsBuilder.java | 2 +- .../outxmlbuilder/UpdateButtonBuilder.java | 1 - .../cp/bean/taskcard/TaskCardButton.java | 6 +- .../cp/bean/templatecard/CheckboxOption.java | 6 +- .../bean/templatecard/HorizontalContent.java | 3 +- .../cp/bean/templatecard/MultipleSelect.java | 3 +- .../bean/templatecard/TemplateCardButton.java | 4 +- .../bean/templatecard/TemplateCardJump.java | 3 +- .../cp/bean/templatecard/VerticalContent.java | 2 +- 86 files changed, 470 insertions(+), 429 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java index d56bd57da9..99da962628 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java @@ -31,8 +31,8 @@ public enum Gender { private final String code; public static Gender fromCode(String code) { - for(Gender a: Gender.values()){ - if(a.code.equals(code)){ + for (Gender a : Gender.values()) { + if (a.code.equals(code)) { return a; } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java index 614bc9791e..04b0dd72e3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java @@ -1,8 +1,5 @@ package me.chanjar.weixin.cp.bean; -import java.io.Serializable; -import java.util.List; - import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -10,6 +7,9 @@ import lombok.NoArgsConstructor; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.io.Serializable; +import java.util.List; + /** *
  * 企业号应用信息.
@@ -81,25 +81,27 @@ public String toJson() {
   @Data
   public static class Users implements Serializable {
     private static final long serialVersionUID = 8801100463558788565L;
+
     @SerializedName("user")
     private List users;
   }
 
   @Data
-  public class User implements Serializable {
+  public static class User implements Serializable {
     private static final long serialVersionUID = 7287632514385508024L;
+
     @SerializedName("userid")
     private String userId;
   }
 
   @Data
-  public class Parties {
+  public static class Parties {
     @SerializedName("partyid")
     private List partyIds = null;
   }
 
   @Data
-  public class Tags {
+  public static class Tags {
     @SerializedName("tagid")
     private List tagIds = null;
   }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java
index c97faa6364..bda927a800 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java
@@ -16,49 +16,51 @@
 /**
  * @author songshiyu
  * @date : create in 16:09 2020/9/27
- * @description: 工作台自定义展示
+ * 工作台自定义展示
  */
 @Data
 @Builder
 @NoArgsConstructor
 @AllArgsConstructor
 public class WxCpAgentWorkBench implements Serializable {
-  private static final long serialVersionUid = 1L;
+  private static final long serialVersionUID = -4136604790232843229L;
 
-  /*
-  * 展示类型,目前支持 “keydata”、 “image”、 “list” 、”webview”
-  * */
+  /**
+   * 展示类型,目前支持 “keydata”、 “image”、 “list” 、”webview”
+   */
   private String type;
-  /*
-  * 用户的userid
-  * */
+  /**
+   * 用户的userid
+   */
   private String userId;
-  /*
-  * 应用id
-  * */
+  /**
+   * 应用id
+   */
   private Long agentId;
-  /*
-  * 点击跳转url,若不填且应用设置了主页url,则跳转到主页url,否则跳到应用会话窗口
-  * */
+  /**
+   * 点击跳转url,若不填且应用设置了主页url,则跳转到主页url,否则跳到应用会话窗口
+   */
   private String jumpUrl;
-  /*
-  * 若应用为小程序类型,该字段填小程序pagepath,若未设置,跳到小程序主页
-  * */
+  /**
+   * 若应用为小程序类型,该字段填小程序pagepath,若未设置,跳到小程序主页
+   */
   private String pagePath;
-  /*
-  * 图片url:图片的最佳比例为3.35:1;webview:渲染展示的url
-  * */
+  /**
+   * 图片url:图片的最佳比例为3.35:1;webview:渲染展示的url
+   */
   private String url;
-  /*
-  * 是否覆盖用户工作台的数据。设置为true的时候,会覆盖企业所有用户当前设置的数据。若设置为false,则不会覆盖用户当前设置的所有数据
-  * */
+  /**
+   * 是否覆盖用户工作台的数据。设置为true的时候,会覆盖企业所有用户当前设置的数据。若设置为false,则不会覆盖用户当前设置的所有数据
+   */
   private Boolean replaceUserData;
 
   private List keyDataList;
 
   private List lists;
 
-  // 生成模板Json字符串
+  /**
+   * 生成模板Json字符串
+   */
   public String toTemplateString() {
     JsonObject templateObject = new JsonObject();
     templateObject.addProperty("agentid", this.agentId);
@@ -70,7 +72,9 @@ public String toTemplateString() {
     return templateObject.toString();
   }
 
-  // 生成用户数据Json字符串
+  /**
+   * 生成用户数据Json字符串
+   */
   public String toUserDataString() {
     JsonObject userDataObject = new JsonObject();
     userDataObject.addProperty("agentid", this.agentId);
@@ -80,7 +84,9 @@ public String toUserDataString() {
     return userDataObject.toString();
   }
 
-  // 处理不用类型的工作台数据
+  /**
+   * 处理不用类型的工作台数据
+   */
   private void handle(JsonObject templateObject) {
     switch (this.getType()) {
       case WxCpConsts.WorkBenchType.KEYDATA: {
@@ -116,7 +122,7 @@ private void handle(JsonObject templateObject) {
           listObject.addProperty("pagepath", listItem.getPagePath());
           listArray.add(listObject);
         }
-        itemsObject.add("items",listArray);
+        itemsObject.add("items", listArray);
         templateObject.add("list", itemsObject);
         break;
       }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpChat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpChat.java
index 03b9aaa7d9..eb014c595a 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpChat.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpChat.java
@@ -1,22 +1,22 @@
-package me.chanjar.weixin.cp.bean;
-
-import java.io.Serializable;
-import java.util.List;
-
-import lombok.Data;
-
-/**
- * 群聊
- *
- * @author gaigeshen
- */
-@Data
-public class WxCpChat implements Serializable {
-  private static final long serialVersionUID = -4301684507150486556L;
-  
-  private String id;
-  private String name;
-  private String owner;
-  private List users;
-
-}
+package me.chanjar.weixin.cp.bean;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 群聊
+ *
+ * @author gaigeshen
+ */
+@Data
+public class WxCpChat implements Serializable {
+  private static final long serialVersionUID = -4301684507150486556L;
+
+  private String id;
+  private String name;
+  private String owner;
+  private List users;
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java
index f5a0a66bf1..5ab4f5246b 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java
@@ -1,11 +1,11 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import com.google.gson.annotations.SerializedName;
 import lombok.Data;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * 邀请成员的结果对象类.
  * Created by Binary Wang on 2018-5-13.
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java
index 90f1ae840c..7291489d9b 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java
@@ -11,6 +11,7 @@
  * 小程序登录凭证校验
  * 文档地址:https://work.weixin.qq.com/api/doc#90000/90136/90289/wx.qy.login
  * 
+ * * @author Binary Wang */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java index 56e65b9008..0e10737bf6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java @@ -1,13 +1,13 @@ package me.chanjar.weixin.cp.bean; -import java.io.Serializable; - import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; +import java.io.Serializable; + /** *
  *  用oauth2获取用户信息的结果类
@@ -23,7 +23,7 @@
 @Builder
 public class WxCpOauth2UserInfo implements Serializable {
   private static final long serialVersionUID = -4301684507150486556L;
-  
+
   private String openId;
   private String deviceId;
   private String userId;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java
index 6a33f1c48c..7b2887f03e 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java
@@ -1,11 +1,11 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import com.google.gson.annotations.SerializedName;
 import lombok.Data;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * 服务商凭证.
  *
@@ -15,6 +15,7 @@
 @Data
 public class WxCpProviderToken implements Serializable {
   private static final long serialVersionUID = -4301684507150486556L;
+
   /**
    * 服务商的access_token,最长为512字节。
    */
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java
index f6b9fa0276..8649f0ced0 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java
@@ -1,14 +1,15 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * Created by Daniel Qian.
+ *
  * @author Daniel Qian
  */
 @Data
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java
index 037740ca96..adac174884 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java
@@ -1,15 +1,14 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-import java.util.Collections;
-import java.util.List;
-
-import org.apache.commons.lang3.StringUtils;
-
 import com.google.common.base.Splitter;
 import com.google.gson.annotations.SerializedName;
 import lombok.Data;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+import org.apache.commons.lang3.StringUtils;
+
+import java.io.Serializable;
+import java.util.Collections;
+import java.util.List;
 
 /**
  * 为标签添加或移除用户结果对象类.
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java
index 5d77c975d5..a950e0c3f4 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java
@@ -12,6 +12,7 @@
 
 /**
  * 应用的管理员
+ *
  * @author huangxiaoming
  */
 @Data
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java
index ee1de69f52..cc84dfd4de 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java
@@ -1,12 +1,12 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import com.google.gson.annotations.SerializedName;
 import lombok.Data;
 import lombok.experimental.Accessors;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * @author uianz
  * @description
@@ -15,51 +15,51 @@
 @Data
 @Accessors(chain = true)
 public class WxCpTpContactSearch implements Serializable {
-    private static final long serialVersionUID = -4301684507150486556L;
+  private static final long serialVersionUID = -4301684507150486556L;
 
-    /**
-     * 查询的企业corpid
-     */
-    @SerializedName("auth_corpid")
-    private String authCorpId;
+  /**
+   * 查询的企业corpid
+   */
+  @SerializedName("auth_corpid")
+  private String authCorpId;
 
-    /**
-     * 搜索关键词。当查询用户时应为用户名称、名称拼音或者英文名;当查询部门时应为部门名称或者部门名称拼音
-     */
-    @SerializedName("query_word")
-    private String queryWord;
+  /**
+   * 搜索关键词。当查询用户时应为用户名称、名称拼音或者英文名;当查询部门时应为部门名称或者部门名称拼音
+   */
+  @SerializedName("query_word")
+  private String queryWord;
 
-    /**
-     * 查询类型 1:查询用户,返回用户userid列表 2:查询部门,返回部门id列表。 不填该字段或者填0代表同时查询部门跟用户
-     */
-    @SerializedName("query_type")
-    private Integer type;
+  /**
+   * 查询类型 1:查询用户,返回用户userid列表 2:查询部门,返回部门id列表。 不填该字段或者填0代表同时查询部门跟用户
+   */
+  @SerializedName("query_type")
+  private Integer type;
 
-    /**
-     * 应用id,若非0则只返回应用可见范围内的用户或者部门信息
-     */
-    @SerializedName("agentid")
-    private Integer agentId;
+  /**
+   * 应用id,若非0则只返回应用可见范围内的用户或者部门信息
+   */
+  @SerializedName("agentid")
+  private Integer agentId;
 
-    /**
-     * 查询的偏移量,每次调用的offset在上一次offset基础上加上limit
-     */
-    @SerializedName("offset")
-    private Integer offset;
+  /**
+   * 查询的偏移量,每次调用的offset在上一次offset基础上加上limit
+   */
+  @SerializedName("offset")
+  private Integer offset;
 
-    /**
-     * 查询返回的最大数量,默认为50,最多为200,查询返回的数量可能小于limit指定的值
-     */
-    @SerializedName("limit")
-    private Integer limit;
+  /**
+   * 查询返回的最大数量,默认为50,最多为200,查询返回的数量可能小于limit指定的值
+   */
+  @SerializedName("limit")
+  private Integer limit;
 
-    /**
-     * 如果需要精确匹配用户名称或者部门名称或者英文名,不填则默认为模糊匹配;1:匹配用户名称或者部门名称 2:匹配用户英文名
-     */
-    @SerializedName("full_match_field")
-    private Integer fullMatchField;
+  /**
+   * 如果需要精确匹配用户名称或者部门名称或者英文名,不填则默认为模糊匹配;1:匹配用户名称或者部门名称 2:匹配用户英文名
+   */
+  @SerializedName("full_match_field")
+  private Integer fullMatchField;
 
-    public String toJson() {
-        return WxCpGsonBuilder.create().toJson(this);
-    }
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java
index 1998a4230f..21db4e0833 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java
@@ -17,42 +17,42 @@
 @Data
 public class WxCpTpContactSearchResp extends WxCpBaseResp {
 
-    @SerializedName("is_last")
-    private Boolean isLast;
+  @SerializedName("is_last")
+  private Boolean isLast;
 
-    @SerializedName("query_result")
-    private QueryResult queryResult;
+  @SerializedName("query_result")
+  private QueryResult queryResult;
 
-    @Data
-    public static class QueryResult implements Serializable {
-        private static final long serialVersionUID = -4301684507150486556L;
-
-        @SerializedName("user")
-        private User user;
-        @SerializedName("party")
-        private Party party;
-
-        @Data
-        public static class User implements Serializable {
-            private static final long serialVersionUID = -4301684507150486556L;
-            @SerializedName("userid")
-            private List userid;
-            @SerializedName("open_userid")
-            private List openUserId;
-        }
-
-        @Data
-        public static class Party implements Serializable {
-            private static final long serialVersionUID = -4301684507150486556L;
-
-            @SerializedName("department_id")
-            private List departmentId;
-        }
+  @Data
+  public static class QueryResult implements Serializable {
+    private static final long serialVersionUID = -4301684507150486556L;
+
+    @SerializedName("user")
+    private User user;
+    @SerializedName("party")
+    private Party party;
 
+    @Data
+    public static class User implements Serializable {
+      private static final long serialVersionUID = -4301684507150486556L;
+      @SerializedName("userid")
+      private List userid;
+      @SerializedName("open_userid")
+      private List openUserId;
     }
 
-    public static WxCpTpContactSearchResp fromJson(String json) {
-      return WxCpGsonBuilder.create().fromJson(json, WxCpTpContactSearchResp.class);
+    @Data
+    public static class Party implements Serializable {
+      private static final long serialVersionUID = -4301684507150486556L;
+
+      @SerializedName("department_id")
+      private List departmentId;
     }
 
+  }
+
+  public static WxCpTpContactSearchResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpContactSearchResp.class);
+  }
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java
index f77fdb78df..efe6d8285c 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java
@@ -1,12 +1,11 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import com.google.gson.annotations.SerializedName;
-
 import lombok.Data;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * 微信部门.
  *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java
index 8c102ae4a2..82df9f4565 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java
@@ -7,6 +7,7 @@
 
 /**
  * 预授权码返回
+ *
  * @author yqx
  * @date 2020/3/19
  */
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java
index b584b31dd1..73d7a51578 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java
@@ -7,13 +7,11 @@
 import java.io.Serializable;
 
 /**
- *
  * @author zhangq 
  * @since 2021-02-14 16:15 16:15
  */
 @Data
 public class WxCpTpTag implements Serializable {
-
   private static final long serialVersionUID = 581740383760234134L;
 
   @SerializedName("tagid")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java
index 35319b1baf..8a9fecf21c 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java
@@ -4,6 +4,7 @@
 
 /**
  * 企业微信第三方开发-增加标签成员成员api响应体
+ *
  * @author zhangq 
  * @since 2021/2/14 16:44
  */
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java
index d77e99b131..4fdc9a58ac 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java
@@ -4,6 +4,7 @@
 
 /**
  * 获取标签成员接口响应体
+ *
  * @author zhangq 
  * @since 2021/2/14 16:28
  */
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java
index c949b0a1ba..2809391253 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java
@@ -6,7 +6,6 @@
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
 /**
- *
  * @author huangxiaoming
  */
 @Data
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java
index e7af1dd61a..4d9d9493ae 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java
@@ -1,8 +1,5 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-import java.util.Map;
-
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
@@ -10,6 +7,9 @@
 import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
 import me.chanjar.weixin.cp.util.xml.XStreamTransformer;
 
+import java.io.Serializable;
+import java.util.Map;
+
 /**
  * 回调消息包.
  * https://work.weixin.qq.com/api/doc#90001/90143/91116
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java
index 0c4bac9ea8..76a8f93300 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java
@@ -73,7 +73,6 @@ public class WxCpUser implements Serializable {
   private String[] directLeader;
 
 
-
   public void addExternalAttr(ExternalAttribute externalAttr) {
     this.externalAttrs.add(externalAttr);
   }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java
index 7c4af4df68..295acfdbce 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java
@@ -1,10 +1,10 @@
 package me.chanjar.weixin.cp.bean;
 
-import java.io.Serializable;
-
 import com.google.gson.annotations.SerializedName;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * 
  *  使用user_ticket获取成员详情接口返回类.
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java
index 6a9e2c8e74..ca6ebb8bb7 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java
@@ -78,6 +78,7 @@ public static class ExternalProfile implements Serializable {
   @AllArgsConstructor
   public static class ExternalAttribute implements Serializable {
     private static final long serialVersionUID = -5696099236344075582L;
+
     @Setter
     @Getter
     public static class Text implements Serializable {
@@ -122,7 +123,7 @@ public static class MiniProgram implements Serializable {
   @Getter
   public static class FollowedUser implements Serializable {
     private static final long serialVersionUID = -5696099236344075582L;
-    
+
     @SerializedName("userid")
     private String userId;
     private String remark;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java
index 3e952ccb90..efa0c1bfc0 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java
@@ -1,17 +1,18 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.io.Serializable;
-import java.util.List;
 import lombok.AllArgsConstructor;
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.external.moment.VisibleRange;
 import me.chanjar.weixin.cp.bean.external.msg.Attachment;
 import me.chanjar.weixin.cp.bean.external.msg.Text;
-import me.chanjar.weixin.cp.bean.external.moment.VisibleRange;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+import java.util.List;
+
 /**
  * 企业发表内容到客户的朋友圈 创建发表任务
  *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java
index 35f6a6eaa0..66d94da2c4 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java
@@ -208,7 +208,7 @@ public enum TYPE {
      * 多人
      */
     @SerializedName("2")
-    MULTI;
+    MULTI
 
   }
 
@@ -224,7 +224,7 @@ public enum SCENE {
      * 通过二维码联系
      */
     @SerializedName("2")
-    QRCODE;
+    QRCODE
 
   }
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java
index 0a49719a95..789dac3188 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java
@@ -8,11 +8,14 @@
 
 /**
  * 「联系我」方式 处理结果
+ *
+ * @author 爱因斯唐
  */
 @Data
 @EqualsAndHashCode(callSuper = true)
 public class WxCpContactWayResult extends WxCpBaseResp {
   private static final long serialVersionUID = -2612867517869192015L;
+
   @SerializedName("config_id")
   private String configId;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java
index 5de738c74b..3b06a0a078 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java
@@ -18,6 +18,7 @@
 @Getter
 @Setter
 public class WxCpExternalUserIdList extends WxCpBaseResp {
+  private static final long serialVersionUID = 3922210865083522513L;
 
   @SerializedName("external_userid_info")
   private List externalUserIdInfo;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java
index b397954dcc..a0228e3ac7 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java
@@ -1,7 +1,6 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.Getter;
@@ -9,6 +8,8 @@
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.util.List;
+
 /**
  * 企业发表内容到客户的朋友圈 获取客户朋友圈的互动数据
  *
@@ -19,6 +20,7 @@
 @EqualsAndHashCode(callSuper = true)
 public class WxCpGetMomentComments extends WxCpBaseResp {
   private static final long serialVersionUID = -9056664072546234965L;
+
   @SerializedName("comment_list")
   private List commentList;
   @SerializedName("like_list")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java
index 6ba154df83..32cce1dd45 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java
@@ -1,13 +1,14 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.bean.external.moment.MomentInfo;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.util.List;
+
 /**
  * 企业发表内容到客户的朋友圈 获取企业全部的发表列表
  *
@@ -18,6 +19,7 @@
 @EqualsAndHashCode(callSuper = true)
 public class WxCpGetMomentList extends WxCpBaseResp {
   private static final long serialVersionUID = 106159971765109008L;
+
   @SerializedName("next_cursor")
   private String nextCursor;
   @SerializedName("moment_list")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java
index 38cd89a454..30df9c43ae 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java
@@ -1,13 +1,14 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.bean.external.moment.CustomerItem;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.util.List;
+
 /**
  * 企业发表内容到客户的朋友圈 获取客户朋友圈发表后的可见客户列表
  *
@@ -18,6 +19,7 @@
 @EqualsAndHashCode(callSuper = true)
 public class WxCpGetMomentSendResult extends WxCpBaseResp {
   private static final long serialVersionUID = -5782811995184523379L;
+
   @SerializedName("next_cursor")
   private String nextCursor;
   @SerializedName("customer_list")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java
index aa45bec4ef..2b7032f794 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java
@@ -1,7 +1,6 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.Getter;
@@ -9,6 +8,8 @@
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.util.List;
+
 /**
  * 企业发表内容到客户的朋友圈 获取客户朋友圈企业发表的列表
  *
@@ -19,6 +20,7 @@
 @EqualsAndHashCode(callSuper = true)
 public class WxCpGetMomentTask extends WxCpBaseResp {
   private static final long serialVersionUID = 5621905029624794129L;
+
   @SerializedName("next_cursor")
   private String nextCursor;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java
index 019e7fdf1d..b0ab78f1e9 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java
@@ -20,6 +20,7 @@
 @EqualsAndHashCode(callSuper = true)
 public class WxCpGetMomentTaskResult extends WxCpBaseResp {
   private static final long serialVersionUID = 2515140928288915077L;
+
   private Integer status;
   private String type;
   private TaskResult result;
@@ -27,6 +28,8 @@ public class WxCpGetMomentTaskResult extends WxCpBaseResp {
   @Getter
   @Setter
   public static class TaskResult extends WxCpBaseResp {
+    private static final long serialVersionUID = 2162642873632126707L;
+
     @SerializedName("moment_id")
     private String momentId;
     @SerializedName("invalid_sender_list")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java
index 5b92a02098..631d6be261 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java
@@ -1,9 +1,6 @@
 package me.chanjar.weixin.cp.bean.external;
 
-import lombok.AllArgsConstructor;
-import lombok.Builder;
-import lombok.Data;
-import lombok.NoArgsConstructor;
+import lombok.*;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.bean.external.msg.*;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
@@ -20,6 +17,7 @@
 @Builder
 @NoArgsConstructor
 @AllArgsConstructor
+@EqualsAndHashCode(callSuper = true)
 public class WxCpGroupWelcomeTemplateResult extends WxCpBaseResp implements Serializable {
   private static final long serialVersionUID = -6406667238670580612L;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java
index 845aefcc77..2d5343459a 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java
@@ -5,7 +5,8 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
-import me.chanjar.weixin.cp.bean.external.msg.*;
+import me.chanjar.weixin.cp.bean.external.msg.Attachment;
+import me.chanjar.weixin.cp.bean.external.msg.Text;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
 import java.io.Serializable;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
index d84b9f232c..e0ad62ea36 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
@@ -1,13 +1,14 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.io.Serializable;
-import java.util.List;
 import lombok.Getter;
 import lombok.Setter;
 import me.chanjar.weixin.cp.bean.external.product.Attachment;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+import java.util.List;
+
 /**
  * 
  * 获取商品图册
@@ -19,7 +20,6 @@
 @Getter
 @Setter
 public class WxCpProductAlbumInfo implements Serializable {
-
   private static final long serialVersionUID = -8338202601802366899L;
 
   @SerializedName("product_id")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java
index 29b9d4c571..2b6f4b2087 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java
@@ -1,13 +1,14 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.io.Serializable;
-import java.util.List;
 import lombok.Getter;
 import lombok.Setter;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+import java.util.List;
+
 /**
  * 
  * 获取商品图册列表执行结果
@@ -19,7 +20,6 @@
 @Getter
 @Setter
 public class WxCpProductAlbumListResult extends WxCpBaseResp implements Serializable {
-
   private static final long serialVersionUID = 121265727802015428L;
 
   @SerializedName("product_list")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java
index 74e5fc3be4..527bfb6eb5 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java
@@ -1,12 +1,13 @@
 package me.chanjar.weixin.cp.bean.external;
 
 import com.google.gson.annotations.SerializedName;
-import java.io.Serializable;
 import lombok.Getter;
 import lombok.Setter;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.io.Serializable;
+
 /**
  * 
  * 获取商品图册执行结果
@@ -18,7 +19,6 @@
 @Getter
 @Setter
 public class WxCpProductAlbumResult extends WxCpBaseResp implements Serializable {
-
   private static final long serialVersionUID = 4076734101839851497L;
 
   @SerializedName("product")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java
index 08b1242392..3bcbe03e03 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java
@@ -4,6 +4,9 @@
 import lombok.Getter;
 import lombok.Setter;
 
+/**
+ * @author Boris
+ */
 @Getter
 @Setter
 public class CustomerItem {
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java
index 4d08bf3583..c9f2e0a580 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java
@@ -1,10 +1,11 @@
 package me.chanjar.weixin.cp.bean.external.moment;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Getter;
 import lombok.Setter;
 
+import java.util.List;
+
 @Getter
 @Setter
 public class ExternalContactList {
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java
index 589a4a58c0..3fd364ddb4 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java
@@ -1,14 +1,14 @@
 package me.chanjar.weixin.cp.bean.external.moment;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Data;
-import me.chanjar.weixin.cp.bean.external.msg.Image;
-import me.chanjar.weixin.cp.bean.external.msg.Link;
-import me.chanjar.weixin.cp.bean.external.msg.Location;
-import me.chanjar.weixin.cp.bean.external.msg.Text;
-import me.chanjar.weixin.cp.bean.external.msg.Video;
+import me.chanjar.weixin.cp.bean.external.msg.*;
+
+import java.util.List;
 
+/**
+ * @author Borisg
+ */
 @Data
 public class MomentInfo {
   @SerializedName("moment_id")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java
index 45889684c5..b3f2c387e6 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java
@@ -1,10 +1,14 @@
 package me.chanjar.weixin.cp.bean.external.moment;
 
 import com.google.gson.annotations.SerializedName;
-import java.util.List;
 import lombok.Getter;
 import lombok.Setter;
 
+import java.util.List;
+
+/**
+ * @author Boris
+ */
 @Getter
 @Setter
 public class SenderList {
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
index 251fb5e64c..39605be88d 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
@@ -1,11 +1,17 @@
 package me.chanjar.weixin.cp.bean.external.moment;
 
 import com.google.gson.annotations.SerializedName;
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
+/**
+ * @author Boris
+ */
 @Data
 public class VisibleRange implements Serializable {
+  private static final long serialVersionUID = 5356285705365931051L;
+
   @SerializedName("sender_list")
   private SenderList senderList;
   @SerializedName("external_contact_list")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java
index 7dce73ad03..d714b093cf 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java
@@ -47,7 +47,7 @@ public void setVideo(Video video) {
     this.msgType = WxCpConsts.WelcomeMsgType.VIDEO;
   }
 
-  public void setFile(File file ) {
+  public void setFile(File file) {
     this.file = file;
     this.msgType = WxCpConsts.WelcomeMsgType.FILE;
   }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java
index cfcb688c2d..c1480fbb7b 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java
@@ -1,9 +1,10 @@
 package me.chanjar.weixin.cp.bean.external.product;
 
-import java.io.Serializable;
 import lombok.Data;
 import me.chanjar.weixin.cp.constant.WxCpConsts;
 
+import java.io.Serializable;
+
 /**
  * 商品画册附件
  *
@@ -11,7 +12,6 @@
  */
 @Data
 public class Attachment implements Serializable {
-
   private static final long serialVersionUID = -4545283630169056262L;
 
   /**
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java
index d56f0b2705..7628a63671 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java
@@ -1,9 +1,10 @@
 package me.chanjar.weixin.cp.bean.external.product;
 
 import com.google.gson.annotations.SerializedName;
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * 商品画册图片
  *
@@ -11,7 +12,6 @@
  */
 @Data
 public class Image implements Serializable {
-
   private static final long serialVersionUID = -2737415903252627814L;
 
   @SerializedName("media_id")
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java
index a17e5c5e83..a46a186db1 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java
@@ -28,10 +28,10 @@ public class WxCpKfAccountLink implements Serializable {
    * 场景值,字符串类型,由开发者自定义。
    * 不多于32字节
    * 字符串取值范围(正则表达式):[0-9a-zA-Z_-]*
-   *
+   * 

* 1. 若scene非空,返回的客服链接开发者可拼接scene_param=SCENE_PARAM参数使用,用户进入会话事件会将SCENE_PARAM原样返回。 - * 其中SCENE_PARAM需要urlencode,且长度不能超过128字节。 - * 如 https://work.weixin.qq.com/kf/kfcbf8f8d07ac7215f?enc_scene=ENCGFSDF567DF&scene_param=a%3D1%26b%3D2 + * 其中SCENE_PARAM需要urlencode,且长度不能超过128字节。 + * 如 https://work.weixin.qq.com/kf/kfcbf8f8d07ac7215f?enc_scene=ENCGFSDF567DF&scene_param=a%3D1%26b%3D2 * 2. 历史调用接口返回的客服链接(包含encScene=XXX参数),不支持scene_param参数。 * 3. 返回的客服链接,不能修改或复制参数到其他链接使用。否则进入会话事件参数校验不通过,导致无法回调。 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java index c2676a44dd..06f1ef0668 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java @@ -24,7 +24,7 @@ public class WxCpKfAccountListResp extends WxCpBaseResp { private static final long serialVersionUID = -1317201649692262217L; /** - * 帐号信息列表 + * 帐号信息列表 */ @JsonProperty("account_list") private List accountList; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java index de7e88d79b..387b454cdb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java @@ -25,7 +25,7 @@ @Data public class WxCpGroupRobotMessage implements Serializable { private static final long serialVersionUID = -4301684507150486556L; - + /** * 消息类型 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java index 027a518837..e6df7c5d63 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java @@ -147,7 +147,7 @@ public class WxCpMessage implements Serializable { * 整体卡片的点击跳转事件,text_notice必填本字段 * 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2] */ - private Integer card_action_type; + private Integer card_action_type; /** * 跳转事件的url,card_action.type是1时必填 */ @@ -517,7 +517,7 @@ private void handleMsgType(JsonObject messageJson) { } List verticalContents = this.getVertical_contents(); - if(null != verticalContents && verticalContents.size() > 0) { + if (null != verticalContents && verticalContents.size() > 0) { JsonArray vContentJsonArray = new JsonArray(); for (VerticalContent vContent : this.getVertical_contents()) { JsonObject tempObject = vContent.toJson(); @@ -527,7 +527,7 @@ private void handleMsgType(JsonObject messageJson) { } List horizontalContents = this.getHorizontal_contents(); - if(null != horizontalContents && horizontalContents.size() > 0) { + if (null != horizontalContents && horizontalContents.size() > 0) { JsonArray hContentJsonArray = new JsonArray(); for (HorizontalContent hContent : this.getHorizontal_contents()) { JsonObject tempObject = hContent.toJson(); @@ -537,7 +537,7 @@ private void handleMsgType(JsonObject messageJson) { } List jumps = this.getJumps(); - if(null != jumps && jumps.size() > 0) { + if (null != jumps && jumps.size() > 0) { JsonArray jumpJsonArray = new JsonArray(); for (TemplateCardJump jump : this.getJumps()) { JsonObject tempObject = jump.toJson(); @@ -562,7 +562,7 @@ private void handleMsgType(JsonObject messageJson) { } List buttons = this.getButtons(); - if(null != buttons && buttons.size() > 0) { + if (null != buttons && buttons.size() > 0) { JsonArray btnJsonArray = new JsonArray(); for (TemplateCardButton btn : this.getButtons()) { JsonObject tempObject = btn.toJson(); @@ -602,7 +602,7 @@ private void handleMsgType(JsonObject messageJson) { // select_list List selects = this.getSelects(); - if(null != selects && selects.size() > 0) { + if (null != selects && selects.size() > 0) { JsonArray selectJsonArray = new JsonArray(); for (MultipleSelect select : this.getSelects()) { JsonObject tempObject = select.toJson(); @@ -612,9 +612,9 @@ private void handleMsgType(JsonObject messageJson) { } QuoteArea quoteArea = this.getQuoteArea(); - if (null != quoteArea){ + if (null != quoteArea) { JsonObject quoteAreaJson = quoteArea.toJson(); - template.add("quote_area",quoteAreaJson); + template.add("quote_area", quoteAreaJson); } messageJson.add("template_card", template); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java index 4c41d631b4..6b02941dd7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java @@ -1,15 +1,14 @@ package me.chanjar.weixin.cp.bean.message; -import java.io.Serializable; -import java.util.Collections; -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - import com.google.common.base.Splitter; import com.google.gson.annotations.SerializedName; import lombok.Data; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; +import java.util.Collections; +import java.util.List; /** * 消息发送结果对象类. @@ -44,7 +43,7 @@ public static WxCpMessageSendResult fromJson(String json) { @SerializedName("invalidtag") private String invalidTag; - + @SerializedName("msgid") private String msgId; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java index 7cef0564dc..be652c50b9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java @@ -24,9 +24,9 @@ public static WxCpMessageSendStatistics fromJson(String json) { private List statistics; @Data - public static class StatisticItem implements Serializable { + public static class StatisticItem implements Serializable { private static final long serialVersionUID = 6031833682211475786L; - + /** * 应用名 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java index fc159a9a3b..5796735948 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java @@ -1,9 +1,5 @@ package me.chanjar.weixin.cp.bean.message; -import java.io.Serializable; -import java.util.List; -import java.util.Map; - import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; import com.thoughtworks.xstream.converters.basic.IntConverter; @@ -15,6 +11,10 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; import me.chanjar.weixin.cp.util.xml.XStreamTransformer; +import java.io.Serializable; +import java.util.List; +import java.util.Map; + /** * 回调推送的message * https://work.weixin.qq.com/api/doc#90001/90143/90612 @@ -449,7 +449,7 @@ public static class NotifyNode implements Serializable { @XStreamAlias("ItemUserId") protected Integer itemUserId; @XStreamAlias("ItemImage") - protected String itemImage; + protected String itemImage; } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index a95870590f..6e215052f3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -658,20 +658,20 @@ public static class ApprovalInfo implements Serializable { /** * 审批流程信息,可能有多个审批节点。 */ - @XStreamImplicit(itemFieldName="SpRecord") + @XStreamImplicit(itemFieldName = "SpRecord") private List spRecords; /** * 抄送信息,可能有多个抄送节点 * 这回查字典,notifier通知人,Notifyer这不知道是什么 */ - @XStreamImplicit(itemFieldName="Notifyer") + @XStreamImplicit(itemFieldName = "Notifyer") private List notifier; /** * 审批申请备注信息,可能有多个备注节点 */ - @XStreamImplicit(itemFieldName="Comments") + @XStreamImplicit(itemFieldName = "Comments") private List comments; /** @@ -706,7 +706,7 @@ public static class Applier implements Serializable { */ @XStreamAlias("SpRecord") @Data - public static class SpRecord implements Serializable{ + public static class SpRecord implements Serializable { private static final long serialVersionUID = 1247535623941881764L; @@ -725,7 +725,7 @@ public static class SpRecord implements Serializable{ /** * 审批节点详情。当节点为标签或上级时,一个节点可能有多个分支 */ - @XStreamImplicit(itemFieldName="Details") + @XStreamImplicit(itemFieldName = "Details") private List details; } @@ -735,7 +735,7 @@ public static class SpRecord implements Serializable{ */ @XStreamAlias("Details") @Data - public static class Detail implements Serializable{ + public static class Detail implements Serializable { private static final long serialVersionUID = -8446107461495047603L; @@ -775,7 +775,7 @@ public static class Detail implements Serializable{ */ @Data @XStreamAlias("Approver") - public static class Approver implements Serializable{ + public static class Approver implements Serializable { private static final long serialVersionUID = 7360442444186683191L; @@ -791,7 +791,7 @@ public static class Approver implements Serializable{ */ @Data @XStreamAlias("Notifyer") - public static class Notifier implements Serializable{ + public static class Notifier implements Serializable { private static final long serialVersionUID = -4524071522890013920L; @@ -807,7 +807,7 @@ public static class Notifier implements Serializable{ */ @Data @XStreamAlias("Comments") - public static class Comment implements Serializable{ + public static class Comment implements Serializable { private static final long serialVersionUID = 6912156206252719485L; @@ -839,7 +839,7 @@ public static class Comment implements Serializable{ @Data @XStreamAlias("CommentUserInfo") - private static class CommentUserInfo implements Serializable{ + private static class CommentUserInfo implements Serializable { private static final long serialVersionUID = 5031739716823000947L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java index 2b32d9c40e..430e63a3a9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java @@ -5,7 +5,7 @@ import lombok.Data; import lombok.EqualsAndHashCode; import me.chanjar.weixin.common.api.WxConsts; -import me.chanjar.weixin.common.util.xml.*; +import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; /** * @author eYoung diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java index f1c9831b92..89c29e25ce 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java @@ -1,7 +1,5 @@ package me.chanjar.weixin.cp.bean.message; -import java.io.Serializable; - import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; import lombok.Data; @@ -11,6 +9,8 @@ import me.chanjar.weixin.cp.util.crypto.WxCpCryptUtil; import me.chanjar.weixin.cp.util.xml.XStreamTransformer; +import java.io.Serializable; + /** * 被动回复消息. * https://work.weixin.qq.com/api/doc#12975 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java index b0428469f1..9e72229015 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java @@ -5,12 +5,8 @@ import lombok.Data; import lombok.EqualsAndHashCode; import me.chanjar.weixin.common.api.WxConsts; -import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; -import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter; import me.chanjar.weixin.common.util.xml.XStreamReplaceNameConverter; -import java.io.Serializable; - /** * @author nickname263 * @date 2021-09-23 @@ -18,7 +14,7 @@ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) -public class WxCpXmlOutUpdateBtnMessage extends WxCpXmlOutMessage { +public class WxCpXmlOutUpdateBtnMessage extends WxCpXmlOutMessage { private static final long serialVersionUID = 976182367423048138L; @XStreamAlias("Button") @XStreamConverter(value = XStreamReplaceNameConverter.class) @@ -29,5 +25,4 @@ public WxCpXmlOutUpdateBtnMessage() { } - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java index 031dc02cb6..add435a874 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java @@ -1,7 +1,5 @@ package me.chanjar.weixin.cp.bean.message; -import java.io.Serializable; - import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; import lombok.Data; @@ -9,6 +7,8 @@ import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; +import java.io.Serializable; + @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java index bc1467e14c..1d21089002 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java @@ -1,8 +1,8 @@ package me.chanjar.weixin.cp.bean.messagebuilder; import me.chanjar.weixin.common.api.WxConsts; -import me.chanjar.weixin.cp.bean.message.WxCpMessage; import me.chanjar.weixin.cp.bean.article.MpnewsArticle; +import me.chanjar.weixin.cp.bean.message.WxCpMessage; import java.util.ArrayList; import java.util.Collections; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java index ef661e6ed4..4d12a51ce1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java @@ -1,8 +1,8 @@ package me.chanjar.weixin.cp.bean.messagebuilder; import me.chanjar.weixin.common.api.WxConsts; -import me.chanjar.weixin.cp.bean.message.WxCpMessage; import me.chanjar.weixin.cp.bean.article.NewArticle; +import me.chanjar.weixin.cp.bean.message.WxCpMessage; import java.util.ArrayList; import java.util.Collections; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java index ecee5108ea..d936cda0f3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java @@ -5,16 +5,17 @@ import me.chanjar.weixin.cp.bean.templatecard.*; import java.util.List; + /** *

  * 模板卡片消息Builder
  * 用法: WxCustomMessage m = WxCustomMessage.TEMPLATECARD().title(...)....toUser(...).build();
  * 
* - * @author yzts + * @author yzts * @date 2019-05-16 */ -public class TemplateCardBuilder extends BaseBuilder{ +public class TemplateCardBuilder extends BaseBuilder { /** * 模板卡片类型,文本通知型卡片填写 “text_notice”, * 图文展示型卡片此处填写 “news_notice”, @@ -88,7 +89,7 @@ public class TemplateCardBuilder extends BaseBuilder{ * 整体卡片的点击跳转事件,text_notice必填本字段 * 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2] */ - private Integer card_action_type; + private Integer card_action_type; /** * 跳转事件的url,card_action.type是1时必填 */ @@ -196,7 +197,7 @@ public TemplateCardBuilder sub_title_text(String sub_title_text) { return this; } - public TemplateCardBuilder vertical_contents(List vertical_contents) { + public TemplateCardBuilder vertical_contents(List vertical_contents) { this.vertical_contents = vertical_contents; return this; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java index 49222cd0a5..85954ba881 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java @@ -3,7 +3,6 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.experimental.Accessors; -import me.chanjar.weixin.cp.bean.oa.WxCpOaApplyEventRequest; import java.io.Serializable; import java.util.List; @@ -18,6 +17,7 @@ @Accessors(chain = true) public class SummaryInfo implements Serializable { private static final long serialVersionUID = 8262265774851382414L; + /** * 摘要行信息,用于定义某一行摘要显示的内容 */ @@ -28,6 +28,7 @@ public class SummaryInfo implements Serializable { @Accessors(chain = true) public static class SummaryInfoData implements Serializable { private static final long serialVersionUID = 5314161929610113856L; + /** * 摘要行显示文字,用于记录列表和消息通知的显示,不要超过20个字符 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java index 7d372cdfcf..8b16aefa82 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalApplier.java @@ -8,6 +8,7 @@ /** * 申请人信息 + * * @author element */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java index 4856af4194..b9c1235f10 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java @@ -1,11 +1,11 @@ package me.chanjar.weixin.cp.bean.oa; -import java.io.Serializable; -import java.util.List; - import com.google.gson.annotations.SerializedName; import lombok.Data; +import java.io.Serializable; +import java.util.List; + /** * @author element */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java index 5271312081..73e6d81d2c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java @@ -29,7 +29,7 @@ public String toJson() { return WxGsonBuilder.create().toJson(this); } - public static enum KEY { + public enum KEY { /** * template_id - 模板类型/模板id; @@ -52,9 +52,9 @@ public static enum KEY { @SerializedName("sp_status") SP_STATUS("sp_status"); - private String value; + private final String value; - private KEY(String value) { + KEY(String value) { this.value = value; } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecord.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecord.java index 3325eaa4ac..c2ac33176d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecord.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecord.java @@ -8,6 +8,7 @@ /** * 审批流程信息 + * * @author element */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecordDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecordDetail.java index 4c966c9d6f..371546d73c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecordDetail.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalRecordDetail.java @@ -8,11 +8,11 @@ /** * 审批节点详情 + * * @author element */ @Data public class WxCpApprovalRecordDetail implements Serializable { - private static final long serialVersionUID = -9142079764088495301L; /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApproverAttr.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApproverAttr.java index 15e55f2f72..ae65a82082 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApproverAttr.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApproverAttr.java @@ -19,9 +19,9 @@ public enum WxCpApproverAttr { @SerializedName("2") ALL_SIGN(2); - private Integer attr; + private final Integer attr; - private WxCpApproverAttr(Integer attr) { + WxCpApproverAttr(Integer attr) { this.attr = attr; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java index 93e975508a..9fb385a93f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java @@ -96,26 +96,26 @@ public class WxCpCheckinData implements Serializable { */ @SerializedName("deviceid") private String deviceId; - + /** * 标准打卡时间,指此次打卡时间对应的标准上班时间或标准下班时间 */ @SerializedName("sch_checkin_time") private Long schCheckinTime; - - /** + + /** * 规则id,表示打卡记录所属规则的id */ @SerializedName("groupid") private Integer groupId; - - /** + + /** * 班次id,表示打卡记录所属规则中,所属班次的id */ @SerializedName("schedule_id") private Integer scheduleId; - - /** + + /** * 时段id,表示打卡记录所属规则中,某一班次中的某一时段的id,如上下班时间为9:00-12:00、13:00-18:00的班次中,9:00-12:00为其中一组时段 */ @SerializedName("timeline_id") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java index 0c0bd8a07e..ef3ae1c08d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java @@ -8,7 +8,6 @@ /** * 企业微信打卡日报数据 - * */ @Data public class WxCpCheckinDayData implements Serializable { @@ -22,7 +21,7 @@ public class WxCpCheckinDayData implements Serializable { private BaseInfo baseInfo; @Data - public class BaseInfo implements Serializable{ + public class BaseInfo implements Serializable { private static final long serialVersionUID = 3679745559788648438L; @@ -102,7 +101,7 @@ public class RuleInfo implements Serializable { private List checkinTime; @Data - public class CheckinTime implements Serializable{ + public class CheckinTime implements Serializable { private static final long serialVersionUID = 1582835435812966332L; /** * work_sec 上班时间,为距离0点的时间差 @@ -117,6 +116,7 @@ public class CheckinTime implements Serializable{ private Integer offWorkSec; } } + /** * day_type 日报类型:0-工作日日报;1-休息日日报 */ @@ -131,7 +131,7 @@ public class CheckinTime implements Serializable{ private SummaryInfo summaryInfo; @Data - public class SummaryInfo implements Serializable{ + public class SummaryInfo implements Serializable { private static final long serialVersionUID = 3428576099259666595L; /** * checkin_count 当日打卡次数 @@ -171,7 +171,7 @@ public class SummaryInfo implements Serializable{ private List holidayInfos; @Data - public class HolidayInfos implements Serializable{ + public class HolidayInfos implements Serializable { private static final long serialVersionUID = -6671577072585561527L; /** * sp_number 假勤相关信息 @@ -195,7 +195,7 @@ public class SpTitle implements Serializable { private List data; @lombok.Data - public class Data implements Serializable{ + public class Data implements Serializable { private static final long serialVersionUID = -1672692024530543180L; /** * text 假勤信息摘要-标题文本 @@ -218,7 +218,7 @@ public class Data implements Serializable{ private SpDescription spDescription; @Data - public class SpDescription implements Serializable{ + public class SpDescription implements Serializable { private static final long serialVersionUID = 77680581771933449L; /** @@ -228,7 +228,7 @@ public class SpDescription implements Serializable{ private List data; @lombok.Data - public class Data implements Serializable{ + public class Data implements Serializable { private static final long serialVersionUID = 3555479101375365805L; /** * text 假勤信息摘要-标题文本 @@ -252,7 +252,7 @@ public class Data implements Serializable{ private List exceptionInfos; @Data - public class ExceptionInfos implements Serializable{ + public class ExceptionInfos implements Serializable { private static final long serialVersionUID = -5987438373762518299L; /** * exception 校准状态类型:1-迟到;2-早退;3-缺卡;4-旷工;5-地点异常;6-设备异常 @@ -280,7 +280,7 @@ public class ExceptionInfos implements Serializable{ private OtInfo otInfo; @Data - public class OtInfo implements Serializable{ + public class OtInfo implements Serializable { private static final long serialVersionUID = -6557759801572150175L; /** * ot_status 状态:0-无加班;1-正常;2-缺时长 @@ -308,7 +308,7 @@ public class OtInfo implements Serializable{ private List spItems; @Data - public class SpItem implements Serializable{ + public class SpItem implements Serializable { private static final long serialVersionUID = 2423158264958352024L; /** * type 类型:1-请假;2-补卡;3-出差;4-外出;100-外勤 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java index 003c68d2e2..559c8e46a3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java @@ -8,6 +8,8 @@ /** * 企业微信打卡月报数据 + * + * @author longliveh */ @Data @@ -21,8 +23,9 @@ public class WxCpCheckinMonthData implements Serializable { private BaseInfo baseInfo; @Data - public class BaseInfo implements Serializable { + public static class BaseInfo implements Serializable { private static final long serialVersionUID = -5368331890851903885L; + /** * record_type 记录类型:1-固定上下班;2-外出(此报表中不会出现外出打卡数据);3-按班次上下班;4-自由签到;5-加班;7-无规则 */ @@ -60,8 +63,9 @@ public class BaseInfo implements Serializable { private RuleInfo ruleInfo; @Data - public class RuleInfo implements Serializable { + public static class RuleInfo implements Serializable { private static final long serialVersionUID = 9152263355916880710L; + /** * groupid 所属规则Id */ @@ -76,10 +80,6 @@ public class RuleInfo implements Serializable { } } - - - - /** * summary_info 打卡人员所属规则信息 */ @@ -87,7 +87,7 @@ public class RuleInfo implements Serializable { private SummaryInfo summaryInfo; @Data - public class SummaryInfo implements Serializable { + public static class SummaryInfo implements Serializable { private static final long serialVersionUID = -1956770107240513983L; /** * work_days 应打卡天数 @@ -128,7 +128,7 @@ public class SummaryInfo implements Serializable { private List exceptionInfos; @Data - public class ExceptionInfo implements Serializable { + public static class ExceptionInfo implements Serializable { private static final long serialVersionUID = -4855850255704089359L; /** * exception 异常类型:1-迟到;2-早退;3-缺卡;4-旷工;5-地点异常;6-设备异常 @@ -156,9 +156,9 @@ public class ExceptionInfo implements Serializable { private List spItems; @Data - public class SpItem implements Serializable { - + public static class SpItem implements Serializable { private static final long serialVersionUID = 224472626753597080L; + /** * type 假勤类型:1-请假;2-补卡;3-出差;4-外出;100-外勤 */ @@ -203,8 +203,9 @@ public class SpItem implements Serializable { private OverWorkInfo overworkInfo; @Data - public class OverWorkInfo implements Serializable { + public static class OverWorkInfo implements Serializable { private static final long serialVersionUID = -9149524232645899305L; + /** * workday_over_sec 工作日加班时长 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java index c68741fcaf..f9ab9dd155 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java @@ -22,61 +22,61 @@ public class WxCpCropCheckinOption implements Serializable { private Long groupType; /** - * 打卡规则id + * 打卡规则id */ @SerializedName("groupid") private Long groupId; /** - * 打卡规则名称 + * 打卡规则名称 */ @SerializedName("groupname") private String groupName; /** - * 打卡时间,当规则类型为排班时没有意义 + * 打卡时间,当规则类型为排班时没有意义 */ @SerializedName("checkindate") private List checkinDate; /** - * 特殊日期-必须打卡日期信息,timestamp表示具体时间 + * 特殊日期-必须打卡日期信息,timestamp表示具体时间 */ @SerializedName("spe_workdays") private List speWorkdays; /** - * 特殊日期-不用打卡日期信息, timestamp表示具体时间 + * 特殊日期-不用打卡日期信息, timestamp表示具体时间 */ @SerializedName("spe_offdays") private List speOffDays; /** - * 是否同步法定节假日,true为同步,false为不同步,当前排班不支持 + * 是否同步法定节假日,true为同步,false为不同步,当前排班不支持 */ @SerializedName("sync_holidays") private Boolean syncHolidays; /** - * 是否打卡必须拍照,true为必须拍照,false为不必须拍照 + * 是否打卡必须拍照,true为必须拍照,false为不必须拍照 */ @SerializedName("need_photo") private Boolean needPhoto; /** - * 是否备注时允许上传本地图片,true为允许,false为不允许 + * 是否备注时允许上传本地图片,true为允许,false为不允许 */ @SerializedName("note_can_use_local_pic") private Boolean noteCanUseLocalPic; /** - * 是否非工作日允许打卡,true为允许,false为不允许 + * 是否非工作日允许打卡,true为允许,false为不允许 */ @SerializedName("allow_checkin_offworkday") private Boolean allowCheckinOffWorkDay; /** - * 是否允许提交补卡申请,true为允许,false为不允许 + * 是否允许提交补卡申请,true为允许,false为不允许 */ @SerializedName("allow_apply_offworkday") private Boolean allowApplyOffWorkDay; @@ -106,217 +106,217 @@ public class WxCpCropCheckinOption implements Serializable { private Long createTime; /** - * 打卡人员白名单,即不需要打卡人员,需要有设置白名单才能查看 + * 打卡人员白名单,即不需要打卡人员,需要有设置白名单才能查看 */ @SerializedName("white_users") private List whiteUsers; /** - * 打卡方式,0:手机;2:智慧考勤机;3:手机+智慧考勤机 + * 打卡方式,0:手机;2:智慧考勤机;3:手机+智慧考勤机 */ @SerializedName("type") private Integer type; /** - * 打卡方式,0:手机;2:智慧考勤机;3:手机+智慧考勤机 + * 打卡方式,0:手机;2:智慧考勤机;3:手机+智慧考勤机 */ @SerializedName("reporterinfo") private ReporterInfo reporterInfo; /** - * 加班信息,相关信息需要设置后才能显示 + * 加班信息,相关信息需要设置后才能显示 */ @SerializedName("ot_info") private OtInfo otInfo; /** - * 每月最多补卡次数,默认-1表示不限制 + * 每月最多补卡次数,默认-1表示不限制 */ @SerializedName("allow_apply_bk_cnt") private Integer allowApplyBkCnt; /** - * 范围外打卡处理方式,0-视为范围外异常,默认值;1-视为正常外勤;2:不允许范围外打卡 + * 范围外打卡处理方式,0-视为范围外异常,默认值;1-视为正常外勤;2:不允许范围外打卡 */ @SerializedName("option_out_range") private Integer optionOutRange; /** - * 规则创建人userid + * 规则创建人userid */ @SerializedName("create_userid") private String createUserid; /** - * 人脸识别打卡开关,true为启用,false为不启用 + * 人脸识别打卡开关,true为启用,false为不启用 */ @SerializedName("use_face_detect") private Boolean useFaceDetect; /** - * 允许补卡时限,默认-1表示不限制。单位天 + * 允许补卡时限,默认-1表示不限制。单位天 */ @SerializedName("allow_apply_bk_day_limit") private Integer allowApplyBkDayLimit; /** - * 规则最近编辑人userid + * 规则最近编辑人userid */ @SerializedName("update_userid") private String updateUserid; /** - * 加班信息,相关信息需要设置后才能显示 + * 加班信息,相关信息需要设置后才能显示 */ @SerializedName("schedulelist") private List schedulelist; /** - * 自由签到,上班打卡后xx秒可打下班卡 + * 自由签到,上班打卡后xx秒可打下班卡 */ @SerializedName("offwork_interval_time") private Integer offWorkIntervalTime; @Data - public static class CheckinDate implements Serializable{ + public static class CheckinDate implements Serializable { private static final long serialVersionUID = -8560643656775167406L; /** - * 工作日。若为固定时间上下班或自由上下班,则1到6分别表示星期一到星期六,0表示星期日 + * 工作日。若为固定时间上下班或自由上下班,则1到6分别表示星期一到星期六,0表示星期日 */ @SerializedName("workdays") private List workdays; /** - * 工作日上下班打卡时间信息 + * 工作日上下班打卡时间信息 */ @SerializedName("checkintime") private List checkinTime; /** - * 下班不需要打卡,true为下班不需要打卡,false为下班需要打卡 + * 下班不需要打卡,true为下班不需要打卡,false为下班需要打卡 */ @SerializedName("noneed_offwork") private Boolean noneedOffwork; /** - * 打卡时间限制(毫秒) + * 打卡时间限制(毫秒) */ @SerializedName("limit_aheadtime") private Long limitAheadtime; /** - * 允许迟到时间,单位ms + * 允许迟到时间,单位ms */ @SerializedName("flex_on_duty_time") private Integer flexOnDutyTime; /** - * 允许早退时间,单位ms + * 允许早退时间,单位ms */ @SerializedName("flex_off_duty_time") private Integer flexOffDutyTime; } @Data - public static class CheckinTime implements Serializable{ + public static class CheckinTime implements Serializable { private static final long serialVersionUID = -5507709858609705279L; /** - * 上班时间,表示为距离当天0点的秒数。 + * 上班时间,表示为距离当天0点的秒数。 */ @SerializedName("work_sec") private Integer workSec; /** - * 下班时间,表示为距离当天0点的秒数。 + * 下班时间,表示为距离当天0点的秒数。 */ @SerializedName("off_work_sec") private Integer offWorkSec; /** - * 上班提醒时间,表示为距离当天0点的秒数。。 + * 上班提醒时间,表示为距离当天0点的秒数。。 */ @SerializedName("remind_work_sec") private Integer remindWorkSec; /** - * 下班提醒时间,表示为距离当天0点的秒数。 + * 下班提醒时间,表示为距离当天0点的秒数。 */ @SerializedName("remind_off_work_sec") private Integer remindOffWorkSec; } @Data - public static class SpeWorkday implements Serializable{ + public static class SpeWorkday implements Serializable { private static final long serialVersionUID = -4620710297258742666L; /** - * 特殊日期-必须打卡日期时间戳 + * 特殊日期-必须打卡日期时间戳 */ @SerializedName("timestamp") private Long timestamp; /** - * 特殊日期备注 + * 特殊日期备注 */ @SerializedName("notes") private String notes; /** - * 特殊日期-必须打卡日期-上下班打卡时间 + * 特殊日期-必须打卡日期-上下班打卡时间 */ @SerializedName("checkintime") private List checkinTime; } @Data - public static class SpeOffDay implements Serializable{ + public static class SpeOffDay implements Serializable { private static final long serialVersionUID = 9214798931489490993L; /** - * 特殊日期-不用打卡日期时间戳 + * 特殊日期-不用打卡日期时间戳 */ @SerializedName("timestamp") private Long timestamp; /** - * 特殊日期备注 + * 特殊日期备注 */ @SerializedName("notes") private String notes; } @Data - public static class WifiMacInfo implements Serializable{ + public static class WifiMacInfo implements Serializable { private static final long serialVersionUID = 6742659716677227089L; /** - * WiFi打卡地点名称 + * WiFi打卡地点名称 */ @SerializedName("wifiname") private String wifiname; /** - * WiFi打卡地点MAC地址/bssid + * WiFi打卡地点MAC地址/bssid */ @SerializedName("wifimac") private String wifimac; } @Data - public static class LocInfo implements Serializable{ + public static class LocInfo implements Serializable { private static final long serialVersionUID = -5591379191341944101L; /** - * 位置打卡地点纬度,是实际纬度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准 + * 位置打卡地点纬度,是实际纬度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准 */ @SerializedName("lat") private Long lat; /** - * 位置打卡地点经度,是实际经度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准 + * 位置打卡地点经度,是实际经度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准 */ @SerializedName("lng") private Long lng; @@ -334,31 +334,31 @@ public static class LocInfo implements Serializable{ private String locDetail; /** - * 允许打卡范围(米) + * 允许打卡范围(米) */ @SerializedName("distance") private Integer distance; } @Data - public static class Range implements Serializable{ + public static class Range implements Serializable { private static final long serialVersionUID = 8940086218556453088L; /** - * 打卡人员中,单个打卡人员节点的userid + * 打卡人员中,单个打卡人员节点的userid */ @SerializedName("party_id") private List partyid; /** - * 打卡人员中,部门节点的id + * 打卡人员中,部门节点的id */ @SerializedName("userid") private List userid; /** - * 打卡人员中,标签节点的标签id + * 打卡人员中,标签节点的标签id */ @SerializedName("tagid") private List tagid; @@ -367,16 +367,16 @@ public static class Range implements Serializable{ } @Data - public static class ReporterInfo implements Serializable{ + public static class ReporterInfo implements Serializable { private static final long serialVersionUID = 1132450350458936772L; /** - * 汇报对象,每个汇报人用userid表示 + * 汇报对象,每个汇报人用userid表示 */ @SerializedName("reporters") private List reporters; /** - * 汇报对象更新时间 + * 汇报对象更新时间 */ @SerializedName("updatetime") private long updateTime; @@ -392,7 +392,7 @@ public static class Reporter implements Serializable { } @Data - public static class OtInfo implements Serializable{ + public static class OtInfo implements Serializable { private static final long serialVersionUID = 1610150484871066199L; @@ -406,31 +406,31 @@ public static class OtInfo implements Serializable{ private Integer type; /** - * 允许工作日加班,true为允许,false为不允许 + * 允许工作日加班,true为允许,false为不允许 */ @SerializedName("allow_ot_workingday") private Boolean allowOtWorkingDay; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("allow_ot_nonworkingday") private Boolean allowOtNonworkingDay; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("otcheckinfo") private OtCheckInfo otcheckinfo; /** - * 更新时间 + * 更新时间 */ @SerializedName("uptime") private Long uptime; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("otapplyinfo") private OtApplyInfo otapplyinfo; @@ -442,91 +442,91 @@ public static class OtCheckInfo implements Serializable { private static final long serialVersionUID = -2363047492489556390L; /** - * 允许工作日加班-加班开始时间:下班后xx秒开始计算加班,距离最晚下班时间的秒数,例如,1800(30分钟 乘以 60秒),默认值30分钟 + * 允许工作日加班-加班开始时间:下班后xx秒开始计算加班,距离最晚下班时间的秒数,例如,1800(30分钟 乘以 60秒),默认值30分钟 */ @SerializedName("ot_workingday_time_start") private Integer otWorkingDayTimeStart; /** - * 允许工作日加班-最短加班时长:不足xx秒视为未加班,单位秒,默认值30分钟 + * 允许工作日加班-最短加班时长:不足xx秒视为未加班,单位秒,默认值30分钟 */ @SerializedName("ot_workingday_time_min") private Integer otWorkingDayTimeMin; /** - * 允许工作日加班-最长加班时长:超过则视为加班xx秒,单位秒,默认值240分钟 + * 允许工作日加班-最长加班时长:超过则视为加班xx秒,单位秒,默认值240分钟 */ @SerializedName("ot_workingday_time_max") private Integer otWorkingDayTimeMax; /** - * 允许非工作日加班-最短加班时长:不足xx秒视为未加班,单位秒,默认值30分钟 + * 允许非工作日加班-最短加班时长:不足xx秒视为未加班,单位秒,默认值30分钟 */ @SerializedName("ot_nonworkingday_time_min") private Integer otNonworkingDayTimeMin; /** - * 允许非工作日加班-最长加班时长:超过则视为加班xx秒 单位秒,默认值240分钟 + * 允许非工作日加班-最长加班时长:超过则视为加班xx秒 单位秒,默认值240分钟 */ @SerializedName("ot_nonworkingday_time_max") private Integer otNonworkingDayTimeMax; /** - * 非工作日加班,跨天时间,距离当天00:00的秒数 + * 非工作日加班,跨天时间,距离当天00:00的秒数 */ @SerializedName("ot_nonworkingday_spanday_time") private Integer otNonworkingDaySpanDayTime; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("ot_workingday_restinfo") private OtWorkingDayRestInfo otWorkingdayRestinfo; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("ot_nonworkingday_restinfo") private OtNonworkingDayRestInfo otNonworkingdayRestinfo; } @Data - public static class OtWorkingDayRestInfo implements Serializable{ + public static class OtWorkingDayRestInfo implements Serializable { private static final long serialVersionUID = -4011047369711928306L; /** - * 工作日加班-休息扣除类型:0-不开启扣除;1-指定休息时间扣除;2-按加班时长扣除休息时间 + * 工作日加班-休息扣除类型:0-不开启扣除;1-指定休息时间扣除;2-按加班时长扣除休息时间 */ @SerializedName("type") private Integer type; /** - * 工作日加班-指定休息时间配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为1时有意义 + * 工作日加班-指定休息时间配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为1时有意义 */ @SerializedName("fix_time_rule") private FixTimeRule fixTimeRule; /** - * 工作日加班-按加班时长扣除配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为2时有意义 + * 工作日加班-按加班时长扣除配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为2时有意义 */ @SerializedName("cal_ottime_rule") private CalOtTimeRule calOttimeRule; } @Data - public static class FixTimeRule implements Serializable{ + public static class FixTimeRule implements Serializable { private static final long serialVersionUID = 5709478500196619664L; /** - * 工作日加班-指定休息时间的开始时间, 距离当天00:00的秒数 + * 工作日加班-指定休息时间的开始时间, 距离当天00:00的秒数 */ @SerializedName("fix_time_begin_sec") private Integer fixTimeBeginSec; /** - * 工作日加班-指定休息时间的结束时间, 距离当天00:00的秒数 + * 工作日加班-指定休息时间的结束时间, 距离当天00:00的秒数 */ @SerializedName("fix_time_end_sec") private Integer fixTimeEndSec; @@ -538,91 +538,92 @@ public static class CalOtTimeRule implements Serializable { private static final long serialVersionUID = -2407839982631243413L; /** - * 工作日加班-按加班时长扣除条件信息 + * 工作日加班-按加班时长扣除条件信息 */ @SerializedName("items") private List items; } + @Data - public static class Item implements Serializable{ + public static class Item implements Serializable { private static final long serialVersionUID = 5235770378506228461L; /** - * 加班满-时长(秒) + * 加班满-时长(秒) */ @SerializedName("ot_time") private Integer otTime; /** - * 对应扣除-时长(秒) + * 对应扣除-时长(秒) */ @SerializedName("rest_time") private Integer restTime; } @Data - public static class OtNonworkingDayRestInfo implements Serializable{ + public static class OtNonworkingDayRestInfo implements Serializable { private static final long serialVersionUID = 3773846077049838088L; /** - * 非工作日加班-休息扣除类型:0-不开启扣除;1-指定休息时间扣除;2-按加班时长扣除休息时间 + * 非工作日加班-休息扣除类型:0-不开启扣除;1-指定休息时间扣除;2-按加班时长扣除休息时间 */ @SerializedName("type") private Integer type; /** - * 非工作日加班-指定休息时间配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为1时有意义 + * 非工作日加班-指定休息时间配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为1时有意义 */ @SerializedName("fix_time_rule") private FixTimeRule fixTimeRule; /** - * 非工作日加班-按加班时长扣除配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为2时有意义 + * 非工作日加班-按加班时长扣除配置信息,当group.ot_info.otcheckinfo.ot_workingday_restinfo.type为2时有意义 */ @SerializedName("cal_ottime_rule") private CalOtTimeRule calOttimeRule; } @Data - public static class OtApplyInfo implements Serializable{ + public static class OtApplyInfo implements Serializable { private static final long serialVersionUID = 961217471918884103L; /** - * 允许工作日加班,true为允许,false为不允许 + * 允许工作日加班,true为允许,false为不允许 */ @SerializedName("allow_ot_workingday") private Boolean allowOtWorkingDay; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("allow_ot_nonworkingday") private Boolean allowOtNonworkingDay; /** - * 更新时间 + * 更新时间 */ @SerializedName("uptime") private Long uptime; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("ot_workingday_restinfo") private OtWorkingDayRestInfo otWorkingdayRestinfo; /** - * 允许非工作日加班,true为允许,flase为不允许 + * 允许非工作日加班,true为允许,flase为不允许 */ @SerializedName("ot_nonworkingday_restinfo") private OtNonworkingDayRestInfo otNonworkingdayRestinfo; /** - * 非工作日加班,跨天时间,距离当天00:00的秒数 + * 非工作日加班,跨天时间,距离当天00:00的秒数 */ @SerializedName("ot_nonworkingday_spanday_time") private Integer otNonworkingDaySpanDayTime; @@ -630,78 +631,78 @@ public static class OtApplyInfo implements Serializable{ } @Data - public static class Schedule implements Serializable{ + public static class Schedule implements Serializable { private static final long serialVersionUID = -2461113644925307266L; /** - * 班次id + * 班次id */ @SerializedName("schedule_id") private Integer scheduleId; /** - * 班次名称 + * 班次名称 */ @SerializedName("schedule_name") private String scheduleName; /** - * 班次上下班时段信息 + * 班次上下班时段信息 */ @SerializedName("time_section") private List timeSection; /** - * 允许提前打卡时间 + * 允许提前打卡时间 */ @SerializedName("limit_aheadtime") private Long limitAheadTime; /** - * 下班xx秒后不允许打下班卡 + * 下班xx秒后不允许打下班卡 */ @SerializedName("limit_offtime") private Integer limitOffTime; /** - * 下班不需要打卡 + * 下班不需要打卡 */ @SerializedName("noneed_offwork") private Boolean noNeedOffWork; /** - * 是否允许弹性时间 + * 是否允许弹性时间 */ @SerializedName("allow_flex") private Boolean allowFlex; /** - * 允许迟到时间 + * 允许迟到时间 */ @SerializedName("flex_on_duty_time") private Integer flexOnDutyTime; /** - * 允许早退时间 + * 允许早退时间 */ @SerializedName("flex_off_duty_time") private Integer flexOffDutyTime; /** - * 非工作日加班,跨天时间,距离当天00:00的秒数 + * 非工作日加班,跨天时间,距离当天00:00的秒数 */ @SerializedName("late_rule") private LateRule lateRule; /** - * 最早可打卡时间限制 + * 最早可打卡时间限制 */ @SerializedName("max_allow_arrive_early") private Integer maxAllowArriveEarly; /** - * 最晚可打卡时间限制,max_allow_arrive_early、max_allow_arrive_early与flex_on_duty_time、flex_off_duty_time互斥,当设置其中一组时,另一组数值置0 + * 最晚可打卡时间限制,max_allow_arrive_early、max_allow_arrive_early与flex_on_duty_time、flex_off_duty_time互斥,当设置其中一组时,另一组数值置0 */ @SerializedName("max_allow_arrive_late") private Integer maxAllowArriveLate; @@ -714,49 +715,49 @@ public static class TimeSection implements Serializable { private static final long serialVersionUID = 7497252128339062724L; /** - * 时段id,为班次中某一堆上下班时间组合的id + * 时段id,为班次中某一堆上下班时间组合的id */ @SerializedName("time_id") private Integer timeId; /** - * 上班时间,表示为距离当天0点的秒数。 + * 上班时间,表示为距离当天0点的秒数。 */ @SerializedName("work_sec") private Integer workSec; /** - * 下班时间,表示为距离当天0点的秒数。 + * 下班时间,表示为距离当天0点的秒数。 */ @SerializedName("off_work_sec") private Integer offWorkSec; /** - * 上班提醒时间,表示为距离当天0点的秒数。 + * 上班提醒时间,表示为距离当天0点的秒数。 */ @SerializedName("remind_work_sec") private Long remindWorkSec; /** - * 下班提醒时间,表示为距离当天0点的秒数。 + * 下班提醒时间,表示为距离当天0点的秒数。 */ @SerializedName("remind_off_work_sec") private Integer remindOffWorkSec; /** - * 休息开始时间,仅单时段支持,距离0点的秒 + * 休息开始时间,仅单时段支持,距离0点的秒 */ @SerializedName("rest_begin_time") private Integer restBeginTime; /** - * 休息结束时间,仅单时段支持,距离0点的秒 + * 休息结束时间,仅单时段支持,距离0点的秒 */ @SerializedName("rest_end_time") private Integer restEndTime; /** - * 是否允许休息 + * 是否允许休息 */ @SerializedName("allow_rest") private Boolean allowRest; @@ -764,37 +765,37 @@ public static class TimeSection implements Serializable { @Data - public static class LateRule implements Serializable{ + public static class LateRule implements Serializable { private static final long serialVersionUID = 5604969713950037053L; /** - * 是否允许超时下班(下班晚走次日晚到)允许时onwork_flex_time,offwork_after_time才有意义 + * 是否允许超时下班(下班晚走次日晚到)允许时onwork_flex_time,offwork_after_time才有意义 */ @SerializedName("allow_offwork_after_time") private Boolean allowOffWorkAfterTime; /** - * 迟到规则时间 + * 迟到规则时间 */ @SerializedName("timerules") private List timerules; } @Data - public static class TimeRule implements Serializable{ + public static class TimeRule implements Serializable { private static final long serialVersionUID = 5680614050081598333L; /** - * 晚走的时间 距离最晚一个下班的时间单位:秒 + * 晚走的时间 距离最晚一个下班的时间单位:秒 */ @SerializedName("offwork_after_time") private Integer offWorkAfterTime; /** - * 第二天第一个班次允许迟到的弹性时间单位:秒 + * 第二天第一个班次允许迟到的弹性时间单位:秒 */ @SerializedName("onwork_flex_time") private Integer onWorkFlexTime; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java index 3d0d1f87f5..d34d233a30 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java @@ -33,7 +33,7 @@ public class WxCpSetCheckinSchedule implements Serializable { @Data - public static class Item implements Serializable{ + public static class Item implements Serializable { private static final long serialVersionUID = -918057757709951513L; @@ -44,7 +44,7 @@ public static class Item implements Serializable{ private String userid; /** - * 要设置的天日期,取值在1-31之间。联合yearmonth组成唯一日期 比如20201205 + * 要设置的天日期,取值在1-31之间。联合yearmonth组成唯一日期 比如20201205 */ @SerializedName("day") private Integer day; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSpStatus.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSpStatus.java index c3d8005f50..029b7c144e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSpStatus.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSpStatus.java @@ -46,9 +46,9 @@ public enum WxCpSpStatus { @SerializedName("10") ALREADY_PAY(10); - private Integer status; + private final Integer status; - private WxCpSpStatus(Integer status) { + WxCpSpStatus(Integer status) { this.status = status; } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java index 23a8749620..6ae69c1895 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java @@ -131,10 +131,10 @@ public static class Vacation implements Serializable { * 关联审批单控件 */ @Data - public static class RelatedApproval implements Serializable{ + public static class RelatedApproval implements Serializable { private static final long serialVersionUID = 8629601623267510738L; /** - *关联审批单的模板名 + * 关联审批单的模板名 */ @SerializedName("template_names") private List templateNames; @@ -160,7 +160,7 @@ public static class RelatedApproval implements Serializable{ } @Data - public static class TemplateName implements Serializable{ + public static class TemplateName implements Serializable { private static final long serialVersionUID = 3152481506054355937L; private String text; private String lang; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateConfig.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateConfig.java index 54213d9d90..3bbb4b2cb5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateConfig.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateConfig.java @@ -14,6 +14,7 @@ * Contact-成员/部门; * Table-明细; * Attendance-假勤组件(请假、外出、出差、加班) + * * @author gyv12345@163.com */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/control/TemplateTable.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/control/TemplateTable.java index 08cdd5d4e7..1022e1662d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/control/TemplateTable.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/control/TemplateTable.java @@ -7,7 +7,6 @@ import java.util.List; /** - * * @author gyv12345@163.com */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java index 5e2ee481fc..19dc5f38e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java @@ -86,7 +86,7 @@ public EventBuilder state(String state) { return this; } - public EventBuilder source(String source){ + public EventBuilder source(String source) { this.source = source; return this; } @@ -96,12 +96,12 @@ public EventBuilder welcomeCode(String welcomeCode) { return this; } - public EventBuilder failReason(String failReason){ + public EventBuilder failReason(String failReason) { this.failReason = failReason; return this; } - public EventBuilder id(String id){ + public EventBuilder id(String id) { this.id = id; return this; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/NewsBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/NewsBuilder.java index 190ab1c971..60fb3b8a13 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/NewsBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/NewsBuilder.java @@ -20,7 +20,7 @@ public NewsBuilder addArticle(Item... items) { return this; } - public NewsBuilder articles(List articles){ + public NewsBuilder articles(List articles) { this.articles = articles; return this; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java index d4dd4b04d2..352abeb04c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java @@ -1,6 +1,5 @@ package me.chanjar.weixin.cp.bean.outxmlbuilder; -import me.chanjar.weixin.cp.bean.message.WxCpXmlOutTaskCardMessage; import me.chanjar.weixin.cp.bean.message.WxCpXmlOutUpdateBtnMessage; /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java index 4a7e3c00e1..bff28c415f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java @@ -1,12 +1,12 @@ package me.chanjar.weixin.cp.bean.taskcard; -import java.io.Serializable; - import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import java.io.Serializable; + /** *
  *  任务卡片按钮
@@ -22,7 +22,7 @@
 @AllArgsConstructor
 public class TaskCardButton implements Serializable {
   private static final long serialVersionUID = -4301684507150486556L;
-  
+
   private String key;
   private String name;
   private String replaceName;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java
index 2f6b5b1a97..8e76ca00bd 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java
@@ -5,12 +5,12 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
-import org.apache.commons.lang3.StringUtils;
 
 import java.io.Serializable;
 
 /**
  * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
+ *
  * @author yzts
  * @date 2021/9/22
  */
@@ -18,7 +18,7 @@
 @Builder
 @NoArgsConstructor
 @AllArgsConstructor
-public class CheckboxOption  implements Serializable {
+public class CheckboxOption implements Serializable {
   private static final long serialVersionUID = 5405702239190050250L;
 
   /**
@@ -41,7 +41,7 @@ public JsonObject toJson() {
     JsonObject optionJson = new JsonObject();
     optionJson.addProperty("id", this.getId());
     optionJson.addProperty("text", this.getText());
-    if(null != this.getIs_checked()) {
+    if (null != this.getIs_checked()) {
       optionJson.addProperty("is_checked", this.getIs_checked());
     }
     return optionJson;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java
index 4f1160e933..397420820b 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java
@@ -11,6 +11,7 @@
 
 /**
  * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
+ *
  * @author yzts
  * @date 2021/9/22
  */
@@ -46,7 +47,7 @@ public class HorizontalContent implements Serializable {
   public JsonObject toJson() {
     JsonObject hContentJson = new JsonObject();
 
-    if(null !=  this.getType()){
+    if (null != this.getType()) {
       hContentJson.addProperty("type", this.getType());
     }
     hContentJson.addProperty("keyname", this.getKeyname());
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java
index 145a6c4426..95ab92f3f2 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java
@@ -13,6 +13,7 @@
 
 /**
  * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器
+ *
  * @author yzts
  * @date 2021/9/22
  */
@@ -54,7 +55,7 @@ public JsonObject toJson() {
     }
 // select_list
     List options = this.getOptions();
-    if(null != options && options.size() > 0) {
+    if (null != options && options.size() > 0) {
       JsonArray optionJsonArray = new JsonArray();
       for (CheckboxOption option : this.getOptions()) {
         JsonObject tempObject = option.toJson();
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java
index 4ac9e005e4..28722c8d75 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java
@@ -5,12 +5,12 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
-import org.apache.commons.lang3.StringUtils;
 
 import java.io.Serializable;
 
 /**
  * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
+ *
  * @author yzts
  * @date 2021/9/22
  */
@@ -18,7 +18,7 @@
 @Builder
 @NoArgsConstructor
 @AllArgsConstructor
-public class TemplateCardButton  implements Serializable {
+public class TemplateCardButton implements Serializable {
   private static final long serialVersionUID = -4826551822490837002L;
 
   /**
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java
index 6d297e9c0b..79fd92ff90 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java
@@ -11,6 +11,7 @@
 
 /**
  * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3
+ *
  * @author yzts
  * @date 2021/9/22
  */
@@ -45,7 +46,7 @@ public class TemplateCardJump implements Serializable {
   public JsonObject toJson() {
     JsonObject hContentJson = new JsonObject();
 
-    if(null !=  this.getType()){
+    if (null != this.getType()) {
       hContentJson.addProperty("type", this.getType());
     }
     hContentJson.addProperty("title", this.getTitle());
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java
index 7d364ff106..2dc4021847 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java
@@ -1,7 +1,6 @@
 package me.chanjar.weixin.cp.bean.templatecard;
 
 import com.google.gson.JsonObject;
-import kotlin.text.UStringsKt;
 import lombok.AllArgsConstructor;
 import lombok.Builder;
 import lombok.Data;
@@ -12,6 +11,7 @@
 
 /**
  * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4
+ *
  * @author yzts
  * @date 2021/9/22
  */

From a79b05cd45489e0e4e27d2cd6f02a3c307e56e89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE=E6=9E=97?= 
Date: Wed, 26 Jan 2022 06:06:49 +0000
Subject: [PATCH 119/622] =?UTF-8?q?:memo:=20=E5=A2=9E=E5=8A=A0jeepay?=
 =?UTF-8?q?=E8=B5=9E=E5=8A=A9=E5=B9=BF=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/README.md b/README.md
index d31f0beb06..7d72b14919 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,13 @@
       
     
   
+  
+    
+      
+        计全支付Jeepay,开源支付系统
+      
+    
+  
   
     
       

From 1af394cdd909c26a2fdb137e38cc94b6ba55c5f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E5=87=AF=E6=97=8B?=
 <42696884+azouever@users.noreply.github.com>
Date: Wed, 26 Jan 2022 14:27:14 +0800
Subject: [PATCH 120/622] =?UTF-8?q?:new:=20#2198=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E6=A0=B9=E6=8D=AE?=
 =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF=E6=95=B0=E6=8D=AE=E8=8E=B7?=
 =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E5=AE=89=E5=85=A8=E7=AD=89=E7=BA=A7?=
 =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../api/WxMaSafetyRiskControlService.java     | 27 +++++++
 .../wx/miniapp/api/WxMaService.java           |  8 ++
 .../miniapp/api/impl/BaseWxMaServiceImpl.java |  5 ++
 .../WxMaSafetyRiskControlServiceImpl.java     | 35 ++++++++
 .../bean/marketing/WxMaUserAction.java        |  1 -
 .../WxMaUserSafetyRiskRankRequest.java        | 81 +++++++++++++++++++
 .../WxMaUserSafetyRiskRankResponse.java       | 42 ++++++++++
 .../response/WxMaShopAddOrderResponse.java    |  2 +-
 .../miniapp/constant/WxMaApiUrlConstants.java | 11 +++
 .../WxMaSafetyRiskControlServiceImplTest.java | 34 ++++++++
 10 files changed, 244 insertions(+), 2 deletions(-)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSafetyRiskControlService.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImpl.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/request/WxMaUserSafetyRiskRankRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java
 create mode 100644 weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImplTest.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSafetyRiskControlService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSafetyRiskControlService.java
new file mode 100644
index 0000000000..c84a93d13d
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSafetyRiskControlService.java
@@ -0,0 +1,27 @@
+package cn.binarywang.wx.miniapp.api;
+
+import cn.binarywang.wx.miniapp.bean.safety.request.WxMaUserSafetyRiskRankRequest;
+import cn.binarywang.wx.miniapp.bean.safety.response.WxMaUserSafetyRiskRankResponse;
+import me.chanjar.weixin.common.error.WxErrorException;
+
+/**
+ * 
+ * 小程序安全风控相关接口
+ * 
+ * + * @author
azouever + */ +public interface WxMaSafetyRiskControlService { + + /** + *
+   * 根据提交的用户信息数据获取用户的安全等级,无需用户授权
+   * 文档:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/safety-control-capability/riskControl.getUserRiskRank.html
+   * 
+ * + * @param wxMaUserSafetyRiskRankRequest 获取用户安全等级请求 + * @throws WxErrorException 通用异常 + */ + WxMaUserSafetyRiskRankResponse getUserRiskRank(WxMaUserSafetyRiskRankRequest wxMaUserSafetyRiskRankRequest) throws WxErrorException; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index 81ed12aa89..8b357a8476 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -484,4 +484,12 @@ public interface WxMaService extends WxService { */ WxMaImmediateDeliveryService getWxMaImmediateDeliveryService(); + + /** + * 小程序安全风控相关接口服务 + * + * @return safetyRiskControl service + */ + WxMaSafetyRiskControlService getSafetyRiskControlService(); + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index 21ca0f7214..62ca188d53 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -78,6 +78,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaDeviceSubscribeService deviceSubscribeService = new WxMaDeviceSubscribeServiceImpl(this); private final WxMaMarketingService marketingService = new WxMaMarketingServiceImpl(this); private final WxMaImmediateDeliveryService immediateDeliveryService = new WxMaImmediateDeliveryServiceImpl(this); + private final WxMaSafetyRiskControlService safetyRiskControlService = new WxMaSafetyRiskControlServiceImpl(this); private Map configMap; private int retrySleepMillis = 1000; private int maxRetryTimes = 5; @@ -587,4 +588,8 @@ public WxMaReimburseInvoiceService getReimburseInvoiceService() { public WxMaImmediateDeliveryService getWxMaImmediateDeliveryService() { return this.immediateDeliveryService; } + + @Override + public WxMaSafetyRiskControlService getSafetyRiskControlService(){ return this.safetyRiskControlService; } + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImpl.java new file mode 100644 index 0000000000..8152c72c99 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImpl.java @@ -0,0 +1,35 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaSafetyRiskControlService; +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.safety.request.WxMaUserSafetyRiskRankRequest; +import cn.binarywang.wx.miniapp.bean.safety.response.WxMaUserSafetyRiskRankResponse; +import cn.binarywang.wx.miniapp.constant.WxMaConstants; +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; + +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.InstantDelivery.SafetyRiskControl.GET_USER_RISK_RANK; + +/** + * @author azouever + */ + +@RequiredArgsConstructor +public class WxMaSafetyRiskControlServiceImpl implements WxMaSafetyRiskControlService { + + private final WxMaService service; + + @Override + public WxMaUserSafetyRiskRankResponse getUserRiskRank(WxMaUserSafetyRiskRankRequest wxMaUserSafetyRiskRankRequest) throws WxErrorException { + String responseContent = this.service.post(GET_USER_RISK_RANK, wxMaUserSafetyRiskRankRequest.toJson()); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(WxMaConstants.ERRCODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaUserSafetyRiskRankResponse.fromJson(responseContent); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java index 5427aa2ab5..2cde905be2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/marketing/WxMaUserAction.java @@ -6,7 +6,6 @@ import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; -import sun.rmi.runtime.Log; import java.io.Serializable; import java.util.List; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/request/WxMaUserSafetyRiskRankRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/request/WxMaUserSafetyRiskRankRequest.java new file mode 100644 index 0000000000..da9384b1af --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/request/WxMaUserSafetyRiskRankRequest.java @@ -0,0 +1,81 @@ +package cn.binarywang.wx.miniapp.bean.safety.request; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 获取用户的安全等级请求参数 + * + * @author azouever + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaUserSafetyRiskRankRequest implements Serializable { + private static final long serialVersionUID = 1052539797739665816L; + + + /** + * 小程序appid + * 必填 + */ + private String appid; + + /** + * 用户的openid + * 必填 + */ + private String openid; + + /** + * 场景值,0:注册,1:营销作弊 + * 必填 + */ + private Integer scene; + + /** + * 用户手机号 + * 非必填 + */ + @SerializedName("mobile_no") + private String mobileNo; + + /** + * 用户访问源ip + * 必填 + */ + @SerializedName("client_ip") + private String clientIp; + + /** + * 用户邮箱地址 + * 非必填 + */ + @SerializedName("email_address") + private String emailAddress; + + /** + * 额外补充信息 + * 非必填 + */ + @SerializedName("extended_info") + private String extendedInfo; + + /** + * false:正式调用,true:测试调用 + * 非必填 + */ + @SerializedName("is_test") + private boolean isTest; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java new file mode 100644 index 0000000000..1a3a5d1f5d --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java @@ -0,0 +1,42 @@ +package cn.binarywang.wx.miniapp.bean.safety.response; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * 获取用户的安全等级响应参数 + * + * @author azouever + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaUserSafetyRiskRankResponse implements Serializable { + + private static final long serialVersionUID = -2434941857751339150L; + + /** + * 唯一请求标识,标记单次请求 + */ + @SerializedName("unoin_id") + private Integer unoinId; + + /** + * 用户风险等级 + * 合法值 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/safety-control-capability/riskControl.getUserRiskRank.html + */ + @SerializedName("risk_rank") + private Integer riskRank; + + public static WxMaUserSafetyRiskRankResponse fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxMaUserSafetyRiskRankResponse.class); + } +} + diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java index 4e724423bb..ecd4ff9b77 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java @@ -16,5 +16,5 @@ public class WxMaShopAddOrderResponse extends WxMaShopBaseResponse implements Se private static final long serialVersionUID = -8923439859095040010L; @SerializedName("data") - private WxMaShopAddOrderResult date; + private WxMaShopAddOrderResult data; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 5d4379b9d1..3fd6719f7c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -523,6 +523,17 @@ interface Cancel { } + + /** + * 安全风控 + */ + interface SafetyRiskControl { + /** + * 获取用户的安全等级,无需用户授权 + */ + String GET_USER_RISK_RANK = "https://api.weixin.qq.com/wxa/getuserriskrank"; + } + } } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImplTest.java new file mode 100644 index 0000000000..9a2491fee7 --- /dev/null +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSafetyRiskControlServiceImplTest.java @@ -0,0 +1,34 @@ +package cn.binarywang.wx.miniapp.api.impl; + + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.safety.request.WxMaUserSafetyRiskRankRequest; +import cn.binarywang.wx.miniapp.bean.safety.response.WxMaUserSafetyRiskRankResponse; +import cn.binarywang.wx.miniapp.test.ApiTestModule; +import com.google.inject.Inject; +import me.chanjar.weixin.common.error.WxErrorException; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import static org.testng.AssertJUnit.assertNotNull; + +@Test +@Guice(modules = ApiTestModule.class) +public class WxMaSafetyRiskControlServiceImplTest { + + @Inject + protected WxMaService wxService; + + @Test + public void testGetUserRiskRank() throws WxErrorException { + WxMaUserSafetyRiskRankRequest wxMaUserSafetyRiskRankRequest = WxMaUserSafetyRiskRankRequest.builder() + .appid("") + .openid("") + .scene(1) + .isTest(true) + .build(); + WxMaUserSafetyRiskRankResponse wxMaUserSafetyRiskRankResponse = this.wxService.getSafetyRiskControlService().getUserRiskRank(wxMaUserSafetyRiskRankRequest); + assertNotNull(wxMaUserSafetyRiskRankResponse); + } + +} From 6f23c5e2891fd6d57221fc4893942aedd2d4f042 Mon Sep 17 00:00:00 2001 From: dream <52assert@gmail.com> Date: Tue, 8 Feb 2022 10:20:31 +0000 Subject: [PATCH 121/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8DOA=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=89=93=E5=8D=A1=E6=9C=88=E6=8A=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=9C=88=E8=B7=A8=E5=BA=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java index b921798e7b..3e8277a850 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java @@ -29,7 +29,7 @@ public class WxCpOaServiceImpl implements WxCpOaService { private final WxCpService mainService; - private static final int MONTH_SECONDS = 30 * 24 * 60 * 60; + private static final int MONTH_SECONDS = 31 * 24 * 60 * 60; private static final int USER_IDS_LIMIT = 100; @Override @@ -49,7 +49,7 @@ public List getCheckinData(Integer openCheckinDataType, @NonNul long endTimestamp = endTime.getTime() / 1000L; long startTimestamp = startTime.getTime() / 1000L; - if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS) { + if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp > MONTH_SECONDS) { throw new WxRuntimeException("获取记录时间跨度不超过一个月"); } From 37fe7d21eff35c48697fac37f61f1b01f1e5dacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=87=AF=E6=97=8B?= <42696884+azouever@users.noreply.github.com> Date: Wed, 26 Jan 2022 19:03:58 +0800 Subject: [PATCH 122/622] =?UTF-8?q?:art:=20#2478=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E7=94=B3=E8=AF=B7=E5=88=86?= =?UTF-8?q?=E8=B4=A6=E5=92=8C=E6=9F=A5=E8=AF=A2=E5=88=86=E8=B4=A6=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=B7=BB=E5=8A=A0detail=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/profitsharingV3/ProfitSharingResult.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java index 6e0626f652..892d317733 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java @@ -168,5 +168,16 @@ public static class Receiver implements Serializable { */ @SerializedName("finish_time") private String finishTime; + + /** + *
+     * 字段名:微信分账明细单号
+     * 是否必填:是
+     * 每笔分账业务执行的明细单号,可与资金账单对账使用,
+     * 例如:36011111111111111111111
+     * 
+ */ + @SerializedName("detail_id") + private String detailId; } } From 438d5833f9a168fc2e0ef5d5dc65fe799f86ca5a Mon Sep 17 00:00:00 2001 From: Boris Date: Sat, 29 Jan 2022 22:58:00 +0800 Subject: [PATCH 123/622] =?UTF-8?q?:new:=20#2309=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=AE=A2=E6=9C=8D-=E6=8E=A5=E5=BE=85=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E7=AE=A1=E7=90=86=E3=80=81=E4=BC=9A=E8=AF=9D=E5=88=86?= =?UTF-8?q?=E9=85=8D=E4=B8=8E=E6=B6=88=E6=81=AF=E6=94=B6=E5=8F=91=E3=80=81?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E7=AD=89?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 34 ++++ .../chanjar/weixin/cp/api/WxCpKfService.java | 121 ++++++++++++++ .../impl/WxCpExternalContactServiceImpl.java | 22 +++ .../weixin/cp/api/impl/WxCpKfServiceImpl.java | 127 +++++++++++++++ .../external/contact/ExternalContact.java | 3 + .../bean/kf/WxCpKfCustomerBatchGetResp.java | 32 ++++ .../weixin/cp/bean/kf/WxCpKfMsgListResp.java | 73 +++++++++ .../cp/bean/kf/WxCpKfMsgSendRequest.java | 151 ++++++++++++++++++ .../weixin/cp/bean/kf/WxCpKfMsgSendResp.java | 24 +++ .../cp/bean/kf/WxCpKfServiceStateResp.java | 28 ++++ .../bean/kf/WxCpKfServiceStateTransResp.java | 27 ++++ .../cp/bean/kf/WxCpKfServicerListResp.java | 35 ++++ .../cp/bean/kf/WxCpKfServicerOpResp.java | 38 +++++ .../cp/bean/kf/msg/WxCpKfBusinessCardMsg.java | 16 ++ .../weixin/cp/bean/kf/msg/WxCpKfEventMsg.java | 40 +++++ .../weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java | 53 ++++++ .../cp/bean/kf/msg/WxCpKfLocationMsg.java | 41 +++++ .../weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java | 128 +++++++++++++++ .../cp/bean/kf/msg/WxCpKfMiniProgramMsg.java | 46 ++++++ .../cp/bean/kf/msg/WxCpKfResourceMsg.java | 16 ++ .../weixin/cp/bean/kf/msg/WxCpKfTextMsg.java | 26 +++ .../weixin/cp/constant/WxCpApiPathConsts.java | 15 ++ 22 files changed, 1096 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index 76ab62350e..8e04977ff4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -1,6 +1,10 @@ package me.chanjar.weixin.cp.api; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; import lombok.NonNull; +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.*; @@ -921,5 +925,35 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) */ WxCpProductAlbumResult getProductAlbum(String productId) throws WxErrorException; + /** + *
+   * 上传附件资源
+   * https://open.work.weixin.qq.com/api/doc/90001/90143/95178
+   * 
+ * @param mediaType + * @param fileType + * @param attachmentType + * @param inputStream + * @return + * @throws WxErrorException + * @throws IOException + */ + WxMediaUploadResult uploadAttachment(String mediaType, String fileType, Integer attachmentType, + InputStream inputStream) throws WxErrorException, IOException; + + /** + *
+   * 上传附件资源
+   * https://open.work.weixin.qq.com/api/doc/90001/90143/95178
+   * 
+ * @param mediaType + * @param attachmentType + * @param file + * @return + * @throws WxErrorException + */ + WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, File file) + throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java index a77b42a6c2..0da548905c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.cp.api; +import java.util.List; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd; @@ -9,6 +10,14 @@ import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp; import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp; import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd; +import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp; /** * 微信客服接口 @@ -67,4 +76,116 @@ public interface WxCpKfService { */ WxCpKfAccountLinkResp getAccountLink(WxCpKfAccountLink link) throws WxErrorException; + /** + * 接待人员管理 + * 添加指定客服帐号的接待人员,每个客服帐号目前最多可添加500个接待人员。 + * @param openKfid 客服帐号ID + * @param userIdList 接待人员userid列表。第三方应用填密文userid,即open_userid + * 可填充个数:1 ~ 100。超过100个需分批调用。 + * @return 添加客服账号结果 + * @throws WxErrorException 异常 + */ + WxCpKfServicerOpResp addServicer(String openKfid, List userIdList) throws WxErrorException; + + /** + * 接待人员管理 + * 从客服帐号删除接待人员 + * @param openKfid 客服帐号ID + * @param userIdList 接待人员userid列表。第三方应用填密文userid,即open_userid + * 可填充个数:1 ~ 100。超过100个需分批调用。 + * @return 删除客服账号结果 + * @throws WxErrorException 异常 + */ + WxCpKfServicerOpResp delServicer(String openKfid, List userIdList) throws WxErrorException; + + /** + * 接待人员管理 + * 获取某个客服帐号的接待人员列表 + * @param openKfid 客服帐号ID + * @return 接待人员列表 + * @throws WxErrorException 异常 + */ + WxCpKfServicerListResp listServicer(String openKfid) throws WxErrorException; + + /** + * 分配客服会话 + * 获取会话状态 + * @param openKfid 客服帐号ID + * @param externalUserId 微信客户的external_userid + * @return + * @throws WxErrorException + */ + WxCpKfServiceStateResp getServiceState(String openKfid, String externalUserId) + throws WxErrorException; + + /** + * 分配客服会话 + * 变更会话状态 + * @param openKfid 客服帐号ID + * @param externalUserId 微信客户的external_userid + * @param serviceState 变更的目标状态,状态定义和所允许的变更可参考概述中的流程图和表格 + * @param servicerUserId 接待人员的userid。第三方应用填密文userid,即open_userid。当state=3时要求必填,接待人员须处于“正在接待”中。 + * @return 部分状态返回回复语code + * @throws WxErrorException + */ + WxCpKfServiceStateTransResp transServiceState(String openKfid, String externalUserId, + Integer serviceState, String servicerUserId) throws WxErrorException; + + /** + * 读取消息 + * 微信客户发送的消息、接待人员在企业微信回复的消息、发送消息接口发送失败事件(如被用户拒收)、客户点击菜单消息的回复消息, + * 可以通过该接口获取具体的消息内容和事件。不支持读取通过发送消息接口发送的消息。 + * 支持的消息类型:文本、图片、语音、视频、文件、位置、链接、名片、小程序、菜单、事件。 + * @param cursor 上一次调用时返回的next_cursor,第一次拉取可以不填。不多于64字节 + * @param token 回调事件返回的token字段,10分钟内有效;可不填,如果不填接口有严格的频率限制。不多于128字节 + * @param limit 期望请求的数据量,默认值和最大值都为1000。 + * 注意:可能会出现返回条数少于limit的情况,需结合返回的has_more字段判断是否继续请求。 + * @param voiceFormat 语音消息类型,0-Amr 1-Silk,默认0。可通过该参数控制返回的语音格式 + * @return 微信消息 + * @throws WxErrorException 异常 + */ + WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer voiceFormat) + throws WxErrorException; + + /** + * 发送消息 + * 当微信客户处于“新接入待处理”或“由智能助手接待”状态下,可调用该接口给用户发送消息。 + * 注意仅当微信客户在主动发送消息给客服后的48小时内,企业可发送消息给客户,最多可发送5条消息;若用户继续发送消息,企业可再次下发消息。 + * 支持发送消息类型:文本、图片、语音、视频、文件、图文、小程序、菜单消息、地理位置。 + * @param request 发送信息 + * @return 发送结果 + * @throws WxErrorException 异常 + */ + WxCpKfMsgSendResp sendMsg(WxCpKfMsgSendRequest request) throws WxErrorException; + + /** + * 发送欢迎语等事件响应消息 + * 当特定的事件回调消息包含code字段,或通过接口变更到特定的会话状态,会返回code字段。 + * 开发者可以此code为凭证,调用该接口给用户发送相应事件场景下的消息,如客服欢迎语、客服提示语和会话结束语等。 + * 除"用户进入会话事件"以外,响应消息仅支持会话处于获取该code的会话状态时发送,如将会话转入待接入池时获得的code仅能在会话状态为”待接入池排队中“时发送。 + * + * 目前支持的事件场景和相关约束如下: + * + * 事件场景 允许下发条数 code有效期 支持的消息类型 获取code途径 + * 用户进入会话,用于发送客服欢迎语 1条 20秒 文本、菜单 事件回调 + * 进入接待池,用于发送排队提示语等 1条 48小时 文本 转接会话接口 + * 从接待池接入会话,用于发送非工作 + * 时间的提示语或超时未回复的提示语 + * 等 1条 48小时 文本 事件回调、转接会话接口 + * 结束会话,用于发送结束会话提示语 + * 或满意度评价等 1条 20秒 文本、菜单 事件回调、转接会话接口 + * @param request + * @return + * @throws WxErrorException + */ + WxCpKfMsgSendResp sendMsgOnEvent(WxCpKfMsgSendRequest request) throws WxErrorException; + + /** + * 获取客户基础信息 + * @param externalUserIdList + * @return + * @throws WxErrorException + */ + WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdList) + throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java index 87e9895784..3997f50768 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java @@ -2,12 +2,19 @@ import com.google.gson.Gson; import com.google.gson.JsonObject; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.util.UUID; import lombok.NonNull; import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; import me.chanjar.weixin.common.error.WxCpErrorMsgEnum; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.error.WxRuntimeException; import me.chanjar.weixin.common.util.BeanUtils; +import me.chanjar.weixin.common.util.fs.FileUtils; +import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.WxCpExternalContactService; import me.chanjar.weixin.cp.api.WxCpService; @@ -814,4 +821,19 @@ public WxCpProductAlbumResult getProductAlbum(String productId) throws WxErrorEx return WxCpProductAlbumResult.fromJson(result); } + @Override + public WxMediaUploadResult uploadAttachment(String mediaType, String fileType, Integer attachmentType, + InputStream inputStream) throws WxErrorException, IOException { + return uploadAttachment(mediaType, attachmentType, FileUtils.createTmpFile(inputStream, + UUID.randomUUID().toString(), fileType)); + } + + @Override + public WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, File file) + throws WxErrorException { + String params = "?media_type=" + mediaType + "&attachment_type=" + attachmentType; + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPLOAD_ATTACHMENT + params); + return this.mainService.execute(MediaUploadRequestExecutor.create( + this.mainService.getRequestHttp()), url, file); + } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java index 53e520d3c4..12f1062b0c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java @@ -1,5 +1,10 @@ package me.chanjar.weixin.cp.api.impl; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import java.util.List; import lombok.RequiredArgsConstructor; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.WxCpKfService; @@ -12,6 +17,14 @@ import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp; import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp; import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd; +import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Kf.*; @@ -25,6 +38,7 @@ @RequiredArgsConstructor public class WxCpKfServiceImpl implements WxCpKfService { private final WxCpService cpService; + private static final Gson GSON = new GsonBuilder().create(); @Override public WxCpKfAccountAddResp addAccount(WxCpKfAccountAdd add) throws WxErrorException { @@ -61,4 +75,117 @@ public WxCpKfAccountLinkResp getAccountLink(WxCpKfAccountLink link) throws WxErr return WxCpKfAccountLinkResp.fromJson(responseContent); } + @Override + public WxCpKfServicerOpResp addServicer(String openKfid, List userIdList) throws WxErrorException { + return servicerOp(openKfid, userIdList, SERVICER_ADD); + } + + @Override + public WxCpKfServicerOpResp delServicer(String openKfid, List userIdList) throws WxErrorException { + return servicerOp(openKfid, userIdList, SERVICER_DEL); + } + + private WxCpKfServicerOpResp servicerOp(String openKfid, List userIdList, String uri) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(uri); + + JsonObject json = new JsonObject(); + json.addProperty("open_kfid", openKfid); + JsonArray userIdArray = new JsonArray(); + userIdList.forEach(userIdArray::add); + json.add("userid_list", userIdArray); + + String responseContent = cpService.post(url, json.toString()); + return WxCpKfServicerOpResp.fromJson(responseContent); + } + + @Override + public WxCpKfServicerListResp listServicer(String openKfid) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(SERVICER_LIST + openKfid); + String responseContent = cpService.get(url, null); + return WxCpKfServicerListResp.fromJson(responseContent); + } + + @Override + public WxCpKfServiceStateResp getServiceState(String openKfid, String externalUserId) + throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(SERVICE_STATE_GET); + + JsonObject json = new JsonObject(); + json.addProperty("open_kfid", openKfid); + json.addProperty("external_userid", externalUserId); + + String responseContent = cpService.post(url, json.toString()); + return WxCpKfServiceStateResp.fromJson(responseContent); + } + + @Override + public WxCpKfServiceStateTransResp transServiceState(String openKfid, String externalUserId, + Integer serviceState, String servicerUserId) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(SERVICE_STATE_TRANS); + + JsonObject json = new JsonObject(); + json.addProperty("open_kfid", openKfid); + json.addProperty("external_userid", externalUserId); + json.addProperty("service_state", serviceState); + json.addProperty("servicer_userid", servicerUserId); + + String responseContent = cpService.post(url, json.toString()); + return WxCpKfServiceStateTransResp.fromJson(responseContent); + } + + @Override + public WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer voiceFormat) + throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(SYNC_MSG); + + JsonObject json = new JsonObject(); + if (cursor!=null) { + json.addProperty("cursor", cursor); + } + if (token!=null) { + json.addProperty("token", token); + } + if (limit!=null) { + json.addProperty("limit", limit); + } + if (voiceFormat!=null) { + json.addProperty("voice_format", voiceFormat); + } + + String responseContent = cpService.post(url, json); + return WxCpKfMsgListResp.fromJson(responseContent); + } + + @Override + public WxCpKfMsgSendResp sendMsg(WxCpKfMsgSendRequest request) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(SEND_MSG); + + String responseContent = cpService.post(url, GSON.toJson(request)); + + return WxCpKfMsgSendResp.fromJson(responseContent); + } + + @Override + public WxCpKfMsgSendResp sendMsgOnEvent(WxCpKfMsgSendRequest request) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(SEND_MSG_ON_EVENT); + + String responseContent = cpService.post(url, GSON.toJson(request)); + + return WxCpKfMsgSendResp.fromJson(responseContent); + } + + @Override + public WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdList) + throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_BATCH_GET); + + JsonArray array = new JsonArray(); + + externalUserIdList.forEach(array::add); + JsonObject json = new JsonObject(); + json.add("external_userid_list", array); + String responseContent = cpService.post(url, json.toString()); + return WxCpKfCustomerBatchGetResp.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java index f19584ed90..07d490ac1f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java @@ -26,6 +26,9 @@ public class ExternalContact implements Serializable { @SerializedName("name") private String name; + @SerializedName("nickname") + private String nickname; + @SerializedName("avatar") private String avatar; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java new file mode 100644 index 0000000000..dd3ea38b17 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java @@ -0,0 +1,32 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.external.contact.ExternalContact; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/1/26 7:56 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfCustomerBatchGetResp extends WxCpBaseResp { + + private static final long serialVersionUID = -3697709507605389887L; + + @SerializedName("customer_list") + private List customerList; + + @SerializedName("invalid_external_userid") + private List invalidExternalUserId; + + public static WxCpKfCustomerBatchGetResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfCustomerBatchGetResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java new file mode 100644 index 0000000000..140670afa8 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java @@ -0,0 +1,73 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfBusinessCardMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfEventMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLinkMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLocationMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMenuMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMiniProgramMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfResourceMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfTextMsg; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/1/26 5:24 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfMsgListResp extends WxCpBaseResp { + + private static final long serialVersionUID = -3115552079069452091L; + @SerializedName("next_cursor") + private String nextCursor; + + @SerializedName("has_more") + private Integer hasMore; + + @SerializedName("msg_list") + private List msgList; + + @NoArgsConstructor + @Data + public static class WxCpKfMsgItem { + @SerializedName("msgid") + private String msgId; + @SerializedName("open_kfid") + private String openKfid; + @SerializedName("external_userid") + private String externalUserId; + @SerializedName("send_time") + private Long sendTime; + private Integer origin; + @SerializedName("servicer_userid") + private String servicerUserId; + @SerializedName("msgtype") + private String msgType; + private WxCpKfTextMsg text; + private WxCpKfResourceMsg image; + private WxCpKfResourceMsg voice; + private WxCpKfResourceMsg video; + private WxCpKfResourceMsg file; + private WxCpKfLocationMsg location; + private WxCpKfLinkMsg link; + @SerializedName("business_card") + private WxCpKfBusinessCardMsg businessCard; + @SerializedName("miniprogram") + private WxCpKfMiniProgramMsg miniProgram; + @SerializedName("msgmenu") + private WxCpKfMenuMsg msgMenu; + private WxCpKfEventMsg event; + } + + public static WxCpKfMsgListResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfMsgListResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java new file mode 100644 index 0000000000..25dd5c7645 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java @@ -0,0 +1,151 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLinkMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLocationMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMenuMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMiniProgramMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfResourceMsg; +import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfTextMsg; + +/** + * @author leiin + * @date 2022/1/26 7:00 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfMsgSendRequest { + /** + * (发送欢迎语等事件响应消息) 事件响应消息对应的code。通过事件回调下发,仅可使用一次。 + */ + private String code; + /** + *
+   *   参数:touser
+   *   是否必须:是
+   *   类型:string
+   *   说明:指定接收消息的客户UserID
+   * 
+ */ + @SerializedName("touser") + private String toUser; + /** + *
+   *   参数:open_kfid
+   *   是否必须:是
+   *   类型:string
+   *   说明:指定发送消息的客服帐号ID
+   * 
+ */ + @SerializedName("open_kfid") + private String openKfid; + /** + *
+   *   参数:msgid
+   *   是否必须:否
+   *   类型:string
+   *   说明:指定消息ID
+   * 
+ */ + @SerializedName("msgid") + private String msgId; + /** + *
+   *   参数:msgtype
+   *   是否必须:是
+   *   类型:string
+   *   说明:消息类型,(text,image,voice,video,file,link,miniprogram,msgmenu,location)
+   * 
+ */ + @SerializedName("msgtype") + private String msgType; + /** + *
+   *   参数:text
+   *   是否必须:是
+   *   类型:obj
+   *   说明:文本消息
+   * 
+ */ + private WxCpKfTextMsg text; + + /** + *
+   *   参数:image
+   *   是否必须:是
+   *   类型:obj
+   *   说明:图片消息
+   * 
+ */ + private WxCpKfResourceMsg image; + /** + *
+   *   参数:voice
+   *   是否必须:是
+   *   类型:obj
+   *   说明:语音消息
+   * 
+ */ + private WxCpKfResourceMsg voice; + /** + *
+   *   参数:video
+   *   是否必须:是
+   *   类型:obj
+   *   说明:视频消息
+   * 
+ */ + private WxCpKfResourceMsg video; + /** + *
+   *   参数:file
+   *   是否必须:是
+   *   类型:obj
+   *   说明:文件消息
+   * 
+ */ + private WxCpKfResourceMsg file; + /** + *
+   *   参数:link
+   *   是否必须:是
+   *   类型:obj
+   *   说明:链接消息
+   * 
+ */ + private WxCpKfLinkMsg link; + /** + *
+   *   参数:miniprogram
+   *   是否必须:是
+   *   类型:obj
+   *   说明:小程序消息
+   * 
+ */ + @SerializedName("miniprogram") + private WxCpKfMiniProgramMsg miniProgram; + + /** + *
+   *   参数:msgmenu
+   *   是否必须:是
+   *   类型:obj
+   *   说明:菜单消息
+   * 
+ */ + @SerializedName("msgmenu") + private WxCpKfMenuMsg msgMenu; + + /** + *
+   *   参数:location
+   *   是否必须:是
+   *   类型:obj
+   *   说明:菜单消息
+   * 
+ */ + @SerializedName("location") + private WxCpKfLocationMsg location; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java new file mode 100644 index 0000000000..416edba3bf --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java @@ -0,0 +1,24 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/1/26 7:41 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfMsgSendResp extends WxCpBaseResp { + @SerializedName("msgid") + private String msgId; + + public static WxCpKfMsgSendResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfMsgSendResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java new file mode 100644 index 0000000000..da4aabcdbb --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java @@ -0,0 +1,28 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/1/26 5:00 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfServiceStateResp extends WxCpBaseResp { + + private static final long serialVersionUID = 8077134413448067090L; + @SerializedName("service_state") + private Integer serviceState; + @SerializedName("servicer_userid") + private String servicerUserId; + + public static WxCpKfServiceStateResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceStateResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java new file mode 100644 index 0000000000..a4988873c0 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java @@ -0,0 +1,27 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/1/26 5:03 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfServiceStateTransResp extends WxCpBaseResp { + + private static final long serialVersionUID = -7874378445629022791L; + + @SerializedName("msg_code") + private String msgCode; + + public static WxCpKfServiceStateTransResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceStateTransResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java new file mode 100644 index 0000000000..c37e5df133 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java @@ -0,0 +1,35 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/1/26 4:29 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfServicerListResp extends WxCpBaseResp { + + private static final long serialVersionUID = -5079770046571012449L; + @SerializedName("servicer_list") + private List servicerList; + + @NoArgsConstructor + @Data + public static class WxCpKfServicerStatus { + @SerializedName("userid") + private String userId; + private Integer status; + } + + public static WxCpKfServicerListResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfServicerListResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java new file mode 100644 index 0000000000..e14dccd03a --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java @@ -0,0 +1,38 @@ +package me.chanjar.weixin.cp.bean.kf; + + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * 添加/删除客服接待人员返回结果 + * @author leiin + * @date 2022/1/26 4:11 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfServicerOpResp extends WxCpBaseResp { + + private static final long serialVersionUID = -4082459764202987034L; + + @SerializedName("result_list") + private List resultList; + + @Data + @NoArgsConstructor + public static class WxCpKfServicerResp extends WxCpBaseResp { + + @SerializedName("userid") + private String userId; + } + + public static WxCpKfServicerOpResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfServicerOpResp.class); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java new file mode 100644 index 0000000000..e739112ec1 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java @@ -0,0 +1,16 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 5:35 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfBusinessCardMsg { + @SerializedName("userid") + private String userId; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java new file mode 100644 index 0000000000..96782a1015 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java @@ -0,0 +1,40 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 6:44 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfEventMsg { + @SerializedName("event_type") + private String eventType; + @SerializedName("open_kfid") + private String openKfid; + @SerializedName("external_userid") + private String externalUserId; + @SerializedName("servicer_userid") + private String servicerUserId; + @SerializedName("old_servicer_userid") + private String oldServicerUserId; + @SerializedName("new_servicer_userid") + private String newServicerUserId; + private String scene; + @SerializedName("scene_param") + private String sceneParam; + @SerializedName("welcome_code") + private String welcomeCode; + @SerializedName("fail_msgid") + private String failMsgId; + @SerializedName("fail_type") + private Integer failType; + private Integer status; + @SerializedName("change_type") + private Integer changeType; + @SerializedName("msg_code") + private String msgCode; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java new file mode 100644 index 0000000000..1281389a10 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java @@ -0,0 +1,53 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 5:33 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfLinkMsg { + + /** + * 参数:title + * 是否必须:是 + * 类型:string + * 说明:标题,不超过128个字节,超过会自动截断 + */ + @SerializedName("title") + private String title; + /** + * 参数:desc + * 是否必须:否 + * 类型:string + * 说明:描述,不超过512个字节,超过会自动截断 + */ + @SerializedName("desc") + private String desc; + /** + * 参数:url + * 是否必须:是 + * 类型:string + * 说明:点击后跳转的链接。 最长2048字节,请确保包含了协议头(http/https) + */ + @SerializedName("url") + private String url; + /** + * 参数:thumb_media_id + * 是否必须:是 + * 类型:string + * 说明:发送消息参数,缩略图的media_id, 可以通过素材管理接口获得。此处thumb_media_id即上传接口返回的media_id + */ + @SerializedName("thumb_media_id") + private String thumb_media_id; + + /** + * 返回消息参数 + */ + @SerializedName("pic_url") + private String picUrl; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java new file mode 100644 index 0000000000..245da52619 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java @@ -0,0 +1,41 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 5:32 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfLocationMsg { + /** + * 参数:name + * 是否必须:否 + * 类型:string + * 说明:位置名 + */ + private String name; + /** + * 参数:address + * 是否必须:否 + * 类型:string + * 说明:地址详情说明 + */ + private String address; + /** + * 参数:latitude + * 是否必须:是 + * 类型:float + * 说明:纬度,浮点数,范围为90 ~ -90 + */ + private Float latitude; + /** + * 参数:longitude + * 是否必须:是 + * 类型:float + * 说明:经度,浮点数,范围为180 ~ -180 + */ + private Float longitude; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java new file mode 100644 index 0000000000..73df6abf94 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java @@ -0,0 +1,128 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +/** + * @author leiin + * @date 2022/1/26 6:33 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfMenuMsg { + + /** + * 参数:head_content + * 是否必须:否 + * 类型:string + * 说明:起始文本 不多于1024字节 + */ + @SerializedName("head_content") + private String headContent; + + private List list; + + /** + * 参数:tail_content + * 是否必须:否 + * 类型:string + * 说明:结束文本 不多于1024字节 + */ + @SerializedName("tail_content") + private String tailContent; + + @NoArgsConstructor + @Data + public static class WxCpKfMenuItem { + /** + * 参数:type + * 是否必须:是 + * 类型:string + * 说明:菜单类型。click-回复菜单 view-超链接菜单 miniprogram-小程序菜单 + */ + private String type; + + /** + * type为click的菜单项 + */ + private MenuClick click; + /** + * type为view的菜单项 + */ + private MenuView view; + /** + * type为miniprogram的菜单项 + */ + @SerializedName("miniprogram") + private MiniProgram miniProgram; + } + + @Getter + @Setter + public static class MenuClick { + + /** + *
+     *   是否必须:否
+     *   说明:菜单ID。不少于1字节 不多于128字节
+     * 
+ */ + private String id; + /** + *
+     *   是否必须:是
+     *   说明:菜单显示内容。不少于1字节 不多于128字节
+     * 
+ */ + private String content; + } + + @Getter + @Setter + public static class MenuView { + /** + *
+     *   是否必须:是
+     *   说明:点击后跳转的链接。不少于1字节 不多于2048字节
+     * 
+ */ + private String url; + /** + *
+     *   是否必须:是
+     *   说明:菜单显示内容。不少于1字节 不多于1024字节
+     * 
+ */ + private String content; + } + + @Getter + @Setter + public static class MiniProgram { + /** + *
+     *   是否必须:是
+     *   说明:小程序appid。
+     * 
+ */ + @SerializedName("appid") + private String appId; + /** + *
+     *   点击后进入的小程序页面。
+     * 
+ */ + @SerializedName("pagepath") + private String pagePath; + /** + *
+     *   菜单显示内容。不多于1024字节
+     * 
+ */ + private String content; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java new file mode 100644 index 0000000000..4e5ce5f2d4 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java @@ -0,0 +1,46 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 6:22 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfMiniProgramMsg { + /** + * 参数:appid + * 是否必须:是 + * 类型:string + * 说明:小程序appid + */ + @SerializedName("appid") + private String appId; + /** + * 参数:title + * 是否必须:否 + * 类型:string + * 说明:小程序消息标题,最多64个字节,超过会自动截断 + */ + @SerializedName("title") + private String title; + /** + * 参数:thumb_media_id + * 是否必须:是 + * 类型:string + * 说明:小程序消息封面的mediaid,封面图建议尺寸为520*416 + */ + @SerializedName("thumb_media_id") + private String thumbMediaId; + /** + * 参数:pagepath + * 是否必须:是 + * 类型:string + * 说明:点击消息卡片后进入的小程序页面路径。注意路径要以.html为后缀,否则在微信中打开会提示找不到页面 + */ + @SerializedName("pagepath") + private String pagePath; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java new file mode 100644 index 0000000000..43cba65b67 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java @@ -0,0 +1,16 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 5:31 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfResourceMsg { + @SerializedName("media_id") + private String mediaId; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java new file mode 100644 index 0000000000..1e0ccf076c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java @@ -0,0 +1,26 @@ +package me.chanjar.weixin.cp.bean.kf.msg; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/1/26 5:30 下午 + */ +@NoArgsConstructor +@Data +public class WxCpKfTextMsg { + + /** + *
+   *   参数:content
+   *   是否必须:是
+   *   类型:string
+   *   说明:消息内容,最长不超过2048个字节
+   * 
+ */ + private String content; + @SerializedName("menu_id") + private String menuId; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 374c7947c5..1b803cfdde 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -249,6 +249,8 @@ interface ExternalContact { String GROUP_WELCOME_TEMPLATE_GET = "/cgi-bin/externalcontact/group_welcome_template/get"; String GROUP_WELCOME_TEMPLATE_DEL = "/cgi-bin/externalcontact/group_welcome_template/del"; + String UPLOAD_ATTACHMENT = "/cgi-bin/media/upload_attachment"; + } interface Kf { @@ -258,5 +260,18 @@ interface Kf { String ACCOUNT_LIST = "/cgi-bin/kf/account/list"; String ADD_CONTACT_WAY = "/cgi-bin/kf/add_contact_way"; + String SERVICER_ADD = "/cgi-bin/kf/servicer/add"; + String SERVICER_DEL = "/cgi-bin/kf/servicer/del"; + String SERVICER_LIST = "/cgi-bin/kf/servicer/list?open_kfid="; + + String SERVICE_STATE_GET = "/cgi-bin/kf/service_state/get"; + String SERVICE_STATE_TRANS = "/cgi-bin/kf/service_state/trans"; + + String SYNC_MSG = "/cgi-bin/kf/sync_msg"; + String SEND_MSG = "/cgi-bin/kf/send_msg"; + + String SEND_MSG_ON_EVENT = "/cgi-bin/kf/send_msg_on_event"; + String CUSTOMER_BATCH_GET = "/cgi-bin/kf/customer/batchget"; + } } From a2ed0713e24242a24fb3aa5dbe4edb5b4b9747c5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 09:16:13 +0800 Subject: [PATCH 124/622] :arrow_up: Bump xstream in /others/weixin-java-osgi (#2526) Bumps [xstream](https://github.com/x-stream/xstream) from 1.4.18 to 1.4.19. - [Release notes](https://github.com/x-stream/xstream/releases) - [Commits](https://github.com/x-stream/xstream/commits) --- updated-dependencies: - dependency-name: com.thoughtworks.xstream:xstream dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- others/weixin-java-osgi/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/others/weixin-java-osgi/pom.xml b/others/weixin-java-osgi/pom.xml index 7207e9b99d..0018b73e5e 100644 --- a/others/weixin-java-osgi/pom.xml +++ b/others/weixin-java-osgi/pom.xml @@ -28,7 +28,7 @@ com.thoughtworks.xstream xstream - 1.4.18 + 1.4.19 provided From 2914943cad25e5c0095f9706b0cd298547e00704 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 09:16:31 +0800 Subject: [PATCH 125/622] :arrow_up: Bump xstream from 1.4.18 to 1.4.19 (#2525) Bumps [xstream](https://github.com/x-stream/xstream) from 1.4.18 to 1.4.19. - [Release notes](https://github.com/x-stream/xstream/releases) - [Commits](https://github.com/x-stream/xstream/commits) --- updated-dependencies: - dependency-name: com.thoughtworks.xstream:xstream dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5e983b885e..d65ecc22d2 100644 --- a/pom.xml +++ b/pom.xml @@ -175,7 +175,7 @@ com.thoughtworks.xstream xstream - 1.4.18 + 1.4.19 com.google.guava From 935749e580f22395976dbf31bb3f2ed310742efd Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 8 Feb 2022 18:31:56 +0800 Subject: [PATCH 126/622] =?UTF-8?q?:art:=20=E3=80=90=E5=BC=80=E6=94=BE?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E3=80=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=AE=A1=E7=90=86=E8=8E=B7=E5=8F=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=A2=9E=E5=8A=A0=E4=B8=A4=E4=B8=AA=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=9B=B8=E5=85=B3=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/open/bean/WxOpenMaCodeTemplate.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java index d441906c80..490394d63d 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java @@ -46,4 +46,16 @@ public class WxOpenMaCodeTemplate implements Serializable { */ @SerializedName(value = "createTime", alternate = "create_time") private Long createTime; + + /** + * 开发小程序的appid + */ + @SerializedName(value = "sourceMiniProgramAppid", alternate = "source_miniprogram_appid") + private Long sourceMiniProgramAppid; + + /** + * 开发小程序的名称 + */ + @SerializedName(value = "sourceMiniProgram", alternate = "source_miniprogram") + private Long sourceMiniProgram; } From 1bbadc37cb0db67a8a6d212d08e38356db7af63a Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 8 Feb 2022 18:37:04 +0800 Subject: [PATCH 127/622] =?UTF-8?q?:art:=20=E5=B1=8F=E8=94=BD=E4=B8=80?= =?UTF-8?q?=E6=AE=B5=E4=BB=A3=E7=A0=81=EF=BC=8C=E4=BB=A5=E5=85=8D=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index 6e215052f3..4408d3cb99 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -736,7 +736,6 @@ public static class SpRecord implements Serializable { @XStreamAlias("Details") @Data public static class Detail implements Serializable { - private static final long serialVersionUID = -8446107461495047603L; /** @@ -765,8 +764,10 @@ public static class Detail implements Serializable { /** * 节点分支审批人审批意见附件,赋值为media_id具体使用请参考:文档-获取临时素材 + * TODO 居然可以返回多个,坑爹的,暂时屏蔽注解以免报错,有兴趣挑战的,尽管把代码砸过来吧! + * 请先通过allFieldsMap解析需要的参数! */ - @XStreamAlias("Attach") + // @XStreamAlias("Attach") private String attach; } From 0c00e15c8f6cbf5a72eaeae98d497ce98238e0ed Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 8 Feb 2022 18:53:23 +0800 Subject: [PATCH 128/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84json=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java index 06f1ef0668..5fb6c84e9b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java @@ -26,7 +26,7 @@ public class WxCpKfAccountListResp extends WxCpBaseResp { /** * 帐号信息列表 */ - @JsonProperty("account_list") + @SerializedName("account_list") private List accountList; @NoArgsConstructor From bae7886fe7de844c0d99a3cafc05bffc93294c19 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 9 Feb 2022 16:40:14 +0800 Subject: [PATCH 129/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.6?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index d65ecc22d2..04218f8d81 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 1e1297db76..be8a041f90 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index e17747d526..478c3f36b2 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 8e953637c4..040ba86e86 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index bf37e8f9d3..bfe9a22414 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 517736a70a..e53be043df 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 9e1ee87f06..bf7968bd8a 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index d477a313c6..61b5f6ebd4 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index c1676ae620..1b4069c272 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index e602174890..da9cfe68e5 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index c19593c63a..6805631a8e 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 4a320b1e68..5417810193 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index f4bbce9dec..0c1b609597 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 0ceb56f2df..5c4eb0cc7f 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 6bed599621..91e487e4c8 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 2235028c36..88ba522ebd 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.2.5.B + 4.2.6.B weixin-java-qidian From 90b42bd2bb50c8530f94a146d152892d759759d8 Mon Sep 17 00:00:00 2001 From: jiqh Date: Fri, 11 Feb 2022 08:34:04 +0000 Subject: [PATCH 130/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5=E5=AE=9A=E4=B9=89=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java index 490394d63d..741a6f607a 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/WxOpenMaCodeTemplate.java @@ -51,11 +51,11 @@ public class WxOpenMaCodeTemplate implements Serializable { * 开发小程序的appid */ @SerializedName(value = "sourceMiniProgramAppid", alternate = "source_miniprogram_appid") - private Long sourceMiniProgramAppid; + private String sourceMiniProgramAppid; /** * 开发小程序的名称 */ @SerializedName(value = "sourceMiniProgram", alternate = "source_miniprogram") - private Long sourceMiniProgram; + private String sourceMiniProgram; } From 1ebe3aa3c54c4a28b0ef27c9432120d56da52fad Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 15 Feb 2022 16:47:07 +0800 Subject: [PATCH 131/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=AD=97=E6=AE=B5=E5=AE=9A=E4=B9=89=E5=92=8C?= =?UTF-8?q?json=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/open/bean/result/WxOpenMaHistoryVersionResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaHistoryVersionResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaHistoryVersionResult.java index 61b9f5dddf..d1e7ede13a 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaHistoryVersionResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaHistoryVersionResult.java @@ -18,8 +18,8 @@ public class WxOpenMaHistoryVersionResult extends WxOpenResult { private static final long serialVersionUID = 4102311851687901079L; - @SerializedName("template_list") - List templateList; + @SerializedName("version_list") + List versions; @Override public String toString() { From c90e4b9810cf8b43a6af1b21f1315161e009476f Mon Sep 17 00:00:00 2001 From: Green Years Date: Tue, 15 Feb 2022 16:51:36 +0800 Subject: [PATCH 132/622] =?UTF-8?q?:new:=20=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81?= =?UTF-8?q?URL=E7=9A=84=E7=B4=A0=E6=9D=90=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/util/http/InputStreamData.java | 27 ++++++++ ...MediaInputStreamUploadRequestExecutor.java | 43 +++++++++++++ .../common/util/http/RequestExecutor.java | 2 + ...MediaInputStreamUploadRequestExecutor.java | 59 ++++++++++++++++++ ...MediaInputStreamUploadRequestExecutor.java | 61 +++++++++++++++++++ ...MediaInputStreamUploadRequestExecutor.java | 56 +++++++++++++++++ .../weixin/cp/api/WxCpMediaService.java | 15 +++++ .../cp/api/impl/WxCpMediaServiceImpl.java | 30 +++++++++ 8 files changed, 293 insertions(+) create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MediaInputStreamUploadRequestExecutor.java create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java new file mode 100644 index 0000000000..fe80af11eb --- /dev/null +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java @@ -0,0 +1,27 @@ +package me.chanjar.weixin.common.util.http; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.InputStream; +import java.io.Serializable; + +/** + * 输入流数据. + *

+ * InputStreamData + * + * @author zichuan.zhou91@gmail.com + * @date 2022/2/15 + */ +@Data +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class InputStreamData implements Serializable { + private static final long serialVersionUID = -4627006604779378520L; + private InputStream inputStream; + private String filename; +} diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MediaInputStreamUploadRequestExecutor.java new file mode 100644 index 0000000000..de4be21709 --- /dev/null +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/MediaInputStreamUploadRequestExecutor.java @@ -0,0 +1,43 @@ +package me.chanjar.weixin.common.util.http; + +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.apache.ApacheMediaInputStreamUploadRequestExecutor; +import me.chanjar.weixin.common.util.http.jodd.JoddHttpMediaInputStreamUploadRequestExecutor; +import me.chanjar.weixin.common.util.http.okhttp.OkHttpMediaInputStreamUploadRequestExecutor; + +import java.io.IOException; + +/** + * 上传媒体文件请求执行器. + * 请求的参数是File, 返回的结果是String + * + * @author Daniel Qian + */ +public abstract class MediaInputStreamUploadRequestExecutor implements RequestExecutor { + protected RequestHttp requestHttp; + + public MediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { + this.requestHttp = requestHttp; + } + + @Override + public void execute(String uri, InputStreamData data, ResponseHandler handler, WxType wxType) throws WxErrorException, IOException { + handler.handle(this.execute(uri, data, wxType)); + } + + public static RequestExecutor create(RequestHttp requestHttp) { + switch (requestHttp.getRequestType()) { + case APACHE_HTTP: + return new ApacheMediaInputStreamUploadRequestExecutor(requestHttp); + case JODD_HTTP: + return new JoddHttpMediaInputStreamUploadRequestExecutor(requestHttp); + case OK_HTTP: + return new OkHttpMediaInputStreamUploadRequestExecutor(requestHttp); + default: + return null; + } + } + +} diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/RequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/RequestExecutor.java index da1292ba62..b5e394756e 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/RequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/RequestExecutor.java @@ -37,4 +37,6 @@ public interface RequestExecutor { * @throws IOException io异常 */ void execute(String uri, E data, ResponseHandler handler, WxType wxType) throws WxErrorException, IOException; + + } diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java new file mode 100644 index 0000000000..3e6d189e80 --- /dev/null +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java @@ -0,0 +1,59 @@ +package me.chanjar.weixin.common.util.http.apache; + +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.InputStreamData; +import me.chanjar.weixin.common.util.http.MediaInputStreamUploadRequestExecutor; +import me.chanjar.weixin.common.util.http.RequestHttp; +import org.apache.http.HttpEntity; +import org.apache.http.HttpHost; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.ContentType; +import org.apache.http.entity.mime.HttpMultipartMode; +import org.apache.http.entity.mime.MultipartEntityBuilder; +import org.apache.http.impl.client.CloseableHttpClient; + +import java.io.IOException; + +/** + * 文件输入流上传. + * + * @author meiqin.zhou91@gmail.com + * @date 2022/02/15 + */ +public class ApacheMediaInputStreamUploadRequestExecutor extends MediaInputStreamUploadRequestExecutor { + public ApacheMediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { + super(requestHttp); + } + + @Override + public WxMediaUploadResult execute(String uri, InputStreamData data, WxType wxType) throws WxErrorException, IOException { + HttpPost httpPost = new HttpPost(uri); + if (requestHttp.getRequestHttpProxy() != null) { + RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); + httpPost.setConfig(config); + } + if (data != null) { + HttpEntity entity = MultipartEntityBuilder + .create() + .addBinaryBody("media", data.getInputStream(), ContentType.DEFAULT_BINARY, data.getFilename()) + .setMode(HttpMultipartMode.RFC6532) + .build(); + httpPost.setEntity(entity); + } + try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) { + String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMediaUploadResult.fromJson(responseContent); + } finally { + httpPost.releaseConnection(); + } + } +} diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java new file mode 100644 index 0000000000..d0591aee9b --- /dev/null +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java @@ -0,0 +1,61 @@ +package me.chanjar.weixin.common.util.http.jodd; + +import jodd.http.HttpConnectionProvider; +import jodd.http.HttpRequest; +import jodd.http.HttpResponse; +import jodd.http.ProxyInfo; +import jodd.http.up.ByteArrayUploadable; +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.InputStreamData; +import me.chanjar.weixin.common.util.http.MediaInputStreamUploadRequestExecutor; +import me.chanjar.weixin.common.util.http.RequestHttp; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; + +/** + * 文件输入流上传. + * + * @author meiqin.zhou91@gmail.com + * @date 2022/02/15 + */ +public class JoddHttpMediaInputStreamUploadRequestExecutor extends MediaInputStreamUploadRequestExecutor { + public JoddHttpMediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { + super(requestHttp); + } + + @Override + public WxMediaUploadResult execute(String uri, InputStreamData data, WxType wxType) throws WxErrorException, IOException { + HttpRequest request = HttpRequest.post(uri); + if (requestHttp.getRequestHttpProxy() != null) { + requestHttp.getRequestHttpClient().useProxy(requestHttp.getRequestHttpProxy()); + } + request.withConnectionProvider(requestHttp.getRequestHttpClient()); + request.form("media", new ByteArrayUploadable(this.toByteArray(data.getInputStream()), data.getFilename())); + HttpResponse response = request.send(); + response.charset(StandardCharsets.UTF_8.name()); + + String responseContent = response.bodyText(); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMediaUploadResult.fromJson(responseContent); + } + + public byte[] toByteArray(InputStream input) throws IOException { + try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { + byte[] buffer = new byte[4096]; + int n = 0; + while (-1 != (n = input.read(buffer))) { + output.write(buffer, 0, n); + } + return output.toByteArray(); + } + } +} diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java new file mode 100644 index 0000000000..ec85015b26 --- /dev/null +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java @@ -0,0 +1,56 @@ +package me.chanjar.weixin.common.util.http.okhttp; + +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.InputStreamData; +import me.chanjar.weixin.common.util.http.MediaInputStreamUploadRequestExecutor; +import me.chanjar.weixin.common.util.http.RequestHttp; +import okhttp3.*; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; + +/** + * 文件输入流上传. + * + * @author meiqin.zhou91@gmail.com + * @date 2022/02/15 + */ +public class OkHttpMediaInputStreamUploadRequestExecutor extends MediaInputStreamUploadRequestExecutor { + public OkHttpMediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { + super(requestHttp); + } + + @Override + public WxMediaUploadResult execute(String uri, InputStreamData data, WxType wxType) throws WxErrorException, IOException { + + RequestBody body = new MultipartBody.Builder() + .setType(MediaType.parse("multipart/form-data")) + .addFormDataPart("media", data.getFilename(), RequestBody.create(this.toByteArray(data.getInputStream()), MediaType.parse("application/octet-stream"))) + .build(); + Request request = new Request.Builder().url(uri).post(body).build(); + + Response response = requestHttp.getRequestHttpClient().newCall(request).execute(); + String responseContent = response.body().string(); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMediaUploadResult.fromJson(responseContent); + } + + + public byte[] toByteArray(InputStream input) throws IOException { + try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { + byte[] buffer = new byte[4096]; + int n = 0; + while (-1 != (n = input.read(buffer))) { + output.write(buffer, 0, n); + } + return output.toByteArray(); + } + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java index a51e04e175..d9b53f250e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java @@ -35,6 +35,21 @@ public interface WxCpMediaService { WxMediaUploadResult upload(String mediaType, String fileType, InputStream inputStream) throws WxErrorException, IOException; + /** + *

+   *   上传多媒体文件.
+   * 
+ * + * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts} + * @param filename 文件名.例如:wework.txt + * @param url 远程链接 + * @return + * @throws WxErrorException + * @throws IOException + */ + WxMediaUploadResult upload(String mediaType, String filename, String url) + throws WxErrorException, IOException; + /** * 上传多媒体文件. * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java index b83b6d39ab..8e88aa20ea 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java @@ -5,6 +5,8 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.fs.FileUtils; import me.chanjar.weixin.common.util.http.BaseMediaDownloadRequestExecutor; +import me.chanjar.weixin.common.util.http.InputStreamData; +import me.chanjar.weixin.common.util.http.MediaInputStreamUploadRequestExecutor; import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; import me.chanjar.weixin.cp.api.WxCpMediaService; import me.chanjar.weixin.cp.api.WxCpService; @@ -12,6 +14,8 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; +import java.net.HttpURLConnection; +import java.net.URL; import java.util.UUID; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Media.*; @@ -34,6 +38,32 @@ public WxMediaUploadResult upload(String mediaType, String fileType, InputStream return this.upload(mediaType, FileUtils.createTmpFile(inputStream, UUID.randomUUID().toString(), fileType)); } + @Override + public WxMediaUploadResult upload(String mediaType, String filename, String url) throws WxErrorException, IOException { + HttpURLConnection conn = null; + InputStream inputStream = null; + try { + URL remote = new URL(url); + conn = (HttpURLConnection) remote.openConnection(); + //设置超时间为3秒 + conn.setConnectTimeout(60 * 1000); + //防止屏蔽程序抓取而返回403错误 + conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)"); + inputStream = conn.getInputStream(); + return this.mainService.execute(MediaInputStreamUploadRequestExecutor.create(this.mainService.getRequestHttp()), this.mainService.getWxCpConfigStorage().getApiUrl(MEDIA_UPLOAD + mediaType), new InputStreamData(inputStream, filename)); + } finally { + if (inputStream != null) { + try { + inputStream.close(); + } catch (IOException e) { + } + } + if (conn != null) { + conn.disconnect(); + } + } + } + @Override public WxMediaUploadResult upload(String mediaType, File file) throws WxErrorException { return this.mainService.execute(MediaUploadRequestExecutor.create(this.mainService.getRequestHttp()), From 6c466f00b3d7720add177f4febc93594e95e3b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=87=AF=E6=97=8B?= <42696884+azouever@users.noreply.github.com> Date: Wed, 23 Feb 2022 09:12:54 +0800 Subject: [PATCH 133/622] =?UTF-8?q?:art:=20#2530=E3=80=90=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E9=97=AE=E9=A2=98=E3=80=91=E4=BF=AE=E5=A4=8D=20pull-p?= =?UTF-8?q?arser=20=E4=BE=9D=E8=B5=96=E4=BC=A0=E9=80=92=E5=AF=BC=E8=87=B4s?= =?UTF-8?q?pring=20boot=202.6.3=E6=97=A0=E6=B3=95=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weixin-java-common/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index da9cfe68e5..aa1503c64e 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -117,6 +117,12 @@ org.dom4j dom4j 2.1.3 + + + pull-parser + pull-parser + +
redis.clients From a25c48e3d60344b13a87561f8cfb8c542e2b73f2 Mon Sep 17 00:00:00 2001 From: zhoushuofu <1065058691@qq.com> Date: Wed, 23 Feb 2022 09:15:01 +0800 Subject: [PATCH 134/622] =?UTF-8?q?:bug:=20#2544=20=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=96=87=E7=AB=A0id=E6=9C=AA=E5=BA=8F=E5=88=97=E5=8C=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/common/util/json/WxMenuGsonAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxMenuGsonAdapter.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxMenuGsonAdapter.java index 31c3c0204c..50d3b0d630 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxMenuGsonAdapter.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxMenuGsonAdapter.java @@ -46,6 +46,7 @@ protected JsonObject convertToJson(WxMenuButton button) { buttonJson.addProperty("key", button.getKey()); buttonJson.addProperty("url", button.getUrl()); buttonJson.addProperty("media_id", button.getMediaId()); + buttonJson.addProperty("article_id", button.getArticleId()); buttonJson.addProperty("appid", button.getAppId()); buttonJson.addProperty("pagepath", button.getPagePath()); if (button.getSubButtons() != null && button.getSubButtons().size() > 0) { @@ -122,6 +123,7 @@ protected WxMenuButton convertFromJson(JsonObject json) { button.setUrl(GsonHelper.getString(json, "url")); button.setType(GsonHelper.getString(json, "type")); button.setMediaId(GsonHelper.getString(json, "media_id")); + button.setArticleId(GsonHelper.getString(json, "article_id")); button.setAppId(GsonHelper.getString(json, "appid")); button.setPagePath(GsonHelper.getString(json, "pagepath")); return button; From fcfee0a068bceb2e5b5128204745563dbb298ac6 Mon Sep 17 00:00:00 2001 From: xiaoguaiYJ <33287565+xiaoguaiYJ@users.noreply.github.com> Date: Wed, 23 Feb 2022 09:44:29 +0800 Subject: [PATCH 135/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5=E5=AE=9A=E4=B9=89=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xiaoqiang --- .../bean/marketing/payroll/AuthRecordResult.java | 12 ++++++------ .../bean/marketing/transfer/BatchDetailsResult.java | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java index abf8397633..5318e5315b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java @@ -44,7 +44,7 @@ public static class RecordData implements Serializable { *
*/ @SerializedName(value = "mchid") - private Integer mchid; + private String mchid; /** *
      * 字段名:子商户号
@@ -57,7 +57,7 @@ public static class RecordData implements Serializable {
      * 
*/ @SerializedName(value = "sub_mchid") - private Integer subMchid; + private String subMchid; /** *
      * 字段名:用户标识
@@ -70,7 +70,7 @@ public static class RecordData implements Serializable {
      * 
*/ @SerializedName(value = "openid") - private Integer openid; + private String openid; /** *
      * 字段名:核身渠道
@@ -85,7 +85,7 @@ public static class RecordData implements Serializable {
      * 
*/ @SerializedName(value = "authenticate_scene") - private Integer authenticateScene; + private String authenticateScene; /** *
      * 字段名:核身渠道标识
@@ -98,7 +98,7 @@ public static class RecordData implements Serializable {
      * 
*/ @SerializedName(value = "authenticate_source") - private Integer authenticateSource; + private String authenticateSource; /** *
      * 字段名:项目名称
@@ -111,7 +111,7 @@ public static class RecordData implements Serializable {
      * 
*/ @SerializedName(value = "project_name") - private Integer projectName; + private String projectName; /** *
      * 字段名:单位名称
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java
index 0ca10dcb40..5c77281e78 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java
@@ -235,5 +235,5 @@ public String toString() {
    * 
*/ @SerializedName(value = "update_time") - private Date updateTime; + private String updateTime; } From aae9bebff1dae894e89e602103695c63edefb3e6 Mon Sep 17 00:00:00 2001 From: xiongmaoshouzha Date: Wed, 23 Feb 2022 10:16:14 +0800 Subject: [PATCH 136/622] =?UTF-8?q?:bug:=20#2538=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E7=AD=BE=E7=BA=A6=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E7=BB=93=E6=9E=9C=E7=B1=BB=E4=BF=AE=E5=A4=8Drequest?= =?UTF-8?q?=5Fserial=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit request_serial int 类型改为long --- .../binarywang/wxpay/bean/result/BaseWxPayResult.java | 9 +++++++++ .../binarywang/wxpay/bean/result/WxPayEntrustResult.java | 4 ++-- .../binarywang/wxpay/bean/result/WxSignQueryResult.java | 4 ++-- .../wxpay/bean/result/WxSignStatusNotifyResult.java | 4 ++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java index 6f66dfdd86..a48617c4cb 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/BaseWxPayResult.java @@ -230,6 +230,15 @@ protected static Integer readXmlInteger(Document d, String tagName) { return Integer.parseInt(content); } + protected static Long readXmlLong(Document d, String tagName) { + String content = readXmlString(d, tagName); + if (content == null || content.trim().length() == 0) { + return null; + } + + return Long.parseLong(content); + } + /** * Gets logger. * diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java index 4dc6f19ae4..2cd0e3588d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java @@ -81,7 +81,7 @@ public class WxPayEntrustResult extends BaseWxPayResult implements Serializable * 非必传 */ @XStreamAlias("request_serial") - private Integer requestSerial; + private Long requestSerial; /** * 签约协议号 @@ -120,7 +120,7 @@ protected void loadXml(Document d) { tradeType = readXmlString(d, "trade_type"); codeUrl = readXmlString(d, "code_url"); planId = readXmlInteger(d, "plan_id"); - requestSerial = readXmlInteger(d, "request_serial"); + requestSerial = readXmlLong(d, "request_serial"); contractCode = readXmlString(d, "contract_code"); contractDisplayAccount = readXmlString(d, "contract_display_account"); mwebUrl = readXmlString(d, "mweb_url"); diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java index abb72a5b79..d04f47a9dc 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java @@ -42,7 +42,7 @@ public class WxSignQueryResult extends BaseWxPayResult implements Serializable { * 请求序列号 */ @XStreamAlias("request_serial") - private Integer requestSerial; + private Long requestSerial; /** * 签约协议号 @@ -106,7 +106,7 @@ public class WxSignQueryResult extends BaseWxPayResult implements Serializable { protected void loadXml(Document d) { contractId = readXmlString(d, "contract_id"); planId = readXmlString(d, "plan_id"); - requestSerial = readXmlInteger(d, "request_serial"); + requestSerial = readXmlLong(d, "request_serial"); contractCode = readXmlString(d, "contract_code"); contractDisplayAccount = readXmlString(d, "contract_display_account"); contractState = readXmlInteger(d, "contract_state"); diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java index f55b576e36..0c0b48ecd4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java @@ -81,7 +81,7 @@ public class WxSignStatusNotifyResult extends BaseWxPayResult { * 请求序列号 */ @XStreamAlias("request_serial") - private Integer requestSerial; + private Long requestSerial; @Override public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException { @@ -117,7 +117,7 @@ protected void loadXml(Document d) { contractId = readXmlString(d, "contract_id"); contractExpiredTime = readXmlString(d, "contract_expired_time"); contractTerminationMode = readXmlInteger(d, "contract_termination_mode"); - requestSerial = readXmlInteger(d, "request_serial"); + requestSerial = readXmlLong(d, "request_serial"); } @Override From d615f8af5990e7f3fd97d77b219aef5b0926981b Mon Sep 17 00:00:00 2001 From: JCLee <452415615@qq.com> Date: Wed, 23 Feb 2022 10:16:47 +0800 Subject: [PATCH 137/622] =?UTF-8?q?:art:=E3=80=90=E5=85=AC=E4=BC=97?= =?UTF-8?q?=E5=8F=B7=E3=80=91=E5=8F=91=E5=B8=83=E7=8A=B6=E6=80=81=E8=BD=AE?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E5=AE=9E=E4=BD=93=E7=B1=BB=E5=BA=8F?= =?UTF-8?q?=E5=88=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/bean/freepublish/WxMpFreePublishStatus.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java index 5734123960..033d300cba 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java @@ -42,13 +42,15 @@ public String toJson() { @NoArgsConstructor @Data - public static class ArticleDetail { + public static class ArticleDetail implements Serializable{ + private static final long serialVersionUID = 2802949203075628412L; private Integer count; private List item; @NoArgsConstructor @Data - public static class Item { + public static class Item implements Serializable{ + private static final long serialVersionUID = -6496102084844816489L; private Integer idx; private String article_url; } From cba7603ee2fb53a7b0c166845b437c0f80d88ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ShenHanBo/=E6=B2=88=E6=B6=B5=E5=8D=9A?= <40845556+shenshb808@users.noreply.github.com> Date: Mon, 28 Feb 2022 23:12:00 +0800 Subject: [PATCH 138/622] =?UTF-8?q?:art:=20#2547=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E4=BA=8C=E7=BA=A7=E5=95=86?= =?UTF-8?q?=E6=88=B7=E8=BF=9B=E4=BB=B6=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?owner=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/bean/ecommerce/ApplymentsRequest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java index 41f222ca92..ac17e18cd1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java @@ -131,6 +131,19 @@ public class ApplymentsRequest implements Serializable { @SpecEncrypt private IdDocInfo idDocInfo; + /** + *
+   * 字段名:经营者/法人是否为受益人
+   * 变量名:owner
+   * 是否必填:条件选填
+   * 类型:bool
+   * 描述:主体类型为企业时,需要填写:1、若经营者/法人是最终受益人,则填写:true。2、若经营者/法人不是最终受益人,则填写:false。
+   * 示例值:true
+   * 
+ */ + @SerializedName(value = "owner") + private Boolean owner; + /** *
    * 字段名:是否填写结算账户信息

From 84301226555b715b6c495017e25b7a6a8467a15a Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 28 Feb 2022 23:15:56 +0800
Subject: [PATCH 139/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.7?=
 =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index 04218f8d81..0c373d1670 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.2.6.B
+  4.2.7.B
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index be8a041f90..4ea942cf5e 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index 478c3f36b2..2f0e9af560 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index 040ba86e86..e7e6c113a6 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index bfe9a22414..9324590eff 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index e53be043df..d0c6d4c8d8 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index bf7968bd8a..e62ad4911b 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index 61b5f6ebd4..24b6cd963b 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index 1b4069c272..ddf5f714a5 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index aa1503c64e..afcbf5ca5d 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index 6805631a8e..81745ee309 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index 5417810193..fda859f6d4 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index 0c1b609597..9d5f12336c 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index 5c4eb0cc7f..0156e852bb 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index 91e487e4c8..05766b15f8 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index 88ba522ebd..93be808196 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.6.B
+    4.2.7.B
   
 
   weixin-java-qidian

From 4339c4dc57c6d1b128bb890370dc5eba83bd9345 Mon Sep 17 00:00:00 2001
From: Jerry 
Date: Tue, 1 Mar 2022 15:13:13 +0800
Subject: [PATCH 140/622] =?UTF-8?q?:art:=20#2550=E3=80=90=E5=BC=80?=
 =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E7=AC=AC=E4=B8=89=E6=96=B9?=
 =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80=E9=94=99?=
 =?UTF-8?q?=E8=AF=AF=E7=A0=81=E7=9A=84=E4=B8=AD=E6=96=87=E6=8F=8F=E8=BF=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../chanjar/weixin/common/error/WxError.java  |    7 +
 .../common/error/WxOpenErrorMsgEnum.java      | 9203 +++++++++++++++++
 2 files changed, 9210 insertions(+)
 create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
index aa7f508f5b..1156636ea3 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxError.java
@@ -84,6 +84,13 @@ public static WxError fromJson(String json, WxType type) {
         }
         break;
       }
+      case Open: {
+        final String msg = WxOpenErrorMsgEnum.findMsgByCode(wxError.getErrorCode());
+        if (msg != null) {
+          wxError.setErrorMsg(msg);
+        }
+        break;
+      }
       default:
         return wxError;
     }
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java
new file mode 100644
index 0000000000..3ab1e961d8
--- /dev/null
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java
@@ -0,0 +1,9203 @@
+package me.chanjar.weixin.common.error;
+
+import com.google.common.collect.Maps;
+import lombok.Getter;
+
+import java.util.Map;
+
+/**
+ * 
+ *     微信开放平台全局返回码.
+ *     参考文档:开放平台全局返回码
+ * 
+ * + * @author Lam Jerry + */ + +@Getter +public enum WxOpenErrorMsgEnum { + /** + * 系统繁忙,此时请开发者稍候再试 system error + */ + CODE_1(-1, "系统繁忙,此时请开发者稍候再试"), + + /** + * 请求成功 ok + */ + CODE_0(0, "请求成功"), + + /** + * POST参数非法 + */ + CODE_1003(1003, "POST参数非法"), + + /** + * 商品id不存在 + */ + CODE_20002(20002, "商品id不存在"), + + /** + * 获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口 invalid credential, access_token is invalid or not latest + */ + CODE_40001(40001, "获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口"), + + /** + * 不合法的凭证类型 invalid grant_type + */ + CODE_40002(40002, "不合法的凭证类型"), + + /** + * 不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID invalid openid + */ + CODE_40003(40003, "不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID"), + + /** + * 不合法的媒体文件类型 invalid media type + */ + CODE_40004(40004, "不合法的媒体文件类型"), + + /** + * 上传素材文件格式不对 invalid file type + */ + CODE_40005(40005, "上传素材文件格式不对"), + + /** + * 上传素材文件大小超出限制 invalid meida size + */ + CODE_40006(40006, "上传素材文件大小超出限制"), + + /** + * 不合法的媒体文件 id invalid media_id + */ + CODE_40007(40007, "不合法的媒体文件 id"), + + /** + * 不合法的消息类型 invalid message type + */ + CODE_40008(40008, "不合法的消息类型"), + + /** + * 图片尺寸太大 invalid image size + */ + CODE_40009(40009, "图片尺寸太大"), + + /** + * 不合法的语音文件大小 invalid voice size + */ + CODE_40010(40010, "不合法的语音文件大小"), + + /** + * 不合法的视频文件大小 invalid video size + */ + CODE_40011(40011, "不合法的视频文件大小"), + + /** + * 不合法的缩略图文件大小 invalid thumb size + */ + CODE_40012(40012, "不合法的缩略图文件大小"), + + /** + * 不合法的appid invalid appid + */ + CODE_40013(40013, "不合法的appid"), + + /** + * 不合法的 access_token ,请开发者认真比对 access_token 的有效性(如是否过期),或查看是否正在为恰当的公众号调用接口 invalid access_token + */ + CODE_40014(40014, "不合法的 access_token ,请开发者认真比对 access_token 的有效性(如是否过期),或查看是否正在为恰当的公众号调用接口"), + + /** + * 不合法的菜单类型 invalid menu type + */ + CODE_40015(40015, "不合法的菜单类型"), + + /** + * 不合法的按钮个数 invalid button size + */ + CODE_40016(40016, "不合法的按钮个数"), + + /** + * 不合法的按钮类型 invalid button type + */ + CODE_40017(40017, "不合法的按钮类型"), + + /** + * 不合法的按钮名字长度 invalid button name size + */ + CODE_40018(40018, "不合法的按钮名字长度"), + + /** + * 不合法的按钮 KEY 长度 invalid button key size + */ + CODE_40019(40019, "不合法的按钮 KEY 长度"), + + /** + * 不合法的按钮 URL 长度 invalid button url size + */ + CODE_40020(40020, "不合法的按钮 URL 长度"), + + /** + * 不合法的菜单版本号 invalid menu version + */ + CODE_40021(40021, "不合法的菜单版本号"), + + /** + * 不合法的子菜单级数 invalid sub_menu level + */ + CODE_40022(40022, "不合法的子菜单级数"), + + /** + * 不合法的子菜单按钮个数 invalid sub button size + */ + CODE_40023(40023, "不合法的子菜单按钮个数"), + + /** + * 不合法的子菜单按钮类型 invalid sub button type + */ + CODE_40024(40024, "不合法的子菜单按钮类型"), + + /** + * 不合法的子菜单按钮名字长度 invalid sub button name size + */ + CODE_40025(40025, "不合法的子菜单按钮名字长度"), + + /** + * 不合法的子菜单按钮 KEY 长度 invalid sub button key size + */ + CODE_40026(40026, "不合法的子菜单按钮 KEY 长度"), + + /** + * 不合法的子菜单按钮 URL 长度 invalid sub button url size + */ + CODE_40027(40027, "不合法的子菜单按钮 URL 长度"), + + /** + * 不合法的自定义菜单使用用户 invalid menu api user + */ + CODE_40028(40028, "不合法的自定义菜单使用用户"), + + /** + * 无效的 oauth_code invalid code + */ + CODE_40029(40029, "无效的 oauth_code"), + + /** + * 不合法的 refresh_token invalid refresh_token + */ + CODE_40030(40030, "不合法的 refresh_token"), + + /** + * 不合法的 openid 列表 invalid openid list + */ + CODE_40031(40031, "不合法的 openid 列表"), + + /** + * 不合法的 openid 列表长度 invalid openid list size + */ + CODE_40032(40032, "不合法的 openid 列表长度"), + + /** + * 不合法的请求字符,不能包含 \\uxxxx 格式的字符 invalid charset. please check your request, if include \\uxxxx will create fail! + */ + CODE_40033(40033, "不合法的请求字符,不能包含 \\uxxxx 格式的字符"), + + /** + * invalid template size + */ + CODE_40034(40034, "invalid template size"), + + /** + * 不合法的参数 invalid args size + */ + CODE_40035(40035, "不合法的参数"), + + /** + * 不合法的 template_id 长度 invalid template_id size + */ + CODE_40036(40036, "不合法的 template_id 长度"), + + /** + * 不合法的 template_id invalid template_id + */ + CODE_40037(40037, "不合法的 template_id"), + + /** + * 不合法的请求格式 invalid packaging type + */ + CODE_40038(40038, "不合法的请求格式"), + + /** + * 不合法的 URL 长度 invalid url size + */ + CODE_40039(40039, "不合法的 URL 长度"), + + /** + * invalid plugin token + */ + CODE_40040(40040, "invalid plugin token"), + + /** + * invalid plugin id + */ + CODE_40041(40041, "invalid plugin id"), + + /** + * invalid plugin session + */ + CODE_40042(40042, "invalid plugin session"), + + /** + * invalid fav type + */ + CODE_40043(40043, "invalid fav type"), + + /** + * invalid size in link.title + */ + CODE_40044(40044, "invalid size in link.title"), + + /** + * invalid size in link.description + */ + CODE_40045(40045, "invalid size in link.description"), + + /** + * invalid size in link.iconurl + */ + CODE_40046(40046, "invalid size in link.iconurl"), + + /** + * invalid size in link.url + */ + CODE_40047(40047, "invalid size in link.url"), + + /** + * 无效的url invalid url domain + */ + CODE_40048(40048, "无效的url"), + + /** + * invalid score report type + */ + CODE_40049(40049, "invalid score report type"), + + /** + * 不合法的分组 id invalid timeline type + */ + CODE_40050(40050, "不合法的分组 id"), + + /** + * 分组名字不合法 invalid group name + */ + CODE_40051(40051, "分组名字不合法"), + + /** + * invalid action name + */ + CODE_40052(40052, "invalid action name"), + + /** + * invalid action info, please check document + */ + CODE_40053(40053, "invalid action info, please check document"), + + /** + * 不合法的子菜单按钮 url 域名 invalid sub button url domain + */ + CODE_40054(40054, "不合法的子菜单按钮 url 域名"), + + /** + * 不合法的菜单按钮 url 域名 invalid button url domain + */ + CODE_40055(40055, "不合法的菜单按钮 url 域名"), + + /** + * invalid serial code + */ + CODE_40056(40056, "invalid serial code"), + + /** + * invalid tabbar size + */ + CODE_40057(40057, "invalid tabbar size"), + + /** + * invalid tabbar name size + */ + CODE_40058(40058, "invalid tabbar name size"), + + /** + * invalid msg id + */ + CODE_40059(40059, "invalid msg id"), + + /** + * 删除单篇图文时,指定的 article_idx 不合法 invalid article idx + */ + CODE_40060(40060, "删除单篇图文时,指定的 article_idx 不合法"), + + /** + * invalid title size + */ + CODE_40062(40062, "invalid title size"), + + /** + * invalid message_ext size + */ + CODE_40063(40063, "invalid message_ext size"), + + /** + * invalid app type + */ + CODE_40064(40064, "invalid app type"), + + /** + * invalid msg status + */ + CODE_40065(40065, "invalid msg status"), + + /** + * 不合法的 url ,递交的页面被sitemap标记为拦截 invalid url + */ + CODE_40066(40066, "不合法的 url ,递交的页面被sitemap标记为拦截"), + + /** + * invalid tvid + */ + CODE_40067(40067, "invalid tvid"), + + /** + * contain mailcious url + */ + CODE_40068(40068, "contain mailcious url"), + + /** + * invalid hardware type + */ + CODE_40069(40069, "invalid hardware type"), + + /** + * invalid sku info + */ + CODE_40070(40070, "invalid sku info"), + + /** + * invalid card type + */ + CODE_40071(40071, "invalid card type"), + + /** + * invalid location id + */ + CODE_40072(40072, "invalid location id"), + + /** + * invalid card id + */ + CODE_40073(40073, "invalid card id"), + + /** + * invalid pay template id + */ + CODE_40074(40074, "invalid pay template id"), + + /** + * invalid encrypt code + */ + CODE_40075(40075, "invalid encrypt code"), + + /** + * invalid color id + */ + CODE_40076(40076, "invalid color id"), + + /** + * invalid score type + */ + CODE_40077(40077, "invalid score type"), + + /** + * invalid card status + */ + CODE_40078(40078, "invalid card status"), + + /** + * invalid time + */ + CODE_40079(40079, "invalid time"), + + /** + * invalid card ext + */ + CODE_40080(40080, "invalid card ext"), + + /** + * invalid template_id + */ + CODE_40081(40081, "invalid template_id"), + + /** + * invalid banner picture size + */ + CODE_40082(40082, "invalid banner picture size"), + + /** + * invalid banner url size + */ + CODE_40083(40083, "invalid banner url size"), + + /** + * invalid button desc size + */ + CODE_40084(40084, "invalid button desc size"), + + /** + * invalid button url size + */ + CODE_40085(40085, "invalid button url size"), + + /** + * invalid sharelink logo size + */ + CODE_40086(40086, "invalid sharelink logo size"), + + /** + * invalid sharelink desc size + */ + CODE_40087(40087, "invalid sharelink desc size"), + + /** + * invalid sharelink title size + */ + CODE_40088(40088, "invalid sharelink title size"), + + /** + * invalid platform id + */ + CODE_40089(40089, "invalid platform id"), + + /** + * invalid request source (bad client ip) + */ + CODE_40090(40090, "invalid request source (bad client ip)"), + + /** + * invalid component ticket + */ + CODE_40091(40091, "invalid component ticket"), + + /** + * invalid remark name + */ + CODE_40092(40092, "invalid remark name"), + + /** + * not completely ok, err_item will return location_id=-1,check your required_fields in json. + */ + CODE_40093(40093, "not completely ok, err_item will return location_id=-1,check your required_fields in json."), + + /** + * invalid component credential + */ + CODE_40094(40094, "invalid component credential"), + + /** + * bad source of caller + */ + CODE_40095(40095, "bad source of caller"), + + /** + * invalid biztype + */ + CODE_40096(40096, "invalid biztype"), + + /** + * 参数错误 invalid args + */ + CODE_40097(40097, "参数错误"), + + /** + * invalid poiid + */ + CODE_40098(40098, "invalid poiid"), + + /** + * invalid code, this code has consumed. + */ + CODE_40099(40099, "invalid code, this code has consumed."), + + /** + * invalid DateInfo, Make Sure OldDateInfoType==NewDateInfoType && NewBeginTime<=OldBeginTime && OldEndTime<= NewEndTime + */ + CODE_40100(40100, "invalid DateInfo, Make Sure OldDateInfoType==NewDateInfoType && NewBeginTime<=OldBeginTime && OldEndTime<= NewEndTime"), + + /** + * missing parameter + */ + CODE_40101(40101, "missing parameter"), + + /** + * invalid industry id + */ + CODE_40102(40102, "invalid industry id"), + + /** + * invalid industry index + */ + CODE_40103(40103, "invalid industry index"), + + /** + * invalid category id + */ + CODE_40104(40104, "invalid category id"), + + /** + * invalid view type + */ + CODE_40105(40105, "invalid view type"), + + /** + * invalid user name + */ + CODE_40106(40106, "invalid user name"), + + /** + * invalid card id! 1,card status must verify ok; 2,this card must have location_id + */ + CODE_40107(40107, "invalid card id! 1,card status must verify ok; 2,this card must have location_id"), + + /** + * invalid client version + */ + CODE_40108(40108, "invalid client version"), + + /** + * too many code size, must <= 100 + */ + CODE_40109(40109, "too many code size, must <= 100"), + + /** + * have empty code + */ + CODE_40110(40110, "have empty code"), + + /** + * have same code + */ + CODE_40111(40111, "have same code"), + + /** + * can not set bind openid + */ + CODE_40112(40112, "can not set bind openid"), + + /** + * unsupported file type + */ + CODE_40113(40113, "unsupported file type"), + + /** + * invalid index value + */ + CODE_40114(40114, "invalid index value"), + + /** + * invalid session from + */ + CODE_40115(40115, "invalid session from"), + + /** + * invalid code + */ + CODE_40116(40116, "invalid code"), + + /** + * 分组名字不合法 invalid button media_id size + */ + CODE_40117(40117, "分组名字不合法"), + + /** + * media_id 大小不合法 invalid sub button media_id size + */ + CODE_40118(40118, "media_id 大小不合法"), + + /** + * button 类型错误 invalid use button type + */ + CODE_40119(40119, "button 类型错误"), + + /** + * 子 button 类型错误 invalid use sub button type + */ + CODE_40120(40120, "子 button 类型错误"), + + /** + * 不合法的 media_id 类型 invalid media type in view_limited + */ + CODE_40121(40121, "不合法的 media_id 类型"), + + /** + * invalid card quantity + */ + CODE_40122(40122, "invalid card quantity"), + + /** + * invalid task_id + */ + CODE_40123(40123, "invalid task_id"), + + /** + * too many custom field! + */ + CODE_40124(40124, "too many custom field!"), + + /** + * 不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写 invalid appsecret + */ + CODE_40125(40125, "不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写"), + + /** + * invalid text size + */ + CODE_40126(40126, "invalid text size"), + + /** + * invalid user-card status! Hint: the card was given to user, but may be deleted or expired or set unavailable ! + */ + CODE_40127(40127, "invalid user-card status! Hint: the card was given to user, but may be deleted or expired or set unavailable !"), + + /** + * invalid media id! must be uploaded by api(cgi-bin/material/add_material) + */ + CODE_40128(40128, "invalid media id! must be uploaded by api(cgi-bin/material/add_material)"), + + /** + * invalid scene + */ + CODE_40129(40129, "invalid scene"), + + /** + * invalid openid list size, at least two openid + */ + CODE_40130(40130, "invalid openid list size, at least two openid"), + + /** + * out of limit of ticket + */ + CODE_40131(40131, "out of limit of ticket"), + + /** + * 微信号不合法 invalid username + */ + CODE_40132(40132, "微信号不合法"), + + /** + * invalid encryt data + */ + CODE_40133(40133, "invalid encryt data"), + + /** + * invalid not supply bonus, can not change card_id which supply bonus to be not supply + */ + CODE_40135(40135, "invalid not supply bonus, can not change card_id which supply bonus to be not supply"), + + /** + * invalid use DepositCodeMode, make sure sku.quantity>DepositCode.quantity + */ + CODE_40136(40136, "invalid use DepositCodeMode, make sure sku.quantity>DepositCode.quantity"), + + /** + * 不支持的图片格式 invalid image format + */ + CODE_40137(40137, "不支持的图片格式"), + + /** + * emphasis word can not be first neither remark + */ + CODE_40138(40138, "emphasis word can not be first neither remark"), + + /** + * invalid sub merchant id + */ + CODE_40139(40139, "invalid sub merchant id"), + + /** + * invalid sub merchant status + */ + CODE_40140(40140, "invalid sub merchant status"), + + /** + * invalid image url + */ + CODE_40141(40141, "invalid image url"), + + /** + * invalid sharecard parameters + */ + CODE_40142(40142, "invalid sharecard parameters"), + + /** + * invalid least cost info, should be 0 + */ + CODE_40143(40143, "invalid least cost info, should be 0"), + + /** + * 1)maybe share_card_list.num or consume_share_self_num too big; 2)maybe card_id_list also has self-card_id;3)maybe card_id_list has many different card_id;4)maybe both consume_share_self_num and share_card_list.num bigger than 0 + */ + CODE_40144(40144, "1)maybe share_card_list.num or consume_share_self_num too big; 2)maybe card_id_list also has self-card_id;3)maybe card_id_list has many different card_id;4)maybe both consume_share_self_num and share_card_list.num bigger than 0"), + + /** + * invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url). + */ + CODE_40145(40145, "invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url)."), + + /** + * invalid openid! card may be marked by other user! + */ + CODE_40146(40146, "invalid openid! card may be marked by other user!"), + + /** + * invalid consume! Consume time overranging restricts. + */ + CODE_40147(40147, "invalid consume! Consume time overranging restricts."), + + /** + * invalid friends card type + */ + CODE_40148(40148, "invalid friends card type"), + + /** + * invalid use time limit + */ + CODE_40149(40149, "invalid use time limit"), + + /** + * invalid card parameters + */ + CODE_40150(40150, "invalid card parameters"), + + /** + * invalid card info, text/pic hit antispam + */ + CODE_40151(40151, "invalid card info, text/pic hit antispam"), + + /** + * invalid group id + */ + CODE_40152(40152, "invalid group id"), + + /** + * self consume cell for friends card must need verify code + */ + CODE_40153(40153, "self consume cell for friends card must need verify code"), + + /** + * invalid voip parameters + */ + CODE_40154(40154, "invalid voip parameters"), + + /** + * 请勿添加其他公众号的主页链接 please don't contain other home page url + */ + CODE_40155(40155, "请勿添加其他公众号的主页链接"), + + /** + * invalid face recognize parameters + */ + CODE_40156(40156, "invalid face recognize parameters"), + + /** + * invalid picture, has no face + */ + CODE_40157(40157, "invalid picture, has no face"), + + /** + * invalid use_custom_code, need be false + */ + CODE_40158(40158, "invalid use_custom_code, need be false"), + + /** + * invalid length for path, or the data is not json string + */ + CODE_40159(40159, "invalid length for path, or the data is not json string"), + + /** + * invalid image file + */ + CODE_40160(40160, "invalid image file"), + + /** + * image file not match + */ + CODE_40161(40161, "image file not match"), + + /** + * invalid lifespan + */ + CODE_40162(40162, "invalid lifespan"), + + /** + * oauth_code已使用 code been used + */ + CODE_40163(40163, "oauth_code已使用"), + + /** + * invalid ip, not in whitelist + */ + CODE_40164(40164, "invalid ip, not in whitelist"), + + /** + * invalid weapp pagepath + */ + CODE_40165(40165, "invalid weapp pagepath"), + + /** + * invalid weapp appid + */ + CODE_40166(40166, "invalid weapp appid"), + + /** + * there is no relation with plugin appid + */ + CODE_40167(40167, "there is no relation with plugin appid"), + + /** + * unlinked weapp card + */ + CODE_40168(40168, "unlinked weapp card"), + + /** + * invalid length for scene, or the data is not json string + */ + CODE_40169(40169, "invalid length for scene, or the data is not json string"), + + /** + * args count exceed count limit + */ + CODE_40170(40170, "args count exceed count limit"), + + /** + * product id can not empty and the length cannot exceed 32 + */ + CODE_40171(40171, "product id can not empty and the length cannot exceed 32"), + + /** + * can not have same product id + */ + CODE_40172(40172, "can not have same product id"), + + /** + * there is no bind relation + */ + CODE_40173(40173, "there is no bind relation"), + + /** + * not card user + */ + CODE_40174(40174, "not card user"), + + /** + * invalid material id + */ + CODE_40175(40175, "invalid material id"), + + /** + * invalid template id + */ + CODE_40176(40176, "invalid template id"), + + /** + * invalid product id + */ + CODE_40177(40177, "invalid product id"), + + /** + * invalid sign + */ + CODE_40178(40178, "invalid sign"), + + /** + * Function is adjusted, rules are not allowed to add or update + */ + CODE_40179(40179, "Function is adjusted, rules are not allowed to add or update"), + + /** + * invalid client tmp token + */ + CODE_40180(40180, "invalid client tmp token"), + + /** + * invalid opengid + */ + CODE_40181(40181, "invalid opengid"), + + /** + * invalid pack_id + */ + CODE_40182(40182, "invalid pack_id"), + + /** + * invalid product_appid, product_appid should bind with wxa_appid + */ + CODE_40183(40183, "invalid product_appid, product_appid should bind with wxa_appid"), + + /** + * invalid url path + */ + CODE_40184(40184, "invalid url path"), + + /** + * invalid auth_token, or auth_token is expired + */ + CODE_40185(40185, "invalid auth_token, or auth_token is expired"), + + /** + * invalid delegate + */ + CODE_40186(40186, "invalid delegate"), + + /** + * invalid ip + */ + CODE_40187(40187, "invalid ip"), + + /** + * invalid scope + */ + CODE_40188(40188, "invalid scope"), + + /** + * invalid width + */ + CODE_40189(40189, "invalid width"), + + /** + * invalid delegate time + */ + CODE_40190(40190, "invalid delegate time"), + + /** + * invalid pic_url + */ + CODE_40191(40191, "invalid pic_url"), + + /** + * invalid author in news + */ + CODE_40192(40192, "invalid author in news"), + + /** + * invalid recommend length + */ + CODE_40193(40193, "invalid recommend length"), + + /** + * illegal recommend + */ + CODE_40194(40194, "illegal recommend"), + + /** + * invalid show_num + */ + CODE_40195(40195, "invalid show_num"), + + /** + * invalid smartmsg media_id + */ + CODE_40196(40196, "invalid smartmsg media_id"), + + /** + * invalid smartmsg media num + */ + CODE_40197(40197, "invalid smartmsg media num"), + + /** + * invalid default msg article size, must be same as show_num + */ + CODE_40198(40198, "invalid default msg article size, must be same as show_num"), + + /** + * 运单 ID 不存在,未查到运单 waybill_id not found + */ + CODE_40199(40199, "运单 ID 不存在,未查到运单"), + + /** + * invalid account type + */ + CODE_40200(40200, "invalid account type"), + + /** + * invalid check url + */ + CODE_40201(40201, "invalid check url"), + + /** + * invalid check action + */ + CODE_40202(40202, "invalid check action"), + + /** + * invalid check operator + */ + CODE_40203(40203, "invalid check operator"), + + /** + * can not delete wash or rumor article + */ + CODE_40204(40204, "can not delete wash or rumor article"), + + /** + * invalid check keywords string + */ + CODE_40205(40205, "invalid check keywords string"), + + /** + * invalid check begin stamp + */ + CODE_40206(40206, "invalid check begin stamp"), + + /** + * invalid check alive seconds + */ + CODE_40207(40207, "invalid check alive seconds"), + + /** + * invalid check notify id + */ + CODE_40208(40208, "invalid check notify id"), + + /** + * invalid check notify msg + */ + CODE_40209(40209, "invalid check notify msg"), + + /** + * pages 中的path参数不存在或为空 invalid check wxa path + */ + CODE_40210(40210, "pages 中的path参数不存在或为空"), + + /** + * invalid scope_data + */ + CODE_40211(40211, "invalid scope_data"), + + /** + * paegs 当中存在不合法的query,query格式遵循URL标准,即k1=v1&k2=v2 invalid query + */ + CODE_40212(40212, "paegs 当中存在不合法的query,query格式遵循URL标准,即k1=v1&k2=v2"), + + /** + * invalid href tag + */ + CODE_40213(40213, "invalid href tag"), + + /** + * invalid href text + */ + CODE_40214(40214, "invalid href text"), + + /** + * invalid image count + */ + CODE_40215(40215, "invalid image count"), + + /** + * invalid desc + */ + CODE_40216(40216, "invalid desc"), + + /** + * invalid video count + */ + CODE_40217(40217, "invalid video count"), + + /** + * invalid video id + */ + CODE_40218(40218, "invalid video id"), + + /** + * pages不存在或者参数为空 pages is empty + */ + CODE_40219(40219, "pages不存在或者参数为空"), + + /** + * data_list is empty + */ + CODE_40220(40220, "data_list is empty"), + + /** + * invalid Content-Encoding + */ + CODE_40221(40221, "invalid Content-Encoding"), + + /** + * invalid request idc domain + */ + CODE_40222(40222, "invalid request idc domain"), + + /** + * 缺少 access_token 参数 access_token missing + */ + CODE_41001(41001, "缺少 access_token 参数"), + + /** + * 缺少 appid 参数 appid missing + */ + CODE_41002(41002, "缺少 appid 参数"), + + /** + * 缺少 refresh_token 参数 refresh_token missing + */ + CODE_41003(41003, "缺少 refresh_token 参数"), + + /** + * 缺少 secret 参数 appsecret missing + */ + CODE_41004(41004, "缺少 secret 参数"), + + /** + * 缺少多媒体文件数据,传输素材无视频或图片内容 media data missing + */ + CODE_41005(41005, "缺少多媒体文件数据,传输素材无视频或图片内容"), + + /** + * 缺少 media_id 参数 media_id missing + */ + CODE_41006(41006, "缺少 media_id 参数"), + + /** + * 缺少子菜单数据 sub_menu data missing + */ + CODE_41007(41007, "缺少子菜单数据"), + + /** + * 缺少 oauth code missing code + */ + CODE_41008(41008, "缺少 oauth code"), + + /** + * 缺少 openid missing openid + */ + CODE_41009(41009, "缺少 openid"), + + /** + * 缺失 url 参数 missing url + */ + CODE_41010(41010, "缺失 url 参数"), + + /** + * missing required fields! please check document and request json! + */ + CODE_41011(41011, "missing required fields! please check document and request json!"), + + /** + * missing card id + */ + CODE_41012(41012, "missing card id"), + + /** + * missing code + */ + CODE_41013(41013, "missing code"), + + /** + * missing ticket_class + */ + CODE_41014(41014, "missing ticket_class"), + + /** + * missing show_time + */ + CODE_41015(41015, "missing show_time"), + + /** + * missing screening_room + */ + CODE_41016(41016, "missing screening_room"), + + /** + * missing seat_number + */ + CODE_41017(41017, "missing seat_number"), + + /** + * missing component_appid + */ + CODE_41018(41018, "missing component_appid"), + + /** + * missing platform_secret + */ + CODE_41019(41019, "missing platform_secret"), + + /** + * missing platform_ticket + */ + CODE_41020(41020, "missing platform_ticket"), + + /** + * missing component_access_token + */ + CODE_41021(41021, "missing component_access_token"), + + /** + * missing "display" field + */ + CODE_41024(41024, "missing \"display\" field"), + + /** + * poi_list empty + */ + CODE_41025(41025, "poi_list empty"), + + /** + * missing image list info, text maybe empty + */ + CODE_41026(41026, "missing image list info, text maybe empty"), + + /** + * missing voip call key + */ + CODE_41027(41027, "missing voip call key"), + + /** + * invalid form id + */ + CODE_41028(41028, "invalid form id"), + + /** + * form id used count reach limit + */ + CODE_41029(41029, "form id used count reach limit"), + + /** + * page路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致 invalid page + */ + CODE_41030(41030, "page路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致"), + + /** + * the form id have been blocked! + */ + CODE_41031(41031, "the form id have been blocked!"), + + /** + * not allow to send message with submitted form id, for punishment + */ + CODE_41032(41032, "not allow to send message with submitted form id, for punishment"), + + /** + * 只允许通过api创建的小程序使用 invaid register type + */ + CODE_41033(41033, "只允许通过api创建的小程序使用"), + + /** + * not allow to send message with submitted form id, for punishment + */ + CODE_41034(41034, "not allow to send message with submitted form id, for punishment"), + + /** + * not allow to send message with prepay id, for punishment + */ + CODE_41035(41035, "not allow to send message with prepay id, for punishment"), + + /** + * appid ad cid + */ + CODE_41036(41036, "appid ad cid"), + + /** + * appid ad_mch_appid + */ + CODE_41037(41037, "appid ad_mch_appid"), + + /** + * appid pos_type + */ + CODE_41038(41038, "appid pos_type"), + + /** + * access_token 超时,请检查 access_token 的有效期,请参考基础支持 - 获取 access_token 中,对 access_token 的详细机制说明 access_token expired + */ + CODE_42001(42001, "access_token 超时,请检查 access_token 的有效期,请参考基础支持 - 获取 access_token 中,对 access_token 的详细机制说明"), + + /** + * refresh_token 超时 refresh_token expired + */ + CODE_42002(42002, "refresh_token 超时"), + + /** + * oauth_code 超时 code expired + */ + CODE_42003(42003, "oauth_code 超时"), + + /** + * plugin token expired + */ + CODE_42004(42004, "plugin token expired"), + + /** + * api usage expired + */ + CODE_42005(42005, "api usage expired"), + + /** + * component_access_token expired + */ + CODE_42006(42006, "component_access_token expired"), + + /** + * 用户修改微信密码, accesstoken 和 refreshtoken 失效,需要重新授权 access_token and refresh_token exception + */ + CODE_42007(42007, "用户修改微信密码, accesstoken 和 refreshtoken 失效,需要重新授权"), + + /** + * voip call key expired + */ + CODE_42008(42008, "voip call key expired"), + + /** + * client tmp token expired + */ + CODE_42009(42009, "client tmp token expired"), + + /** + * 需要 GET 请求 require GET method + */ + CODE_43001(43001, "需要 GET 请求"), + + /** + * 需要 POST 请求 require POST method + */ + CODE_43002(43002, "需要 POST 请求"), + + /** + * 需要 HTTPS 请求 require https + */ + CODE_43003(43003, "需要 HTTPS 请求"), + + /** + * 需要接收者关注 require subscribe + */ + CODE_43004(43004, "需要接收者关注"), + + /** + * 需要好友关系 require friend relations + */ + CODE_43005(43005, "需要好友关系"), + + /** + * require not block + */ + CODE_43006(43006, "require not block"), + + /** + * require bizuser authorize + */ + CODE_43007(43007, "require bizuser authorize"), + + /** + * require biz pay auth + */ + CODE_43008(43008, "require biz pay auth"), + + /** + * can not use custom code, need authorize + */ + CODE_43009(43009, "can not use custom code, need authorize"), + + /** + * can not use balance, need authorize + */ + CODE_43010(43010, "can not use balance, need authorize"), + + /** + * can not use bonus, need authorize + */ + CODE_43011(43011, "can not use bonus, need authorize"), + + /** + * can not use custom url, need authorize + */ + CODE_43012(43012, "can not use custom url, need authorize"), + + /** + * can not use shake card, need authorize + */ + CODE_43013(43013, "can not use shake card, need authorize"), + + /** + * require check agent + */ + CODE_43014(43014, "require check agent"), + + /** + * require authorize by wechat team to use this function! + */ + CODE_43015(43015, "require authorize by wechat team to use this function!"), + + /** + * 小程序未认证 require verify + */ + CODE_43016(43016, "小程序未认证"), + + /** + * require location id! + */ + CODE_43017(43017, "require location id!"), + + /** + * code has no been mark! + */ + CODE_43018(43018, "code has no been mark!"), + + /** + * 需要将接收者从黑名单中移除 require remove blacklist + */ + CODE_43019(43019, "需要将接收者从黑名单中移除"), + + /** + * change template too frequently + */ + CODE_43100(43100, "change template too frequently"), + + /** + * 用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系 user refuse to accept the msg + */ + CODE_43101(43101, "用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系"), + + /** + * the tempalte is not subscriptiontype + */ + CODE_43102(43102, "the tempalte is not subscriptiontype"), + + /** + * the api only can cancel the subscription + */ + CODE_43103(43103, "the api only can cancel the subscription"), + + /** + * this appid does not have permission + */ + CODE_43104(43104, "this appid does not have permission"), + + /** + * news has no binding relation with template_id + */ + CODE_43105(43105, "news has no binding relation with template_id"), + + /** + * not allow to add template, for punishment + */ + CODE_43106(43106, "not allow to add template, for punishment"), + + /** + * 多媒体文件为空 empty media data + */ + CODE_44001(44001, "多媒体文件为空"), + + /** + * POST 的数据包为空 empty post data + */ + CODE_44002(44002, "POST 的数据包为空"), + + /** + * 图文消息内容为空 empty news data + */ + CODE_44003(44003, "图文消息内容为空"), + + /** + * 文本消息内容为空 empty content + */ + CODE_44004(44004, "文本消息内容为空"), + + /** + * 空白的列表 empty list size + */ + CODE_44005(44005, "空白的列表"), + + /** + * empty file data + */ + CODE_44006(44006, "empty file data"), + + /** + * repeated msg id + */ + CODE_44007(44007, "repeated msg id"), + + /** + * image url size out of limit + */ + CODE_44997(44997, "image url size out of limit"), + + /** + * keyword string media size out of limit + */ + CODE_44998(44998, "keyword string media size out of limit"), + + /** + * keywords list size out of limit + */ + CODE_44999(44999, "keywords list size out of limit"), + + /** + * msg_id size out of limit + */ + CODE_45000(45000, "msg_id size out of limit"), + + /** + * 多媒体文件大小超过限制 media size out of limit + */ + CODE_45001(45001, "多媒体文件大小超过限制"), + + /** + * 消息内容超过限制 content size out of limit + */ + CODE_45002(45002, "消息内容超过限制"), + + /** + * 标题字段超过限制 title size out of limit + */ + CODE_45003(45003, "标题字段超过限制"), + + /** + * 描述字段超过限制 description size out of limit + */ + CODE_45004(45004, "描述字段超过限制"), + + /** + * 链接字段超过限制 url size out of limit + */ + CODE_45005(45005, "链接字段超过限制"), + + /** + * 图片链接字段超过限制 picurl size out of limit + */ + CODE_45006(45006, "图片链接字段超过限制"), + + /** + * 语音播放时间超过限制 playtime out of limit + */ + CODE_45007(45007, "语音播放时间超过限制"), + + /** + * 图文消息超过限制 article size out of limit + */ + CODE_45008(45008, "图文消息超过限制"), + + /** + * 接口调用超过限制 reach max api daily quota limit + */ + CODE_45009(45009, "接口调用超过限制"), + + /** + * 创建菜单个数超过限制 create menu limit + */ + CODE_45010(45010, "创建菜单个数超过限制"), + + /** + * API 调用太频繁,请稍候再试 api minute-quota reach limit, must slower, retry next minute + */ + CODE_45011(45011, "API 调用太频繁,请稍候再试"), + + /** + * 模板大小超过限制 template size out of limit + */ + CODE_45012(45012, "模板大小超过限制"), + + /** + * too many template args + */ + CODE_45013(45013, "too many template args"), + + /** + * template message size out of limit + */ + CODE_45014(45014, "template message size out of limit"), + + /** + * 回复时间超过限制 response out of time limit or subscription is canceled + */ + CODE_45015(45015, "回复时间超过限制"), + + /** + * 系统分组,不允许修改 can't modify sys group + */ + CODE_45016(45016, "系统分组,不允许修改"), + + /** + * 分组名字过长 can't set group name too long sys group + */ + CODE_45017(45017, "分组名字过长"), + + /** + * 分组数量超过上限 too many group now, no need to add new + */ + CODE_45018(45018, "分组数量超过上限"), + + /** + * too many openid, please input less + */ + CODE_45019(45019, "too many openid, please input less"), + + /** + * too many image, please input less + */ + CODE_45020(45020, "too many image, please input less"), + + /** + * some argument may be out of length limit! please check document and request json! + */ + CODE_45021(45021, "some argument may be out of length limit! please check document and request json!"), + + /** + * bonus is out of limit + */ + CODE_45022(45022, "bonus is out of limit"), + + /** + * balance is out of limit + */ + CODE_45023(45023, "balance is out of limit"), + + /** + * rank template number is out of limit + */ + CODE_45024(45024, "rank template number is out of limit"), + + /** + * poiid count is out of limit + */ + CODE_45025(45025, "poiid count is out of limit"), + + /** + * template num exceeds limit + */ + CODE_45026(45026, "template num exceeds limit"), + + /** + * template conflict with industry + */ + CODE_45027(45027, "template conflict with industry"), + + /** + * has no masssend quota + */ + CODE_45028(45028, "has no masssend quota"), + + /** + * qrcode count out of limit + */ + CODE_45029(45029, "qrcode count out of limit"), + + /** + * limit cardid, not support this function + */ + CODE_45030(45030, "limit cardid, not support this function"), + + /** + * stock is out of limit + */ + CODE_45031(45031, "stock is out of limit"), + + /** + * not inner ip for special acct in white-list + */ + CODE_45032(45032, "not inner ip for special acct in white-list"), + + /** + * user get card num is out of get_limit + */ + CODE_45033(45033, "user get card num is out of get_limit"), + + /** + * media file count is out of limit + */ + CODE_45034(45034, "media file count is out of limit"), + + /** + * access clientip is not registered, not in ip-white-list + */ + CODE_45035(45035, "access clientip is not registered, not in ip-white-list"), + + /** + * User receive announcement limit + */ + CODE_45036(45036, "User receive announcement limit"), + + /** + * user out of time limit or never talked in tempsession + */ + CODE_45037(45037, "user out of time limit or never talked in tempsession"), + + /** + * user subscribed, cannot use tempsession api + */ + CODE_45038(45038, "user subscribed, cannot use tempsession api"), + + /** + * card_list_size out of limit + */ + CODE_45039(45039, "card_list_size out of limit"), + + /** + * reach max monthly quota limit + */ + CODE_45040(45040, "reach max monthly quota limit"), + + /** + * this card reach total sku quantity limit! + */ + CODE_45041(45041, "this card reach total sku quantity limit!"), + + /** + * limit card type, this card type can NOT create by sub merchant + */ + CODE_45042(45042, "limit card type, this card type can NOT create by sub merchant"), + + /** + * can not set share_friends=true because has no Abstract Or Text_Img_List has no img Or image url not valid + */ + CODE_45043(45043, "can not set share_friends=true because has no Abstract Or Text_Img_List has no img Or image url not valid"), + + /** + * icon url size in abstract is out of limit + */ + CODE_45044(45044, "icon url size in abstract is out of limit"), + + /** + * unauthorized friends card, please contact administrator + */ + CODE_45045(45045, "unauthorized friends card, please contact administrator"), + + /** + * operate field conflict, CenterCell, PayCell, SelfConsumeCell conflict + */ + CODE_45046(45046, "operate field conflict, CenterCell, PayCell, SelfConsumeCell conflict"), + + /** + * 客服接口下行条数超过上限 out of response count limit + */ + CODE_45047(45047, "客服接口下行条数超过上限"), + + /** + * menu use invalid type + */ + CODE_45048(45048, "menu use invalid type"), + + /** + * ivr use invalid type + */ + CODE_45049(45049, "ivr use invalid type"), + + /** + * custom msg use invalid type + */ + CODE_45050(45050, "custom msg use invalid type"), + + /** + * template msg use invalid link + */ + CODE_45051(45051, "template msg use invalid link"), + + /** + * masssend msg use invalid type + */ + CODE_45052(45052, "masssend msg use invalid type"), + + /** + * exceed consume verify code size + */ + CODE_45053(45053, "exceed consume verify code size"), + + /** + * below consume verify code size + */ + CODE_45054(45054, "below consume verify code size"), + + /** + * the code is not in consume verify code charset + */ + CODE_45055(45055, "the code is not in consume verify code charset"), + + /** + * too many tag now, no need to add new + */ + CODE_45056(45056, "too many tag now, no need to add new"), + + /** + * can't delete the tag that has too many fans + */ + CODE_45057(45057, "can't delete the tag that has too many fans"), + + /** + * can't modify sys tag + */ + CODE_45058(45058, "can't modify sys tag"), + + /** + * can not tagging one user too much + */ + CODE_45059(45059, "can not tagging one user too much"), + + /** + * media is applied in ivr or menu, can not be deleted + */ + CODE_45060(45060, "media is applied in ivr or menu, can not be deleted"), + + /** + * maybe the update frequency is too often, please try again + */ + CODE_45061(45061, "maybe the update frequency is too often, please try again"), + + /** + * has agreement ad. please use mp.weixin.qq.com + */ + CODE_45062(45062, "has agreement ad. please use mp.weixin.qq.com"), + + /** + * accesstoken is not xiaochengxu + */ + CODE_45063(45063, "accesstoken is not xiaochengxu"), + + /** + * 创建菜单包含未关联的小程序 no permission to use weapp in menu + */ + CODE_45064(45064, "创建菜单包含未关联的小程序"), + + /** + * 相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid clientmsgid exist + */ + CODE_45065(45065, "相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid"), + + /** + * 相同 clientmsgid 重试速度过快,请间隔1分钟重试 same clientmsgid retry too fast + */ + CODE_45066(45066, "相同 clientmsgid 重试速度过快,请间隔1分钟重试"), + + /** + * clientmsgid 长度超过限制 clientmsgid size out of limit + */ + CODE_45067(45067, "clientmsgid 长度超过限制"), + + /** + * file size out of limit + */ + CODE_45068(45068, "file size out of limit"), + + /** + * product list size out of limit + */ + CODE_45069(45069, "product list size out of limit"), + + /** + * the business account have been created + */ + CODE_45070(45070, "the business account have been created"), + + /** + * business account not found + */ + CODE_45071(45071, "business account not found"), + + /** + * command字段取值不对 invalid command + */ + CODE_45072(45072, "command字段取值不对"), + + /** + * not inner vip for sns in white list + */ + CODE_45073(45073, "not inner vip for sns in white list"), + + /** + * material list size out of limit, you should delete the useless material + */ + CODE_45074(45074, "material list size out of limit, you should delete the useless material"), + + /** + * invalid keyword id + */ + CODE_45075(45075, "invalid keyword id"), + + /** + * invalid count + */ + CODE_45076(45076, "invalid count"), + + /** + * number of business account reach limit + */ + CODE_45077(45077, "number of business account reach limit"), + + /** + * nickname is illegal! + */ + CODE_45078(45078, "nickname is illegal!"), + + /** + * nickname is forbidden!(matched forbidden keyword) + */ + CODE_45079(45079, "nickname is forbidden!(matched forbidden keyword)"), + + /** + * 下发输入状态,需要之前30秒内跟用户有过消息交互 need sending message to user, or recving message from user in the last 30 seconds before typing + */ + CODE_45080(45080, "下发输入状态,需要之前30秒内跟用户有过消息交互"), + + /** + * 已经在输入状态,不可重复下发 you are already typing + */ + CODE_45081(45081, "已经在输入状态,不可重复下发"), + + /** + * need icp license for the url domain + */ + CODE_45082(45082, "need icp license for the url domain"), + + /** + * the speed out of range + */ + CODE_45083(45083, "the speed out of range"), + + /** + * No speed message + */ + CODE_45084(45084, "No speed message"), + + /** + * speed server err + */ + CODE_45085(45085, "speed server err"), + + /** + * invalid attrbute 'data-miniprogram-appid' + */ + CODE_45086(45086, "invalid attrbute 'data-miniprogram-appid'"), + + /** + * customer service message from this account have been blocked! + */ + CODE_45087(45087, "customer service message from this account have been blocked!"), + + /** + * action size out of limit + */ + CODE_45088(45088, "action size out of limit"), + + /** + * expired + */ + CODE_45089(45089, "expired"), + + /** + * invalid group msg ticket + */ + CODE_45090(45090, "invalid group msg ticket"), + + /** + * account_name is illegal! + */ + CODE_45091(45091, "account_name is illegal!"), + + /** + * no voice data + */ + CODE_45092(45092, "no voice data"), + + /** + * no quota to send msg + */ + CODE_45093(45093, "no quota to send msg"), + + /** + * not allow to send custom message when user enter session, for punishment + */ + CODE_45094(45094, "not allow to send custom message when user enter session, for punishment"), + + /** + * not allow to modify stock for the advertisement batch + */ + CODE_45095(45095, "not allow to modify stock for the advertisement batch"), + + /** + * invalid qrcode + */ + CODE_45096(45096, "invalid qrcode"), + + /** + * invalid qrcode prefix + */ + CODE_45097(45097, "invalid qrcode prefix"), + + /** + * msgmenu list size is out of limit + */ + CODE_45098(45098, "msgmenu list size is out of limit"), + + /** + * msgmenu item content size is out of limit + */ + CODE_45099(45099, "msgmenu item content size is out of limit"), + + /** + * invalid size of keyword_id_list + */ + CODE_45100(45100, "invalid size of keyword_id_list"), + + /** + * hit upload limit + */ + CODE_45101(45101, "hit upload limit"), + + /** + * this api have been blocked temporarily. + */ + CODE_45102(45102, "this api have been blocked temporarily."), + + /** + * This API has been unsupported + */ + CODE_45103(45103, "This API has been unsupported"), + + /** + * reach max domain quota limit + */ + CODE_45104(45104, "reach max domain quota limit"), + + /** + * the consume verify code not found + */ + CODE_45154(45154, "the consume verify code not found"), + + /** + * the consume verify code is existed + */ + CODE_45155(45155, "the consume verify code is existed"), + + /** + * the consume verify code's length not invalid + */ + CODE_45156(45156, "the consume verify code's length not invalid"), + + /** + * invalid tag name + */ + CODE_45157(45157, "invalid tag name"), + + /** + * tag name too long + */ + CODE_45158(45158, "tag name too long"), + + /** + * invalid tag id + */ + CODE_45159(45159, "invalid tag id"), + + /** + * invalid category to create card + */ + CODE_45160(45160, "invalid category to create card"), + + /** + * this video id must be generated by calling upload api + */ + CODE_45161(45161, "this video id must be generated by calling upload api"), + + /** + * invalid type + */ + CODE_45162(45162, "invalid type"), + + /** + * invalid sort_method + */ + CODE_45163(45163, "invalid sort_method"), + + /** + * invalid offset + */ + CODE_45164(45164, "invalid offset"), + + /** + * invalid limit + */ + CODE_45165(45165, "invalid limit"), + + /** + * invalid content + */ + CODE_45166(45166, "invalid content"), + + /** + * invalid voip call key + */ + CODE_45167(45167, "invalid voip call key"), + + /** + * keyword in blacklist + */ + CODE_45168(45168, "keyword in blacklist"), + + /** + * part or whole of the requests from the very app is temporary blocked by supervisor + */ + CODE_45501(45501, "part or whole of the requests from the very app is temporary blocked by supervisor"), + + /** + * 不存在媒体数据,media_id 不存在 media data no exist + */ + CODE_46001(46001, "不存在媒体数据,media_id 不存在"), + + /** + * 不存在的菜单版本 menu version no exist + */ + CODE_46002(46002, "不存在的菜单版本"), + + /** + * 不存在的菜单数据 menu no exist + */ + CODE_46003(46003, "不存在的菜单数据"), + + /** + * 不存在的用户 user no exist + */ + CODE_46004(46004, "不存在的用户"), + + /** + * poi no exist + */ + CODE_46005(46005, "poi no exist"), + + /** + * voip file not exist + */ + CODE_46006(46006, "voip file not exist"), + + /** + * file being transcoded, please try later + */ + CODE_46007(46007, "file being transcoded, please try later"), + + /** + * result id not exist + */ + CODE_46008(46008, "result id not exist"), + + /** + * there is no user data + */ + CODE_46009(46009, "there is no user data"), + + /** + * this api have been not supported since 2020-01-11 00:00:00, please use new api(subscribeMessage)! + */ + CODE_46101(46101, "this api have been not supported since 2020-01-11 00:00:00, please use new api(subscribeMessage)!"), + + /** + * 解析 JSON/XML 内容错误 data format error + */ + CODE_47001(47001, "解析 JSON/XML 内容错误"), + + /** + * data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use utf8 encoded text! + */ + CODE_47002(47002, "data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use utf8 encoded text!"), + + /** + * 模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错 argument invalid! + */ + CODE_47003(47003, "模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错"), + + /** + * 每次提交的页面数超过1000(备注:每次提交页面数应小于或等于1000) submit pages count more than each quota + */ + CODE_47004(47004, "每次提交的页面数超过1000(备注:每次提交页面数应小于或等于1000)"), + + /** + * tabbar no exist + */ + CODE_47005(47005, "tabbar no exist"), + + /** + * 当天提交页面数达到了配额上限,请明天再试 submit pages count reach daily limit, please try tomorrow + */ + CODE_47006(47006, "当天提交页面数达到了配额上限,请明天再试"), + + /** + * 搜索结果总数超过了1000条 search results count more than limit + */ + CODE_47101(47101, "搜索结果总数超过了1000条"), + + /** + * next_page_info参数错误 next_page_info error + */ + CODE_47102(47102, "next_page_info参数错误"), + + /** + * 参数 activity_id 错误 activity_id error + */ + CODE_47501(47501, "参数 activity_id 错误"), + + /** + * 参数 target_state 错误 target_state error + */ + CODE_47502(47502, "参数 target_state 错误"), + + /** + * 参数 version_type 错误 version_type error + */ + CODE_47503(47503, "参数 version_type 错误"), + + /** + * activity_id activity_id expired time + */ + CODE_47504(47504, "activity_id"), + + /** + * api 功能未授权,请确认公众号已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限 api unauthorized + */ + CODE_48001(48001, "api 功能未授权,请确认公众号已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限"), + + /** + * 粉丝拒收消息(粉丝在公众号选项中,关闭了 “ 接收消息 ” ) user block receive message + */ + CODE_48002(48002, "粉丝拒收消息(粉丝在公众号选项中,关闭了 “ 接收消息 ” )"), + + /** + * user not agree mass-send protocol + */ + CODE_48003(48003, "user not agree mass-send protocol"), + + /** + * api 接口被封禁,请登录 mp.weixin.qq.com 查看详情 api forbidden for irregularities, view detail on mp.weixin.qq.com + */ + CODE_48004(48004, "api 接口被封禁,请登录 mp.weixin.qq.com 查看详情"), + + /** + * api 禁止删除被自动回复和自定义菜单引用的素材 forbid to delete material used by auto-reply or menu + */ + CODE_48005(48005, "api 禁止删除被自动回复和自定义菜单引用的素材"), + + /** + * api 禁止清零调用次数,因为清零次数达到上限 forbid to clear quota because of reaching the limit + */ + CODE_48006(48006, "api 禁止清零调用次数,因为清零次数达到上限"), + + /** + * forbid to use other's voip call key + */ + CODE_48007(48007, "forbid to use other's voip call key"), + + /** + * 没有该类型消息的发送权限 no permission for this msgtype + */ + CODE_48008(48008, "没有该类型消息的发送权限"), + + /** + * this api is expired + */ + CODE_48009(48009, "this api is expired"), + + /** + * forbid to modify the material, please see more information on mp.weixin.qq.com + */ + CODE_48010(48010, "forbid to modify the material, please see more information on mp.weixin.qq.com"), + + /** + * disabled template id + */ + CODE_48011(48011, "disabled template id"), + + /** + * invalid token + */ + CODE_48012(48012, "invalid token"), + + /** + * 该视频非新接口上传,不能用于视频消息群发 + */ + CODE_48013(48013, "该视频非新接口上传,不能用于视频消息群发"), + + /** + * 该视频审核状态异常,请检查后重试 + */ + CODE_48014(48014, "该视频审核状态异常,请检查后重试"), + + /** + * 该账号无留言功能权限 + */ + CODE_48015(48015, "该账号无留言功能权限"), + + /** + * 该账号不满足智能配置"观看更多"视频条件 + */ + CODE_48016(48016, "该账号不满足智能配置\"观看更多\"视频条件"), + + /** + * not same appid with appid of access_token + */ + CODE_49001(49001, "not same appid with appid of access_token"), + + /** + * empty openid or transid + */ + CODE_49002(49002, "empty openid or transid"), + + /** + * not match openid with appid + */ + CODE_49003(49003, "not match openid with appid"), + + /** + * not match signature + */ + CODE_49004(49004, "not match signature"), + + /** + * not existed transid + */ + CODE_49005(49005, "not existed transid"), + + /** + * missing arg two_dim_code + */ + CODE_49006(49006, "missing arg two_dim_code"), + + /** + * invalid two_dim_code + */ + CODE_49007(49007, "invalid two_dim_code"), + + /** + * invalid qrcode + */ + CODE_49008(49008, "invalid qrcode"), + + /** + * missing arg qrcode + */ + CODE_49009(49009, "missing arg qrcode"), + + /** + * invalid partner id + */ + CODE_49010(49010, "invalid partner id"), + + /** + * not existed feedbackid + */ + CODE_49300(49300, "not existed feedbackid"), + + /** + * feedback exist + */ + CODE_49301(49301, "feedback exist"), + + /** + * feedback status already changed + */ + CODE_49302(49302, "feedback status already changed"), + + /** + * 用户未授权该 api api unauthorized or user unauthorized + */ + CODE_50001(50001, "用户未授权该 api"), + + /** + * 用户受限,可能是用户帐号被冻结或注销 user limited + */ + CODE_50002(50002, "用户受限,可能是用户帐号被冻结或注销"), + + /** + * user unexpected, maybe not in white list + */ + CODE_50003(50003, "user unexpected, maybe not in white list"), + + /** + * user not allow to use accesstoken, maybe for punishment + */ + CODE_50004(50004, "user not allow to use accesstoken, maybe for punishment"), + + /** + * 用户未关注公众号 user is unsubscribed + */ + CODE_50005(50005, "用户未关注公众号"), + + /** + * user has switched off friends authorization + */ + CODE_50006(50006, "user has switched off friends authorization"), + + /** + * enterprise father account not exist + */ + CODE_51000(51000, "enterprise father account not exist"), + + /** + * enterprise child account not belong to the father + */ + CODE_51001(51001, "enterprise child account not belong to the father"), + + /** + * enterprise verify message not correct + */ + CODE_51002(51002, "enterprise verify message not correct"), + + /** + * invalid enterprise child list size + */ + CODE_51003(51003, "invalid enterprise child list size"), + + /** + * not a enterprise father account + */ + CODE_51004(51004, "not a enterprise father account"), + + /** + * not a enterprise child account + */ + CODE_51005(51005, "not a enterprise child account"), + + /** + * invalid nick name + */ + CODE_51006(51006, "invalid nick name"), + + /** + * not a enterprise account + */ + CODE_51007(51007, "not a enterprise account"), + + /** + * invalid email + */ + CODE_51008(51008, "invalid email"), + + /** + * invalid pwd + */ + CODE_51009(51009, "invalid pwd"), + + /** + * repeated email + */ + CODE_51010(51010, "repeated email"), + + /** + * access deny + */ + CODE_51011(51011, "access deny"), + + /** + * need verify code + */ + CODE_51012(51012, "need verify code"), + + /** + * wrong verify code + */ + CODE_51013(51013, "wrong verify code"), + + /** + * need modify pwd + */ + CODE_51014(51014, "need modify pwd"), + + /** + * user not exist + */ + CODE_51015(51015, "user not exist"), + + /** + * tv info not exist + */ + CODE_51020(51020, "tv info not exist"), + + /** + * stamp crossed + */ + CODE_51021(51021, "stamp crossed"), + + /** + * invalid stamp range + */ + CODE_51022(51022, "invalid stamp range"), + + /** + * stamp not match date + */ + CODE_51023(51023, "stamp not match date"), + + /** + * empty program name + */ + CODE_51024(51024, "empty program name"), + + /** + * empty action url + */ + CODE_51025(51025, "empty action url"), + + /** + * program name size out of limit + */ + CODE_51026(51026, "program name size out of limit"), + + /** + * action url size out of limit + */ + CODE_51027(51027, "action url size out of limit"), + + /** + * invalid program name + */ + CODE_51028(51028, "invalid program name"), + + /** + * invalid action url + */ + CODE_51029(51029, "invalid action url"), + + /** + * invalid action id + */ + CODE_51030(51030, "invalid action id"), + + /** + * invalid action offset + */ + CODE_51031(51031, "invalid action offset"), + + /** + * empty action title + */ + CODE_51032(51032, "empty action title"), + + /** + * action title size out of limit + */ + CODE_51033(51033, "action title size out of limit"), + + /** + * empty action icon url + */ + CODE_51034(51034, "empty action icon url"), + + /** + * action icon url out of limit + */ + CODE_51035(51035, "action icon url out of limit"), + + /** + * pic is not from cdn + */ + CODE_52000(52000, "pic is not from cdn"), + + /** + * wechat price is not less than origin price + */ + CODE_52001(52001, "wechat price is not less than origin price"), + + /** + * category/sku is wrong + */ + CODE_52002(52002, "category/sku is wrong"), + + /** + * product id not existed + */ + CODE_52003(52003, "product id not existed"), + + /** + * category id is not exist, or doesn't has sub category + */ + CODE_52004(52004, "category id is not exist, or doesn't has sub category"), + + /** + * quantity is zero + */ + CODE_52005(52005, "quantity is zero"), + + /** + * area code is invalid + */ + CODE_52006(52006, "area code is invalid"), + + /** + * express template param is error + */ + CODE_52007(52007, "express template param is error"), + + /** + * express template id is not existed + */ + CODE_52008(52008, "express template id is not existed"), + + /** + * group name is empty + */ + CODE_52009(52009, "group name is empty"), + + /** + * group id is not existed + */ + CODE_52010(52010, "group id is not existed"), + + /** + * mod_action is invalid + */ + CODE_52011(52011, "mod_action is invalid"), + + /** + * shelf components count is greater than 20 + */ + CODE_52012(52012, "shelf components count is greater than 20"), + + /** + * shelf component is empty + */ + CODE_52013(52013, "shelf component is empty"), + + /** + * shelf id is not existed + */ + CODE_52014(52014, "shelf id is not existed"), + + /** + * order id is not existed + */ + CODE_52015(52015, "order id is not existed"), + + /** + * order filter param is invalid + */ + CODE_52016(52016, "order filter param is invalid"), + + /** + * order express param is invalid + */ + CODE_52017(52017, "order express param is invalid"), + + /** + * order delivery param is invalid + */ + CODE_52018(52018, "order delivery param is invalid"), + + /** + * brand name empty + */ + CODE_52019(52019, "brand name empty"), + + /** + * principal limit exceed + */ + CODE_53000(53000, "principal limit exceed"), + + /** + * principal in black list + */ + CODE_53001(53001, "principal in black list"), + + /** + * mobile limit exceed + */ + CODE_53002(53002, "mobile limit exceed"), + + /** + * idcard limit exceed + */ + CODE_53003(53003, "idcard limit exceed"), + + /** + * 名称格式不合法 nickname invalid + */ + CODE_53010(53010, "名称格式不合法"), + + /** + * 名称检测命中频率限制 check nickname too frequently + */ + CODE_53011(53011, "名称检测命中频率限制"), + + /** + * 禁止使用该名称 nickname ban + */ + CODE_53012(53012, "禁止使用该名称"), + + /** + * 公众号:名称与已有公众号名称重复;小程序:该名称与已有小程序名称重复 nickname has been occupied + */ + CODE_53013(53013, "公众号:名称与已有公众号名称重复;小程序:该名称与已有小程序名称重复"), + + /** + * 公众号:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A} + */ + CODE_53014(53014, "公众号:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A}"), + + /** + * 公众号:该名称与已有小程序名称重复,需与该小程序帐号相同主体才可申请;小程序:该名称与已有公众号名称重复,需与该公众号帐号相同主体才可申请 + */ + CODE_53015(53015, "公众号:该名称与已有小程序名称重复,需与该小程序帐号相同主体才可申请;小程序:该名称与已有公众号名称重复,需与该公众号帐号相同主体才可申请"), + + /** + * 公众号:该名称与已有多个小程序名称重复,暂不支持申请;小程序:该名称与已有多个公众号名称重复,暂不支持申请 + */ + CODE_53016(53016, "公众号:该名称与已有多个小程序名称重复,暂不支持申请;小程序:该名称与已有多个公众号名称重复,暂不支持申请"), + + /** + * 公众号:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A} + */ + CODE_53017(53017, "公众号:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A}"), + + /** + * 名称命中微信号 nickname hit alias + */ + CODE_53018(53018, "名称命中微信号"), + + /** + * 名称在保护期内 nickname protected by infringement + */ + CODE_53019(53019, "名称在保护期内"), + + /** + * order not found + */ + CODE_53100(53100, "订单不存在"), + + /** + * order already paid + */ + CODE_53101(53101, "已经支付的订单"), + + /** + * already has checking order, can not apply + */ + CODE_53102(53102, "已有检查单,不能申请"), + + /** + * order can not do refill + */ + CODE_53103(53103, "order can not do refill"), + + /** + * 本月功能介绍修改次数已用完 modify signature quota limit exceed + */ + CODE_53200(53200, "本月功能介绍修改次数已用完"), + + /** + * 功能介绍内容命中黑名单关键字 signature in black list, can not use + */ + CODE_53201(53201, "功能介绍内容命中黑名单关键字"), + + /** + * 本月头像修改次数已用完 modify avatar quota limit exceed + */ + CODE_53202(53202, "本月头像修改次数已用完"), + + /** + * can't be modified for the time being + */ + CODE_53203(53203, "暂时还不能修改"), + + /** + * signature invalid + */ + CODE_53204(53204, "无效签名"), + + /** + * 超出每月次数限制 + */ + CODE_53300(53300, "超出每月次数限制"), + + /** + * 超出可配置类目总数限制 + */ + CODE_53301(53301, "超出可配置类目总数限制"), + + /** + * 当前账号主体类型不允许设置此种类目 + */ + CODE_53302(53302, "当前账号主体类型不允许设置此种类目"), + + /** + * 提交的参数不合法 + */ + CODE_53303(53303, "提交的参数不合法"), + + /** + * 与已有类目重复 + */ + CODE_53304(53304, "与已有类目重复"), + + /** + * 包含未通过IPC校验的类目 + */ + CODE_53305(53305, "包含未通过IPC校验的类目"), + + /** + * 修改类目只允许修改类目资质,不允许修改类目ID + */ + CODE_53306(53306, "修改类目只允许修改类目资质,不允许修改类目ID"), + + /** + * 只有审核失败的类目允许修改 + */ + CODE_53307(53307, "只有审核失败的类目允许修改"), + + /** + * 审核中的类目不允许删除 + */ + CODE_53308(53308, "审核中的类目不允许删除"), + + /** + * 社交红包不允许删除 + */ + CODE_53309(53309, "社交红包不允许删除"), + + /** + * 类目超过上限,但是可以添加apply_reason参数申请更多类目 + */ + CODE_53310(53310, "类目超过上限,但是可以添加apply_reason参数申请更多类目"), + + /** + * 需要提交资料信息 + */ + CODE_53311(53311, "需要提交资料信息"), + + /** + * empty jsapi name + */ + CODE_60005(60005, "空的jsapi名称"), + + /** + * user cancel the auth + */ + CODE_60006(60006, "用户取消该授权"), + + /** + * invalid component type + */ + CODE_61000(61000, "无效的第三方类型"), + + /** + * component type and component appid is not match + */ + CODE_61001(61001, "第三方类型与第三方APPID不匹配"), + + /** + * the third appid is not open KF + */ + CODE_61002(61002, "第三方APPID没有开放客服"), + + /** + * component is not authorized by this account + */ + CODE_61003(61003, "帐号未授权"), + + /** + * api 功能未授权,请确认公众号/小程序已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限 access clientip is not registered + */ + CODE_61004(61004, "api 功能未授权,请确认公众号/小程序已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限"), + + /** + * component ticket is expired + */ + CODE_61005(61005, "ticket 已过期"), + + /** + * component ticket is invalid + */ + CODE_61006(61006, "无效 ticket"), + + /** + * api is unauthorized to component + */ + CODE_61007(61007, "接口未授权给第三方平台"), + + /** + * component req key is duplicated + */ + CODE_61008(61008, "第三方请求的key存在重复"), + + /** + * code is invalid + */ + CODE_61009(61009, "无效code"), + + /** + * code is expired + */ + CODE_61010(61010, "code已过期"), + + /** + * invalid component + */ + CODE_61011(61011, "无效的第三方平台"), + + /** + * invalid option name + */ + CODE_61012(61012, "无效的选项名称"), + + /** + * invalid option value + */ + CODE_61013(61013, "无效的选项值"), + + /** + * must use component token for component api + */ + CODE_61014(61014, "必须使用component接口的token"), + + /** + * must use biz account token for not component api + */ + CODE_61015(61015, "必须使用商业帐号token,而不是component api"), + + /** + * function category of API need be confirmed by component + */ + CODE_61016(61016, "function category of API need be confirmed by component"), + + /** + * function category is not authorized + */ + CODE_61017(61017, "function category is not authorized"), + + /** + * already confirm + */ + CODE_61018(61018, "已确认"), + + /** + * not need confirm + */ + CODE_61019(61019, "不需要确认"), + + /** + * err parameter + */ + CODE_61020(61020, "err parameter"), + + /** + * can't confirm + */ + CODE_61021(61021, "can't confirm"), + + /** + * can't resubmit + */ + CODE_61022(61022, "can't resubmit"), + + /** + * refresh_token is invalid + */ + CODE_61023(61023, "refresh_token is invalid"), + + /** + * must use api(api_component_token) to get token for component acct + */ + CODE_61024(61024, "must use api(api_component_token) to get token for component acct"), + + /** + * read-only option + */ + CODE_61025(61025, "read-only option"), + + /** + * register access deny + */ + CODE_61026(61026, "register access deny"), + + /** + * register limit exceed + */ + CODE_61027(61027, "register limit exceed"), + + /** + * component is unpublished + */ + CODE_61028(61028, "component is unpublished"), + + /** + * component need republish with base category + */ + CODE_61029(61029, "component need republish with base category"), + + /** + * component cancel authorization not allowed + */ + CODE_61030(61030, "component cancel authorization not allowed"), + + /** + * invalid realname type + */ + CODE_61051(61051, "invalid realname type"), + + /** + * need to be certified + */ + CODE_61052(61052, "need to be certified"), + + /** + * realname exceed limits + */ + CODE_61053(61053, "realname exceed limits"), + + /** + * realname in black list + */ + CODE_61054(61054, "realname in black list"), + + /** + * exceed quota per month + */ + CODE_61055(61055, "exceed quota per month"), + + /** + * copy_wx_verify is required option + */ + CODE_61056(61056, "copy_wx_verify is required option"), + + /** + * invalid ticket + */ + CODE_61058(61058, "invalid ticket"), + + /** + * overseas access deny + */ + CODE_61061(61061, "overseas access deny"), + + /** + * admin exceed limits + */ + CODE_61063(61063, "admin exceed limits"), + + /** + * admin in black list + */ + CODE_61064(61064, "admin in black list"), + + /** + * idcard exceed limits + */ + CODE_61065(61065, "idcard exceed limits"), + + /** + * idcard in black list + */ + CODE_61066(61066, "idcard in black list"), + + /** + * mobile exceed limits + */ + CODE_61067(61067, "mobile exceed limits"), + + /** + * mobile in black list + */ + CODE_61068(61068, "mobile in black list"), + + /** + * invalid admin + */ + CODE_61069(61069, "invalid admin"), + + /** + * name, idcard, wechat name not in accordance + */ + CODE_61070(61070, "name, idcard, wechat name not in accordance"), + + /** + * invalid url + */ + CODE_61100(61100, "invalid url"), + + /** + * invalid openid + */ + CODE_61101(61101, "invalid openid"), + + /** + * share relation not existed + */ + CODE_61102(61102, "share relation not existed"), + + /** + * product wording not set + */ + CODE_61200(61200, "product wording not set"), + + /** + * invalid base info + */ + CODE_61300(61300, "invalid base info"), + + /** + * invalid detail info + */ + CODE_61301(61301, "invalid detail info"), + + /** + * invalid action info + */ + CODE_61302(61302, "invalid action info"), + + /** + * brand info not exist + */ + CODE_61303(61303, "brand info not exist"), + + /** + * invalid product id + */ + CODE_61304(61304, "invalid product id"), + + /** + * invalid key info + */ + CODE_61305(61305, "invalid key info"), + + /** + * invalid appid + */ + CODE_61306(61306, "invalid appid"), + + /** + * invalid card id + */ + CODE_61307(61307, "invalid card id"), + + /** + * base info not exist + */ + CODE_61308(61308, "base info not exist"), + + /** + * detail info not exist + */ + CODE_61309(61309, "detail info not exist"), + + /** + * action info not exist + */ + CODE_61310(61310, "action info not exist"), + + /** + * invalid media info + */ + CODE_61311(61311, "invalid media info"), + + /** + * invalid buffer size + */ + CODE_61312(61312, "invalid buffer size"), + + /** + * invalid buffer + */ + CODE_61313(61313, "invalid buffer"), + + /** + * invalid qrcode extinfo + */ + CODE_61314(61314, "invalid qrcode extinfo"), + + /** + * invalid local ext info + */ + CODE_61315(61315, "invalid local ext info"), + + /** + * key conflict + */ + CODE_61316(61316, "key conflict"), + + /** + * ticket invalid + */ + CODE_61317(61317, "ticket invalid"), + + /** + * verify not pass + */ + CODE_61318(61318, "verify not pass"), + + /** + * category invalid + */ + CODE_61319(61319, "category invalid"), + + /** + * merchant info not exist + */ + CODE_61320(61320, "merchant info not exist"), + + /** + * cate id is a leaf node + */ + CODE_61321(61321, "cate id is a leaf node"), + + /** + * category id no permision + */ + CODE_61322(61322, "category id no permision"), + + /** + * barcode no permision + */ + CODE_61323(61323, "barcode no permision"), + + /** + * exceed max action num + */ + CODE_61324(61324, "exceed max action num"), + + /** + * brandinfo invalid store mgr type + */ + CODE_61325(61325, "brandinfo invalid store mgr type"), + + /** + * anti-spam blocked + */ + CODE_61326(61326, "anti-spam blocked"), + + /** + * comment reach limit + */ + CODE_61327(61327, "comment reach limit"), + + /** + * comment data is not the newest + */ + CODE_61328(61328, "comment data is not the newest"), + + /** + * comment hit ban word + */ + CODE_61329(61329, "comment hit ban word"), + + /** + * image already add + */ + CODE_61330(61330, "image already add"), + + /** + * image never add + */ + CODE_61331(61331, "image never add"), + + /** + * warning, image quanlity too low + */ + CODE_61332(61332, "warning, image quanlity too low"), + + /** + * warning, image simility too high + */ + CODE_61333(61333, "warning, image simility too high"), + + /** + * product not exists + */ + CODE_61334(61334, "product not exists"), + + /** + * key apply fail + */ + CODE_61335(61335, "key apply fail"), + + /** + * check status fail + */ + CODE_61336(61336, "check status fail"), + + /** + * product already exists + */ + CODE_61337(61337, "product already exists"), + + /** + * forbid delete + */ + CODE_61338(61338, "forbid delete"), + + /** + * firmcode claimed + */ + CODE_61339(61339, "firmcode claimed"), + + /** + * check firm info fail + */ + CODE_61340(61340, "check firm info fail"), + + /** + * too many white list uin + */ + CODE_61341(61341, "too many white list uin"), + + /** + * keystandard not match + */ + CODE_61342(61342, "keystandard not match"), + + /** + * keystandard error + */ + CODE_61343(61343, "keystandard error"), + + /** + * id map not exists + */ + CODE_61344(61344, "id map not exists"), + + /** + * invalid action code + */ + CODE_61345(61345, "invalid action code"), + + /** + * invalid actioninfo store + */ + CODE_61346(61346, "invalid actioninfo store"), + + /** + * invalid actioninfo media + */ + CODE_61347(61347, "invalid actioninfo media"), + + /** + * invalid actioninfo text + */ + CODE_61348(61348, "invalid actioninfo text"), + + /** + * invalid input data + */ + CODE_61350(61350, "invalid input data"), + + /** + * input data exceed max size + */ + CODE_61351(61351, "input data exceed max size"), + + /** + * kf_account error + */ + CODE_61400(61400, "kf_account error"), + + /** + * kf system alredy transfer + */ + CODE_61401(61401, "kf system alredy transfer"), + + /** + * 系统错误 (system error) + */ + CODE_61450(61450, "系统错误 (system error)"), + + /** + * 参数错误 (invalid parameter) + */ + CODE_61451(61451, "参数错误 (invalid parameter)"), + + /** + * 无效客服账号 (invalid kf_account) + */ + CODE_61452(61452, "无效客服账号 (invalid kf_account)"), + + /** + * 客服帐号已存在 (kf_account exsited) + */ + CODE_61453(61453, "客服帐号已存在 (kf_account exsited)"), + + /** + * 客服帐号名长度超过限制 ( 仅允许 10 个英文字符,不包括 @ 及 @ 后的公众号的微信号 )(invalid kf_acount length) + */ + CODE_61454(61454, "客服帐号名长度超过限制 ( 仅允许 10 个英文字符,不包括 @ 及 @ 后的公众号的微信号 )(invalid kf_acount length)"), + + /** + * 客服帐号名包含非法字符 ( 仅允许英文 + 数字 )(illegal character in kf_account) + */ + CODE_61455(61455, "客服帐号名包含非法字符 ( 仅允许英文 + 数字 )(illegal character in kf_account)"), + + /** + * 客服帐号个数超过限制 (10 个客服账号 )(kf_account count exceeded) + */ + CODE_61456(61456, "客服帐号个数超过限制 (10 个客服账号 )(kf_account count exceeded)"), + + /** + * 无效头像文件类型 (invalid file type) + */ + CODE_61457(61457, "无效头像文件类型 (invalid file type)"), + + /** + * 日期格式错误 date format error + */ + CODE_61500(61500, "日期格式错误"), + + /** + * date range error + */ + CODE_61501(61501, "date range error"), + + /** + * this is game miniprogram, data api is not supported + */ + CODE_61502(61502, "this is game miniprogram, data api is not supported"), + + /** + * data not ready, please try later + */ + CODE_61503(61503, "data not ready, please try later"), + + /** + * trying to access other's app + */ + CODE_62001(62001, "trying to access other's app"), + + /** + * app name already exists + */ + CODE_62002(62002, "app name already exists"), + + /** + * please provide at least one platform + */ + CODE_62003(62003, "please provide at least one platform"), + + /** + * invalid app name + */ + CODE_62004(62004, "invalid app name"), + + /** + * invalid app id + */ + CODE_62005(62005, "invalid app id"), + + /** + * 部分参数为空 some arguments is empty + */ + CODE_63001(63001, "部分参数为空"), + + /** + * 无效的签名 invalid signature + */ + CODE_63002(63002, "无效的签名"), + + /** + * invalid signature method + */ + CODE_63003(63003, "invalid signature method"), + + /** + * no authroize + */ + CODE_63004(63004, "no authroize"), + + /** + * gen ticket fail + */ + CODE_63149(63149, "gen ticket fail"), + + /** + * set ticket fail + */ + CODE_63152(63152, "set ticket fail"), + + /** + * shortid decode fail + */ + CODE_63153(63153, "shortid decode fail"), + + /** + * invalid status + */ + CODE_63154(63154, "invalid status"), + + /** + * invalid color + */ + CODE_63155(63155, "invalid color"), + + /** + * invalid tag + */ + CODE_63156(63156, "invalid tag"), + + /** + * invalid recommend + */ + CODE_63157(63157, "invalid recommend"), + + /** + * branditem out of limits + */ + CODE_63158(63158, "branditem out of limits"), + + /** + * retail_price empty + */ + CODE_63159(63159, "retail_price empty"), + + /** + * priceinfo invalid + */ + CODE_63160(63160, "priceinfo invalid"), + + /** + * antifake module num limit + */ + CODE_63161(63161, "antifake module num limit"), + + /** + * antifake native_type err + */ + CODE_63162(63162, "antifake native_type err"), + + /** + * antifake link not exists + */ + CODE_63163(63163, "antifake link not exists"), + + /** + * module type not exist + */ + CODE_63164(63164, "module type not exist"), + + /** + * module info not exist + */ + CODE_63165(63165, "module info not exist"), + + /** + * item is beding verified + */ + CODE_63166(63166, "item is beding verified"), + + /** + * item not published + */ + CODE_63167(63167, "item not published"), + + /** + * verify not pass + */ + CODE_63168(63168, "verify not pass"), + + /** + * already published + */ + CODE_63169(63169, "already published"), + + /** + * only banner or media + */ + CODE_63170(63170, "only banner or media"), + + /** + * card num limit + */ + CODE_63171(63171, "card num limit"), + + /** + * user num limit + */ + CODE_63172(63172, "user num limit"), + + /** + * text num limit + */ + CODE_63173(63173, "text num limit"), + + /** + * link card user sum limit + */ + CODE_63174(63174, "link card user sum limit"), + + /** + * detail info error + */ + CODE_63175(63175, "detail info error"), + + /** + * not this type + */ + CODE_63176(63176, "not this type"), + + /** + * src or secretkey or version or expired_time is wrong + */ + CODE_63177(63177, "src or secretkey or version or expired_time is wrong"), + + /** + * appid wrong + */ + CODE_63178(63178, "appid wrong"), + + /** + * openid num limit + */ + CODE_63179(63179, "openid num limit"), + + /** + * this app msg not found + */ + CODE_63180(63180, "this app msg not found"), + + /** + * get history app msg end + */ + CODE_63181(63181, "get history app msg end"), + + /** + * openid_list empty + */ + CODE_63182(63182, "openid_list empty"), + + /** + * unknown deeplink type + */ + CODE_65001(65001, "unknown deeplink type"), + + /** + * deeplink unauthorized + */ + CODE_65002(65002, "deeplink unauthorized"), + + /** + * bad deeplink + */ + CODE_65003(65003, "bad deeplink"), + + /** + * deeplinks of the very type are supposed to have short-life + */ + CODE_65004(65004, "deeplinks of the very type are supposed to have short-life"), + + /** + * invalid categories + */ + CODE_65104(65104, "invalid categories"), + + /** + * invalid photo url + */ + CODE_65105(65105, "invalid photo url"), + + /** + * poi audit state must be approved + */ + CODE_65106(65106, "poi audit state must be approved"), + + /** + * poi not allowed modify now + */ + CODE_65107(65107, "poi not allowed modify now"), + + /** + * invalid business name + */ + CODE_65109(65109, "invalid business name"), + + /** + * invalid address + */ + CODE_65110(65110, "invalid address"), + + /** + * invalid telephone + */ + CODE_65111(65111, "invalid telephone"), + + /** + * invalid city + */ + CODE_65112(65112, "invalid city"), + + /** + * invalid province + */ + CODE_65113(65113, "invalid province"), + + /** + * photo list empty + */ + CODE_65114(65114, "photo list empty"), + + /** + * poi_id is not exist + */ + CODE_65115(65115, "poi_id is not exist"), + + /** + * poi has been deleted + */ + CODE_65116(65116, "poi has been deleted"), + + /** + * cannot delete poi + */ + CODE_65117(65117, "cannot delete poi"), + + /** + * store status is invalid + */ + CODE_65118(65118, "store status is invalid"), + + /** + * lack of qualification for relevant principals + */ + CODE_65119(65119, "lack of qualification for relevant principals"), + + /** + * category info is not found + */ + CODE_65120(65120, "category info is not found"), + + /** + * room_name is empty, please check your input + */ + CODE_65201(65201, "room_name is empty, please check your input"), + + /** + * user_id is empty, please check your input + */ + CODE_65202(65202, "user_id is empty, please check your input"), + + /** + * invalid check ticket + */ + CODE_65203(65203, "invalid check ticket"), + + /** + * invalid check ticket opt code + */ + CODE_65204(65204, "invalid check ticket opt code"), + + /** + * check ticket out of time + */ + CODE_65205(65205, "check ticket out of time"), + + /** + * 不存在此 menuid 对应的个性化菜单 this menu is not conditionalmenu + */ + CODE_65301(65301, "不存在此 menuid 对应的个性化菜单"), + + /** + * 没有相应的用户 no such user + */ + CODE_65302(65302, "没有相应的用户"), + + /** + * 没有默认菜单,不能创建个性化菜单 there is no selfmenu, please create selfmenu first + */ + CODE_65303(65303, "没有默认菜单,不能创建个性化菜单"), + + /** + * MatchRule 信息为空 match rule empty + */ + CODE_65304(65304, "MatchRule 信息为空"), + + /** + * 个性化菜单数量受限 menu count limit + */ + CODE_65305(65305, "个性化菜单数量受限"), + + /** + * 不支持个性化菜单的帐号 conditional menu not support + */ + CODE_65306(65306, "不支持个性化菜单的帐号"), + + /** + * 个性化菜单信息为空 conditional menu is empty + */ + CODE_65307(65307, "个性化菜单信息为空"), + + /** + * 包含没有响应类型的 button exist empty button act + */ + CODE_65308(65308, "包含没有响应类型的 button"), + + /** + * 个性化菜单开关处于关闭状态 conditional menu switch is closed + */ + CODE_65309(65309, "个性化菜单开关处于关闭状态"), + + /** + * 填写了省份或城市信息,国家信息不能为空 region info: country is empty + */ + CODE_65310(65310, "填写了省份或城市信息,国家信息不能为空"), + + /** + * 填写了城市信息,省份信息不能为空 region info: province is empty + */ + CODE_65311(65311, "填写了城市信息,省份信息不能为空"), + + /** + * 不合法的国家信息 invalid country info + */ + CODE_65312(65312, "不合法的国家信息"), + + /** + * 不合法的省份信息 invalid province info + */ + CODE_65313(65313, "不合法的省份信息"), + + /** + * 不合法的城市信息 invalid city info + */ + CODE_65314(65314, "不合法的城市信息"), + + /** + * not fans + */ + CODE_65315(65315, "not fans"), + + /** + * 该公众号的菜单设置了过多的域名外跳(最多跳转到 3 个域名的链接) domain count reach limit + */ + CODE_65316(65316, "该公众号的菜单设置了过多的域名外跳(最多跳转到 3 个域名的链接)"), + + /** + * 不合法的 URL contain invalid url + */ + CODE_65317(65317, "不合法的 URL"), + + /** + * must use utf-8 charset + */ + CODE_65318(65318, "must use utf-8 charset"), + + /** + * not allow to create menu + */ + CODE_65319(65319, "not allow to create menu"), + + /** + * please enable new custom service, or wait for a while if you have enabled + */ + CODE_65400(65400, "please enable new custom service, or wait for a while if you have enabled"), + + /** + * invalid custom service account + */ + CODE_65401(65401, "invalid custom service account"), + + /** + * the custom service account need to bind a wechat user + */ + CODE_65402(65402, "the custom service account need to bind a wechat user"), + + /** + * illegal nickname + */ + CODE_65403(65403, "illegal nickname"), + + /** + * illegal custom service account + */ + CODE_65404(65404, "illegal custom service account"), + + /** + * custom service account number reach limit + */ + CODE_65405(65405, "custom service account number reach limit"), + + /** + * custom service account exists + */ + CODE_65406(65406, "custom service account exists"), + + /** + * the wechat user have been one of your workers + */ + CODE_65407(65407, "the wechat user have been one of your workers"), + + /** + * you have already invited the wechat user + */ + CODE_65408(65408, "you have already invited the wechat user"), + + /** + * wechat account invalid + */ + CODE_65409(65409, "wechat account invalid"), + + /** + * too many custom service accounts bound by the worker + */ + CODE_65410(65410, "too many custom service accounts bound by the worker"), + + /** + * a effective invitation to bind the custom service account exists + */ + CODE_65411(65411, "a effective invitation to bind the custom service account exists"), + + /** + * the custom service account have been bound by a wechat user + */ + CODE_65412(65412, "the custom service account have been bound by a wechat user"), + + /** + * no effective session for the customer + */ + CODE_65413(65413, "no effective session for the customer"), + + /** + * another worker is serving the customer + */ + CODE_65414(65414, "another worker is serving the customer"), + + /** + * the worker is not online + */ + CODE_65415(65415, "the worker is not online"), + + /** + * param invalid, please check + */ + CODE_65416(65416, "param invalid, please check"), + + /** + * it is too long from the starttime to endtime + */ + CODE_65417(65417, "it is too long from the starttime to endtime"), + + /** + * homepage not exists + */ + CODE_65450(65450, "homepage not exists"), + + /** + * invalid store type + */ + CODE_68002(68002, "invalid store type"), + + /** + * invalid store name + */ + CODE_68003(68003, "invalid store name"), + + /** + * invalid store wxa path + */ + CODE_68004(68004, "invalid store wxa path"), + + /** + * miss store wxa path + */ + CODE_68005(68005, "miss store wxa path"), + + /** + * invalid kefu type + */ + CODE_68006(68006, "invalid kefu type"), + + /** + * invalid kefu wxa path + */ + CODE_68007(68007, "invalid kefu wxa path"), + + /** + * invalid kefu phone number + */ + CODE_68008(68008, "invalid kefu phone number"), + + /** + * invalid sub mch id + */ + CODE_68009(68009, "invalid sub mch id"), + + /** + * store id has exist + */ + CODE_68010(68010, "store id has exist"), + + /** + * miss store name + */ + CODE_68011(68011, "miss store name"), + + /** + * miss create time + */ + CODE_68012(68012, "miss create time"), + + /** + * invalid status + */ + CODE_68013(68013, "invalid status"), + + /** + * invalid receiver info + */ + CODE_68014(68014, "invalid receiver info"), + + /** + * invalid product + */ + CODE_68015(68015, "invalid product"), + + /** + * invalid pay type + */ + CODE_68016(68016, "invalid pay type"), + + /** + * invalid fast mail no + */ + CODE_68017(68017, "invalid fast mail no"), + + /** + * invalid busi id + */ + CODE_68018(68018, "invalid busi id"), + + /** + * miss product sku + */ + CODE_68019(68019, "miss product sku"), + + /** + * invalid service type + */ + CODE_68020(68020, "invalid service type"), + + /** + * invalid service status + */ + CODE_68021(68021, "invalid service status"), + + /** + * invalid service_id + */ + CODE_68022(68022, "invalid service_id"), + + /** + * service_id has exist + */ + CODE_68023(68023, "service_id has exist"), + + /** + * miss service wxa path + */ + CODE_68024(68024, "miss service wxa path"), + + /** + * invalid product sku + */ + CODE_68025(68025, "invalid product sku"), + + /** + * invalid product spu + */ + CODE_68026(68026, "invalid product spu"), + + /** + * miss product spu + */ + CODE_68027(68027, "miss product spu"), + + /** + * can not find product spu and spu in order list + */ + CODE_68028(68028, "can not find product spu and spu in order list"), + + /** + * sku and spu duplicated + */ + CODE_68029(68029, "sku and spu duplicated"), + + /** + * busi_id has exist + */ + CODE_68030(68030, "busi_id has exist"), + + /** + * update fail + */ + CODE_68031(68031, "update fail"), + + /** + * busi_id not exist + */ + CODE_68032(68032, "busi_id not exist"), + + /** + * store no exist + */ + CODE_68033(68033, "store no exist"), + + /** + * miss product number + */ + CODE_68034(68034, "miss product number"), + + /** + * miss wxa order detail path + */ + CODE_68035(68035, "miss wxa order detail path"), + + /** + * there is no enough products to refund + */ + CODE_68036(68036, "there is no enough products to refund"), + + /** + * invalid refund info + */ + CODE_68037(68037, "invalid refund info"), + + /** + * shipped but no fast mail info + */ + CODE_68038(68038, "shipped but no fast mail info"), + + /** + * invalid wechat pay no + */ + CODE_68039(68039, "invalid wechat pay no"), + + /** + * all product has been refunded, the order can not be finished + */ + CODE_68040(68040, "all product has been refunded, the order can not be finished"), + + /** + * invalid service create time, it must bigger than the time of order + */ + CODE_68041(68041, "invalid service create time, it must bigger than the time of order"), + + /** + * invalid total cost, it must be smaller than the sum of product and shipping cost + */ + CODE_68042(68042, "invalid total cost, it must be smaller than the sum of product and shipping cost"), + + /** + * invalid role + */ + CODE_68043(68043, "invalid role"), + + /** + * invalid service_available args + */ + CODE_68044(68044, "invalid service_available args"), + + /** + * invalid order type + */ + CODE_68045(68045, "invalid order type"), + + /** + * invalid order deliver type + */ + CODE_68046(68046, "invalid order deliver type"), + + /** + * require store_id + */ + CODE_68500(68500, "require store_id"), + + /** + * invalid store_id + */ + CODE_68501(68501, "invalid store_id"), + + /** + * invalid parameter, parameter is zero or missing + */ + CODE_71001(71001, "invalid parameter, parameter is zero or missing"), + + /** + * invalid orderid, may be the other parameter not fit with orderid + */ + CODE_71002(71002, "invalid orderid, may be the other parameter not fit with orderid"), + + /** + * coin not enough + */ + CODE_71003(71003, "coin not enough"), + + /** + * card is expired + */ + CODE_71004(71004, "card is expired"), + + /** + * limit exe count + */ + CODE_71005(71005, "limit exe count"), + + /** + * limit coin count, 1 <= coin_count <= 100000 + */ + CODE_71006(71006, "limit coin count, 1 <= coin_count <= 100000"), + + /** + * order finish + */ + CODE_71007(71007, "order finish"), + + /** + * order time out + */ + CODE_71008(71008, "order time out"), + + /** + * no match card + */ + CODE_72001(72001, "no match card"), + + /** + * mchid is not bind appid + */ + CODE_72002(72002, "mchid is not bind appid"), + + /** + * invalid card type, need member card + */ + CODE_72003(72003, "invalid card type, need member card"), + + /** + * mchid is occupied by the other appid + */ + CODE_72004(72004, "mchid is occupied by the other appid"), + + /** + * out of mchid size limit + */ + CODE_72005(72005, "out of mchid size limit"), + + /** + * invald title + */ + CODE_72006(72006, "invald title"), + + /** + * invalid reduce cost, can not less than 100 + */ + CODE_72007(72007, "invalid reduce cost, can not less than 100"), + + /** + * invalid least cost, most larger than reduce cost + */ + CODE_72008(72008, "invalid least cost, most larger than reduce cost"), + + /** + * invalid get limit, can not over 50 + */ + CODE_72009(72009, "invalid get limit, can not over 50"), + + /** + * invalid mchid + */ + CODE_72010(72010, "invalid mchid"), + + /** + * invalid activate_ticket.Maybe this ticket is not belong this AppId + */ + CODE_72011(72011, "invalid activate_ticket.Maybe this ticket is not belong this AppId"), + + /** + * activate_ticket has been expired + */ + CODE_72012(72012, "activate_ticket has been expired"), + + /** + * unauthorized order_id or authorization is expired + */ + CODE_72013(72013, "unauthorized order_id or authorization is expired"), + + /** + * task card share stock can not modify stock + */ + CODE_72014(72014, "task card share stock can not modify stock"), + + /** + * unauthorized create invoice + */ + CODE_72015(72015, "unauthorized create invoice"), + + /** + * unauthorized create member card + */ + CODE_72016(72016, "unauthorized create member card"), + + /** + * invalid invoice title + */ + CODE_72017(72017, "invalid invoice title"), + + /** + * duplicate order id, invoice had inserted to user + */ + CODE_72018(72018, "duplicate order id, invoice had inserted to user"), + + /** + * limit msg operation card list size, must <= 5 + */ + CODE_72019(72019, "limit msg operation card list size, must <= 5"), + + /** + * limit consume in use limit + */ + CODE_72020(72020, "limit consume in use limit"), + + /** + * unauthorized create general card + */ + CODE_72021(72021, "unauthorized create general card"), + + /** + * user unexpected, please add user to white list + */ + CODE_72022(72022, "user unexpected, please add user to white list"), + + /** + * invoice has been lock by others + */ + CODE_72023(72023, "invoice has been lock by others"), + + /** + * invoice status error + */ + CODE_72024(72024, "invoice status error"), + + /** + * invoice token error + */ + CODE_72025(72025, "invoice token error"), + + /** + * need set wx_activate true + */ + CODE_72026(72026, "need set wx_activate true"), + + /** + * invoice action error + */ + CODE_72027(72027, "invoice action error"), + + /** + * invoice never set pay mch info + */ + CODE_72028(72028, "invoice never set pay mch info"), + + /** + * invoice never set auth field + */ + CODE_72029(72029, "invoice never set auth field"), + + /** + * invalid mchid + */ + CODE_72030(72030, "invalid mchid"), + + /** + * invalid params + */ + CODE_72031(72031, "invalid params"), + + /** + * pay gift card rule expired + */ + CODE_72032(72032, "pay gift card rule expired"), + + /** + * pay gift card rule status err + */ + CODE_72033(72033, "pay gift card rule status err"), + + /** + * invlid rule id + */ + CODE_72034(72034, "invlid rule id"), + + /** + * biz reject insert + */ + CODE_72035(72035, "biz reject insert"), + + /** + * invoice is busy, try again please + */ + CODE_72036(72036, "invoice is busy, try again please"), + + /** + * invoice owner error + */ + CODE_72037(72037, "invoice owner error"), + + /** + * invoice order never auth + */ + CODE_72038(72038, "invoice order never auth"), + + /** + * invoice must be lock first + */ + CODE_72039(72039, "invoice must be lock first"), + + /** + * invoice pdf error + */ + CODE_72040(72040, "invoice pdf error"), + + /** + * billing_code and billing_no invalid + */ + CODE_72041(72041, "billing_code and billing_no invalid"), + + /** + * billing_code and billing_no repeated + */ + CODE_72042(72042, "billing_code and billing_no repeated"), + + /** + * billing_code or billing_no size error + */ + CODE_72043(72043, "billing_code or billing_no size error"), + + /** + * scan text out of time + */ + CODE_72044(72044, "scan text out of time"), + + /** + * check_code is empty + */ + CODE_72045(72045, "check_code is empty"), + + /** + * pdf_url is invalid + */ + CODE_72046(72046, "pdf_url is invalid"), + + /** + * pdf billing_code or pdf billing_no is error + */ + CODE_72047(72047, "pdf billing_code or pdf billing_no is error"), + + /** + * insert too many invoice, need auth again + */ + CODE_72048(72048, "insert too many invoice, need auth again"), + + /** + * never auth + */ + CODE_72049(72049, "never auth"), + + /** + * auth expired, need auth again + */ + CODE_72050(72050, "auth expired, need auth again"), + + /** + * app type error + */ + CODE_72051(72051, "app type error"), + + /** + * get too many invoice + */ + CODE_72052(72052, "get too many invoice"), + + /** + * user never auth + */ + CODE_72053(72053, "user never auth"), + + /** + * invoices is inserting, wait a moment please + */ + CODE_72054(72054, "invoices is inserting, wait a moment please"), + + /** + * too many invoices + */ + CODE_72055(72055, "too many invoices"), + + /** + * order_id repeated, please check order_id + */ + CODE_72056(72056, "order_id repeated, please check order_id"), + + /** + * today insert limit + */ + CODE_72057(72057, "today insert limit"), + + /** + * callback biz error + */ + CODE_72058(72058, "callback biz error"), + + /** + * this invoice is giving to others, wait a moment please + */ + CODE_72059(72059, "this invoice is giving to others, wait a moment please"), + + /** + * this invoice has been cancelled, check the reimburse_status please + */ + CODE_72060(72060, "this invoice has been cancelled, check the reimburse_status please"), + + /** + * this invoice has been closed, check the reimburse_status please + */ + CODE_72061(72061, "this invoice has been closed, check the reimburse_status please"), + + /** + * this code_auth_key is limited, try other code_auth_key please + */ + CODE_72062(72062, "this code_auth_key is limited, try other code_auth_key please"), + + /** + * biz contact is empty, set contact first please + */ + CODE_72063(72063, "biz contact is empty, set contact first please"), + + /** + * tbc error + */ + CODE_72064(72064, "tbc error"), + + /** + * tbc logic error + */ + CODE_72065(72065, "tbc logic error"), + + /** + * the card is send for advertisement, not allow modify time and budget + */ + CODE_72066(72066, "the card is send for advertisement, not allow modify time and budget"), + + /** + * BatchInsertAuthKey_Expired + */ + CODE_72067(72067, "BatchInsertAuthKey_Expired"), + + /** + * BatchInsertAuthKey_Owner + */ + CODE_72068(72068, "BatchInsertAuthKey_Owner"), + + /** + * BATCHTASKRUN_ERROR + */ + CODE_72069(72069, "BATCHTASKRUN_ERROR"), + + /** + * BIZ_TITLE_KEY_OUT_TIME + */ + CODE_72070(72070, "BIZ_TITLE_KEY_OUT_TIME"), + + /** + * Discern_GaoPeng_Error + */ + CODE_72071(72071, "Discern_GaoPeng_Error"), + + /** + * Discern_Type_Error + */ + CODE_72072(72072, "Discern_Type_Error"), + + /** + * Fee_Error + */ + CODE_72073(72073, "Fee_Error"), + + /** + * HAS_Auth + */ + CODE_72074(72074, "HAS_Auth"), + + /** + * HAS_SEND + */ + CODE_72075(72075, "HAS_SEND"), + + /** + * INVOICESIGN + */ + CODE_72076(72076, "INVOICESIGN"), + + /** + * KEY_DELETED + */ + CODE_72077(72077, "KEY_DELETED"), + + /** + * KEY_EXPIRED + */ + CODE_72078(72078, "KEY_EXPIRED"), + + /** + * MOUNT_ERROR + */ + CODE_72079(72079, "MOUNT_ERROR"), + + /** + * NO_FOUND + */ + CODE_72080(72080, "NO_FOUND"), + + /** + * No_Pull_Pdf + */ + CODE_72081(72081, "No_Pull_Pdf"), + + /** + * PDF_CHECK_ERROR + */ + CODE_72082(72082, "PDF_CHECK_ERROR"), + + /** + * PULL_PDF_FAIL + */ + CODE_72083(72083, "PULL_PDF_FAIL"), + + /** + * PUSH_BIZ_EMPTY + */ + CODE_72084(72084, "PUSH_BIZ_EMPTY"), + + /** + * SDK_APPID_ERROR + */ + CODE_72085(72085, "SDK_APPID_ERROR"), + + /** + * SDK_BIZ_ERROR + */ + CODE_72086(72086, "SDK_BIZ_ERROR"), + + /** + * SDK_URL_ERROR + */ + CODE_72087(72087, "SDK_URL_ERROR"), + + /** + * Search_Title_Fail + */ + CODE_72088(72088, "Search_Title_Fail"), + + /** + * TITLE_BUSY + */ + CODE_72089(72089, "TITLE_BUSY"), + + /** + * TITLE_NO_FOUND + */ + CODE_72090(72090, "TITLE_NO_FOUND"), + + /** + * TOKEN_ERR + */ + CODE_72091(72091, "TOKEN_ERR"), + + /** + * USER_TITLE_NOT_FOUND + */ + CODE_72092(72092, "USER_TITLE_NOT_FOUND"), + + /** + * Verify_3rd_Fail + */ + CODE_72093(72093, "Verify_3rd_Fail"), + + /** + * sys error make out invoice failed + */ + CODE_73000(73000, "sys error make out invoice failed"), + + /** + * wxopenid error + */ + CODE_73001(73001, "wxopenid error"), + + /** + * ddh orderid empty + */ + CODE_73002(73002, "ddh orderid empty"), + + /** + * wxopenid empty + */ + CODE_73003(73003, "wxopenid empty"), + + /** + * fpqqlsh empty + */ + CODE_73004(73004, "fpqqlsh empty"), + + /** + * not a commercial + */ + CODE_73005(73005, "not a commercial"), + + /** + * kplx empty + */ + CODE_73006(73006, "kplx empty"), + + /** + * nsrmc empty + */ + CODE_73007(73007, "nsrmc empty"), + + /** + * nsrdz empty + */ + CODE_73008(73008, "nsrdz empty"), + + /** + * nsrdh empty + */ + CODE_73009(73009, "nsrdh empty"), + + /** + * ghfmc empty + */ + CODE_73010(73010, "ghfmc empty"), + + /** + * kpr empty + */ + CODE_73011(73011, "kpr empty"), + + /** + * jshj empty + */ + CODE_73012(73012, "jshj empty"), + + /** + * hjje empty + */ + CODE_73013(73013, "hjje empty"), + + /** + * hjse empty + */ + CODE_73014(73014, "hjse empty"), + + /** + * hylx empty + */ + CODE_73015(73015, "hylx empty"), + + /** + * nsrsbh empty + */ + CODE_73016(73016, "nsrsbh empty"), + + /** + * kaipiao plat error + */ + CODE_73100(73100, "kaipiao plat error"), + + /** + * nsrsbh not cmp + */ + CODE_73101(73101, "nsrsbh not cmp"), + + /** + * invalid wxa appid in url_cell, wxa appid is need to bind biz appid + */ + CODE_73103(73103, "invalid wxa appid in url_cell, wxa appid is need to bind biz appid"), + + /** + * reach frequency limit + */ + CODE_73104(73104, "reach frequency limit"), + + /** + * Kp plat make invoice timeout, please try again with the same fpqqlsh + */ + CODE_73105(73105, "Kp plat make invoice timeout, please try again with the same fpqqlsh"), + + /** + * Fpqqlsh exist with different ddh + */ + CODE_73106(73106, "Fpqqlsh exist with different ddh"), + + /** + * Fpqqlsh is processing, please wait and query later + */ + CODE_73107(73107, "Fpqqlsh is processing, please wait and query later"), + + /** + * This ddh with other fpqqlsh already exist + */ + CODE_73108(73108, "This ddh with other fpqqlsh already exist"), + + /** + * This Fpqqlsh not exist in kpplat + */ + CODE_73109(73109, "This Fpqqlsh not exist in kpplat"), + + /** + * get card detail by card id and code fail + */ + CODE_73200(73200, "get card detail by card id and code fail"), + + /** + * get cloud invoice record fail + */ + CODE_73201(73201, "get cloud invoice record fail"), + + /** + * get appinfo fail + */ + CODE_73202(73202, "get appinfo fail"), + + /** + * get invoice category or rule kv error + */ + CODE_73203(73203, "get invoice category or rule kv error"), + + /** + * request card not exist + */ + CODE_73204(73204, "request card not exist"), + + /** + * 朋友的券玩法升级中,当前暂停创建,请创建其他类型卡券 + */ + CODE_73205(73205, "朋友的券玩法升级中,当前暂停创建,请创建其他类型卡券"), + + /** + * 朋友的券玩法升级中,当前暂停券点充值,请创建其他类型卡券 + */ + CODE_73206(73206, "朋友的券玩法升级中,当前暂停券点充值,请创建其他类型卡券"), + + /** + * 朋友的券玩法升级中,当前暂停开通券点账户 + */ + CODE_73207(73207, "朋友的券玩法升级中,当前暂停开通券点账户"), + + /** + * 朋友的券玩法升级中,当前不支持修改库存 + */ + CODE_73208(73208, "朋友的券玩法升级中,当前不支持修改库存"), + + /** + * 朋友的券玩法升级中,当前不支持修改有效期 + */ + CODE_73209(73209, "朋友的券玩法升级中,当前不支持修改有效期"), + + /** + * 当前批次不支持修改卡券批次库存 + */ + CODE_73210(73210, "当前批次不支持修改卡券批次库存"), + + /** + * 不再支持配置网页链接跳转,请选择小程序替代 + */ + CODE_73211(73211, "不再支持配置网页链接跳转,请选择小程序替代"), + + /** + * unauthorized backup member + */ + CODE_73212(73212, "unauthorized backup member"), + + /** + * invalid code type + */ + CODE_73213(73213, "invalid code type"), + + /** + * the user is already a member + */ + CODE_73214(73214, "the user is already a member"), + + /** + * 支付打通券能力已下线,请直接使用微信支付代金券API:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter1_1.shtml + */ + CODE_73215(73215, "支付打通券能力已下线,请直接使用微信支付代金券API:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter1_1.shtml"), + + /** + * 不合法的按钮名字,请从中选择一个:使用礼品卡/立即使用/去点外卖 + */ + CODE_73216(73216, "不合法的按钮名字,请从中选择一个:使用礼品卡/立即使用/去点外卖"), + + /** + * 礼品卡本身没有设置appname和path,不允许在修改接口设置 + */ + CODE_73217(73217, "礼品卡本身没有设置appname和path,不允许在修改接口设置"), + + /** + * 未授权使用礼品卡落地页跳转小程序功能 + */ + CODE_73218(73218, "未授权使用礼品卡落地页跳转小程序功能"), + + /** + * not find this wx_hotel_id info + */ + CODE_74000(74000, "not find this wx_hotel_id info"), + + /** + * request some param empty + */ + CODE_74001(74001, "request some param empty"), + + /** + * request some param error + */ + CODE_74002(74002, "request some param error"), + + /** + * request some param error + */ + CODE_74003(74003, "request some param error"), + + /** + * datetime error + */ + CODE_74004(74004, "datetime error"), + + /** + * checkin mode error + */ + CODE_74005(74005, "checkin mode error"), + + /** + * carid from error + */ + CODE_74007(74007, "carid from error"), + + /** + * this hotel routecode not exist + */ + CODE_74008(74008, "this hotel routecode not exist"), + + /** + * this hotel routecode info error contract developer + */ + CODE_74009(74009, "this hotel routecode info error contract developer"), + + /** + * maybe not support report mode + */ + CODE_74010(74010, "maybe not support report mode"), + + /** + * pic deocde not ok maybe its not good picdata + */ + CODE_74011(74011, "pic deocde not ok maybe its not good picdata"), + + /** + * verify sys erro + */ + CODE_74021(74021, "verify sys erro"), + + /** + * inner police erro + */ + CODE_74022(74022, "inner police erro"), + + /** + * unable to detect the face + */ + CODE_74023(74023, "unable to detect the face"), + + /** + * report checkin 2 lvye sys erro + */ + CODE_74040(74040, "report checkin 2 lvye sys erro"), + + /** + * report checkou 2 lvye sys erro + */ + CODE_74041(74041, "report checkou 2 lvye sys erro"), + + /** + * some param emtpy please check + */ + CODE_75001(75001, "some param emtpy please check"), + + /** + * param illegal please check + */ + CODE_75002(75002, "param illegal please check"), + + /** + * sys error kv store error + */ + CODE_75003(75003, "sys error kv store error"), + + /** + * sys error kvstring store error + */ + CODE_75004(75004, "sys error kvstring store error"), + + /** + * product not exist please check your product_id + */ + CODE_75005(75005, "product not exist please check your product_id"), + + /** + * order not exist please check order_id and buyer_appid + */ + CODE_75006(75006, "order not exist please check order_id and buyer_appid"), + + /** + * do not allow this status to change please check this order_id status now + */ + CODE_75007(75007, "do not allow this status to change please check this order_id status now"), + + /** + * product has exist please use new id + */ + CODE_75008(75008, "product has exist please use new id"), + + /** + * notify order status failed + */ + CODE_75009(75009, "notify order status failed"), + + /** + * buyer bussiness info not exist + */ + CODE_75010(75010, "buyer bussiness info not exist"), + + /** + * you had registered + */ + CODE_75011(75011, "you had registered"), + + /** + * store image key to kv error, please try again + */ + CODE_75012(75012, "store image key to kv error, please try again"), + + /** + * get image fail, please check you image key + */ + CODE_75013(75013, "get image fail, please check you image key"), + + /** + * this key is not belong to you + */ + CODE_75014(75014, "this key is not belong to you"), + + /** + * this key is expired + */ + CODE_75015(75015, "this key is expired"), + + /** + * encrypt decode key fail + */ + CODE_75016(75016, "encrypt decode key fail"), + + /** + * encrypt encode key fail + */ + CODE_75017(75017, "encrypt encode key fail"), + + /** + * bind buyer business info fail please contact us + */ + CODE_75018(75018, "bind buyer business info fail please contact us"), + + /** + * this key is empty, user may not upload file + */ + CODE_75019(75019, "this key is empty, user may not upload file"), + + /** + * 系统错误,请稍后再试 + */ + CODE_80000(80000, "系统错误,请稍后再试"), + + /** + * 参数格式校验错误 + */ + CODE_80001(80001, "参数格式校验错误"), + + /** + * 签名失败 + */ + CODE_80002(80002, "签名失败"), + + /** + * 该日期订单未生成 + */ + CODE_80003(80003, "该日期订单未生成"), + + /** + * 用户未绑卡 + */ + CODE_80004(80004, "用户未绑卡"), + + /** + * 姓名不符 + */ + CODE_80005(80005, "姓名不符"), + + /** + * 身份证不符 + */ + CODE_80006(80006, "身份证不符"), + + /** + * 获取城市信息失败 + */ + CODE_80007(80007, "获取城市信息失败"), + + /** + * 未找到指定少儿信息 + */ + CODE_80008(80008, "未找到指定少儿信息"), + + /** + * 少儿身份证不符 + */ + CODE_80009(80009, "少儿身份证不符"), + + /** + * 少儿未绑定 + */ + CODE_80010(80010, "少儿未绑定"), + + /** + * 签约号不符 + */ + CODE_80011(80011, "签约号不符"), + + /** + * 该地区局方配置不存在 + */ + CODE_80012(80012, "该地区局方配置不存在"), + + /** + * 调用方appid与局方配置不匹配 + */ + CODE_80013(80013, "调用方appid与局方配置不匹配"), + + /** + * 获取消息账号失败 + */ + CODE_80014(80014, "获取消息账号失败"), + + /** + * 非法的插件版本 + */ + CODE_80066(80066, "非法的插件版本"), + + /** + * 找不到使用的插件 + */ + CODE_80067(80067, "找不到使用的插件"), + + /** + * 没有权限使用该插件 + */ + CODE_80082(80082, "没有权限使用该插件"), + + /** + * 商家未接入 + */ + CODE_80101(80101, "商家未接入"), + + /** + * 实名校验code不存在 + */ + CODE_80111(80111, "实名校验code不存在"), + + /** + * code并发冲突 + */ + CODE_80112(80112, "code并发冲突"), + + /** + * 无效code + */ + CODE_80113(80113, "无效code"), + + /** + * report_type无效 + */ + CODE_80201(80201, "report_type无效"), + + /** + * service_type无效 + */ + CODE_80202(80202, "service_type无效"), + + /** + * 申请单不存在 + */ + CODE_80300(80300, "申请单不存在"), + + /** + * 申请单不属于该账号 + */ + CODE_80301(80301, "申请单不属于该账号"), + + /** + * 激活号段有重叠 + */ + CODE_80302(80302, "激活号段有重叠"), + + /** + * 码格式错误 + */ + CODE_80303(80303, "码格式错误"), + + /** + * 该码未激活 + */ + CODE_80304(80304, "该码未激活"), + + /** + * 激活失败 + */ + CODE_80305(80305, "激活失败"), + + /** + * 码索引超出申请范围 + */ + CODE_80306(80306, "码索引超出申请范围"), + + /** + * 申请已存在 + */ + CODE_80307(80307, "申请已存在"), + + /** + * 子任务未完成 + */ + CODE_80308(80308, "子任务未完成"), + + /** + * 子任务文件过期 + */ + CODE_80309(80309, "子任务文件过期"), + + /** + * 子任务不存在 + */ + CODE_80310(80310, "子任务不存在"), + + /** + * 获取文件失败 + */ + CODE_80311(80311, "获取文件失败"), + + /** + * 加密数据失败 + */ + CODE_80312(80312, "加密数据失败"), + + /** + * 加密数据密钥不存在,请联系接口人申请 + */ + CODE_80313(80313, "加密数据密钥不存在,请联系接口人申请"), + + /** + * can not set page_id in AddGiftCardPage + */ + CODE_81000(81000, "can not set page_id in AddGiftCardPage"), + + /** + * card_list is empty + */ + CODE_81001(81001, "card_list is empty"), + + /** + * card_id is not giftcard + */ + CODE_81002(81002, "card_id is not giftcard"), + + /** + * banner_pic_url is empty + */ + CODE_81004(81004, "banner_pic_url is empty"), + + /** + * banner_pic_url is not from cdn + */ + CODE_81005(81005, "banner_pic_url is not from cdn"), + + /** + * giftcard_wrap_pic_url_list is empty + */ + CODE_81006(81006, "giftcard_wrap_pic_url_list is empty"), + + /** + * giftcard_wrap_pic_url_list is not from cdn + */ + CODE_81007(81007, "giftcard_wrap_pic_url_list is not from cdn"), + + /** + * address is empty + */ + CODE_81008(81008, "address is empty"), + + /** + * service_phone is invalid + */ + CODE_81009(81009, "service_phone is invalid"), + + /** + * biz_description is empty + */ + CODE_81010(81010, "biz_description is empty"), + + /** + * invalid page_id + */ + CODE_81011(81011, "invalid page_id"), + + /** + * invalid order_id + */ + CODE_81012(81012, "invalid order_id"), + + /** + * invalid TIME_RANGE, begin_time + 31day must less than end_time + */ + CODE_81013(81013, "invalid TIME_RANGE, begin_time + 31day must less than end_time"), + + /** + * invalid count! count must equal or less than 100 + */ + CODE_81014(81014, "invalid count! count must equal or less than 100"), + + /** + * invalid category_index OR category.title is empty OR is_banner but has_category_index + */ + CODE_81015(81015, "invalid category_index OR category.title is empty OR is_banner but has_category_index"), + + /** + * is_banner is more than 1 + */ + CODE_81016(81016, "is_banner is more than 1"), + + /** + * order status error, please check pay status or gifting_status + */ + CODE_81017(81017, "order status error, please check pay status or gifting_status"), + + /** + * refund reduplicate, the order is already refunded + */ + CODE_81018(81018, "refund reduplicate, the order is already refunded"), + + /** + * lock order fail! the order is refunding by another request + */ + CODE_81019(81019, "lock order fail! the order is refunding by another request"), + + /** + * Invalid Args! page_id.size!=0 but all==true, or page_id.size==0 but all==false. + */ + CODE_81020(81020, "Invalid Args! page_id.size!=0 but all==true, or page_id.size==0 but all==false."), + + /** + * Empty theme_pic_url. + */ + CODE_81021(81021, "Empty theme_pic_url."), + + /** + * Empty theme.title. + */ + CODE_81022(81022, "Empty theme.title."), + + /** + * Empty theme.title_title. + */ + CODE_81023(81023, "Empty theme.title_title."), + + /** + * Empty theme.item_list. + */ + CODE_81024(81024, "Empty theme.item_list."), + + /** + * Empty theme.pic_item_list. + */ + CODE_81025(81025, "Empty theme.pic_item_list."), + + /** + * Invalid theme.title.length . + */ + CODE_81026(81026, "Invalid theme.title.length ."), + + /** + * Empty background_pic_url. + */ + CODE_81027(81027, "Empty background_pic_url."), + + /** + * Empty default_gifting_msg. + */ + CODE_81028(81028, "Empty default_gifting_msg."), + + /** + * Duplicate order_id + */ + CODE_81029(81029, "Duplicate order_id"), + + /** + * PreAlloc code fail + */ + CODE_81030(81030, "PreAlloc code fail"), + + /** + * Too many theme participate_activity + */ + CODE_81031(81031, "Too many theme participate_activity"), + + /** + * biz_template_id not exist + */ + CODE_82000(82000, "biz_template_id not exist"), + + /** + * result_page_style_id not exist + */ + CODE_82001(82001, "result_page_style_id not exist"), + + /** + * deal_msg_style_id not exist + */ + CODE_82002(82002, "deal_msg_style_id not exist"), + + /** + * card_style_id not exist + */ + CODE_82003(82003, "card_style_id not exist"), + + /** + * biz template not audit OK + */ + CODE_82010(82010, "biz template not audit OK"), + + /** + * biz template banned + */ + CODE_82011(82011, "biz template banned"), + + /** + * user not use service first + */ + CODE_82020(82020, "user not use service first"), + + /** + * exceed long period + */ + CODE_82021(82021, "exceed long period"), + + /** + * exceed long period max send cnt + */ + CODE_82022(82022, "exceed long period max send cnt"), + + /** + * exceed short period max send cnt + */ + CODE_82023(82023, "exceed short period max send cnt"), + + /** + * exceed data size limit + */ + CODE_82024(82024, "exceed data size limit"), + + /** + * invalid url + */ + CODE_82025(82025, "invalid url"), + + /** + * service disabled + */ + CODE_82026(82026, "service disabled"), + + /** + * invalid miniprogram appid + */ + CODE_82027(82027, "invalid miniprogram appid"), + + /** + * wx_cs_code should not be empty. + */ + CODE_82100(82100, "wx_cs_code should not be empty."), + + /** + * wx_cs_code is invalid. + */ + CODE_82101(82101, "wx_cs_code is invalid."), + + /** + * wx_cs_code is expire. + */ + CODE_82102(82102, "wx_cs_code is expire."), + + /** + * user_ip should not be empty. + */ + CODE_82103(82103, "user_ip should not be empty."), + + /** + * 公众平台账号与服务id不匹配 + */ + CODE_82200(82200, "公众平台账号与服务id不匹配"), + + /** + * 该停车场已存在,请勿重复添加 + */ + CODE_82201(82201, "该停车场已存在,请勿重复添加"), + + /** + * 该停车场信息不存在,请先导入 + */ + CODE_82202(82202, "该停车场信息不存在,请先导入"), + + /** + * 停车场价格格式不正确 + */ + CODE_82203(82203, "停车场价格格式不正确"), + + /** + * appid与code不匹配 + */ + CODE_82204(82204, "appid与code不匹配"), + + /** + * wx_park_code字段为空 + */ + CODE_82205(82205, "wx_park_code字段为空"), + + /** + * wx_park_code无效或已过期 + */ + CODE_82206(82206, "wx_park_code无效或已过期"), + + /** + * 电话字段为空 + */ + CODE_82207(82207, "电话字段为空"), + + /** + * 关闭时间格式不正确 + */ + CODE_82208(82208, "关闭时间格式不正确"), + + /** + * 该appid不支持开通城市服务插件 + */ + CODE_82300(82300, "该appid不支持开通城市服务插件"), + + /** + * 添加插件失败 + */ + CODE_82301(82301, "添加插件失败"), + + /** + * 未添加城市服务插件 + */ + CODE_82302(82302, "未添加城市服务插件"), + + /** + * fileid无效 + */ + CODE_82303(82303, "fileid无效"), + + /** + * 临时文件过期 + */ + CODE_82304(82304, "临时文件过期"), + + /** + * there is some param not exist + */ + CODE_83000(83000, "there is some param not exist"), + + /** + * system error + */ + CODE_83001(83001, "system error"), + + /** + * create_url_sence_failed + */ + CODE_83002(83002, "create_url_sence_failed"), + + /** + * appid maybe error or retry + */ + CODE_83003(83003, "appid maybe error or retry"), + + /** + * create appid auth failed or retry + */ + CODE_83004(83004, "create appid auth failed or retry"), + + /** + * wxwebencrytoken errro + */ + CODE_83005(83005, "wxwebencrytoken errro"), + + /** + * wxwebencrytoken expired or no exist + */ + CODE_83006(83006, "wxwebencrytoken expired or no exist"), + + /** + * wxwebencrytoken expired + */ + CODE_83007(83007, "wxwebencrytoken expired"), + + /** + * wxwebencrytoken no auth + */ + CODE_83008(83008, "wxwebencrytoken no auth"), + + /** + * wxwebencrytoken not the mate with openid + */ + CODE_83009(83009, "wxwebencrytoken not the mate with openid"), + + /** + * no exist service + */ + CODE_83200(83200, "no exist service"), + + /** + * uin has not the service + */ + CODE_83201(83201, "uin has not the service"), + + /** + * params is not json or not json array + */ + CODE_83202(83202, "params is not json or not json array"), + + /** + * params num exceed 10 + */ + CODE_83203(83203, "params num exceed 10"), + + /** + * object has not key + */ + CODE_83204(83204, "object has not key"), + + /** + * key is not string + */ + CODE_83205(83205, "key is not string"), + + /** + * object has not value + */ + CODE_83206(83206, "object has not value"), + + /** + * value is not string + */ + CODE_83207(83207, "value is not string"), + + /** + * key or value is empty + */ + CODE_83208(83208, "key or value is empty"), + + /** + * key exist repeated + */ + CODE_83209(83209, "key exist repeated"), + + /** + * invalid identify id + */ + CODE_84001(84001, "invalid identify id"), + + /** + * user data expired + */ + CODE_84002(84002, "user data expired"), + + /** + * user data not exist + */ + CODE_84003(84003, "user data not exist"), + + /** + * video upload fail! + */ + CODE_84004(84004, "video upload fail!"), + + /** + * video download fail! please try again + */ + CODE_84005(84005, "video download fail! please try again"), + + /** + * name or id_card_number empty + */ + CODE_84006(84006, "name or id_card_number empty"), + + /** + * 微信号不存在或微信号设置为不可搜索 user not exist or user cannot be searched + */ + CODE_85001(85001, "微信号不存在或微信号设置为不可搜索"), + + /** + * 小程序绑定的体验者数量达到上限 number of tester reach bind limit + */ + CODE_85002(85002, "小程序绑定的体验者数量达到上限"), + + /** + * 微信号绑定的小程序体验者达到上限 user already bind too many weapps + */ + CODE_85003(85003, "微信号绑定的小程序体验者达到上限"), + + /** + * 微信号已经绑定 user already bind + */ + CODE_85004(85004, "微信号已经绑定"), + + /** + * appid not bind weapp + */ + CODE_85005(85005, "appid not bind weapp"), + + /** + * 标签格式错误 tag is in invalid format + */ + CODE_85006(85006, "标签格式错误"), + + /** + * 页面路径错误 page is in invalid format + */ + CODE_85007(85007, "页面路径错误"), + + /** + * 当前小程序没有已经审核通过的类目,请添加类目成功后重试 category is in invalid format + */ + CODE_85008(85008, "当前小程序没有已经审核通过的类目,请添加类目成功后重试"), + + /** + * 已经有正在审核的版本 already submit a version under auditing + */ + CODE_85009(85009, "已经有正在审核的版本"), + + /** + * item_list 有项目为空 missing required data + */ + CODE_85010(85010, "item_list 有项目为空"), + + /** + * 标题填写错误 title is in invalid format + */ + CODE_85011(85011, "标题填写错误"), + + /** + * 无效的审核 id invalid audit id + */ + CODE_85012(85012, "无效的审核 id"), + + /** + * 无效的自定义配置 invalid ext_json, parse fail or containing invalid path + */ + CODE_85013(85013, "无效的自定义配置"), + + /** + * 无效的模板编号 template not exist + */ + CODE_85014(85014, "无效的模板编号"), + + /** + * 该账号不是小程序账号/版本输入错误 + */ + CODE_85015(85015, "该账号不是小程序账号/版本输入错误"), + + /** + * 版本输入错误 + */ +// CODE_85015(85015, "版本输入错误"), + + /** + * 域名数量超过限制 ,总数不能超过1000 exceed valid domain count + */ + CODE_85016(85016, "域名数量超过限制 ,总数不能超过1000"), + + /** + * 没有新增域名,请确认小程序已经添加了域名或该域名是否没有在第三方平台添加 no domain to modify after filtered, please confirm the domain has been set in miniprogram or open + */ + CODE_85017(85017, "没有新增域名,请确认小程序已经添加了域名或该域名是否没有在第三方平台添加"), + + /** + * 域名没有在第三方平台设置 + */ + CODE_85018(85018, "域名没有在第三方平台设置"), + + /** + * 没有审核版本 no version is under auditing + */ + CODE_85019(85019, "没有审核版本"), + + /** + * 审核状态未满足发布 status not allowed + */ + CODE_85020(85020, "审核状态未满足发布"), + + /** + * status not allowed + */ + CODE_85021(85021, "status not allowed"), + + /** + * invalid action + */ + CODE_85022(85022, "invalid action"), + + /** + * 审核列表填写的项目数不在 1-5 以内 item size is not in valid range + */ + CODE_85023(85023, "审核列表填写的项目数不在 1-5 以内"), + + /** + * need complete material + */ + CODE_85024(85024, "need complete material"), + + /** + * this phone reach bind limit + */ + CODE_85025(85025, "this phone reach bind limit"), + + /** + * this wechat account reach bind limit + */ + CODE_85026(85026, "this wechat account reach bind limit"), + + /** + * this idcard reach bind limit + */ + CODE_85027(85027, "this idcard reach bind limit"), + + /** + * this contractor reach bind limit + */ + CODE_85028(85028, "this contractor reach bind limit"), + + /** + * nickname has used + */ + CODE_85029(85029, "nickname has used"), + + /** + * invalid nickname size(4-30) + */ + CODE_85030(85030, "invalid nickname size(4-30)"), + + /** + * nickname is forbidden + */ + CODE_85031(85031, "nickname is forbidden"), + + /** + * nickname is complained + */ + CODE_85032(85032, "nickname is complained"), + + /** + * nickname is illegal + */ + CODE_85033(85033, "nickname is illegal"), + + /** + * nickname is protected + */ + CODE_85034(85034, "nickname is protected"), + + /** + * nickname is forbidden for different contractor + */ + CODE_85035(85035, "nickname is forbidden for different contractor"), + + /** + * introduction is illegal + */ + CODE_85036(85036, "introduction is illegal"), + + /** + * store has added + */ + CODE_85038(85038, "store has added"), + + /** + * store has added by others + */ + CODE_85039(85039, "store has added by others"), + + /** + * store has added by yourseld + */ + CODE_85040(85040, "store has added by yourseld"), + + /** + * credential has used + */ + CODE_85041(85041, "credential has used"), + + /** + * nearby reach limit + */ + CODE_85042(85042, "nearby reach limit"), + + /** + * 模板错误 invalid template, something wrong? + */ + CODE_85043(85043, "模板错误"), + + /** + * 代码包超过大小限制 package exceed max limit + */ + CODE_85044(85044, "代码包超过大小限制"), + + /** + * ext_json 有不存在的路径 some path in ext_json not exist + */ + CODE_85045(85045, "ext_json 有不存在的路径"), + + /** + * tabBar 中缺少 path pagepath missing in tabbar list + */ + CODE_85046(85046, "tabBar 中缺少 path"), + + /** + * pages 字段为空 pages are empty + */ + CODE_85047(85047, "pages 字段为空"), + + /** + * ext_json 解析失败 parse ext_json fail + */ + CODE_85048(85048, "ext_json 解析失败"), + + /** + * reach headimg or introduction quota limit + */ + CODE_85049(85049, "reach headimg or introduction quota limit"), + + /** + * verifying, don't apply again + */ + CODE_85050(85050, "verifying, don't apply again"), + + /** + * version_desc或者preview_info超限 data too large + */ + CODE_85051(85051, "version_desc或者preview_info超限"), + + /** + * app is already released + */ + CODE_85052(85052, "app is already released"), + + /** + * please apply merchant first + */ + CODE_85053(85053, "please apply merchant first"), + + /** + * poi_id is null, please upgrade first + */ + CODE_85054(85054, "poi_id is null, please upgrade first"), + + /** + * map_poi_id is invalid + */ + CODE_85055(85055, "map_poi_id is invalid"), + + /** + * mediaid is invalid + */ + CODE_85056(85056, "mediaid is invalid"), + + /** + * invalid widget data format + */ + CODE_85057(85057, "invalid widget data format"), + + /** + * no valid audit_id exist + */ + CODE_85058(85058, "no valid audit_id exist"), + + /** + * overseas access deny + */ + CODE_85059(85059, "overseas access deny"), + + /** + * invalid taskid + */ + CODE_85060(85060, "invalid taskid"), + + /** + * this phone reach bind limit + */ + CODE_85061(85061, "this phone reach bind limit"), + + /** + * this phone in black list + */ + CODE_85062(85062, "this phone in black list"), + + /** + * idcard in black list + */ + CODE_85063(85063, "idcard in black list"), + + /** + * 找不到模板 template not found + */ + CODE_85064(85064, "找不到模板"), + + /** + * 模板库已满 template list is full + */ + CODE_85065(85065, "模板库已满"), + + /** + * 链接错误 illegal prefix + */ + CODE_85066(85066, "链接错误"), + + /** + * input data error + */ + CODE_85067(85067, "input data error"), + + /** + * 测试链接不是子链接 test url is not the sub prefix + */ + CODE_85068(85068, "测试链接不是子链接"), + + /** + * 校验文件失败 check confirm file fail + */ + CODE_85069(85069, "校验文件失败"), + + /** + * 个人类型小程序无法设置二维码规则 prefix in black list + */ + CODE_85070(85070, "个人类型小程序无法设置二维码规则"), + + /** + * 已添加该链接,请勿重复添加 prefix added repeated + */ + CODE_85071(85071, "已添加该链接,请勿重复添加"), + + /** + * 该链接已被占用 prefix owned by other + */ + CODE_85072(85072, "该链接已被占用"), + + /** + * 二维码规则已满 prefix beyond limit + */ + CODE_85073(85073, "二维码规则已满"), + + /** + * 小程序未发布, 小程序必须先发布代码才可以发布二维码跳转规则 not published + */ + CODE_85074(85074, "小程序未发布, 小程序必须先发布代码才可以发布二维码跳转规则"), + + /** + * 个人类型小程序无法设置二维码规则 can not access + */ + CODE_85075(85075, "个人类型小程序无法设置二维码规则"), + + /** + * 小程序类目信息失效(类目中含有官方下架的类目,请重新选择类目) some category you choose is no longger supported, please choose other category + */ + CODE_85077(85077, "小程序类目信息失效(类目中含有官方下架的类目,请重新选择类目)"), + + /** + * operator info error + */ + CODE_85078(85078, "operator info error"), + + /** + * 小程序没有线上版本,不能进行灰度 miniprogram has no online release + */ + CODE_85079(85079, "小程序没有线上版本,不能进行灰度"), + + /** + * 小程序提交的审核未审核通过 miniprogram commit not approved + */ + CODE_85080(85080, "小程序提交的审核未审核通过"), + + /** + * 无效的发布比例 invalid gray percentage + */ + CODE_85081(85081, "无效的发布比例"), + + /** + * 当前的发布比例需要比之前设置的高 gray percentage too low + */ + CODE_85082(85082, "当前的发布比例需要比之前设置的高"), + + /** + * 搜索标记位被封禁,无法修改 search status is banned + */ + CODE_85083(85083, "搜索标记位被封禁,无法修改"), + + /** + * 非法的 status 值,只能填 0 或者 1 search status invalid + */ + CODE_85084(85084, "非法的 status 值,只能填 0 或者 1"), + + /** + * 小程序提审数量已达本月上限,请点击查看 submit audit reach limit pleasetry later + */ + CODE_85085(85085, "小程序提审数量已达本月上限,请点击查看"), + + /** + * 提交代码审核之前需提前上传代码 must commit before submit audit + */ + CODE_85086(85086, "提交代码审核之前需提前上传代码"), + + /** + * 小程序已使用 api navigateToMiniProgram,请声明跳转 appid 列表后再次提交 navigatetominiprogram appid list empty + */ + CODE_85087(85087, "小程序已使用 api navigateToMiniProgram,请声明跳转 appid 列表后再次提交"), + + /** + * no qbase privilege + */ + CODE_85088(85088, "no qbase privilege"), + + /** + * config not found + */ + CODE_85089(85089, "config not found"), + + /** + * wait and commit for this exappid later + */ + CODE_85090(85090, "wait and commit for this exappid later"), + + /** + * 小程序的搜索开关被关闭。请访问设置页面打开开关再重试 search status was turned off + */ + CODE_85091(85091, "小程序的搜索开关被关闭。请访问设置页面打开开关再重试"), + + /** + * preview_info格式错误 invalid preview_info format + */ + CODE_85092(85092, "preview_info格式错误"), + + /** + * preview_info 视频或者图片个数超限 invalid preview_info size + */ + CODE_85093(85093, "preview_info 视频或者图片个数超限"), + + /** + * 需提供审核机制说明信息 need add ugc declare + */ + CODE_85094(85094, "需提供审核机制说明信息"), + + /** + * 小程序不能发送该运动类型或运动类型不存在 + */ + CODE_85101(85101, "小程序不能发送该运动类型或运动类型不存在"), + + /** + * 数值异常 + */ + CODE_85102(85102, "数值异常"), + + /** + * 不是由第三方代小程序进行调用 should be called only from third party + */ + CODE_86000(86000, "不是由第三方代小程序进行调用"), + + /** + * 不存在第三方的已经提交的代码 component experience version not exists + */ + CODE_86001(86001, "不存在第三方的已经提交的代码"), + + /** + * 小程序还未设置昵称、头像、简介。请先设置完后再重新提交 miniprogram have not completed init procedure + */ + CODE_86002(86002, "小程序还未设置昵称、头像、简介。请先设置完后再重新提交"), + + /** + * component do not has category mall + */ + CODE_86003(86003, "component do not has category mall"), + + /** + * invalid wechat + */ + CODE_86004(86004, "invalid wechat"), + + /** + * wechat limit frequency + */ + CODE_86005(86005, "wechat limit frequency"), + + /** + * has no quota to send group msg + */ + CODE_86006(86006, "has no quota to send group msg"), + + /** + * 小程序禁止提交 + */ + CODE_86007(86007, "小程序禁止提交"), + + /** + * 服务商被处罚,限制全部代码提审能力 + */ + CODE_86008(86008, "服务商被处罚,限制全部代码提审能力"), + + /** + * 服务商新增小程序代码提审能力被限制 + */ + CODE_86009(86009, "服务商新增小程序代码提审能力被限制"), + + /** + * 服务商迭代小程序代码提审能力被限制 + */ + CODE_86010(86010, "服务商迭代小程序代码提审能力被限制"), + + /** + * 小游戏不能提交 this is game miniprogram, submit audit is forbidden + */ + CODE_87006(87006, "小游戏不能提交"), + + /** + * session_key is not existd or expired + */ + CODE_87007(87007, "session_key is not existd or expired"), + + /** + * invalid sig_method + */ + CODE_87008(87008, "invalid sig_method"), + + /** + * 无效的签名 invalid signature + */ + CODE_87009(87009, "无效的签名"), + + /** + * invalid buffer size + */ + CODE_87010(87010, "invalid buffer size"), + + /** + * 现网已经在灰度发布,不能进行版本回退 wxa has a gray release plan, forbid revert release + */ + CODE_87011(87011, "现网已经在灰度发布,不能进行版本回退"), + + /** + * 该版本不能回退,可能的原因:1:无上一个线上版用于回退 2:此版本为已回退版本,不能回退 3:此版本为回退功能上线之前的版本,不能回退 forbid revert this version release + */ + CODE_87012(87012, "该版本不能回退,可能的原因:1:无上一个线上版用于回退 2:此版本为已回退版本,不能回退 3:此版本为回退功能上线之前的版本,不能回退"), + + /** + * 撤回次数达到上限(每天5次,每个月 10 次) no quota to undo code + */ + CODE_87013(87013, "撤回次数达到上限(每天5次,每个月 10 次)"), + + /** + * risky content + */ + CODE_87014(87014, "risky content"), + + /** + * query timeout, try a content with less size + */ + CODE_87015(87015, "query timeout, try a content with less size"), + + /** + * some key-value in list meet length exceed + */ + CODE_87016(87016, "some key-value in list meet length exceed"), + + /** + * user storage size exceed, delete some keys and try again + */ + CODE_87017(87017, "user storage size exceed, delete some keys and try again"), + + /** + * user has stored too much keys. delete some keys and try again + */ + CODE_87018(87018, "user has stored too much keys. delete some keys and try again"), + + /** + * some keys in list meet length exceed + */ + CODE_87019(87019, "some keys in list meet length exceed"), + + /** + * need friend + */ + CODE_87080(87080, "need friend"), + + /** + * invalid openid + */ + CODE_87081(87081, "invalid openid"), + + /** + * invalid key + */ + CODE_87082(87082, "invalid key"), + + /** + * invalid operation + */ + CODE_87083(87083, "invalid operation"), + + /** + * invalid opnum + */ + CODE_87084(87084, "invalid opnum"), + + /** + * check fail + */ + CODE_87085(87085, "check fail"), + + /** + * without comment privilege + */ + CODE_88000(88000, "without comment privilege"), + + /** + * msg_data is not exists + */ + CODE_88001(88001, "msg_data is not exists"), + + /** + * the article is limit for safety + */ + CODE_88002(88002, "the article is limit for safety"), + + /** + * elected comment upper limit + */ + CODE_88003(88003, "elected comment upper limit"), + + /** + * comment was deleted by user + */ + CODE_88004(88004, "comment was deleted by user"), + + /** + * already reply + */ + CODE_88005(88005, "already reply"), + + /** + * reply content beyond max len or content len is zero + */ + CODE_88007(88007, "reply content beyond max len or content len is zero"), + + /** + * comment is not exists + */ + CODE_88008(88008, "comment is not exists"), + + /** + * reply is not exists + */ + CODE_88009(88009, "reply is not exists"), + + /** + * count range error. cout <= 0 or count > 50 + */ + CODE_88010(88010, "count range error. cout <= 0 or count > 50"), + + /** + * the article is limit for safety + */ + CODE_88011(88011, "the article is limit for safety"), + + /** + * account has bound open,该公众号/小程序已经绑定了开放平台帐号 account has bound open + */ + CODE_89000(89000, "account has bound open,该公众号/小程序已经绑定了开放平台帐号"), + + /** + * not same contractor,Authorizer 与开放平台帐号主体不相同 not same contractor + */ + CODE_89001(89001, "not same contractor,Authorizer 与开放平台帐号主体不相同"), + + /** + * open not exists,该公众号/小程序未绑定微信开放平台帐号。 open not exists + */ + CODE_89002(89002, "open not exists,该公众号/小程序未绑定微信开放平台帐号。"), + + /** + * 该开放平台帐号并非通过 api 创建,不允许操作 open is not created by api + */ + CODE_89003(89003, "该开放平台帐号并非通过 api 创建,不允许操作"), + + /** + * 该开放平台帐号所绑定的公众号/小程序已达上限(100 个) + */ + CODE_89004(89004, "该开放平台帐号所绑定的公众号/小程序已达上限(100 个)"), + + /** + * without add video ability, the ability was banned + */ + CODE_89005(89005, "without add video ability, the ability was banned"), + + /** + * without upload video ability, the ability was banned + */ + CODE_89006(89006, "without upload video ability, the ability was banned"), + + /** + * wxa quota limit + */ + CODE_89007(89007, "wxa quota limit"), + + /** + * overseas account can not link + */ + CODE_89008(89008, "overseas account can not link"), + + /** + * wxa reach link limit + */ + CODE_89009(89009, "wxa reach link limit"), + + /** + * link message has sent + */ + CODE_89010(89010, "link message has sent"), + + /** + * can not unlink nearby wxa + */ + CODE_89011(89011, "can not unlink nearby wxa"), + + /** + * can not unlink store or mall + */ + CODE_89012(89012, "can not unlink store or mall"), + + /** + * wxa is banned + */ + CODE_89013(89013, "wxa is banned"), + + /** + * support version error + */ + CODE_89014(89014, "support version error"), + + /** + * has linked wxa + */ + CODE_89015(89015, "has linked wxa"), + + /** + * reach same realname quota + */ + CODE_89016(89016, "reach same realname quota"), + + /** + * reach different realname quota + */ + CODE_89017(89017, "reach different realname quota"), + + /** + * unlink message has sent + */ + CODE_89018(89018, "unlink message has sent"), + + /** + * 业务域名无更改,无需重复设置 webview domain not change + */ + CODE_89019(89019, "业务域名无更改,无需重复设置"), + + /** + * 尚未设置小程序业务域名,请先在第三方平台中设置小程序业务域名后在调用本接口 open's webview domain is null! Need to set open's webview domain first! + */ + CODE_89020(89020, "尚未设置小程序业务域名,请先在第三方平台中设置小程序业务域名后在调用本接口"), + + /** + * 请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名 request domain is not open's webview domain! + */ + CODE_89021(89021, "请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名"), + + /** + * delete domain is not exist! + */ + CODE_89022(89022, "delete domain is not exist!"), + + /** + * 业务域名数量超过限制,最多可以添加100个业务域名 webview domain exceed limit + */ + CODE_89029(89029, "业务域名数量超过限制,最多可以添加100个业务域名"), + + /** + * operation reach month limit + */ + CODE_89030(89030, "operation reach month limit"), + + /** + * user bind reach limit + */ + CODE_89031(89031, "user bind reach limit"), + + /** + * weapp bind members reach limit + */ + CODE_89032(89032, "weapp bind members reach limit"), + + /** + * empty wx or openid + */ + CODE_89033(89033, "empty wx or openid"), + + /** + * userstr is invalid + */ + CODE_89034(89034, "userstr is invalid"), + + /** + * linking from mp + */ + CODE_89035(89035, "linking from mp"), + + /** + * 个人小程序不支持调用 setwebviewdomain 接口 not support single + */ + CODE_89231(89231, "个人小程序不支持调用 setwebviewdomain 接口"), + + /** + * hit black contractor + */ + CODE_89235(89235, "hit black contractor"), + + /** + * 该插件不能申请 this plugin can not apply + */ + CODE_89236(89236, "该插件不能申请"), + + /** + * 已经添加该插件 plugin has send apply message or already bind + */ + CODE_89237(89237, "已经添加该插件"), + + /** + * 申请或使用的插件已经达到上限 plugin count reach limit + */ + CODE_89238(89238, "申请或使用的插件已经达到上限"), + + /** + * 该插件不存在 plugin no exist + */ + CODE_89239(89239, "该插件不存在"), + + /** + * only applying status can be agreed or refused + */ + CODE_89240(89240, "only applying status can be agreed or refused"), + + /** + * only refused status can be deleted, please refused first + */ + CODE_89241(89241, "only refused status can be deleted, please refused first"), + + /** + * appid is no in the apply list, make sure appid is right + */ + CODE_89242(89242, "appid is no in the apply list, make sure appid is right"), + + /** + * 该申请为“待确认”状态,不可删除 can not delete apply request in 24 hours + */ + CODE_89243(89243, "该申请为“待确认”状态,不可删除"), + + /** + * 不存在该插件 appid plugin appid is no in the plugin list, make sure plugin appid is right + */ + CODE_89244(89244, "不存在该插件 appid"), + + /** + * mini program forbidden to link + */ + CODE_89245(89245, "mini program forbidden to link"), + + /** + * plugins with special category are used only by specific apps + */ + CODE_89246(89246, "plugins with special category are used only by specific apps"), + + /** + * 系统内部错误 inner error, retry after some while + */ + CODE_89247(89247, "系统内部错误"), + + /** + * invalid code type + */ + CODE_89248(89248, "invalid code type"), + + /** + * task running + */ + CODE_89249(89249, "task running"), + + /** + * 内部错误 inner error, retry after some while + */ + CODE_89250(89250, "内部错误"), + + /** + * 模板消息已下发,待法人人脸核身校验 legal person checking + */ + CODE_89251(89251, "模板消息已下发,待法人人脸核身校验"), + + /** + * 法人&企业信息一致性校验中 front checking + */ + CODE_89253(89253, "法人&企业信息一致性校验中"), + + /** + * lack of some component rights + */ + CODE_89254(89254, "lack of some component rights"), + + /** + * code参数无效,请检查code长度以及内容是否正确;注意code_type的值不同需要传的code长度不一样 enterprise code invalid + */ + CODE_89255(89255, "code参数无效,请检查code长度以及内容是否正确;注意code_type的值不同需要传的code长度不一样"), + + /** + * token 信息有误 no component info + */ + CODE_89256(89256, "token 信息有误"), + + /** + * 该插件版本不支持快速更新 no such version + */ + CODE_89257(89257, "该插件版本不支持快速更新"), + + /** + * 当前小程序帐号存在灰度发布中的版本,不可操作快速更新 code is gray online + */ + CODE_89258(89258, "当前小程序帐号存在灰度发布中的版本,不可操作快速更新"), + + /** + * zhibo plugin is not allow to delete + */ + CODE_89259(89259, "zhibo plugin is not allow to delete"), + + /** + * 订单无效 invalid trade + */ + CODE_89300(89300, "订单无效"), + + /** + * 系统不稳定,请稍后再试,如多次失败请通过社区反馈 + */ + CODE_89401(89401, "系统不稳定,请稍后再试,如多次失败请通过社区反馈"), + + /** + * 该小程序不在待审核队列,请检查是否已提交审核或已审完 + */ + CODE_89402(89402, "该小程序不在待审核队列,请检查是否已提交审核或已审完"), + + /** + * 本单属于平台不支持加急种类,请等待正常审核流程 + */ + CODE_89403(89403, "本单属于平台不支持加急种类,请等待正常审核流程"), + + /** + * 本单已加速成功,请勿重复提交 + */ + CODE_89404(89404, "本单已加速成功,请勿重复提交"), + + /** + * 本月加急额度已用完,请提高提审质量以获取更多额度 + */ + CODE_89405(89405, "本月加急额度已用完,请提高提审质量以获取更多额度"), + + /** + * 公众号有未处理的确认请求,请稍候重试 + */ + CODE_89501(89501, "公众号有未处理的确认请求,请稍候重试"), + + /** + * 请耐心等待管理员确认 + */ + CODE_89502(89502, "请耐心等待管理员确认"), + + /** + * 此次调用需要管理员确认,请耐心等候 + */ + CODE_89503(89503, "此次调用需要管理员确认,请耐心等候"), + + /** + * 正在等管理员确认,请耐心等待 + */ + CODE_89504(89504, "正在等管理员确认,请耐心等待"), + + /** + * 正在等管理员确认,请稍候重试 + */ + CODE_89505(89505, "正在等管理员确认,请稍候重试"), + + /** + * 该IP调用求请求已被公众号管理员拒绝,请24小时后再试,建议调用前与管理员沟通确认 + */ + CODE_89506(89506, "该IP调用求请求已被公众号管理员拒绝,请24小时后再试,建议调用前与管理员沟通确认"), + + /** + * 该IP调用求请求已被公众号管理员拒绝,请1小时后再试,建议调用前与管理员沟通确认 + */ + CODE_89507(89507, "该IP调用求请求已被公众号管理员拒绝,请1小时后再试,建议调用前与管理员沟通确认"), + + /** + * invalid order id + */ + CODE_90001(90001, "invalid order id"), + + /** + * invalid busi id + */ + CODE_90002(90002, "invalid busi id"), + + /** + * invalid bill date + */ + CODE_90003(90003, "invalid bill date"), + + /** + * invalid bill type + */ + CODE_90004(90004, "invalid bill type"), + + /** + * invalid platform + */ + CODE_90005(90005, "invalid platform"), + + /** + * bill not exists + */ + CODE_90006(90006, "bill not exists"), + + /** + * invalid openid + */ + CODE_90007(90007, "invalid openid"), + + /** + * mp_sig error + */ + CODE_90009(90009, "mp_sig error"), + + /** + * no session + */ + CODE_90010(90010, "no session"), + + /** + * sig error + */ + CODE_90011(90011, "sig error"), + + /** + * order exist + */ + CODE_90012(90012, "order exist"), + + /** + * balance not enough + */ + CODE_90013(90013, "balance not enough"), + + /** + * order has been confirmed + */ + CODE_90014(90014, "order has been confirmed"), + + /** + * order has been canceled + */ + CODE_90015(90015, "order has been canceled"), + + /** + * order is being processed + */ + CODE_90016(90016, "order is being processed"), + + /** + * no privilege + */ + CODE_90017(90017, "no privilege"), + + /** + * invalid parameter + */ + CODE_90018(90018, "invalid parameter"), + + /** + * 不是公众号快速创建的小程序 not fast register + */ + CODE_91001(91001, "不是公众号快速创建的小程序"), + + /** + * 小程序发布后不可改名 has published + */ + CODE_91002(91002, "小程序发布后不可改名"), + + /** + * 改名状态不合法 invalid change stat + */ + CODE_91003(91003, "改名状态不合法"), + + /** + * 昵称不合法 invalid nickname + */ + CODE_91004(91004, "昵称不合法"), + + /** + * 昵称 15 天主体保护 nickname protected + */ + CODE_91005(91005, "昵称 15 天主体保护"), + + /** + * 昵称命中微信号 nickname used by username + */ + CODE_91006(91006, "昵称命中微信号"), + + /** + * 昵称已被占用 nickname used + */ + CODE_91007(91007, "昵称已被占用"), + + /** + * 昵称命中 7 天侵权保护期 nickname protected + */ + CODE_91008(91008, "昵称命中 7 天侵权保护期"), + + /** + * 需要提交材料 nickname need proof + */ + CODE_91009(91009, "需要提交材料"), + + /** + * 其他错误 + */ + CODE_91010(91010, "其他错误"), + + /** + * 查不到昵称修改审核单信息 + */ + CODE_91011(91011, "查不到昵称修改审核单信息"), + + /** + * 其它错误 + */ + CODE_91012(91012, "其它错误"), + + /** + * 占用名字过多 lock name too more + */ + CODE_91013(91013, "占用名字过多"), + + /** + * +号规则 同一类型关联名主体不一致 diff master plus + */ + CODE_91014(91014, "+号规则 同一类型关联名主体不一致"), + + /** + * 原始名不同类型主体不一致 diff master + */ + CODE_91015(91015, "原始名不同类型主体不一致"), + + /** + * 名称占用者 ≥2 name more owner + */ + CODE_91016(91016, "名称占用者 ≥2"), + + /** + * +号规则 不同类型关联名主体不一致 other diff master plus + */ + CODE_91017(91017, "+号规则 不同类型关联名主体不一致"), + + /** + * 组织类型小程序发布后,侵权被清空昵称,需走认证改名 + */ + CODE_91018(91018, "组织类型小程序发布后,侵权被清空昵称,需走认证改名"), + + /** + * 小程序正在审核中 + */ + CODE_91019(91019, "小程序正在审核中"), + + /** + * 该经营资质已添加,请勿重复添加 + */ + CODE_92000(92000, "该经营资质已添加,请勿重复添加"), + + /** + * 附近地点添加数量达到上线,无法继续添加 + */ + CODE_92002(92002, "附近地点添加数量达到上线,无法继续添加"), + + /** + * 地点已被其它小程序占用 + */ + CODE_92003(92003, "地点已被其它小程序占用"), + + /** + * 附近功能被封禁 + */ + CODE_92004(92004, "附近功能被封禁"), + + /** + * 地点正在审核中 + */ + CODE_92005(92005, "地点正在审核中"), + + /** + * 地点正在展示小程序 + */ + CODE_92006(92006, "地点正在展示小程序"), + + /** + * 地点审核失败 + */ + CODE_92007(92007, "地点审核失败"), + + /** + * 小程序未展示在该地点 + */ + CODE_92008(92008, "小程序未展示在该地点"), + + /** + * 小程序未上架或不可见 + */ + CODE_93009(93009, "小程序未上架或不可见"), + + /** + * 地点不存在 + */ + CODE_93010(93010, "地点不存在"), + + /** + * 个人类型小程序不可用 + */ + CODE_93011(93011, "个人类型小程序不可用"), + + /** + * 非普通类型小程序(门店小程序、小店小程序等)不可用 + */ + CODE_93012(93012, "非普通类型小程序(门店小程序、小店小程序等)不可用"), + + /** + * 从腾讯地图获取地址详细信息失败 + */ + CODE_93013(93013, "从腾讯地图获取地址详细信息失败"), + + /** + * 同一资质证件号重复添加 + */ + CODE_93014(93014, "同一资质证件号重复添加"), + + /** + * 附近类目审核中 + */ + CODE_93015(93015, "附近类目审核中"), + + /** + * 服务标签个数超限制(官方最多5个,自定义最多4个) + */ + CODE_93016(93016, "服务标签个数超限制(官方最多5个,自定义最多4个)"), + + /** + * 服务标签或者客服的名字不符合要求 + */ + CODE_93017(93017, "服务标签或者客服的名字不符合要求"), + + /** + * 服务能力中填写的小程序appid不是同主体小程序 + */ + CODE_93018(93018, "服务能力中填写的小程序appid不是同主体小程序"), + + /** + * 申请类目之后才能添加附近地点 + */ + CODE_93019(93019, "申请类目之后才能添加附近地点"), + + /** + * qualification_list无效 + */ + CODE_93020(93020, "qualification_list无效"), + + /** + * company_name字段为空 + */ + CODE_93021(93021, "company_name字段为空"), + + /** + * credential字段为空 + */ + CODE_93022(93022, "credential字段为空"), + + /** + * address字段为空 + */ + CODE_93023(93023, "address字段为空"), + + /** + * qualification_list字段为空 + */ + CODE_93024(93024, "qualification_list字段为空"), + + /** + * 服务appid对应的path不存在 + */ + CODE_93025(93025, "服务appid对应的path不存在"), + + /** + * missing cert_serialno + */ + CODE_94001(94001, "missing cert_serialno"), + + /** + * use not register wechat pay + */ + CODE_94002(94002, "use not register wechat pay"), + + /** + * invalid sign + */ + CODE_94003(94003, "invalid sign"), + + /** + * user do not has real name info + */ + CODE_94004(94004, "user do not has real name info"), + + /** + * invalid user token + */ + CODE_94005(94005, "invalid user token"), + + /** + * appid unauthorized + */ + CODE_94006(94006, "appid unauthorized"), + + /** + * appid unbind mchid + */ + CODE_94007(94007, "appid unbind mchid"), + + /** + * invalid timestamp + */ + CODE_94008(94008, "invalid timestamp"), + + /** + * invalid cert_serialno, cert_serialno's size should be 40 + */ + CODE_94009(94009, "invalid cert_serialno, cert_serialno's size should be 40"), + + /** + * invalid mch_id + */ + CODE_94010(94010, "invalid mch_id"), + + /** + * timestamp expired + */ + CODE_94011(94011, "timestamp expired"), + + /** + * appid和商户号的绑定关系不存在 + */ + CODE_94012(94012, "appid和商户号的绑定关系不存在"), + + /** + * wxcode decode fail + */ + CODE_95001(95001, "wxcode decode fail"), + + /** + * wxcode recognize unautuorized + */ + CODE_95002(95002, "wxcode recognize unautuorized"), + + /** + * get product by page args invalid + */ + CODE_95101(95101, "get product by page args invalid"), + + /** + * get product materials by cond args invalid + */ + CODE_95102(95102, "get product materials by cond args invalid"), + + /** + * material id list size out of limit + */ + CODE_95103(95103, "material id list size out of limit"), + + /** + * import product frequence out of limit + */ + CODE_95104(95104, "import product frequence out of limit"), + + /** + * mp is importing products, api is rejected to import + */ + CODE_95105(95105, "mp is importing products, api is rejected to import"), + + /** + * api is rejected to import, need to set commission ratio on mp first + */ + CODE_95106(95106, "api is rejected to import, need to set commission ratio on mp first"), + + /** + * invalid image url + */ + CODE_101000(101000, "无效图片链接"), + + /** + * certificate not found + */ + CODE_101001(101001, "未找到证书"), + + /** + * not enough market quota + */ + CODE_101002(101002, "not enough market quota"), + + /** + * 入参错误 + */ + CODE_200002(200002, "入参错误"), + + /** + * 此账号已被封禁,无法操作 + */ + CODE_200011(200011, "此账号已被封禁,无法操作"), + + /** + * 个人模板数已达上限,上限25个 + */ + CODE_200012(200012, "个人模板数已达上限,上限25个"), + + /** + * 此模板已被封禁,无法选用 + */ + CODE_200013(200013, "此模板已被封禁,无法选用"), + + /** + * 模板 tid 参数错误 + */ + CODE_200014(200014, "模板 tid 参数错误"), + + /** + * start 参数错误 + */ + CODE_200016(200016, "start 参数错误"), + + /** + * limit 参数错误 + */ + CODE_200017(200017, "limit 参数错误"), + + /** + * 类目 ids 缺失 + */ + CODE_200018(200018, "类目 ids 缺失"), + + /** + * 类目 ids 不合法 + */ + CODE_200019(200019, "类目 ids 不合法"), + + /** + * 关键词列表 kidList 参数错误 + */ + CODE_200020(200020, "关键词列表 kidList 参数错误"), + + /** + * 场景描述 sceneDesc 参数错误 + */ + CODE_200021(200021, "场景描述 sceneDesc 参数错误"), + + /** + * 禁止创建/更新商品(如商品创建功能被封禁) 或 禁止编辑&更新房间 + */ + CODE_300001(300001, "禁止创建/更新商品(如商品创建功能被封禁) 或 禁止编辑&更新房间"), + + /** + * 名称长度不符合规则 + */ + CODE_300002(300002, "名称长度不符合规则"), + + /** + * 价格输入不合规(如现价比原价大、传入价格非数字等) + */ + CODE_300003(300003, "价格输入不合规(如现价比原价大、传入价格非数字等)"), + + /** + * 商品名称存在违规违法内容 + */ + CODE_300004(300004, "商品名称存在违规违法内容"), + + /** + * 商品图片存在违规违法内容 + */ + CODE_300005(300005, "商品图片存在违规违法内容"), + + /** + * 图片上传失败(如mediaID过期) + */ + CODE_300006(300006, "图片上传失败(如mediaID过期)"), + + /** + * 线上小程序版本不存在该链接 + */ + CODE_300007(300007, "线上小程序版本不存在该链接"), + + /** + * 添加商品失败 + */ + CODE_300008(300008, "添加商品失败"), + + /** + * 商品审核撤回失败 + */ + CODE_300009(300009, "商品审核撤回失败"), + + /** + * 商品审核状态不对(如商品审核中) + */ + CODE_300010(300010, "商品审核状态不对(如商品审核中)"), + + /** + * 操作非法(API不允许操作非API创建的商品) + */ + CODE_300011(300011, "操作非法(API不允许操作非API创建的商品)"), + + /** + * 没有提审额度(每天500次提审额度) + */ + CODE_300012(300012, "没有提审额度(每天500次提审额度)"), + + /** + * 提审失败 + */ + CODE_300013(300013, "提审失败"), + + /** + * 审核中,无法删除(非零代表失败) + */ + CODE_300014(300014, "审核中,无法删除(非零代表失败)"), + + /** + * 商品未提审 + */ + CODE_300017(300017, "商品未提审"), + + /** + * 商品添加成功,审核失败 + */ + CODE_300021(300021, "商品添加成功,审核失败"), + + /** + * 此房间号不存在 + */ + CODE_300022(300022, "此房间号不存在"), + + /** + * 房间状态 拦截(当前房间状态不允许此操作) + */ + CODE_300023(300023, "房间状态 拦截(当前房间状态不允许此操作)"), + + /** + * 商品不存在 + */ + CODE_300024(300024, "商品不存在"), + + /** + * 商品审核未通过 + */ + CODE_300025(300025, "商品审核未通过"), + + /** + * 房间商品数量已经满额 + */ + CODE_300026(300026, "房间商品数量已经满额"), + + /** + * 导入商品失败 + */ + CODE_300027(300027, "导入商品失败"), + + /** + * 房间名称违规 + */ + CODE_300028(300028, "房间名称违规"), + + /** + * 主播昵称违规 + */ + CODE_300029(300029, "主播昵称违规"), + + /** + * 主播微信号不合法 + */ + CODE_300030(300030, "主播微信号不合法"), + + /** + * 直播间封面图不合规 + */ + CODE_300031(300031, "直播间封面图不合规"), + + /** + * 直播间分享图违规 + */ + CODE_300032(300032, "直播间分享图违规"), + + /** + * 添加商品超过直播间上限 + */ + CODE_300033(300033, "添加商品超过直播间上限"), + + /** + * 主播微信昵称长度不符合要求 + */ + CODE_300034(300034, "主播微信昵称长度不符合要求"), + + /** + * 主播微信号不存在 + */ + CODE_300035(300035, "主播微信号不存在"), + + /** + * 主播微信号未实名认证 + */ + CODE_300036(300036, "主播微信号未实名认证"), + + /** + * invalid file name + */ + CODE_600001(600001, "invalid file name"), + + /** + * no permission to upload file + */ + CODE_600002(600002, "no permission to upload file"), + + /** + * invalid size of source + */ + CODE_600003(600003, "invalid size of source"), + + /** + * 票据已存在 + */ + CODE_928000(928000, "票据已存在"), + + /** + * 票据不存在 + */ + CODE_928001(928001, "票据不存在"), + + /** + * sysem error + */ + CODE_930555(930555, "sysem error"), + + /** + * delivery timeout + */ + CODE_930556(930556, "delivery timeout"), + + /** + * delivery system error + */ + CODE_930557(930557, "delivery system error"), + + /** + * delivery logic error + */ + CODE_930558(930558, "delivery logic error"), + + /** + * 沙盒环境openid无效 invaild openid + */ + CODE_930559(930559, "沙盒环境openid无效"), + + /** + * shopid need bind first + */ + CODE_930560(930560, "shopid need bind first"), + + /** + * 参数错误 args error + */ + CODE_930561(930561, "参数错误"), + + /** + * order already exists + */ + CODE_930562(930562, "order already exists"), + + /** + * 订单不存在 order not exists + */ + CODE_930563(930563, "订单不存在"), + + /** + * 沙盒环境调用无配额 quota run out, try next day + */ + CODE_930564(930564, "沙盒环境调用无配额"), + + /** + * order finished + */ + CODE_930565(930565, "order finished"), + + /** + * not support, plz auth at mp.weixin.qq.com + */ + CODE_930566(930566, "not support, plz auth at mp.weixin.qq.com"), + + /** + * shop arg error + */ + CODE_930567(930567, "shop arg error"), + + /** + * 不支持个人类型小程序 not personal account + */ + CODE_930568(930568, "不支持个人类型小程序"), + + /** + * 已经开通不需要再开通 already open + */ + CODE_930569(930569, "已经开通不需要再开通"), + + /** + * cargo_first_class or cargo_second_class invalid + */ + CODE_930570(930570, "cargo_first_class or cargo_second_class invalid"), + + /** + * 该商户没有内测权限,请先申请权限: https://wj.qq.com/s2/7243532/fcfb/ + */ + CODE_930571(930571, "该商户没有内测权限,请先申请权限: https://wj.qq.com/s2/7243532/fcfb/"), + + /** + * fee already set + */ + CODE_931010(931010, "fee already set"), + + /** + * unbind download url + */ + CODE_6000100(6000100, "unbind download url"), + + /** + * no response data + */ + CODE_6000101(6000101, "no response data"), + + /** + * response data too big + */ + CODE_6000102(6000102, "response data too big"), + + /** + * POST 数据参数不合法 + */ + CODE_9001001(9001001, "POST 数据参数不合法"), + + /** + * 远端服务不可用 + */ + CODE_9001002(9001002, "远端服务不可用"), + + /** + * Ticket 不合法 + */ + CODE_9001003(9001003, "Ticket 不合法"), + + /** + * 获取摇周边用户信息失败 + */ + CODE_9001004(9001004, "获取摇周边用户信息失败"), + + /** + * 获取商户信息失败 + */ + CODE_9001005(9001005, "获取商户信息失败"), + + /** + * 获取 OpenID 失败 + */ + CODE_9001006(9001006, "获取 OpenID 失败"), + + /** + * 上传文件缺失 + */ + CODE_9001007(9001007, "上传文件缺失"), + + /** + * 上传素材的文件类型不合法 + */ + CODE_9001008(9001008, "上传素材的文件类型不合法"), + + /** + * 上传素材的文件尺寸不合法 + */ + CODE_9001009(9001009, "上传素材的文件尺寸不合法"), + + /** + * 上传失败 + */ + CODE_9001010(9001010, "上传失败"), + + /** + * 帐号不合法 + */ + CODE_9001020(9001020, "帐号不合法"), + + /** + * 已有设备激活率低于 50% ,不能新增设备 + */ + CODE_9001021(9001021, "已有设备激活率低于 50% ,不能新增设备"), + + /** + * 设备申请数不合法,必须为大于 0 的数字 + */ + CODE_9001022(9001022, "设备申请数不合法,必须为大于 0 的数字"), + + /** + * 已存在审核中的设备 ID 申请 + */ + CODE_9001023(9001023, "已存在审核中的设备 ID 申请"), + + /** + * 一次查询设备 ID 数量不能超过 50 + */ + CODE_9001024(9001024, "一次查询设备 ID 数量不能超过 50"), + + /** + * 设备 ID 不合法 + */ + CODE_9001025(9001025, "设备 ID 不合法"), + + /** + * 页面 ID 不合法 + */ + CODE_9001026(9001026, "页面 ID 不合法"), + + /** + * 页面参数不合法 + */ + CODE_9001027(9001027, "页面参数不合法"), + + /** + * 一次删除页面 ID 数量不能超过 10 + */ + CODE_9001028(9001028, "一次删除页面 ID 数量不能超过 10"), + + /** + * 页面已应用在设备中,请先解除应用关系再删除 + */ + CODE_9001029(9001029, "页面已应用在设备中,请先解除应用关系再删除"), + + /** + * 一次查询页面 ID 数量不能超过 50 + */ + CODE_9001030(9001030, "一次查询页面 ID 数量不能超过 50"), + + /** + * 时间区间不合法 + */ + CODE_9001031(9001031, "时间区间不合法"), + + /** + * 保存设备与页面的绑定关系参数错误 + */ + CODE_9001032(9001032, "保存设备与页面的绑定关系参数错误"), + + /** + * 门店 ID 不合法 + */ + CODE_9001033(9001033, "门店 ID 不合法"), + + /** + * 设备备注信息过长 + */ + CODE_9001034(9001034, "设备备注信息过长"), + + /** + * 设备申请参数不合法 + */ + CODE_9001035(9001035, "设备申请参数不合法"), + + /** + * 查询起始值 begin 不合法 + */ + CODE_9001036(9001036, "查询起始值 begin 不合法"), + + /** + * params invalid + */ + CODE_9002008(9002008, "params invalid"), + + /** + * shop id not exist + */ + CODE_9002009(9002009, "shop id not exist"), + + /** + * ssid or password should start with "WX" + */ + CODE_9002010(9002010, "ssid or password should start with \"WX\""), + + /** + * ssid can not include chinese + */ + CODE_9002011(9002011, "ssid can not include chinese"), + + /** + * passsword can not include chinese + */ + CODE_9002012(9002012, "passsword can not include chinese"), + + /** + * password must be between 8 and 24 characters + */ + CODE_9002013(9002013, "password must be between 8 and 24 characters"), + + /** + * device exist + */ + CODE_9002016(9002016, "device exist"), + + /** + * device not exist + */ + CODE_9002017(9002017, "device not exist"), + + /** + * the size of query list reach limit + */ + CODE_9002026(9002026, "the size of query list reach limit"), + + /** + * not allowed to modify, ensure you are an certified or component account + */ + CODE_9002041(9002041, "not allowed to modify, ensure you are an certified or component account"), + + /** + * invalid ssid, can not include none utf8 characters, and should be between 1 and 32 bytes + */ + CODE_9002044(9002044, "invalid ssid, can not include none utf8 characters, and should be between 1 and 32 bytes"), + + /** + * shop id has not be audited, this bar type is not enable + */ + CODE_9002052(9002052, "shop id has not be audited, this bar type is not enable"), + + /** + * protocol type is not same with the exist device + */ + CODE_9007003(9007003, "protocol type is not same with the exist device"), + + /** + * ssid not exist + */ + CODE_9007004(9007004, "ssid not exist"), + + /** + * device count limit + */ + CODE_9007005(9007005, "device count limit"), + + /** + * card info not exist + */ + CODE_9008001(9008001, "card info not exist"), + + /** + * card expiration time is invalid + */ + CODE_9008002(9008002, "card expiration time is invalid"), + + /** + * url size invalid, keep less than 255 + */ + CODE_9008003(9008003, "url size invalid, keep less than 255"), + + /** + * url can not include chinese + */ + CODE_9008004(9008004, "url can not include chinese"), + + /** + * order_id not exist + */ + CODE_9200001(9200001, "order_id not exist"), + + /** + * order of other biz + */ + CODE_9200002(9200002, "order of other biz"), + + /** + * blocked + */ + CODE_9200003(9200003, "blocked"), + + /** + * payment notice disabled + */ + CODE_9200211(9200211, "payment notice disabled"), + + /** + * payment notice not exist + */ + CODE_9200231(9200231, "payment notice not exist"), + + /** + * payment notice paid + */ + CODE_9200232(9200232, "payment notice paid"), + + /** + * payment notice canceled + */ + CODE_9200233(9200233, "payment notice canceled"), + + /** + * payment notice expired + */ + CODE_9200235(9200235, "payment notice expired"), + + /** + * bank not allow + */ + CODE_9200236(9200236, "bank not allow"), + + /** + * freq limit + */ + CODE_9200295(9200295, "freq limit"), + + /** + * suspend payment at current time + */ + CODE_9200297(9200297, "suspend payment at current time"), + + /** + * 3rd resp decrypt error + */ + CODE_9200298(9200298, "3rd resp decrypt error"), + + /** + * 3rd resp system error + */ + CODE_9200299(9200299, "3rd resp system error"), + + /** + * 3rd resp sign error + */ + CODE_9200300(9200300, "3rd resp sign error"), + + /** + * desc empty + */ + CODE_9201000(9201000, "desc empty"), + + /** + * fee not equal items' + */ + CODE_9201001(9201001, "fee not equal items'"), + + /** + * payment info incorrect + */ + CODE_9201002(9201002, "payment info incorrect"), + + /** + * fee is 0 + */ + CODE_9201003(9201003, "fee is 0"), + + /** + * payment expire date format error + */ + CODE_9201004(9201004, "payment expire date format error"), + + /** + * appid error + */ + CODE_9201005(9201005, "appid error"), + + /** + * payment order id error + */ + CODE_9201006(9201006, "payment order id error"), + + /** + * openid error + */ + CODE_9201007(9201007, "openid error"), + + /** + * return_url error + */ + CODE_9201008(9201008, "return_url error"), + + /** + * ip error + */ + CODE_9201009(9201009, "ip error"), + + /** + * order_id error + */ + CODE_9201010(9201010, "order_id error"), + + /** + * reason error + */ + CODE_9201011(9201011, "reason error"), + + /** + * mch_id error + */ + CODE_9201012(9201012, "mch_id error"), + + /** + * bill_date error + */ + CODE_9201013(9201013, "bill_date error"), + + /** + * bill_type error + */ + CODE_9201014(9201014, "bill_type error"), + + /** + * trade_type error + */ + CODE_9201015(9201015, "trade_type error"), + + /** + * bank_id error + */ + CODE_9201016(9201016, "bank_id error"), + + /** + * bank_account error + */ + CODE_9201017(9201017, "bank_account error"), + + /** + * payment_notice_no error + */ + CODE_9201018(9201018, "payment_notice_no error"), + + /** + * department_code error + */ + CODE_9201019(9201019, "department_code error"), + + /** + * payment_notice_type error + */ + CODE_9201020(9201020, "payment_notice_type error"), + + /** + * region_code error + */ + CODE_9201021(9201021, "region_code error"), + + /** + * department_name error + */ + CODE_9201022(9201022, "department_name error"), + + /** + * fee not equal finance's + */ + CODE_9201023(9201023, "fee not equal finance's"), + + /** + * refund_out_id error + */ + CODE_9201024(9201024, "refund_out_id error"), + + /** + * not combined order_id + */ + CODE_9201026(9201026, "not combined order_id"), + + /** + * partial sub order is test + */ + CODE_9201027(9201027, "partial sub order is test"), + + /** + * desc too long + */ + CODE_9201029(9201029, "desc too long"), + + /** + * sub order list size error + */ + CODE_9201031(9201031, "sub order list size error"), + + /** + * sub order repeated + */ + CODE_9201032(9201032, "sub order repeated"), + + /** + * auth_code empty + */ + CODE_9201033(9201033, "auth_code empty"), + + /** + * bank_id empty but mch_id not empty + */ + CODE_9201034(9201034, "bank_id empty but mch_id not empty"), + + /** + * sum of other fees exceed total fee + */ + CODE_9201035(9201035, "sum of other fees exceed total fee"), + + /** + * other user paying + */ + CODE_9202000(9202000, "other user paying"), + + /** + * pay process not finish + */ + CODE_9202001(9202001, "pay process not finish"), + + /** + * no refund permission + */ + CODE_9202002(9202002, "no refund permission"), + + /** + * ip limit + */ + CODE_9202003(9202003, "ip limit"), + + /** + * freq limit + */ + CODE_9202004(9202004, "freq limit"), + + /** + * user weixin account abnormal + */ + CODE_9202005(9202005, "user weixin account abnormal"), + + /** + * account balance not enough + */ + CODE_9202006(9202006, "account balance not enough"), + + /** + * refund request repeated + */ + CODE_9202010(9202010, "refund request repeated"), + + /** + * has refunded + */ + CODE_9202011(9202011, "has refunded"), + + /** + * refund exceed total fee + */ + CODE_9202012(9202012, "refund exceed total fee"), + + /** + * busi_id dup + */ + CODE_9202013(9202013, "busi_id dup"), + + /** + * not check sign + */ + CODE_9202016(9202016, "not check sign"), + + /** + * check sign failed + */ + CODE_9202017(9202017, "check sign failed"), + + /** + * sub order error + */ + CODE_9202018(9202018, "sub order error"), + + /** + * order status error + */ + CODE_9202020(9202020, "order status error"), + + /** + * unified order repeatedly + */ + CODE_9202021(9202021, "unified order repeatedly"), + + /** + * request to notification url fail + */ + CODE_9203000(9203000, "request to notification url fail"), + + /** + * http request fail + */ + CODE_9203001(9203001, "http request fail"), + + /** + * http response data error + */ + CODE_9203002(9203002, "http response data error"), + + /** + * http response data RSA decrypt fail + */ + CODE_9203003(9203003, "http response data RSA decrypt fail"), + + /** + * http response data AES decrypt fail + */ + CODE_9203004(9203004, "http response data AES decrypt fail"), + + /** + * system busy, please try again later + */ + CODE_9203999(9203999, "system busy, please try again later"), + + /** + * getrealname token error + */ + CODE_9204000(9204000, "getrealname token error"), + + /** + * getrealname user or token error + */ + CODE_9204001(9204001, "getrealname user or token error"), + + /** + * getrealname appid or token error + */ + CODE_9204002(9204002, "getrealname appid or token error"), + + /** + * finance conf not exist + */ + CODE_9205000(9205000, "finance conf not exist"), + + /** + * bank conf not exist + */ + CODE_9205001(9205001, "bank conf not exist"), + + /** + * wei ban ju conf not exist + */ + CODE_9205002(9205002, "wei ban ju conf not exist"), + + /** + * symmetric key conf not exist + */ + CODE_9205010(9205010, "symmetric key conf not exist"), + + /** + * out order id not exist + */ + CODE_9205101(9205101, "out order id not exist"), + + /** + * bill not exist + */ + CODE_9205201(9205201, "bill not exist"), + + /** + * 3rd resp pay_channel empty + */ + CODE_9206000(9206000, "3rd resp pay_channel empty"), + + /** + * 3rd resp order_id empty + */ + CODE_9206001(9206001, "3rd resp order_id empty"), + + /** + * 3rd resp bill_type_code empty + */ + CODE_9206002(9206002, "3rd resp bill_type_code empty"), + + /** + * 3rd resp bill_no empty + */ + CODE_9206003(9206003, "3rd resp bill_no empty"), + + /** + * 3rd resp empty + */ + CODE_9206200(9206200, "3rd resp empty"), + + /** + * 3rd resp not json + */ + CODE_9206201(9206201, "3rd resp not json"), + + /** + * connect 3rd error + */ + CODE_9206900(9206900, "connect 3rd error"), + + /** + * connect 3rd timeout + */ + CODE_9206901(9206901, "connect 3rd timeout"), + + /** + * read 3rd resp error + */ + CODE_9206910(9206910, "read 3rd resp error"), + + /** + * read 3rd resp timeout + */ + CODE_9206911(9206911, "read 3rd resp timeout"), + + /** + * boss error + */ + CODE_9207000(9207000, "boss error"), + + /** + * wechat pay error + */ + CODE_9207001(9207001, "wechat pay error"), + + /** + * boss param error + */ + CODE_9207002(9207002, "boss param error"), + + /** + * pay error + */ + CODE_9207003(9207003, "pay error"), + + /** + * auth_code expired + */ + CODE_9207004(9207004, "auth_code expired"), + + /** + * user balance not enough + */ + CODE_9207005(9207005, "user balance not enough"), + + /** + * card not support + */ + CODE_9207006(9207006, "card not support"), + + /** + * order reversed + */ + CODE_9207007(9207007, "order reversed"), + + /** + * user paying, need input password + */ + CODE_9207008(9207008, "user paying, need input password"), + + /** + * auth_code error + */ + CODE_9207009(9207009, "auth_code error"), + + /** + * auth_code invalid + */ + CODE_9207010(9207010, "auth_code invalid"), + + /** + * not allow to reverse when user paying + */ + CODE_9207011(9207011, "not allow to reverse when user paying"), + + /** + * order paid + */ + CODE_9207012(9207012, "order paid"), + + /** + * order closed + */ + CODE_9207013(9207013, "order closed"), + + /** + * vehicle not exists + */ + CODE_9207028(9207028, "vehicle not exists"), + + /** + * vehicle request blocked + */ + CODE_9207029(9207029, "vehicle request blocked"), + + /** + * vehicle auth error + */ + CODE_9207030(9207030, "vehicle auth error"), + + /** + * contract over limit + */ + CODE_9207031(9207031, "contract over limit"), + + /** + * trade error + */ + CODE_9207032(9207032, "trade error"), + + /** + * trade time invalid + */ + CODE_9207033(9207033, "trade time invalid"), + + /** + * channel type invalid + */ + CODE_9207034(9207034, "channel type invalid"), + + /** + * expire_time range error + */ + CODE_9207050(9207050, "expire_time range error"), + + /** + * query finance error + */ + CODE_9210000(9210000, "query finance error"), + + /** + * openid error + */ + CODE_9291000(9291000, "openid error"), + + /** + * openid appid not match + */ + CODE_9291001(9291001, "openid appid not match"), + + /** + * app_appid not exist + */ + CODE_9291002(9291002, "app_appid not exist"), + + /** + * app_appid not app + */ + CODE_9291003(9291003, "app_appid not app"), + + /** + * appid empty + */ + CODE_9291004(9291004, "appid empty"), + + /** + * appid not match access_token + */ + CODE_9291005(9291005, "appid not match access_token"), + + /** + * invalid sign + */ + CODE_9291006(9291006, "invalid sign"), + + /** + * backend logic error + */ + CODE_9299999(9299999, "backend logic error"), + + /** + * begin_time can not before now + */ + CODE_9300001(9300001, "begin_time can not before now"), + + /** + * end_time can not before now + */ + CODE_9300002(9300002, "end_time can not before now"), + + /** + * begin_time must less than end_time + */ + CODE_9300003(9300003, "begin_time must less than end_time"), + + /** + * end_time - begin_time > 1year + */ + CODE_9300004(9300004, "end_time - begin_time > 1year"), + + /** + * invalid max_partic_times + */ + CODE_9300005(9300005, "invalid max_partic_times"), + + /** + * invalid activity status + */ + CODE_9300006(9300006, "invalid activity status"), + + /** + * gift_num must >0 and <=15 + */ + CODE_9300007(9300007, "gift_num must >0 and <=15"), + + /** + * invalid tiny appid + */ + CODE_9300008(9300008, "invalid tiny appid"), + + /** + * activity can not finish + */ + CODE_9300009(9300009, "activity can not finish"), + + /** + * card_info_list must >= 2 + */ + CODE_9300010(9300010, "card_info_list must >= 2"), + + /** + * invalid card_id + */ + CODE_9300011(9300011, "invalid card_id"), + + /** + * card_id must belong this appid + */ + CODE_9300012(9300012, "card_id must belong this appid"), + + /** + * card_id is not swipe_card or pay.cash + */ + CODE_9300013(9300013, "card_id is not swipe_card or pay.cash"), + + /** + * some card_id is out of stock + */ + CODE_9300014(9300014, "some card_id is out of stock"), + + /** + * some card_id is invalid status + */ + CODE_9300015(9300015, "some card_id is invalid status"), + + /** + * membership or new/old tinyapp user only support one + */ + CODE_9300016(9300016, "membership or new/old tinyapp user only support one"), + + /** + * invalid logic for membership + */ + CODE_9300017(9300017, "invalid logic for membership"), + + /** + * invalid logic for tinyapp new/old user + */ + CODE_9300018(9300018, "invalid logic for tinyapp new/old user"), + + /** + * invalid activity type + */ + CODE_9300019(9300019, "invalid activity type"), + + /** + * invalid activity_id + */ + CODE_9300020(9300020, "invalid activity_id"), + + /** + * invalid help_max_times + */ + CODE_9300021(9300021, "invalid help_max_times"), + + /** + * invalid cover_url + */ + CODE_9300022(9300022, "invalid cover_url"), + + /** + * invalid gen_limit + */ + CODE_9300023(9300023, "invalid gen_limit"), + + /** + * card's end_time cannot early than act's end_time + */ + CODE_9300024(9300024, "card's end_time cannot early than act's end_time"), + + /** + * 快递侧逻辑错误,详细原因需要看 delivery_resultcode, 请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE) Delivery side error + */ + CODE_9300501(9300501, "快递侧逻辑错误,详细原因需要看 delivery_resultcode, 请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE)"), + + /** + * 快递公司系统错误 Delivery side sys error + */ + CODE_9300502(9300502, "快递公司系统错误"), + + /** + * delivery_id 不存在 Specified delivery id is not registerred + */ + CODE_9300503(9300503, "delivery_id 不存在"), + + /** + * service_type 不存在 Specified delivery id has beed banned + */ + CODE_9300504(9300504, "service_type 不存在"), + + /** + * Shop banned + */ + CODE_9300505(9300505, "Shop banned"), + + /** + * 运单 ID 已经存在轨迹,不可取消 Order can't cancel + */ + CODE_9300506(9300506, "运单 ID 已经存在轨迹,不可取消"), + + /** + * Token 不正确 invalid token, can't decryption or decryption result is different from the plaintext + */ + CODE_9300507(9300507, "Token 不正确"), + + /** + * order id has been used + */ + CODE_9300508(9300508, "order id has been used"), + + /** + * speed limit, retry too fast + */ + CODE_9300509(9300509, "speed limit, retry too fast"), + + /** + * invalid service type + */ + CODE_9300510(9300510, "invalid service type"), + + /** + * invalid branch id + */ + CODE_9300511(9300511, "invalid branch id"), + + /** + * 模板格式错误,渲染失败 invalid waybill template format + */ + CODE_9300512(9300512, "模板格式错误,渲染失败"), + + /** + * out of quota + */ + CODE_9300513(9300513, "out of quota"), + + /** + * add net branch fail, try update branch api + */ + CODE_9300514(9300514, "add net branch fail, try update branch api"), + + /** + * wxa appid not exist + */ + CODE_9300515(9300515, "wxa appid not exist"), + + /** + * wxa appid and current bizuin is not linked or not the same owner + */ + CODE_9300516(9300516, "wxa appid and current bizuin is not linked or not the same owner"), + + /** + * update_type 不正确,请使用"bind" 或者“unbind” invalid update_type, please use [bind] or [unbind] + */ + CODE_9300517(9300517, "update_type 不正确,请使用\"bind\" 或者“unbind”"), + + /** + * invalid delivery id + */ + CODE_9300520(9300520, "invalid delivery id"), + + /** + * the orderid is in our system, and waybill is generating + */ + CODE_9300521(9300521, "the orderid is in our system, and waybill is generating"), + + /** + * this orderid is repeated + */ + CODE_9300522(9300522, "this orderid is repeated"), + + /** + * quota is not enough; go to charge please + */ + CODE_9300523(9300523, "quota is not enough; go to charge please"), + + /** + * 订单已取消(一般为重复取消订单) order already canceled + */ + CODE_9300524(9300524, "订单已取消(一般为重复取消订单)"), + + /** + * bizid未绑定 biz id not bind + */ + CODE_9300525(9300525, "bizid未绑定"), + + /** + * 参数字段长度不正确 arg size exceed limit + */ + CODE_9300526(9300526, "参数字段长度不正确"), + + /** + * delivery does not support quota + */ + CODE_9300527(9300527, "delivery does not support quota"), + + /** + * invalid waybill_id + */ + CODE_9300528(9300528, "invalid waybill_id"), + + /** + * 账号已绑定过 biz_id already binded + */ + CODE_9300529(9300529, "账号已绑定过"), + + /** + * 解绑的biz_id不存在 biz_id is not exist + */ + CODE_9300530(9300530, "解绑的biz_id不存在"), + + /** + * bizid无效 或者密码错误 invalid biz_id or password + */ + CODE_9300531(9300531, "bizid无效 或者密码错误"), + + /** + * 绑定已提交,审核中 bind submit, and is checking + */ + CODE_9300532(9300532, "绑定已提交,审核中"), + + /** + * invalid tagid_list + */ + CODE_9300533(9300533, "invalid tagid_list"), + + /** + * add_source=2时,wx_appid和当前小程序不同主体 invalid appid, not same body + */ + CODE_9300534(9300534, "add_source=2时,wx_appid和当前小程序不同主体"), + + /** + * shop字段商品缩略图 url、商品名称为空或者非法,或者商品数量为0 invalid shop arg + */ + CODE_9300535(9300535, "shop字段商品缩略图 url、商品名称为空或者非法,或者商品数量为0"), + + /** + * add_source=2时,wx_appid无效 invalid wxa_appid + */ + CODE_9300536(9300536, "add_source=2时,wx_appid无效"), + + /** + * freq limit + */ + CODE_9300537(9300537, "freq limit"), + + /** + * input task empty + */ + CODE_9300538(9300538, "input task empty"), + + /** + * too many task + */ + CODE_9300539(9300539, "too many task"), + + /** + * task not exist + */ + CODE_9300540(9300540, "task not exist"), + + /** + * delivery callback error + */ + CODE_9300541(9300541, "delivery callback error"), + + /** + * id_card_no is invalid + */ + CODE_9300601(9300601, "id_card_no is invalid"), + + /** + * name is invalid + */ + CODE_9300602(9300602, "name is invalid"), + + /** + * plate_no is invalid + */ + CODE_9300603(9300603, "plate_no is invalid"), + + /** + * auth_key decode error + */ + CODE_9300604(9300604, "auth_key decode error"), + + /** + * auth_key is expired + */ + CODE_9300605(9300605, "auth_key is expired"), + + /** + * auth_key and appinfo not match + */ + CODE_9300606(9300606, "auth_key and appinfo not match"), + + /** + * user not confirm + */ + CODE_9300607(9300607, "user not confirm"), + + /** + * user confirm is expired + */ + CODE_9300608(9300608, "user confirm is expired"), + + /** + * api exceed limit + */ + CODE_9300609(9300609, "api exceed limit"), + + /** + * car license info is invalid + */ + CODE_9300610(9300610, "car license info is invalid"), + + /** + * varification type not support + */ + CODE_9300611(9300611, "varification type not support"), + + /** + * input param error + */ + CODE_9300701(9300701, "input param error"), + + /** + * this code has been used + */ + CODE_9300702(9300702, "this code has been used"), + + /** + * invalid date + */ + CODE_9300703(9300703, "invalid date"), + + /** + * not currently available + */ + CODE_9300704(9300704, "not currently available"), + + /** + * code not exist or expired + */ + CODE_9300705(9300705, "code not exist or expired"), + + /** + * code not exist or expired + */ + CODE_9300706(9300706, "code not exist or expired"), + + /** + * wxpay error + */ + CODE_9300707(9300707, "wxpay error"), + + /** + * wxpay overlimit + */ + CODE_9300708(9300708, "wxpay overlimit"), + + /** + * 无效的微信号 + */ + CODE_9300801(9300801, "无效的微信号"), + + /** + * 服务号未开通导购功能 + */ + CODE_9300802(9300802, "服务号未开通导购功能"), + + /** + * 微信号已经绑定为导购 + */ + CODE_9300803(9300803, "微信号已经绑定为导购"), + + /** + * 该微信号不是导购 + */ + CODE_9300804(9300804, "该微信号不是导购"), + + /** + * 微信号已经被其他账号绑定为导购 + */ + CODE_9300805(9300805, "微信号已经被其他账号绑定为导购"), + + /** + * 粉丝和导购不存在绑定关系 + */ + CODE_9300806(9300806, "粉丝和导购不存在绑定关系"), + + /** + * 标签值无效,不是可选标签值 + */ + CODE_9300807(9300807, "标签值无效,不是可选标签值"), + + /** + * 标签值不存在 + */ + CODE_9300808(9300808, "标签值不存在"), + + /** + * 展示标签值不存在 + */ + CODE_9300809(9300809, "展示标签值不存在"), + + /** + * 导购昵称太长,最多16个字符 + */ + CODE_9300810(9300810, "导购昵称太长,最多16个字符"), + + /** + * 只支持mmbiz.qpic.cn域名的图片 + */ + CODE_9300811(9300811, "只支持mmbiz.qpic.cn域名的图片"), + + /** + * 达到导购绑定个数限制 + */ + CODE_9300812(9300812, "达到导购绑定个数限制"), + + /** + * 达到导购粉丝绑定个数限制 + */ + CODE_9300813(9300813, "达到导购粉丝绑定个数限制"), + + /** + * 敏感词个数超过上限 + */ + CODE_9300814(9300814, "敏感词个数超过上限"), + + /** + * 快捷回复个数超过上限 + */ + CODE_9300815(9300815, "快捷回复个数超过上限"), + + /** + * 文字素材个数超过上限 + */ + CODE_9300816(9300816, "文字素材个数超过上限"), + + /** + * 小程序卡片素材个数超过上限 + */ + CODE_9300817(9300817, "小程序卡片素材个数超过上限"), + + /** + * 图片素材个数超过上限 + */ + CODE_9300818(9300818, "图片素材个数超过上限"), + + /** + * mediaid 有误 + */ + CODE_9300819(9300819, "mediaid 有误"), + + /** + * 可查询标签类别超过上限 + */ + CODE_9300820(9300820, "可查询标签类别超过上限"), + + /** + * 小程序卡片内appid不符合要求 + */ + CODE_9300821(9300821, "小程序卡片内appid不符合要求"), + + /** + * 标签类别的名字无效 + */ + CODE_9300822(9300822, "标签类别的名字无效"), + + /** + * 查询聊天记录时间参数有误 + */ + CODE_9300823(9300823, "查询聊天记录时间参数有误"), + + /** + * 自动回复字数太长 + */ + CODE_9300824(9300824, "自动回复字数太长"), + + /** + * 导购群组id错误 + */ + CODE_9300825(9300825, "导购群组id错误"), + + /** + * 维护中 + */ + CODE_9300826(9300826, "维护中"), + + /** + * invalid parameter + */ + CODE_9301001(9301001, "invalid parameter"), + + /** + * call api service failed + */ + CODE_9301002(9301002, "call api service failed"), + + /** + * internal exception + */ + CODE_9301003(9301003, "internal exception"), + + /** + * save data error + */ + CODE_9301004(9301004, "save data error"), + + /** + * invalid appid + */ + CODE_9301006(9301006, "invalid appid"), + + /** + * invalid api config + */ + CODE_9301007(9301007, "invalid api config"), + + /** + * invalid api info + */ + CODE_9301008(9301008, "invalid api info"), + + /** + * add result check failed + */ + CODE_9301009(9301009, "add result check failed"), + + /** + * consumption failure + */ + CODE_9301010(9301010, "consumption failure"), + + /** + * frequency limit reached + */ + CODE_9301011(9301011, "frequency limit reached"), + + /** + * service timeout + */ + CODE_9301012(9301012, "service timeout"), + + /** + * 该开发小程序已开通小程序直播权限,不支持发布版本。如需发版,请解绑开发小程序后再操作。 + */ + CODE_9400001(9400001, "该开发小程序已开通小程序直播权限,不支持发布版本。如需发版,请解绑开发小程序后再操作。"), + + /** + * 商品已存在 + */ + CODE_9401001(9401001, "商品已存在"), + + /** + * 商品不存在 + */ + CODE_9401002(9401002, "商品不存在"), + + /** + * 类目已存在 + */ + CODE_9401003(9401003, "类目已存在"), + + /** + * 类目不存在 + */ + CODE_9401004(9401004, "类目不存在"), + + /** + * SKU已存在 + */ + CODE_9401005(9401005, "SKU已存在"), + + /** + * SKU不存在 + */ + CODE_9401006(9401006, "SKU不存在"), + + /** + * 属性已存在 + */ + CODE_9401007(9401007, "属性已存在"), + + /** + * 属性不存在 + */ + CODE_9401008(9401008, "属性不存在"), + + /** + * 非法参数 + */ + CODE_9401020(9401020, "非法参数"), + + /** + * 没有商品权限 + */ + CODE_9401021(9401021, "没有商品权限"), + + /** + * SPU NOT ALLOW + */ + CODE_9401022(9401022, "SPU NOT ALLOW"), + + /** + * SPU_NOT_ALLOW_EDIT + */ + CODE_9401023(9401023, "SPU_NOT_ALLOW_EDIT"), + + /** + * SKU NOT ALLOW + */ + CODE_9401024(9401024, "SKU NOT ALLOW"), + + /** + * SKU_NOT_ALLOW_EDIT + */ + CODE_9401025(9401025, "SKU_NOT_ALLOW_EDIT"), + + /** + * limit too large + */ + CODE_9402001(9402001, "limit too large"), + + /** + * single send been blocked + */ + CODE_9402002(9402002, "single send been blocked"), + + /** + * all send been blocked + */ + CODE_9402003(9402003, "all send been blocked"), + + /** + * invalid msg id + */ + CODE_9402004(9402004, "invalid msg id"), + + /** + * send msg too quick + */ + CODE_9402005(9402005, "send msg too quick"), + + /** + * send to single user too quick + */ + CODE_9402006(9402006, "send to single user too quick"), + + /** + * send to all user too quick + */ + CODE_9402007(9402007, "send to all user too quick"), + + /** + * send type error + */ + CODE_9402008(9402008, "send type error"), + + /** + * can not send this msg + */ + CODE_9402009(9402009, "can not send this msg"), + + /** + * content too long or no content + */ + CODE_9402010(9402010, "content too long or no content"), + + /** + * path not exist + */ + CODE_9402011(9402011, "path not exist"), + + /** + * contain evil word + */ + CODE_9402012(9402012, "contain evil word"), + + /** + * path need html suffix + */ + CODE_9402013(9402013, "path need html suffix"), + + /** + * not open to personal body type + */ + CODE_9402014(9402014, "not open to personal body type"), + + /** + * not open to violation body type + */ + CODE_9402015(9402015, "not open to violation body type"), + + /** + * not open to low quality provider + */ + CODE_9402016(9402016, "not open to low quality provider"), + + /** + * invalid product_id + */ + CODE_9402101(9402101, "invalid product_id"), + + /** + * device_id count more than limit + */ + CODE_9402102(9402102, "device_id count more than limit"), + + /** + * 请勿频繁提交,待上一次操作完成后再提交 concurrent limit + */ + CODE_9402202(9402202, "请勿频繁提交,待上一次操作完成后再提交"), + + /** + * user not book this ad id + */ + CODE_9402301(9402301, "user not book this ad id"), + + /** + * 消息类型错误! + */ + CODE_9403000(9403000, "消息类型错误!"), + + /** + * 消息字段的内容过长! + */ + CODE_9403001(9403001, "消息字段的内容过长!"), + + /** + * 消息字段的内容违规! + */ + CODE_9403002(9403002, "消息字段的内容违规!"), + + /** + * 发送的微信号太多! + */ + CODE_9403003(9403003, "发送的微信号太多!"), + + /** + * 存在错误的微信号! + */ + CODE_9403004(9403004, "存在错误的微信号!"), + + /** + * 直播间列表为空 live room not exsits + */ + CODE_9410000(9410000, "直播间列表为空"), + + /** + * 获取房间失败 inner error: get room fail + */ + CODE_9410001(9410001, "获取房间失败"), + + /** + * 获取商品失败 inner error: get goods fail + */ + CODE_9410002(9410002, "获取商品失败"), + + /** + * 获取回放失败 inner error: get replay url fail + */ + CODE_9410003(9410003, "获取回放失败"); + + + + private final int code; + private final String msg; + + WxOpenErrorMsgEnum(int code, String msg) { + this.code = code; + this.msg = msg; + } + + static final Map valueMap = Maps.newHashMap(); + + static { + for (com.pxys.wechatgroup.common.error.WxOpenErrorMsgEnum value : com.pxys.wechatgroup.common.error.WxOpenErrorMsgEnum.values()) { + valueMap.put(value.code, value.msg); + } + } + + /** + * 通过错误代码查找其中文含义. + */ + public static String findMsgByCode(int code) { + return valueMap.getOrDefault(code, null); + } +} From 533ea253d6485917019f94c7da7c47b2cf429760 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 1 Mar 2022 15:31:40 +0800 Subject: [PATCH 141/622] Update bug_report.md --- .github/ISSUE_TEMPLATE/bug_report.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d87b6c73fa..c15adca964 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -8,7 +8,8 @@ assignees: '' --- # 提问前,请确保阅读过项目首页说明以及wiki开发文档相关内容,尤其是常见问题部分。完成内容后,请务必移除包括本句在内的无用内容,以免影响阅读,否则直接关闭,谢谢合作~ -# 另外如果确认属于bug,而且已明确如何修复,请参考贡献指南直接提交PR,省的浪费时间在这里描述问题,非常感谢配合 + +## 另外如果确认属于bug,而且已明确如何修复,请参考贡献指南直接提交PR,省的浪费时间在这里描述问题,非常感谢配合 ### 简要描述 __简单概括描述下你所遇到的问题。__ @@ -21,4 +22,7 @@ __简单概括描述下你所遇到的问题。__ __尽量详细描述。请不要使用截图,尽量使用文字描述,代码直接贴上来,日志则请附在后面所示区域。__ ### 日志 -__将日志放在 [pastebin](https://paste.ubuntu.com/) 或者其他地方,并将其url地址贴在这里__ +__如果日志不多,直接使用md代码引用格式贴在此处,否则如果太长,请将日志放在 [pastebin](https://paste.ubuntu.com/) 或者其他地方,然后将其url地址贴在这里__ +``` +日志请写于此处 +``` From abaec2faf96d7f279e00b67eb637aaba21781728 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 1 Mar 2022 15:47:28 +0800 Subject: [PATCH 142/622] =?UTF-8?q?:art:=20=E3=80=90=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91=E8=8E=B7=E5=8F=96=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=A0=81=E7=9A=84createWxaCode=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=94=AF=E6=8C=81envVersion=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaQrcodeService.java | 51 ++++++++++--------- .../api/impl/WxMaQrcodeServiceImpl.java | 44 +++++++++------- .../binarywang/wx/miniapp/bean/WxaCode.java | 5 ++ .../wx/miniapp/bean/WxaCodeUnlimit.java | 4 +- .../wx/miniapp/constant/WxMaConstants.java | 5 ++ .../api/impl/WxMaQrcodeServiceImplTest.java | 12 ++--- 6 files changed, 71 insertions(+), 50 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java index 46fc97d2b5..ececed036e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java @@ -101,45 +101,48 @@ public interface WxMaQrcodeService { /** * 接口A: 获取小程序码. * - * @param path 不能为空,最大长度 128 字节 - * @param width 默认430 二维码的宽度 - * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 - * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} - * @param isHyaline 是否需要透明底色, isHyaline 为true时,生成透明底色的小程序码 + * @param path 不能为空,最大长度 128 字节 + * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" + * @param width 默认430 二维码的宽度 + * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 + * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} + * @param isHyaline 是否需要透明底色, isHyaline 为true时,生成透明底色的小程序码 * @return 文件内容字节数组 * @throws WxErrorException 异常 */ - byte[] createWxaCodeBytes(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) - throws WxErrorException; + byte[] createWxaCodeBytes(String path, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, + boolean isHyaline) throws WxErrorException; /** * 接口A: 获取小程序码. * - * @param path 不能为空,最大长度 128 字节 - * @param width 默认430 二维码的宽度 - * @param filePath 二维码生成的文件路径,例如: /var/temp - * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 - * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} - * @param isHyaline 是否需要透明底色, isHyaline 为true时,生成透明底色的小程序码 + * @param path 不能为空,最大长度 128 字节 + * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" + * @param width 默认430 二维码的宽度 + * @param filePath 二维码生成的文件路径,例如: /var/temp + * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 + * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} + * @param isHyaline 是否需要透明底色, isHyaline 为true时,生成透明底色的小程序码 * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCode(String path, int width, String filePath, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) - throws WxErrorException; + File createWxaCode(String path, String envVersion, int width, String filePath, boolean autoColor, + WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** * 接口A: 获取小程序码. * - * @param path 不能为空,最大长度 128 字节 - * @param width 默认430 二维码的宽度 - * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 - * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} - * @param isHyaline 是否需要透明底色, isHyaline 为true时,生成透明底色的小程序码 + * @param path 不能为空,最大长度 128 字节 + * @param envVersion 默认"release" 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop" + * @param width 默认430 二维码的宽度 + * @param autoColor 默认true 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 + * @param lineColor autoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"} + * @param isHyaline 是否需要透明底色, isHyaline 为true时,生成透明底色的小程序码 * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) - throws WxErrorException; + File createWxaCode(String path, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, + boolean isHyaline) throws WxErrorException; /** * 接口A: 获取小程序码. @@ -229,8 +232,8 @@ byte[] createWxaCodeUnlimitBytes(String scene, String page, boolean checkPath, S * @return 文件对象 * @throws WxErrorException 异常 */ - File createWxaCodeUnlimit(String scene, String page, String filePath, boolean checkPath, String envVersion, int width, boolean autoColor, - WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; + File createWxaCodeUnlimit(String scene, String page, String filePath, boolean checkPath, String envVersion, int width, + boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException; /** * 接口B: 获取小程序码(永久有效、数量暂无限制). diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java index 072119bc2a..cc7fc51feb 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImpl.java @@ -10,10 +10,12 @@ import cn.binarywang.wx.miniapp.executor.QrcodeRequestExecutor; import lombok.RequiredArgsConstructor; import me.chanjar.weixin.common.error.WxErrorException; +import org.apache.commons.lang3.StringUtils; import java.io.File; import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Qrcode.*; +import static cn.binarywang.wx.miniapp.constant.WxMaConstants.DEFAULT_ENV_VERSION; /** * @author Binary Wang @@ -40,11 +42,12 @@ public File createQrcode(String path) throws WxErrorException { } @Override - public byte[] createWxaCodeBytes(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) - throws WxErrorException { + public byte[] createWxaCodeBytes(String path, String envVersion, int width, boolean autoColor, + WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeBytesRequestExecutor.create(this.service.getRequestHttp()), GET_WXACODE_URL, WxaCode.builder() .path(path) + .envVersion(StringUtils.defaultIfEmpty(envVersion, DEFAULT_ENV_VERSION)) .width(width) .autoColor(autoColor) .lineColor(lineColor) @@ -53,11 +56,12 @@ public byte[] createWxaCodeBytes(String path, int width, boolean autoColor, WxMa } @Override - public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) - throws WxErrorException { + public File createWxaCode(String path, String envVersion, int width, boolean autoColor, WxMaCodeLineColor lineColor, + boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp()), GET_WXACODE_URL, WxaCode.builder() .path(path) + .envVersion(StringUtils.defaultIfEmpty(envVersion, DEFAULT_ENV_VERSION)) .width(width) .autoColor(autoColor) .lineColor(lineColor) @@ -67,7 +71,7 @@ public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLin @Override public File createWxaCode(String path, int width) throws WxErrorException { - return this.createWxaCode(path, width, true, null, false); + return this.createWxaCode(path, null, width, true, null, false); } @Override @@ -76,21 +80,22 @@ public File createWxaCode(String path) throws WxErrorException { } @Override - public byte[] createWxaCodeUnlimitBytes(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, - WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { + public byte[] createWxaCodeUnlimitBytes(String scene, String page, boolean checkPath, String envVersion, int width, + boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) + throws WxErrorException { return this.service.execute(QrcodeBytesRequestExecutor.create(this.service.getRequestHttp()), GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, checkPath, envVersion, width, autoColor, lineColor, isHyaline)); } @Override - public File createWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, - WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { + public File createWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, + boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp()), GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, checkPath, envVersion, width, autoColor, lineColor, isHyaline)); } - private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, boolean autoColor, - WxMaCodeLineColor lineColor, boolean isHyaline) { + private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, boolean checkPath, String envVersion, int width, + boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) { WxaCodeUnlimit wxaCodeUnlimit = new WxaCodeUnlimit(); wxaCodeUnlimit.setScene(scene); wxaCodeUnlimit.setPage(page); @@ -106,7 +111,7 @@ private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, boolean ch @Override public File createWxaCodeUnlimit(String scene, String page) throws WxErrorException { - return this.createWxaCodeUnlimit(scene, page, true, "release", 430, true, null, false); + return this.createWxaCodeUnlimit(scene, page, true, DEFAULT_ENV_VERSION, 430, true, null, false); } @Override @@ -121,12 +126,12 @@ public File createQrcode(String path, String filePath) throws WxErrorException { } @Override - public File createWxaCode(String path, int width, String filePath, boolean autoColor, WxMaCodeLineColor lineColor, - boolean isHyaline) - throws WxErrorException { + public File createWxaCode(String path, String envVersion, int width, String filePath, boolean autoColor, + WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp(), filePath), GET_WXACODE_URL, WxaCode.builder() .path(path) + .envVersion(StringUtils.defaultIfEmpty(envVersion, DEFAULT_ENV_VERSION)) .width(width) .autoColor(autoColor) .lineColor(lineColor) @@ -136,7 +141,7 @@ public File createWxaCode(String path, int width, String filePath, boolean autoC @Override public File createWxaCode(String path, int width, String filePath) throws WxErrorException { - return this.createWxaCode(path, width, filePath, true, null, false); + return this.createWxaCode(path, null, width, filePath, true, null, false); } @Override @@ -145,15 +150,16 @@ public File createWxaCode(String path, String filePath) throws WxErrorException } @Override - public File createWxaCodeUnlimit(String scene, String page, String filePath, boolean checkPath, String envVersion, int width, boolean autoColor, - WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { + public File createWxaCodeUnlimit(String scene, String page, String filePath, boolean checkPath, String envVersion, + int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) + throws WxErrorException { return this.service.execute(QrcodeRequestExecutor.create(this.service.getRequestHttp(), filePath), GET_WXACODE_UNLIMIT_URL, this.buildWxaCodeUnlimit(scene, page, checkPath, envVersion, width, autoColor, lineColor, isHyaline)); } @Override public File createWxaCodeUnlimit(String scene, String page, String filePath) throws WxErrorException { - return this.createWxaCodeUnlimit(scene, page, filePath, true, "release", 430, true, null, false); + return this.createWxaCodeUnlimit(scene, page, filePath, true, DEFAULT_ENV_VERSION, 430, true, null, false); } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java index 2361355adf..2711ccb242 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java @@ -10,6 +10,8 @@ import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; +import static cn.binarywang.wx.miniapp.constant.WxMaConstants.DEFAULT_ENV_VERSION; + /** * 小程序码. * @@ -26,6 +28,9 @@ public class WxaCode extends AbstractWxMaQrcodeWrapper implements Serializable { private String path; + @SerializedName("env_version") + private String envVersion = DEFAULT_ENV_VERSION; + @Builder.Default private int width = 430; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java index 32e713ad84..351ee5c9e2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java @@ -7,6 +7,8 @@ import java.io.Serializable; +import static cn.binarywang.wx.miniapp.constant.WxMaConstants.DEFAULT_ENV_VERSION; + /** * 小程序码接口B. * @@ -24,7 +26,7 @@ public class WxaCodeUnlimit extends AbstractWxMaQrcodeWrapper implements Seriali private boolean checkPath = true; @SerializedName("env_version") - private String envVersion = "release"; + private String envVersion = DEFAULT_ENV_VERSION; private int width = 430; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java index 8ac322aa5f..646d909fca 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java @@ -11,6 +11,11 @@ public abstract class WxMaConstants { private WxMaConstants() { } + /** + * 默认的env_version值 + */ + public static final String DEFAULT_ENV_VERSION = "release"; + /** * 微信接口返回的参数errcode. */ diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java index 25988f5fd5..d45651ba2a 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaQrcodeServiceImplTest.java @@ -1,13 +1,13 @@ package cn.binarywang.wx.miniapp.api.impl; -import java.io.File; - -import org.testng.annotations.*; - import cn.binarywang.wx.miniapp.api.WxMaService; import cn.binarywang.wx.miniapp.test.ApiTestModule; import com.google.inject.Inject; import me.chanjar.weixin.common.error.WxErrorException; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.io.File; import static org.assertj.core.api.Assertions.assertThat; @@ -46,7 +46,7 @@ public void testCreateQrcodeBytes() throws WxErrorException { @Test public void testCreateWxaCodeBytes() throws WxErrorException { - final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeBytes("111", 122, true, null, false); + final byte[] wxCode = this.wxService.getQrcodeService().createWxaCodeBytes("111", null, 122, true, null, false); assertThat(wxCode).isNotNull(); } @@ -70,7 +70,7 @@ public void testCreateWxaCodeByFile() throws WxErrorException { @Test public void testCreateQrcodeUnlimitByFile() throws WxErrorException { - final File wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimit("111",null,"/opt/logs"); + final File wxCode = this.wxService.getQrcodeService().createWxaCodeUnlimit("111", null, "/opt/logs"); assertThat(wxCode).isNotNull(); } } From 400fbc926a2d01ddfe7cbd445f54222e62e7b714 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 1 Mar 2022 16:36:54 +0800 Subject: [PATCH 143/622] =?UTF-8?q?:art:=20=E4=B8=A4=E4=B8=AA=E6=B0=B8?= =?UTF-8?q?=E4=B9=85=E5=9B=BE=E6=96=87=E7=B4=A0=E6=9D=90=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B7=B2=E4=B8=8B=E7=BA=BF=EF=BC=8C=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E4=B8=BA=E8=BF=87=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/mp/api/WxMpMaterialService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMaterialService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMaterialService.java index afccd004e0..1f7e8d3a2e 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMaterialService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMaterialService.java @@ -165,7 +165,9 @@ public interface WxMpMaterialService { * @param news 上传的图文消息, 请看{@link WxMpMaterialNews} * @return the wx mp material upload result * @throws WxErrorException the wx error exception + * @deprecated 关于永久图文素材相关接口下线的公告: https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&announce_id=11644831863qFQSh&version=&token=2085564289&lang=zh_CN */ + @Deprecated WxMpMaterialUploadResult materialNewsUpload(WxMpMaterialNews news) throws WxErrorException; /** @@ -221,7 +223,9 @@ public interface WxMpMaterialService { * @param wxMpMaterialArticleUpdate 用来更新图文素材的bean, 请看{@link WxMpMaterialArticleUpdate} * @return the boolean * @throws WxErrorException the wx error exception + * @deprecated 关于永久图文素材相关接口下线的公告: https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&announce_id=11644831863qFQSh&version=&token=2085564289&lang=zh_CN */ + @Deprecated boolean materialNewsUpdate(WxMpMaterialArticleUpdate wxMpMaterialArticleUpdate) throws WxErrorException; /** From e8596bceffa1e5bf0ae70f78f276f83e52e3af67 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 3 Mar 2022 23:17:54 +0800 Subject: [PATCH 144/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/error/WxOpenErrorMsgEnum.java | 18361 ++++++++-------- .../weixin/common/util/json/GsonParser.java | 1 - 2 files changed, 9180 insertions(+), 9182 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java index 3ab1e961d8..edcc0a28d8 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxOpenErrorMsgEnum.java @@ -16,9188 +16,9187 @@ @Getter public enum WxOpenErrorMsgEnum { - /** - * 系统繁忙,此时请开发者稍候再试 system error - */ - CODE_1(-1, "系统繁忙,此时请开发者稍候再试"), - - /** - * 请求成功 ok - */ - CODE_0(0, "请求成功"), - - /** - * POST参数非法 - */ - CODE_1003(1003, "POST参数非法"), - - /** - * 商品id不存在 - */ - CODE_20002(20002, "商品id不存在"), - - /** - * 获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口 invalid credential, access_token is invalid or not latest - */ - CODE_40001(40001, "获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口"), - - /** - * 不合法的凭证类型 invalid grant_type - */ - CODE_40002(40002, "不合法的凭证类型"), - - /** - * 不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID invalid openid - */ - CODE_40003(40003, "不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID"), - - /** - * 不合法的媒体文件类型 invalid media type - */ - CODE_40004(40004, "不合法的媒体文件类型"), - - /** - * 上传素材文件格式不对 invalid file type - */ - CODE_40005(40005, "上传素材文件格式不对"), - - /** - * 上传素材文件大小超出限制 invalid meida size - */ - CODE_40006(40006, "上传素材文件大小超出限制"), - - /** - * 不合法的媒体文件 id invalid media_id - */ - CODE_40007(40007, "不合法的媒体文件 id"), - - /** - * 不合法的消息类型 invalid message type - */ - CODE_40008(40008, "不合法的消息类型"), - - /** - * 图片尺寸太大 invalid image size - */ - CODE_40009(40009, "图片尺寸太大"), - - /** - * 不合法的语音文件大小 invalid voice size - */ - CODE_40010(40010, "不合法的语音文件大小"), - - /** - * 不合法的视频文件大小 invalid video size - */ - CODE_40011(40011, "不合法的视频文件大小"), - - /** - * 不合法的缩略图文件大小 invalid thumb size - */ - CODE_40012(40012, "不合法的缩略图文件大小"), - - /** - * 不合法的appid invalid appid - */ - CODE_40013(40013, "不合法的appid"), - - /** - * 不合法的 access_token ,请开发者认真比对 access_token 的有效性(如是否过期),或查看是否正在为恰当的公众号调用接口 invalid access_token - */ - CODE_40014(40014, "不合法的 access_token ,请开发者认真比对 access_token 的有效性(如是否过期),或查看是否正在为恰当的公众号调用接口"), - - /** - * 不合法的菜单类型 invalid menu type - */ - CODE_40015(40015, "不合法的菜单类型"), - - /** - * 不合法的按钮个数 invalid button size - */ - CODE_40016(40016, "不合法的按钮个数"), - - /** - * 不合法的按钮类型 invalid button type - */ - CODE_40017(40017, "不合法的按钮类型"), - - /** - * 不合法的按钮名字长度 invalid button name size - */ - CODE_40018(40018, "不合法的按钮名字长度"), - - /** - * 不合法的按钮 KEY 长度 invalid button key size - */ - CODE_40019(40019, "不合法的按钮 KEY 长度"), - - /** - * 不合法的按钮 URL 长度 invalid button url size - */ - CODE_40020(40020, "不合法的按钮 URL 长度"), - - /** - * 不合法的菜单版本号 invalid menu version - */ - CODE_40021(40021, "不合法的菜单版本号"), - - /** - * 不合法的子菜单级数 invalid sub_menu level - */ - CODE_40022(40022, "不合法的子菜单级数"), - - /** - * 不合法的子菜单按钮个数 invalid sub button size - */ - CODE_40023(40023, "不合法的子菜单按钮个数"), - - /** - * 不合法的子菜单按钮类型 invalid sub button type - */ - CODE_40024(40024, "不合法的子菜单按钮类型"), - - /** - * 不合法的子菜单按钮名字长度 invalid sub button name size - */ - CODE_40025(40025, "不合法的子菜单按钮名字长度"), - - /** - * 不合法的子菜单按钮 KEY 长度 invalid sub button key size - */ - CODE_40026(40026, "不合法的子菜单按钮 KEY 长度"), - - /** - * 不合法的子菜单按钮 URL 长度 invalid sub button url size - */ - CODE_40027(40027, "不合法的子菜单按钮 URL 长度"), - - /** - * 不合法的自定义菜单使用用户 invalid menu api user - */ - CODE_40028(40028, "不合法的自定义菜单使用用户"), - - /** - * 无效的 oauth_code invalid code - */ - CODE_40029(40029, "无效的 oauth_code"), - - /** - * 不合法的 refresh_token invalid refresh_token - */ - CODE_40030(40030, "不合法的 refresh_token"), - - /** - * 不合法的 openid 列表 invalid openid list - */ - CODE_40031(40031, "不合法的 openid 列表"), - - /** - * 不合法的 openid 列表长度 invalid openid list size - */ - CODE_40032(40032, "不合法的 openid 列表长度"), - - /** - * 不合法的请求字符,不能包含 \\uxxxx 格式的字符 invalid charset. please check your request, if include \\uxxxx will create fail! - */ - CODE_40033(40033, "不合法的请求字符,不能包含 \\uxxxx 格式的字符"), - - /** - * invalid template size - */ - CODE_40034(40034, "invalid template size"), - - /** - * 不合法的参数 invalid args size - */ - CODE_40035(40035, "不合法的参数"), - - /** - * 不合法的 template_id 长度 invalid template_id size - */ - CODE_40036(40036, "不合法的 template_id 长度"), - - /** - * 不合法的 template_id invalid template_id - */ - CODE_40037(40037, "不合法的 template_id"), - - /** - * 不合法的请求格式 invalid packaging type - */ - CODE_40038(40038, "不合法的请求格式"), - - /** - * 不合法的 URL 长度 invalid url size - */ - CODE_40039(40039, "不合法的 URL 长度"), - - /** - * invalid plugin token - */ - CODE_40040(40040, "invalid plugin token"), - - /** - * invalid plugin id - */ - CODE_40041(40041, "invalid plugin id"), - - /** - * invalid plugin session - */ - CODE_40042(40042, "invalid plugin session"), - - /** - * invalid fav type - */ - CODE_40043(40043, "invalid fav type"), - - /** - * invalid size in link.title - */ - CODE_40044(40044, "invalid size in link.title"), - - /** - * invalid size in link.description - */ - CODE_40045(40045, "invalid size in link.description"), - - /** - * invalid size in link.iconurl - */ - CODE_40046(40046, "invalid size in link.iconurl"), - - /** - * invalid size in link.url - */ - CODE_40047(40047, "invalid size in link.url"), - - /** - * 无效的url invalid url domain - */ - CODE_40048(40048, "无效的url"), - - /** - * invalid score report type - */ - CODE_40049(40049, "invalid score report type"), - - /** - * 不合法的分组 id invalid timeline type - */ - CODE_40050(40050, "不合法的分组 id"), - - /** - * 分组名字不合法 invalid group name - */ - CODE_40051(40051, "分组名字不合法"), - - /** - * invalid action name - */ - CODE_40052(40052, "invalid action name"), - - /** - * invalid action info, please check document - */ - CODE_40053(40053, "invalid action info, please check document"), - - /** - * 不合法的子菜单按钮 url 域名 invalid sub button url domain - */ - CODE_40054(40054, "不合法的子菜单按钮 url 域名"), - - /** - * 不合法的菜单按钮 url 域名 invalid button url domain - */ - CODE_40055(40055, "不合法的菜单按钮 url 域名"), - - /** - * invalid serial code - */ - CODE_40056(40056, "invalid serial code"), - - /** - * invalid tabbar size - */ - CODE_40057(40057, "invalid tabbar size"), - - /** - * invalid tabbar name size - */ - CODE_40058(40058, "invalid tabbar name size"), - - /** - * invalid msg id - */ - CODE_40059(40059, "invalid msg id"), - - /** - * 删除单篇图文时,指定的 article_idx 不合法 invalid article idx - */ - CODE_40060(40060, "删除单篇图文时,指定的 article_idx 不合法"), - - /** - * invalid title size - */ - CODE_40062(40062, "invalid title size"), - - /** - * invalid message_ext size - */ - CODE_40063(40063, "invalid message_ext size"), - - /** - * invalid app type - */ - CODE_40064(40064, "invalid app type"), - - /** - * invalid msg status - */ - CODE_40065(40065, "invalid msg status"), - - /** - * 不合法的 url ,递交的页面被sitemap标记为拦截 invalid url - */ - CODE_40066(40066, "不合法的 url ,递交的页面被sitemap标记为拦截"), - - /** - * invalid tvid - */ - CODE_40067(40067, "invalid tvid"), - - /** - * contain mailcious url - */ - CODE_40068(40068, "contain mailcious url"), - - /** - * invalid hardware type - */ - CODE_40069(40069, "invalid hardware type"), - - /** - * invalid sku info - */ - CODE_40070(40070, "invalid sku info"), - - /** - * invalid card type - */ - CODE_40071(40071, "invalid card type"), - - /** - * invalid location id - */ - CODE_40072(40072, "invalid location id"), - - /** - * invalid card id - */ - CODE_40073(40073, "invalid card id"), - - /** - * invalid pay template id - */ - CODE_40074(40074, "invalid pay template id"), - - /** - * invalid encrypt code - */ - CODE_40075(40075, "invalid encrypt code"), - - /** - * invalid color id - */ - CODE_40076(40076, "invalid color id"), - - /** - * invalid score type - */ - CODE_40077(40077, "invalid score type"), - - /** - * invalid card status - */ - CODE_40078(40078, "invalid card status"), - - /** - * invalid time - */ - CODE_40079(40079, "invalid time"), - - /** - * invalid card ext - */ - CODE_40080(40080, "invalid card ext"), - - /** - * invalid template_id - */ - CODE_40081(40081, "invalid template_id"), - - /** - * invalid banner picture size - */ - CODE_40082(40082, "invalid banner picture size"), - - /** - * invalid banner url size - */ - CODE_40083(40083, "invalid banner url size"), - - /** - * invalid button desc size - */ - CODE_40084(40084, "invalid button desc size"), - - /** - * invalid button url size - */ - CODE_40085(40085, "invalid button url size"), - - /** - * invalid sharelink logo size - */ - CODE_40086(40086, "invalid sharelink logo size"), - - /** - * invalid sharelink desc size - */ - CODE_40087(40087, "invalid sharelink desc size"), - - /** - * invalid sharelink title size - */ - CODE_40088(40088, "invalid sharelink title size"), - - /** - * invalid platform id - */ - CODE_40089(40089, "invalid platform id"), - - /** - * invalid request source (bad client ip) - */ - CODE_40090(40090, "invalid request source (bad client ip)"), - - /** - * invalid component ticket - */ - CODE_40091(40091, "invalid component ticket"), - - /** - * invalid remark name - */ - CODE_40092(40092, "invalid remark name"), - - /** - * not completely ok, err_item will return location_id=-1,check your required_fields in json. - */ - CODE_40093(40093, "not completely ok, err_item will return location_id=-1,check your required_fields in json."), - - /** - * invalid component credential - */ - CODE_40094(40094, "invalid component credential"), - - /** - * bad source of caller - */ - CODE_40095(40095, "bad source of caller"), - - /** - * invalid biztype - */ - CODE_40096(40096, "invalid biztype"), - - /** - * 参数错误 invalid args - */ - CODE_40097(40097, "参数错误"), - - /** - * invalid poiid - */ - CODE_40098(40098, "invalid poiid"), - - /** - * invalid code, this code has consumed. - */ - CODE_40099(40099, "invalid code, this code has consumed."), - - /** - * invalid DateInfo, Make Sure OldDateInfoType==NewDateInfoType && NewBeginTime<=OldBeginTime && OldEndTime<= NewEndTime - */ - CODE_40100(40100, "invalid DateInfo, Make Sure OldDateInfoType==NewDateInfoType && NewBeginTime<=OldBeginTime && OldEndTime<= NewEndTime"), - - /** - * missing parameter - */ - CODE_40101(40101, "missing parameter"), - - /** - * invalid industry id - */ - CODE_40102(40102, "invalid industry id"), - - /** - * invalid industry index - */ - CODE_40103(40103, "invalid industry index"), - - /** - * invalid category id - */ - CODE_40104(40104, "invalid category id"), - - /** - * invalid view type - */ - CODE_40105(40105, "invalid view type"), - - /** - * invalid user name - */ - CODE_40106(40106, "invalid user name"), - - /** - * invalid card id! 1,card status must verify ok; 2,this card must have location_id - */ - CODE_40107(40107, "invalid card id! 1,card status must verify ok; 2,this card must have location_id"), - - /** - * invalid client version - */ - CODE_40108(40108, "invalid client version"), - - /** - * too many code size, must <= 100 - */ - CODE_40109(40109, "too many code size, must <= 100"), - - /** - * have empty code - */ - CODE_40110(40110, "have empty code"), - - /** - * have same code - */ - CODE_40111(40111, "have same code"), - - /** - * can not set bind openid - */ - CODE_40112(40112, "can not set bind openid"), - - /** - * unsupported file type - */ - CODE_40113(40113, "unsupported file type"), - - /** - * invalid index value - */ - CODE_40114(40114, "invalid index value"), - - /** - * invalid session from - */ - CODE_40115(40115, "invalid session from"), - - /** - * invalid code - */ - CODE_40116(40116, "invalid code"), - - /** - * 分组名字不合法 invalid button media_id size - */ - CODE_40117(40117, "分组名字不合法"), - - /** - * media_id 大小不合法 invalid sub button media_id size - */ - CODE_40118(40118, "media_id 大小不合法"), - - /** - * button 类型错误 invalid use button type - */ - CODE_40119(40119, "button 类型错误"), - - /** - * 子 button 类型错误 invalid use sub button type - */ - CODE_40120(40120, "子 button 类型错误"), - - /** - * 不合法的 media_id 类型 invalid media type in view_limited - */ - CODE_40121(40121, "不合法的 media_id 类型"), - - /** - * invalid card quantity - */ - CODE_40122(40122, "invalid card quantity"), - - /** - * invalid task_id - */ - CODE_40123(40123, "invalid task_id"), - - /** - * too many custom field! - */ - CODE_40124(40124, "too many custom field!"), - - /** - * 不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写 invalid appsecret - */ - CODE_40125(40125, "不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写"), - - /** - * invalid text size - */ - CODE_40126(40126, "invalid text size"), - - /** - * invalid user-card status! Hint: the card was given to user, but may be deleted or expired or set unavailable ! - */ - CODE_40127(40127, "invalid user-card status! Hint: the card was given to user, but may be deleted or expired or set unavailable !"), - - /** - * invalid media id! must be uploaded by api(cgi-bin/material/add_material) - */ - CODE_40128(40128, "invalid media id! must be uploaded by api(cgi-bin/material/add_material)"), - - /** - * invalid scene - */ - CODE_40129(40129, "invalid scene"), - - /** - * invalid openid list size, at least two openid - */ - CODE_40130(40130, "invalid openid list size, at least two openid"), - - /** - * out of limit of ticket - */ - CODE_40131(40131, "out of limit of ticket"), - - /** - * 微信号不合法 invalid username - */ - CODE_40132(40132, "微信号不合法"), - - /** - * invalid encryt data - */ - CODE_40133(40133, "invalid encryt data"), - - /** - * invalid not supply bonus, can not change card_id which supply bonus to be not supply - */ - CODE_40135(40135, "invalid not supply bonus, can not change card_id which supply bonus to be not supply"), - - /** - * invalid use DepositCodeMode, make sure sku.quantity>DepositCode.quantity - */ - CODE_40136(40136, "invalid use DepositCodeMode, make sure sku.quantity>DepositCode.quantity"), - - /** - * 不支持的图片格式 invalid image format - */ - CODE_40137(40137, "不支持的图片格式"), - - /** - * emphasis word can not be first neither remark - */ - CODE_40138(40138, "emphasis word can not be first neither remark"), - - /** - * invalid sub merchant id - */ - CODE_40139(40139, "invalid sub merchant id"), - - /** - * invalid sub merchant status - */ - CODE_40140(40140, "invalid sub merchant status"), - - /** - * invalid image url - */ - CODE_40141(40141, "invalid image url"), - - /** - * invalid sharecard parameters - */ - CODE_40142(40142, "invalid sharecard parameters"), - - /** - * invalid least cost info, should be 0 - */ - CODE_40143(40143, "invalid least cost info, should be 0"), - - /** - * 1)maybe share_card_list.num or consume_share_self_num too big; 2)maybe card_id_list also has self-card_id;3)maybe card_id_list has many different card_id;4)maybe both consume_share_self_num and share_card_list.num bigger than 0 - */ - CODE_40144(40144, "1)maybe share_card_list.num or consume_share_self_num too big; 2)maybe card_id_list also has self-card_id;3)maybe card_id_list has many different card_id;4)maybe both consume_share_self_num and share_card_list.num bigger than 0"), - - /** - * invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url). - */ - CODE_40145(40145, "invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url)."), - - /** - * invalid openid! card may be marked by other user! - */ - CODE_40146(40146, "invalid openid! card may be marked by other user!"), - - /** - * invalid consume! Consume time overranging restricts. - */ - CODE_40147(40147, "invalid consume! Consume time overranging restricts."), - - /** - * invalid friends card type - */ - CODE_40148(40148, "invalid friends card type"), - - /** - * invalid use time limit - */ - CODE_40149(40149, "invalid use time limit"), - - /** - * invalid card parameters - */ - CODE_40150(40150, "invalid card parameters"), - - /** - * invalid card info, text/pic hit antispam - */ - CODE_40151(40151, "invalid card info, text/pic hit antispam"), - - /** - * invalid group id - */ - CODE_40152(40152, "invalid group id"), - - /** - * self consume cell for friends card must need verify code - */ - CODE_40153(40153, "self consume cell for friends card must need verify code"), - - /** - * invalid voip parameters - */ - CODE_40154(40154, "invalid voip parameters"), - - /** - * 请勿添加其他公众号的主页链接 please don't contain other home page url - */ - CODE_40155(40155, "请勿添加其他公众号的主页链接"), - - /** - * invalid face recognize parameters - */ - CODE_40156(40156, "invalid face recognize parameters"), - - /** - * invalid picture, has no face - */ - CODE_40157(40157, "invalid picture, has no face"), - - /** - * invalid use_custom_code, need be false - */ - CODE_40158(40158, "invalid use_custom_code, need be false"), - - /** - * invalid length for path, or the data is not json string - */ - CODE_40159(40159, "invalid length for path, or the data is not json string"), - - /** - * invalid image file - */ - CODE_40160(40160, "invalid image file"), - - /** - * image file not match - */ - CODE_40161(40161, "image file not match"), - - /** - * invalid lifespan - */ - CODE_40162(40162, "invalid lifespan"), - - /** - * oauth_code已使用 code been used - */ - CODE_40163(40163, "oauth_code已使用"), - - /** - * invalid ip, not in whitelist - */ - CODE_40164(40164, "invalid ip, not in whitelist"), - - /** - * invalid weapp pagepath - */ - CODE_40165(40165, "invalid weapp pagepath"), - - /** - * invalid weapp appid - */ - CODE_40166(40166, "invalid weapp appid"), - - /** - * there is no relation with plugin appid - */ - CODE_40167(40167, "there is no relation with plugin appid"), - - /** - * unlinked weapp card - */ - CODE_40168(40168, "unlinked weapp card"), - - /** - * invalid length for scene, or the data is not json string - */ - CODE_40169(40169, "invalid length for scene, or the data is not json string"), - - /** - * args count exceed count limit - */ - CODE_40170(40170, "args count exceed count limit"), - - /** - * product id can not empty and the length cannot exceed 32 - */ - CODE_40171(40171, "product id can not empty and the length cannot exceed 32"), - - /** - * can not have same product id - */ - CODE_40172(40172, "can not have same product id"), - - /** - * there is no bind relation - */ - CODE_40173(40173, "there is no bind relation"), - - /** - * not card user - */ - CODE_40174(40174, "not card user"), - - /** - * invalid material id - */ - CODE_40175(40175, "invalid material id"), - - /** - * invalid template id - */ - CODE_40176(40176, "invalid template id"), - - /** - * invalid product id - */ - CODE_40177(40177, "invalid product id"), - - /** - * invalid sign - */ - CODE_40178(40178, "invalid sign"), - - /** - * Function is adjusted, rules are not allowed to add or update - */ - CODE_40179(40179, "Function is adjusted, rules are not allowed to add or update"), - - /** - * invalid client tmp token - */ - CODE_40180(40180, "invalid client tmp token"), - - /** - * invalid opengid - */ - CODE_40181(40181, "invalid opengid"), - - /** - * invalid pack_id - */ - CODE_40182(40182, "invalid pack_id"), - - /** - * invalid product_appid, product_appid should bind with wxa_appid - */ - CODE_40183(40183, "invalid product_appid, product_appid should bind with wxa_appid"), - - /** - * invalid url path - */ - CODE_40184(40184, "invalid url path"), - - /** - * invalid auth_token, or auth_token is expired - */ - CODE_40185(40185, "invalid auth_token, or auth_token is expired"), - - /** - * invalid delegate - */ - CODE_40186(40186, "invalid delegate"), - - /** - * invalid ip - */ - CODE_40187(40187, "invalid ip"), - - /** - * invalid scope - */ - CODE_40188(40188, "invalid scope"), - - /** - * invalid width - */ - CODE_40189(40189, "invalid width"), - - /** - * invalid delegate time - */ - CODE_40190(40190, "invalid delegate time"), - - /** - * invalid pic_url - */ - CODE_40191(40191, "invalid pic_url"), - - /** - * invalid author in news - */ - CODE_40192(40192, "invalid author in news"), - - /** - * invalid recommend length - */ - CODE_40193(40193, "invalid recommend length"), - - /** - * illegal recommend - */ - CODE_40194(40194, "illegal recommend"), - - /** - * invalid show_num - */ - CODE_40195(40195, "invalid show_num"), - - /** - * invalid smartmsg media_id - */ - CODE_40196(40196, "invalid smartmsg media_id"), - - /** - * invalid smartmsg media num - */ - CODE_40197(40197, "invalid smartmsg media num"), - - /** - * invalid default msg article size, must be same as show_num - */ - CODE_40198(40198, "invalid default msg article size, must be same as show_num"), - - /** - * 运单 ID 不存在,未查到运单 waybill_id not found - */ - CODE_40199(40199, "运单 ID 不存在,未查到运单"), - - /** - * invalid account type - */ - CODE_40200(40200, "invalid account type"), - - /** - * invalid check url - */ - CODE_40201(40201, "invalid check url"), - - /** - * invalid check action - */ - CODE_40202(40202, "invalid check action"), - - /** - * invalid check operator - */ - CODE_40203(40203, "invalid check operator"), - - /** - * can not delete wash or rumor article - */ - CODE_40204(40204, "can not delete wash or rumor article"), - - /** - * invalid check keywords string - */ - CODE_40205(40205, "invalid check keywords string"), - - /** - * invalid check begin stamp - */ - CODE_40206(40206, "invalid check begin stamp"), - - /** - * invalid check alive seconds - */ - CODE_40207(40207, "invalid check alive seconds"), - - /** - * invalid check notify id - */ - CODE_40208(40208, "invalid check notify id"), - - /** - * invalid check notify msg - */ - CODE_40209(40209, "invalid check notify msg"), - - /** - * pages 中的path参数不存在或为空 invalid check wxa path - */ - CODE_40210(40210, "pages 中的path参数不存在或为空"), - - /** - * invalid scope_data - */ - CODE_40211(40211, "invalid scope_data"), - - /** - * paegs 当中存在不合法的query,query格式遵循URL标准,即k1=v1&k2=v2 invalid query - */ - CODE_40212(40212, "paegs 当中存在不合法的query,query格式遵循URL标准,即k1=v1&k2=v2"), - - /** - * invalid href tag - */ - CODE_40213(40213, "invalid href tag"), - - /** - * invalid href text - */ - CODE_40214(40214, "invalid href text"), - - /** - * invalid image count - */ - CODE_40215(40215, "invalid image count"), - - /** - * invalid desc - */ - CODE_40216(40216, "invalid desc"), - - /** - * invalid video count - */ - CODE_40217(40217, "invalid video count"), - - /** - * invalid video id - */ - CODE_40218(40218, "invalid video id"), - - /** - * pages不存在或者参数为空 pages is empty - */ - CODE_40219(40219, "pages不存在或者参数为空"), - - /** - * data_list is empty - */ - CODE_40220(40220, "data_list is empty"), - - /** - * invalid Content-Encoding - */ - CODE_40221(40221, "invalid Content-Encoding"), - - /** - * invalid request idc domain - */ - CODE_40222(40222, "invalid request idc domain"), - - /** - * 缺少 access_token 参数 access_token missing - */ - CODE_41001(41001, "缺少 access_token 参数"), - - /** - * 缺少 appid 参数 appid missing - */ - CODE_41002(41002, "缺少 appid 参数"), - - /** - * 缺少 refresh_token 参数 refresh_token missing - */ - CODE_41003(41003, "缺少 refresh_token 参数"), - - /** - * 缺少 secret 参数 appsecret missing - */ - CODE_41004(41004, "缺少 secret 参数"), - - /** - * 缺少多媒体文件数据,传输素材无视频或图片内容 media data missing - */ - CODE_41005(41005, "缺少多媒体文件数据,传输素材无视频或图片内容"), - - /** - * 缺少 media_id 参数 media_id missing - */ - CODE_41006(41006, "缺少 media_id 参数"), - - /** - * 缺少子菜单数据 sub_menu data missing - */ - CODE_41007(41007, "缺少子菜单数据"), - - /** - * 缺少 oauth code missing code - */ - CODE_41008(41008, "缺少 oauth code"), - - /** - * 缺少 openid missing openid - */ - CODE_41009(41009, "缺少 openid"), - - /** - * 缺失 url 参数 missing url - */ - CODE_41010(41010, "缺失 url 参数"), - - /** - * missing required fields! please check document and request json! - */ - CODE_41011(41011, "missing required fields! please check document and request json!"), - - /** - * missing card id - */ - CODE_41012(41012, "missing card id"), - - /** - * missing code - */ - CODE_41013(41013, "missing code"), - - /** - * missing ticket_class - */ - CODE_41014(41014, "missing ticket_class"), - - /** - * missing show_time - */ - CODE_41015(41015, "missing show_time"), - - /** - * missing screening_room - */ - CODE_41016(41016, "missing screening_room"), - - /** - * missing seat_number - */ - CODE_41017(41017, "missing seat_number"), - - /** - * missing component_appid - */ - CODE_41018(41018, "missing component_appid"), - - /** - * missing platform_secret - */ - CODE_41019(41019, "missing platform_secret"), - - /** - * missing platform_ticket - */ - CODE_41020(41020, "missing platform_ticket"), - - /** - * missing component_access_token - */ - CODE_41021(41021, "missing component_access_token"), - - /** - * missing "display" field - */ - CODE_41024(41024, "missing \"display\" field"), - - /** - * poi_list empty - */ - CODE_41025(41025, "poi_list empty"), - - /** - * missing image list info, text maybe empty - */ - CODE_41026(41026, "missing image list info, text maybe empty"), - - /** - * missing voip call key - */ - CODE_41027(41027, "missing voip call key"), - - /** - * invalid form id - */ - CODE_41028(41028, "invalid form id"), - - /** - * form id used count reach limit - */ - CODE_41029(41029, "form id used count reach limit"), - - /** - * page路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致 invalid page - */ - CODE_41030(41030, "page路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致"), - - /** - * the form id have been blocked! - */ - CODE_41031(41031, "the form id have been blocked!"), - - /** - * not allow to send message with submitted form id, for punishment - */ - CODE_41032(41032, "not allow to send message with submitted form id, for punishment"), - - /** - * 只允许通过api创建的小程序使用 invaid register type - */ - CODE_41033(41033, "只允许通过api创建的小程序使用"), - - /** - * not allow to send message with submitted form id, for punishment - */ - CODE_41034(41034, "not allow to send message with submitted form id, for punishment"), - - /** - * not allow to send message with prepay id, for punishment - */ - CODE_41035(41035, "not allow to send message with prepay id, for punishment"), - - /** - * appid ad cid - */ - CODE_41036(41036, "appid ad cid"), - - /** - * appid ad_mch_appid - */ - CODE_41037(41037, "appid ad_mch_appid"), - - /** - * appid pos_type - */ - CODE_41038(41038, "appid pos_type"), - - /** - * access_token 超时,请检查 access_token 的有效期,请参考基础支持 - 获取 access_token 中,对 access_token 的详细机制说明 access_token expired - */ - CODE_42001(42001, "access_token 超时,请检查 access_token 的有效期,请参考基础支持 - 获取 access_token 中,对 access_token 的详细机制说明"), - - /** - * refresh_token 超时 refresh_token expired - */ - CODE_42002(42002, "refresh_token 超时"), - - /** - * oauth_code 超时 code expired - */ - CODE_42003(42003, "oauth_code 超时"), - - /** - * plugin token expired - */ - CODE_42004(42004, "plugin token expired"), - - /** - * api usage expired - */ - CODE_42005(42005, "api usage expired"), - - /** - * component_access_token expired - */ - CODE_42006(42006, "component_access_token expired"), - - /** - * 用户修改微信密码, accesstoken 和 refreshtoken 失效,需要重新授权 access_token and refresh_token exception - */ - CODE_42007(42007, "用户修改微信密码, accesstoken 和 refreshtoken 失效,需要重新授权"), - - /** - * voip call key expired - */ - CODE_42008(42008, "voip call key expired"), - - /** - * client tmp token expired - */ - CODE_42009(42009, "client tmp token expired"), - - /** - * 需要 GET 请求 require GET method - */ - CODE_43001(43001, "需要 GET 请求"), - - /** - * 需要 POST 请求 require POST method - */ - CODE_43002(43002, "需要 POST 请求"), - - /** - * 需要 HTTPS 请求 require https - */ - CODE_43003(43003, "需要 HTTPS 请求"), - - /** - * 需要接收者关注 require subscribe - */ - CODE_43004(43004, "需要接收者关注"), - - /** - * 需要好友关系 require friend relations - */ - CODE_43005(43005, "需要好友关系"), - - /** - * require not block - */ - CODE_43006(43006, "require not block"), - - /** - * require bizuser authorize - */ - CODE_43007(43007, "require bizuser authorize"), - - /** - * require biz pay auth - */ - CODE_43008(43008, "require biz pay auth"), - - /** - * can not use custom code, need authorize - */ - CODE_43009(43009, "can not use custom code, need authorize"), - - /** - * can not use balance, need authorize - */ - CODE_43010(43010, "can not use balance, need authorize"), - - /** - * can not use bonus, need authorize - */ - CODE_43011(43011, "can not use bonus, need authorize"), - - /** - * can not use custom url, need authorize - */ - CODE_43012(43012, "can not use custom url, need authorize"), - - /** - * can not use shake card, need authorize - */ - CODE_43013(43013, "can not use shake card, need authorize"), - - /** - * require check agent - */ - CODE_43014(43014, "require check agent"), - - /** - * require authorize by wechat team to use this function! - */ - CODE_43015(43015, "require authorize by wechat team to use this function!"), - - /** - * 小程序未认证 require verify - */ - CODE_43016(43016, "小程序未认证"), - - /** - * require location id! - */ - CODE_43017(43017, "require location id!"), - - /** - * code has no been mark! - */ - CODE_43018(43018, "code has no been mark!"), - - /** - * 需要将接收者从黑名单中移除 require remove blacklist - */ - CODE_43019(43019, "需要将接收者从黑名单中移除"), - - /** - * change template too frequently - */ - CODE_43100(43100, "change template too frequently"), - - /** - * 用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系 user refuse to accept the msg - */ - CODE_43101(43101, "用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系"), - - /** - * the tempalte is not subscriptiontype - */ - CODE_43102(43102, "the tempalte is not subscriptiontype"), - - /** - * the api only can cancel the subscription - */ - CODE_43103(43103, "the api only can cancel the subscription"), - - /** - * this appid does not have permission - */ - CODE_43104(43104, "this appid does not have permission"), - - /** - * news has no binding relation with template_id - */ - CODE_43105(43105, "news has no binding relation with template_id"), - - /** - * not allow to add template, for punishment - */ - CODE_43106(43106, "not allow to add template, for punishment"), - - /** - * 多媒体文件为空 empty media data - */ - CODE_44001(44001, "多媒体文件为空"), - - /** - * POST 的数据包为空 empty post data - */ - CODE_44002(44002, "POST 的数据包为空"), - - /** - * 图文消息内容为空 empty news data - */ - CODE_44003(44003, "图文消息内容为空"), - - /** - * 文本消息内容为空 empty content - */ - CODE_44004(44004, "文本消息内容为空"), - - /** - * 空白的列表 empty list size - */ - CODE_44005(44005, "空白的列表"), - - /** - * empty file data - */ - CODE_44006(44006, "empty file data"), - - /** - * repeated msg id - */ - CODE_44007(44007, "repeated msg id"), - - /** - * image url size out of limit - */ - CODE_44997(44997, "image url size out of limit"), - - /** - * keyword string media size out of limit - */ - CODE_44998(44998, "keyword string media size out of limit"), - - /** - * keywords list size out of limit - */ - CODE_44999(44999, "keywords list size out of limit"), - - /** - * msg_id size out of limit - */ - CODE_45000(45000, "msg_id size out of limit"), - - /** - * 多媒体文件大小超过限制 media size out of limit - */ - CODE_45001(45001, "多媒体文件大小超过限制"), - - /** - * 消息内容超过限制 content size out of limit - */ - CODE_45002(45002, "消息内容超过限制"), - - /** - * 标题字段超过限制 title size out of limit - */ - CODE_45003(45003, "标题字段超过限制"), - - /** - * 描述字段超过限制 description size out of limit - */ - CODE_45004(45004, "描述字段超过限制"), - - /** - * 链接字段超过限制 url size out of limit - */ - CODE_45005(45005, "链接字段超过限制"), - - /** - * 图片链接字段超过限制 picurl size out of limit - */ - CODE_45006(45006, "图片链接字段超过限制"), - - /** - * 语音播放时间超过限制 playtime out of limit - */ - CODE_45007(45007, "语音播放时间超过限制"), - - /** - * 图文消息超过限制 article size out of limit - */ - CODE_45008(45008, "图文消息超过限制"), - - /** - * 接口调用超过限制 reach max api daily quota limit - */ - CODE_45009(45009, "接口调用超过限制"), - - /** - * 创建菜单个数超过限制 create menu limit - */ - CODE_45010(45010, "创建菜单个数超过限制"), - - /** - * API 调用太频繁,请稍候再试 api minute-quota reach limit, must slower, retry next minute - */ - CODE_45011(45011, "API 调用太频繁,请稍候再试"), - - /** - * 模板大小超过限制 template size out of limit - */ - CODE_45012(45012, "模板大小超过限制"), - - /** - * too many template args - */ - CODE_45013(45013, "too many template args"), - - /** - * template message size out of limit - */ - CODE_45014(45014, "template message size out of limit"), - - /** - * 回复时间超过限制 response out of time limit or subscription is canceled - */ - CODE_45015(45015, "回复时间超过限制"), - - /** - * 系统分组,不允许修改 can't modify sys group - */ - CODE_45016(45016, "系统分组,不允许修改"), - - /** - * 分组名字过长 can't set group name too long sys group - */ - CODE_45017(45017, "分组名字过长"), - - /** - * 分组数量超过上限 too many group now, no need to add new - */ - CODE_45018(45018, "分组数量超过上限"), - - /** - * too many openid, please input less - */ - CODE_45019(45019, "too many openid, please input less"), - - /** - * too many image, please input less - */ - CODE_45020(45020, "too many image, please input less"), - - /** - * some argument may be out of length limit! please check document and request json! - */ - CODE_45021(45021, "some argument may be out of length limit! please check document and request json!"), - - /** - * bonus is out of limit - */ - CODE_45022(45022, "bonus is out of limit"), - - /** - * balance is out of limit - */ - CODE_45023(45023, "balance is out of limit"), - - /** - * rank template number is out of limit - */ - CODE_45024(45024, "rank template number is out of limit"), - - /** - * poiid count is out of limit - */ - CODE_45025(45025, "poiid count is out of limit"), - - /** - * template num exceeds limit - */ - CODE_45026(45026, "template num exceeds limit"), - - /** - * template conflict with industry - */ - CODE_45027(45027, "template conflict with industry"), - - /** - * has no masssend quota - */ - CODE_45028(45028, "has no masssend quota"), - - /** - * qrcode count out of limit - */ - CODE_45029(45029, "qrcode count out of limit"), - - /** - * limit cardid, not support this function - */ - CODE_45030(45030, "limit cardid, not support this function"), - - /** - * stock is out of limit - */ - CODE_45031(45031, "stock is out of limit"), - - /** - * not inner ip for special acct in white-list - */ - CODE_45032(45032, "not inner ip for special acct in white-list"), - - /** - * user get card num is out of get_limit - */ - CODE_45033(45033, "user get card num is out of get_limit"), - - /** - * media file count is out of limit - */ - CODE_45034(45034, "media file count is out of limit"), - - /** - * access clientip is not registered, not in ip-white-list - */ - CODE_45035(45035, "access clientip is not registered, not in ip-white-list"), - - /** - * User receive announcement limit - */ - CODE_45036(45036, "User receive announcement limit"), - - /** - * user out of time limit or never talked in tempsession - */ - CODE_45037(45037, "user out of time limit or never talked in tempsession"), - - /** - * user subscribed, cannot use tempsession api - */ - CODE_45038(45038, "user subscribed, cannot use tempsession api"), - - /** - * card_list_size out of limit - */ - CODE_45039(45039, "card_list_size out of limit"), - - /** - * reach max monthly quota limit - */ - CODE_45040(45040, "reach max monthly quota limit"), - - /** - * this card reach total sku quantity limit! - */ - CODE_45041(45041, "this card reach total sku quantity limit!"), - - /** - * limit card type, this card type can NOT create by sub merchant - */ - CODE_45042(45042, "limit card type, this card type can NOT create by sub merchant"), - - /** - * can not set share_friends=true because has no Abstract Or Text_Img_List has no img Or image url not valid - */ - CODE_45043(45043, "can not set share_friends=true because has no Abstract Or Text_Img_List has no img Or image url not valid"), - - /** - * icon url size in abstract is out of limit - */ - CODE_45044(45044, "icon url size in abstract is out of limit"), - - /** - * unauthorized friends card, please contact administrator - */ - CODE_45045(45045, "unauthorized friends card, please contact administrator"), - - /** - * operate field conflict, CenterCell, PayCell, SelfConsumeCell conflict - */ - CODE_45046(45046, "operate field conflict, CenterCell, PayCell, SelfConsumeCell conflict"), - - /** - * 客服接口下行条数超过上限 out of response count limit - */ - CODE_45047(45047, "客服接口下行条数超过上限"), - - /** - * menu use invalid type - */ - CODE_45048(45048, "menu use invalid type"), - - /** - * ivr use invalid type - */ - CODE_45049(45049, "ivr use invalid type"), - - /** - * custom msg use invalid type - */ - CODE_45050(45050, "custom msg use invalid type"), - - /** - * template msg use invalid link - */ - CODE_45051(45051, "template msg use invalid link"), - - /** - * masssend msg use invalid type - */ - CODE_45052(45052, "masssend msg use invalid type"), - - /** - * exceed consume verify code size - */ - CODE_45053(45053, "exceed consume verify code size"), - - /** - * below consume verify code size - */ - CODE_45054(45054, "below consume verify code size"), - - /** - * the code is not in consume verify code charset - */ - CODE_45055(45055, "the code is not in consume verify code charset"), - - /** - * too many tag now, no need to add new - */ - CODE_45056(45056, "too many tag now, no need to add new"), - - /** - * can't delete the tag that has too many fans - */ - CODE_45057(45057, "can't delete the tag that has too many fans"), - - /** - * can't modify sys tag - */ - CODE_45058(45058, "can't modify sys tag"), - - /** - * can not tagging one user too much - */ - CODE_45059(45059, "can not tagging one user too much"), - - /** - * media is applied in ivr or menu, can not be deleted - */ - CODE_45060(45060, "media is applied in ivr or menu, can not be deleted"), - - /** - * maybe the update frequency is too often, please try again - */ - CODE_45061(45061, "maybe the update frequency is too often, please try again"), - - /** - * has agreement ad. please use mp.weixin.qq.com - */ - CODE_45062(45062, "has agreement ad. please use mp.weixin.qq.com"), - - /** - * accesstoken is not xiaochengxu - */ - CODE_45063(45063, "accesstoken is not xiaochengxu"), - - /** - * 创建菜单包含未关联的小程序 no permission to use weapp in menu - */ - CODE_45064(45064, "创建菜单包含未关联的小程序"), - - /** - * 相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid clientmsgid exist - */ - CODE_45065(45065, "相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid"), - - /** - * 相同 clientmsgid 重试速度过快,请间隔1分钟重试 same clientmsgid retry too fast - */ - CODE_45066(45066, "相同 clientmsgid 重试速度过快,请间隔1分钟重试"), - - /** - * clientmsgid 长度超过限制 clientmsgid size out of limit - */ - CODE_45067(45067, "clientmsgid 长度超过限制"), - - /** - * file size out of limit - */ - CODE_45068(45068, "file size out of limit"), - - /** - * product list size out of limit - */ - CODE_45069(45069, "product list size out of limit"), - - /** - * the business account have been created - */ - CODE_45070(45070, "the business account have been created"), - - /** - * business account not found - */ - CODE_45071(45071, "business account not found"), - - /** - * command字段取值不对 invalid command - */ - CODE_45072(45072, "command字段取值不对"), - - /** - * not inner vip for sns in white list - */ - CODE_45073(45073, "not inner vip for sns in white list"), - - /** - * material list size out of limit, you should delete the useless material - */ - CODE_45074(45074, "material list size out of limit, you should delete the useless material"), - - /** - * invalid keyword id - */ - CODE_45075(45075, "invalid keyword id"), - - /** - * invalid count - */ - CODE_45076(45076, "invalid count"), - - /** - * number of business account reach limit - */ - CODE_45077(45077, "number of business account reach limit"), - - /** - * nickname is illegal! - */ - CODE_45078(45078, "nickname is illegal!"), - - /** - * nickname is forbidden!(matched forbidden keyword) - */ - CODE_45079(45079, "nickname is forbidden!(matched forbidden keyword)"), - - /** - * 下发输入状态,需要之前30秒内跟用户有过消息交互 need sending message to user, or recving message from user in the last 30 seconds before typing - */ - CODE_45080(45080, "下发输入状态,需要之前30秒内跟用户有过消息交互"), - - /** - * 已经在输入状态,不可重复下发 you are already typing - */ - CODE_45081(45081, "已经在输入状态,不可重复下发"), - - /** - * need icp license for the url domain - */ - CODE_45082(45082, "need icp license for the url domain"), - - /** - * the speed out of range - */ - CODE_45083(45083, "the speed out of range"), - - /** - * No speed message - */ - CODE_45084(45084, "No speed message"), - - /** - * speed server err - */ - CODE_45085(45085, "speed server err"), - - /** - * invalid attrbute 'data-miniprogram-appid' - */ - CODE_45086(45086, "invalid attrbute 'data-miniprogram-appid'"), - - /** - * customer service message from this account have been blocked! - */ - CODE_45087(45087, "customer service message from this account have been blocked!"), - - /** - * action size out of limit - */ - CODE_45088(45088, "action size out of limit"), - - /** - * expired - */ - CODE_45089(45089, "expired"), - - /** - * invalid group msg ticket - */ - CODE_45090(45090, "invalid group msg ticket"), - - /** - * account_name is illegal! - */ - CODE_45091(45091, "account_name is illegal!"), - - /** - * no voice data - */ - CODE_45092(45092, "no voice data"), - - /** - * no quota to send msg - */ - CODE_45093(45093, "no quota to send msg"), - - /** - * not allow to send custom message when user enter session, for punishment - */ - CODE_45094(45094, "not allow to send custom message when user enter session, for punishment"), - - /** - * not allow to modify stock for the advertisement batch - */ - CODE_45095(45095, "not allow to modify stock for the advertisement batch"), - - /** - * invalid qrcode - */ - CODE_45096(45096, "invalid qrcode"), - - /** - * invalid qrcode prefix - */ - CODE_45097(45097, "invalid qrcode prefix"), - - /** - * msgmenu list size is out of limit - */ - CODE_45098(45098, "msgmenu list size is out of limit"), - - /** - * msgmenu item content size is out of limit - */ - CODE_45099(45099, "msgmenu item content size is out of limit"), - - /** - * invalid size of keyword_id_list - */ - CODE_45100(45100, "invalid size of keyword_id_list"), - - /** - * hit upload limit - */ - CODE_45101(45101, "hit upload limit"), - - /** - * this api have been blocked temporarily. - */ - CODE_45102(45102, "this api have been blocked temporarily."), - - /** - * This API has been unsupported - */ - CODE_45103(45103, "This API has been unsupported"), - - /** - * reach max domain quota limit - */ - CODE_45104(45104, "reach max domain quota limit"), - - /** - * the consume verify code not found - */ - CODE_45154(45154, "the consume verify code not found"), - - /** - * the consume verify code is existed - */ - CODE_45155(45155, "the consume verify code is existed"), - - /** - * the consume verify code's length not invalid - */ - CODE_45156(45156, "the consume verify code's length not invalid"), - - /** - * invalid tag name - */ - CODE_45157(45157, "invalid tag name"), - - /** - * tag name too long - */ - CODE_45158(45158, "tag name too long"), - - /** - * invalid tag id - */ - CODE_45159(45159, "invalid tag id"), - - /** - * invalid category to create card - */ - CODE_45160(45160, "invalid category to create card"), - - /** - * this video id must be generated by calling upload api - */ - CODE_45161(45161, "this video id must be generated by calling upload api"), - - /** - * invalid type - */ - CODE_45162(45162, "invalid type"), - - /** - * invalid sort_method - */ - CODE_45163(45163, "invalid sort_method"), - - /** - * invalid offset - */ - CODE_45164(45164, "invalid offset"), - - /** - * invalid limit - */ - CODE_45165(45165, "invalid limit"), - - /** - * invalid content - */ - CODE_45166(45166, "invalid content"), - - /** - * invalid voip call key - */ - CODE_45167(45167, "invalid voip call key"), - - /** - * keyword in blacklist - */ - CODE_45168(45168, "keyword in blacklist"), - - /** - * part or whole of the requests from the very app is temporary blocked by supervisor - */ - CODE_45501(45501, "part or whole of the requests from the very app is temporary blocked by supervisor"), - - /** - * 不存在媒体数据,media_id 不存在 media data no exist - */ - CODE_46001(46001, "不存在媒体数据,media_id 不存在"), - - /** - * 不存在的菜单版本 menu version no exist - */ - CODE_46002(46002, "不存在的菜单版本"), - - /** - * 不存在的菜单数据 menu no exist - */ - CODE_46003(46003, "不存在的菜单数据"), - - /** - * 不存在的用户 user no exist - */ - CODE_46004(46004, "不存在的用户"), - - /** - * poi no exist - */ - CODE_46005(46005, "poi no exist"), - - /** - * voip file not exist - */ - CODE_46006(46006, "voip file not exist"), - - /** - * file being transcoded, please try later - */ - CODE_46007(46007, "file being transcoded, please try later"), - - /** - * result id not exist - */ - CODE_46008(46008, "result id not exist"), - - /** - * there is no user data - */ - CODE_46009(46009, "there is no user data"), - - /** - * this api have been not supported since 2020-01-11 00:00:00, please use new api(subscribeMessage)! - */ - CODE_46101(46101, "this api have been not supported since 2020-01-11 00:00:00, please use new api(subscribeMessage)!"), - - /** - * 解析 JSON/XML 内容错误 data format error - */ - CODE_47001(47001, "解析 JSON/XML 内容错误"), - - /** - * data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use utf8 encoded text! - */ - CODE_47002(47002, "data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use utf8 encoded text!"), - - /** - * 模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错 argument invalid! - */ - CODE_47003(47003, "模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错"), - - /** - * 每次提交的页面数超过1000(备注:每次提交页面数应小于或等于1000) submit pages count more than each quota - */ - CODE_47004(47004, "每次提交的页面数超过1000(备注:每次提交页面数应小于或等于1000)"), - - /** - * tabbar no exist - */ - CODE_47005(47005, "tabbar no exist"), - - /** - * 当天提交页面数达到了配额上限,请明天再试 submit pages count reach daily limit, please try tomorrow - */ - CODE_47006(47006, "当天提交页面数达到了配额上限,请明天再试"), - - /** - * 搜索结果总数超过了1000条 search results count more than limit - */ - CODE_47101(47101, "搜索结果总数超过了1000条"), - - /** - * next_page_info参数错误 next_page_info error - */ - CODE_47102(47102, "next_page_info参数错误"), - - /** - * 参数 activity_id 错误 activity_id error - */ - CODE_47501(47501, "参数 activity_id 错误"), - - /** - * 参数 target_state 错误 target_state error - */ - CODE_47502(47502, "参数 target_state 错误"), - - /** - * 参数 version_type 错误 version_type error - */ - CODE_47503(47503, "参数 version_type 错误"), - - /** - * activity_id activity_id expired time - */ - CODE_47504(47504, "activity_id"), - - /** - * api 功能未授权,请确认公众号已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限 api unauthorized - */ - CODE_48001(48001, "api 功能未授权,请确认公众号已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限"), - - /** - * 粉丝拒收消息(粉丝在公众号选项中,关闭了 “ 接收消息 ” ) user block receive message - */ - CODE_48002(48002, "粉丝拒收消息(粉丝在公众号选项中,关闭了 “ 接收消息 ” )"), - - /** - * user not agree mass-send protocol - */ - CODE_48003(48003, "user not agree mass-send protocol"), - - /** - * api 接口被封禁,请登录 mp.weixin.qq.com 查看详情 api forbidden for irregularities, view detail on mp.weixin.qq.com - */ - CODE_48004(48004, "api 接口被封禁,请登录 mp.weixin.qq.com 查看详情"), - - /** - * api 禁止删除被自动回复和自定义菜单引用的素材 forbid to delete material used by auto-reply or menu - */ - CODE_48005(48005, "api 禁止删除被自动回复和自定义菜单引用的素材"), - - /** - * api 禁止清零调用次数,因为清零次数达到上限 forbid to clear quota because of reaching the limit - */ - CODE_48006(48006, "api 禁止清零调用次数,因为清零次数达到上限"), - - /** - * forbid to use other's voip call key - */ - CODE_48007(48007, "forbid to use other's voip call key"), - - /** - * 没有该类型消息的发送权限 no permission for this msgtype - */ - CODE_48008(48008, "没有该类型消息的发送权限"), - - /** - * this api is expired - */ - CODE_48009(48009, "this api is expired"), - - /** - * forbid to modify the material, please see more information on mp.weixin.qq.com - */ - CODE_48010(48010, "forbid to modify the material, please see more information on mp.weixin.qq.com"), - - /** - * disabled template id - */ - CODE_48011(48011, "disabled template id"), - - /** - * invalid token - */ - CODE_48012(48012, "invalid token"), - - /** - * 该视频非新接口上传,不能用于视频消息群发 - */ - CODE_48013(48013, "该视频非新接口上传,不能用于视频消息群发"), - - /** - * 该视频审核状态异常,请检查后重试 - */ - CODE_48014(48014, "该视频审核状态异常,请检查后重试"), - - /** - * 该账号无留言功能权限 - */ - CODE_48015(48015, "该账号无留言功能权限"), - - /** - * 该账号不满足智能配置"观看更多"视频条件 - */ - CODE_48016(48016, "该账号不满足智能配置\"观看更多\"视频条件"), - - /** - * not same appid with appid of access_token - */ - CODE_49001(49001, "not same appid with appid of access_token"), - - /** - * empty openid or transid - */ - CODE_49002(49002, "empty openid or transid"), - - /** - * not match openid with appid - */ - CODE_49003(49003, "not match openid with appid"), - - /** - * not match signature - */ - CODE_49004(49004, "not match signature"), - - /** - * not existed transid - */ - CODE_49005(49005, "not existed transid"), - - /** - * missing arg two_dim_code - */ - CODE_49006(49006, "missing arg two_dim_code"), - - /** - * invalid two_dim_code - */ - CODE_49007(49007, "invalid two_dim_code"), - - /** - * invalid qrcode - */ - CODE_49008(49008, "invalid qrcode"), - - /** - * missing arg qrcode - */ - CODE_49009(49009, "missing arg qrcode"), - - /** - * invalid partner id - */ - CODE_49010(49010, "invalid partner id"), - - /** - * not existed feedbackid - */ - CODE_49300(49300, "not existed feedbackid"), - - /** - * feedback exist - */ - CODE_49301(49301, "feedback exist"), - - /** - * feedback status already changed - */ - CODE_49302(49302, "feedback status already changed"), - - /** - * 用户未授权该 api api unauthorized or user unauthorized - */ - CODE_50001(50001, "用户未授权该 api"), - - /** - * 用户受限,可能是用户帐号被冻结或注销 user limited - */ - CODE_50002(50002, "用户受限,可能是用户帐号被冻结或注销"), - - /** - * user unexpected, maybe not in white list - */ - CODE_50003(50003, "user unexpected, maybe not in white list"), - - /** - * user not allow to use accesstoken, maybe for punishment - */ - CODE_50004(50004, "user not allow to use accesstoken, maybe for punishment"), - - /** - * 用户未关注公众号 user is unsubscribed - */ - CODE_50005(50005, "用户未关注公众号"), - - /** - * user has switched off friends authorization - */ - CODE_50006(50006, "user has switched off friends authorization"), - - /** - * enterprise father account not exist - */ - CODE_51000(51000, "enterprise father account not exist"), - - /** - * enterprise child account not belong to the father - */ - CODE_51001(51001, "enterprise child account not belong to the father"), - - /** - * enterprise verify message not correct - */ - CODE_51002(51002, "enterprise verify message not correct"), - - /** - * invalid enterprise child list size - */ - CODE_51003(51003, "invalid enterprise child list size"), - - /** - * not a enterprise father account - */ - CODE_51004(51004, "not a enterprise father account"), - - /** - * not a enterprise child account - */ - CODE_51005(51005, "not a enterprise child account"), - - /** - * invalid nick name - */ - CODE_51006(51006, "invalid nick name"), - - /** - * not a enterprise account - */ - CODE_51007(51007, "not a enterprise account"), - - /** - * invalid email - */ - CODE_51008(51008, "invalid email"), - - /** - * invalid pwd - */ - CODE_51009(51009, "invalid pwd"), - - /** - * repeated email - */ - CODE_51010(51010, "repeated email"), - - /** - * access deny - */ - CODE_51011(51011, "access deny"), - - /** - * need verify code - */ - CODE_51012(51012, "need verify code"), - - /** - * wrong verify code - */ - CODE_51013(51013, "wrong verify code"), - - /** - * need modify pwd - */ - CODE_51014(51014, "need modify pwd"), - - /** - * user not exist - */ - CODE_51015(51015, "user not exist"), - - /** - * tv info not exist - */ - CODE_51020(51020, "tv info not exist"), - - /** - * stamp crossed - */ - CODE_51021(51021, "stamp crossed"), - - /** - * invalid stamp range - */ - CODE_51022(51022, "invalid stamp range"), - - /** - * stamp not match date - */ - CODE_51023(51023, "stamp not match date"), - - /** - * empty program name - */ - CODE_51024(51024, "empty program name"), - - /** - * empty action url - */ - CODE_51025(51025, "empty action url"), - - /** - * program name size out of limit - */ - CODE_51026(51026, "program name size out of limit"), - - /** - * action url size out of limit - */ - CODE_51027(51027, "action url size out of limit"), - - /** - * invalid program name - */ - CODE_51028(51028, "invalid program name"), - - /** - * invalid action url - */ - CODE_51029(51029, "invalid action url"), - - /** - * invalid action id - */ - CODE_51030(51030, "invalid action id"), - - /** - * invalid action offset - */ - CODE_51031(51031, "invalid action offset"), - - /** - * empty action title - */ - CODE_51032(51032, "empty action title"), - - /** - * action title size out of limit - */ - CODE_51033(51033, "action title size out of limit"), - - /** - * empty action icon url - */ - CODE_51034(51034, "empty action icon url"), - - /** - * action icon url out of limit - */ - CODE_51035(51035, "action icon url out of limit"), - - /** - * pic is not from cdn - */ - CODE_52000(52000, "pic is not from cdn"), - - /** - * wechat price is not less than origin price - */ - CODE_52001(52001, "wechat price is not less than origin price"), - - /** - * category/sku is wrong - */ - CODE_52002(52002, "category/sku is wrong"), - - /** - * product id not existed - */ - CODE_52003(52003, "product id not existed"), - - /** - * category id is not exist, or doesn't has sub category - */ - CODE_52004(52004, "category id is not exist, or doesn't has sub category"), - - /** - * quantity is zero - */ - CODE_52005(52005, "quantity is zero"), - - /** - * area code is invalid - */ - CODE_52006(52006, "area code is invalid"), - - /** - * express template param is error - */ - CODE_52007(52007, "express template param is error"), - - /** - * express template id is not existed - */ - CODE_52008(52008, "express template id is not existed"), - - /** - * group name is empty - */ - CODE_52009(52009, "group name is empty"), - - /** - * group id is not existed - */ - CODE_52010(52010, "group id is not existed"), - - /** - * mod_action is invalid - */ - CODE_52011(52011, "mod_action is invalid"), - - /** - * shelf components count is greater than 20 - */ - CODE_52012(52012, "shelf components count is greater than 20"), - - /** - * shelf component is empty - */ - CODE_52013(52013, "shelf component is empty"), - - /** - * shelf id is not existed - */ - CODE_52014(52014, "shelf id is not existed"), - - /** - * order id is not existed - */ - CODE_52015(52015, "order id is not existed"), - - /** - * order filter param is invalid - */ - CODE_52016(52016, "order filter param is invalid"), - - /** - * order express param is invalid - */ - CODE_52017(52017, "order express param is invalid"), - - /** - * order delivery param is invalid - */ - CODE_52018(52018, "order delivery param is invalid"), - - /** - * brand name empty - */ - CODE_52019(52019, "brand name empty"), - - /** - * principal limit exceed - */ - CODE_53000(53000, "principal limit exceed"), - - /** - * principal in black list - */ - CODE_53001(53001, "principal in black list"), - - /** - * mobile limit exceed - */ - CODE_53002(53002, "mobile limit exceed"), - - /** - * idcard limit exceed - */ - CODE_53003(53003, "idcard limit exceed"), - - /** - * 名称格式不合法 nickname invalid - */ - CODE_53010(53010, "名称格式不合法"), - - /** - * 名称检测命中频率限制 check nickname too frequently - */ - CODE_53011(53011, "名称检测命中频率限制"), - - /** - * 禁止使用该名称 nickname ban - */ - CODE_53012(53012, "禁止使用该名称"), - - /** - * 公众号:名称与已有公众号名称重复;小程序:该名称与已有小程序名称重复 nickname has been occupied - */ - CODE_53013(53013, "公众号:名称与已有公众号名称重复;小程序:该名称与已有小程序名称重复"), - - /** - * 公众号:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A} - */ - CODE_53014(53014, "公众号:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A}"), - - /** - * 公众号:该名称与已有小程序名称重复,需与该小程序帐号相同主体才可申请;小程序:该名称与已有公众号名称重复,需与该公众号帐号相同主体才可申请 - */ - CODE_53015(53015, "公众号:该名称与已有小程序名称重复,需与该小程序帐号相同主体才可申请;小程序:该名称与已有公众号名称重复,需与该公众号帐号相同主体才可申请"), - - /** - * 公众号:该名称与已有多个小程序名称重复,暂不支持申请;小程序:该名称与已有多个公众号名称重复,暂不支持申请 - */ - CODE_53016(53016, "公众号:该名称与已有多个小程序名称重复,暂不支持申请;小程序:该名称与已有多个公众号名称重复,暂不支持申请"), - - /** - * 公众号:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A} - */ - CODE_53017(53017, "公众号:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A}"), - - /** - * 名称命中微信号 nickname hit alias - */ - CODE_53018(53018, "名称命中微信号"), - - /** - * 名称在保护期内 nickname protected by infringement - */ - CODE_53019(53019, "名称在保护期内"), - - /** - * order not found - */ - CODE_53100(53100, "订单不存在"), - - /** - * order already paid - */ - CODE_53101(53101, "已经支付的订单"), - - /** - * already has checking order, can not apply - */ - CODE_53102(53102, "已有检查单,不能申请"), - - /** - * order can not do refill - */ - CODE_53103(53103, "order can not do refill"), - - /** - * 本月功能介绍修改次数已用完 modify signature quota limit exceed - */ - CODE_53200(53200, "本月功能介绍修改次数已用完"), - - /** - * 功能介绍内容命中黑名单关键字 signature in black list, can not use - */ - CODE_53201(53201, "功能介绍内容命中黑名单关键字"), - - /** - * 本月头像修改次数已用完 modify avatar quota limit exceed - */ - CODE_53202(53202, "本月头像修改次数已用完"), - - /** - * can't be modified for the time being - */ - CODE_53203(53203, "暂时还不能修改"), - - /** - * signature invalid - */ - CODE_53204(53204, "无效签名"), - - /** - * 超出每月次数限制 - */ - CODE_53300(53300, "超出每月次数限制"), - - /** - * 超出可配置类目总数限制 - */ - CODE_53301(53301, "超出可配置类目总数限制"), - - /** - * 当前账号主体类型不允许设置此种类目 - */ - CODE_53302(53302, "当前账号主体类型不允许设置此种类目"), - - /** - * 提交的参数不合法 - */ - CODE_53303(53303, "提交的参数不合法"), - - /** - * 与已有类目重复 - */ - CODE_53304(53304, "与已有类目重复"), - - /** - * 包含未通过IPC校验的类目 - */ - CODE_53305(53305, "包含未通过IPC校验的类目"), - - /** - * 修改类目只允许修改类目资质,不允许修改类目ID - */ - CODE_53306(53306, "修改类目只允许修改类目资质,不允许修改类目ID"), - - /** - * 只有审核失败的类目允许修改 - */ - CODE_53307(53307, "只有审核失败的类目允许修改"), - - /** - * 审核中的类目不允许删除 - */ - CODE_53308(53308, "审核中的类目不允许删除"), - - /** - * 社交红包不允许删除 - */ - CODE_53309(53309, "社交红包不允许删除"), - - /** - * 类目超过上限,但是可以添加apply_reason参数申请更多类目 - */ - CODE_53310(53310, "类目超过上限,但是可以添加apply_reason参数申请更多类目"), - - /** - * 需要提交资料信息 - */ - CODE_53311(53311, "需要提交资料信息"), - - /** - * empty jsapi name - */ - CODE_60005(60005, "空的jsapi名称"), - - /** - * user cancel the auth - */ - CODE_60006(60006, "用户取消该授权"), - - /** - * invalid component type - */ - CODE_61000(61000, "无效的第三方类型"), - - /** - * component type and component appid is not match - */ - CODE_61001(61001, "第三方类型与第三方APPID不匹配"), - - /** - * the third appid is not open KF - */ - CODE_61002(61002, "第三方APPID没有开放客服"), - - /** - * component is not authorized by this account - */ - CODE_61003(61003, "帐号未授权"), - - /** - * api 功能未授权,请确认公众号/小程序已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限 access clientip is not registered - */ - CODE_61004(61004, "api 功能未授权,请确认公众号/小程序已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限"), - - /** - * component ticket is expired - */ - CODE_61005(61005, "ticket 已过期"), - - /** - * component ticket is invalid - */ - CODE_61006(61006, "无效 ticket"), - - /** - * api is unauthorized to component - */ - CODE_61007(61007, "接口未授权给第三方平台"), - - /** - * component req key is duplicated - */ - CODE_61008(61008, "第三方请求的key存在重复"), - - /** - * code is invalid - */ - CODE_61009(61009, "无效code"), - - /** - * code is expired - */ - CODE_61010(61010, "code已过期"), - - /** - * invalid component - */ - CODE_61011(61011, "无效的第三方平台"), - - /** - * invalid option name - */ - CODE_61012(61012, "无效的选项名称"), - - /** - * invalid option value - */ - CODE_61013(61013, "无效的选项值"), - - /** - * must use component token for component api - */ - CODE_61014(61014, "必须使用component接口的token"), - - /** - * must use biz account token for not component api - */ - CODE_61015(61015, "必须使用商业帐号token,而不是component api"), - - /** - * function category of API need be confirmed by component - */ - CODE_61016(61016, "function category of API need be confirmed by component"), - - /** - * function category is not authorized - */ - CODE_61017(61017, "function category is not authorized"), - - /** - * already confirm - */ - CODE_61018(61018, "已确认"), - - /** - * not need confirm - */ - CODE_61019(61019, "不需要确认"), - - /** - * err parameter - */ - CODE_61020(61020, "err parameter"), - - /** - * can't confirm - */ - CODE_61021(61021, "can't confirm"), - - /** - * can't resubmit - */ - CODE_61022(61022, "can't resubmit"), - - /** - * refresh_token is invalid - */ - CODE_61023(61023, "refresh_token is invalid"), - - /** - * must use api(api_component_token) to get token for component acct - */ - CODE_61024(61024, "must use api(api_component_token) to get token for component acct"), - - /** - * read-only option - */ - CODE_61025(61025, "read-only option"), - - /** - * register access deny - */ - CODE_61026(61026, "register access deny"), - - /** - * register limit exceed - */ - CODE_61027(61027, "register limit exceed"), - - /** - * component is unpublished - */ - CODE_61028(61028, "component is unpublished"), - - /** - * component need republish with base category - */ - CODE_61029(61029, "component need republish with base category"), - - /** - * component cancel authorization not allowed - */ - CODE_61030(61030, "component cancel authorization not allowed"), - - /** - * invalid realname type - */ - CODE_61051(61051, "invalid realname type"), - - /** - * need to be certified - */ - CODE_61052(61052, "need to be certified"), - - /** - * realname exceed limits - */ - CODE_61053(61053, "realname exceed limits"), - - /** - * realname in black list - */ - CODE_61054(61054, "realname in black list"), - - /** - * exceed quota per month - */ - CODE_61055(61055, "exceed quota per month"), - - /** - * copy_wx_verify is required option - */ - CODE_61056(61056, "copy_wx_verify is required option"), - - /** - * invalid ticket - */ - CODE_61058(61058, "invalid ticket"), - - /** - * overseas access deny - */ - CODE_61061(61061, "overseas access deny"), - - /** - * admin exceed limits - */ - CODE_61063(61063, "admin exceed limits"), - - /** - * admin in black list - */ - CODE_61064(61064, "admin in black list"), - - /** - * idcard exceed limits - */ - CODE_61065(61065, "idcard exceed limits"), - - /** - * idcard in black list - */ - CODE_61066(61066, "idcard in black list"), - - /** - * mobile exceed limits - */ - CODE_61067(61067, "mobile exceed limits"), - - /** - * mobile in black list - */ - CODE_61068(61068, "mobile in black list"), - - /** - * invalid admin - */ - CODE_61069(61069, "invalid admin"), - - /** - * name, idcard, wechat name not in accordance - */ - CODE_61070(61070, "name, idcard, wechat name not in accordance"), - - /** - * invalid url - */ - CODE_61100(61100, "invalid url"), - - /** - * invalid openid - */ - CODE_61101(61101, "invalid openid"), - - /** - * share relation not existed - */ - CODE_61102(61102, "share relation not existed"), - - /** - * product wording not set - */ - CODE_61200(61200, "product wording not set"), - - /** - * invalid base info - */ - CODE_61300(61300, "invalid base info"), - - /** - * invalid detail info - */ - CODE_61301(61301, "invalid detail info"), - - /** - * invalid action info - */ - CODE_61302(61302, "invalid action info"), - - /** - * brand info not exist - */ - CODE_61303(61303, "brand info not exist"), - - /** - * invalid product id - */ - CODE_61304(61304, "invalid product id"), - - /** - * invalid key info - */ - CODE_61305(61305, "invalid key info"), - - /** - * invalid appid - */ - CODE_61306(61306, "invalid appid"), - - /** - * invalid card id - */ - CODE_61307(61307, "invalid card id"), - - /** - * base info not exist - */ - CODE_61308(61308, "base info not exist"), - - /** - * detail info not exist - */ - CODE_61309(61309, "detail info not exist"), - - /** - * action info not exist - */ - CODE_61310(61310, "action info not exist"), - - /** - * invalid media info - */ - CODE_61311(61311, "invalid media info"), - - /** - * invalid buffer size - */ - CODE_61312(61312, "invalid buffer size"), - - /** - * invalid buffer - */ - CODE_61313(61313, "invalid buffer"), - - /** - * invalid qrcode extinfo - */ - CODE_61314(61314, "invalid qrcode extinfo"), - - /** - * invalid local ext info - */ - CODE_61315(61315, "invalid local ext info"), - - /** - * key conflict - */ - CODE_61316(61316, "key conflict"), - - /** - * ticket invalid - */ - CODE_61317(61317, "ticket invalid"), - - /** - * verify not pass - */ - CODE_61318(61318, "verify not pass"), - - /** - * category invalid - */ - CODE_61319(61319, "category invalid"), - - /** - * merchant info not exist - */ - CODE_61320(61320, "merchant info not exist"), - - /** - * cate id is a leaf node - */ - CODE_61321(61321, "cate id is a leaf node"), - - /** - * category id no permision - */ - CODE_61322(61322, "category id no permision"), - - /** - * barcode no permision - */ - CODE_61323(61323, "barcode no permision"), - - /** - * exceed max action num - */ - CODE_61324(61324, "exceed max action num"), - - /** - * brandinfo invalid store mgr type - */ - CODE_61325(61325, "brandinfo invalid store mgr type"), - - /** - * anti-spam blocked - */ - CODE_61326(61326, "anti-spam blocked"), - - /** - * comment reach limit - */ - CODE_61327(61327, "comment reach limit"), - - /** - * comment data is not the newest - */ - CODE_61328(61328, "comment data is not the newest"), - - /** - * comment hit ban word - */ - CODE_61329(61329, "comment hit ban word"), - - /** - * image already add - */ - CODE_61330(61330, "image already add"), - - /** - * image never add - */ - CODE_61331(61331, "image never add"), - - /** - * warning, image quanlity too low - */ - CODE_61332(61332, "warning, image quanlity too low"), - - /** - * warning, image simility too high - */ - CODE_61333(61333, "warning, image simility too high"), - - /** - * product not exists - */ - CODE_61334(61334, "product not exists"), - - /** - * key apply fail - */ - CODE_61335(61335, "key apply fail"), - - /** - * check status fail - */ - CODE_61336(61336, "check status fail"), - - /** - * product already exists - */ - CODE_61337(61337, "product already exists"), - - /** - * forbid delete - */ - CODE_61338(61338, "forbid delete"), - - /** - * firmcode claimed - */ - CODE_61339(61339, "firmcode claimed"), - - /** - * check firm info fail - */ - CODE_61340(61340, "check firm info fail"), - - /** - * too many white list uin - */ - CODE_61341(61341, "too many white list uin"), - - /** - * keystandard not match - */ - CODE_61342(61342, "keystandard not match"), - - /** - * keystandard error - */ - CODE_61343(61343, "keystandard error"), - - /** - * id map not exists - */ - CODE_61344(61344, "id map not exists"), - - /** - * invalid action code - */ - CODE_61345(61345, "invalid action code"), - - /** - * invalid actioninfo store - */ - CODE_61346(61346, "invalid actioninfo store"), - - /** - * invalid actioninfo media - */ - CODE_61347(61347, "invalid actioninfo media"), - - /** - * invalid actioninfo text - */ - CODE_61348(61348, "invalid actioninfo text"), - - /** - * invalid input data - */ - CODE_61350(61350, "invalid input data"), - - /** - * input data exceed max size - */ - CODE_61351(61351, "input data exceed max size"), - - /** - * kf_account error - */ - CODE_61400(61400, "kf_account error"), - - /** - * kf system alredy transfer - */ - CODE_61401(61401, "kf system alredy transfer"), - - /** - * 系统错误 (system error) - */ - CODE_61450(61450, "系统错误 (system error)"), - - /** - * 参数错误 (invalid parameter) - */ - CODE_61451(61451, "参数错误 (invalid parameter)"), - - /** - * 无效客服账号 (invalid kf_account) - */ - CODE_61452(61452, "无效客服账号 (invalid kf_account)"), - - /** - * 客服帐号已存在 (kf_account exsited) - */ - CODE_61453(61453, "客服帐号已存在 (kf_account exsited)"), - - /** - * 客服帐号名长度超过限制 ( 仅允许 10 个英文字符,不包括 @ 及 @ 后的公众号的微信号 )(invalid kf_acount length) - */ - CODE_61454(61454, "客服帐号名长度超过限制 ( 仅允许 10 个英文字符,不包括 @ 及 @ 后的公众号的微信号 )(invalid kf_acount length)"), - - /** - * 客服帐号名包含非法字符 ( 仅允许英文 + 数字 )(illegal character in kf_account) - */ - CODE_61455(61455, "客服帐号名包含非法字符 ( 仅允许英文 + 数字 )(illegal character in kf_account)"), - - /** - * 客服帐号个数超过限制 (10 个客服账号 )(kf_account count exceeded) - */ - CODE_61456(61456, "客服帐号个数超过限制 (10 个客服账号 )(kf_account count exceeded)"), - - /** - * 无效头像文件类型 (invalid file type) - */ - CODE_61457(61457, "无效头像文件类型 (invalid file type)"), - - /** - * 日期格式错误 date format error - */ - CODE_61500(61500, "日期格式错误"), - - /** - * date range error - */ - CODE_61501(61501, "date range error"), - - /** - * this is game miniprogram, data api is not supported - */ - CODE_61502(61502, "this is game miniprogram, data api is not supported"), - - /** - * data not ready, please try later - */ - CODE_61503(61503, "data not ready, please try later"), - - /** - * trying to access other's app - */ - CODE_62001(62001, "trying to access other's app"), - - /** - * app name already exists - */ - CODE_62002(62002, "app name already exists"), - - /** - * please provide at least one platform - */ - CODE_62003(62003, "please provide at least one platform"), - - /** - * invalid app name - */ - CODE_62004(62004, "invalid app name"), - - /** - * invalid app id - */ - CODE_62005(62005, "invalid app id"), - - /** - * 部分参数为空 some arguments is empty - */ - CODE_63001(63001, "部分参数为空"), - - /** - * 无效的签名 invalid signature - */ - CODE_63002(63002, "无效的签名"), - - /** - * invalid signature method - */ - CODE_63003(63003, "invalid signature method"), - - /** - * no authroize - */ - CODE_63004(63004, "no authroize"), - - /** - * gen ticket fail - */ - CODE_63149(63149, "gen ticket fail"), - - /** - * set ticket fail - */ - CODE_63152(63152, "set ticket fail"), - - /** - * shortid decode fail - */ - CODE_63153(63153, "shortid decode fail"), - - /** - * invalid status - */ - CODE_63154(63154, "invalid status"), - - /** - * invalid color - */ - CODE_63155(63155, "invalid color"), - - /** - * invalid tag - */ - CODE_63156(63156, "invalid tag"), - - /** - * invalid recommend - */ - CODE_63157(63157, "invalid recommend"), - - /** - * branditem out of limits - */ - CODE_63158(63158, "branditem out of limits"), - - /** - * retail_price empty - */ - CODE_63159(63159, "retail_price empty"), - - /** - * priceinfo invalid - */ - CODE_63160(63160, "priceinfo invalid"), - - /** - * antifake module num limit - */ - CODE_63161(63161, "antifake module num limit"), - - /** - * antifake native_type err - */ - CODE_63162(63162, "antifake native_type err"), - - /** - * antifake link not exists - */ - CODE_63163(63163, "antifake link not exists"), - - /** - * module type not exist - */ - CODE_63164(63164, "module type not exist"), - - /** - * module info not exist - */ - CODE_63165(63165, "module info not exist"), - - /** - * item is beding verified - */ - CODE_63166(63166, "item is beding verified"), - - /** - * item not published - */ - CODE_63167(63167, "item not published"), - - /** - * verify not pass - */ - CODE_63168(63168, "verify not pass"), - - /** - * already published - */ - CODE_63169(63169, "already published"), - - /** - * only banner or media - */ - CODE_63170(63170, "only banner or media"), - - /** - * card num limit - */ - CODE_63171(63171, "card num limit"), - - /** - * user num limit - */ - CODE_63172(63172, "user num limit"), - - /** - * text num limit - */ - CODE_63173(63173, "text num limit"), - - /** - * link card user sum limit - */ - CODE_63174(63174, "link card user sum limit"), - - /** - * detail info error - */ - CODE_63175(63175, "detail info error"), - - /** - * not this type - */ - CODE_63176(63176, "not this type"), - - /** - * src or secretkey or version or expired_time is wrong - */ - CODE_63177(63177, "src or secretkey or version or expired_time is wrong"), - - /** - * appid wrong - */ - CODE_63178(63178, "appid wrong"), - - /** - * openid num limit - */ - CODE_63179(63179, "openid num limit"), - - /** - * this app msg not found - */ - CODE_63180(63180, "this app msg not found"), - - /** - * get history app msg end - */ - CODE_63181(63181, "get history app msg end"), - - /** - * openid_list empty - */ - CODE_63182(63182, "openid_list empty"), - - /** - * unknown deeplink type - */ - CODE_65001(65001, "unknown deeplink type"), - - /** - * deeplink unauthorized - */ - CODE_65002(65002, "deeplink unauthorized"), - - /** - * bad deeplink - */ - CODE_65003(65003, "bad deeplink"), - - /** - * deeplinks of the very type are supposed to have short-life - */ - CODE_65004(65004, "deeplinks of the very type are supposed to have short-life"), - - /** - * invalid categories - */ - CODE_65104(65104, "invalid categories"), - - /** - * invalid photo url - */ - CODE_65105(65105, "invalid photo url"), - - /** - * poi audit state must be approved - */ - CODE_65106(65106, "poi audit state must be approved"), - - /** - * poi not allowed modify now - */ - CODE_65107(65107, "poi not allowed modify now"), - - /** - * invalid business name - */ - CODE_65109(65109, "invalid business name"), - - /** - * invalid address - */ - CODE_65110(65110, "invalid address"), - - /** - * invalid telephone - */ - CODE_65111(65111, "invalid telephone"), - - /** - * invalid city - */ - CODE_65112(65112, "invalid city"), - - /** - * invalid province - */ - CODE_65113(65113, "invalid province"), - - /** - * photo list empty - */ - CODE_65114(65114, "photo list empty"), - - /** - * poi_id is not exist - */ - CODE_65115(65115, "poi_id is not exist"), - - /** - * poi has been deleted - */ - CODE_65116(65116, "poi has been deleted"), - - /** - * cannot delete poi - */ - CODE_65117(65117, "cannot delete poi"), - - /** - * store status is invalid - */ - CODE_65118(65118, "store status is invalid"), - - /** - * lack of qualification for relevant principals - */ - CODE_65119(65119, "lack of qualification for relevant principals"), - - /** - * category info is not found - */ - CODE_65120(65120, "category info is not found"), - - /** - * room_name is empty, please check your input - */ - CODE_65201(65201, "room_name is empty, please check your input"), - - /** - * user_id is empty, please check your input - */ - CODE_65202(65202, "user_id is empty, please check your input"), - - /** - * invalid check ticket - */ - CODE_65203(65203, "invalid check ticket"), - - /** - * invalid check ticket opt code - */ - CODE_65204(65204, "invalid check ticket opt code"), - - /** - * check ticket out of time - */ - CODE_65205(65205, "check ticket out of time"), - - /** - * 不存在此 menuid 对应的个性化菜单 this menu is not conditionalmenu - */ - CODE_65301(65301, "不存在此 menuid 对应的个性化菜单"), - - /** - * 没有相应的用户 no such user - */ - CODE_65302(65302, "没有相应的用户"), - - /** - * 没有默认菜单,不能创建个性化菜单 there is no selfmenu, please create selfmenu first - */ - CODE_65303(65303, "没有默认菜单,不能创建个性化菜单"), - - /** - * MatchRule 信息为空 match rule empty - */ - CODE_65304(65304, "MatchRule 信息为空"), - - /** - * 个性化菜单数量受限 menu count limit - */ - CODE_65305(65305, "个性化菜单数量受限"), - - /** - * 不支持个性化菜单的帐号 conditional menu not support - */ - CODE_65306(65306, "不支持个性化菜单的帐号"), - - /** - * 个性化菜单信息为空 conditional menu is empty - */ - CODE_65307(65307, "个性化菜单信息为空"), - - /** - * 包含没有响应类型的 button exist empty button act - */ - CODE_65308(65308, "包含没有响应类型的 button"), - - /** - * 个性化菜单开关处于关闭状态 conditional menu switch is closed - */ - CODE_65309(65309, "个性化菜单开关处于关闭状态"), - - /** - * 填写了省份或城市信息,国家信息不能为空 region info: country is empty - */ - CODE_65310(65310, "填写了省份或城市信息,国家信息不能为空"), - - /** - * 填写了城市信息,省份信息不能为空 region info: province is empty - */ - CODE_65311(65311, "填写了城市信息,省份信息不能为空"), - - /** - * 不合法的国家信息 invalid country info - */ - CODE_65312(65312, "不合法的国家信息"), - - /** - * 不合法的省份信息 invalid province info - */ - CODE_65313(65313, "不合法的省份信息"), - - /** - * 不合法的城市信息 invalid city info - */ - CODE_65314(65314, "不合法的城市信息"), - - /** - * not fans - */ - CODE_65315(65315, "not fans"), - - /** - * 该公众号的菜单设置了过多的域名外跳(最多跳转到 3 个域名的链接) domain count reach limit - */ - CODE_65316(65316, "该公众号的菜单设置了过多的域名外跳(最多跳转到 3 个域名的链接)"), - - /** - * 不合法的 URL contain invalid url - */ - CODE_65317(65317, "不合法的 URL"), - - /** - * must use utf-8 charset - */ - CODE_65318(65318, "must use utf-8 charset"), - - /** - * not allow to create menu - */ - CODE_65319(65319, "not allow to create menu"), - - /** - * please enable new custom service, or wait for a while if you have enabled - */ - CODE_65400(65400, "please enable new custom service, or wait for a while if you have enabled"), - - /** - * invalid custom service account - */ - CODE_65401(65401, "invalid custom service account"), - - /** - * the custom service account need to bind a wechat user - */ - CODE_65402(65402, "the custom service account need to bind a wechat user"), - - /** - * illegal nickname - */ - CODE_65403(65403, "illegal nickname"), - - /** - * illegal custom service account - */ - CODE_65404(65404, "illegal custom service account"), - - /** - * custom service account number reach limit - */ - CODE_65405(65405, "custom service account number reach limit"), - - /** - * custom service account exists - */ - CODE_65406(65406, "custom service account exists"), - - /** - * the wechat user have been one of your workers - */ - CODE_65407(65407, "the wechat user have been one of your workers"), - - /** - * you have already invited the wechat user - */ - CODE_65408(65408, "you have already invited the wechat user"), - - /** - * wechat account invalid - */ - CODE_65409(65409, "wechat account invalid"), - - /** - * too many custom service accounts bound by the worker - */ - CODE_65410(65410, "too many custom service accounts bound by the worker"), - - /** - * a effective invitation to bind the custom service account exists - */ - CODE_65411(65411, "a effective invitation to bind the custom service account exists"), - - /** - * the custom service account have been bound by a wechat user - */ - CODE_65412(65412, "the custom service account have been bound by a wechat user"), - - /** - * no effective session for the customer - */ - CODE_65413(65413, "no effective session for the customer"), - - /** - * another worker is serving the customer - */ - CODE_65414(65414, "another worker is serving the customer"), - - /** - * the worker is not online - */ - CODE_65415(65415, "the worker is not online"), - - /** - * param invalid, please check - */ - CODE_65416(65416, "param invalid, please check"), - - /** - * it is too long from the starttime to endtime - */ - CODE_65417(65417, "it is too long from the starttime to endtime"), - - /** - * homepage not exists - */ - CODE_65450(65450, "homepage not exists"), - - /** - * invalid store type - */ - CODE_68002(68002, "invalid store type"), - - /** - * invalid store name - */ - CODE_68003(68003, "invalid store name"), - - /** - * invalid store wxa path - */ - CODE_68004(68004, "invalid store wxa path"), - - /** - * miss store wxa path - */ - CODE_68005(68005, "miss store wxa path"), - - /** - * invalid kefu type - */ - CODE_68006(68006, "invalid kefu type"), - - /** - * invalid kefu wxa path - */ - CODE_68007(68007, "invalid kefu wxa path"), - - /** - * invalid kefu phone number - */ - CODE_68008(68008, "invalid kefu phone number"), - - /** - * invalid sub mch id - */ - CODE_68009(68009, "invalid sub mch id"), - - /** - * store id has exist - */ - CODE_68010(68010, "store id has exist"), - - /** - * miss store name - */ - CODE_68011(68011, "miss store name"), - - /** - * miss create time - */ - CODE_68012(68012, "miss create time"), - - /** - * invalid status - */ - CODE_68013(68013, "invalid status"), - - /** - * invalid receiver info - */ - CODE_68014(68014, "invalid receiver info"), - - /** - * invalid product - */ - CODE_68015(68015, "invalid product"), - - /** - * invalid pay type - */ - CODE_68016(68016, "invalid pay type"), - - /** - * invalid fast mail no - */ - CODE_68017(68017, "invalid fast mail no"), - - /** - * invalid busi id - */ - CODE_68018(68018, "invalid busi id"), - - /** - * miss product sku - */ - CODE_68019(68019, "miss product sku"), - - /** - * invalid service type - */ - CODE_68020(68020, "invalid service type"), - - /** - * invalid service status - */ - CODE_68021(68021, "invalid service status"), - - /** - * invalid service_id - */ - CODE_68022(68022, "invalid service_id"), - - /** - * service_id has exist - */ - CODE_68023(68023, "service_id has exist"), - - /** - * miss service wxa path - */ - CODE_68024(68024, "miss service wxa path"), - - /** - * invalid product sku - */ - CODE_68025(68025, "invalid product sku"), - - /** - * invalid product spu - */ - CODE_68026(68026, "invalid product spu"), - - /** - * miss product spu - */ - CODE_68027(68027, "miss product spu"), - - /** - * can not find product spu and spu in order list - */ - CODE_68028(68028, "can not find product spu and spu in order list"), - - /** - * sku and spu duplicated - */ - CODE_68029(68029, "sku and spu duplicated"), - - /** - * busi_id has exist - */ - CODE_68030(68030, "busi_id has exist"), - - /** - * update fail - */ - CODE_68031(68031, "update fail"), - - /** - * busi_id not exist - */ - CODE_68032(68032, "busi_id not exist"), - - /** - * store no exist - */ - CODE_68033(68033, "store no exist"), - - /** - * miss product number - */ - CODE_68034(68034, "miss product number"), - - /** - * miss wxa order detail path - */ - CODE_68035(68035, "miss wxa order detail path"), - - /** - * there is no enough products to refund - */ - CODE_68036(68036, "there is no enough products to refund"), - - /** - * invalid refund info - */ - CODE_68037(68037, "invalid refund info"), - - /** - * shipped but no fast mail info - */ - CODE_68038(68038, "shipped but no fast mail info"), - - /** - * invalid wechat pay no - */ - CODE_68039(68039, "invalid wechat pay no"), - - /** - * all product has been refunded, the order can not be finished - */ - CODE_68040(68040, "all product has been refunded, the order can not be finished"), - - /** - * invalid service create time, it must bigger than the time of order - */ - CODE_68041(68041, "invalid service create time, it must bigger than the time of order"), - - /** - * invalid total cost, it must be smaller than the sum of product and shipping cost - */ - CODE_68042(68042, "invalid total cost, it must be smaller than the sum of product and shipping cost"), - - /** - * invalid role - */ - CODE_68043(68043, "invalid role"), - - /** - * invalid service_available args - */ - CODE_68044(68044, "invalid service_available args"), - - /** - * invalid order type - */ - CODE_68045(68045, "invalid order type"), - - /** - * invalid order deliver type - */ - CODE_68046(68046, "invalid order deliver type"), - - /** - * require store_id - */ - CODE_68500(68500, "require store_id"), - - /** - * invalid store_id - */ - CODE_68501(68501, "invalid store_id"), - - /** - * invalid parameter, parameter is zero or missing - */ - CODE_71001(71001, "invalid parameter, parameter is zero or missing"), - - /** - * invalid orderid, may be the other parameter not fit with orderid - */ - CODE_71002(71002, "invalid orderid, may be the other parameter not fit with orderid"), - - /** - * coin not enough - */ - CODE_71003(71003, "coin not enough"), - - /** - * card is expired - */ - CODE_71004(71004, "card is expired"), - - /** - * limit exe count - */ - CODE_71005(71005, "limit exe count"), - - /** - * limit coin count, 1 <= coin_count <= 100000 - */ - CODE_71006(71006, "limit coin count, 1 <= coin_count <= 100000"), - - /** - * order finish - */ - CODE_71007(71007, "order finish"), - - /** - * order time out - */ - CODE_71008(71008, "order time out"), - - /** - * no match card - */ - CODE_72001(72001, "no match card"), - - /** - * mchid is not bind appid - */ - CODE_72002(72002, "mchid is not bind appid"), - - /** - * invalid card type, need member card - */ - CODE_72003(72003, "invalid card type, need member card"), - - /** - * mchid is occupied by the other appid - */ - CODE_72004(72004, "mchid is occupied by the other appid"), - - /** - * out of mchid size limit - */ - CODE_72005(72005, "out of mchid size limit"), - - /** - * invald title - */ - CODE_72006(72006, "invald title"), - - /** - * invalid reduce cost, can not less than 100 - */ - CODE_72007(72007, "invalid reduce cost, can not less than 100"), - - /** - * invalid least cost, most larger than reduce cost - */ - CODE_72008(72008, "invalid least cost, most larger than reduce cost"), - - /** - * invalid get limit, can not over 50 - */ - CODE_72009(72009, "invalid get limit, can not over 50"), - - /** - * invalid mchid - */ - CODE_72010(72010, "invalid mchid"), - - /** - * invalid activate_ticket.Maybe this ticket is not belong this AppId - */ - CODE_72011(72011, "invalid activate_ticket.Maybe this ticket is not belong this AppId"), - - /** - * activate_ticket has been expired - */ - CODE_72012(72012, "activate_ticket has been expired"), - - /** - * unauthorized order_id or authorization is expired - */ - CODE_72013(72013, "unauthorized order_id or authorization is expired"), - - /** - * task card share stock can not modify stock - */ - CODE_72014(72014, "task card share stock can not modify stock"), - - /** - * unauthorized create invoice - */ - CODE_72015(72015, "unauthorized create invoice"), - - /** - * unauthorized create member card - */ - CODE_72016(72016, "unauthorized create member card"), - - /** - * invalid invoice title - */ - CODE_72017(72017, "invalid invoice title"), - - /** - * duplicate order id, invoice had inserted to user - */ - CODE_72018(72018, "duplicate order id, invoice had inserted to user"), - - /** - * limit msg operation card list size, must <= 5 - */ - CODE_72019(72019, "limit msg operation card list size, must <= 5"), - - /** - * limit consume in use limit - */ - CODE_72020(72020, "limit consume in use limit"), - - /** - * unauthorized create general card - */ - CODE_72021(72021, "unauthorized create general card"), - - /** - * user unexpected, please add user to white list - */ - CODE_72022(72022, "user unexpected, please add user to white list"), - - /** - * invoice has been lock by others - */ - CODE_72023(72023, "invoice has been lock by others"), - - /** - * invoice status error - */ - CODE_72024(72024, "invoice status error"), - - /** - * invoice token error - */ - CODE_72025(72025, "invoice token error"), - - /** - * need set wx_activate true - */ - CODE_72026(72026, "need set wx_activate true"), - - /** - * invoice action error - */ - CODE_72027(72027, "invoice action error"), - - /** - * invoice never set pay mch info - */ - CODE_72028(72028, "invoice never set pay mch info"), - - /** - * invoice never set auth field - */ - CODE_72029(72029, "invoice never set auth field"), - - /** - * invalid mchid - */ - CODE_72030(72030, "invalid mchid"), - - /** - * invalid params - */ - CODE_72031(72031, "invalid params"), - - /** - * pay gift card rule expired - */ - CODE_72032(72032, "pay gift card rule expired"), - - /** - * pay gift card rule status err - */ - CODE_72033(72033, "pay gift card rule status err"), - - /** - * invlid rule id - */ - CODE_72034(72034, "invlid rule id"), - - /** - * biz reject insert - */ - CODE_72035(72035, "biz reject insert"), - - /** - * invoice is busy, try again please - */ - CODE_72036(72036, "invoice is busy, try again please"), - - /** - * invoice owner error - */ - CODE_72037(72037, "invoice owner error"), - - /** - * invoice order never auth - */ - CODE_72038(72038, "invoice order never auth"), - - /** - * invoice must be lock first - */ - CODE_72039(72039, "invoice must be lock first"), - - /** - * invoice pdf error - */ - CODE_72040(72040, "invoice pdf error"), - - /** - * billing_code and billing_no invalid - */ - CODE_72041(72041, "billing_code and billing_no invalid"), - - /** - * billing_code and billing_no repeated - */ - CODE_72042(72042, "billing_code and billing_no repeated"), - - /** - * billing_code or billing_no size error - */ - CODE_72043(72043, "billing_code or billing_no size error"), - - /** - * scan text out of time - */ - CODE_72044(72044, "scan text out of time"), - - /** - * check_code is empty - */ - CODE_72045(72045, "check_code is empty"), - - /** - * pdf_url is invalid - */ - CODE_72046(72046, "pdf_url is invalid"), - - /** - * pdf billing_code or pdf billing_no is error - */ - CODE_72047(72047, "pdf billing_code or pdf billing_no is error"), - - /** - * insert too many invoice, need auth again - */ - CODE_72048(72048, "insert too many invoice, need auth again"), - - /** - * never auth - */ - CODE_72049(72049, "never auth"), - - /** - * auth expired, need auth again - */ - CODE_72050(72050, "auth expired, need auth again"), - - /** - * app type error - */ - CODE_72051(72051, "app type error"), - - /** - * get too many invoice - */ - CODE_72052(72052, "get too many invoice"), - - /** - * user never auth - */ - CODE_72053(72053, "user never auth"), - - /** - * invoices is inserting, wait a moment please - */ - CODE_72054(72054, "invoices is inserting, wait a moment please"), - - /** - * too many invoices - */ - CODE_72055(72055, "too many invoices"), - - /** - * order_id repeated, please check order_id - */ - CODE_72056(72056, "order_id repeated, please check order_id"), - - /** - * today insert limit - */ - CODE_72057(72057, "today insert limit"), - - /** - * callback biz error - */ - CODE_72058(72058, "callback biz error"), - - /** - * this invoice is giving to others, wait a moment please - */ - CODE_72059(72059, "this invoice is giving to others, wait a moment please"), - - /** - * this invoice has been cancelled, check the reimburse_status please - */ - CODE_72060(72060, "this invoice has been cancelled, check the reimburse_status please"), - - /** - * this invoice has been closed, check the reimburse_status please - */ - CODE_72061(72061, "this invoice has been closed, check the reimburse_status please"), - - /** - * this code_auth_key is limited, try other code_auth_key please - */ - CODE_72062(72062, "this code_auth_key is limited, try other code_auth_key please"), - - /** - * biz contact is empty, set contact first please - */ - CODE_72063(72063, "biz contact is empty, set contact first please"), - - /** - * tbc error - */ - CODE_72064(72064, "tbc error"), - - /** - * tbc logic error - */ - CODE_72065(72065, "tbc logic error"), - - /** - * the card is send for advertisement, not allow modify time and budget - */ - CODE_72066(72066, "the card is send for advertisement, not allow modify time and budget"), - - /** - * BatchInsertAuthKey_Expired - */ - CODE_72067(72067, "BatchInsertAuthKey_Expired"), - - /** - * BatchInsertAuthKey_Owner - */ - CODE_72068(72068, "BatchInsertAuthKey_Owner"), - - /** - * BATCHTASKRUN_ERROR - */ - CODE_72069(72069, "BATCHTASKRUN_ERROR"), - - /** - * BIZ_TITLE_KEY_OUT_TIME - */ - CODE_72070(72070, "BIZ_TITLE_KEY_OUT_TIME"), - - /** - * Discern_GaoPeng_Error - */ - CODE_72071(72071, "Discern_GaoPeng_Error"), - - /** - * Discern_Type_Error - */ - CODE_72072(72072, "Discern_Type_Error"), - - /** - * Fee_Error - */ - CODE_72073(72073, "Fee_Error"), - - /** - * HAS_Auth - */ - CODE_72074(72074, "HAS_Auth"), - - /** - * HAS_SEND - */ - CODE_72075(72075, "HAS_SEND"), - - /** - * INVOICESIGN - */ - CODE_72076(72076, "INVOICESIGN"), - - /** - * KEY_DELETED - */ - CODE_72077(72077, "KEY_DELETED"), - - /** - * KEY_EXPIRED - */ - CODE_72078(72078, "KEY_EXPIRED"), - - /** - * MOUNT_ERROR - */ - CODE_72079(72079, "MOUNT_ERROR"), - - /** - * NO_FOUND - */ - CODE_72080(72080, "NO_FOUND"), - - /** - * No_Pull_Pdf - */ - CODE_72081(72081, "No_Pull_Pdf"), - - /** - * PDF_CHECK_ERROR - */ - CODE_72082(72082, "PDF_CHECK_ERROR"), - - /** - * PULL_PDF_FAIL - */ - CODE_72083(72083, "PULL_PDF_FAIL"), - - /** - * PUSH_BIZ_EMPTY - */ - CODE_72084(72084, "PUSH_BIZ_EMPTY"), - - /** - * SDK_APPID_ERROR - */ - CODE_72085(72085, "SDK_APPID_ERROR"), - - /** - * SDK_BIZ_ERROR - */ - CODE_72086(72086, "SDK_BIZ_ERROR"), - - /** - * SDK_URL_ERROR - */ - CODE_72087(72087, "SDK_URL_ERROR"), - - /** - * Search_Title_Fail - */ - CODE_72088(72088, "Search_Title_Fail"), - - /** - * TITLE_BUSY - */ - CODE_72089(72089, "TITLE_BUSY"), - - /** - * TITLE_NO_FOUND - */ - CODE_72090(72090, "TITLE_NO_FOUND"), - - /** - * TOKEN_ERR - */ - CODE_72091(72091, "TOKEN_ERR"), - - /** - * USER_TITLE_NOT_FOUND - */ - CODE_72092(72092, "USER_TITLE_NOT_FOUND"), - - /** - * Verify_3rd_Fail - */ - CODE_72093(72093, "Verify_3rd_Fail"), - - /** - * sys error make out invoice failed - */ - CODE_73000(73000, "sys error make out invoice failed"), - - /** - * wxopenid error - */ - CODE_73001(73001, "wxopenid error"), - - /** - * ddh orderid empty - */ - CODE_73002(73002, "ddh orderid empty"), - - /** - * wxopenid empty - */ - CODE_73003(73003, "wxopenid empty"), - - /** - * fpqqlsh empty - */ - CODE_73004(73004, "fpqqlsh empty"), - - /** - * not a commercial - */ - CODE_73005(73005, "not a commercial"), - - /** - * kplx empty - */ - CODE_73006(73006, "kplx empty"), - - /** - * nsrmc empty - */ - CODE_73007(73007, "nsrmc empty"), - - /** - * nsrdz empty - */ - CODE_73008(73008, "nsrdz empty"), - - /** - * nsrdh empty - */ - CODE_73009(73009, "nsrdh empty"), - - /** - * ghfmc empty - */ - CODE_73010(73010, "ghfmc empty"), - - /** - * kpr empty - */ - CODE_73011(73011, "kpr empty"), - - /** - * jshj empty - */ - CODE_73012(73012, "jshj empty"), - - /** - * hjje empty - */ - CODE_73013(73013, "hjje empty"), - - /** - * hjse empty - */ - CODE_73014(73014, "hjse empty"), - - /** - * hylx empty - */ - CODE_73015(73015, "hylx empty"), - - /** - * nsrsbh empty - */ - CODE_73016(73016, "nsrsbh empty"), - - /** - * kaipiao plat error - */ - CODE_73100(73100, "kaipiao plat error"), - - /** - * nsrsbh not cmp - */ - CODE_73101(73101, "nsrsbh not cmp"), - - /** - * invalid wxa appid in url_cell, wxa appid is need to bind biz appid - */ - CODE_73103(73103, "invalid wxa appid in url_cell, wxa appid is need to bind biz appid"), - - /** - * reach frequency limit - */ - CODE_73104(73104, "reach frequency limit"), - - /** - * Kp plat make invoice timeout, please try again with the same fpqqlsh - */ - CODE_73105(73105, "Kp plat make invoice timeout, please try again with the same fpqqlsh"), - - /** - * Fpqqlsh exist with different ddh - */ - CODE_73106(73106, "Fpqqlsh exist with different ddh"), - - /** - * Fpqqlsh is processing, please wait and query later - */ - CODE_73107(73107, "Fpqqlsh is processing, please wait and query later"), - - /** - * This ddh with other fpqqlsh already exist - */ - CODE_73108(73108, "This ddh with other fpqqlsh already exist"), - - /** - * This Fpqqlsh not exist in kpplat - */ - CODE_73109(73109, "This Fpqqlsh not exist in kpplat"), - - /** - * get card detail by card id and code fail - */ - CODE_73200(73200, "get card detail by card id and code fail"), - - /** - * get cloud invoice record fail - */ - CODE_73201(73201, "get cloud invoice record fail"), - - /** - * get appinfo fail - */ - CODE_73202(73202, "get appinfo fail"), - - /** - * get invoice category or rule kv error - */ - CODE_73203(73203, "get invoice category or rule kv error"), - - /** - * request card not exist - */ - CODE_73204(73204, "request card not exist"), - - /** - * 朋友的券玩法升级中,当前暂停创建,请创建其他类型卡券 - */ - CODE_73205(73205, "朋友的券玩法升级中,当前暂停创建,请创建其他类型卡券"), - - /** - * 朋友的券玩法升级中,当前暂停券点充值,请创建其他类型卡券 - */ - CODE_73206(73206, "朋友的券玩法升级中,当前暂停券点充值,请创建其他类型卡券"), - - /** - * 朋友的券玩法升级中,当前暂停开通券点账户 - */ - CODE_73207(73207, "朋友的券玩法升级中,当前暂停开通券点账户"), - - /** - * 朋友的券玩法升级中,当前不支持修改库存 - */ - CODE_73208(73208, "朋友的券玩法升级中,当前不支持修改库存"), - - /** - * 朋友的券玩法升级中,当前不支持修改有效期 - */ - CODE_73209(73209, "朋友的券玩法升级中,当前不支持修改有效期"), - - /** - * 当前批次不支持修改卡券批次库存 - */ - CODE_73210(73210, "当前批次不支持修改卡券批次库存"), - - /** - * 不再支持配置网页链接跳转,请选择小程序替代 - */ - CODE_73211(73211, "不再支持配置网页链接跳转,请选择小程序替代"), - - /** - * unauthorized backup member - */ - CODE_73212(73212, "unauthorized backup member"), - - /** - * invalid code type - */ - CODE_73213(73213, "invalid code type"), - - /** - * the user is already a member - */ - CODE_73214(73214, "the user is already a member"), - - /** - * 支付打通券能力已下线,请直接使用微信支付代金券API:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter1_1.shtml - */ - CODE_73215(73215, "支付打通券能力已下线,请直接使用微信支付代金券API:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter1_1.shtml"), - - /** - * 不合法的按钮名字,请从中选择一个:使用礼品卡/立即使用/去点外卖 - */ - CODE_73216(73216, "不合法的按钮名字,请从中选择一个:使用礼品卡/立即使用/去点外卖"), - - /** - * 礼品卡本身没有设置appname和path,不允许在修改接口设置 - */ - CODE_73217(73217, "礼品卡本身没有设置appname和path,不允许在修改接口设置"), - - /** - * 未授权使用礼品卡落地页跳转小程序功能 - */ - CODE_73218(73218, "未授权使用礼品卡落地页跳转小程序功能"), - - /** - * not find this wx_hotel_id info - */ - CODE_74000(74000, "not find this wx_hotel_id info"), - - /** - * request some param empty - */ - CODE_74001(74001, "request some param empty"), - - /** - * request some param error - */ - CODE_74002(74002, "request some param error"), - - /** - * request some param error - */ - CODE_74003(74003, "request some param error"), - - /** - * datetime error - */ - CODE_74004(74004, "datetime error"), - - /** - * checkin mode error - */ - CODE_74005(74005, "checkin mode error"), - - /** - * carid from error - */ - CODE_74007(74007, "carid from error"), - - /** - * this hotel routecode not exist - */ - CODE_74008(74008, "this hotel routecode not exist"), - - /** - * this hotel routecode info error contract developer - */ - CODE_74009(74009, "this hotel routecode info error contract developer"), - - /** - * maybe not support report mode - */ - CODE_74010(74010, "maybe not support report mode"), - - /** - * pic deocde not ok maybe its not good picdata - */ - CODE_74011(74011, "pic deocde not ok maybe its not good picdata"), - - /** - * verify sys erro - */ - CODE_74021(74021, "verify sys erro"), - - /** - * inner police erro - */ - CODE_74022(74022, "inner police erro"), - - /** - * unable to detect the face - */ - CODE_74023(74023, "unable to detect the face"), - - /** - * report checkin 2 lvye sys erro - */ - CODE_74040(74040, "report checkin 2 lvye sys erro"), - - /** - * report checkou 2 lvye sys erro - */ - CODE_74041(74041, "report checkou 2 lvye sys erro"), - - /** - * some param emtpy please check - */ - CODE_75001(75001, "some param emtpy please check"), - - /** - * param illegal please check - */ - CODE_75002(75002, "param illegal please check"), - - /** - * sys error kv store error - */ - CODE_75003(75003, "sys error kv store error"), - - /** - * sys error kvstring store error - */ - CODE_75004(75004, "sys error kvstring store error"), - - /** - * product not exist please check your product_id - */ - CODE_75005(75005, "product not exist please check your product_id"), - - /** - * order not exist please check order_id and buyer_appid - */ - CODE_75006(75006, "order not exist please check order_id and buyer_appid"), - - /** - * do not allow this status to change please check this order_id status now - */ - CODE_75007(75007, "do not allow this status to change please check this order_id status now"), - - /** - * product has exist please use new id - */ - CODE_75008(75008, "product has exist please use new id"), - - /** - * notify order status failed - */ - CODE_75009(75009, "notify order status failed"), - - /** - * buyer bussiness info not exist - */ - CODE_75010(75010, "buyer bussiness info not exist"), - - /** - * you had registered - */ - CODE_75011(75011, "you had registered"), - - /** - * store image key to kv error, please try again - */ - CODE_75012(75012, "store image key to kv error, please try again"), - - /** - * get image fail, please check you image key - */ - CODE_75013(75013, "get image fail, please check you image key"), - - /** - * this key is not belong to you - */ - CODE_75014(75014, "this key is not belong to you"), - - /** - * this key is expired - */ - CODE_75015(75015, "this key is expired"), - - /** - * encrypt decode key fail - */ - CODE_75016(75016, "encrypt decode key fail"), - - /** - * encrypt encode key fail - */ - CODE_75017(75017, "encrypt encode key fail"), - - /** - * bind buyer business info fail please contact us - */ - CODE_75018(75018, "bind buyer business info fail please contact us"), - - /** - * this key is empty, user may not upload file - */ - CODE_75019(75019, "this key is empty, user may not upload file"), - - /** - * 系统错误,请稍后再试 - */ - CODE_80000(80000, "系统错误,请稍后再试"), - - /** - * 参数格式校验错误 - */ - CODE_80001(80001, "参数格式校验错误"), - - /** - * 签名失败 - */ - CODE_80002(80002, "签名失败"), - - /** - * 该日期订单未生成 - */ - CODE_80003(80003, "该日期订单未生成"), - - /** - * 用户未绑卡 - */ - CODE_80004(80004, "用户未绑卡"), - - /** - * 姓名不符 - */ - CODE_80005(80005, "姓名不符"), - - /** - * 身份证不符 - */ - CODE_80006(80006, "身份证不符"), - - /** - * 获取城市信息失败 - */ - CODE_80007(80007, "获取城市信息失败"), - - /** - * 未找到指定少儿信息 - */ - CODE_80008(80008, "未找到指定少儿信息"), - - /** - * 少儿身份证不符 - */ - CODE_80009(80009, "少儿身份证不符"), - - /** - * 少儿未绑定 - */ - CODE_80010(80010, "少儿未绑定"), - - /** - * 签约号不符 - */ - CODE_80011(80011, "签约号不符"), - - /** - * 该地区局方配置不存在 - */ - CODE_80012(80012, "该地区局方配置不存在"), - - /** - * 调用方appid与局方配置不匹配 - */ - CODE_80013(80013, "调用方appid与局方配置不匹配"), - - /** - * 获取消息账号失败 - */ - CODE_80014(80014, "获取消息账号失败"), - - /** - * 非法的插件版本 - */ - CODE_80066(80066, "非法的插件版本"), - - /** - * 找不到使用的插件 - */ - CODE_80067(80067, "找不到使用的插件"), - - /** - * 没有权限使用该插件 - */ - CODE_80082(80082, "没有权限使用该插件"), - - /** - * 商家未接入 - */ - CODE_80101(80101, "商家未接入"), - - /** - * 实名校验code不存在 - */ - CODE_80111(80111, "实名校验code不存在"), - - /** - * code并发冲突 - */ - CODE_80112(80112, "code并发冲突"), - - /** - * 无效code - */ - CODE_80113(80113, "无效code"), - - /** - * report_type无效 - */ - CODE_80201(80201, "report_type无效"), - - /** - * service_type无效 - */ - CODE_80202(80202, "service_type无效"), - - /** - * 申请单不存在 - */ - CODE_80300(80300, "申请单不存在"), - - /** - * 申请单不属于该账号 - */ - CODE_80301(80301, "申请单不属于该账号"), - - /** - * 激活号段有重叠 - */ - CODE_80302(80302, "激活号段有重叠"), - - /** - * 码格式错误 - */ - CODE_80303(80303, "码格式错误"), - - /** - * 该码未激活 - */ - CODE_80304(80304, "该码未激活"), - - /** - * 激活失败 - */ - CODE_80305(80305, "激活失败"), - - /** - * 码索引超出申请范围 - */ - CODE_80306(80306, "码索引超出申请范围"), - - /** - * 申请已存在 - */ - CODE_80307(80307, "申请已存在"), - - /** - * 子任务未完成 - */ - CODE_80308(80308, "子任务未完成"), - - /** - * 子任务文件过期 - */ - CODE_80309(80309, "子任务文件过期"), - - /** - * 子任务不存在 - */ - CODE_80310(80310, "子任务不存在"), - - /** - * 获取文件失败 - */ - CODE_80311(80311, "获取文件失败"), - - /** - * 加密数据失败 - */ - CODE_80312(80312, "加密数据失败"), - - /** - * 加密数据密钥不存在,请联系接口人申请 - */ - CODE_80313(80313, "加密数据密钥不存在,请联系接口人申请"), - - /** - * can not set page_id in AddGiftCardPage - */ - CODE_81000(81000, "can not set page_id in AddGiftCardPage"), - - /** - * card_list is empty - */ - CODE_81001(81001, "card_list is empty"), - - /** - * card_id is not giftcard - */ - CODE_81002(81002, "card_id is not giftcard"), - - /** - * banner_pic_url is empty - */ - CODE_81004(81004, "banner_pic_url is empty"), - - /** - * banner_pic_url is not from cdn - */ - CODE_81005(81005, "banner_pic_url is not from cdn"), - - /** - * giftcard_wrap_pic_url_list is empty - */ - CODE_81006(81006, "giftcard_wrap_pic_url_list is empty"), - - /** - * giftcard_wrap_pic_url_list is not from cdn - */ - CODE_81007(81007, "giftcard_wrap_pic_url_list is not from cdn"), - - /** - * address is empty - */ - CODE_81008(81008, "address is empty"), - - /** - * service_phone is invalid - */ - CODE_81009(81009, "service_phone is invalid"), - - /** - * biz_description is empty - */ - CODE_81010(81010, "biz_description is empty"), - - /** - * invalid page_id - */ - CODE_81011(81011, "invalid page_id"), - - /** - * invalid order_id - */ - CODE_81012(81012, "invalid order_id"), - - /** - * invalid TIME_RANGE, begin_time + 31day must less than end_time - */ - CODE_81013(81013, "invalid TIME_RANGE, begin_time + 31day must less than end_time"), - - /** - * invalid count! count must equal or less than 100 - */ - CODE_81014(81014, "invalid count! count must equal or less than 100"), - - /** - * invalid category_index OR category.title is empty OR is_banner but has_category_index - */ - CODE_81015(81015, "invalid category_index OR category.title is empty OR is_banner but has_category_index"), - - /** - * is_banner is more than 1 - */ - CODE_81016(81016, "is_banner is more than 1"), - - /** - * order status error, please check pay status or gifting_status - */ - CODE_81017(81017, "order status error, please check pay status or gifting_status"), - - /** - * refund reduplicate, the order is already refunded - */ - CODE_81018(81018, "refund reduplicate, the order is already refunded"), - - /** - * lock order fail! the order is refunding by another request - */ - CODE_81019(81019, "lock order fail! the order is refunding by another request"), - - /** - * Invalid Args! page_id.size!=0 but all==true, or page_id.size==0 but all==false. - */ - CODE_81020(81020, "Invalid Args! page_id.size!=0 but all==true, or page_id.size==0 but all==false."), - - /** - * Empty theme_pic_url. - */ - CODE_81021(81021, "Empty theme_pic_url."), - - /** - * Empty theme.title. - */ - CODE_81022(81022, "Empty theme.title."), - - /** - * Empty theme.title_title. - */ - CODE_81023(81023, "Empty theme.title_title."), - - /** - * Empty theme.item_list. - */ - CODE_81024(81024, "Empty theme.item_list."), - - /** - * Empty theme.pic_item_list. - */ - CODE_81025(81025, "Empty theme.pic_item_list."), - - /** - * Invalid theme.title.length . - */ - CODE_81026(81026, "Invalid theme.title.length ."), - - /** - * Empty background_pic_url. - */ - CODE_81027(81027, "Empty background_pic_url."), - - /** - * Empty default_gifting_msg. - */ - CODE_81028(81028, "Empty default_gifting_msg."), - - /** - * Duplicate order_id - */ - CODE_81029(81029, "Duplicate order_id"), - - /** - * PreAlloc code fail - */ - CODE_81030(81030, "PreAlloc code fail"), - - /** - * Too many theme participate_activity - */ - CODE_81031(81031, "Too many theme participate_activity"), - - /** - * biz_template_id not exist - */ - CODE_82000(82000, "biz_template_id not exist"), - - /** - * result_page_style_id not exist - */ - CODE_82001(82001, "result_page_style_id not exist"), - - /** - * deal_msg_style_id not exist - */ - CODE_82002(82002, "deal_msg_style_id not exist"), - - /** - * card_style_id not exist - */ - CODE_82003(82003, "card_style_id not exist"), - - /** - * biz template not audit OK - */ - CODE_82010(82010, "biz template not audit OK"), - - /** - * biz template banned - */ - CODE_82011(82011, "biz template banned"), - - /** - * user not use service first - */ - CODE_82020(82020, "user not use service first"), - - /** - * exceed long period - */ - CODE_82021(82021, "exceed long period"), - - /** - * exceed long period max send cnt - */ - CODE_82022(82022, "exceed long period max send cnt"), - - /** - * exceed short period max send cnt - */ - CODE_82023(82023, "exceed short period max send cnt"), - - /** - * exceed data size limit - */ - CODE_82024(82024, "exceed data size limit"), - - /** - * invalid url - */ - CODE_82025(82025, "invalid url"), - - /** - * service disabled - */ - CODE_82026(82026, "service disabled"), - - /** - * invalid miniprogram appid - */ - CODE_82027(82027, "invalid miniprogram appid"), - - /** - * wx_cs_code should not be empty. - */ - CODE_82100(82100, "wx_cs_code should not be empty."), - - /** - * wx_cs_code is invalid. - */ - CODE_82101(82101, "wx_cs_code is invalid."), - - /** - * wx_cs_code is expire. - */ - CODE_82102(82102, "wx_cs_code is expire."), - - /** - * user_ip should not be empty. - */ - CODE_82103(82103, "user_ip should not be empty."), - - /** - * 公众平台账号与服务id不匹配 - */ - CODE_82200(82200, "公众平台账号与服务id不匹配"), - - /** - * 该停车场已存在,请勿重复添加 - */ - CODE_82201(82201, "该停车场已存在,请勿重复添加"), - - /** - * 该停车场信息不存在,请先导入 - */ - CODE_82202(82202, "该停车场信息不存在,请先导入"), - - /** - * 停车场价格格式不正确 - */ - CODE_82203(82203, "停车场价格格式不正确"), - - /** - * appid与code不匹配 - */ - CODE_82204(82204, "appid与code不匹配"), - - /** - * wx_park_code字段为空 - */ - CODE_82205(82205, "wx_park_code字段为空"), - - /** - * wx_park_code无效或已过期 - */ - CODE_82206(82206, "wx_park_code无效或已过期"), - - /** - * 电话字段为空 - */ - CODE_82207(82207, "电话字段为空"), - - /** - * 关闭时间格式不正确 - */ - CODE_82208(82208, "关闭时间格式不正确"), - - /** - * 该appid不支持开通城市服务插件 - */ - CODE_82300(82300, "该appid不支持开通城市服务插件"), - - /** - * 添加插件失败 - */ - CODE_82301(82301, "添加插件失败"), - - /** - * 未添加城市服务插件 - */ - CODE_82302(82302, "未添加城市服务插件"), - - /** - * fileid无效 - */ - CODE_82303(82303, "fileid无效"), - - /** - * 临时文件过期 - */ - CODE_82304(82304, "临时文件过期"), - - /** - * there is some param not exist - */ - CODE_83000(83000, "there is some param not exist"), - - /** - * system error - */ - CODE_83001(83001, "system error"), - - /** - * create_url_sence_failed - */ - CODE_83002(83002, "create_url_sence_failed"), - - /** - * appid maybe error or retry - */ - CODE_83003(83003, "appid maybe error or retry"), - - /** - * create appid auth failed or retry - */ - CODE_83004(83004, "create appid auth failed or retry"), - - /** - * wxwebencrytoken errro - */ - CODE_83005(83005, "wxwebencrytoken errro"), - - /** - * wxwebencrytoken expired or no exist - */ - CODE_83006(83006, "wxwebencrytoken expired or no exist"), - - /** - * wxwebencrytoken expired - */ - CODE_83007(83007, "wxwebencrytoken expired"), - - /** - * wxwebencrytoken no auth - */ - CODE_83008(83008, "wxwebencrytoken no auth"), - - /** - * wxwebencrytoken not the mate with openid - */ - CODE_83009(83009, "wxwebencrytoken not the mate with openid"), - - /** - * no exist service - */ - CODE_83200(83200, "no exist service"), - - /** - * uin has not the service - */ - CODE_83201(83201, "uin has not the service"), - - /** - * params is not json or not json array - */ - CODE_83202(83202, "params is not json or not json array"), - - /** - * params num exceed 10 - */ - CODE_83203(83203, "params num exceed 10"), - - /** - * object has not key - */ - CODE_83204(83204, "object has not key"), - - /** - * key is not string - */ - CODE_83205(83205, "key is not string"), - - /** - * object has not value - */ - CODE_83206(83206, "object has not value"), - - /** - * value is not string - */ - CODE_83207(83207, "value is not string"), - - /** - * key or value is empty - */ - CODE_83208(83208, "key or value is empty"), - - /** - * key exist repeated - */ - CODE_83209(83209, "key exist repeated"), - - /** - * invalid identify id - */ - CODE_84001(84001, "invalid identify id"), - - /** - * user data expired - */ - CODE_84002(84002, "user data expired"), - - /** - * user data not exist - */ - CODE_84003(84003, "user data not exist"), - - /** - * video upload fail! - */ - CODE_84004(84004, "video upload fail!"), - - /** - * video download fail! please try again - */ - CODE_84005(84005, "video download fail! please try again"), - - /** - * name or id_card_number empty - */ - CODE_84006(84006, "name or id_card_number empty"), - - /** - * 微信号不存在或微信号设置为不可搜索 user not exist or user cannot be searched - */ - CODE_85001(85001, "微信号不存在或微信号设置为不可搜索"), - - /** - * 小程序绑定的体验者数量达到上限 number of tester reach bind limit - */ - CODE_85002(85002, "小程序绑定的体验者数量达到上限"), - - /** - * 微信号绑定的小程序体验者达到上限 user already bind too many weapps - */ - CODE_85003(85003, "微信号绑定的小程序体验者达到上限"), - - /** - * 微信号已经绑定 user already bind - */ - CODE_85004(85004, "微信号已经绑定"), - - /** - * appid not bind weapp - */ - CODE_85005(85005, "appid not bind weapp"), - - /** - * 标签格式错误 tag is in invalid format - */ - CODE_85006(85006, "标签格式错误"), - - /** - * 页面路径错误 page is in invalid format - */ - CODE_85007(85007, "页面路径错误"), - - /** - * 当前小程序没有已经审核通过的类目,请添加类目成功后重试 category is in invalid format - */ - CODE_85008(85008, "当前小程序没有已经审核通过的类目,请添加类目成功后重试"), - - /** - * 已经有正在审核的版本 already submit a version under auditing - */ - CODE_85009(85009, "已经有正在审核的版本"), - - /** - * item_list 有项目为空 missing required data - */ - CODE_85010(85010, "item_list 有项目为空"), - - /** - * 标题填写错误 title is in invalid format - */ - CODE_85011(85011, "标题填写错误"), - - /** - * 无效的审核 id invalid audit id - */ - CODE_85012(85012, "无效的审核 id"), - - /** - * 无效的自定义配置 invalid ext_json, parse fail or containing invalid path - */ - CODE_85013(85013, "无效的自定义配置"), - - /** - * 无效的模板编号 template not exist - */ - CODE_85014(85014, "无效的模板编号"), - - /** - * 该账号不是小程序账号/版本输入错误 - */ - CODE_85015(85015, "该账号不是小程序账号/版本输入错误"), - - /** - * 版本输入错误 - */ + /** + * 系统繁忙,此时请开发者稍候再试 system error + */ + CODE_1(-1, "系统繁忙,此时请开发者稍候再试"), + + /** + * 请求成功 ok + */ + CODE_0(0, "请求成功"), + + /** + * POST参数非法 + */ + CODE_1003(1003, "POST参数非法"), + + /** + * 商品id不存在 + */ + CODE_20002(20002, "商品id不存在"), + + /** + * 获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口 invalid credential, access_token is invalid or not latest + */ + CODE_40001(40001, "获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口"), + + /** + * 不合法的凭证类型 invalid grant_type + */ + CODE_40002(40002, "不合法的凭证类型"), + + /** + * 不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID invalid openid + */ + CODE_40003(40003, "不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID"), + + /** + * 不合法的媒体文件类型 invalid media type + */ + CODE_40004(40004, "不合法的媒体文件类型"), + + /** + * 上传素材文件格式不对 invalid file type + */ + CODE_40005(40005, "上传素材文件格式不对"), + + /** + * 上传素材文件大小超出限制 invalid meida size + */ + CODE_40006(40006, "上传素材文件大小超出限制"), + + /** + * 不合法的媒体文件 id invalid media_id + */ + CODE_40007(40007, "不合法的媒体文件 id"), + + /** + * 不合法的消息类型 invalid message type + */ + CODE_40008(40008, "不合法的消息类型"), + + /** + * 图片尺寸太大 invalid image size + */ + CODE_40009(40009, "图片尺寸太大"), + + /** + * 不合法的语音文件大小 invalid voice size + */ + CODE_40010(40010, "不合法的语音文件大小"), + + /** + * 不合法的视频文件大小 invalid video size + */ + CODE_40011(40011, "不合法的视频文件大小"), + + /** + * 不合法的缩略图文件大小 invalid thumb size + */ + CODE_40012(40012, "不合法的缩略图文件大小"), + + /** + * 不合法的appid invalid appid + */ + CODE_40013(40013, "不合法的appid"), + + /** + * 不合法的 access_token ,请开发者认真比对 access_token 的有效性(如是否过期),或查看是否正在为恰当的公众号调用接口 invalid access_token + */ + CODE_40014(40014, "不合法的 access_token ,请开发者认真比对 access_token 的有效性(如是否过期),或查看是否正在为恰当的公众号调用接口"), + + /** + * 不合法的菜单类型 invalid menu type + */ + CODE_40015(40015, "不合法的菜单类型"), + + /** + * 不合法的按钮个数 invalid button size + */ + CODE_40016(40016, "不合法的按钮个数"), + + /** + * 不合法的按钮类型 invalid button type + */ + CODE_40017(40017, "不合法的按钮类型"), + + /** + * 不合法的按钮名字长度 invalid button name size + */ + CODE_40018(40018, "不合法的按钮名字长度"), + + /** + * 不合法的按钮 KEY 长度 invalid button key size + */ + CODE_40019(40019, "不合法的按钮 KEY 长度"), + + /** + * 不合法的按钮 URL 长度 invalid button url size + */ + CODE_40020(40020, "不合法的按钮 URL 长度"), + + /** + * 不合法的菜单版本号 invalid menu version + */ + CODE_40021(40021, "不合法的菜单版本号"), + + /** + * 不合法的子菜单级数 invalid sub_menu level + */ + CODE_40022(40022, "不合法的子菜单级数"), + + /** + * 不合法的子菜单按钮个数 invalid sub button size + */ + CODE_40023(40023, "不合法的子菜单按钮个数"), + + /** + * 不合法的子菜单按钮类型 invalid sub button type + */ + CODE_40024(40024, "不合法的子菜单按钮类型"), + + /** + * 不合法的子菜单按钮名字长度 invalid sub button name size + */ + CODE_40025(40025, "不合法的子菜单按钮名字长度"), + + /** + * 不合法的子菜单按钮 KEY 长度 invalid sub button key size + */ + CODE_40026(40026, "不合法的子菜单按钮 KEY 长度"), + + /** + * 不合法的子菜单按钮 URL 长度 invalid sub button url size + */ + CODE_40027(40027, "不合法的子菜单按钮 URL 长度"), + + /** + * 不合法的自定义菜单使用用户 invalid menu api user + */ + CODE_40028(40028, "不合法的自定义菜单使用用户"), + + /** + * 无效的 oauth_code invalid code + */ + CODE_40029(40029, "无效的 oauth_code"), + + /** + * 不合法的 refresh_token invalid refresh_token + */ + CODE_40030(40030, "不合法的 refresh_token"), + + /** + * 不合法的 openid 列表 invalid openid list + */ + CODE_40031(40031, "不合法的 openid 列表"), + + /** + * 不合法的 openid 列表长度 invalid openid list size + */ + CODE_40032(40032, "不合法的 openid 列表长度"), + + /** + * 不合法的请求字符,不能包含 \\uxxxx 格式的字符 invalid charset. please check your request, if include \\uxxxx will create fail! + */ + CODE_40033(40033, "不合法的请求字符,不能包含 \\uxxxx 格式的字符"), + + /** + * invalid template size + */ + CODE_40034(40034, "invalid template size"), + + /** + * 不合法的参数 invalid args size + */ + CODE_40035(40035, "不合法的参数"), + + /** + * 不合法的 template_id 长度 invalid template_id size + */ + CODE_40036(40036, "不合法的 template_id 长度"), + + /** + * 不合法的 template_id invalid template_id + */ + CODE_40037(40037, "不合法的 template_id"), + + /** + * 不合法的请求格式 invalid packaging type + */ + CODE_40038(40038, "不合法的请求格式"), + + /** + * 不合法的 URL 长度 invalid url size + */ + CODE_40039(40039, "不合法的 URL 长度"), + + /** + * invalid plugin token + */ + CODE_40040(40040, "invalid plugin token"), + + /** + * invalid plugin id + */ + CODE_40041(40041, "invalid plugin id"), + + /** + * invalid plugin session + */ + CODE_40042(40042, "invalid plugin session"), + + /** + * invalid fav type + */ + CODE_40043(40043, "invalid fav type"), + + /** + * invalid size in link.title + */ + CODE_40044(40044, "invalid size in link.title"), + + /** + * invalid size in link.description + */ + CODE_40045(40045, "invalid size in link.description"), + + /** + * invalid size in link.iconurl + */ + CODE_40046(40046, "invalid size in link.iconurl"), + + /** + * invalid size in link.url + */ + CODE_40047(40047, "invalid size in link.url"), + + /** + * 无效的url invalid url domain + */ + CODE_40048(40048, "无效的url"), + + /** + * invalid score report type + */ + CODE_40049(40049, "invalid score report type"), + + /** + * 不合法的分组 id invalid timeline type + */ + CODE_40050(40050, "不合法的分组 id"), + + /** + * 分组名字不合法 invalid group name + */ + CODE_40051(40051, "分组名字不合法"), + + /** + * invalid action name + */ + CODE_40052(40052, "invalid action name"), + + /** + * invalid action info, please check document + */ + CODE_40053(40053, "invalid action info, please check document"), + + /** + * 不合法的子菜单按钮 url 域名 invalid sub button url domain + */ + CODE_40054(40054, "不合法的子菜单按钮 url 域名"), + + /** + * 不合法的菜单按钮 url 域名 invalid button url domain + */ + CODE_40055(40055, "不合法的菜单按钮 url 域名"), + + /** + * invalid serial code + */ + CODE_40056(40056, "invalid serial code"), + + /** + * invalid tabbar size + */ + CODE_40057(40057, "invalid tabbar size"), + + /** + * invalid tabbar name size + */ + CODE_40058(40058, "invalid tabbar name size"), + + /** + * invalid msg id + */ + CODE_40059(40059, "invalid msg id"), + + /** + * 删除单篇图文时,指定的 article_idx 不合法 invalid article idx + */ + CODE_40060(40060, "删除单篇图文时,指定的 article_idx 不合法"), + + /** + * invalid title size + */ + CODE_40062(40062, "invalid title size"), + + /** + * invalid message_ext size + */ + CODE_40063(40063, "invalid message_ext size"), + + /** + * invalid app type + */ + CODE_40064(40064, "invalid app type"), + + /** + * invalid msg status + */ + CODE_40065(40065, "invalid msg status"), + + /** + * 不合法的 url ,递交的页面被sitemap标记为拦截 invalid url + */ + CODE_40066(40066, "不合法的 url ,递交的页面被sitemap标记为拦截"), + + /** + * invalid tvid + */ + CODE_40067(40067, "invalid tvid"), + + /** + * contain mailcious url + */ + CODE_40068(40068, "contain mailcious url"), + + /** + * invalid hardware type + */ + CODE_40069(40069, "invalid hardware type"), + + /** + * invalid sku info + */ + CODE_40070(40070, "invalid sku info"), + + /** + * invalid card type + */ + CODE_40071(40071, "invalid card type"), + + /** + * invalid location id + */ + CODE_40072(40072, "invalid location id"), + + /** + * invalid card id + */ + CODE_40073(40073, "invalid card id"), + + /** + * invalid pay template id + */ + CODE_40074(40074, "invalid pay template id"), + + /** + * invalid encrypt code + */ + CODE_40075(40075, "invalid encrypt code"), + + /** + * invalid color id + */ + CODE_40076(40076, "invalid color id"), + + /** + * invalid score type + */ + CODE_40077(40077, "invalid score type"), + + /** + * invalid card status + */ + CODE_40078(40078, "invalid card status"), + + /** + * invalid time + */ + CODE_40079(40079, "invalid time"), + + /** + * invalid card ext + */ + CODE_40080(40080, "invalid card ext"), + + /** + * invalid template_id + */ + CODE_40081(40081, "invalid template_id"), + + /** + * invalid banner picture size + */ + CODE_40082(40082, "invalid banner picture size"), + + /** + * invalid banner url size + */ + CODE_40083(40083, "invalid banner url size"), + + /** + * invalid button desc size + */ + CODE_40084(40084, "invalid button desc size"), + + /** + * invalid button url size + */ + CODE_40085(40085, "invalid button url size"), + + /** + * invalid sharelink logo size + */ + CODE_40086(40086, "invalid sharelink logo size"), + + /** + * invalid sharelink desc size + */ + CODE_40087(40087, "invalid sharelink desc size"), + + /** + * invalid sharelink title size + */ + CODE_40088(40088, "invalid sharelink title size"), + + /** + * invalid platform id + */ + CODE_40089(40089, "invalid platform id"), + + /** + * invalid request source (bad client ip) + */ + CODE_40090(40090, "invalid request source (bad client ip)"), + + /** + * invalid component ticket + */ + CODE_40091(40091, "invalid component ticket"), + + /** + * invalid remark name + */ + CODE_40092(40092, "invalid remark name"), + + /** + * not completely ok, err_item will return location_id=-1,check your required_fields in json. + */ + CODE_40093(40093, "not completely ok, err_item will return location_id=-1,check your required_fields in json."), + + /** + * invalid component credential + */ + CODE_40094(40094, "invalid component credential"), + + /** + * bad source of caller + */ + CODE_40095(40095, "bad source of caller"), + + /** + * invalid biztype + */ + CODE_40096(40096, "invalid biztype"), + + /** + * 参数错误 invalid args + */ + CODE_40097(40097, "参数错误"), + + /** + * invalid poiid + */ + CODE_40098(40098, "invalid poiid"), + + /** + * invalid code, this code has consumed. + */ + CODE_40099(40099, "invalid code, this code has consumed."), + + /** + * invalid DateInfo, Make Sure OldDateInfoType==NewDateInfoType && NewBeginTime<=OldBeginTime && OldEndTime<= NewEndTime + */ + CODE_40100(40100, "invalid DateInfo, Make Sure OldDateInfoType==NewDateInfoType && NewBeginTime<=OldBeginTime && OldEndTime<= NewEndTime"), + + /** + * missing parameter + */ + CODE_40101(40101, "missing parameter"), + + /** + * invalid industry id + */ + CODE_40102(40102, "invalid industry id"), + + /** + * invalid industry index + */ + CODE_40103(40103, "invalid industry index"), + + /** + * invalid category id + */ + CODE_40104(40104, "invalid category id"), + + /** + * invalid view type + */ + CODE_40105(40105, "invalid view type"), + + /** + * invalid user name + */ + CODE_40106(40106, "invalid user name"), + + /** + * invalid card id! 1,card status must verify ok; 2,this card must have location_id + */ + CODE_40107(40107, "invalid card id! 1,card status must verify ok; 2,this card must have location_id"), + + /** + * invalid client version + */ + CODE_40108(40108, "invalid client version"), + + /** + * too many code size, must <= 100 + */ + CODE_40109(40109, "too many code size, must <= 100"), + + /** + * have empty code + */ + CODE_40110(40110, "have empty code"), + + /** + * have same code + */ + CODE_40111(40111, "have same code"), + + /** + * can not set bind openid + */ + CODE_40112(40112, "can not set bind openid"), + + /** + * unsupported file type + */ + CODE_40113(40113, "unsupported file type"), + + /** + * invalid index value + */ + CODE_40114(40114, "invalid index value"), + + /** + * invalid session from + */ + CODE_40115(40115, "invalid session from"), + + /** + * invalid code + */ + CODE_40116(40116, "invalid code"), + + /** + * 分组名字不合法 invalid button media_id size + */ + CODE_40117(40117, "分组名字不合法"), + + /** + * media_id 大小不合法 invalid sub button media_id size + */ + CODE_40118(40118, "media_id 大小不合法"), + + /** + * button 类型错误 invalid use button type + */ + CODE_40119(40119, "button 类型错误"), + + /** + * 子 button 类型错误 invalid use sub button type + */ + CODE_40120(40120, "子 button 类型错误"), + + /** + * 不合法的 media_id 类型 invalid media type in view_limited + */ + CODE_40121(40121, "不合法的 media_id 类型"), + + /** + * invalid card quantity + */ + CODE_40122(40122, "invalid card quantity"), + + /** + * invalid task_id + */ + CODE_40123(40123, "invalid task_id"), + + /** + * too many custom field! + */ + CODE_40124(40124, "too many custom field!"), + + /** + * 不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写 invalid appsecret + */ + CODE_40125(40125, "不合法的 AppID ,请开发者检查 AppID 的正确性,避免异常字符,注意大小写"), + + /** + * invalid text size + */ + CODE_40126(40126, "invalid text size"), + + /** + * invalid user-card status! Hint: the card was given to user, but may be deleted or expired or set unavailable ! + */ + CODE_40127(40127, "invalid user-card status! Hint: the card was given to user, but may be deleted or expired or set unavailable !"), + + /** + * invalid media id! must be uploaded by api(cgi-bin/material/add_material) + */ + CODE_40128(40128, "invalid media id! must be uploaded by api(cgi-bin/material/add_material)"), + + /** + * invalid scene + */ + CODE_40129(40129, "invalid scene"), + + /** + * invalid openid list size, at least two openid + */ + CODE_40130(40130, "invalid openid list size, at least two openid"), + + /** + * out of limit of ticket + */ + CODE_40131(40131, "out of limit of ticket"), + + /** + * 微信号不合法 invalid username + */ + CODE_40132(40132, "微信号不合法"), + + /** + * invalid encryt data + */ + CODE_40133(40133, "invalid encryt data"), + + /** + * invalid not supply bonus, can not change card_id which supply bonus to be not supply + */ + CODE_40135(40135, "invalid not supply bonus, can not change card_id which supply bonus to be not supply"), + + /** + * invalid use DepositCodeMode, make sure sku.quantity>DepositCode.quantity + */ + CODE_40136(40136, "invalid use DepositCodeMode, make sure sku.quantity>DepositCode.quantity"), + + /** + * 不支持的图片格式 invalid image format + */ + CODE_40137(40137, "不支持的图片格式"), + + /** + * emphasis word can not be first neither remark + */ + CODE_40138(40138, "emphasis word can not be first neither remark"), + + /** + * invalid sub merchant id + */ + CODE_40139(40139, "invalid sub merchant id"), + + /** + * invalid sub merchant status + */ + CODE_40140(40140, "invalid sub merchant status"), + + /** + * invalid image url + */ + CODE_40141(40141, "invalid image url"), + + /** + * invalid sharecard parameters + */ + CODE_40142(40142, "invalid sharecard parameters"), + + /** + * invalid least cost info, should be 0 + */ + CODE_40143(40143, "invalid least cost info, should be 0"), + + /** + * 1)maybe share_card_list.num or consume_share_self_num too big; 2)maybe card_id_list also has self-card_id;3)maybe card_id_list has many different card_id;4)maybe both consume_share_self_num and share_card_list.num bigger than 0 + */ + CODE_40144(40144, "1)maybe share_card_list.num or consume_share_self_num too big; 2)maybe card_id_list also has self-card_id;3)maybe card_id_list has many different card_id;4)maybe both consume_share_self_num and share_card_list.num bigger than 0"), + + /** + * invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url). + */ + CODE_40145(40145, "invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url)."), + + /** + * invalid openid! card may be marked by other user! + */ + CODE_40146(40146, "invalid openid! card may be marked by other user!"), + + /** + * invalid consume! Consume time overranging restricts. + */ + CODE_40147(40147, "invalid consume! Consume time overranging restricts."), + + /** + * invalid friends card type + */ + CODE_40148(40148, "invalid friends card type"), + + /** + * invalid use time limit + */ + CODE_40149(40149, "invalid use time limit"), + + /** + * invalid card parameters + */ + CODE_40150(40150, "invalid card parameters"), + + /** + * invalid card info, text/pic hit antispam + */ + CODE_40151(40151, "invalid card info, text/pic hit antispam"), + + /** + * invalid group id + */ + CODE_40152(40152, "invalid group id"), + + /** + * self consume cell for friends card must need verify code + */ + CODE_40153(40153, "self consume cell for friends card must need verify code"), + + /** + * invalid voip parameters + */ + CODE_40154(40154, "invalid voip parameters"), + + /** + * 请勿添加其他公众号的主页链接 please don't contain other home page url + */ + CODE_40155(40155, "请勿添加其他公众号的主页链接"), + + /** + * invalid face recognize parameters + */ + CODE_40156(40156, "invalid face recognize parameters"), + + /** + * invalid picture, has no face + */ + CODE_40157(40157, "invalid picture, has no face"), + + /** + * invalid use_custom_code, need be false + */ + CODE_40158(40158, "invalid use_custom_code, need be false"), + + /** + * invalid length for path, or the data is not json string + */ + CODE_40159(40159, "invalid length for path, or the data is not json string"), + + /** + * invalid image file + */ + CODE_40160(40160, "invalid image file"), + + /** + * image file not match + */ + CODE_40161(40161, "image file not match"), + + /** + * invalid lifespan + */ + CODE_40162(40162, "invalid lifespan"), + + /** + * oauth_code已使用 code been used + */ + CODE_40163(40163, "oauth_code已使用"), + + /** + * invalid ip, not in whitelist + */ + CODE_40164(40164, "invalid ip, not in whitelist"), + + /** + * invalid weapp pagepath + */ + CODE_40165(40165, "invalid weapp pagepath"), + + /** + * invalid weapp appid + */ + CODE_40166(40166, "invalid weapp appid"), + + /** + * there is no relation with plugin appid + */ + CODE_40167(40167, "there is no relation with plugin appid"), + + /** + * unlinked weapp card + */ + CODE_40168(40168, "unlinked weapp card"), + + /** + * invalid length for scene, or the data is not json string + */ + CODE_40169(40169, "invalid length for scene, or the data is not json string"), + + /** + * args count exceed count limit + */ + CODE_40170(40170, "args count exceed count limit"), + + /** + * product id can not empty and the length cannot exceed 32 + */ + CODE_40171(40171, "product id can not empty and the length cannot exceed 32"), + + /** + * can not have same product id + */ + CODE_40172(40172, "can not have same product id"), + + /** + * there is no bind relation + */ + CODE_40173(40173, "there is no bind relation"), + + /** + * not card user + */ + CODE_40174(40174, "not card user"), + + /** + * invalid material id + */ + CODE_40175(40175, "invalid material id"), + + /** + * invalid template id + */ + CODE_40176(40176, "invalid template id"), + + /** + * invalid product id + */ + CODE_40177(40177, "invalid product id"), + + /** + * invalid sign + */ + CODE_40178(40178, "invalid sign"), + + /** + * Function is adjusted, rules are not allowed to add or update + */ + CODE_40179(40179, "Function is adjusted, rules are not allowed to add or update"), + + /** + * invalid client tmp token + */ + CODE_40180(40180, "invalid client tmp token"), + + /** + * invalid opengid + */ + CODE_40181(40181, "invalid opengid"), + + /** + * invalid pack_id + */ + CODE_40182(40182, "invalid pack_id"), + + /** + * invalid product_appid, product_appid should bind with wxa_appid + */ + CODE_40183(40183, "invalid product_appid, product_appid should bind with wxa_appid"), + + /** + * invalid url path + */ + CODE_40184(40184, "invalid url path"), + + /** + * invalid auth_token, or auth_token is expired + */ + CODE_40185(40185, "invalid auth_token, or auth_token is expired"), + + /** + * invalid delegate + */ + CODE_40186(40186, "invalid delegate"), + + /** + * invalid ip + */ + CODE_40187(40187, "invalid ip"), + + /** + * invalid scope + */ + CODE_40188(40188, "invalid scope"), + + /** + * invalid width + */ + CODE_40189(40189, "invalid width"), + + /** + * invalid delegate time + */ + CODE_40190(40190, "invalid delegate time"), + + /** + * invalid pic_url + */ + CODE_40191(40191, "invalid pic_url"), + + /** + * invalid author in news + */ + CODE_40192(40192, "invalid author in news"), + + /** + * invalid recommend length + */ + CODE_40193(40193, "invalid recommend length"), + + /** + * illegal recommend + */ + CODE_40194(40194, "illegal recommend"), + + /** + * invalid show_num + */ + CODE_40195(40195, "invalid show_num"), + + /** + * invalid smartmsg media_id + */ + CODE_40196(40196, "invalid smartmsg media_id"), + + /** + * invalid smartmsg media num + */ + CODE_40197(40197, "invalid smartmsg media num"), + + /** + * invalid default msg article size, must be same as show_num + */ + CODE_40198(40198, "invalid default msg article size, must be same as show_num"), + + /** + * 运单 ID 不存在,未查到运单 waybill_id not found + */ + CODE_40199(40199, "运单 ID 不存在,未查到运单"), + + /** + * invalid account type + */ + CODE_40200(40200, "invalid account type"), + + /** + * invalid check url + */ + CODE_40201(40201, "invalid check url"), + + /** + * invalid check action + */ + CODE_40202(40202, "invalid check action"), + + /** + * invalid check operator + */ + CODE_40203(40203, "invalid check operator"), + + /** + * can not delete wash or rumor article + */ + CODE_40204(40204, "can not delete wash or rumor article"), + + /** + * invalid check keywords string + */ + CODE_40205(40205, "invalid check keywords string"), + + /** + * invalid check begin stamp + */ + CODE_40206(40206, "invalid check begin stamp"), + + /** + * invalid check alive seconds + */ + CODE_40207(40207, "invalid check alive seconds"), + + /** + * invalid check notify id + */ + CODE_40208(40208, "invalid check notify id"), + + /** + * invalid check notify msg + */ + CODE_40209(40209, "invalid check notify msg"), + + /** + * pages 中的path参数不存在或为空 invalid check wxa path + */ + CODE_40210(40210, "pages 中的path参数不存在或为空"), + + /** + * invalid scope_data + */ + CODE_40211(40211, "invalid scope_data"), + + /** + * paegs 当中存在不合法的query,query格式遵循URL标准,即k1=v1&k2=v2 invalid query + */ + CODE_40212(40212, "paegs 当中存在不合法的query,query格式遵循URL标准,即k1=v1&k2=v2"), + + /** + * invalid href tag + */ + CODE_40213(40213, "invalid href tag"), + + /** + * invalid href text + */ + CODE_40214(40214, "invalid href text"), + + /** + * invalid image count + */ + CODE_40215(40215, "invalid image count"), + + /** + * invalid desc + */ + CODE_40216(40216, "invalid desc"), + + /** + * invalid video count + */ + CODE_40217(40217, "invalid video count"), + + /** + * invalid video id + */ + CODE_40218(40218, "invalid video id"), + + /** + * pages不存在或者参数为空 pages is empty + */ + CODE_40219(40219, "pages不存在或者参数为空"), + + /** + * data_list is empty + */ + CODE_40220(40220, "data_list is empty"), + + /** + * invalid Content-Encoding + */ + CODE_40221(40221, "invalid Content-Encoding"), + + /** + * invalid request idc domain + */ + CODE_40222(40222, "invalid request idc domain"), + + /** + * 缺少 access_token 参数 access_token missing + */ + CODE_41001(41001, "缺少 access_token 参数"), + + /** + * 缺少 appid 参数 appid missing + */ + CODE_41002(41002, "缺少 appid 参数"), + + /** + * 缺少 refresh_token 参数 refresh_token missing + */ + CODE_41003(41003, "缺少 refresh_token 参数"), + + /** + * 缺少 secret 参数 appsecret missing + */ + CODE_41004(41004, "缺少 secret 参数"), + + /** + * 缺少多媒体文件数据,传输素材无视频或图片内容 media data missing + */ + CODE_41005(41005, "缺少多媒体文件数据,传输素材无视频或图片内容"), + + /** + * 缺少 media_id 参数 media_id missing + */ + CODE_41006(41006, "缺少 media_id 参数"), + + /** + * 缺少子菜单数据 sub_menu data missing + */ + CODE_41007(41007, "缺少子菜单数据"), + + /** + * 缺少 oauth code missing code + */ + CODE_41008(41008, "缺少 oauth code"), + + /** + * 缺少 openid missing openid + */ + CODE_41009(41009, "缺少 openid"), + + /** + * 缺失 url 参数 missing url + */ + CODE_41010(41010, "缺失 url 参数"), + + /** + * missing required fields! please check document and request json! + */ + CODE_41011(41011, "missing required fields! please check document and request json!"), + + /** + * missing card id + */ + CODE_41012(41012, "missing card id"), + + /** + * missing code + */ + CODE_41013(41013, "missing code"), + + /** + * missing ticket_class + */ + CODE_41014(41014, "missing ticket_class"), + + /** + * missing show_time + */ + CODE_41015(41015, "missing show_time"), + + /** + * missing screening_room + */ + CODE_41016(41016, "missing screening_room"), + + /** + * missing seat_number + */ + CODE_41017(41017, "missing seat_number"), + + /** + * missing component_appid + */ + CODE_41018(41018, "missing component_appid"), + + /** + * missing platform_secret + */ + CODE_41019(41019, "missing platform_secret"), + + /** + * missing platform_ticket + */ + CODE_41020(41020, "missing platform_ticket"), + + /** + * missing component_access_token + */ + CODE_41021(41021, "missing component_access_token"), + + /** + * missing "display" field + */ + CODE_41024(41024, "missing \"display\" field"), + + /** + * poi_list empty + */ + CODE_41025(41025, "poi_list empty"), + + /** + * missing image list info, text maybe empty + */ + CODE_41026(41026, "missing image list info, text maybe empty"), + + /** + * missing voip call key + */ + CODE_41027(41027, "missing voip call key"), + + /** + * invalid form id + */ + CODE_41028(41028, "invalid form id"), + + /** + * form id used count reach limit + */ + CODE_41029(41029, "form id used count reach limit"), + + /** + * page路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致 invalid page + */ + CODE_41030(41030, "page路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致"), + + /** + * the form id have been blocked! + */ + CODE_41031(41031, "the form id have been blocked!"), + + /** + * not allow to send message with submitted form id, for punishment + */ + CODE_41032(41032, "not allow to send message with submitted form id, for punishment"), + + /** + * 只允许通过api创建的小程序使用 invaid register type + */ + CODE_41033(41033, "只允许通过api创建的小程序使用"), + + /** + * not allow to send message with submitted form id, for punishment + */ + CODE_41034(41034, "not allow to send message with submitted form id, for punishment"), + + /** + * not allow to send message with prepay id, for punishment + */ + CODE_41035(41035, "not allow to send message with prepay id, for punishment"), + + /** + * appid ad cid + */ + CODE_41036(41036, "appid ad cid"), + + /** + * appid ad_mch_appid + */ + CODE_41037(41037, "appid ad_mch_appid"), + + /** + * appid pos_type + */ + CODE_41038(41038, "appid pos_type"), + + /** + * access_token 超时,请检查 access_token 的有效期,请参考基础支持 - 获取 access_token 中,对 access_token 的详细机制说明 access_token expired + */ + CODE_42001(42001, "access_token 超时,请检查 access_token 的有效期,请参考基础支持 - 获取 access_token 中,对 access_token 的详细机制说明"), + + /** + * refresh_token 超时 refresh_token expired + */ + CODE_42002(42002, "refresh_token 超时"), + + /** + * oauth_code 超时 code expired + */ + CODE_42003(42003, "oauth_code 超时"), + + /** + * plugin token expired + */ + CODE_42004(42004, "plugin token expired"), + + /** + * api usage expired + */ + CODE_42005(42005, "api usage expired"), + + /** + * component_access_token expired + */ + CODE_42006(42006, "component_access_token expired"), + + /** + * 用户修改微信密码, accesstoken 和 refreshtoken 失效,需要重新授权 access_token and refresh_token exception + */ + CODE_42007(42007, "用户修改微信密码, accesstoken 和 refreshtoken 失效,需要重新授权"), + + /** + * voip call key expired + */ + CODE_42008(42008, "voip call key expired"), + + /** + * client tmp token expired + */ + CODE_42009(42009, "client tmp token expired"), + + /** + * 需要 GET 请求 require GET method + */ + CODE_43001(43001, "需要 GET 请求"), + + /** + * 需要 POST 请求 require POST method + */ + CODE_43002(43002, "需要 POST 请求"), + + /** + * 需要 HTTPS 请求 require https + */ + CODE_43003(43003, "需要 HTTPS 请求"), + + /** + * 需要接收者关注 require subscribe + */ + CODE_43004(43004, "需要接收者关注"), + + /** + * 需要好友关系 require friend relations + */ + CODE_43005(43005, "需要好友关系"), + + /** + * require not block + */ + CODE_43006(43006, "require not block"), + + /** + * require bizuser authorize + */ + CODE_43007(43007, "require bizuser authorize"), + + /** + * require biz pay auth + */ + CODE_43008(43008, "require biz pay auth"), + + /** + * can not use custom code, need authorize + */ + CODE_43009(43009, "can not use custom code, need authorize"), + + /** + * can not use balance, need authorize + */ + CODE_43010(43010, "can not use balance, need authorize"), + + /** + * can not use bonus, need authorize + */ + CODE_43011(43011, "can not use bonus, need authorize"), + + /** + * can not use custom url, need authorize + */ + CODE_43012(43012, "can not use custom url, need authorize"), + + /** + * can not use shake card, need authorize + */ + CODE_43013(43013, "can not use shake card, need authorize"), + + /** + * require check agent + */ + CODE_43014(43014, "require check agent"), + + /** + * require authorize by wechat team to use this function! + */ + CODE_43015(43015, "require authorize by wechat team to use this function!"), + + /** + * 小程序未认证 require verify + */ + CODE_43016(43016, "小程序未认证"), + + /** + * require location id! + */ + CODE_43017(43017, "require location id!"), + + /** + * code has no been mark! + */ + CODE_43018(43018, "code has no been mark!"), + + /** + * 需要将接收者从黑名单中移除 require remove blacklist + */ + CODE_43019(43019, "需要将接收者从黑名单中移除"), + + /** + * change template too frequently + */ + CODE_43100(43100, "change template too frequently"), + + /** + * 用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系 user refuse to accept the msg + */ + CODE_43101(43101, "用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系"), + + /** + * the tempalte is not subscriptiontype + */ + CODE_43102(43102, "the tempalte is not subscriptiontype"), + + /** + * the api only can cancel the subscription + */ + CODE_43103(43103, "the api only can cancel the subscription"), + + /** + * this appid does not have permission + */ + CODE_43104(43104, "this appid does not have permission"), + + /** + * news has no binding relation with template_id + */ + CODE_43105(43105, "news has no binding relation with template_id"), + + /** + * not allow to add template, for punishment + */ + CODE_43106(43106, "not allow to add template, for punishment"), + + /** + * 多媒体文件为空 empty media data + */ + CODE_44001(44001, "多媒体文件为空"), + + /** + * POST 的数据包为空 empty post data + */ + CODE_44002(44002, "POST 的数据包为空"), + + /** + * 图文消息内容为空 empty news data + */ + CODE_44003(44003, "图文消息内容为空"), + + /** + * 文本消息内容为空 empty content + */ + CODE_44004(44004, "文本消息内容为空"), + + /** + * 空白的列表 empty list size + */ + CODE_44005(44005, "空白的列表"), + + /** + * empty file data + */ + CODE_44006(44006, "empty file data"), + + /** + * repeated msg id + */ + CODE_44007(44007, "repeated msg id"), + + /** + * image url size out of limit + */ + CODE_44997(44997, "image url size out of limit"), + + /** + * keyword string media size out of limit + */ + CODE_44998(44998, "keyword string media size out of limit"), + + /** + * keywords list size out of limit + */ + CODE_44999(44999, "keywords list size out of limit"), + + /** + * msg_id size out of limit + */ + CODE_45000(45000, "msg_id size out of limit"), + + /** + * 多媒体文件大小超过限制 media size out of limit + */ + CODE_45001(45001, "多媒体文件大小超过限制"), + + /** + * 消息内容超过限制 content size out of limit + */ + CODE_45002(45002, "消息内容超过限制"), + + /** + * 标题字段超过限制 title size out of limit + */ + CODE_45003(45003, "标题字段超过限制"), + + /** + * 描述字段超过限制 description size out of limit + */ + CODE_45004(45004, "描述字段超过限制"), + + /** + * 链接字段超过限制 url size out of limit + */ + CODE_45005(45005, "链接字段超过限制"), + + /** + * 图片链接字段超过限制 picurl size out of limit + */ + CODE_45006(45006, "图片链接字段超过限制"), + + /** + * 语音播放时间超过限制 playtime out of limit + */ + CODE_45007(45007, "语音播放时间超过限制"), + + /** + * 图文消息超过限制 article size out of limit + */ + CODE_45008(45008, "图文消息超过限制"), + + /** + * 接口调用超过限制 reach max api daily quota limit + */ + CODE_45009(45009, "接口调用超过限制"), + + /** + * 创建菜单个数超过限制 create menu limit + */ + CODE_45010(45010, "创建菜单个数超过限制"), + + /** + * API 调用太频繁,请稍候再试 api minute-quota reach limit, must slower, retry next minute + */ + CODE_45011(45011, "API 调用太频繁,请稍候再试"), + + /** + * 模板大小超过限制 template size out of limit + */ + CODE_45012(45012, "模板大小超过限制"), + + /** + * too many template args + */ + CODE_45013(45013, "too many template args"), + + /** + * template message size out of limit + */ + CODE_45014(45014, "template message size out of limit"), + + /** + * 回复时间超过限制 response out of time limit or subscription is canceled + */ + CODE_45015(45015, "回复时间超过限制"), + + /** + * 系统分组,不允许修改 can't modify sys group + */ + CODE_45016(45016, "系统分组,不允许修改"), + + /** + * 分组名字过长 can't set group name too long sys group + */ + CODE_45017(45017, "分组名字过长"), + + /** + * 分组数量超过上限 too many group now, no need to add new + */ + CODE_45018(45018, "分组数量超过上限"), + + /** + * too many openid, please input less + */ + CODE_45019(45019, "too many openid, please input less"), + + /** + * too many image, please input less + */ + CODE_45020(45020, "too many image, please input less"), + + /** + * some argument may be out of length limit! please check document and request json! + */ + CODE_45021(45021, "some argument may be out of length limit! please check document and request json!"), + + /** + * bonus is out of limit + */ + CODE_45022(45022, "bonus is out of limit"), + + /** + * balance is out of limit + */ + CODE_45023(45023, "balance is out of limit"), + + /** + * rank template number is out of limit + */ + CODE_45024(45024, "rank template number is out of limit"), + + /** + * poiid count is out of limit + */ + CODE_45025(45025, "poiid count is out of limit"), + + /** + * template num exceeds limit + */ + CODE_45026(45026, "template num exceeds limit"), + + /** + * template conflict with industry + */ + CODE_45027(45027, "template conflict with industry"), + + /** + * has no masssend quota + */ + CODE_45028(45028, "has no masssend quota"), + + /** + * qrcode count out of limit + */ + CODE_45029(45029, "qrcode count out of limit"), + + /** + * limit cardid, not support this function + */ + CODE_45030(45030, "limit cardid, not support this function"), + + /** + * stock is out of limit + */ + CODE_45031(45031, "stock is out of limit"), + + /** + * not inner ip for special acct in white-list + */ + CODE_45032(45032, "not inner ip for special acct in white-list"), + + /** + * user get card num is out of get_limit + */ + CODE_45033(45033, "user get card num is out of get_limit"), + + /** + * media file count is out of limit + */ + CODE_45034(45034, "media file count is out of limit"), + + /** + * access clientip is not registered, not in ip-white-list + */ + CODE_45035(45035, "access clientip is not registered, not in ip-white-list"), + + /** + * User receive announcement limit + */ + CODE_45036(45036, "User receive announcement limit"), + + /** + * user out of time limit or never talked in tempsession + */ + CODE_45037(45037, "user out of time limit or never talked in tempsession"), + + /** + * user subscribed, cannot use tempsession api + */ + CODE_45038(45038, "user subscribed, cannot use tempsession api"), + + /** + * card_list_size out of limit + */ + CODE_45039(45039, "card_list_size out of limit"), + + /** + * reach max monthly quota limit + */ + CODE_45040(45040, "reach max monthly quota limit"), + + /** + * this card reach total sku quantity limit! + */ + CODE_45041(45041, "this card reach total sku quantity limit!"), + + /** + * limit card type, this card type can NOT create by sub merchant + */ + CODE_45042(45042, "limit card type, this card type can NOT create by sub merchant"), + + /** + * can not set share_friends=true because has no Abstract Or Text_Img_List has no img Or image url not valid + */ + CODE_45043(45043, "can not set share_friends=true because has no Abstract Or Text_Img_List has no img Or image url not valid"), + + /** + * icon url size in abstract is out of limit + */ + CODE_45044(45044, "icon url size in abstract is out of limit"), + + /** + * unauthorized friends card, please contact administrator + */ + CODE_45045(45045, "unauthorized friends card, please contact administrator"), + + /** + * operate field conflict, CenterCell, PayCell, SelfConsumeCell conflict + */ + CODE_45046(45046, "operate field conflict, CenterCell, PayCell, SelfConsumeCell conflict"), + + /** + * 客服接口下行条数超过上限 out of response count limit + */ + CODE_45047(45047, "客服接口下行条数超过上限"), + + /** + * menu use invalid type + */ + CODE_45048(45048, "menu use invalid type"), + + /** + * ivr use invalid type + */ + CODE_45049(45049, "ivr use invalid type"), + + /** + * custom msg use invalid type + */ + CODE_45050(45050, "custom msg use invalid type"), + + /** + * template msg use invalid link + */ + CODE_45051(45051, "template msg use invalid link"), + + /** + * masssend msg use invalid type + */ + CODE_45052(45052, "masssend msg use invalid type"), + + /** + * exceed consume verify code size + */ + CODE_45053(45053, "exceed consume verify code size"), + + /** + * below consume verify code size + */ + CODE_45054(45054, "below consume verify code size"), + + /** + * the code is not in consume verify code charset + */ + CODE_45055(45055, "the code is not in consume verify code charset"), + + /** + * too many tag now, no need to add new + */ + CODE_45056(45056, "too many tag now, no need to add new"), + + /** + * can't delete the tag that has too many fans + */ + CODE_45057(45057, "can't delete the tag that has too many fans"), + + /** + * can't modify sys tag + */ + CODE_45058(45058, "can't modify sys tag"), + + /** + * can not tagging one user too much + */ + CODE_45059(45059, "can not tagging one user too much"), + + /** + * media is applied in ivr or menu, can not be deleted + */ + CODE_45060(45060, "media is applied in ivr or menu, can not be deleted"), + + /** + * maybe the update frequency is too often, please try again + */ + CODE_45061(45061, "maybe the update frequency is too often, please try again"), + + /** + * has agreement ad. please use mp.weixin.qq.com + */ + CODE_45062(45062, "has agreement ad. please use mp.weixin.qq.com"), + + /** + * accesstoken is not xiaochengxu + */ + CODE_45063(45063, "accesstoken is not xiaochengxu"), + + /** + * 创建菜单包含未关联的小程序 no permission to use weapp in menu + */ + CODE_45064(45064, "创建菜单包含未关联的小程序"), + + /** + * 相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid clientmsgid exist + */ + CODE_45065(45065, "相同 clientmsgid 已存在群发记录,返回数据中带有已存在的群发任务的 msgid"), + + /** + * 相同 clientmsgid 重试速度过快,请间隔1分钟重试 same clientmsgid retry too fast + */ + CODE_45066(45066, "相同 clientmsgid 重试速度过快,请间隔1分钟重试"), + + /** + * clientmsgid 长度超过限制 clientmsgid size out of limit + */ + CODE_45067(45067, "clientmsgid 长度超过限制"), + + /** + * file size out of limit + */ + CODE_45068(45068, "file size out of limit"), + + /** + * product list size out of limit + */ + CODE_45069(45069, "product list size out of limit"), + + /** + * the business account have been created + */ + CODE_45070(45070, "the business account have been created"), + + /** + * business account not found + */ + CODE_45071(45071, "business account not found"), + + /** + * command字段取值不对 invalid command + */ + CODE_45072(45072, "command字段取值不对"), + + /** + * not inner vip for sns in white list + */ + CODE_45073(45073, "not inner vip for sns in white list"), + + /** + * material list size out of limit, you should delete the useless material + */ + CODE_45074(45074, "material list size out of limit, you should delete the useless material"), + + /** + * invalid keyword id + */ + CODE_45075(45075, "invalid keyword id"), + + /** + * invalid count + */ + CODE_45076(45076, "invalid count"), + + /** + * number of business account reach limit + */ + CODE_45077(45077, "number of business account reach limit"), + + /** + * nickname is illegal! + */ + CODE_45078(45078, "nickname is illegal!"), + + /** + * nickname is forbidden!(matched forbidden keyword) + */ + CODE_45079(45079, "nickname is forbidden!(matched forbidden keyword)"), + + /** + * 下发输入状态,需要之前30秒内跟用户有过消息交互 need sending message to user, or recving message from user in the last 30 seconds before typing + */ + CODE_45080(45080, "下发输入状态,需要之前30秒内跟用户有过消息交互"), + + /** + * 已经在输入状态,不可重复下发 you are already typing + */ + CODE_45081(45081, "已经在输入状态,不可重复下发"), + + /** + * need icp license for the url domain + */ + CODE_45082(45082, "need icp license for the url domain"), + + /** + * the speed out of range + */ + CODE_45083(45083, "the speed out of range"), + + /** + * No speed message + */ + CODE_45084(45084, "No speed message"), + + /** + * speed server err + */ + CODE_45085(45085, "speed server err"), + + /** + * invalid attrbute 'data-miniprogram-appid' + */ + CODE_45086(45086, "invalid attrbute 'data-miniprogram-appid'"), + + /** + * customer service message from this account have been blocked! + */ + CODE_45087(45087, "customer service message from this account have been blocked!"), + + /** + * action size out of limit + */ + CODE_45088(45088, "action size out of limit"), + + /** + * expired + */ + CODE_45089(45089, "expired"), + + /** + * invalid group msg ticket + */ + CODE_45090(45090, "invalid group msg ticket"), + + /** + * account_name is illegal! + */ + CODE_45091(45091, "account_name is illegal!"), + + /** + * no voice data + */ + CODE_45092(45092, "no voice data"), + + /** + * no quota to send msg + */ + CODE_45093(45093, "no quota to send msg"), + + /** + * not allow to send custom message when user enter session, for punishment + */ + CODE_45094(45094, "not allow to send custom message when user enter session, for punishment"), + + /** + * not allow to modify stock for the advertisement batch + */ + CODE_45095(45095, "not allow to modify stock for the advertisement batch"), + + /** + * invalid qrcode + */ + CODE_45096(45096, "invalid qrcode"), + + /** + * invalid qrcode prefix + */ + CODE_45097(45097, "invalid qrcode prefix"), + + /** + * msgmenu list size is out of limit + */ + CODE_45098(45098, "msgmenu list size is out of limit"), + + /** + * msgmenu item content size is out of limit + */ + CODE_45099(45099, "msgmenu item content size is out of limit"), + + /** + * invalid size of keyword_id_list + */ + CODE_45100(45100, "invalid size of keyword_id_list"), + + /** + * hit upload limit + */ + CODE_45101(45101, "hit upload limit"), + + /** + * this api have been blocked temporarily. + */ + CODE_45102(45102, "this api have been blocked temporarily."), + + /** + * This API has been unsupported + */ + CODE_45103(45103, "This API has been unsupported"), + + /** + * reach max domain quota limit + */ + CODE_45104(45104, "reach max domain quota limit"), + + /** + * the consume verify code not found + */ + CODE_45154(45154, "the consume verify code not found"), + + /** + * the consume verify code is existed + */ + CODE_45155(45155, "the consume verify code is existed"), + + /** + * the consume verify code's length not invalid + */ + CODE_45156(45156, "the consume verify code's length not invalid"), + + /** + * invalid tag name + */ + CODE_45157(45157, "invalid tag name"), + + /** + * tag name too long + */ + CODE_45158(45158, "tag name too long"), + + /** + * invalid tag id + */ + CODE_45159(45159, "invalid tag id"), + + /** + * invalid category to create card + */ + CODE_45160(45160, "invalid category to create card"), + + /** + * this video id must be generated by calling upload api + */ + CODE_45161(45161, "this video id must be generated by calling upload api"), + + /** + * invalid type + */ + CODE_45162(45162, "invalid type"), + + /** + * invalid sort_method + */ + CODE_45163(45163, "invalid sort_method"), + + /** + * invalid offset + */ + CODE_45164(45164, "invalid offset"), + + /** + * invalid limit + */ + CODE_45165(45165, "invalid limit"), + + /** + * invalid content + */ + CODE_45166(45166, "invalid content"), + + /** + * invalid voip call key + */ + CODE_45167(45167, "invalid voip call key"), + + /** + * keyword in blacklist + */ + CODE_45168(45168, "keyword in blacklist"), + + /** + * part or whole of the requests from the very app is temporary blocked by supervisor + */ + CODE_45501(45501, "part or whole of the requests from the very app is temporary blocked by supervisor"), + + /** + * 不存在媒体数据,media_id 不存在 media data no exist + */ + CODE_46001(46001, "不存在媒体数据,media_id 不存在"), + + /** + * 不存在的菜单版本 menu version no exist + */ + CODE_46002(46002, "不存在的菜单版本"), + + /** + * 不存在的菜单数据 menu no exist + */ + CODE_46003(46003, "不存在的菜单数据"), + + /** + * 不存在的用户 user no exist + */ + CODE_46004(46004, "不存在的用户"), + + /** + * poi no exist + */ + CODE_46005(46005, "poi no exist"), + + /** + * voip file not exist + */ + CODE_46006(46006, "voip file not exist"), + + /** + * file being transcoded, please try later + */ + CODE_46007(46007, "file being transcoded, please try later"), + + /** + * result id not exist + */ + CODE_46008(46008, "result id not exist"), + + /** + * there is no user data + */ + CODE_46009(46009, "there is no user data"), + + /** + * this api have been not supported since 2020-01-11 00:00:00, please use new api(subscribeMessage)! + */ + CODE_46101(46101, "this api have been not supported since 2020-01-11 00:00:00, please use new api(subscribeMessage)!"), + + /** + * 解析 JSON/XML 内容错误 data format error + */ + CODE_47001(47001, "解析 JSON/XML 内容错误"), + + /** + * data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use utf8 encoded text! + */ + CODE_47002(47002, "data format error, do NOT use json unicode encode (\\uxxxx\\uxxxx), please use utf8 encoded text!"), + + /** + * 模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错 argument invalid! + */ + CODE_47003(47003, "模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错"), + + /** + * 每次提交的页面数超过1000(备注:每次提交页面数应小于或等于1000) submit pages count more than each quota + */ + CODE_47004(47004, "每次提交的页面数超过1000(备注:每次提交页面数应小于或等于1000)"), + + /** + * tabbar no exist + */ + CODE_47005(47005, "tabbar no exist"), + + /** + * 当天提交页面数达到了配额上限,请明天再试 submit pages count reach daily limit, please try tomorrow + */ + CODE_47006(47006, "当天提交页面数达到了配额上限,请明天再试"), + + /** + * 搜索结果总数超过了1000条 search results count more than limit + */ + CODE_47101(47101, "搜索结果总数超过了1000条"), + + /** + * next_page_info参数错误 next_page_info error + */ + CODE_47102(47102, "next_page_info参数错误"), + + /** + * 参数 activity_id 错误 activity_id error + */ + CODE_47501(47501, "参数 activity_id 错误"), + + /** + * 参数 target_state 错误 target_state error + */ + CODE_47502(47502, "参数 target_state 错误"), + + /** + * 参数 version_type 错误 version_type error + */ + CODE_47503(47503, "参数 version_type 错误"), + + /** + * activity_id activity_id expired time + */ + CODE_47504(47504, "activity_id"), + + /** + * api 功能未授权,请确认公众号已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限 api unauthorized + */ + CODE_48001(48001, "api 功能未授权,请确认公众号已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限"), + + /** + * 粉丝拒收消息(粉丝在公众号选项中,关闭了 “ 接收消息 ” ) user block receive message + */ + CODE_48002(48002, "粉丝拒收消息(粉丝在公众号选项中,关闭了 “ 接收消息 ” )"), + + /** + * user not agree mass-send protocol + */ + CODE_48003(48003, "user not agree mass-send protocol"), + + /** + * api 接口被封禁,请登录 mp.weixin.qq.com 查看详情 api forbidden for irregularities, view detail on mp.weixin.qq.com + */ + CODE_48004(48004, "api 接口被封禁,请登录 mp.weixin.qq.com 查看详情"), + + /** + * api 禁止删除被自动回复和自定义菜单引用的素材 forbid to delete material used by auto-reply or menu + */ + CODE_48005(48005, "api 禁止删除被自动回复和自定义菜单引用的素材"), + + /** + * api 禁止清零调用次数,因为清零次数达到上限 forbid to clear quota because of reaching the limit + */ + CODE_48006(48006, "api 禁止清零调用次数,因为清零次数达到上限"), + + /** + * forbid to use other's voip call key + */ + CODE_48007(48007, "forbid to use other's voip call key"), + + /** + * 没有该类型消息的发送权限 no permission for this msgtype + */ + CODE_48008(48008, "没有该类型消息的发送权限"), + + /** + * this api is expired + */ + CODE_48009(48009, "this api is expired"), + + /** + * forbid to modify the material, please see more information on mp.weixin.qq.com + */ + CODE_48010(48010, "forbid to modify the material, please see more information on mp.weixin.qq.com"), + + /** + * disabled template id + */ + CODE_48011(48011, "disabled template id"), + + /** + * invalid token + */ + CODE_48012(48012, "invalid token"), + + /** + * 该视频非新接口上传,不能用于视频消息群发 + */ + CODE_48013(48013, "该视频非新接口上传,不能用于视频消息群发"), + + /** + * 该视频审核状态异常,请检查后重试 + */ + CODE_48014(48014, "该视频审核状态异常,请检查后重试"), + + /** + * 该账号无留言功能权限 + */ + CODE_48015(48015, "该账号无留言功能权限"), + + /** + * 该账号不满足智能配置"观看更多"视频条件 + */ + CODE_48016(48016, "该账号不满足智能配置\"观看更多\"视频条件"), + + /** + * not same appid with appid of access_token + */ + CODE_49001(49001, "not same appid with appid of access_token"), + + /** + * empty openid or transid + */ + CODE_49002(49002, "empty openid or transid"), + + /** + * not match openid with appid + */ + CODE_49003(49003, "not match openid with appid"), + + /** + * not match signature + */ + CODE_49004(49004, "not match signature"), + + /** + * not existed transid + */ + CODE_49005(49005, "not existed transid"), + + /** + * missing arg two_dim_code + */ + CODE_49006(49006, "missing arg two_dim_code"), + + /** + * invalid two_dim_code + */ + CODE_49007(49007, "invalid two_dim_code"), + + /** + * invalid qrcode + */ + CODE_49008(49008, "invalid qrcode"), + + /** + * missing arg qrcode + */ + CODE_49009(49009, "missing arg qrcode"), + + /** + * invalid partner id + */ + CODE_49010(49010, "invalid partner id"), + + /** + * not existed feedbackid + */ + CODE_49300(49300, "not existed feedbackid"), + + /** + * feedback exist + */ + CODE_49301(49301, "feedback exist"), + + /** + * feedback status already changed + */ + CODE_49302(49302, "feedback status already changed"), + + /** + * 用户未授权该 api api unauthorized or user unauthorized + */ + CODE_50001(50001, "用户未授权该 api"), + + /** + * 用户受限,可能是用户帐号被冻结或注销 user limited + */ + CODE_50002(50002, "用户受限,可能是用户帐号被冻结或注销"), + + /** + * user unexpected, maybe not in white list + */ + CODE_50003(50003, "user unexpected, maybe not in white list"), + + /** + * user not allow to use accesstoken, maybe for punishment + */ + CODE_50004(50004, "user not allow to use accesstoken, maybe for punishment"), + + /** + * 用户未关注公众号 user is unsubscribed + */ + CODE_50005(50005, "用户未关注公众号"), + + /** + * user has switched off friends authorization + */ + CODE_50006(50006, "user has switched off friends authorization"), + + /** + * enterprise father account not exist + */ + CODE_51000(51000, "enterprise father account not exist"), + + /** + * enterprise child account not belong to the father + */ + CODE_51001(51001, "enterprise child account not belong to the father"), + + /** + * enterprise verify message not correct + */ + CODE_51002(51002, "enterprise verify message not correct"), + + /** + * invalid enterprise child list size + */ + CODE_51003(51003, "invalid enterprise child list size"), + + /** + * not a enterprise father account + */ + CODE_51004(51004, "not a enterprise father account"), + + /** + * not a enterprise child account + */ + CODE_51005(51005, "not a enterprise child account"), + + /** + * invalid nick name + */ + CODE_51006(51006, "invalid nick name"), + + /** + * not a enterprise account + */ + CODE_51007(51007, "not a enterprise account"), + + /** + * invalid email + */ + CODE_51008(51008, "invalid email"), + + /** + * invalid pwd + */ + CODE_51009(51009, "invalid pwd"), + + /** + * repeated email + */ + CODE_51010(51010, "repeated email"), + + /** + * access deny + */ + CODE_51011(51011, "access deny"), + + /** + * need verify code + */ + CODE_51012(51012, "need verify code"), + + /** + * wrong verify code + */ + CODE_51013(51013, "wrong verify code"), + + /** + * need modify pwd + */ + CODE_51014(51014, "need modify pwd"), + + /** + * user not exist + */ + CODE_51015(51015, "user not exist"), + + /** + * tv info not exist + */ + CODE_51020(51020, "tv info not exist"), + + /** + * stamp crossed + */ + CODE_51021(51021, "stamp crossed"), + + /** + * invalid stamp range + */ + CODE_51022(51022, "invalid stamp range"), + + /** + * stamp not match date + */ + CODE_51023(51023, "stamp not match date"), + + /** + * empty program name + */ + CODE_51024(51024, "empty program name"), + + /** + * empty action url + */ + CODE_51025(51025, "empty action url"), + + /** + * program name size out of limit + */ + CODE_51026(51026, "program name size out of limit"), + + /** + * action url size out of limit + */ + CODE_51027(51027, "action url size out of limit"), + + /** + * invalid program name + */ + CODE_51028(51028, "invalid program name"), + + /** + * invalid action url + */ + CODE_51029(51029, "invalid action url"), + + /** + * invalid action id + */ + CODE_51030(51030, "invalid action id"), + + /** + * invalid action offset + */ + CODE_51031(51031, "invalid action offset"), + + /** + * empty action title + */ + CODE_51032(51032, "empty action title"), + + /** + * action title size out of limit + */ + CODE_51033(51033, "action title size out of limit"), + + /** + * empty action icon url + */ + CODE_51034(51034, "empty action icon url"), + + /** + * action icon url out of limit + */ + CODE_51035(51035, "action icon url out of limit"), + + /** + * pic is not from cdn + */ + CODE_52000(52000, "pic is not from cdn"), + + /** + * wechat price is not less than origin price + */ + CODE_52001(52001, "wechat price is not less than origin price"), + + /** + * category/sku is wrong + */ + CODE_52002(52002, "category/sku is wrong"), + + /** + * product id not existed + */ + CODE_52003(52003, "product id not existed"), + + /** + * category id is not exist, or doesn't has sub category + */ + CODE_52004(52004, "category id is not exist, or doesn't has sub category"), + + /** + * quantity is zero + */ + CODE_52005(52005, "quantity is zero"), + + /** + * area code is invalid + */ + CODE_52006(52006, "area code is invalid"), + + /** + * express template param is error + */ + CODE_52007(52007, "express template param is error"), + + /** + * express template id is not existed + */ + CODE_52008(52008, "express template id is not existed"), + + /** + * group name is empty + */ + CODE_52009(52009, "group name is empty"), + + /** + * group id is not existed + */ + CODE_52010(52010, "group id is not existed"), + + /** + * mod_action is invalid + */ + CODE_52011(52011, "mod_action is invalid"), + + /** + * shelf components count is greater than 20 + */ + CODE_52012(52012, "shelf components count is greater than 20"), + + /** + * shelf component is empty + */ + CODE_52013(52013, "shelf component is empty"), + + /** + * shelf id is not existed + */ + CODE_52014(52014, "shelf id is not existed"), + + /** + * order id is not existed + */ + CODE_52015(52015, "order id is not existed"), + + /** + * order filter param is invalid + */ + CODE_52016(52016, "order filter param is invalid"), + + /** + * order express param is invalid + */ + CODE_52017(52017, "order express param is invalid"), + + /** + * order delivery param is invalid + */ + CODE_52018(52018, "order delivery param is invalid"), + + /** + * brand name empty + */ + CODE_52019(52019, "brand name empty"), + + /** + * principal limit exceed + */ + CODE_53000(53000, "principal limit exceed"), + + /** + * principal in black list + */ + CODE_53001(53001, "principal in black list"), + + /** + * mobile limit exceed + */ + CODE_53002(53002, "mobile limit exceed"), + + /** + * idcard limit exceed + */ + CODE_53003(53003, "idcard limit exceed"), + + /** + * 名称格式不合法 nickname invalid + */ + CODE_53010(53010, "名称格式不合法"), + + /** + * 名称检测命中频率限制 check nickname too frequently + */ + CODE_53011(53011, "名称检测命中频率限制"), + + /** + * 禁止使用该名称 nickname ban + */ + CODE_53012(53012, "禁止使用该名称"), + + /** + * 公众号:名称与已有公众号名称重复;小程序:该名称与已有小程序名称重复 nickname has been occupied + */ + CODE_53013(53013, "公众号:名称与已有公众号名称重复;小程序:该名称与已有小程序名称重复"), + + /** + * 公众号:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A} + */ + CODE_53014(53014, "公众号:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A}"), + + /** + * 公众号:该名称与已有小程序名称重复,需与该小程序帐号相同主体才可申请;小程序:该名称与已有公众号名称重复,需与该公众号帐号相同主体才可申请 + */ + CODE_53015(53015, "公众号:该名称与已有小程序名称重复,需与该小程序帐号相同主体才可申请;小程序:该名称与已有公众号名称重复,需与该公众号帐号相同主体才可申请"), + + /** + * 公众号:该名称与已有多个小程序名称重复,暂不支持申请;小程序:该名称与已有多个公众号名称重复,暂不支持申请 + */ + CODE_53016(53016, "公众号:该名称与已有多个小程序名称重复,暂不支持申请;小程序:该名称与已有多个公众号名称重复,暂不支持申请"), + + /** + * 公众号:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A} + */ + CODE_53017(53017, "公众号:小程序已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A};小程序:公众号已有{名称 A+}时,需与该帐号相同主体才可申请{名称 A}"), + + /** + * 名称命中微信号 nickname hit alias + */ + CODE_53018(53018, "名称命中微信号"), + + /** + * 名称在保护期内 nickname protected by infringement + */ + CODE_53019(53019, "名称在保护期内"), + + /** + * order not found + */ + CODE_53100(53100, "订单不存在"), + + /** + * order already paid + */ + CODE_53101(53101, "已经支付的订单"), + + /** + * already has checking order, can not apply + */ + CODE_53102(53102, "已有检查单,不能申请"), + + /** + * order can not do refill + */ + CODE_53103(53103, "order can not do refill"), + + /** + * 本月功能介绍修改次数已用完 modify signature quota limit exceed + */ + CODE_53200(53200, "本月功能介绍修改次数已用完"), + + /** + * 功能介绍内容命中黑名单关键字 signature in black list, can not use + */ + CODE_53201(53201, "功能介绍内容命中黑名单关键字"), + + /** + * 本月头像修改次数已用完 modify avatar quota limit exceed + */ + CODE_53202(53202, "本月头像修改次数已用完"), + + /** + * can't be modified for the time being + */ + CODE_53203(53203, "暂时还不能修改"), + + /** + * signature invalid + */ + CODE_53204(53204, "无效签名"), + + /** + * 超出每月次数限制 + */ + CODE_53300(53300, "超出每月次数限制"), + + /** + * 超出可配置类目总数限制 + */ + CODE_53301(53301, "超出可配置类目总数限制"), + + /** + * 当前账号主体类型不允许设置此种类目 + */ + CODE_53302(53302, "当前账号主体类型不允许设置此种类目"), + + /** + * 提交的参数不合法 + */ + CODE_53303(53303, "提交的参数不合法"), + + /** + * 与已有类目重复 + */ + CODE_53304(53304, "与已有类目重复"), + + /** + * 包含未通过IPC校验的类目 + */ + CODE_53305(53305, "包含未通过IPC校验的类目"), + + /** + * 修改类目只允许修改类目资质,不允许修改类目ID + */ + CODE_53306(53306, "修改类目只允许修改类目资质,不允许修改类目ID"), + + /** + * 只有审核失败的类目允许修改 + */ + CODE_53307(53307, "只有审核失败的类目允许修改"), + + /** + * 审核中的类目不允许删除 + */ + CODE_53308(53308, "审核中的类目不允许删除"), + + /** + * 社交红包不允许删除 + */ + CODE_53309(53309, "社交红包不允许删除"), + + /** + * 类目超过上限,但是可以添加apply_reason参数申请更多类目 + */ + CODE_53310(53310, "类目超过上限,但是可以添加apply_reason参数申请更多类目"), + + /** + * 需要提交资料信息 + */ + CODE_53311(53311, "需要提交资料信息"), + + /** + * empty jsapi name + */ + CODE_60005(60005, "空的jsapi名称"), + + /** + * user cancel the auth + */ + CODE_60006(60006, "用户取消该授权"), + + /** + * invalid component type + */ + CODE_61000(61000, "无效的第三方类型"), + + /** + * component type and component appid is not match + */ + CODE_61001(61001, "第三方类型与第三方APPID不匹配"), + + /** + * the third appid is not open KF + */ + CODE_61002(61002, "第三方APPID没有开放客服"), + + /** + * component is not authorized by this account + */ + CODE_61003(61003, "帐号未授权"), + + /** + * api 功能未授权,请确认公众号/小程序已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限 access clientip is not registered + */ + CODE_61004(61004, "api 功能未授权,请确认公众号/小程序已获得该接口,可以在公众平台官网 - 开发者中心页中查看接口权限"), + + /** + * component ticket is expired + */ + CODE_61005(61005, "ticket 已过期"), + + /** + * component ticket is invalid + */ + CODE_61006(61006, "无效 ticket"), + + /** + * api is unauthorized to component + */ + CODE_61007(61007, "接口未授权给第三方平台"), + + /** + * component req key is duplicated + */ + CODE_61008(61008, "第三方请求的key存在重复"), + + /** + * code is invalid + */ + CODE_61009(61009, "无效code"), + + /** + * code is expired + */ + CODE_61010(61010, "code已过期"), + + /** + * invalid component + */ + CODE_61011(61011, "无效的第三方平台"), + + /** + * invalid option name + */ + CODE_61012(61012, "无效的选项名称"), + + /** + * invalid option value + */ + CODE_61013(61013, "无效的选项值"), + + /** + * must use component token for component api + */ + CODE_61014(61014, "必须使用component接口的token"), + + /** + * must use biz account token for not component api + */ + CODE_61015(61015, "必须使用商业帐号token,而不是component api"), + + /** + * function category of API need be confirmed by component + */ + CODE_61016(61016, "function category of API need be confirmed by component"), + + /** + * function category is not authorized + */ + CODE_61017(61017, "function category is not authorized"), + + /** + * already confirm + */ + CODE_61018(61018, "已确认"), + + /** + * not need confirm + */ + CODE_61019(61019, "不需要确认"), + + /** + * err parameter + */ + CODE_61020(61020, "err parameter"), + + /** + * can't confirm + */ + CODE_61021(61021, "can't confirm"), + + /** + * can't resubmit + */ + CODE_61022(61022, "can't resubmit"), + + /** + * refresh_token is invalid + */ + CODE_61023(61023, "refresh_token is invalid"), + + /** + * must use api(api_component_token) to get token for component acct + */ + CODE_61024(61024, "must use api(api_component_token) to get token for component acct"), + + /** + * read-only option + */ + CODE_61025(61025, "read-only option"), + + /** + * register access deny + */ + CODE_61026(61026, "register access deny"), + + /** + * register limit exceed + */ + CODE_61027(61027, "register limit exceed"), + + /** + * component is unpublished + */ + CODE_61028(61028, "component is unpublished"), + + /** + * component need republish with base category + */ + CODE_61029(61029, "component need republish with base category"), + + /** + * component cancel authorization not allowed + */ + CODE_61030(61030, "component cancel authorization not allowed"), + + /** + * invalid realname type + */ + CODE_61051(61051, "invalid realname type"), + + /** + * need to be certified + */ + CODE_61052(61052, "need to be certified"), + + /** + * realname exceed limits + */ + CODE_61053(61053, "realname exceed limits"), + + /** + * realname in black list + */ + CODE_61054(61054, "realname in black list"), + + /** + * exceed quota per month + */ + CODE_61055(61055, "exceed quota per month"), + + /** + * copy_wx_verify is required option + */ + CODE_61056(61056, "copy_wx_verify is required option"), + + /** + * invalid ticket + */ + CODE_61058(61058, "invalid ticket"), + + /** + * overseas access deny + */ + CODE_61061(61061, "overseas access deny"), + + /** + * admin exceed limits + */ + CODE_61063(61063, "admin exceed limits"), + + /** + * admin in black list + */ + CODE_61064(61064, "admin in black list"), + + /** + * idcard exceed limits + */ + CODE_61065(61065, "idcard exceed limits"), + + /** + * idcard in black list + */ + CODE_61066(61066, "idcard in black list"), + + /** + * mobile exceed limits + */ + CODE_61067(61067, "mobile exceed limits"), + + /** + * mobile in black list + */ + CODE_61068(61068, "mobile in black list"), + + /** + * invalid admin + */ + CODE_61069(61069, "invalid admin"), + + /** + * name, idcard, wechat name not in accordance + */ + CODE_61070(61070, "name, idcard, wechat name not in accordance"), + + /** + * invalid url + */ + CODE_61100(61100, "invalid url"), + + /** + * invalid openid + */ + CODE_61101(61101, "invalid openid"), + + /** + * share relation not existed + */ + CODE_61102(61102, "share relation not existed"), + + /** + * product wording not set + */ + CODE_61200(61200, "product wording not set"), + + /** + * invalid base info + */ + CODE_61300(61300, "invalid base info"), + + /** + * invalid detail info + */ + CODE_61301(61301, "invalid detail info"), + + /** + * invalid action info + */ + CODE_61302(61302, "invalid action info"), + + /** + * brand info not exist + */ + CODE_61303(61303, "brand info not exist"), + + /** + * invalid product id + */ + CODE_61304(61304, "invalid product id"), + + /** + * invalid key info + */ + CODE_61305(61305, "invalid key info"), + + /** + * invalid appid + */ + CODE_61306(61306, "invalid appid"), + + /** + * invalid card id + */ + CODE_61307(61307, "invalid card id"), + + /** + * base info not exist + */ + CODE_61308(61308, "base info not exist"), + + /** + * detail info not exist + */ + CODE_61309(61309, "detail info not exist"), + + /** + * action info not exist + */ + CODE_61310(61310, "action info not exist"), + + /** + * invalid media info + */ + CODE_61311(61311, "invalid media info"), + + /** + * invalid buffer size + */ + CODE_61312(61312, "invalid buffer size"), + + /** + * invalid buffer + */ + CODE_61313(61313, "invalid buffer"), + + /** + * invalid qrcode extinfo + */ + CODE_61314(61314, "invalid qrcode extinfo"), + + /** + * invalid local ext info + */ + CODE_61315(61315, "invalid local ext info"), + + /** + * key conflict + */ + CODE_61316(61316, "key conflict"), + + /** + * ticket invalid + */ + CODE_61317(61317, "ticket invalid"), + + /** + * verify not pass + */ + CODE_61318(61318, "verify not pass"), + + /** + * category invalid + */ + CODE_61319(61319, "category invalid"), + + /** + * merchant info not exist + */ + CODE_61320(61320, "merchant info not exist"), + + /** + * cate id is a leaf node + */ + CODE_61321(61321, "cate id is a leaf node"), + + /** + * category id no permision + */ + CODE_61322(61322, "category id no permision"), + + /** + * barcode no permision + */ + CODE_61323(61323, "barcode no permision"), + + /** + * exceed max action num + */ + CODE_61324(61324, "exceed max action num"), + + /** + * brandinfo invalid store mgr type + */ + CODE_61325(61325, "brandinfo invalid store mgr type"), + + /** + * anti-spam blocked + */ + CODE_61326(61326, "anti-spam blocked"), + + /** + * comment reach limit + */ + CODE_61327(61327, "comment reach limit"), + + /** + * comment data is not the newest + */ + CODE_61328(61328, "comment data is not the newest"), + + /** + * comment hit ban word + */ + CODE_61329(61329, "comment hit ban word"), + + /** + * image already add + */ + CODE_61330(61330, "image already add"), + + /** + * image never add + */ + CODE_61331(61331, "image never add"), + + /** + * warning, image quanlity too low + */ + CODE_61332(61332, "warning, image quanlity too low"), + + /** + * warning, image simility too high + */ + CODE_61333(61333, "warning, image simility too high"), + + /** + * product not exists + */ + CODE_61334(61334, "product not exists"), + + /** + * key apply fail + */ + CODE_61335(61335, "key apply fail"), + + /** + * check status fail + */ + CODE_61336(61336, "check status fail"), + + /** + * product already exists + */ + CODE_61337(61337, "product already exists"), + + /** + * forbid delete + */ + CODE_61338(61338, "forbid delete"), + + /** + * firmcode claimed + */ + CODE_61339(61339, "firmcode claimed"), + + /** + * check firm info fail + */ + CODE_61340(61340, "check firm info fail"), + + /** + * too many white list uin + */ + CODE_61341(61341, "too many white list uin"), + + /** + * keystandard not match + */ + CODE_61342(61342, "keystandard not match"), + + /** + * keystandard error + */ + CODE_61343(61343, "keystandard error"), + + /** + * id map not exists + */ + CODE_61344(61344, "id map not exists"), + + /** + * invalid action code + */ + CODE_61345(61345, "invalid action code"), + + /** + * invalid actioninfo store + */ + CODE_61346(61346, "invalid actioninfo store"), + + /** + * invalid actioninfo media + */ + CODE_61347(61347, "invalid actioninfo media"), + + /** + * invalid actioninfo text + */ + CODE_61348(61348, "invalid actioninfo text"), + + /** + * invalid input data + */ + CODE_61350(61350, "invalid input data"), + + /** + * input data exceed max size + */ + CODE_61351(61351, "input data exceed max size"), + + /** + * kf_account error + */ + CODE_61400(61400, "kf_account error"), + + /** + * kf system alredy transfer + */ + CODE_61401(61401, "kf system alredy transfer"), + + /** + * 系统错误 (system error) + */ + CODE_61450(61450, "系统错误 (system error)"), + + /** + * 参数错误 (invalid parameter) + */ + CODE_61451(61451, "参数错误 (invalid parameter)"), + + /** + * 无效客服账号 (invalid kf_account) + */ + CODE_61452(61452, "无效客服账号 (invalid kf_account)"), + + /** + * 客服帐号已存在 (kf_account exsited) + */ + CODE_61453(61453, "客服帐号已存在 (kf_account exsited)"), + + /** + * 客服帐号名长度超过限制 ( 仅允许 10 个英文字符,不包括 @ 及 @ 后的公众号的微信号 )(invalid kf_acount length) + */ + CODE_61454(61454, "客服帐号名长度超过限制 ( 仅允许 10 个英文字符,不包括 @ 及 @ 后的公众号的微信号 )(invalid kf_acount length)"), + + /** + * 客服帐号名包含非法字符 ( 仅允许英文 + 数字 )(illegal character in kf_account) + */ + CODE_61455(61455, "客服帐号名包含非法字符 ( 仅允许英文 + 数字 )(illegal character in kf_account)"), + + /** + * 客服帐号个数超过限制 (10 个客服账号 )(kf_account count exceeded) + */ + CODE_61456(61456, "客服帐号个数超过限制 (10 个客服账号 )(kf_account count exceeded)"), + + /** + * 无效头像文件类型 (invalid file type) + */ + CODE_61457(61457, "无效头像文件类型 (invalid file type)"), + + /** + * 日期格式错误 date format error + */ + CODE_61500(61500, "日期格式错误"), + + /** + * date range error + */ + CODE_61501(61501, "date range error"), + + /** + * this is game miniprogram, data api is not supported + */ + CODE_61502(61502, "this is game miniprogram, data api is not supported"), + + /** + * data not ready, please try later + */ + CODE_61503(61503, "data not ready, please try later"), + + /** + * trying to access other's app + */ + CODE_62001(62001, "trying to access other's app"), + + /** + * app name already exists + */ + CODE_62002(62002, "app name already exists"), + + /** + * please provide at least one platform + */ + CODE_62003(62003, "please provide at least one platform"), + + /** + * invalid app name + */ + CODE_62004(62004, "invalid app name"), + + /** + * invalid app id + */ + CODE_62005(62005, "invalid app id"), + + /** + * 部分参数为空 some arguments is empty + */ + CODE_63001(63001, "部分参数为空"), + + /** + * 无效的签名 invalid signature + */ + CODE_63002(63002, "无效的签名"), + + /** + * invalid signature method + */ + CODE_63003(63003, "invalid signature method"), + + /** + * no authroize + */ + CODE_63004(63004, "no authroize"), + + /** + * gen ticket fail + */ + CODE_63149(63149, "gen ticket fail"), + + /** + * set ticket fail + */ + CODE_63152(63152, "set ticket fail"), + + /** + * shortid decode fail + */ + CODE_63153(63153, "shortid decode fail"), + + /** + * invalid status + */ + CODE_63154(63154, "invalid status"), + + /** + * invalid color + */ + CODE_63155(63155, "invalid color"), + + /** + * invalid tag + */ + CODE_63156(63156, "invalid tag"), + + /** + * invalid recommend + */ + CODE_63157(63157, "invalid recommend"), + + /** + * branditem out of limits + */ + CODE_63158(63158, "branditem out of limits"), + + /** + * retail_price empty + */ + CODE_63159(63159, "retail_price empty"), + + /** + * priceinfo invalid + */ + CODE_63160(63160, "priceinfo invalid"), + + /** + * antifake module num limit + */ + CODE_63161(63161, "antifake module num limit"), + + /** + * antifake native_type err + */ + CODE_63162(63162, "antifake native_type err"), + + /** + * antifake link not exists + */ + CODE_63163(63163, "antifake link not exists"), + + /** + * module type not exist + */ + CODE_63164(63164, "module type not exist"), + + /** + * module info not exist + */ + CODE_63165(63165, "module info not exist"), + + /** + * item is beding verified + */ + CODE_63166(63166, "item is beding verified"), + + /** + * item not published + */ + CODE_63167(63167, "item not published"), + + /** + * verify not pass + */ + CODE_63168(63168, "verify not pass"), + + /** + * already published + */ + CODE_63169(63169, "already published"), + + /** + * only banner or media + */ + CODE_63170(63170, "only banner or media"), + + /** + * card num limit + */ + CODE_63171(63171, "card num limit"), + + /** + * user num limit + */ + CODE_63172(63172, "user num limit"), + + /** + * text num limit + */ + CODE_63173(63173, "text num limit"), + + /** + * link card user sum limit + */ + CODE_63174(63174, "link card user sum limit"), + + /** + * detail info error + */ + CODE_63175(63175, "detail info error"), + + /** + * not this type + */ + CODE_63176(63176, "not this type"), + + /** + * src or secretkey or version or expired_time is wrong + */ + CODE_63177(63177, "src or secretkey or version or expired_time is wrong"), + + /** + * appid wrong + */ + CODE_63178(63178, "appid wrong"), + + /** + * openid num limit + */ + CODE_63179(63179, "openid num limit"), + + /** + * this app msg not found + */ + CODE_63180(63180, "this app msg not found"), + + /** + * get history app msg end + */ + CODE_63181(63181, "get history app msg end"), + + /** + * openid_list empty + */ + CODE_63182(63182, "openid_list empty"), + + /** + * unknown deeplink type + */ + CODE_65001(65001, "unknown deeplink type"), + + /** + * deeplink unauthorized + */ + CODE_65002(65002, "deeplink unauthorized"), + + /** + * bad deeplink + */ + CODE_65003(65003, "bad deeplink"), + + /** + * deeplinks of the very type are supposed to have short-life + */ + CODE_65004(65004, "deeplinks of the very type are supposed to have short-life"), + + /** + * invalid categories + */ + CODE_65104(65104, "invalid categories"), + + /** + * invalid photo url + */ + CODE_65105(65105, "invalid photo url"), + + /** + * poi audit state must be approved + */ + CODE_65106(65106, "poi audit state must be approved"), + + /** + * poi not allowed modify now + */ + CODE_65107(65107, "poi not allowed modify now"), + + /** + * invalid business name + */ + CODE_65109(65109, "invalid business name"), + + /** + * invalid address + */ + CODE_65110(65110, "invalid address"), + + /** + * invalid telephone + */ + CODE_65111(65111, "invalid telephone"), + + /** + * invalid city + */ + CODE_65112(65112, "invalid city"), + + /** + * invalid province + */ + CODE_65113(65113, "invalid province"), + + /** + * photo list empty + */ + CODE_65114(65114, "photo list empty"), + + /** + * poi_id is not exist + */ + CODE_65115(65115, "poi_id is not exist"), + + /** + * poi has been deleted + */ + CODE_65116(65116, "poi has been deleted"), + + /** + * cannot delete poi + */ + CODE_65117(65117, "cannot delete poi"), + + /** + * store status is invalid + */ + CODE_65118(65118, "store status is invalid"), + + /** + * lack of qualification for relevant principals + */ + CODE_65119(65119, "lack of qualification for relevant principals"), + + /** + * category info is not found + */ + CODE_65120(65120, "category info is not found"), + + /** + * room_name is empty, please check your input + */ + CODE_65201(65201, "room_name is empty, please check your input"), + + /** + * user_id is empty, please check your input + */ + CODE_65202(65202, "user_id is empty, please check your input"), + + /** + * invalid check ticket + */ + CODE_65203(65203, "invalid check ticket"), + + /** + * invalid check ticket opt code + */ + CODE_65204(65204, "invalid check ticket opt code"), + + /** + * check ticket out of time + */ + CODE_65205(65205, "check ticket out of time"), + + /** + * 不存在此 menuid 对应的个性化菜单 this menu is not conditionalmenu + */ + CODE_65301(65301, "不存在此 menuid 对应的个性化菜单"), + + /** + * 没有相应的用户 no such user + */ + CODE_65302(65302, "没有相应的用户"), + + /** + * 没有默认菜单,不能创建个性化菜单 there is no selfmenu, please create selfmenu first + */ + CODE_65303(65303, "没有默认菜单,不能创建个性化菜单"), + + /** + * MatchRule 信息为空 match rule empty + */ + CODE_65304(65304, "MatchRule 信息为空"), + + /** + * 个性化菜单数量受限 menu count limit + */ + CODE_65305(65305, "个性化菜单数量受限"), + + /** + * 不支持个性化菜单的帐号 conditional menu not support + */ + CODE_65306(65306, "不支持个性化菜单的帐号"), + + /** + * 个性化菜单信息为空 conditional menu is empty + */ + CODE_65307(65307, "个性化菜单信息为空"), + + /** + * 包含没有响应类型的 button exist empty button act + */ + CODE_65308(65308, "包含没有响应类型的 button"), + + /** + * 个性化菜单开关处于关闭状态 conditional menu switch is closed + */ + CODE_65309(65309, "个性化菜单开关处于关闭状态"), + + /** + * 填写了省份或城市信息,国家信息不能为空 region info: country is empty + */ + CODE_65310(65310, "填写了省份或城市信息,国家信息不能为空"), + + /** + * 填写了城市信息,省份信息不能为空 region info: province is empty + */ + CODE_65311(65311, "填写了城市信息,省份信息不能为空"), + + /** + * 不合法的国家信息 invalid country info + */ + CODE_65312(65312, "不合法的国家信息"), + + /** + * 不合法的省份信息 invalid province info + */ + CODE_65313(65313, "不合法的省份信息"), + + /** + * 不合法的城市信息 invalid city info + */ + CODE_65314(65314, "不合法的城市信息"), + + /** + * not fans + */ + CODE_65315(65315, "not fans"), + + /** + * 该公众号的菜单设置了过多的域名外跳(最多跳转到 3 个域名的链接) domain count reach limit + */ + CODE_65316(65316, "该公众号的菜单设置了过多的域名外跳(最多跳转到 3 个域名的链接)"), + + /** + * 不合法的 URL contain invalid url + */ + CODE_65317(65317, "不合法的 URL"), + + /** + * must use utf-8 charset + */ + CODE_65318(65318, "must use utf-8 charset"), + + /** + * not allow to create menu + */ + CODE_65319(65319, "not allow to create menu"), + + /** + * please enable new custom service, or wait for a while if you have enabled + */ + CODE_65400(65400, "please enable new custom service, or wait for a while if you have enabled"), + + /** + * invalid custom service account + */ + CODE_65401(65401, "invalid custom service account"), + + /** + * the custom service account need to bind a wechat user + */ + CODE_65402(65402, "the custom service account need to bind a wechat user"), + + /** + * illegal nickname + */ + CODE_65403(65403, "illegal nickname"), + + /** + * illegal custom service account + */ + CODE_65404(65404, "illegal custom service account"), + + /** + * custom service account number reach limit + */ + CODE_65405(65405, "custom service account number reach limit"), + + /** + * custom service account exists + */ + CODE_65406(65406, "custom service account exists"), + + /** + * the wechat user have been one of your workers + */ + CODE_65407(65407, "the wechat user have been one of your workers"), + + /** + * you have already invited the wechat user + */ + CODE_65408(65408, "you have already invited the wechat user"), + + /** + * wechat account invalid + */ + CODE_65409(65409, "wechat account invalid"), + + /** + * too many custom service accounts bound by the worker + */ + CODE_65410(65410, "too many custom service accounts bound by the worker"), + + /** + * a effective invitation to bind the custom service account exists + */ + CODE_65411(65411, "a effective invitation to bind the custom service account exists"), + + /** + * the custom service account have been bound by a wechat user + */ + CODE_65412(65412, "the custom service account have been bound by a wechat user"), + + /** + * no effective session for the customer + */ + CODE_65413(65413, "no effective session for the customer"), + + /** + * another worker is serving the customer + */ + CODE_65414(65414, "another worker is serving the customer"), + + /** + * the worker is not online + */ + CODE_65415(65415, "the worker is not online"), + + /** + * param invalid, please check + */ + CODE_65416(65416, "param invalid, please check"), + + /** + * it is too long from the starttime to endtime + */ + CODE_65417(65417, "it is too long from the starttime to endtime"), + + /** + * homepage not exists + */ + CODE_65450(65450, "homepage not exists"), + + /** + * invalid store type + */ + CODE_68002(68002, "invalid store type"), + + /** + * invalid store name + */ + CODE_68003(68003, "invalid store name"), + + /** + * invalid store wxa path + */ + CODE_68004(68004, "invalid store wxa path"), + + /** + * miss store wxa path + */ + CODE_68005(68005, "miss store wxa path"), + + /** + * invalid kefu type + */ + CODE_68006(68006, "invalid kefu type"), + + /** + * invalid kefu wxa path + */ + CODE_68007(68007, "invalid kefu wxa path"), + + /** + * invalid kefu phone number + */ + CODE_68008(68008, "invalid kefu phone number"), + + /** + * invalid sub mch id + */ + CODE_68009(68009, "invalid sub mch id"), + + /** + * store id has exist + */ + CODE_68010(68010, "store id has exist"), + + /** + * miss store name + */ + CODE_68011(68011, "miss store name"), + + /** + * miss create time + */ + CODE_68012(68012, "miss create time"), + + /** + * invalid status + */ + CODE_68013(68013, "invalid status"), + + /** + * invalid receiver info + */ + CODE_68014(68014, "invalid receiver info"), + + /** + * invalid product + */ + CODE_68015(68015, "invalid product"), + + /** + * invalid pay type + */ + CODE_68016(68016, "invalid pay type"), + + /** + * invalid fast mail no + */ + CODE_68017(68017, "invalid fast mail no"), + + /** + * invalid busi id + */ + CODE_68018(68018, "invalid busi id"), + + /** + * miss product sku + */ + CODE_68019(68019, "miss product sku"), + + /** + * invalid service type + */ + CODE_68020(68020, "invalid service type"), + + /** + * invalid service status + */ + CODE_68021(68021, "invalid service status"), + + /** + * invalid service_id + */ + CODE_68022(68022, "invalid service_id"), + + /** + * service_id has exist + */ + CODE_68023(68023, "service_id has exist"), + + /** + * miss service wxa path + */ + CODE_68024(68024, "miss service wxa path"), + + /** + * invalid product sku + */ + CODE_68025(68025, "invalid product sku"), + + /** + * invalid product spu + */ + CODE_68026(68026, "invalid product spu"), + + /** + * miss product spu + */ + CODE_68027(68027, "miss product spu"), + + /** + * can not find product spu and spu in order list + */ + CODE_68028(68028, "can not find product spu and spu in order list"), + + /** + * sku and spu duplicated + */ + CODE_68029(68029, "sku and spu duplicated"), + + /** + * busi_id has exist + */ + CODE_68030(68030, "busi_id has exist"), + + /** + * update fail + */ + CODE_68031(68031, "update fail"), + + /** + * busi_id not exist + */ + CODE_68032(68032, "busi_id not exist"), + + /** + * store no exist + */ + CODE_68033(68033, "store no exist"), + + /** + * miss product number + */ + CODE_68034(68034, "miss product number"), + + /** + * miss wxa order detail path + */ + CODE_68035(68035, "miss wxa order detail path"), + + /** + * there is no enough products to refund + */ + CODE_68036(68036, "there is no enough products to refund"), + + /** + * invalid refund info + */ + CODE_68037(68037, "invalid refund info"), + + /** + * shipped but no fast mail info + */ + CODE_68038(68038, "shipped but no fast mail info"), + + /** + * invalid wechat pay no + */ + CODE_68039(68039, "invalid wechat pay no"), + + /** + * all product has been refunded, the order can not be finished + */ + CODE_68040(68040, "all product has been refunded, the order can not be finished"), + + /** + * invalid service create time, it must bigger than the time of order + */ + CODE_68041(68041, "invalid service create time, it must bigger than the time of order"), + + /** + * invalid total cost, it must be smaller than the sum of product and shipping cost + */ + CODE_68042(68042, "invalid total cost, it must be smaller than the sum of product and shipping cost"), + + /** + * invalid role + */ + CODE_68043(68043, "invalid role"), + + /** + * invalid service_available args + */ + CODE_68044(68044, "invalid service_available args"), + + /** + * invalid order type + */ + CODE_68045(68045, "invalid order type"), + + /** + * invalid order deliver type + */ + CODE_68046(68046, "invalid order deliver type"), + + /** + * require store_id + */ + CODE_68500(68500, "require store_id"), + + /** + * invalid store_id + */ + CODE_68501(68501, "invalid store_id"), + + /** + * invalid parameter, parameter is zero or missing + */ + CODE_71001(71001, "invalid parameter, parameter is zero or missing"), + + /** + * invalid orderid, may be the other parameter not fit with orderid + */ + CODE_71002(71002, "invalid orderid, may be the other parameter not fit with orderid"), + + /** + * coin not enough + */ + CODE_71003(71003, "coin not enough"), + + /** + * card is expired + */ + CODE_71004(71004, "card is expired"), + + /** + * limit exe count + */ + CODE_71005(71005, "limit exe count"), + + /** + * limit coin count, 1 <= coin_count <= 100000 + */ + CODE_71006(71006, "limit coin count, 1 <= coin_count <= 100000"), + + /** + * order finish + */ + CODE_71007(71007, "order finish"), + + /** + * order time out + */ + CODE_71008(71008, "order time out"), + + /** + * no match card + */ + CODE_72001(72001, "no match card"), + + /** + * mchid is not bind appid + */ + CODE_72002(72002, "mchid is not bind appid"), + + /** + * invalid card type, need member card + */ + CODE_72003(72003, "invalid card type, need member card"), + + /** + * mchid is occupied by the other appid + */ + CODE_72004(72004, "mchid is occupied by the other appid"), + + /** + * out of mchid size limit + */ + CODE_72005(72005, "out of mchid size limit"), + + /** + * invald title + */ + CODE_72006(72006, "invald title"), + + /** + * invalid reduce cost, can not less than 100 + */ + CODE_72007(72007, "invalid reduce cost, can not less than 100"), + + /** + * invalid least cost, most larger than reduce cost + */ + CODE_72008(72008, "invalid least cost, most larger than reduce cost"), + + /** + * invalid get limit, can not over 50 + */ + CODE_72009(72009, "invalid get limit, can not over 50"), + + /** + * invalid mchid + */ + CODE_72010(72010, "invalid mchid"), + + /** + * invalid activate_ticket.Maybe this ticket is not belong this AppId + */ + CODE_72011(72011, "invalid activate_ticket.Maybe this ticket is not belong this AppId"), + + /** + * activate_ticket has been expired + */ + CODE_72012(72012, "activate_ticket has been expired"), + + /** + * unauthorized order_id or authorization is expired + */ + CODE_72013(72013, "unauthorized order_id or authorization is expired"), + + /** + * task card share stock can not modify stock + */ + CODE_72014(72014, "task card share stock can not modify stock"), + + /** + * unauthorized create invoice + */ + CODE_72015(72015, "unauthorized create invoice"), + + /** + * unauthorized create member card + */ + CODE_72016(72016, "unauthorized create member card"), + + /** + * invalid invoice title + */ + CODE_72017(72017, "invalid invoice title"), + + /** + * duplicate order id, invoice had inserted to user + */ + CODE_72018(72018, "duplicate order id, invoice had inserted to user"), + + /** + * limit msg operation card list size, must <= 5 + */ + CODE_72019(72019, "limit msg operation card list size, must <= 5"), + + /** + * limit consume in use limit + */ + CODE_72020(72020, "limit consume in use limit"), + + /** + * unauthorized create general card + */ + CODE_72021(72021, "unauthorized create general card"), + + /** + * user unexpected, please add user to white list + */ + CODE_72022(72022, "user unexpected, please add user to white list"), + + /** + * invoice has been lock by others + */ + CODE_72023(72023, "invoice has been lock by others"), + + /** + * invoice status error + */ + CODE_72024(72024, "invoice status error"), + + /** + * invoice token error + */ + CODE_72025(72025, "invoice token error"), + + /** + * need set wx_activate true + */ + CODE_72026(72026, "need set wx_activate true"), + + /** + * invoice action error + */ + CODE_72027(72027, "invoice action error"), + + /** + * invoice never set pay mch info + */ + CODE_72028(72028, "invoice never set pay mch info"), + + /** + * invoice never set auth field + */ + CODE_72029(72029, "invoice never set auth field"), + + /** + * invalid mchid + */ + CODE_72030(72030, "invalid mchid"), + + /** + * invalid params + */ + CODE_72031(72031, "invalid params"), + + /** + * pay gift card rule expired + */ + CODE_72032(72032, "pay gift card rule expired"), + + /** + * pay gift card rule status err + */ + CODE_72033(72033, "pay gift card rule status err"), + + /** + * invlid rule id + */ + CODE_72034(72034, "invlid rule id"), + + /** + * biz reject insert + */ + CODE_72035(72035, "biz reject insert"), + + /** + * invoice is busy, try again please + */ + CODE_72036(72036, "invoice is busy, try again please"), + + /** + * invoice owner error + */ + CODE_72037(72037, "invoice owner error"), + + /** + * invoice order never auth + */ + CODE_72038(72038, "invoice order never auth"), + + /** + * invoice must be lock first + */ + CODE_72039(72039, "invoice must be lock first"), + + /** + * invoice pdf error + */ + CODE_72040(72040, "invoice pdf error"), + + /** + * billing_code and billing_no invalid + */ + CODE_72041(72041, "billing_code and billing_no invalid"), + + /** + * billing_code and billing_no repeated + */ + CODE_72042(72042, "billing_code and billing_no repeated"), + + /** + * billing_code or billing_no size error + */ + CODE_72043(72043, "billing_code or billing_no size error"), + + /** + * scan text out of time + */ + CODE_72044(72044, "scan text out of time"), + + /** + * check_code is empty + */ + CODE_72045(72045, "check_code is empty"), + + /** + * pdf_url is invalid + */ + CODE_72046(72046, "pdf_url is invalid"), + + /** + * pdf billing_code or pdf billing_no is error + */ + CODE_72047(72047, "pdf billing_code or pdf billing_no is error"), + + /** + * insert too many invoice, need auth again + */ + CODE_72048(72048, "insert too many invoice, need auth again"), + + /** + * never auth + */ + CODE_72049(72049, "never auth"), + + /** + * auth expired, need auth again + */ + CODE_72050(72050, "auth expired, need auth again"), + + /** + * app type error + */ + CODE_72051(72051, "app type error"), + + /** + * get too many invoice + */ + CODE_72052(72052, "get too many invoice"), + + /** + * user never auth + */ + CODE_72053(72053, "user never auth"), + + /** + * invoices is inserting, wait a moment please + */ + CODE_72054(72054, "invoices is inserting, wait a moment please"), + + /** + * too many invoices + */ + CODE_72055(72055, "too many invoices"), + + /** + * order_id repeated, please check order_id + */ + CODE_72056(72056, "order_id repeated, please check order_id"), + + /** + * today insert limit + */ + CODE_72057(72057, "today insert limit"), + + /** + * callback biz error + */ + CODE_72058(72058, "callback biz error"), + + /** + * this invoice is giving to others, wait a moment please + */ + CODE_72059(72059, "this invoice is giving to others, wait a moment please"), + + /** + * this invoice has been cancelled, check the reimburse_status please + */ + CODE_72060(72060, "this invoice has been cancelled, check the reimburse_status please"), + + /** + * this invoice has been closed, check the reimburse_status please + */ + CODE_72061(72061, "this invoice has been closed, check the reimburse_status please"), + + /** + * this code_auth_key is limited, try other code_auth_key please + */ + CODE_72062(72062, "this code_auth_key is limited, try other code_auth_key please"), + + /** + * biz contact is empty, set contact first please + */ + CODE_72063(72063, "biz contact is empty, set contact first please"), + + /** + * tbc error + */ + CODE_72064(72064, "tbc error"), + + /** + * tbc logic error + */ + CODE_72065(72065, "tbc logic error"), + + /** + * the card is send for advertisement, not allow modify time and budget + */ + CODE_72066(72066, "the card is send for advertisement, not allow modify time and budget"), + + /** + * BatchInsertAuthKey_Expired + */ + CODE_72067(72067, "BatchInsertAuthKey_Expired"), + + /** + * BatchInsertAuthKey_Owner + */ + CODE_72068(72068, "BatchInsertAuthKey_Owner"), + + /** + * BATCHTASKRUN_ERROR + */ + CODE_72069(72069, "BATCHTASKRUN_ERROR"), + + /** + * BIZ_TITLE_KEY_OUT_TIME + */ + CODE_72070(72070, "BIZ_TITLE_KEY_OUT_TIME"), + + /** + * Discern_GaoPeng_Error + */ + CODE_72071(72071, "Discern_GaoPeng_Error"), + + /** + * Discern_Type_Error + */ + CODE_72072(72072, "Discern_Type_Error"), + + /** + * Fee_Error + */ + CODE_72073(72073, "Fee_Error"), + + /** + * HAS_Auth + */ + CODE_72074(72074, "HAS_Auth"), + + /** + * HAS_SEND + */ + CODE_72075(72075, "HAS_SEND"), + + /** + * INVOICESIGN + */ + CODE_72076(72076, "INVOICESIGN"), + + /** + * KEY_DELETED + */ + CODE_72077(72077, "KEY_DELETED"), + + /** + * KEY_EXPIRED + */ + CODE_72078(72078, "KEY_EXPIRED"), + + /** + * MOUNT_ERROR + */ + CODE_72079(72079, "MOUNT_ERROR"), + + /** + * NO_FOUND + */ + CODE_72080(72080, "NO_FOUND"), + + /** + * No_Pull_Pdf + */ + CODE_72081(72081, "No_Pull_Pdf"), + + /** + * PDF_CHECK_ERROR + */ + CODE_72082(72082, "PDF_CHECK_ERROR"), + + /** + * PULL_PDF_FAIL + */ + CODE_72083(72083, "PULL_PDF_FAIL"), + + /** + * PUSH_BIZ_EMPTY + */ + CODE_72084(72084, "PUSH_BIZ_EMPTY"), + + /** + * SDK_APPID_ERROR + */ + CODE_72085(72085, "SDK_APPID_ERROR"), + + /** + * SDK_BIZ_ERROR + */ + CODE_72086(72086, "SDK_BIZ_ERROR"), + + /** + * SDK_URL_ERROR + */ + CODE_72087(72087, "SDK_URL_ERROR"), + + /** + * Search_Title_Fail + */ + CODE_72088(72088, "Search_Title_Fail"), + + /** + * TITLE_BUSY + */ + CODE_72089(72089, "TITLE_BUSY"), + + /** + * TITLE_NO_FOUND + */ + CODE_72090(72090, "TITLE_NO_FOUND"), + + /** + * TOKEN_ERR + */ + CODE_72091(72091, "TOKEN_ERR"), + + /** + * USER_TITLE_NOT_FOUND + */ + CODE_72092(72092, "USER_TITLE_NOT_FOUND"), + + /** + * Verify_3rd_Fail + */ + CODE_72093(72093, "Verify_3rd_Fail"), + + /** + * sys error make out invoice failed + */ + CODE_73000(73000, "sys error make out invoice failed"), + + /** + * wxopenid error + */ + CODE_73001(73001, "wxopenid error"), + + /** + * ddh orderid empty + */ + CODE_73002(73002, "ddh orderid empty"), + + /** + * wxopenid empty + */ + CODE_73003(73003, "wxopenid empty"), + + /** + * fpqqlsh empty + */ + CODE_73004(73004, "fpqqlsh empty"), + + /** + * not a commercial + */ + CODE_73005(73005, "not a commercial"), + + /** + * kplx empty + */ + CODE_73006(73006, "kplx empty"), + + /** + * nsrmc empty + */ + CODE_73007(73007, "nsrmc empty"), + + /** + * nsrdz empty + */ + CODE_73008(73008, "nsrdz empty"), + + /** + * nsrdh empty + */ + CODE_73009(73009, "nsrdh empty"), + + /** + * ghfmc empty + */ + CODE_73010(73010, "ghfmc empty"), + + /** + * kpr empty + */ + CODE_73011(73011, "kpr empty"), + + /** + * jshj empty + */ + CODE_73012(73012, "jshj empty"), + + /** + * hjje empty + */ + CODE_73013(73013, "hjje empty"), + + /** + * hjse empty + */ + CODE_73014(73014, "hjse empty"), + + /** + * hylx empty + */ + CODE_73015(73015, "hylx empty"), + + /** + * nsrsbh empty + */ + CODE_73016(73016, "nsrsbh empty"), + + /** + * kaipiao plat error + */ + CODE_73100(73100, "kaipiao plat error"), + + /** + * nsrsbh not cmp + */ + CODE_73101(73101, "nsrsbh not cmp"), + + /** + * invalid wxa appid in url_cell, wxa appid is need to bind biz appid + */ + CODE_73103(73103, "invalid wxa appid in url_cell, wxa appid is need to bind biz appid"), + + /** + * reach frequency limit + */ + CODE_73104(73104, "reach frequency limit"), + + /** + * Kp plat make invoice timeout, please try again with the same fpqqlsh + */ + CODE_73105(73105, "Kp plat make invoice timeout, please try again with the same fpqqlsh"), + + /** + * Fpqqlsh exist with different ddh + */ + CODE_73106(73106, "Fpqqlsh exist with different ddh"), + + /** + * Fpqqlsh is processing, please wait and query later + */ + CODE_73107(73107, "Fpqqlsh is processing, please wait and query later"), + + /** + * This ddh with other fpqqlsh already exist + */ + CODE_73108(73108, "This ddh with other fpqqlsh already exist"), + + /** + * This Fpqqlsh not exist in kpplat + */ + CODE_73109(73109, "This Fpqqlsh not exist in kpplat"), + + /** + * get card detail by card id and code fail + */ + CODE_73200(73200, "get card detail by card id and code fail"), + + /** + * get cloud invoice record fail + */ + CODE_73201(73201, "get cloud invoice record fail"), + + /** + * get appinfo fail + */ + CODE_73202(73202, "get appinfo fail"), + + /** + * get invoice category or rule kv error + */ + CODE_73203(73203, "get invoice category or rule kv error"), + + /** + * request card not exist + */ + CODE_73204(73204, "request card not exist"), + + /** + * 朋友的券玩法升级中,当前暂停创建,请创建其他类型卡券 + */ + CODE_73205(73205, "朋友的券玩法升级中,当前暂停创建,请创建其他类型卡券"), + + /** + * 朋友的券玩法升级中,当前暂停券点充值,请创建其他类型卡券 + */ + CODE_73206(73206, "朋友的券玩法升级中,当前暂停券点充值,请创建其他类型卡券"), + + /** + * 朋友的券玩法升级中,当前暂停开通券点账户 + */ + CODE_73207(73207, "朋友的券玩法升级中,当前暂停开通券点账户"), + + /** + * 朋友的券玩法升级中,当前不支持修改库存 + */ + CODE_73208(73208, "朋友的券玩法升级中,当前不支持修改库存"), + + /** + * 朋友的券玩法升级中,当前不支持修改有效期 + */ + CODE_73209(73209, "朋友的券玩法升级中,当前不支持修改有效期"), + + /** + * 当前批次不支持修改卡券批次库存 + */ + CODE_73210(73210, "当前批次不支持修改卡券批次库存"), + + /** + * 不再支持配置网页链接跳转,请选择小程序替代 + */ + CODE_73211(73211, "不再支持配置网页链接跳转,请选择小程序替代"), + + /** + * unauthorized backup member + */ + CODE_73212(73212, "unauthorized backup member"), + + /** + * invalid code type + */ + CODE_73213(73213, "invalid code type"), + + /** + * the user is already a member + */ + CODE_73214(73214, "the user is already a member"), + + /** + * 支付打通券能力已下线,请直接使用微信支付代金券API:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter1_1.shtml + */ + CODE_73215(73215, "支付打通券能力已下线,请直接使用微信支付代金券API:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter1_1.shtml"), + + /** + * 不合法的按钮名字,请从中选择一个:使用礼品卡/立即使用/去点外卖 + */ + CODE_73216(73216, "不合法的按钮名字,请从中选择一个:使用礼品卡/立即使用/去点外卖"), + + /** + * 礼品卡本身没有设置appname和path,不允许在修改接口设置 + */ + CODE_73217(73217, "礼品卡本身没有设置appname和path,不允许在修改接口设置"), + + /** + * 未授权使用礼品卡落地页跳转小程序功能 + */ + CODE_73218(73218, "未授权使用礼品卡落地页跳转小程序功能"), + + /** + * not find this wx_hotel_id info + */ + CODE_74000(74000, "not find this wx_hotel_id info"), + + /** + * request some param empty + */ + CODE_74001(74001, "request some param empty"), + + /** + * request some param error + */ + CODE_74002(74002, "request some param error"), + + /** + * request some param error + */ + CODE_74003(74003, "request some param error"), + + /** + * datetime error + */ + CODE_74004(74004, "datetime error"), + + /** + * checkin mode error + */ + CODE_74005(74005, "checkin mode error"), + + /** + * carid from error + */ + CODE_74007(74007, "carid from error"), + + /** + * this hotel routecode not exist + */ + CODE_74008(74008, "this hotel routecode not exist"), + + /** + * this hotel routecode info error contract developer + */ + CODE_74009(74009, "this hotel routecode info error contract developer"), + + /** + * maybe not support report mode + */ + CODE_74010(74010, "maybe not support report mode"), + + /** + * pic deocde not ok maybe its not good picdata + */ + CODE_74011(74011, "pic deocde not ok maybe its not good picdata"), + + /** + * verify sys erro + */ + CODE_74021(74021, "verify sys erro"), + + /** + * inner police erro + */ + CODE_74022(74022, "inner police erro"), + + /** + * unable to detect the face + */ + CODE_74023(74023, "unable to detect the face"), + + /** + * report checkin 2 lvye sys erro + */ + CODE_74040(74040, "report checkin 2 lvye sys erro"), + + /** + * report checkou 2 lvye sys erro + */ + CODE_74041(74041, "report checkou 2 lvye sys erro"), + + /** + * some param emtpy please check + */ + CODE_75001(75001, "some param emtpy please check"), + + /** + * param illegal please check + */ + CODE_75002(75002, "param illegal please check"), + + /** + * sys error kv store error + */ + CODE_75003(75003, "sys error kv store error"), + + /** + * sys error kvstring store error + */ + CODE_75004(75004, "sys error kvstring store error"), + + /** + * product not exist please check your product_id + */ + CODE_75005(75005, "product not exist please check your product_id"), + + /** + * order not exist please check order_id and buyer_appid + */ + CODE_75006(75006, "order not exist please check order_id and buyer_appid"), + + /** + * do not allow this status to change please check this order_id status now + */ + CODE_75007(75007, "do not allow this status to change please check this order_id status now"), + + /** + * product has exist please use new id + */ + CODE_75008(75008, "product has exist please use new id"), + + /** + * notify order status failed + */ + CODE_75009(75009, "notify order status failed"), + + /** + * buyer bussiness info not exist + */ + CODE_75010(75010, "buyer bussiness info not exist"), + + /** + * you had registered + */ + CODE_75011(75011, "you had registered"), + + /** + * store image key to kv error, please try again + */ + CODE_75012(75012, "store image key to kv error, please try again"), + + /** + * get image fail, please check you image key + */ + CODE_75013(75013, "get image fail, please check you image key"), + + /** + * this key is not belong to you + */ + CODE_75014(75014, "this key is not belong to you"), + + /** + * this key is expired + */ + CODE_75015(75015, "this key is expired"), + + /** + * encrypt decode key fail + */ + CODE_75016(75016, "encrypt decode key fail"), + + /** + * encrypt encode key fail + */ + CODE_75017(75017, "encrypt encode key fail"), + + /** + * bind buyer business info fail please contact us + */ + CODE_75018(75018, "bind buyer business info fail please contact us"), + + /** + * this key is empty, user may not upload file + */ + CODE_75019(75019, "this key is empty, user may not upload file"), + + /** + * 系统错误,请稍后再试 + */ + CODE_80000(80000, "系统错误,请稍后再试"), + + /** + * 参数格式校验错误 + */ + CODE_80001(80001, "参数格式校验错误"), + + /** + * 签名失败 + */ + CODE_80002(80002, "签名失败"), + + /** + * 该日期订单未生成 + */ + CODE_80003(80003, "该日期订单未生成"), + + /** + * 用户未绑卡 + */ + CODE_80004(80004, "用户未绑卡"), + + /** + * 姓名不符 + */ + CODE_80005(80005, "姓名不符"), + + /** + * 身份证不符 + */ + CODE_80006(80006, "身份证不符"), + + /** + * 获取城市信息失败 + */ + CODE_80007(80007, "获取城市信息失败"), + + /** + * 未找到指定少儿信息 + */ + CODE_80008(80008, "未找到指定少儿信息"), + + /** + * 少儿身份证不符 + */ + CODE_80009(80009, "少儿身份证不符"), + + /** + * 少儿未绑定 + */ + CODE_80010(80010, "少儿未绑定"), + + /** + * 签约号不符 + */ + CODE_80011(80011, "签约号不符"), + + /** + * 该地区局方配置不存在 + */ + CODE_80012(80012, "该地区局方配置不存在"), + + /** + * 调用方appid与局方配置不匹配 + */ + CODE_80013(80013, "调用方appid与局方配置不匹配"), + + /** + * 获取消息账号失败 + */ + CODE_80014(80014, "获取消息账号失败"), + + /** + * 非法的插件版本 + */ + CODE_80066(80066, "非法的插件版本"), + + /** + * 找不到使用的插件 + */ + CODE_80067(80067, "找不到使用的插件"), + + /** + * 没有权限使用该插件 + */ + CODE_80082(80082, "没有权限使用该插件"), + + /** + * 商家未接入 + */ + CODE_80101(80101, "商家未接入"), + + /** + * 实名校验code不存在 + */ + CODE_80111(80111, "实名校验code不存在"), + + /** + * code并发冲突 + */ + CODE_80112(80112, "code并发冲突"), + + /** + * 无效code + */ + CODE_80113(80113, "无效code"), + + /** + * report_type无效 + */ + CODE_80201(80201, "report_type无效"), + + /** + * service_type无效 + */ + CODE_80202(80202, "service_type无效"), + + /** + * 申请单不存在 + */ + CODE_80300(80300, "申请单不存在"), + + /** + * 申请单不属于该账号 + */ + CODE_80301(80301, "申请单不属于该账号"), + + /** + * 激活号段有重叠 + */ + CODE_80302(80302, "激活号段有重叠"), + + /** + * 码格式错误 + */ + CODE_80303(80303, "码格式错误"), + + /** + * 该码未激活 + */ + CODE_80304(80304, "该码未激活"), + + /** + * 激活失败 + */ + CODE_80305(80305, "激活失败"), + + /** + * 码索引超出申请范围 + */ + CODE_80306(80306, "码索引超出申请范围"), + + /** + * 申请已存在 + */ + CODE_80307(80307, "申请已存在"), + + /** + * 子任务未完成 + */ + CODE_80308(80308, "子任务未完成"), + + /** + * 子任务文件过期 + */ + CODE_80309(80309, "子任务文件过期"), + + /** + * 子任务不存在 + */ + CODE_80310(80310, "子任务不存在"), + + /** + * 获取文件失败 + */ + CODE_80311(80311, "获取文件失败"), + + /** + * 加密数据失败 + */ + CODE_80312(80312, "加密数据失败"), + + /** + * 加密数据密钥不存在,请联系接口人申请 + */ + CODE_80313(80313, "加密数据密钥不存在,请联系接口人申请"), + + /** + * can not set page_id in AddGiftCardPage + */ + CODE_81000(81000, "can not set page_id in AddGiftCardPage"), + + /** + * card_list is empty + */ + CODE_81001(81001, "card_list is empty"), + + /** + * card_id is not giftcard + */ + CODE_81002(81002, "card_id is not giftcard"), + + /** + * banner_pic_url is empty + */ + CODE_81004(81004, "banner_pic_url is empty"), + + /** + * banner_pic_url is not from cdn + */ + CODE_81005(81005, "banner_pic_url is not from cdn"), + + /** + * giftcard_wrap_pic_url_list is empty + */ + CODE_81006(81006, "giftcard_wrap_pic_url_list is empty"), + + /** + * giftcard_wrap_pic_url_list is not from cdn + */ + CODE_81007(81007, "giftcard_wrap_pic_url_list is not from cdn"), + + /** + * address is empty + */ + CODE_81008(81008, "address is empty"), + + /** + * service_phone is invalid + */ + CODE_81009(81009, "service_phone is invalid"), + + /** + * biz_description is empty + */ + CODE_81010(81010, "biz_description is empty"), + + /** + * invalid page_id + */ + CODE_81011(81011, "invalid page_id"), + + /** + * invalid order_id + */ + CODE_81012(81012, "invalid order_id"), + + /** + * invalid TIME_RANGE, begin_time + 31day must less than end_time + */ + CODE_81013(81013, "invalid TIME_RANGE, begin_time + 31day must less than end_time"), + + /** + * invalid count! count must equal or less than 100 + */ + CODE_81014(81014, "invalid count! count must equal or less than 100"), + + /** + * invalid category_index OR category.title is empty OR is_banner but has_category_index + */ + CODE_81015(81015, "invalid category_index OR category.title is empty OR is_banner but has_category_index"), + + /** + * is_banner is more than 1 + */ + CODE_81016(81016, "is_banner is more than 1"), + + /** + * order status error, please check pay status or gifting_status + */ + CODE_81017(81017, "order status error, please check pay status or gifting_status"), + + /** + * refund reduplicate, the order is already refunded + */ + CODE_81018(81018, "refund reduplicate, the order is already refunded"), + + /** + * lock order fail! the order is refunding by another request + */ + CODE_81019(81019, "lock order fail! the order is refunding by another request"), + + /** + * Invalid Args! page_id.size!=0 but all==true, or page_id.size==0 but all==false. + */ + CODE_81020(81020, "Invalid Args! page_id.size!=0 but all==true, or page_id.size==0 but all==false."), + + /** + * Empty theme_pic_url. + */ + CODE_81021(81021, "Empty theme_pic_url."), + + /** + * Empty theme.title. + */ + CODE_81022(81022, "Empty theme.title."), + + /** + * Empty theme.title_title. + */ + CODE_81023(81023, "Empty theme.title_title."), + + /** + * Empty theme.item_list. + */ + CODE_81024(81024, "Empty theme.item_list."), + + /** + * Empty theme.pic_item_list. + */ + CODE_81025(81025, "Empty theme.pic_item_list."), + + /** + * Invalid theme.title.length . + */ + CODE_81026(81026, "Invalid theme.title.length ."), + + /** + * Empty background_pic_url. + */ + CODE_81027(81027, "Empty background_pic_url."), + + /** + * Empty default_gifting_msg. + */ + CODE_81028(81028, "Empty default_gifting_msg."), + + /** + * Duplicate order_id + */ + CODE_81029(81029, "Duplicate order_id"), + + /** + * PreAlloc code fail + */ + CODE_81030(81030, "PreAlloc code fail"), + + /** + * Too many theme participate_activity + */ + CODE_81031(81031, "Too many theme participate_activity"), + + /** + * biz_template_id not exist + */ + CODE_82000(82000, "biz_template_id not exist"), + + /** + * result_page_style_id not exist + */ + CODE_82001(82001, "result_page_style_id not exist"), + + /** + * deal_msg_style_id not exist + */ + CODE_82002(82002, "deal_msg_style_id not exist"), + + /** + * card_style_id not exist + */ + CODE_82003(82003, "card_style_id not exist"), + + /** + * biz template not audit OK + */ + CODE_82010(82010, "biz template not audit OK"), + + /** + * biz template banned + */ + CODE_82011(82011, "biz template banned"), + + /** + * user not use service first + */ + CODE_82020(82020, "user not use service first"), + + /** + * exceed long period + */ + CODE_82021(82021, "exceed long period"), + + /** + * exceed long period max send cnt + */ + CODE_82022(82022, "exceed long period max send cnt"), + + /** + * exceed short period max send cnt + */ + CODE_82023(82023, "exceed short period max send cnt"), + + /** + * exceed data size limit + */ + CODE_82024(82024, "exceed data size limit"), + + /** + * invalid url + */ + CODE_82025(82025, "invalid url"), + + /** + * service disabled + */ + CODE_82026(82026, "service disabled"), + + /** + * invalid miniprogram appid + */ + CODE_82027(82027, "invalid miniprogram appid"), + + /** + * wx_cs_code should not be empty. + */ + CODE_82100(82100, "wx_cs_code should not be empty."), + + /** + * wx_cs_code is invalid. + */ + CODE_82101(82101, "wx_cs_code is invalid."), + + /** + * wx_cs_code is expire. + */ + CODE_82102(82102, "wx_cs_code is expire."), + + /** + * user_ip should not be empty. + */ + CODE_82103(82103, "user_ip should not be empty."), + + /** + * 公众平台账号与服务id不匹配 + */ + CODE_82200(82200, "公众平台账号与服务id不匹配"), + + /** + * 该停车场已存在,请勿重复添加 + */ + CODE_82201(82201, "该停车场已存在,请勿重复添加"), + + /** + * 该停车场信息不存在,请先导入 + */ + CODE_82202(82202, "该停车场信息不存在,请先导入"), + + /** + * 停车场价格格式不正确 + */ + CODE_82203(82203, "停车场价格格式不正确"), + + /** + * appid与code不匹配 + */ + CODE_82204(82204, "appid与code不匹配"), + + /** + * wx_park_code字段为空 + */ + CODE_82205(82205, "wx_park_code字段为空"), + + /** + * wx_park_code无效或已过期 + */ + CODE_82206(82206, "wx_park_code无效或已过期"), + + /** + * 电话字段为空 + */ + CODE_82207(82207, "电话字段为空"), + + /** + * 关闭时间格式不正确 + */ + CODE_82208(82208, "关闭时间格式不正确"), + + /** + * 该appid不支持开通城市服务插件 + */ + CODE_82300(82300, "该appid不支持开通城市服务插件"), + + /** + * 添加插件失败 + */ + CODE_82301(82301, "添加插件失败"), + + /** + * 未添加城市服务插件 + */ + CODE_82302(82302, "未添加城市服务插件"), + + /** + * fileid无效 + */ + CODE_82303(82303, "fileid无效"), + + /** + * 临时文件过期 + */ + CODE_82304(82304, "临时文件过期"), + + /** + * there is some param not exist + */ + CODE_83000(83000, "there is some param not exist"), + + /** + * system error + */ + CODE_83001(83001, "system error"), + + /** + * create_url_sence_failed + */ + CODE_83002(83002, "create_url_sence_failed"), + + /** + * appid maybe error or retry + */ + CODE_83003(83003, "appid maybe error or retry"), + + /** + * create appid auth failed or retry + */ + CODE_83004(83004, "create appid auth failed or retry"), + + /** + * wxwebencrytoken errro + */ + CODE_83005(83005, "wxwebencrytoken errro"), + + /** + * wxwebencrytoken expired or no exist + */ + CODE_83006(83006, "wxwebencrytoken expired or no exist"), + + /** + * wxwebencrytoken expired + */ + CODE_83007(83007, "wxwebencrytoken expired"), + + /** + * wxwebencrytoken no auth + */ + CODE_83008(83008, "wxwebencrytoken no auth"), + + /** + * wxwebencrytoken not the mate with openid + */ + CODE_83009(83009, "wxwebencrytoken not the mate with openid"), + + /** + * no exist service + */ + CODE_83200(83200, "no exist service"), + + /** + * uin has not the service + */ + CODE_83201(83201, "uin has not the service"), + + /** + * params is not json or not json array + */ + CODE_83202(83202, "params is not json or not json array"), + + /** + * params num exceed 10 + */ + CODE_83203(83203, "params num exceed 10"), + + /** + * object has not key + */ + CODE_83204(83204, "object has not key"), + + /** + * key is not string + */ + CODE_83205(83205, "key is not string"), + + /** + * object has not value + */ + CODE_83206(83206, "object has not value"), + + /** + * value is not string + */ + CODE_83207(83207, "value is not string"), + + /** + * key or value is empty + */ + CODE_83208(83208, "key or value is empty"), + + /** + * key exist repeated + */ + CODE_83209(83209, "key exist repeated"), + + /** + * invalid identify id + */ + CODE_84001(84001, "invalid identify id"), + + /** + * user data expired + */ + CODE_84002(84002, "user data expired"), + + /** + * user data not exist + */ + CODE_84003(84003, "user data not exist"), + + /** + * video upload fail! + */ + CODE_84004(84004, "video upload fail!"), + + /** + * video download fail! please try again + */ + CODE_84005(84005, "video download fail! please try again"), + + /** + * name or id_card_number empty + */ + CODE_84006(84006, "name or id_card_number empty"), + + /** + * 微信号不存在或微信号设置为不可搜索 user not exist or user cannot be searched + */ + CODE_85001(85001, "微信号不存在或微信号设置为不可搜索"), + + /** + * 小程序绑定的体验者数量达到上限 number of tester reach bind limit + */ + CODE_85002(85002, "小程序绑定的体验者数量达到上限"), + + /** + * 微信号绑定的小程序体验者达到上限 user already bind too many weapps + */ + CODE_85003(85003, "微信号绑定的小程序体验者达到上限"), + + /** + * 微信号已经绑定 user already bind + */ + CODE_85004(85004, "微信号已经绑定"), + + /** + * appid not bind weapp + */ + CODE_85005(85005, "appid not bind weapp"), + + /** + * 标签格式错误 tag is in invalid format + */ + CODE_85006(85006, "标签格式错误"), + + /** + * 页面路径错误 page is in invalid format + */ + CODE_85007(85007, "页面路径错误"), + + /** + * 当前小程序没有已经审核通过的类目,请添加类目成功后重试 category is in invalid format + */ + CODE_85008(85008, "当前小程序没有已经审核通过的类目,请添加类目成功后重试"), + + /** + * 已经有正在审核的版本 already submit a version under auditing + */ + CODE_85009(85009, "已经有正在审核的版本"), + + /** + * item_list 有项目为空 missing required data + */ + CODE_85010(85010, "item_list 有项目为空"), + + /** + * 标题填写错误 title is in invalid format + */ + CODE_85011(85011, "标题填写错误"), + + /** + * 无效的审核 id invalid audit id + */ + CODE_85012(85012, "无效的审核 id"), + + /** + * 无效的自定义配置 invalid ext_json, parse fail or containing invalid path + */ + CODE_85013(85013, "无效的自定义配置"), + + /** + * 无效的模板编号 template not exist + */ + CODE_85014(85014, "无效的模板编号"), + + /** + * 该账号不是小程序账号/版本输入错误 + */ + CODE_85015(85015, "该账号不是小程序账号/版本输入错误"), + + /** + * 版本输入错误 + */ // CODE_85015(85015, "版本输入错误"), - /** - * 域名数量超过限制 ,总数不能超过1000 exceed valid domain count - */ - CODE_85016(85016, "域名数量超过限制 ,总数不能超过1000"), - - /** - * 没有新增域名,请确认小程序已经添加了域名或该域名是否没有在第三方平台添加 no domain to modify after filtered, please confirm the domain has been set in miniprogram or open - */ - CODE_85017(85017, "没有新增域名,请确认小程序已经添加了域名或该域名是否没有在第三方平台添加"), - - /** - * 域名没有在第三方平台设置 - */ - CODE_85018(85018, "域名没有在第三方平台设置"), - - /** - * 没有审核版本 no version is under auditing - */ - CODE_85019(85019, "没有审核版本"), - - /** - * 审核状态未满足发布 status not allowed - */ - CODE_85020(85020, "审核状态未满足发布"), - - /** - * status not allowed - */ - CODE_85021(85021, "status not allowed"), - - /** - * invalid action - */ - CODE_85022(85022, "invalid action"), - - /** - * 审核列表填写的项目数不在 1-5 以内 item size is not in valid range - */ - CODE_85023(85023, "审核列表填写的项目数不在 1-5 以内"), - - /** - * need complete material - */ - CODE_85024(85024, "need complete material"), - - /** - * this phone reach bind limit - */ - CODE_85025(85025, "this phone reach bind limit"), - - /** - * this wechat account reach bind limit - */ - CODE_85026(85026, "this wechat account reach bind limit"), - - /** - * this idcard reach bind limit - */ - CODE_85027(85027, "this idcard reach bind limit"), - - /** - * this contractor reach bind limit - */ - CODE_85028(85028, "this contractor reach bind limit"), - - /** - * nickname has used - */ - CODE_85029(85029, "nickname has used"), - - /** - * invalid nickname size(4-30) - */ - CODE_85030(85030, "invalid nickname size(4-30)"), - - /** - * nickname is forbidden - */ - CODE_85031(85031, "nickname is forbidden"), - - /** - * nickname is complained - */ - CODE_85032(85032, "nickname is complained"), - - /** - * nickname is illegal - */ - CODE_85033(85033, "nickname is illegal"), - - /** - * nickname is protected - */ - CODE_85034(85034, "nickname is protected"), - - /** - * nickname is forbidden for different contractor - */ - CODE_85035(85035, "nickname is forbidden for different contractor"), - - /** - * introduction is illegal - */ - CODE_85036(85036, "introduction is illegal"), - - /** - * store has added - */ - CODE_85038(85038, "store has added"), - - /** - * store has added by others - */ - CODE_85039(85039, "store has added by others"), - - /** - * store has added by yourseld - */ - CODE_85040(85040, "store has added by yourseld"), - - /** - * credential has used - */ - CODE_85041(85041, "credential has used"), - - /** - * nearby reach limit - */ - CODE_85042(85042, "nearby reach limit"), - - /** - * 模板错误 invalid template, something wrong? - */ - CODE_85043(85043, "模板错误"), - - /** - * 代码包超过大小限制 package exceed max limit - */ - CODE_85044(85044, "代码包超过大小限制"), - - /** - * ext_json 有不存在的路径 some path in ext_json not exist - */ - CODE_85045(85045, "ext_json 有不存在的路径"), - - /** - * tabBar 中缺少 path pagepath missing in tabbar list - */ - CODE_85046(85046, "tabBar 中缺少 path"), - - /** - * pages 字段为空 pages are empty - */ - CODE_85047(85047, "pages 字段为空"), - - /** - * ext_json 解析失败 parse ext_json fail - */ - CODE_85048(85048, "ext_json 解析失败"), - - /** - * reach headimg or introduction quota limit - */ - CODE_85049(85049, "reach headimg or introduction quota limit"), - - /** - * verifying, don't apply again - */ - CODE_85050(85050, "verifying, don't apply again"), - - /** - * version_desc或者preview_info超限 data too large - */ - CODE_85051(85051, "version_desc或者preview_info超限"), - - /** - * app is already released - */ - CODE_85052(85052, "app is already released"), - - /** - * please apply merchant first - */ - CODE_85053(85053, "please apply merchant first"), - - /** - * poi_id is null, please upgrade first - */ - CODE_85054(85054, "poi_id is null, please upgrade first"), - - /** - * map_poi_id is invalid - */ - CODE_85055(85055, "map_poi_id is invalid"), - - /** - * mediaid is invalid - */ - CODE_85056(85056, "mediaid is invalid"), - - /** - * invalid widget data format - */ - CODE_85057(85057, "invalid widget data format"), - - /** - * no valid audit_id exist - */ - CODE_85058(85058, "no valid audit_id exist"), - - /** - * overseas access deny - */ - CODE_85059(85059, "overseas access deny"), - - /** - * invalid taskid - */ - CODE_85060(85060, "invalid taskid"), - - /** - * this phone reach bind limit - */ - CODE_85061(85061, "this phone reach bind limit"), - - /** - * this phone in black list - */ - CODE_85062(85062, "this phone in black list"), - - /** - * idcard in black list - */ - CODE_85063(85063, "idcard in black list"), - - /** - * 找不到模板 template not found - */ - CODE_85064(85064, "找不到模板"), - - /** - * 模板库已满 template list is full - */ - CODE_85065(85065, "模板库已满"), - - /** - * 链接错误 illegal prefix - */ - CODE_85066(85066, "链接错误"), - - /** - * input data error - */ - CODE_85067(85067, "input data error"), - - /** - * 测试链接不是子链接 test url is not the sub prefix - */ - CODE_85068(85068, "测试链接不是子链接"), - - /** - * 校验文件失败 check confirm file fail - */ - CODE_85069(85069, "校验文件失败"), - - /** - * 个人类型小程序无法设置二维码规则 prefix in black list - */ - CODE_85070(85070, "个人类型小程序无法设置二维码规则"), - - /** - * 已添加该链接,请勿重复添加 prefix added repeated - */ - CODE_85071(85071, "已添加该链接,请勿重复添加"), - - /** - * 该链接已被占用 prefix owned by other - */ - CODE_85072(85072, "该链接已被占用"), - - /** - * 二维码规则已满 prefix beyond limit - */ - CODE_85073(85073, "二维码规则已满"), - - /** - * 小程序未发布, 小程序必须先发布代码才可以发布二维码跳转规则 not published - */ - CODE_85074(85074, "小程序未发布, 小程序必须先发布代码才可以发布二维码跳转规则"), - - /** - * 个人类型小程序无法设置二维码规则 can not access - */ - CODE_85075(85075, "个人类型小程序无法设置二维码规则"), - - /** - * 小程序类目信息失效(类目中含有官方下架的类目,请重新选择类目) some category you choose is no longger supported, please choose other category - */ - CODE_85077(85077, "小程序类目信息失效(类目中含有官方下架的类目,请重新选择类目)"), - - /** - * operator info error - */ - CODE_85078(85078, "operator info error"), - - /** - * 小程序没有线上版本,不能进行灰度 miniprogram has no online release - */ - CODE_85079(85079, "小程序没有线上版本,不能进行灰度"), - - /** - * 小程序提交的审核未审核通过 miniprogram commit not approved - */ - CODE_85080(85080, "小程序提交的审核未审核通过"), - - /** - * 无效的发布比例 invalid gray percentage - */ - CODE_85081(85081, "无效的发布比例"), - - /** - * 当前的发布比例需要比之前设置的高 gray percentage too low - */ - CODE_85082(85082, "当前的发布比例需要比之前设置的高"), - - /** - * 搜索标记位被封禁,无法修改 search status is banned - */ - CODE_85083(85083, "搜索标记位被封禁,无法修改"), - - /** - * 非法的 status 值,只能填 0 或者 1 search status invalid - */ - CODE_85084(85084, "非法的 status 值,只能填 0 或者 1"), - - /** - * 小程序提审数量已达本月上限,请点击查看 submit audit reach limit pleasetry later - */ - CODE_85085(85085, "小程序提审数量已达本月上限,请点击查看"), - - /** - * 提交代码审核之前需提前上传代码 must commit before submit audit - */ - CODE_85086(85086, "提交代码审核之前需提前上传代码"), - - /** - * 小程序已使用 api navigateToMiniProgram,请声明跳转 appid 列表后再次提交 navigatetominiprogram appid list empty - */ - CODE_85087(85087, "小程序已使用 api navigateToMiniProgram,请声明跳转 appid 列表后再次提交"), - - /** - * no qbase privilege - */ - CODE_85088(85088, "no qbase privilege"), - - /** - * config not found - */ - CODE_85089(85089, "config not found"), - - /** - * wait and commit for this exappid later - */ - CODE_85090(85090, "wait and commit for this exappid later"), - - /** - * 小程序的搜索开关被关闭。请访问设置页面打开开关再重试 search status was turned off - */ - CODE_85091(85091, "小程序的搜索开关被关闭。请访问设置页面打开开关再重试"), - - /** - * preview_info格式错误 invalid preview_info format - */ - CODE_85092(85092, "preview_info格式错误"), - - /** - * preview_info 视频或者图片个数超限 invalid preview_info size - */ - CODE_85093(85093, "preview_info 视频或者图片个数超限"), - - /** - * 需提供审核机制说明信息 need add ugc declare - */ - CODE_85094(85094, "需提供审核机制说明信息"), - - /** - * 小程序不能发送该运动类型或运动类型不存在 - */ - CODE_85101(85101, "小程序不能发送该运动类型或运动类型不存在"), - - /** - * 数值异常 - */ - CODE_85102(85102, "数值异常"), - - /** - * 不是由第三方代小程序进行调用 should be called only from third party - */ - CODE_86000(86000, "不是由第三方代小程序进行调用"), - - /** - * 不存在第三方的已经提交的代码 component experience version not exists - */ - CODE_86001(86001, "不存在第三方的已经提交的代码"), - - /** - * 小程序还未设置昵称、头像、简介。请先设置完后再重新提交 miniprogram have not completed init procedure - */ - CODE_86002(86002, "小程序还未设置昵称、头像、简介。请先设置完后再重新提交"), - - /** - * component do not has category mall - */ - CODE_86003(86003, "component do not has category mall"), - - /** - * invalid wechat - */ - CODE_86004(86004, "invalid wechat"), - - /** - * wechat limit frequency - */ - CODE_86005(86005, "wechat limit frequency"), - - /** - * has no quota to send group msg - */ - CODE_86006(86006, "has no quota to send group msg"), - - /** - * 小程序禁止提交 - */ - CODE_86007(86007, "小程序禁止提交"), - - /** - * 服务商被处罚,限制全部代码提审能力 - */ - CODE_86008(86008, "服务商被处罚,限制全部代码提审能力"), - - /** - * 服务商新增小程序代码提审能力被限制 - */ - CODE_86009(86009, "服务商新增小程序代码提审能力被限制"), - - /** - * 服务商迭代小程序代码提审能力被限制 - */ - CODE_86010(86010, "服务商迭代小程序代码提审能力被限制"), - - /** - * 小游戏不能提交 this is game miniprogram, submit audit is forbidden - */ - CODE_87006(87006, "小游戏不能提交"), - - /** - * session_key is not existd or expired - */ - CODE_87007(87007, "session_key is not existd or expired"), - - /** - * invalid sig_method - */ - CODE_87008(87008, "invalid sig_method"), - - /** - * 无效的签名 invalid signature - */ - CODE_87009(87009, "无效的签名"), - - /** - * invalid buffer size - */ - CODE_87010(87010, "invalid buffer size"), - - /** - * 现网已经在灰度发布,不能进行版本回退 wxa has a gray release plan, forbid revert release - */ - CODE_87011(87011, "现网已经在灰度发布,不能进行版本回退"), - - /** - * 该版本不能回退,可能的原因:1:无上一个线上版用于回退 2:此版本为已回退版本,不能回退 3:此版本为回退功能上线之前的版本,不能回退 forbid revert this version release - */ - CODE_87012(87012, "该版本不能回退,可能的原因:1:无上一个线上版用于回退 2:此版本为已回退版本,不能回退 3:此版本为回退功能上线之前的版本,不能回退"), - - /** - * 撤回次数达到上限(每天5次,每个月 10 次) no quota to undo code - */ - CODE_87013(87013, "撤回次数达到上限(每天5次,每个月 10 次)"), - - /** - * risky content - */ - CODE_87014(87014, "risky content"), - - /** - * query timeout, try a content with less size - */ - CODE_87015(87015, "query timeout, try a content with less size"), - - /** - * some key-value in list meet length exceed - */ - CODE_87016(87016, "some key-value in list meet length exceed"), - - /** - * user storage size exceed, delete some keys and try again - */ - CODE_87017(87017, "user storage size exceed, delete some keys and try again"), - - /** - * user has stored too much keys. delete some keys and try again - */ - CODE_87018(87018, "user has stored too much keys. delete some keys and try again"), - - /** - * some keys in list meet length exceed - */ - CODE_87019(87019, "some keys in list meet length exceed"), - - /** - * need friend - */ - CODE_87080(87080, "need friend"), - - /** - * invalid openid - */ - CODE_87081(87081, "invalid openid"), - - /** - * invalid key - */ - CODE_87082(87082, "invalid key"), - - /** - * invalid operation - */ - CODE_87083(87083, "invalid operation"), - - /** - * invalid opnum - */ - CODE_87084(87084, "invalid opnum"), - - /** - * check fail - */ - CODE_87085(87085, "check fail"), - - /** - * without comment privilege - */ - CODE_88000(88000, "without comment privilege"), - - /** - * msg_data is not exists - */ - CODE_88001(88001, "msg_data is not exists"), - - /** - * the article is limit for safety - */ - CODE_88002(88002, "the article is limit for safety"), - - /** - * elected comment upper limit - */ - CODE_88003(88003, "elected comment upper limit"), - - /** - * comment was deleted by user - */ - CODE_88004(88004, "comment was deleted by user"), - - /** - * already reply - */ - CODE_88005(88005, "already reply"), - - /** - * reply content beyond max len or content len is zero - */ - CODE_88007(88007, "reply content beyond max len or content len is zero"), - - /** - * comment is not exists - */ - CODE_88008(88008, "comment is not exists"), - - /** - * reply is not exists - */ - CODE_88009(88009, "reply is not exists"), - - /** - * count range error. cout <= 0 or count > 50 - */ - CODE_88010(88010, "count range error. cout <= 0 or count > 50"), - - /** - * the article is limit for safety - */ - CODE_88011(88011, "the article is limit for safety"), - - /** - * account has bound open,该公众号/小程序已经绑定了开放平台帐号 account has bound open - */ - CODE_89000(89000, "account has bound open,该公众号/小程序已经绑定了开放平台帐号"), - - /** - * not same contractor,Authorizer 与开放平台帐号主体不相同 not same contractor - */ - CODE_89001(89001, "not same contractor,Authorizer 与开放平台帐号主体不相同"), - - /** - * open not exists,该公众号/小程序未绑定微信开放平台帐号。 open not exists - */ - CODE_89002(89002, "open not exists,该公众号/小程序未绑定微信开放平台帐号。"), - - /** - * 该开放平台帐号并非通过 api 创建,不允许操作 open is not created by api - */ - CODE_89003(89003, "该开放平台帐号并非通过 api 创建,不允许操作"), - - /** - * 该开放平台帐号所绑定的公众号/小程序已达上限(100 个) - */ - CODE_89004(89004, "该开放平台帐号所绑定的公众号/小程序已达上限(100 个)"), - - /** - * without add video ability, the ability was banned - */ - CODE_89005(89005, "without add video ability, the ability was banned"), - - /** - * without upload video ability, the ability was banned - */ - CODE_89006(89006, "without upload video ability, the ability was banned"), - - /** - * wxa quota limit - */ - CODE_89007(89007, "wxa quota limit"), - - /** - * overseas account can not link - */ - CODE_89008(89008, "overseas account can not link"), - - /** - * wxa reach link limit - */ - CODE_89009(89009, "wxa reach link limit"), - - /** - * link message has sent - */ - CODE_89010(89010, "link message has sent"), - - /** - * can not unlink nearby wxa - */ - CODE_89011(89011, "can not unlink nearby wxa"), - - /** - * can not unlink store or mall - */ - CODE_89012(89012, "can not unlink store or mall"), - - /** - * wxa is banned - */ - CODE_89013(89013, "wxa is banned"), - - /** - * support version error - */ - CODE_89014(89014, "support version error"), - - /** - * has linked wxa - */ - CODE_89015(89015, "has linked wxa"), - - /** - * reach same realname quota - */ - CODE_89016(89016, "reach same realname quota"), - - /** - * reach different realname quota - */ - CODE_89017(89017, "reach different realname quota"), - - /** - * unlink message has sent - */ - CODE_89018(89018, "unlink message has sent"), - - /** - * 业务域名无更改,无需重复设置 webview domain not change - */ - CODE_89019(89019, "业务域名无更改,无需重复设置"), - - /** - * 尚未设置小程序业务域名,请先在第三方平台中设置小程序业务域名后在调用本接口 open's webview domain is null! Need to set open's webview domain first! - */ - CODE_89020(89020, "尚未设置小程序业务域名,请先在第三方平台中设置小程序业务域名后在调用本接口"), - - /** - * 请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名 request domain is not open's webview domain! - */ - CODE_89021(89021, "请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名"), - - /** - * delete domain is not exist! - */ - CODE_89022(89022, "delete domain is not exist!"), - - /** - * 业务域名数量超过限制,最多可以添加100个业务域名 webview domain exceed limit - */ - CODE_89029(89029, "业务域名数量超过限制,最多可以添加100个业务域名"), - - /** - * operation reach month limit - */ - CODE_89030(89030, "operation reach month limit"), - - /** - * user bind reach limit - */ - CODE_89031(89031, "user bind reach limit"), - - /** - * weapp bind members reach limit - */ - CODE_89032(89032, "weapp bind members reach limit"), - - /** - * empty wx or openid - */ - CODE_89033(89033, "empty wx or openid"), - - /** - * userstr is invalid - */ - CODE_89034(89034, "userstr is invalid"), - - /** - * linking from mp - */ - CODE_89035(89035, "linking from mp"), - - /** - * 个人小程序不支持调用 setwebviewdomain 接口 not support single - */ - CODE_89231(89231, "个人小程序不支持调用 setwebviewdomain 接口"), - - /** - * hit black contractor - */ - CODE_89235(89235, "hit black contractor"), - - /** - * 该插件不能申请 this plugin can not apply - */ - CODE_89236(89236, "该插件不能申请"), - - /** - * 已经添加该插件 plugin has send apply message or already bind - */ - CODE_89237(89237, "已经添加该插件"), - - /** - * 申请或使用的插件已经达到上限 plugin count reach limit - */ - CODE_89238(89238, "申请或使用的插件已经达到上限"), - - /** - * 该插件不存在 plugin no exist - */ - CODE_89239(89239, "该插件不存在"), - - /** - * only applying status can be agreed or refused - */ - CODE_89240(89240, "only applying status can be agreed or refused"), - - /** - * only refused status can be deleted, please refused first - */ - CODE_89241(89241, "only refused status can be deleted, please refused first"), - - /** - * appid is no in the apply list, make sure appid is right - */ - CODE_89242(89242, "appid is no in the apply list, make sure appid is right"), - - /** - * 该申请为“待确认”状态,不可删除 can not delete apply request in 24 hours - */ - CODE_89243(89243, "该申请为“待确认”状态,不可删除"), - - /** - * 不存在该插件 appid plugin appid is no in the plugin list, make sure plugin appid is right - */ - CODE_89244(89244, "不存在该插件 appid"), - - /** - * mini program forbidden to link - */ - CODE_89245(89245, "mini program forbidden to link"), - - /** - * plugins with special category are used only by specific apps - */ - CODE_89246(89246, "plugins with special category are used only by specific apps"), - - /** - * 系统内部错误 inner error, retry after some while - */ - CODE_89247(89247, "系统内部错误"), - - /** - * invalid code type - */ - CODE_89248(89248, "invalid code type"), - - /** - * task running - */ - CODE_89249(89249, "task running"), - - /** - * 内部错误 inner error, retry after some while - */ - CODE_89250(89250, "内部错误"), - - /** - * 模板消息已下发,待法人人脸核身校验 legal person checking - */ - CODE_89251(89251, "模板消息已下发,待法人人脸核身校验"), - - /** - * 法人&企业信息一致性校验中 front checking - */ - CODE_89253(89253, "法人&企业信息一致性校验中"), - - /** - * lack of some component rights - */ - CODE_89254(89254, "lack of some component rights"), - - /** - * code参数无效,请检查code长度以及内容是否正确;注意code_type的值不同需要传的code长度不一样 enterprise code invalid - */ - CODE_89255(89255, "code参数无效,请检查code长度以及内容是否正确;注意code_type的值不同需要传的code长度不一样"), - - /** - * token 信息有误 no component info - */ - CODE_89256(89256, "token 信息有误"), - - /** - * 该插件版本不支持快速更新 no such version - */ - CODE_89257(89257, "该插件版本不支持快速更新"), - - /** - * 当前小程序帐号存在灰度发布中的版本,不可操作快速更新 code is gray online - */ - CODE_89258(89258, "当前小程序帐号存在灰度发布中的版本,不可操作快速更新"), - - /** - * zhibo plugin is not allow to delete - */ - CODE_89259(89259, "zhibo plugin is not allow to delete"), - - /** - * 订单无效 invalid trade - */ - CODE_89300(89300, "订单无效"), - - /** - * 系统不稳定,请稍后再试,如多次失败请通过社区反馈 - */ - CODE_89401(89401, "系统不稳定,请稍后再试,如多次失败请通过社区反馈"), - - /** - * 该小程序不在待审核队列,请检查是否已提交审核或已审完 - */ - CODE_89402(89402, "该小程序不在待审核队列,请检查是否已提交审核或已审完"), - - /** - * 本单属于平台不支持加急种类,请等待正常审核流程 - */ - CODE_89403(89403, "本单属于平台不支持加急种类,请等待正常审核流程"), - - /** - * 本单已加速成功,请勿重复提交 - */ - CODE_89404(89404, "本单已加速成功,请勿重复提交"), - - /** - * 本月加急额度已用完,请提高提审质量以获取更多额度 - */ - CODE_89405(89405, "本月加急额度已用完,请提高提审质量以获取更多额度"), - - /** - * 公众号有未处理的确认请求,请稍候重试 - */ - CODE_89501(89501, "公众号有未处理的确认请求,请稍候重试"), - - /** - * 请耐心等待管理员确认 - */ - CODE_89502(89502, "请耐心等待管理员确认"), - - /** - * 此次调用需要管理员确认,请耐心等候 - */ - CODE_89503(89503, "此次调用需要管理员确认,请耐心等候"), - - /** - * 正在等管理员确认,请耐心等待 - */ - CODE_89504(89504, "正在等管理员确认,请耐心等待"), - - /** - * 正在等管理员确认,请稍候重试 - */ - CODE_89505(89505, "正在等管理员确认,请稍候重试"), - - /** - * 该IP调用求请求已被公众号管理员拒绝,请24小时后再试,建议调用前与管理员沟通确认 - */ - CODE_89506(89506, "该IP调用求请求已被公众号管理员拒绝,请24小时后再试,建议调用前与管理员沟通确认"), - - /** - * 该IP调用求请求已被公众号管理员拒绝,请1小时后再试,建议调用前与管理员沟通确认 - */ - CODE_89507(89507, "该IP调用求请求已被公众号管理员拒绝,请1小时后再试,建议调用前与管理员沟通确认"), - - /** - * invalid order id - */ - CODE_90001(90001, "invalid order id"), - - /** - * invalid busi id - */ - CODE_90002(90002, "invalid busi id"), - - /** - * invalid bill date - */ - CODE_90003(90003, "invalid bill date"), - - /** - * invalid bill type - */ - CODE_90004(90004, "invalid bill type"), - - /** - * invalid platform - */ - CODE_90005(90005, "invalid platform"), - - /** - * bill not exists - */ - CODE_90006(90006, "bill not exists"), - - /** - * invalid openid - */ - CODE_90007(90007, "invalid openid"), - - /** - * mp_sig error - */ - CODE_90009(90009, "mp_sig error"), - - /** - * no session - */ - CODE_90010(90010, "no session"), - - /** - * sig error - */ - CODE_90011(90011, "sig error"), - - /** - * order exist - */ - CODE_90012(90012, "order exist"), - - /** - * balance not enough - */ - CODE_90013(90013, "balance not enough"), - - /** - * order has been confirmed - */ - CODE_90014(90014, "order has been confirmed"), - - /** - * order has been canceled - */ - CODE_90015(90015, "order has been canceled"), - - /** - * order is being processed - */ - CODE_90016(90016, "order is being processed"), - - /** - * no privilege - */ - CODE_90017(90017, "no privilege"), - - /** - * invalid parameter - */ - CODE_90018(90018, "invalid parameter"), - - /** - * 不是公众号快速创建的小程序 not fast register - */ - CODE_91001(91001, "不是公众号快速创建的小程序"), - - /** - * 小程序发布后不可改名 has published - */ - CODE_91002(91002, "小程序发布后不可改名"), - - /** - * 改名状态不合法 invalid change stat - */ - CODE_91003(91003, "改名状态不合法"), - - /** - * 昵称不合法 invalid nickname - */ - CODE_91004(91004, "昵称不合法"), - - /** - * 昵称 15 天主体保护 nickname protected - */ - CODE_91005(91005, "昵称 15 天主体保护"), - - /** - * 昵称命中微信号 nickname used by username - */ - CODE_91006(91006, "昵称命中微信号"), - - /** - * 昵称已被占用 nickname used - */ - CODE_91007(91007, "昵称已被占用"), - - /** - * 昵称命中 7 天侵权保护期 nickname protected - */ - CODE_91008(91008, "昵称命中 7 天侵权保护期"), - - /** - * 需要提交材料 nickname need proof - */ - CODE_91009(91009, "需要提交材料"), - - /** - * 其他错误 - */ - CODE_91010(91010, "其他错误"), - - /** - * 查不到昵称修改审核单信息 - */ - CODE_91011(91011, "查不到昵称修改审核单信息"), - - /** - * 其它错误 - */ - CODE_91012(91012, "其它错误"), - - /** - * 占用名字过多 lock name too more - */ - CODE_91013(91013, "占用名字过多"), - - /** - * +号规则 同一类型关联名主体不一致 diff master plus - */ - CODE_91014(91014, "+号规则 同一类型关联名主体不一致"), - - /** - * 原始名不同类型主体不一致 diff master - */ - CODE_91015(91015, "原始名不同类型主体不一致"), - - /** - * 名称占用者 ≥2 name more owner - */ - CODE_91016(91016, "名称占用者 ≥2"), - - /** - * +号规则 不同类型关联名主体不一致 other diff master plus - */ - CODE_91017(91017, "+号规则 不同类型关联名主体不一致"), - - /** - * 组织类型小程序发布后,侵权被清空昵称,需走认证改名 - */ - CODE_91018(91018, "组织类型小程序发布后,侵权被清空昵称,需走认证改名"), - - /** - * 小程序正在审核中 - */ - CODE_91019(91019, "小程序正在审核中"), - - /** - * 该经营资质已添加,请勿重复添加 - */ - CODE_92000(92000, "该经营资质已添加,请勿重复添加"), - - /** - * 附近地点添加数量达到上线,无法继续添加 - */ - CODE_92002(92002, "附近地点添加数量达到上线,无法继续添加"), - - /** - * 地点已被其它小程序占用 - */ - CODE_92003(92003, "地点已被其它小程序占用"), - - /** - * 附近功能被封禁 - */ - CODE_92004(92004, "附近功能被封禁"), - - /** - * 地点正在审核中 - */ - CODE_92005(92005, "地点正在审核中"), - - /** - * 地点正在展示小程序 - */ - CODE_92006(92006, "地点正在展示小程序"), - - /** - * 地点审核失败 - */ - CODE_92007(92007, "地点审核失败"), - - /** - * 小程序未展示在该地点 - */ - CODE_92008(92008, "小程序未展示在该地点"), - - /** - * 小程序未上架或不可见 - */ - CODE_93009(93009, "小程序未上架或不可见"), - - /** - * 地点不存在 - */ - CODE_93010(93010, "地点不存在"), - - /** - * 个人类型小程序不可用 - */ - CODE_93011(93011, "个人类型小程序不可用"), - - /** - * 非普通类型小程序(门店小程序、小店小程序等)不可用 - */ - CODE_93012(93012, "非普通类型小程序(门店小程序、小店小程序等)不可用"), - - /** - * 从腾讯地图获取地址详细信息失败 - */ - CODE_93013(93013, "从腾讯地图获取地址详细信息失败"), - - /** - * 同一资质证件号重复添加 - */ - CODE_93014(93014, "同一资质证件号重复添加"), - - /** - * 附近类目审核中 - */ - CODE_93015(93015, "附近类目审核中"), - - /** - * 服务标签个数超限制(官方最多5个,自定义最多4个) - */ - CODE_93016(93016, "服务标签个数超限制(官方最多5个,自定义最多4个)"), - - /** - * 服务标签或者客服的名字不符合要求 - */ - CODE_93017(93017, "服务标签或者客服的名字不符合要求"), - - /** - * 服务能力中填写的小程序appid不是同主体小程序 - */ - CODE_93018(93018, "服务能力中填写的小程序appid不是同主体小程序"), - - /** - * 申请类目之后才能添加附近地点 - */ - CODE_93019(93019, "申请类目之后才能添加附近地点"), - - /** - * qualification_list无效 - */ - CODE_93020(93020, "qualification_list无效"), - - /** - * company_name字段为空 - */ - CODE_93021(93021, "company_name字段为空"), - - /** - * credential字段为空 - */ - CODE_93022(93022, "credential字段为空"), - - /** - * address字段为空 - */ - CODE_93023(93023, "address字段为空"), - - /** - * qualification_list字段为空 - */ - CODE_93024(93024, "qualification_list字段为空"), - - /** - * 服务appid对应的path不存在 - */ - CODE_93025(93025, "服务appid对应的path不存在"), - - /** - * missing cert_serialno - */ - CODE_94001(94001, "missing cert_serialno"), - - /** - * use not register wechat pay - */ - CODE_94002(94002, "use not register wechat pay"), - - /** - * invalid sign - */ - CODE_94003(94003, "invalid sign"), - - /** - * user do not has real name info - */ - CODE_94004(94004, "user do not has real name info"), - - /** - * invalid user token - */ - CODE_94005(94005, "invalid user token"), - - /** - * appid unauthorized - */ - CODE_94006(94006, "appid unauthorized"), - - /** - * appid unbind mchid - */ - CODE_94007(94007, "appid unbind mchid"), - - /** - * invalid timestamp - */ - CODE_94008(94008, "invalid timestamp"), - - /** - * invalid cert_serialno, cert_serialno's size should be 40 - */ - CODE_94009(94009, "invalid cert_serialno, cert_serialno's size should be 40"), - - /** - * invalid mch_id - */ - CODE_94010(94010, "invalid mch_id"), - - /** - * timestamp expired - */ - CODE_94011(94011, "timestamp expired"), - - /** - * appid和商户号的绑定关系不存在 - */ - CODE_94012(94012, "appid和商户号的绑定关系不存在"), - - /** - * wxcode decode fail - */ - CODE_95001(95001, "wxcode decode fail"), - - /** - * wxcode recognize unautuorized - */ - CODE_95002(95002, "wxcode recognize unautuorized"), - - /** - * get product by page args invalid - */ - CODE_95101(95101, "get product by page args invalid"), - - /** - * get product materials by cond args invalid - */ - CODE_95102(95102, "get product materials by cond args invalid"), - - /** - * material id list size out of limit - */ - CODE_95103(95103, "material id list size out of limit"), - - /** - * import product frequence out of limit - */ - CODE_95104(95104, "import product frequence out of limit"), - - /** - * mp is importing products, api is rejected to import - */ - CODE_95105(95105, "mp is importing products, api is rejected to import"), - - /** - * api is rejected to import, need to set commission ratio on mp first - */ - CODE_95106(95106, "api is rejected to import, need to set commission ratio on mp first"), - - /** - * invalid image url - */ - CODE_101000(101000, "无效图片链接"), - - /** - * certificate not found - */ - CODE_101001(101001, "未找到证书"), - - /** - * not enough market quota - */ - CODE_101002(101002, "not enough market quota"), - - /** - * 入参错误 - */ - CODE_200002(200002, "入参错误"), - - /** - * 此账号已被封禁,无法操作 - */ - CODE_200011(200011, "此账号已被封禁,无法操作"), - - /** - * 个人模板数已达上限,上限25个 - */ - CODE_200012(200012, "个人模板数已达上限,上限25个"), - - /** - * 此模板已被封禁,无法选用 - */ - CODE_200013(200013, "此模板已被封禁,无法选用"), - - /** - * 模板 tid 参数错误 - */ - CODE_200014(200014, "模板 tid 参数错误"), - - /** - * start 参数错误 - */ - CODE_200016(200016, "start 参数错误"), - - /** - * limit 参数错误 - */ - CODE_200017(200017, "limit 参数错误"), - - /** - * 类目 ids 缺失 - */ - CODE_200018(200018, "类目 ids 缺失"), - - /** - * 类目 ids 不合法 - */ - CODE_200019(200019, "类目 ids 不合法"), - - /** - * 关键词列表 kidList 参数错误 - */ - CODE_200020(200020, "关键词列表 kidList 参数错误"), - - /** - * 场景描述 sceneDesc 参数错误 - */ - CODE_200021(200021, "场景描述 sceneDesc 参数错误"), - - /** - * 禁止创建/更新商品(如商品创建功能被封禁) 或 禁止编辑&更新房间 - */ - CODE_300001(300001, "禁止创建/更新商品(如商品创建功能被封禁) 或 禁止编辑&更新房间"), - - /** - * 名称长度不符合规则 - */ - CODE_300002(300002, "名称长度不符合规则"), - - /** - * 价格输入不合规(如现价比原价大、传入价格非数字等) - */ - CODE_300003(300003, "价格输入不合规(如现价比原价大、传入价格非数字等)"), - - /** - * 商品名称存在违规违法内容 - */ - CODE_300004(300004, "商品名称存在违规违法内容"), - - /** - * 商品图片存在违规违法内容 - */ - CODE_300005(300005, "商品图片存在违规违法内容"), - - /** - * 图片上传失败(如mediaID过期) - */ - CODE_300006(300006, "图片上传失败(如mediaID过期)"), - - /** - * 线上小程序版本不存在该链接 - */ - CODE_300007(300007, "线上小程序版本不存在该链接"), - - /** - * 添加商品失败 - */ - CODE_300008(300008, "添加商品失败"), - - /** - * 商品审核撤回失败 - */ - CODE_300009(300009, "商品审核撤回失败"), - - /** - * 商品审核状态不对(如商品审核中) - */ - CODE_300010(300010, "商品审核状态不对(如商品审核中)"), - - /** - * 操作非法(API不允许操作非API创建的商品) - */ - CODE_300011(300011, "操作非法(API不允许操作非API创建的商品)"), - - /** - * 没有提审额度(每天500次提审额度) - */ - CODE_300012(300012, "没有提审额度(每天500次提审额度)"), - - /** - * 提审失败 - */ - CODE_300013(300013, "提审失败"), - - /** - * 审核中,无法删除(非零代表失败) - */ - CODE_300014(300014, "审核中,无法删除(非零代表失败)"), - - /** - * 商品未提审 - */ - CODE_300017(300017, "商品未提审"), - - /** - * 商品添加成功,审核失败 - */ - CODE_300021(300021, "商品添加成功,审核失败"), - - /** - * 此房间号不存在 - */ - CODE_300022(300022, "此房间号不存在"), - - /** - * 房间状态 拦截(当前房间状态不允许此操作) - */ - CODE_300023(300023, "房间状态 拦截(当前房间状态不允许此操作)"), - - /** - * 商品不存在 - */ - CODE_300024(300024, "商品不存在"), - - /** - * 商品审核未通过 - */ - CODE_300025(300025, "商品审核未通过"), - - /** - * 房间商品数量已经满额 - */ - CODE_300026(300026, "房间商品数量已经满额"), - - /** - * 导入商品失败 - */ - CODE_300027(300027, "导入商品失败"), - - /** - * 房间名称违规 - */ - CODE_300028(300028, "房间名称违规"), - - /** - * 主播昵称违规 - */ - CODE_300029(300029, "主播昵称违规"), - - /** - * 主播微信号不合法 - */ - CODE_300030(300030, "主播微信号不合法"), - - /** - * 直播间封面图不合规 - */ - CODE_300031(300031, "直播间封面图不合规"), - - /** - * 直播间分享图违规 - */ - CODE_300032(300032, "直播间分享图违规"), - - /** - * 添加商品超过直播间上限 - */ - CODE_300033(300033, "添加商品超过直播间上限"), - - /** - * 主播微信昵称长度不符合要求 - */ - CODE_300034(300034, "主播微信昵称长度不符合要求"), - - /** - * 主播微信号不存在 - */ - CODE_300035(300035, "主播微信号不存在"), - - /** - * 主播微信号未实名认证 - */ - CODE_300036(300036, "主播微信号未实名认证"), - - /** - * invalid file name - */ - CODE_600001(600001, "invalid file name"), - - /** - * no permission to upload file - */ - CODE_600002(600002, "no permission to upload file"), - - /** - * invalid size of source - */ - CODE_600003(600003, "invalid size of source"), - - /** - * 票据已存在 - */ - CODE_928000(928000, "票据已存在"), - - /** - * 票据不存在 - */ - CODE_928001(928001, "票据不存在"), - - /** - * sysem error - */ - CODE_930555(930555, "sysem error"), - - /** - * delivery timeout - */ - CODE_930556(930556, "delivery timeout"), - - /** - * delivery system error - */ - CODE_930557(930557, "delivery system error"), - - /** - * delivery logic error - */ - CODE_930558(930558, "delivery logic error"), - - /** - * 沙盒环境openid无效 invaild openid - */ - CODE_930559(930559, "沙盒环境openid无效"), - - /** - * shopid need bind first - */ - CODE_930560(930560, "shopid need bind first"), - - /** - * 参数错误 args error - */ - CODE_930561(930561, "参数错误"), - - /** - * order already exists - */ - CODE_930562(930562, "order already exists"), - - /** - * 订单不存在 order not exists - */ - CODE_930563(930563, "订单不存在"), - - /** - * 沙盒环境调用无配额 quota run out, try next day - */ - CODE_930564(930564, "沙盒环境调用无配额"), - - /** - * order finished - */ - CODE_930565(930565, "order finished"), - - /** - * not support, plz auth at mp.weixin.qq.com - */ - CODE_930566(930566, "not support, plz auth at mp.weixin.qq.com"), - - /** - * shop arg error - */ - CODE_930567(930567, "shop arg error"), - - /** - * 不支持个人类型小程序 not personal account - */ - CODE_930568(930568, "不支持个人类型小程序"), - - /** - * 已经开通不需要再开通 already open - */ - CODE_930569(930569, "已经开通不需要再开通"), - - /** - * cargo_first_class or cargo_second_class invalid - */ - CODE_930570(930570, "cargo_first_class or cargo_second_class invalid"), - - /** - * 该商户没有内测权限,请先申请权限: https://wj.qq.com/s2/7243532/fcfb/ - */ - CODE_930571(930571, "该商户没有内测权限,请先申请权限: https://wj.qq.com/s2/7243532/fcfb/"), - - /** - * fee already set - */ - CODE_931010(931010, "fee already set"), - - /** - * unbind download url - */ - CODE_6000100(6000100, "unbind download url"), - - /** - * no response data - */ - CODE_6000101(6000101, "no response data"), - - /** - * response data too big - */ - CODE_6000102(6000102, "response data too big"), - - /** - * POST 数据参数不合法 - */ - CODE_9001001(9001001, "POST 数据参数不合法"), - - /** - * 远端服务不可用 - */ - CODE_9001002(9001002, "远端服务不可用"), - - /** - * Ticket 不合法 - */ - CODE_9001003(9001003, "Ticket 不合法"), - - /** - * 获取摇周边用户信息失败 - */ - CODE_9001004(9001004, "获取摇周边用户信息失败"), - - /** - * 获取商户信息失败 - */ - CODE_9001005(9001005, "获取商户信息失败"), - - /** - * 获取 OpenID 失败 - */ - CODE_9001006(9001006, "获取 OpenID 失败"), - - /** - * 上传文件缺失 - */ - CODE_9001007(9001007, "上传文件缺失"), - - /** - * 上传素材的文件类型不合法 - */ - CODE_9001008(9001008, "上传素材的文件类型不合法"), - - /** - * 上传素材的文件尺寸不合法 - */ - CODE_9001009(9001009, "上传素材的文件尺寸不合法"), - - /** - * 上传失败 - */ - CODE_9001010(9001010, "上传失败"), - - /** - * 帐号不合法 - */ - CODE_9001020(9001020, "帐号不合法"), - - /** - * 已有设备激活率低于 50% ,不能新增设备 - */ - CODE_9001021(9001021, "已有设备激活率低于 50% ,不能新增设备"), - - /** - * 设备申请数不合法,必须为大于 0 的数字 - */ - CODE_9001022(9001022, "设备申请数不合法,必须为大于 0 的数字"), - - /** - * 已存在审核中的设备 ID 申请 - */ - CODE_9001023(9001023, "已存在审核中的设备 ID 申请"), - - /** - * 一次查询设备 ID 数量不能超过 50 - */ - CODE_9001024(9001024, "一次查询设备 ID 数量不能超过 50"), - - /** - * 设备 ID 不合法 - */ - CODE_9001025(9001025, "设备 ID 不合法"), - - /** - * 页面 ID 不合法 - */ - CODE_9001026(9001026, "页面 ID 不合法"), - - /** - * 页面参数不合法 - */ - CODE_9001027(9001027, "页面参数不合法"), - - /** - * 一次删除页面 ID 数量不能超过 10 - */ - CODE_9001028(9001028, "一次删除页面 ID 数量不能超过 10"), - - /** - * 页面已应用在设备中,请先解除应用关系再删除 - */ - CODE_9001029(9001029, "页面已应用在设备中,请先解除应用关系再删除"), - - /** - * 一次查询页面 ID 数量不能超过 50 - */ - CODE_9001030(9001030, "一次查询页面 ID 数量不能超过 50"), - - /** - * 时间区间不合法 - */ - CODE_9001031(9001031, "时间区间不合法"), - - /** - * 保存设备与页面的绑定关系参数错误 - */ - CODE_9001032(9001032, "保存设备与页面的绑定关系参数错误"), - - /** - * 门店 ID 不合法 - */ - CODE_9001033(9001033, "门店 ID 不合法"), - - /** - * 设备备注信息过长 - */ - CODE_9001034(9001034, "设备备注信息过长"), - - /** - * 设备申请参数不合法 - */ - CODE_9001035(9001035, "设备申请参数不合法"), - - /** - * 查询起始值 begin 不合法 - */ - CODE_9001036(9001036, "查询起始值 begin 不合法"), - - /** - * params invalid - */ - CODE_9002008(9002008, "params invalid"), - - /** - * shop id not exist - */ - CODE_9002009(9002009, "shop id not exist"), - - /** - * ssid or password should start with "WX" - */ - CODE_9002010(9002010, "ssid or password should start with \"WX\""), - - /** - * ssid can not include chinese - */ - CODE_9002011(9002011, "ssid can not include chinese"), - - /** - * passsword can not include chinese - */ - CODE_9002012(9002012, "passsword can not include chinese"), - - /** - * password must be between 8 and 24 characters - */ - CODE_9002013(9002013, "password must be between 8 and 24 characters"), - - /** - * device exist - */ - CODE_9002016(9002016, "device exist"), - - /** - * device not exist - */ - CODE_9002017(9002017, "device not exist"), - - /** - * the size of query list reach limit - */ - CODE_9002026(9002026, "the size of query list reach limit"), - - /** - * not allowed to modify, ensure you are an certified or component account - */ - CODE_9002041(9002041, "not allowed to modify, ensure you are an certified or component account"), - - /** - * invalid ssid, can not include none utf8 characters, and should be between 1 and 32 bytes - */ - CODE_9002044(9002044, "invalid ssid, can not include none utf8 characters, and should be between 1 and 32 bytes"), - - /** - * shop id has not be audited, this bar type is not enable - */ - CODE_9002052(9002052, "shop id has not be audited, this bar type is not enable"), - - /** - * protocol type is not same with the exist device - */ - CODE_9007003(9007003, "protocol type is not same with the exist device"), - - /** - * ssid not exist - */ - CODE_9007004(9007004, "ssid not exist"), - - /** - * device count limit - */ - CODE_9007005(9007005, "device count limit"), - - /** - * card info not exist - */ - CODE_9008001(9008001, "card info not exist"), - - /** - * card expiration time is invalid - */ - CODE_9008002(9008002, "card expiration time is invalid"), - - /** - * url size invalid, keep less than 255 - */ - CODE_9008003(9008003, "url size invalid, keep less than 255"), - - /** - * url can not include chinese - */ - CODE_9008004(9008004, "url can not include chinese"), - - /** - * order_id not exist - */ - CODE_9200001(9200001, "order_id not exist"), - - /** - * order of other biz - */ - CODE_9200002(9200002, "order of other biz"), - - /** - * blocked - */ - CODE_9200003(9200003, "blocked"), - - /** - * payment notice disabled - */ - CODE_9200211(9200211, "payment notice disabled"), - - /** - * payment notice not exist - */ - CODE_9200231(9200231, "payment notice not exist"), - - /** - * payment notice paid - */ - CODE_9200232(9200232, "payment notice paid"), - - /** - * payment notice canceled - */ - CODE_9200233(9200233, "payment notice canceled"), - - /** - * payment notice expired - */ - CODE_9200235(9200235, "payment notice expired"), - - /** - * bank not allow - */ - CODE_9200236(9200236, "bank not allow"), - - /** - * freq limit - */ - CODE_9200295(9200295, "freq limit"), - - /** - * suspend payment at current time - */ - CODE_9200297(9200297, "suspend payment at current time"), - - /** - * 3rd resp decrypt error - */ - CODE_9200298(9200298, "3rd resp decrypt error"), - - /** - * 3rd resp system error - */ - CODE_9200299(9200299, "3rd resp system error"), - - /** - * 3rd resp sign error - */ - CODE_9200300(9200300, "3rd resp sign error"), - - /** - * desc empty - */ - CODE_9201000(9201000, "desc empty"), - - /** - * fee not equal items' - */ - CODE_9201001(9201001, "fee not equal items'"), - - /** - * payment info incorrect - */ - CODE_9201002(9201002, "payment info incorrect"), - - /** - * fee is 0 - */ - CODE_9201003(9201003, "fee is 0"), - - /** - * payment expire date format error - */ - CODE_9201004(9201004, "payment expire date format error"), - - /** - * appid error - */ - CODE_9201005(9201005, "appid error"), - - /** - * payment order id error - */ - CODE_9201006(9201006, "payment order id error"), - - /** - * openid error - */ - CODE_9201007(9201007, "openid error"), - - /** - * return_url error - */ - CODE_9201008(9201008, "return_url error"), - - /** - * ip error - */ - CODE_9201009(9201009, "ip error"), - - /** - * order_id error - */ - CODE_9201010(9201010, "order_id error"), - - /** - * reason error - */ - CODE_9201011(9201011, "reason error"), - - /** - * mch_id error - */ - CODE_9201012(9201012, "mch_id error"), - - /** - * bill_date error - */ - CODE_9201013(9201013, "bill_date error"), - - /** - * bill_type error - */ - CODE_9201014(9201014, "bill_type error"), - - /** - * trade_type error - */ - CODE_9201015(9201015, "trade_type error"), - - /** - * bank_id error - */ - CODE_9201016(9201016, "bank_id error"), - - /** - * bank_account error - */ - CODE_9201017(9201017, "bank_account error"), - - /** - * payment_notice_no error - */ - CODE_9201018(9201018, "payment_notice_no error"), - - /** - * department_code error - */ - CODE_9201019(9201019, "department_code error"), - - /** - * payment_notice_type error - */ - CODE_9201020(9201020, "payment_notice_type error"), - - /** - * region_code error - */ - CODE_9201021(9201021, "region_code error"), - - /** - * department_name error - */ - CODE_9201022(9201022, "department_name error"), - - /** - * fee not equal finance's - */ - CODE_9201023(9201023, "fee not equal finance's"), - - /** - * refund_out_id error - */ - CODE_9201024(9201024, "refund_out_id error"), - - /** - * not combined order_id - */ - CODE_9201026(9201026, "not combined order_id"), - - /** - * partial sub order is test - */ - CODE_9201027(9201027, "partial sub order is test"), - - /** - * desc too long - */ - CODE_9201029(9201029, "desc too long"), - - /** - * sub order list size error - */ - CODE_9201031(9201031, "sub order list size error"), - - /** - * sub order repeated - */ - CODE_9201032(9201032, "sub order repeated"), - - /** - * auth_code empty - */ - CODE_9201033(9201033, "auth_code empty"), - - /** - * bank_id empty but mch_id not empty - */ - CODE_9201034(9201034, "bank_id empty but mch_id not empty"), - - /** - * sum of other fees exceed total fee - */ - CODE_9201035(9201035, "sum of other fees exceed total fee"), - - /** - * other user paying - */ - CODE_9202000(9202000, "other user paying"), - - /** - * pay process not finish - */ - CODE_9202001(9202001, "pay process not finish"), - - /** - * no refund permission - */ - CODE_9202002(9202002, "no refund permission"), - - /** - * ip limit - */ - CODE_9202003(9202003, "ip limit"), - - /** - * freq limit - */ - CODE_9202004(9202004, "freq limit"), - - /** - * user weixin account abnormal - */ - CODE_9202005(9202005, "user weixin account abnormal"), - - /** - * account balance not enough - */ - CODE_9202006(9202006, "account balance not enough"), - - /** - * refund request repeated - */ - CODE_9202010(9202010, "refund request repeated"), - - /** - * has refunded - */ - CODE_9202011(9202011, "has refunded"), - - /** - * refund exceed total fee - */ - CODE_9202012(9202012, "refund exceed total fee"), - - /** - * busi_id dup - */ - CODE_9202013(9202013, "busi_id dup"), - - /** - * not check sign - */ - CODE_9202016(9202016, "not check sign"), - - /** - * check sign failed - */ - CODE_9202017(9202017, "check sign failed"), - - /** - * sub order error - */ - CODE_9202018(9202018, "sub order error"), - - /** - * order status error - */ - CODE_9202020(9202020, "order status error"), - - /** - * unified order repeatedly - */ - CODE_9202021(9202021, "unified order repeatedly"), - - /** - * request to notification url fail - */ - CODE_9203000(9203000, "request to notification url fail"), - - /** - * http request fail - */ - CODE_9203001(9203001, "http request fail"), - - /** - * http response data error - */ - CODE_9203002(9203002, "http response data error"), - - /** - * http response data RSA decrypt fail - */ - CODE_9203003(9203003, "http response data RSA decrypt fail"), - - /** - * http response data AES decrypt fail - */ - CODE_9203004(9203004, "http response data AES decrypt fail"), - - /** - * system busy, please try again later - */ - CODE_9203999(9203999, "system busy, please try again later"), - - /** - * getrealname token error - */ - CODE_9204000(9204000, "getrealname token error"), - - /** - * getrealname user or token error - */ - CODE_9204001(9204001, "getrealname user or token error"), - - /** - * getrealname appid or token error - */ - CODE_9204002(9204002, "getrealname appid or token error"), - - /** - * finance conf not exist - */ - CODE_9205000(9205000, "finance conf not exist"), - - /** - * bank conf not exist - */ - CODE_9205001(9205001, "bank conf not exist"), - - /** - * wei ban ju conf not exist - */ - CODE_9205002(9205002, "wei ban ju conf not exist"), - - /** - * symmetric key conf not exist - */ - CODE_9205010(9205010, "symmetric key conf not exist"), - - /** - * out order id not exist - */ - CODE_9205101(9205101, "out order id not exist"), - - /** - * bill not exist - */ - CODE_9205201(9205201, "bill not exist"), - - /** - * 3rd resp pay_channel empty - */ - CODE_9206000(9206000, "3rd resp pay_channel empty"), - - /** - * 3rd resp order_id empty - */ - CODE_9206001(9206001, "3rd resp order_id empty"), - - /** - * 3rd resp bill_type_code empty - */ - CODE_9206002(9206002, "3rd resp bill_type_code empty"), - - /** - * 3rd resp bill_no empty - */ - CODE_9206003(9206003, "3rd resp bill_no empty"), - - /** - * 3rd resp empty - */ - CODE_9206200(9206200, "3rd resp empty"), - - /** - * 3rd resp not json - */ - CODE_9206201(9206201, "3rd resp not json"), - - /** - * connect 3rd error - */ - CODE_9206900(9206900, "connect 3rd error"), - - /** - * connect 3rd timeout - */ - CODE_9206901(9206901, "connect 3rd timeout"), - - /** - * read 3rd resp error - */ - CODE_9206910(9206910, "read 3rd resp error"), - - /** - * read 3rd resp timeout - */ - CODE_9206911(9206911, "read 3rd resp timeout"), - - /** - * boss error - */ - CODE_9207000(9207000, "boss error"), - - /** - * wechat pay error - */ - CODE_9207001(9207001, "wechat pay error"), - - /** - * boss param error - */ - CODE_9207002(9207002, "boss param error"), - - /** - * pay error - */ - CODE_9207003(9207003, "pay error"), - - /** - * auth_code expired - */ - CODE_9207004(9207004, "auth_code expired"), - - /** - * user balance not enough - */ - CODE_9207005(9207005, "user balance not enough"), - - /** - * card not support - */ - CODE_9207006(9207006, "card not support"), - - /** - * order reversed - */ - CODE_9207007(9207007, "order reversed"), - - /** - * user paying, need input password - */ - CODE_9207008(9207008, "user paying, need input password"), - - /** - * auth_code error - */ - CODE_9207009(9207009, "auth_code error"), - - /** - * auth_code invalid - */ - CODE_9207010(9207010, "auth_code invalid"), - - /** - * not allow to reverse when user paying - */ - CODE_9207011(9207011, "not allow to reverse when user paying"), - - /** - * order paid - */ - CODE_9207012(9207012, "order paid"), - - /** - * order closed - */ - CODE_9207013(9207013, "order closed"), - - /** - * vehicle not exists - */ - CODE_9207028(9207028, "vehicle not exists"), - - /** - * vehicle request blocked - */ - CODE_9207029(9207029, "vehicle request blocked"), - - /** - * vehicle auth error - */ - CODE_9207030(9207030, "vehicle auth error"), - - /** - * contract over limit - */ - CODE_9207031(9207031, "contract over limit"), - - /** - * trade error - */ - CODE_9207032(9207032, "trade error"), - - /** - * trade time invalid - */ - CODE_9207033(9207033, "trade time invalid"), - - /** - * channel type invalid - */ - CODE_9207034(9207034, "channel type invalid"), - - /** - * expire_time range error - */ - CODE_9207050(9207050, "expire_time range error"), - - /** - * query finance error - */ - CODE_9210000(9210000, "query finance error"), - - /** - * openid error - */ - CODE_9291000(9291000, "openid error"), - - /** - * openid appid not match - */ - CODE_9291001(9291001, "openid appid not match"), - - /** - * app_appid not exist - */ - CODE_9291002(9291002, "app_appid not exist"), - - /** - * app_appid not app - */ - CODE_9291003(9291003, "app_appid not app"), - - /** - * appid empty - */ - CODE_9291004(9291004, "appid empty"), - - /** - * appid not match access_token - */ - CODE_9291005(9291005, "appid not match access_token"), - - /** - * invalid sign - */ - CODE_9291006(9291006, "invalid sign"), - - /** - * backend logic error - */ - CODE_9299999(9299999, "backend logic error"), - - /** - * begin_time can not before now - */ - CODE_9300001(9300001, "begin_time can not before now"), - - /** - * end_time can not before now - */ - CODE_9300002(9300002, "end_time can not before now"), - - /** - * begin_time must less than end_time - */ - CODE_9300003(9300003, "begin_time must less than end_time"), - - /** - * end_time - begin_time > 1year - */ - CODE_9300004(9300004, "end_time - begin_time > 1year"), - - /** - * invalid max_partic_times - */ - CODE_9300005(9300005, "invalid max_partic_times"), - - /** - * invalid activity status - */ - CODE_9300006(9300006, "invalid activity status"), - - /** - * gift_num must >0 and <=15 - */ - CODE_9300007(9300007, "gift_num must >0 and <=15"), - - /** - * invalid tiny appid - */ - CODE_9300008(9300008, "invalid tiny appid"), - - /** - * activity can not finish - */ - CODE_9300009(9300009, "activity can not finish"), - - /** - * card_info_list must >= 2 - */ - CODE_9300010(9300010, "card_info_list must >= 2"), - - /** - * invalid card_id - */ - CODE_9300011(9300011, "invalid card_id"), - - /** - * card_id must belong this appid - */ - CODE_9300012(9300012, "card_id must belong this appid"), - - /** - * card_id is not swipe_card or pay.cash - */ - CODE_9300013(9300013, "card_id is not swipe_card or pay.cash"), - - /** - * some card_id is out of stock - */ - CODE_9300014(9300014, "some card_id is out of stock"), - - /** - * some card_id is invalid status - */ - CODE_9300015(9300015, "some card_id is invalid status"), - - /** - * membership or new/old tinyapp user only support one - */ - CODE_9300016(9300016, "membership or new/old tinyapp user only support one"), - - /** - * invalid logic for membership - */ - CODE_9300017(9300017, "invalid logic for membership"), - - /** - * invalid logic for tinyapp new/old user - */ - CODE_9300018(9300018, "invalid logic for tinyapp new/old user"), - - /** - * invalid activity type - */ - CODE_9300019(9300019, "invalid activity type"), - - /** - * invalid activity_id - */ - CODE_9300020(9300020, "invalid activity_id"), - - /** - * invalid help_max_times - */ - CODE_9300021(9300021, "invalid help_max_times"), - - /** - * invalid cover_url - */ - CODE_9300022(9300022, "invalid cover_url"), - - /** - * invalid gen_limit - */ - CODE_9300023(9300023, "invalid gen_limit"), - - /** - * card's end_time cannot early than act's end_time - */ - CODE_9300024(9300024, "card's end_time cannot early than act's end_time"), - - /** - * 快递侧逻辑错误,详细原因需要看 delivery_resultcode, 请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE) Delivery side error - */ - CODE_9300501(9300501, "快递侧逻辑错误,详细原因需要看 delivery_resultcode, 请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE)"), - - /** - * 快递公司系统错误 Delivery side sys error - */ - CODE_9300502(9300502, "快递公司系统错误"), - - /** - * delivery_id 不存在 Specified delivery id is not registerred - */ - CODE_9300503(9300503, "delivery_id 不存在"), - - /** - * service_type 不存在 Specified delivery id has beed banned - */ - CODE_9300504(9300504, "service_type 不存在"), - - /** - * Shop banned - */ - CODE_9300505(9300505, "Shop banned"), - - /** - * 运单 ID 已经存在轨迹,不可取消 Order can't cancel - */ - CODE_9300506(9300506, "运单 ID 已经存在轨迹,不可取消"), - - /** - * Token 不正确 invalid token, can't decryption or decryption result is different from the plaintext - */ - CODE_9300507(9300507, "Token 不正确"), - - /** - * order id has been used - */ - CODE_9300508(9300508, "order id has been used"), - - /** - * speed limit, retry too fast - */ - CODE_9300509(9300509, "speed limit, retry too fast"), - - /** - * invalid service type - */ - CODE_9300510(9300510, "invalid service type"), - - /** - * invalid branch id - */ - CODE_9300511(9300511, "invalid branch id"), - - /** - * 模板格式错误,渲染失败 invalid waybill template format - */ - CODE_9300512(9300512, "模板格式错误,渲染失败"), - - /** - * out of quota - */ - CODE_9300513(9300513, "out of quota"), - - /** - * add net branch fail, try update branch api - */ - CODE_9300514(9300514, "add net branch fail, try update branch api"), - - /** - * wxa appid not exist - */ - CODE_9300515(9300515, "wxa appid not exist"), - - /** - * wxa appid and current bizuin is not linked or not the same owner - */ - CODE_9300516(9300516, "wxa appid and current bizuin is not linked or not the same owner"), - - /** - * update_type 不正确,请使用"bind" 或者“unbind” invalid update_type, please use [bind] or [unbind] - */ - CODE_9300517(9300517, "update_type 不正确,请使用\"bind\" 或者“unbind”"), - - /** - * invalid delivery id - */ - CODE_9300520(9300520, "invalid delivery id"), - - /** - * the orderid is in our system, and waybill is generating - */ - CODE_9300521(9300521, "the orderid is in our system, and waybill is generating"), - - /** - * this orderid is repeated - */ - CODE_9300522(9300522, "this orderid is repeated"), - - /** - * quota is not enough; go to charge please - */ - CODE_9300523(9300523, "quota is not enough; go to charge please"), - - /** - * 订单已取消(一般为重复取消订单) order already canceled - */ - CODE_9300524(9300524, "订单已取消(一般为重复取消订单)"), - - /** - * bizid未绑定 biz id not bind - */ - CODE_9300525(9300525, "bizid未绑定"), - - /** - * 参数字段长度不正确 arg size exceed limit - */ - CODE_9300526(9300526, "参数字段长度不正确"), - - /** - * delivery does not support quota - */ - CODE_9300527(9300527, "delivery does not support quota"), - - /** - * invalid waybill_id - */ - CODE_9300528(9300528, "invalid waybill_id"), - - /** - * 账号已绑定过 biz_id already binded - */ - CODE_9300529(9300529, "账号已绑定过"), - - /** - * 解绑的biz_id不存在 biz_id is not exist - */ - CODE_9300530(9300530, "解绑的biz_id不存在"), - - /** - * bizid无效 或者密码错误 invalid biz_id or password - */ - CODE_9300531(9300531, "bizid无效 或者密码错误"), - - /** - * 绑定已提交,审核中 bind submit, and is checking - */ - CODE_9300532(9300532, "绑定已提交,审核中"), - - /** - * invalid tagid_list - */ - CODE_9300533(9300533, "invalid tagid_list"), - - /** - * add_source=2时,wx_appid和当前小程序不同主体 invalid appid, not same body - */ - CODE_9300534(9300534, "add_source=2时,wx_appid和当前小程序不同主体"), - - /** - * shop字段商品缩略图 url、商品名称为空或者非法,或者商品数量为0 invalid shop arg - */ - CODE_9300535(9300535, "shop字段商品缩略图 url、商品名称为空或者非法,或者商品数量为0"), - - /** - * add_source=2时,wx_appid无效 invalid wxa_appid - */ - CODE_9300536(9300536, "add_source=2时,wx_appid无效"), - - /** - * freq limit - */ - CODE_9300537(9300537, "freq limit"), - - /** - * input task empty - */ - CODE_9300538(9300538, "input task empty"), - - /** - * too many task - */ - CODE_9300539(9300539, "too many task"), - - /** - * task not exist - */ - CODE_9300540(9300540, "task not exist"), - - /** - * delivery callback error - */ - CODE_9300541(9300541, "delivery callback error"), - - /** - * id_card_no is invalid - */ - CODE_9300601(9300601, "id_card_no is invalid"), - - /** - * name is invalid - */ - CODE_9300602(9300602, "name is invalid"), - - /** - * plate_no is invalid - */ - CODE_9300603(9300603, "plate_no is invalid"), - - /** - * auth_key decode error - */ - CODE_9300604(9300604, "auth_key decode error"), - - /** - * auth_key is expired - */ - CODE_9300605(9300605, "auth_key is expired"), - - /** - * auth_key and appinfo not match - */ - CODE_9300606(9300606, "auth_key and appinfo not match"), - - /** - * user not confirm - */ - CODE_9300607(9300607, "user not confirm"), - - /** - * user confirm is expired - */ - CODE_9300608(9300608, "user confirm is expired"), - - /** - * api exceed limit - */ - CODE_9300609(9300609, "api exceed limit"), - - /** - * car license info is invalid - */ - CODE_9300610(9300610, "car license info is invalid"), - - /** - * varification type not support - */ - CODE_9300611(9300611, "varification type not support"), - - /** - * input param error - */ - CODE_9300701(9300701, "input param error"), - - /** - * this code has been used - */ - CODE_9300702(9300702, "this code has been used"), - - /** - * invalid date - */ - CODE_9300703(9300703, "invalid date"), - - /** - * not currently available - */ - CODE_9300704(9300704, "not currently available"), - - /** - * code not exist or expired - */ - CODE_9300705(9300705, "code not exist or expired"), - - /** - * code not exist or expired - */ - CODE_9300706(9300706, "code not exist or expired"), - - /** - * wxpay error - */ - CODE_9300707(9300707, "wxpay error"), - - /** - * wxpay overlimit - */ - CODE_9300708(9300708, "wxpay overlimit"), - - /** - * 无效的微信号 - */ - CODE_9300801(9300801, "无效的微信号"), - - /** - * 服务号未开通导购功能 - */ - CODE_9300802(9300802, "服务号未开通导购功能"), - - /** - * 微信号已经绑定为导购 - */ - CODE_9300803(9300803, "微信号已经绑定为导购"), - - /** - * 该微信号不是导购 - */ - CODE_9300804(9300804, "该微信号不是导购"), - - /** - * 微信号已经被其他账号绑定为导购 - */ - CODE_9300805(9300805, "微信号已经被其他账号绑定为导购"), - - /** - * 粉丝和导购不存在绑定关系 - */ - CODE_9300806(9300806, "粉丝和导购不存在绑定关系"), - - /** - * 标签值无效,不是可选标签值 - */ - CODE_9300807(9300807, "标签值无效,不是可选标签值"), - - /** - * 标签值不存在 - */ - CODE_9300808(9300808, "标签值不存在"), - - /** - * 展示标签值不存在 - */ - CODE_9300809(9300809, "展示标签值不存在"), - - /** - * 导购昵称太长,最多16个字符 - */ - CODE_9300810(9300810, "导购昵称太长,最多16个字符"), - - /** - * 只支持mmbiz.qpic.cn域名的图片 - */ - CODE_9300811(9300811, "只支持mmbiz.qpic.cn域名的图片"), - - /** - * 达到导购绑定个数限制 - */ - CODE_9300812(9300812, "达到导购绑定个数限制"), - - /** - * 达到导购粉丝绑定个数限制 - */ - CODE_9300813(9300813, "达到导购粉丝绑定个数限制"), - - /** - * 敏感词个数超过上限 - */ - CODE_9300814(9300814, "敏感词个数超过上限"), - - /** - * 快捷回复个数超过上限 - */ - CODE_9300815(9300815, "快捷回复个数超过上限"), - - /** - * 文字素材个数超过上限 - */ - CODE_9300816(9300816, "文字素材个数超过上限"), - - /** - * 小程序卡片素材个数超过上限 - */ - CODE_9300817(9300817, "小程序卡片素材个数超过上限"), - - /** - * 图片素材个数超过上限 - */ - CODE_9300818(9300818, "图片素材个数超过上限"), - - /** - * mediaid 有误 - */ - CODE_9300819(9300819, "mediaid 有误"), - - /** - * 可查询标签类别超过上限 - */ - CODE_9300820(9300820, "可查询标签类别超过上限"), - - /** - * 小程序卡片内appid不符合要求 - */ - CODE_9300821(9300821, "小程序卡片内appid不符合要求"), - - /** - * 标签类别的名字无效 - */ - CODE_9300822(9300822, "标签类别的名字无效"), - - /** - * 查询聊天记录时间参数有误 - */ - CODE_9300823(9300823, "查询聊天记录时间参数有误"), - - /** - * 自动回复字数太长 - */ - CODE_9300824(9300824, "自动回复字数太长"), - - /** - * 导购群组id错误 - */ - CODE_9300825(9300825, "导购群组id错误"), - - /** - * 维护中 - */ - CODE_9300826(9300826, "维护中"), - - /** - * invalid parameter - */ - CODE_9301001(9301001, "invalid parameter"), - - /** - * call api service failed - */ - CODE_9301002(9301002, "call api service failed"), - - /** - * internal exception - */ - CODE_9301003(9301003, "internal exception"), - - /** - * save data error - */ - CODE_9301004(9301004, "save data error"), - - /** - * invalid appid - */ - CODE_9301006(9301006, "invalid appid"), - - /** - * invalid api config - */ - CODE_9301007(9301007, "invalid api config"), - - /** - * invalid api info - */ - CODE_9301008(9301008, "invalid api info"), - - /** - * add result check failed - */ - CODE_9301009(9301009, "add result check failed"), - - /** - * consumption failure - */ - CODE_9301010(9301010, "consumption failure"), - - /** - * frequency limit reached - */ - CODE_9301011(9301011, "frequency limit reached"), - - /** - * service timeout - */ - CODE_9301012(9301012, "service timeout"), - - /** - * 该开发小程序已开通小程序直播权限,不支持发布版本。如需发版,请解绑开发小程序后再操作。 - */ - CODE_9400001(9400001, "该开发小程序已开通小程序直播权限,不支持发布版本。如需发版,请解绑开发小程序后再操作。"), - - /** - * 商品已存在 - */ - CODE_9401001(9401001, "商品已存在"), - - /** - * 商品不存在 - */ - CODE_9401002(9401002, "商品不存在"), - - /** - * 类目已存在 - */ - CODE_9401003(9401003, "类目已存在"), - - /** - * 类目不存在 - */ - CODE_9401004(9401004, "类目不存在"), - - /** - * SKU已存在 - */ - CODE_9401005(9401005, "SKU已存在"), - - /** - * SKU不存在 - */ - CODE_9401006(9401006, "SKU不存在"), - - /** - * 属性已存在 - */ - CODE_9401007(9401007, "属性已存在"), - - /** - * 属性不存在 - */ - CODE_9401008(9401008, "属性不存在"), - - /** - * 非法参数 - */ - CODE_9401020(9401020, "非法参数"), - - /** - * 没有商品权限 - */ - CODE_9401021(9401021, "没有商品权限"), - - /** - * SPU NOT ALLOW - */ - CODE_9401022(9401022, "SPU NOT ALLOW"), - - /** - * SPU_NOT_ALLOW_EDIT - */ - CODE_9401023(9401023, "SPU_NOT_ALLOW_EDIT"), - - /** - * SKU NOT ALLOW - */ - CODE_9401024(9401024, "SKU NOT ALLOW"), - - /** - * SKU_NOT_ALLOW_EDIT - */ - CODE_9401025(9401025, "SKU_NOT_ALLOW_EDIT"), - - /** - * limit too large - */ - CODE_9402001(9402001, "limit too large"), - - /** - * single send been blocked - */ - CODE_9402002(9402002, "single send been blocked"), - - /** - * all send been blocked - */ - CODE_9402003(9402003, "all send been blocked"), - - /** - * invalid msg id - */ - CODE_9402004(9402004, "invalid msg id"), - - /** - * send msg too quick - */ - CODE_9402005(9402005, "send msg too quick"), - - /** - * send to single user too quick - */ - CODE_9402006(9402006, "send to single user too quick"), - - /** - * send to all user too quick - */ - CODE_9402007(9402007, "send to all user too quick"), - - /** - * send type error - */ - CODE_9402008(9402008, "send type error"), - - /** - * can not send this msg - */ - CODE_9402009(9402009, "can not send this msg"), - - /** - * content too long or no content - */ - CODE_9402010(9402010, "content too long or no content"), - - /** - * path not exist - */ - CODE_9402011(9402011, "path not exist"), - - /** - * contain evil word - */ - CODE_9402012(9402012, "contain evil word"), - - /** - * path need html suffix - */ - CODE_9402013(9402013, "path need html suffix"), - - /** - * not open to personal body type - */ - CODE_9402014(9402014, "not open to personal body type"), - - /** - * not open to violation body type - */ - CODE_9402015(9402015, "not open to violation body type"), - - /** - * not open to low quality provider - */ - CODE_9402016(9402016, "not open to low quality provider"), - - /** - * invalid product_id - */ - CODE_9402101(9402101, "invalid product_id"), - - /** - * device_id count more than limit - */ - CODE_9402102(9402102, "device_id count more than limit"), - - /** - * 请勿频繁提交,待上一次操作完成后再提交 concurrent limit - */ - CODE_9402202(9402202, "请勿频繁提交,待上一次操作完成后再提交"), - - /** - * user not book this ad id - */ - CODE_9402301(9402301, "user not book this ad id"), - - /** - * 消息类型错误! - */ - CODE_9403000(9403000, "消息类型错误!"), - - /** - * 消息字段的内容过长! - */ - CODE_9403001(9403001, "消息字段的内容过长!"), - - /** - * 消息字段的内容违规! - */ - CODE_9403002(9403002, "消息字段的内容违规!"), - - /** - * 发送的微信号太多! - */ - CODE_9403003(9403003, "发送的微信号太多!"), - - /** - * 存在错误的微信号! - */ - CODE_9403004(9403004, "存在错误的微信号!"), - - /** - * 直播间列表为空 live room not exsits - */ - CODE_9410000(9410000, "直播间列表为空"), - - /** - * 获取房间失败 inner error: get room fail - */ - CODE_9410001(9410001, "获取房间失败"), - - /** - * 获取商品失败 inner error: get goods fail - */ - CODE_9410002(9410002, "获取商品失败"), - - /** - * 获取回放失败 inner error: get replay url fail - */ - CODE_9410003(9410003, "获取回放失败"); - - - - private final int code; - private final String msg; - - WxOpenErrorMsgEnum(int code, String msg) { - this.code = code; - this.msg = msg; - } - - static final Map valueMap = Maps.newHashMap(); - - static { - for (com.pxys.wechatgroup.common.error.WxOpenErrorMsgEnum value : com.pxys.wechatgroup.common.error.WxOpenErrorMsgEnum.values()) { - valueMap.put(value.code, value.msg); - } - } - - /** - * 通过错误代码查找其中文含义. - */ - public static String findMsgByCode(int code) { - return valueMap.getOrDefault(code, null); + /** + * 域名数量超过限制 ,总数不能超过1000 exceed valid domain count + */ + CODE_85016(85016, "域名数量超过限制 ,总数不能超过1000"), + + /** + * 没有新增域名,请确认小程序已经添加了域名或该域名是否没有在第三方平台添加 no domain to modify after filtered, please confirm the domain has been set in miniprogram or open + */ + CODE_85017(85017, "没有新增域名,请确认小程序已经添加了域名或该域名是否没有在第三方平台添加"), + + /** + * 域名没有在第三方平台设置 + */ + CODE_85018(85018, "域名没有在第三方平台设置"), + + /** + * 没有审核版本 no version is under auditing + */ + CODE_85019(85019, "没有审核版本"), + + /** + * 审核状态未满足发布 status not allowed + */ + CODE_85020(85020, "审核状态未满足发布"), + + /** + * status not allowed + */ + CODE_85021(85021, "status not allowed"), + + /** + * invalid action + */ + CODE_85022(85022, "invalid action"), + + /** + * 审核列表填写的项目数不在 1-5 以内 item size is not in valid range + */ + CODE_85023(85023, "审核列表填写的项目数不在 1-5 以内"), + + /** + * need complete material + */ + CODE_85024(85024, "need complete material"), + + /** + * this phone reach bind limit + */ + CODE_85025(85025, "this phone reach bind limit"), + + /** + * this wechat account reach bind limit + */ + CODE_85026(85026, "this wechat account reach bind limit"), + + /** + * this idcard reach bind limit + */ + CODE_85027(85027, "this idcard reach bind limit"), + + /** + * this contractor reach bind limit + */ + CODE_85028(85028, "this contractor reach bind limit"), + + /** + * nickname has used + */ + CODE_85029(85029, "nickname has used"), + + /** + * invalid nickname size(4-30) + */ + CODE_85030(85030, "invalid nickname size(4-30)"), + + /** + * nickname is forbidden + */ + CODE_85031(85031, "nickname is forbidden"), + + /** + * nickname is complained + */ + CODE_85032(85032, "nickname is complained"), + + /** + * nickname is illegal + */ + CODE_85033(85033, "nickname is illegal"), + + /** + * nickname is protected + */ + CODE_85034(85034, "nickname is protected"), + + /** + * nickname is forbidden for different contractor + */ + CODE_85035(85035, "nickname is forbidden for different contractor"), + + /** + * introduction is illegal + */ + CODE_85036(85036, "introduction is illegal"), + + /** + * store has added + */ + CODE_85038(85038, "store has added"), + + /** + * store has added by others + */ + CODE_85039(85039, "store has added by others"), + + /** + * store has added by yourseld + */ + CODE_85040(85040, "store has added by yourseld"), + + /** + * credential has used + */ + CODE_85041(85041, "credential has used"), + + /** + * nearby reach limit + */ + CODE_85042(85042, "nearby reach limit"), + + /** + * 模板错误 invalid template, something wrong? + */ + CODE_85043(85043, "模板错误"), + + /** + * 代码包超过大小限制 package exceed max limit + */ + CODE_85044(85044, "代码包超过大小限制"), + + /** + * ext_json 有不存在的路径 some path in ext_json not exist + */ + CODE_85045(85045, "ext_json 有不存在的路径"), + + /** + * tabBar 中缺少 path pagepath missing in tabbar list + */ + CODE_85046(85046, "tabBar 中缺少 path"), + + /** + * pages 字段为空 pages are empty + */ + CODE_85047(85047, "pages 字段为空"), + + /** + * ext_json 解析失败 parse ext_json fail + */ + CODE_85048(85048, "ext_json 解析失败"), + + /** + * reach headimg or introduction quota limit + */ + CODE_85049(85049, "reach headimg or introduction quota limit"), + + /** + * verifying, don't apply again + */ + CODE_85050(85050, "verifying, don't apply again"), + + /** + * version_desc或者preview_info超限 data too large + */ + CODE_85051(85051, "version_desc或者preview_info超限"), + + /** + * app is already released + */ + CODE_85052(85052, "app is already released"), + + /** + * please apply merchant first + */ + CODE_85053(85053, "please apply merchant first"), + + /** + * poi_id is null, please upgrade first + */ + CODE_85054(85054, "poi_id is null, please upgrade first"), + + /** + * map_poi_id is invalid + */ + CODE_85055(85055, "map_poi_id is invalid"), + + /** + * mediaid is invalid + */ + CODE_85056(85056, "mediaid is invalid"), + + /** + * invalid widget data format + */ + CODE_85057(85057, "invalid widget data format"), + + /** + * no valid audit_id exist + */ + CODE_85058(85058, "no valid audit_id exist"), + + /** + * overseas access deny + */ + CODE_85059(85059, "overseas access deny"), + + /** + * invalid taskid + */ + CODE_85060(85060, "invalid taskid"), + + /** + * this phone reach bind limit + */ + CODE_85061(85061, "this phone reach bind limit"), + + /** + * this phone in black list + */ + CODE_85062(85062, "this phone in black list"), + + /** + * idcard in black list + */ + CODE_85063(85063, "idcard in black list"), + + /** + * 找不到模板 template not found + */ + CODE_85064(85064, "找不到模板"), + + /** + * 模板库已满 template list is full + */ + CODE_85065(85065, "模板库已满"), + + /** + * 链接错误 illegal prefix + */ + CODE_85066(85066, "链接错误"), + + /** + * input data error + */ + CODE_85067(85067, "input data error"), + + /** + * 测试链接不是子链接 test url is not the sub prefix + */ + CODE_85068(85068, "测试链接不是子链接"), + + /** + * 校验文件失败 check confirm file fail + */ + CODE_85069(85069, "校验文件失败"), + + /** + * 个人类型小程序无法设置二维码规则 prefix in black list + */ + CODE_85070(85070, "个人类型小程序无法设置二维码规则"), + + /** + * 已添加该链接,请勿重复添加 prefix added repeated + */ + CODE_85071(85071, "已添加该链接,请勿重复添加"), + + /** + * 该链接已被占用 prefix owned by other + */ + CODE_85072(85072, "该链接已被占用"), + + /** + * 二维码规则已满 prefix beyond limit + */ + CODE_85073(85073, "二维码规则已满"), + + /** + * 小程序未发布, 小程序必须先发布代码才可以发布二维码跳转规则 not published + */ + CODE_85074(85074, "小程序未发布, 小程序必须先发布代码才可以发布二维码跳转规则"), + + /** + * 个人类型小程序无法设置二维码规则 can not access + */ + CODE_85075(85075, "个人类型小程序无法设置二维码规则"), + + /** + * 小程序类目信息失效(类目中含有官方下架的类目,请重新选择类目) some category you choose is no longger supported, please choose other category + */ + CODE_85077(85077, "小程序类目信息失效(类目中含有官方下架的类目,请重新选择类目)"), + + /** + * operator info error + */ + CODE_85078(85078, "operator info error"), + + /** + * 小程序没有线上版本,不能进行灰度 miniprogram has no online release + */ + CODE_85079(85079, "小程序没有线上版本,不能进行灰度"), + + /** + * 小程序提交的审核未审核通过 miniprogram commit not approved + */ + CODE_85080(85080, "小程序提交的审核未审核通过"), + + /** + * 无效的发布比例 invalid gray percentage + */ + CODE_85081(85081, "无效的发布比例"), + + /** + * 当前的发布比例需要比之前设置的高 gray percentage too low + */ + CODE_85082(85082, "当前的发布比例需要比之前设置的高"), + + /** + * 搜索标记位被封禁,无法修改 search status is banned + */ + CODE_85083(85083, "搜索标记位被封禁,无法修改"), + + /** + * 非法的 status 值,只能填 0 或者 1 search status invalid + */ + CODE_85084(85084, "非法的 status 值,只能填 0 或者 1"), + + /** + * 小程序提审数量已达本月上限,请点击查看 submit audit reach limit pleasetry later + */ + CODE_85085(85085, "小程序提审数量已达本月上限,请点击查看"), + + /** + * 提交代码审核之前需提前上传代码 must commit before submit audit + */ + CODE_85086(85086, "提交代码审核之前需提前上传代码"), + + /** + * 小程序已使用 api navigateToMiniProgram,请声明跳转 appid 列表后再次提交 navigatetominiprogram appid list empty + */ + CODE_85087(85087, "小程序已使用 api navigateToMiniProgram,请声明跳转 appid 列表后再次提交"), + + /** + * no qbase privilege + */ + CODE_85088(85088, "no qbase privilege"), + + /** + * config not found + */ + CODE_85089(85089, "config not found"), + + /** + * wait and commit for this exappid later + */ + CODE_85090(85090, "wait and commit for this exappid later"), + + /** + * 小程序的搜索开关被关闭。请访问设置页面打开开关再重试 search status was turned off + */ + CODE_85091(85091, "小程序的搜索开关被关闭。请访问设置页面打开开关再重试"), + + /** + * preview_info格式错误 invalid preview_info format + */ + CODE_85092(85092, "preview_info格式错误"), + + /** + * preview_info 视频或者图片个数超限 invalid preview_info size + */ + CODE_85093(85093, "preview_info 视频或者图片个数超限"), + + /** + * 需提供审核机制说明信息 need add ugc declare + */ + CODE_85094(85094, "需提供审核机制说明信息"), + + /** + * 小程序不能发送该运动类型或运动类型不存在 + */ + CODE_85101(85101, "小程序不能发送该运动类型或运动类型不存在"), + + /** + * 数值异常 + */ + CODE_85102(85102, "数值异常"), + + /** + * 不是由第三方代小程序进行调用 should be called only from third party + */ + CODE_86000(86000, "不是由第三方代小程序进行调用"), + + /** + * 不存在第三方的已经提交的代码 component experience version not exists + */ + CODE_86001(86001, "不存在第三方的已经提交的代码"), + + /** + * 小程序还未设置昵称、头像、简介。请先设置完后再重新提交 miniprogram have not completed init procedure + */ + CODE_86002(86002, "小程序还未设置昵称、头像、简介。请先设置完后再重新提交"), + + /** + * component do not has category mall + */ + CODE_86003(86003, "component do not has category mall"), + + /** + * invalid wechat + */ + CODE_86004(86004, "invalid wechat"), + + /** + * wechat limit frequency + */ + CODE_86005(86005, "wechat limit frequency"), + + /** + * has no quota to send group msg + */ + CODE_86006(86006, "has no quota to send group msg"), + + /** + * 小程序禁止提交 + */ + CODE_86007(86007, "小程序禁止提交"), + + /** + * 服务商被处罚,限制全部代码提审能力 + */ + CODE_86008(86008, "服务商被处罚,限制全部代码提审能力"), + + /** + * 服务商新增小程序代码提审能力被限制 + */ + CODE_86009(86009, "服务商新增小程序代码提审能力被限制"), + + /** + * 服务商迭代小程序代码提审能力被限制 + */ + CODE_86010(86010, "服务商迭代小程序代码提审能力被限制"), + + /** + * 小游戏不能提交 this is game miniprogram, submit audit is forbidden + */ + CODE_87006(87006, "小游戏不能提交"), + + /** + * session_key is not existd or expired + */ + CODE_87007(87007, "session_key is not existd or expired"), + + /** + * invalid sig_method + */ + CODE_87008(87008, "invalid sig_method"), + + /** + * 无效的签名 invalid signature + */ + CODE_87009(87009, "无效的签名"), + + /** + * invalid buffer size + */ + CODE_87010(87010, "invalid buffer size"), + + /** + * 现网已经在灰度发布,不能进行版本回退 wxa has a gray release plan, forbid revert release + */ + CODE_87011(87011, "现网已经在灰度发布,不能进行版本回退"), + + /** + * 该版本不能回退,可能的原因:1:无上一个线上版用于回退 2:此版本为已回退版本,不能回退 3:此版本为回退功能上线之前的版本,不能回退 forbid revert this version release + */ + CODE_87012(87012, "该版本不能回退,可能的原因:1:无上一个线上版用于回退 2:此版本为已回退版本,不能回退 3:此版本为回退功能上线之前的版本,不能回退"), + + /** + * 撤回次数达到上限(每天5次,每个月 10 次) no quota to undo code + */ + CODE_87013(87013, "撤回次数达到上限(每天5次,每个月 10 次)"), + + /** + * risky content + */ + CODE_87014(87014, "risky content"), + + /** + * query timeout, try a content with less size + */ + CODE_87015(87015, "query timeout, try a content with less size"), + + /** + * some key-value in list meet length exceed + */ + CODE_87016(87016, "some key-value in list meet length exceed"), + + /** + * user storage size exceed, delete some keys and try again + */ + CODE_87017(87017, "user storage size exceed, delete some keys and try again"), + + /** + * user has stored too much keys. delete some keys and try again + */ + CODE_87018(87018, "user has stored too much keys. delete some keys and try again"), + + /** + * some keys in list meet length exceed + */ + CODE_87019(87019, "some keys in list meet length exceed"), + + /** + * need friend + */ + CODE_87080(87080, "need friend"), + + /** + * invalid openid + */ + CODE_87081(87081, "invalid openid"), + + /** + * invalid key + */ + CODE_87082(87082, "invalid key"), + + /** + * invalid operation + */ + CODE_87083(87083, "invalid operation"), + + /** + * invalid opnum + */ + CODE_87084(87084, "invalid opnum"), + + /** + * check fail + */ + CODE_87085(87085, "check fail"), + + /** + * without comment privilege + */ + CODE_88000(88000, "without comment privilege"), + + /** + * msg_data is not exists + */ + CODE_88001(88001, "msg_data is not exists"), + + /** + * the article is limit for safety + */ + CODE_88002(88002, "the article is limit for safety"), + + /** + * elected comment upper limit + */ + CODE_88003(88003, "elected comment upper limit"), + + /** + * comment was deleted by user + */ + CODE_88004(88004, "comment was deleted by user"), + + /** + * already reply + */ + CODE_88005(88005, "already reply"), + + /** + * reply content beyond max len or content len is zero + */ + CODE_88007(88007, "reply content beyond max len or content len is zero"), + + /** + * comment is not exists + */ + CODE_88008(88008, "comment is not exists"), + + /** + * reply is not exists + */ + CODE_88009(88009, "reply is not exists"), + + /** + * count range error. cout <= 0 or count > 50 + */ + CODE_88010(88010, "count range error. cout <= 0 or count > 50"), + + /** + * the article is limit for safety + */ + CODE_88011(88011, "the article is limit for safety"), + + /** + * account has bound open,该公众号/小程序已经绑定了开放平台帐号 account has bound open + */ + CODE_89000(89000, "account has bound open,该公众号/小程序已经绑定了开放平台帐号"), + + /** + * not same contractor,Authorizer 与开放平台帐号主体不相同 not same contractor + */ + CODE_89001(89001, "not same contractor,Authorizer 与开放平台帐号主体不相同"), + + /** + * open not exists,该公众号/小程序未绑定微信开放平台帐号。 open not exists + */ + CODE_89002(89002, "open not exists,该公众号/小程序未绑定微信开放平台帐号。"), + + /** + * 该开放平台帐号并非通过 api 创建,不允许操作 open is not created by api + */ + CODE_89003(89003, "该开放平台帐号并非通过 api 创建,不允许操作"), + + /** + * 该开放平台帐号所绑定的公众号/小程序已达上限(100 个) + */ + CODE_89004(89004, "该开放平台帐号所绑定的公众号/小程序已达上限(100 个)"), + + /** + * without add video ability, the ability was banned + */ + CODE_89005(89005, "without add video ability, the ability was banned"), + + /** + * without upload video ability, the ability was banned + */ + CODE_89006(89006, "without upload video ability, the ability was banned"), + + /** + * wxa quota limit + */ + CODE_89007(89007, "wxa quota limit"), + + /** + * overseas account can not link + */ + CODE_89008(89008, "overseas account can not link"), + + /** + * wxa reach link limit + */ + CODE_89009(89009, "wxa reach link limit"), + + /** + * link message has sent + */ + CODE_89010(89010, "link message has sent"), + + /** + * can not unlink nearby wxa + */ + CODE_89011(89011, "can not unlink nearby wxa"), + + /** + * can not unlink store or mall + */ + CODE_89012(89012, "can not unlink store or mall"), + + /** + * wxa is banned + */ + CODE_89013(89013, "wxa is banned"), + + /** + * support version error + */ + CODE_89014(89014, "support version error"), + + /** + * has linked wxa + */ + CODE_89015(89015, "has linked wxa"), + + /** + * reach same realname quota + */ + CODE_89016(89016, "reach same realname quota"), + + /** + * reach different realname quota + */ + CODE_89017(89017, "reach different realname quota"), + + /** + * unlink message has sent + */ + CODE_89018(89018, "unlink message has sent"), + + /** + * 业务域名无更改,无需重复设置 webview domain not change + */ + CODE_89019(89019, "业务域名无更改,无需重复设置"), + + /** + * 尚未设置小程序业务域名,请先在第三方平台中设置小程序业务域名后在调用本接口 open's webview domain is null! Need to set open's webview domain first! + */ + CODE_89020(89020, "尚未设置小程序业务域名,请先在第三方平台中设置小程序业务域名后在调用本接口"), + + /** + * 请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名 request domain is not open's webview domain! + */ + CODE_89021(89021, "请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名"), + + /** + * delete domain is not exist! + */ + CODE_89022(89022, "delete domain is not exist!"), + + /** + * 业务域名数量超过限制,最多可以添加100个业务域名 webview domain exceed limit + */ + CODE_89029(89029, "业务域名数量超过限制,最多可以添加100个业务域名"), + + /** + * operation reach month limit + */ + CODE_89030(89030, "operation reach month limit"), + + /** + * user bind reach limit + */ + CODE_89031(89031, "user bind reach limit"), + + /** + * weapp bind members reach limit + */ + CODE_89032(89032, "weapp bind members reach limit"), + + /** + * empty wx or openid + */ + CODE_89033(89033, "empty wx or openid"), + + /** + * userstr is invalid + */ + CODE_89034(89034, "userstr is invalid"), + + /** + * linking from mp + */ + CODE_89035(89035, "linking from mp"), + + /** + * 个人小程序不支持调用 setwebviewdomain 接口 not support single + */ + CODE_89231(89231, "个人小程序不支持调用 setwebviewdomain 接口"), + + /** + * hit black contractor + */ + CODE_89235(89235, "hit black contractor"), + + /** + * 该插件不能申请 this plugin can not apply + */ + CODE_89236(89236, "该插件不能申请"), + + /** + * 已经添加该插件 plugin has send apply message or already bind + */ + CODE_89237(89237, "已经添加该插件"), + + /** + * 申请或使用的插件已经达到上限 plugin count reach limit + */ + CODE_89238(89238, "申请或使用的插件已经达到上限"), + + /** + * 该插件不存在 plugin no exist + */ + CODE_89239(89239, "该插件不存在"), + + /** + * only applying status can be agreed or refused + */ + CODE_89240(89240, "only applying status can be agreed or refused"), + + /** + * only refused status can be deleted, please refused first + */ + CODE_89241(89241, "only refused status can be deleted, please refused first"), + + /** + * appid is no in the apply list, make sure appid is right + */ + CODE_89242(89242, "appid is no in the apply list, make sure appid is right"), + + /** + * 该申请为“待确认”状态,不可删除 can not delete apply request in 24 hours + */ + CODE_89243(89243, "该申请为“待确认”状态,不可删除"), + + /** + * 不存在该插件 appid plugin appid is no in the plugin list, make sure plugin appid is right + */ + CODE_89244(89244, "不存在该插件 appid"), + + /** + * mini program forbidden to link + */ + CODE_89245(89245, "mini program forbidden to link"), + + /** + * plugins with special category are used only by specific apps + */ + CODE_89246(89246, "plugins with special category are used only by specific apps"), + + /** + * 系统内部错误 inner error, retry after some while + */ + CODE_89247(89247, "系统内部错误"), + + /** + * invalid code type + */ + CODE_89248(89248, "invalid code type"), + + /** + * task running + */ + CODE_89249(89249, "task running"), + + /** + * 内部错误 inner error, retry after some while + */ + CODE_89250(89250, "内部错误"), + + /** + * 模板消息已下发,待法人人脸核身校验 legal person checking + */ + CODE_89251(89251, "模板消息已下发,待法人人脸核身校验"), + + /** + * 法人&企业信息一致性校验中 front checking + */ + CODE_89253(89253, "法人&企业信息一致性校验中"), + + /** + * lack of some component rights + */ + CODE_89254(89254, "lack of some component rights"), + + /** + * code参数无效,请检查code长度以及内容是否正确;注意code_type的值不同需要传的code长度不一样 enterprise code invalid + */ + CODE_89255(89255, "code参数无效,请检查code长度以及内容是否正确;注意code_type的值不同需要传的code长度不一样"), + + /** + * token 信息有误 no component info + */ + CODE_89256(89256, "token 信息有误"), + + /** + * 该插件版本不支持快速更新 no such version + */ + CODE_89257(89257, "该插件版本不支持快速更新"), + + /** + * 当前小程序帐号存在灰度发布中的版本,不可操作快速更新 code is gray online + */ + CODE_89258(89258, "当前小程序帐号存在灰度发布中的版本,不可操作快速更新"), + + /** + * zhibo plugin is not allow to delete + */ + CODE_89259(89259, "zhibo plugin is not allow to delete"), + + /** + * 订单无效 invalid trade + */ + CODE_89300(89300, "订单无效"), + + /** + * 系统不稳定,请稍后再试,如多次失败请通过社区反馈 + */ + CODE_89401(89401, "系统不稳定,请稍后再试,如多次失败请通过社区反馈"), + + /** + * 该小程序不在待审核队列,请检查是否已提交审核或已审完 + */ + CODE_89402(89402, "该小程序不在待审核队列,请检查是否已提交审核或已审完"), + + /** + * 本单属于平台不支持加急种类,请等待正常审核流程 + */ + CODE_89403(89403, "本单属于平台不支持加急种类,请等待正常审核流程"), + + /** + * 本单已加速成功,请勿重复提交 + */ + CODE_89404(89404, "本单已加速成功,请勿重复提交"), + + /** + * 本月加急额度已用完,请提高提审质量以获取更多额度 + */ + CODE_89405(89405, "本月加急额度已用完,请提高提审质量以获取更多额度"), + + /** + * 公众号有未处理的确认请求,请稍候重试 + */ + CODE_89501(89501, "公众号有未处理的确认请求,请稍候重试"), + + /** + * 请耐心等待管理员确认 + */ + CODE_89502(89502, "请耐心等待管理员确认"), + + /** + * 此次调用需要管理员确认,请耐心等候 + */ + CODE_89503(89503, "此次调用需要管理员确认,请耐心等候"), + + /** + * 正在等管理员确认,请耐心等待 + */ + CODE_89504(89504, "正在等管理员确认,请耐心等待"), + + /** + * 正在等管理员确认,请稍候重试 + */ + CODE_89505(89505, "正在等管理员确认,请稍候重试"), + + /** + * 该IP调用求请求已被公众号管理员拒绝,请24小时后再试,建议调用前与管理员沟通确认 + */ + CODE_89506(89506, "该IP调用求请求已被公众号管理员拒绝,请24小时后再试,建议调用前与管理员沟通确认"), + + /** + * 该IP调用求请求已被公众号管理员拒绝,请1小时后再试,建议调用前与管理员沟通确认 + */ + CODE_89507(89507, "该IP调用求请求已被公众号管理员拒绝,请1小时后再试,建议调用前与管理员沟通确认"), + + /** + * invalid order id + */ + CODE_90001(90001, "invalid order id"), + + /** + * invalid busi id + */ + CODE_90002(90002, "invalid busi id"), + + /** + * invalid bill date + */ + CODE_90003(90003, "invalid bill date"), + + /** + * invalid bill type + */ + CODE_90004(90004, "invalid bill type"), + + /** + * invalid platform + */ + CODE_90005(90005, "invalid platform"), + + /** + * bill not exists + */ + CODE_90006(90006, "bill not exists"), + + /** + * invalid openid + */ + CODE_90007(90007, "invalid openid"), + + /** + * mp_sig error + */ + CODE_90009(90009, "mp_sig error"), + + /** + * no session + */ + CODE_90010(90010, "no session"), + + /** + * sig error + */ + CODE_90011(90011, "sig error"), + + /** + * order exist + */ + CODE_90012(90012, "order exist"), + + /** + * balance not enough + */ + CODE_90013(90013, "balance not enough"), + + /** + * order has been confirmed + */ + CODE_90014(90014, "order has been confirmed"), + + /** + * order has been canceled + */ + CODE_90015(90015, "order has been canceled"), + + /** + * order is being processed + */ + CODE_90016(90016, "order is being processed"), + + /** + * no privilege + */ + CODE_90017(90017, "no privilege"), + + /** + * invalid parameter + */ + CODE_90018(90018, "invalid parameter"), + + /** + * 不是公众号快速创建的小程序 not fast register + */ + CODE_91001(91001, "不是公众号快速创建的小程序"), + + /** + * 小程序发布后不可改名 has published + */ + CODE_91002(91002, "小程序发布后不可改名"), + + /** + * 改名状态不合法 invalid change stat + */ + CODE_91003(91003, "改名状态不合法"), + + /** + * 昵称不合法 invalid nickname + */ + CODE_91004(91004, "昵称不合法"), + + /** + * 昵称 15 天主体保护 nickname protected + */ + CODE_91005(91005, "昵称 15 天主体保护"), + + /** + * 昵称命中微信号 nickname used by username + */ + CODE_91006(91006, "昵称命中微信号"), + + /** + * 昵称已被占用 nickname used + */ + CODE_91007(91007, "昵称已被占用"), + + /** + * 昵称命中 7 天侵权保护期 nickname protected + */ + CODE_91008(91008, "昵称命中 7 天侵权保护期"), + + /** + * 需要提交材料 nickname need proof + */ + CODE_91009(91009, "需要提交材料"), + + /** + * 其他错误 + */ + CODE_91010(91010, "其他错误"), + + /** + * 查不到昵称修改审核单信息 + */ + CODE_91011(91011, "查不到昵称修改审核单信息"), + + /** + * 其它错误 + */ + CODE_91012(91012, "其它错误"), + + /** + * 占用名字过多 lock name too more + */ + CODE_91013(91013, "占用名字过多"), + + /** + * +号规则 同一类型关联名主体不一致 diff master plus + */ + CODE_91014(91014, "+号规则 同一类型关联名主体不一致"), + + /** + * 原始名不同类型主体不一致 diff master + */ + CODE_91015(91015, "原始名不同类型主体不一致"), + + /** + * 名称占用者 ≥2 name more owner + */ + CODE_91016(91016, "名称占用者 ≥2"), + + /** + * +号规则 不同类型关联名主体不一致 other diff master plus + */ + CODE_91017(91017, "+号规则 不同类型关联名主体不一致"), + + /** + * 组织类型小程序发布后,侵权被清空昵称,需走认证改名 + */ + CODE_91018(91018, "组织类型小程序发布后,侵权被清空昵称,需走认证改名"), + + /** + * 小程序正在审核中 + */ + CODE_91019(91019, "小程序正在审核中"), + + /** + * 该经营资质已添加,请勿重复添加 + */ + CODE_92000(92000, "该经营资质已添加,请勿重复添加"), + + /** + * 附近地点添加数量达到上线,无法继续添加 + */ + CODE_92002(92002, "附近地点添加数量达到上线,无法继续添加"), + + /** + * 地点已被其它小程序占用 + */ + CODE_92003(92003, "地点已被其它小程序占用"), + + /** + * 附近功能被封禁 + */ + CODE_92004(92004, "附近功能被封禁"), + + /** + * 地点正在审核中 + */ + CODE_92005(92005, "地点正在审核中"), + + /** + * 地点正在展示小程序 + */ + CODE_92006(92006, "地点正在展示小程序"), + + /** + * 地点审核失败 + */ + CODE_92007(92007, "地点审核失败"), + + /** + * 小程序未展示在该地点 + */ + CODE_92008(92008, "小程序未展示在该地点"), + + /** + * 小程序未上架或不可见 + */ + CODE_93009(93009, "小程序未上架或不可见"), + + /** + * 地点不存在 + */ + CODE_93010(93010, "地点不存在"), + + /** + * 个人类型小程序不可用 + */ + CODE_93011(93011, "个人类型小程序不可用"), + + /** + * 非普通类型小程序(门店小程序、小店小程序等)不可用 + */ + CODE_93012(93012, "非普通类型小程序(门店小程序、小店小程序等)不可用"), + + /** + * 从腾讯地图获取地址详细信息失败 + */ + CODE_93013(93013, "从腾讯地图获取地址详细信息失败"), + + /** + * 同一资质证件号重复添加 + */ + CODE_93014(93014, "同一资质证件号重复添加"), + + /** + * 附近类目审核中 + */ + CODE_93015(93015, "附近类目审核中"), + + /** + * 服务标签个数超限制(官方最多5个,自定义最多4个) + */ + CODE_93016(93016, "服务标签个数超限制(官方最多5个,自定义最多4个)"), + + /** + * 服务标签或者客服的名字不符合要求 + */ + CODE_93017(93017, "服务标签或者客服的名字不符合要求"), + + /** + * 服务能力中填写的小程序appid不是同主体小程序 + */ + CODE_93018(93018, "服务能力中填写的小程序appid不是同主体小程序"), + + /** + * 申请类目之后才能添加附近地点 + */ + CODE_93019(93019, "申请类目之后才能添加附近地点"), + + /** + * qualification_list无效 + */ + CODE_93020(93020, "qualification_list无效"), + + /** + * company_name字段为空 + */ + CODE_93021(93021, "company_name字段为空"), + + /** + * credential字段为空 + */ + CODE_93022(93022, "credential字段为空"), + + /** + * address字段为空 + */ + CODE_93023(93023, "address字段为空"), + + /** + * qualification_list字段为空 + */ + CODE_93024(93024, "qualification_list字段为空"), + + /** + * 服务appid对应的path不存在 + */ + CODE_93025(93025, "服务appid对应的path不存在"), + + /** + * missing cert_serialno + */ + CODE_94001(94001, "missing cert_serialno"), + + /** + * use not register wechat pay + */ + CODE_94002(94002, "use not register wechat pay"), + + /** + * invalid sign + */ + CODE_94003(94003, "invalid sign"), + + /** + * user do not has real name info + */ + CODE_94004(94004, "user do not has real name info"), + + /** + * invalid user token + */ + CODE_94005(94005, "invalid user token"), + + /** + * appid unauthorized + */ + CODE_94006(94006, "appid unauthorized"), + + /** + * appid unbind mchid + */ + CODE_94007(94007, "appid unbind mchid"), + + /** + * invalid timestamp + */ + CODE_94008(94008, "invalid timestamp"), + + /** + * invalid cert_serialno, cert_serialno's size should be 40 + */ + CODE_94009(94009, "invalid cert_serialno, cert_serialno's size should be 40"), + + /** + * invalid mch_id + */ + CODE_94010(94010, "invalid mch_id"), + + /** + * timestamp expired + */ + CODE_94011(94011, "timestamp expired"), + + /** + * appid和商户号的绑定关系不存在 + */ + CODE_94012(94012, "appid和商户号的绑定关系不存在"), + + /** + * wxcode decode fail + */ + CODE_95001(95001, "wxcode decode fail"), + + /** + * wxcode recognize unautuorized + */ + CODE_95002(95002, "wxcode recognize unautuorized"), + + /** + * get product by page args invalid + */ + CODE_95101(95101, "get product by page args invalid"), + + /** + * get product materials by cond args invalid + */ + CODE_95102(95102, "get product materials by cond args invalid"), + + /** + * material id list size out of limit + */ + CODE_95103(95103, "material id list size out of limit"), + + /** + * import product frequence out of limit + */ + CODE_95104(95104, "import product frequence out of limit"), + + /** + * mp is importing products, api is rejected to import + */ + CODE_95105(95105, "mp is importing products, api is rejected to import"), + + /** + * api is rejected to import, need to set commission ratio on mp first + */ + CODE_95106(95106, "api is rejected to import, need to set commission ratio on mp first"), + + /** + * invalid image url + */ + CODE_101000(101000, "无效图片链接"), + + /** + * certificate not found + */ + CODE_101001(101001, "未找到证书"), + + /** + * not enough market quota + */ + CODE_101002(101002, "not enough market quota"), + + /** + * 入参错误 + */ + CODE_200002(200002, "入参错误"), + + /** + * 此账号已被封禁,无法操作 + */ + CODE_200011(200011, "此账号已被封禁,无法操作"), + + /** + * 个人模板数已达上限,上限25个 + */ + CODE_200012(200012, "个人模板数已达上限,上限25个"), + + /** + * 此模板已被封禁,无法选用 + */ + CODE_200013(200013, "此模板已被封禁,无法选用"), + + /** + * 模板 tid 参数错误 + */ + CODE_200014(200014, "模板 tid 参数错误"), + + /** + * start 参数错误 + */ + CODE_200016(200016, "start 参数错误"), + + /** + * limit 参数错误 + */ + CODE_200017(200017, "limit 参数错误"), + + /** + * 类目 ids 缺失 + */ + CODE_200018(200018, "类目 ids 缺失"), + + /** + * 类目 ids 不合法 + */ + CODE_200019(200019, "类目 ids 不合法"), + + /** + * 关键词列表 kidList 参数错误 + */ + CODE_200020(200020, "关键词列表 kidList 参数错误"), + + /** + * 场景描述 sceneDesc 参数错误 + */ + CODE_200021(200021, "场景描述 sceneDesc 参数错误"), + + /** + * 禁止创建/更新商品(如商品创建功能被封禁) 或 禁止编辑&更新房间 + */ + CODE_300001(300001, "禁止创建/更新商品(如商品创建功能被封禁) 或 禁止编辑&更新房间"), + + /** + * 名称长度不符合规则 + */ + CODE_300002(300002, "名称长度不符合规则"), + + /** + * 价格输入不合规(如现价比原价大、传入价格非数字等) + */ + CODE_300003(300003, "价格输入不合规(如现价比原价大、传入价格非数字等)"), + + /** + * 商品名称存在违规违法内容 + */ + CODE_300004(300004, "商品名称存在违规违法内容"), + + /** + * 商品图片存在违规违法内容 + */ + CODE_300005(300005, "商品图片存在违规违法内容"), + + /** + * 图片上传失败(如mediaID过期) + */ + CODE_300006(300006, "图片上传失败(如mediaID过期)"), + + /** + * 线上小程序版本不存在该链接 + */ + CODE_300007(300007, "线上小程序版本不存在该链接"), + + /** + * 添加商品失败 + */ + CODE_300008(300008, "添加商品失败"), + + /** + * 商品审核撤回失败 + */ + CODE_300009(300009, "商品审核撤回失败"), + + /** + * 商品审核状态不对(如商品审核中) + */ + CODE_300010(300010, "商品审核状态不对(如商品审核中)"), + + /** + * 操作非法(API不允许操作非API创建的商品) + */ + CODE_300011(300011, "操作非法(API不允许操作非API创建的商品)"), + + /** + * 没有提审额度(每天500次提审额度) + */ + CODE_300012(300012, "没有提审额度(每天500次提审额度)"), + + /** + * 提审失败 + */ + CODE_300013(300013, "提审失败"), + + /** + * 审核中,无法删除(非零代表失败) + */ + CODE_300014(300014, "审核中,无法删除(非零代表失败)"), + + /** + * 商品未提审 + */ + CODE_300017(300017, "商品未提审"), + + /** + * 商品添加成功,审核失败 + */ + CODE_300021(300021, "商品添加成功,审核失败"), + + /** + * 此房间号不存在 + */ + CODE_300022(300022, "此房间号不存在"), + + /** + * 房间状态 拦截(当前房间状态不允许此操作) + */ + CODE_300023(300023, "房间状态 拦截(当前房间状态不允许此操作)"), + + /** + * 商品不存在 + */ + CODE_300024(300024, "商品不存在"), + + /** + * 商品审核未通过 + */ + CODE_300025(300025, "商品审核未通过"), + + /** + * 房间商品数量已经满额 + */ + CODE_300026(300026, "房间商品数量已经满额"), + + /** + * 导入商品失败 + */ + CODE_300027(300027, "导入商品失败"), + + /** + * 房间名称违规 + */ + CODE_300028(300028, "房间名称违规"), + + /** + * 主播昵称违规 + */ + CODE_300029(300029, "主播昵称违规"), + + /** + * 主播微信号不合法 + */ + CODE_300030(300030, "主播微信号不合法"), + + /** + * 直播间封面图不合规 + */ + CODE_300031(300031, "直播间封面图不合规"), + + /** + * 直播间分享图违规 + */ + CODE_300032(300032, "直播间分享图违规"), + + /** + * 添加商品超过直播间上限 + */ + CODE_300033(300033, "添加商品超过直播间上限"), + + /** + * 主播微信昵称长度不符合要求 + */ + CODE_300034(300034, "主播微信昵称长度不符合要求"), + + /** + * 主播微信号不存在 + */ + CODE_300035(300035, "主播微信号不存在"), + + /** + * 主播微信号未实名认证 + */ + CODE_300036(300036, "主播微信号未实名认证"), + + /** + * invalid file name + */ + CODE_600001(600001, "invalid file name"), + + /** + * no permission to upload file + */ + CODE_600002(600002, "no permission to upload file"), + + /** + * invalid size of source + */ + CODE_600003(600003, "invalid size of source"), + + /** + * 票据已存在 + */ + CODE_928000(928000, "票据已存在"), + + /** + * 票据不存在 + */ + CODE_928001(928001, "票据不存在"), + + /** + * sysem error + */ + CODE_930555(930555, "sysem error"), + + /** + * delivery timeout + */ + CODE_930556(930556, "delivery timeout"), + + /** + * delivery system error + */ + CODE_930557(930557, "delivery system error"), + + /** + * delivery logic error + */ + CODE_930558(930558, "delivery logic error"), + + /** + * 沙盒环境openid无效 invaild openid + */ + CODE_930559(930559, "沙盒环境openid无效"), + + /** + * shopid need bind first + */ + CODE_930560(930560, "shopid need bind first"), + + /** + * 参数错误 args error + */ + CODE_930561(930561, "参数错误"), + + /** + * order already exists + */ + CODE_930562(930562, "order already exists"), + + /** + * 订单不存在 order not exists + */ + CODE_930563(930563, "订单不存在"), + + /** + * 沙盒环境调用无配额 quota run out, try next day + */ + CODE_930564(930564, "沙盒环境调用无配额"), + + /** + * order finished + */ + CODE_930565(930565, "order finished"), + + /** + * not support, plz auth at mp.weixin.qq.com + */ + CODE_930566(930566, "not support, plz auth at mp.weixin.qq.com"), + + /** + * shop arg error + */ + CODE_930567(930567, "shop arg error"), + + /** + * 不支持个人类型小程序 not personal account + */ + CODE_930568(930568, "不支持个人类型小程序"), + + /** + * 已经开通不需要再开通 already open + */ + CODE_930569(930569, "已经开通不需要再开通"), + + /** + * cargo_first_class or cargo_second_class invalid + */ + CODE_930570(930570, "cargo_first_class or cargo_second_class invalid"), + + /** + * 该商户没有内测权限,请先申请权限: https://wj.qq.com/s2/7243532/fcfb/ + */ + CODE_930571(930571, "该商户没有内测权限,请先申请权限: https://wj.qq.com/s2/7243532/fcfb/"), + + /** + * fee already set + */ + CODE_931010(931010, "fee already set"), + + /** + * unbind download url + */ + CODE_6000100(6000100, "unbind download url"), + + /** + * no response data + */ + CODE_6000101(6000101, "no response data"), + + /** + * response data too big + */ + CODE_6000102(6000102, "response data too big"), + + /** + * POST 数据参数不合法 + */ + CODE_9001001(9001001, "POST 数据参数不合法"), + + /** + * 远端服务不可用 + */ + CODE_9001002(9001002, "远端服务不可用"), + + /** + * Ticket 不合法 + */ + CODE_9001003(9001003, "Ticket 不合法"), + + /** + * 获取摇周边用户信息失败 + */ + CODE_9001004(9001004, "获取摇周边用户信息失败"), + + /** + * 获取商户信息失败 + */ + CODE_9001005(9001005, "获取商户信息失败"), + + /** + * 获取 OpenID 失败 + */ + CODE_9001006(9001006, "获取 OpenID 失败"), + + /** + * 上传文件缺失 + */ + CODE_9001007(9001007, "上传文件缺失"), + + /** + * 上传素材的文件类型不合法 + */ + CODE_9001008(9001008, "上传素材的文件类型不合法"), + + /** + * 上传素材的文件尺寸不合法 + */ + CODE_9001009(9001009, "上传素材的文件尺寸不合法"), + + /** + * 上传失败 + */ + CODE_9001010(9001010, "上传失败"), + + /** + * 帐号不合法 + */ + CODE_9001020(9001020, "帐号不合法"), + + /** + * 已有设备激活率低于 50% ,不能新增设备 + */ + CODE_9001021(9001021, "已有设备激活率低于 50% ,不能新增设备"), + + /** + * 设备申请数不合法,必须为大于 0 的数字 + */ + CODE_9001022(9001022, "设备申请数不合法,必须为大于 0 的数字"), + + /** + * 已存在审核中的设备 ID 申请 + */ + CODE_9001023(9001023, "已存在审核中的设备 ID 申请"), + + /** + * 一次查询设备 ID 数量不能超过 50 + */ + CODE_9001024(9001024, "一次查询设备 ID 数量不能超过 50"), + + /** + * 设备 ID 不合法 + */ + CODE_9001025(9001025, "设备 ID 不合法"), + + /** + * 页面 ID 不合法 + */ + CODE_9001026(9001026, "页面 ID 不合法"), + + /** + * 页面参数不合法 + */ + CODE_9001027(9001027, "页面参数不合法"), + + /** + * 一次删除页面 ID 数量不能超过 10 + */ + CODE_9001028(9001028, "一次删除页面 ID 数量不能超过 10"), + + /** + * 页面已应用在设备中,请先解除应用关系再删除 + */ + CODE_9001029(9001029, "页面已应用在设备中,请先解除应用关系再删除"), + + /** + * 一次查询页面 ID 数量不能超过 50 + */ + CODE_9001030(9001030, "一次查询页面 ID 数量不能超过 50"), + + /** + * 时间区间不合法 + */ + CODE_9001031(9001031, "时间区间不合法"), + + /** + * 保存设备与页面的绑定关系参数错误 + */ + CODE_9001032(9001032, "保存设备与页面的绑定关系参数错误"), + + /** + * 门店 ID 不合法 + */ + CODE_9001033(9001033, "门店 ID 不合法"), + + /** + * 设备备注信息过长 + */ + CODE_9001034(9001034, "设备备注信息过长"), + + /** + * 设备申请参数不合法 + */ + CODE_9001035(9001035, "设备申请参数不合法"), + + /** + * 查询起始值 begin 不合法 + */ + CODE_9001036(9001036, "查询起始值 begin 不合法"), + + /** + * params invalid + */ + CODE_9002008(9002008, "params invalid"), + + /** + * shop id not exist + */ + CODE_9002009(9002009, "shop id not exist"), + + /** + * ssid or password should start with "WX" + */ + CODE_9002010(9002010, "ssid or password should start with \"WX\""), + + /** + * ssid can not include chinese + */ + CODE_9002011(9002011, "ssid can not include chinese"), + + /** + * passsword can not include chinese + */ + CODE_9002012(9002012, "passsword can not include chinese"), + + /** + * password must be between 8 and 24 characters + */ + CODE_9002013(9002013, "password must be between 8 and 24 characters"), + + /** + * device exist + */ + CODE_9002016(9002016, "device exist"), + + /** + * device not exist + */ + CODE_9002017(9002017, "device not exist"), + + /** + * the size of query list reach limit + */ + CODE_9002026(9002026, "the size of query list reach limit"), + + /** + * not allowed to modify, ensure you are an certified or component account + */ + CODE_9002041(9002041, "not allowed to modify, ensure you are an certified or component account"), + + /** + * invalid ssid, can not include none utf8 characters, and should be between 1 and 32 bytes + */ + CODE_9002044(9002044, "invalid ssid, can not include none utf8 characters, and should be between 1 and 32 bytes"), + + /** + * shop id has not be audited, this bar type is not enable + */ + CODE_9002052(9002052, "shop id has not be audited, this bar type is not enable"), + + /** + * protocol type is not same with the exist device + */ + CODE_9007003(9007003, "protocol type is not same with the exist device"), + + /** + * ssid not exist + */ + CODE_9007004(9007004, "ssid not exist"), + + /** + * device count limit + */ + CODE_9007005(9007005, "device count limit"), + + /** + * card info not exist + */ + CODE_9008001(9008001, "card info not exist"), + + /** + * card expiration time is invalid + */ + CODE_9008002(9008002, "card expiration time is invalid"), + + /** + * url size invalid, keep less than 255 + */ + CODE_9008003(9008003, "url size invalid, keep less than 255"), + + /** + * url can not include chinese + */ + CODE_9008004(9008004, "url can not include chinese"), + + /** + * order_id not exist + */ + CODE_9200001(9200001, "order_id not exist"), + + /** + * order of other biz + */ + CODE_9200002(9200002, "order of other biz"), + + /** + * blocked + */ + CODE_9200003(9200003, "blocked"), + + /** + * payment notice disabled + */ + CODE_9200211(9200211, "payment notice disabled"), + + /** + * payment notice not exist + */ + CODE_9200231(9200231, "payment notice not exist"), + + /** + * payment notice paid + */ + CODE_9200232(9200232, "payment notice paid"), + + /** + * payment notice canceled + */ + CODE_9200233(9200233, "payment notice canceled"), + + /** + * payment notice expired + */ + CODE_9200235(9200235, "payment notice expired"), + + /** + * bank not allow + */ + CODE_9200236(9200236, "bank not allow"), + + /** + * freq limit + */ + CODE_9200295(9200295, "freq limit"), + + /** + * suspend payment at current time + */ + CODE_9200297(9200297, "suspend payment at current time"), + + /** + * 3rd resp decrypt error + */ + CODE_9200298(9200298, "3rd resp decrypt error"), + + /** + * 3rd resp system error + */ + CODE_9200299(9200299, "3rd resp system error"), + + /** + * 3rd resp sign error + */ + CODE_9200300(9200300, "3rd resp sign error"), + + /** + * desc empty + */ + CODE_9201000(9201000, "desc empty"), + + /** + * fee not equal items' + */ + CODE_9201001(9201001, "fee not equal items'"), + + /** + * payment info incorrect + */ + CODE_9201002(9201002, "payment info incorrect"), + + /** + * fee is 0 + */ + CODE_9201003(9201003, "fee is 0"), + + /** + * payment expire date format error + */ + CODE_9201004(9201004, "payment expire date format error"), + + /** + * appid error + */ + CODE_9201005(9201005, "appid error"), + + /** + * payment order id error + */ + CODE_9201006(9201006, "payment order id error"), + + /** + * openid error + */ + CODE_9201007(9201007, "openid error"), + + /** + * return_url error + */ + CODE_9201008(9201008, "return_url error"), + + /** + * ip error + */ + CODE_9201009(9201009, "ip error"), + + /** + * order_id error + */ + CODE_9201010(9201010, "order_id error"), + + /** + * reason error + */ + CODE_9201011(9201011, "reason error"), + + /** + * mch_id error + */ + CODE_9201012(9201012, "mch_id error"), + + /** + * bill_date error + */ + CODE_9201013(9201013, "bill_date error"), + + /** + * bill_type error + */ + CODE_9201014(9201014, "bill_type error"), + + /** + * trade_type error + */ + CODE_9201015(9201015, "trade_type error"), + + /** + * bank_id error + */ + CODE_9201016(9201016, "bank_id error"), + + /** + * bank_account error + */ + CODE_9201017(9201017, "bank_account error"), + + /** + * payment_notice_no error + */ + CODE_9201018(9201018, "payment_notice_no error"), + + /** + * department_code error + */ + CODE_9201019(9201019, "department_code error"), + + /** + * payment_notice_type error + */ + CODE_9201020(9201020, "payment_notice_type error"), + + /** + * region_code error + */ + CODE_9201021(9201021, "region_code error"), + + /** + * department_name error + */ + CODE_9201022(9201022, "department_name error"), + + /** + * fee not equal finance's + */ + CODE_9201023(9201023, "fee not equal finance's"), + + /** + * refund_out_id error + */ + CODE_9201024(9201024, "refund_out_id error"), + + /** + * not combined order_id + */ + CODE_9201026(9201026, "not combined order_id"), + + /** + * partial sub order is test + */ + CODE_9201027(9201027, "partial sub order is test"), + + /** + * desc too long + */ + CODE_9201029(9201029, "desc too long"), + + /** + * sub order list size error + */ + CODE_9201031(9201031, "sub order list size error"), + + /** + * sub order repeated + */ + CODE_9201032(9201032, "sub order repeated"), + + /** + * auth_code empty + */ + CODE_9201033(9201033, "auth_code empty"), + + /** + * bank_id empty but mch_id not empty + */ + CODE_9201034(9201034, "bank_id empty but mch_id not empty"), + + /** + * sum of other fees exceed total fee + */ + CODE_9201035(9201035, "sum of other fees exceed total fee"), + + /** + * other user paying + */ + CODE_9202000(9202000, "other user paying"), + + /** + * pay process not finish + */ + CODE_9202001(9202001, "pay process not finish"), + + /** + * no refund permission + */ + CODE_9202002(9202002, "no refund permission"), + + /** + * ip limit + */ + CODE_9202003(9202003, "ip limit"), + + /** + * freq limit + */ + CODE_9202004(9202004, "freq limit"), + + /** + * user weixin account abnormal + */ + CODE_9202005(9202005, "user weixin account abnormal"), + + /** + * account balance not enough + */ + CODE_9202006(9202006, "account balance not enough"), + + /** + * refund request repeated + */ + CODE_9202010(9202010, "refund request repeated"), + + /** + * has refunded + */ + CODE_9202011(9202011, "has refunded"), + + /** + * refund exceed total fee + */ + CODE_9202012(9202012, "refund exceed total fee"), + + /** + * busi_id dup + */ + CODE_9202013(9202013, "busi_id dup"), + + /** + * not check sign + */ + CODE_9202016(9202016, "not check sign"), + + /** + * check sign failed + */ + CODE_9202017(9202017, "check sign failed"), + + /** + * sub order error + */ + CODE_9202018(9202018, "sub order error"), + + /** + * order status error + */ + CODE_9202020(9202020, "order status error"), + + /** + * unified order repeatedly + */ + CODE_9202021(9202021, "unified order repeatedly"), + + /** + * request to notification url fail + */ + CODE_9203000(9203000, "request to notification url fail"), + + /** + * http request fail + */ + CODE_9203001(9203001, "http request fail"), + + /** + * http response data error + */ + CODE_9203002(9203002, "http response data error"), + + /** + * http response data RSA decrypt fail + */ + CODE_9203003(9203003, "http response data RSA decrypt fail"), + + /** + * http response data AES decrypt fail + */ + CODE_9203004(9203004, "http response data AES decrypt fail"), + + /** + * system busy, please try again later + */ + CODE_9203999(9203999, "system busy, please try again later"), + + /** + * getrealname token error + */ + CODE_9204000(9204000, "getrealname token error"), + + /** + * getrealname user or token error + */ + CODE_9204001(9204001, "getrealname user or token error"), + + /** + * getrealname appid or token error + */ + CODE_9204002(9204002, "getrealname appid or token error"), + + /** + * finance conf not exist + */ + CODE_9205000(9205000, "finance conf not exist"), + + /** + * bank conf not exist + */ + CODE_9205001(9205001, "bank conf not exist"), + + /** + * wei ban ju conf not exist + */ + CODE_9205002(9205002, "wei ban ju conf not exist"), + + /** + * symmetric key conf not exist + */ + CODE_9205010(9205010, "symmetric key conf not exist"), + + /** + * out order id not exist + */ + CODE_9205101(9205101, "out order id not exist"), + + /** + * bill not exist + */ + CODE_9205201(9205201, "bill not exist"), + + /** + * 3rd resp pay_channel empty + */ + CODE_9206000(9206000, "3rd resp pay_channel empty"), + + /** + * 3rd resp order_id empty + */ + CODE_9206001(9206001, "3rd resp order_id empty"), + + /** + * 3rd resp bill_type_code empty + */ + CODE_9206002(9206002, "3rd resp bill_type_code empty"), + + /** + * 3rd resp bill_no empty + */ + CODE_9206003(9206003, "3rd resp bill_no empty"), + + /** + * 3rd resp empty + */ + CODE_9206200(9206200, "3rd resp empty"), + + /** + * 3rd resp not json + */ + CODE_9206201(9206201, "3rd resp not json"), + + /** + * connect 3rd error + */ + CODE_9206900(9206900, "connect 3rd error"), + + /** + * connect 3rd timeout + */ + CODE_9206901(9206901, "connect 3rd timeout"), + + /** + * read 3rd resp error + */ + CODE_9206910(9206910, "read 3rd resp error"), + + /** + * read 3rd resp timeout + */ + CODE_9206911(9206911, "read 3rd resp timeout"), + + /** + * boss error + */ + CODE_9207000(9207000, "boss error"), + + /** + * wechat pay error + */ + CODE_9207001(9207001, "wechat pay error"), + + /** + * boss param error + */ + CODE_9207002(9207002, "boss param error"), + + /** + * pay error + */ + CODE_9207003(9207003, "pay error"), + + /** + * auth_code expired + */ + CODE_9207004(9207004, "auth_code expired"), + + /** + * user balance not enough + */ + CODE_9207005(9207005, "user balance not enough"), + + /** + * card not support + */ + CODE_9207006(9207006, "card not support"), + + /** + * order reversed + */ + CODE_9207007(9207007, "order reversed"), + + /** + * user paying, need input password + */ + CODE_9207008(9207008, "user paying, need input password"), + + /** + * auth_code error + */ + CODE_9207009(9207009, "auth_code error"), + + /** + * auth_code invalid + */ + CODE_9207010(9207010, "auth_code invalid"), + + /** + * not allow to reverse when user paying + */ + CODE_9207011(9207011, "not allow to reverse when user paying"), + + /** + * order paid + */ + CODE_9207012(9207012, "order paid"), + + /** + * order closed + */ + CODE_9207013(9207013, "order closed"), + + /** + * vehicle not exists + */ + CODE_9207028(9207028, "vehicle not exists"), + + /** + * vehicle request blocked + */ + CODE_9207029(9207029, "vehicle request blocked"), + + /** + * vehicle auth error + */ + CODE_9207030(9207030, "vehicle auth error"), + + /** + * contract over limit + */ + CODE_9207031(9207031, "contract over limit"), + + /** + * trade error + */ + CODE_9207032(9207032, "trade error"), + + /** + * trade time invalid + */ + CODE_9207033(9207033, "trade time invalid"), + + /** + * channel type invalid + */ + CODE_9207034(9207034, "channel type invalid"), + + /** + * expire_time range error + */ + CODE_9207050(9207050, "expire_time range error"), + + /** + * query finance error + */ + CODE_9210000(9210000, "query finance error"), + + /** + * openid error + */ + CODE_9291000(9291000, "openid error"), + + /** + * openid appid not match + */ + CODE_9291001(9291001, "openid appid not match"), + + /** + * app_appid not exist + */ + CODE_9291002(9291002, "app_appid not exist"), + + /** + * app_appid not app + */ + CODE_9291003(9291003, "app_appid not app"), + + /** + * appid empty + */ + CODE_9291004(9291004, "appid empty"), + + /** + * appid not match access_token + */ + CODE_9291005(9291005, "appid not match access_token"), + + /** + * invalid sign + */ + CODE_9291006(9291006, "invalid sign"), + + /** + * backend logic error + */ + CODE_9299999(9299999, "backend logic error"), + + /** + * begin_time can not before now + */ + CODE_9300001(9300001, "begin_time can not before now"), + + /** + * end_time can not before now + */ + CODE_9300002(9300002, "end_time can not before now"), + + /** + * begin_time must less than end_time + */ + CODE_9300003(9300003, "begin_time must less than end_time"), + + /** + * end_time - begin_time > 1year + */ + CODE_9300004(9300004, "end_time - begin_time > 1year"), + + /** + * invalid max_partic_times + */ + CODE_9300005(9300005, "invalid max_partic_times"), + + /** + * invalid activity status + */ + CODE_9300006(9300006, "invalid activity status"), + + /** + * gift_num must >0 and <=15 + */ + CODE_9300007(9300007, "gift_num must >0 and <=15"), + + /** + * invalid tiny appid + */ + CODE_9300008(9300008, "invalid tiny appid"), + + /** + * activity can not finish + */ + CODE_9300009(9300009, "activity can not finish"), + + /** + * card_info_list must >= 2 + */ + CODE_9300010(9300010, "card_info_list must >= 2"), + + /** + * invalid card_id + */ + CODE_9300011(9300011, "invalid card_id"), + + /** + * card_id must belong this appid + */ + CODE_9300012(9300012, "card_id must belong this appid"), + + /** + * card_id is not swipe_card or pay.cash + */ + CODE_9300013(9300013, "card_id is not swipe_card or pay.cash"), + + /** + * some card_id is out of stock + */ + CODE_9300014(9300014, "some card_id is out of stock"), + + /** + * some card_id is invalid status + */ + CODE_9300015(9300015, "some card_id is invalid status"), + + /** + * membership or new/old tinyapp user only support one + */ + CODE_9300016(9300016, "membership or new/old tinyapp user only support one"), + + /** + * invalid logic for membership + */ + CODE_9300017(9300017, "invalid logic for membership"), + + /** + * invalid logic for tinyapp new/old user + */ + CODE_9300018(9300018, "invalid logic for tinyapp new/old user"), + + /** + * invalid activity type + */ + CODE_9300019(9300019, "invalid activity type"), + + /** + * invalid activity_id + */ + CODE_9300020(9300020, "invalid activity_id"), + + /** + * invalid help_max_times + */ + CODE_9300021(9300021, "invalid help_max_times"), + + /** + * invalid cover_url + */ + CODE_9300022(9300022, "invalid cover_url"), + + /** + * invalid gen_limit + */ + CODE_9300023(9300023, "invalid gen_limit"), + + /** + * card's end_time cannot early than act's end_time + */ + CODE_9300024(9300024, "card's end_time cannot early than act's end_time"), + + /** + * 快递侧逻辑错误,详细原因需要看 delivery_resultcode, 请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE) Delivery side error + */ + CODE_9300501(9300501, "快递侧逻辑错误,详细原因需要看 delivery_resultcode, 请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE)"), + + /** + * 快递公司系统错误 Delivery side sys error + */ + CODE_9300502(9300502, "快递公司系统错误"), + + /** + * delivery_id 不存在 Specified delivery id is not registerred + */ + CODE_9300503(9300503, "delivery_id 不存在"), + + /** + * service_type 不存在 Specified delivery id has beed banned + */ + CODE_9300504(9300504, "service_type 不存在"), + + /** + * Shop banned + */ + CODE_9300505(9300505, "Shop banned"), + + /** + * 运单 ID 已经存在轨迹,不可取消 Order can't cancel + */ + CODE_9300506(9300506, "运单 ID 已经存在轨迹,不可取消"), + + /** + * Token 不正确 invalid token, can't decryption or decryption result is different from the plaintext + */ + CODE_9300507(9300507, "Token 不正确"), + + /** + * order id has been used + */ + CODE_9300508(9300508, "order id has been used"), + + /** + * speed limit, retry too fast + */ + CODE_9300509(9300509, "speed limit, retry too fast"), + + /** + * invalid service type + */ + CODE_9300510(9300510, "invalid service type"), + + /** + * invalid branch id + */ + CODE_9300511(9300511, "invalid branch id"), + + /** + * 模板格式错误,渲染失败 invalid waybill template format + */ + CODE_9300512(9300512, "模板格式错误,渲染失败"), + + /** + * out of quota + */ + CODE_9300513(9300513, "out of quota"), + + /** + * add net branch fail, try update branch api + */ + CODE_9300514(9300514, "add net branch fail, try update branch api"), + + /** + * wxa appid not exist + */ + CODE_9300515(9300515, "wxa appid not exist"), + + /** + * wxa appid and current bizuin is not linked or not the same owner + */ + CODE_9300516(9300516, "wxa appid and current bizuin is not linked or not the same owner"), + + /** + * update_type 不正确,请使用"bind" 或者“unbind” invalid update_type, please use [bind] or [unbind] + */ + CODE_9300517(9300517, "update_type 不正确,请使用\"bind\" 或者“unbind”"), + + /** + * invalid delivery id + */ + CODE_9300520(9300520, "invalid delivery id"), + + /** + * the orderid is in our system, and waybill is generating + */ + CODE_9300521(9300521, "the orderid is in our system, and waybill is generating"), + + /** + * this orderid is repeated + */ + CODE_9300522(9300522, "this orderid is repeated"), + + /** + * quota is not enough; go to charge please + */ + CODE_9300523(9300523, "quota is not enough; go to charge please"), + + /** + * 订单已取消(一般为重复取消订单) order already canceled + */ + CODE_9300524(9300524, "订单已取消(一般为重复取消订单)"), + + /** + * bizid未绑定 biz id not bind + */ + CODE_9300525(9300525, "bizid未绑定"), + + /** + * 参数字段长度不正确 arg size exceed limit + */ + CODE_9300526(9300526, "参数字段长度不正确"), + + /** + * delivery does not support quota + */ + CODE_9300527(9300527, "delivery does not support quota"), + + /** + * invalid waybill_id + */ + CODE_9300528(9300528, "invalid waybill_id"), + + /** + * 账号已绑定过 biz_id already binded + */ + CODE_9300529(9300529, "账号已绑定过"), + + /** + * 解绑的biz_id不存在 biz_id is not exist + */ + CODE_9300530(9300530, "解绑的biz_id不存在"), + + /** + * bizid无效 或者密码错误 invalid biz_id or password + */ + CODE_9300531(9300531, "bizid无效 或者密码错误"), + + /** + * 绑定已提交,审核中 bind submit, and is checking + */ + CODE_9300532(9300532, "绑定已提交,审核中"), + + /** + * invalid tagid_list + */ + CODE_9300533(9300533, "invalid tagid_list"), + + /** + * add_source=2时,wx_appid和当前小程序不同主体 invalid appid, not same body + */ + CODE_9300534(9300534, "add_source=2时,wx_appid和当前小程序不同主体"), + + /** + * shop字段商品缩略图 url、商品名称为空或者非法,或者商品数量为0 invalid shop arg + */ + CODE_9300535(9300535, "shop字段商品缩略图 url、商品名称为空或者非法,或者商品数量为0"), + + /** + * add_source=2时,wx_appid无效 invalid wxa_appid + */ + CODE_9300536(9300536, "add_source=2时,wx_appid无效"), + + /** + * freq limit + */ + CODE_9300537(9300537, "freq limit"), + + /** + * input task empty + */ + CODE_9300538(9300538, "input task empty"), + + /** + * too many task + */ + CODE_9300539(9300539, "too many task"), + + /** + * task not exist + */ + CODE_9300540(9300540, "task not exist"), + + /** + * delivery callback error + */ + CODE_9300541(9300541, "delivery callback error"), + + /** + * id_card_no is invalid + */ + CODE_9300601(9300601, "id_card_no is invalid"), + + /** + * name is invalid + */ + CODE_9300602(9300602, "name is invalid"), + + /** + * plate_no is invalid + */ + CODE_9300603(9300603, "plate_no is invalid"), + + /** + * auth_key decode error + */ + CODE_9300604(9300604, "auth_key decode error"), + + /** + * auth_key is expired + */ + CODE_9300605(9300605, "auth_key is expired"), + + /** + * auth_key and appinfo not match + */ + CODE_9300606(9300606, "auth_key and appinfo not match"), + + /** + * user not confirm + */ + CODE_9300607(9300607, "user not confirm"), + + /** + * user confirm is expired + */ + CODE_9300608(9300608, "user confirm is expired"), + + /** + * api exceed limit + */ + CODE_9300609(9300609, "api exceed limit"), + + /** + * car license info is invalid + */ + CODE_9300610(9300610, "car license info is invalid"), + + /** + * varification type not support + */ + CODE_9300611(9300611, "varification type not support"), + + /** + * input param error + */ + CODE_9300701(9300701, "input param error"), + + /** + * this code has been used + */ + CODE_9300702(9300702, "this code has been used"), + + /** + * invalid date + */ + CODE_9300703(9300703, "invalid date"), + + /** + * not currently available + */ + CODE_9300704(9300704, "not currently available"), + + /** + * code not exist or expired + */ + CODE_9300705(9300705, "code not exist or expired"), + + /** + * code not exist or expired + */ + CODE_9300706(9300706, "code not exist or expired"), + + /** + * wxpay error + */ + CODE_9300707(9300707, "wxpay error"), + + /** + * wxpay overlimit + */ + CODE_9300708(9300708, "wxpay overlimit"), + + /** + * 无效的微信号 + */ + CODE_9300801(9300801, "无效的微信号"), + + /** + * 服务号未开通导购功能 + */ + CODE_9300802(9300802, "服务号未开通导购功能"), + + /** + * 微信号已经绑定为导购 + */ + CODE_9300803(9300803, "微信号已经绑定为导购"), + + /** + * 该微信号不是导购 + */ + CODE_9300804(9300804, "该微信号不是导购"), + + /** + * 微信号已经被其他账号绑定为导购 + */ + CODE_9300805(9300805, "微信号已经被其他账号绑定为导购"), + + /** + * 粉丝和导购不存在绑定关系 + */ + CODE_9300806(9300806, "粉丝和导购不存在绑定关系"), + + /** + * 标签值无效,不是可选标签值 + */ + CODE_9300807(9300807, "标签值无效,不是可选标签值"), + + /** + * 标签值不存在 + */ + CODE_9300808(9300808, "标签值不存在"), + + /** + * 展示标签值不存在 + */ + CODE_9300809(9300809, "展示标签值不存在"), + + /** + * 导购昵称太长,最多16个字符 + */ + CODE_9300810(9300810, "导购昵称太长,最多16个字符"), + + /** + * 只支持mmbiz.qpic.cn域名的图片 + */ + CODE_9300811(9300811, "只支持mmbiz.qpic.cn域名的图片"), + + /** + * 达到导购绑定个数限制 + */ + CODE_9300812(9300812, "达到导购绑定个数限制"), + + /** + * 达到导购粉丝绑定个数限制 + */ + CODE_9300813(9300813, "达到导购粉丝绑定个数限制"), + + /** + * 敏感词个数超过上限 + */ + CODE_9300814(9300814, "敏感词个数超过上限"), + + /** + * 快捷回复个数超过上限 + */ + CODE_9300815(9300815, "快捷回复个数超过上限"), + + /** + * 文字素材个数超过上限 + */ + CODE_9300816(9300816, "文字素材个数超过上限"), + + /** + * 小程序卡片素材个数超过上限 + */ + CODE_9300817(9300817, "小程序卡片素材个数超过上限"), + + /** + * 图片素材个数超过上限 + */ + CODE_9300818(9300818, "图片素材个数超过上限"), + + /** + * mediaid 有误 + */ + CODE_9300819(9300819, "mediaid 有误"), + + /** + * 可查询标签类别超过上限 + */ + CODE_9300820(9300820, "可查询标签类别超过上限"), + + /** + * 小程序卡片内appid不符合要求 + */ + CODE_9300821(9300821, "小程序卡片内appid不符合要求"), + + /** + * 标签类别的名字无效 + */ + CODE_9300822(9300822, "标签类别的名字无效"), + + /** + * 查询聊天记录时间参数有误 + */ + CODE_9300823(9300823, "查询聊天记录时间参数有误"), + + /** + * 自动回复字数太长 + */ + CODE_9300824(9300824, "自动回复字数太长"), + + /** + * 导购群组id错误 + */ + CODE_9300825(9300825, "导购群组id错误"), + + /** + * 维护中 + */ + CODE_9300826(9300826, "维护中"), + + /** + * invalid parameter + */ + CODE_9301001(9301001, "invalid parameter"), + + /** + * call api service failed + */ + CODE_9301002(9301002, "call api service failed"), + + /** + * internal exception + */ + CODE_9301003(9301003, "internal exception"), + + /** + * save data error + */ + CODE_9301004(9301004, "save data error"), + + /** + * invalid appid + */ + CODE_9301006(9301006, "invalid appid"), + + /** + * invalid api config + */ + CODE_9301007(9301007, "invalid api config"), + + /** + * invalid api info + */ + CODE_9301008(9301008, "invalid api info"), + + /** + * add result check failed + */ + CODE_9301009(9301009, "add result check failed"), + + /** + * consumption failure + */ + CODE_9301010(9301010, "consumption failure"), + + /** + * frequency limit reached + */ + CODE_9301011(9301011, "frequency limit reached"), + + /** + * service timeout + */ + CODE_9301012(9301012, "service timeout"), + + /** + * 该开发小程序已开通小程序直播权限,不支持发布版本。如需发版,请解绑开发小程序后再操作。 + */ + CODE_9400001(9400001, "该开发小程序已开通小程序直播权限,不支持发布版本。如需发版,请解绑开发小程序后再操作。"), + + /** + * 商品已存在 + */ + CODE_9401001(9401001, "商品已存在"), + + /** + * 商品不存在 + */ + CODE_9401002(9401002, "商品不存在"), + + /** + * 类目已存在 + */ + CODE_9401003(9401003, "类目已存在"), + + /** + * 类目不存在 + */ + CODE_9401004(9401004, "类目不存在"), + + /** + * SKU已存在 + */ + CODE_9401005(9401005, "SKU已存在"), + + /** + * SKU不存在 + */ + CODE_9401006(9401006, "SKU不存在"), + + /** + * 属性已存在 + */ + CODE_9401007(9401007, "属性已存在"), + + /** + * 属性不存在 + */ + CODE_9401008(9401008, "属性不存在"), + + /** + * 非法参数 + */ + CODE_9401020(9401020, "非法参数"), + + /** + * 没有商品权限 + */ + CODE_9401021(9401021, "没有商品权限"), + + /** + * SPU NOT ALLOW + */ + CODE_9401022(9401022, "SPU NOT ALLOW"), + + /** + * SPU_NOT_ALLOW_EDIT + */ + CODE_9401023(9401023, "SPU_NOT_ALLOW_EDIT"), + + /** + * SKU NOT ALLOW + */ + CODE_9401024(9401024, "SKU NOT ALLOW"), + + /** + * SKU_NOT_ALLOW_EDIT + */ + CODE_9401025(9401025, "SKU_NOT_ALLOW_EDIT"), + + /** + * limit too large + */ + CODE_9402001(9402001, "limit too large"), + + /** + * single send been blocked + */ + CODE_9402002(9402002, "single send been blocked"), + + /** + * all send been blocked + */ + CODE_9402003(9402003, "all send been blocked"), + + /** + * invalid msg id + */ + CODE_9402004(9402004, "invalid msg id"), + + /** + * send msg too quick + */ + CODE_9402005(9402005, "send msg too quick"), + + /** + * send to single user too quick + */ + CODE_9402006(9402006, "send to single user too quick"), + + /** + * send to all user too quick + */ + CODE_9402007(9402007, "send to all user too quick"), + + /** + * send type error + */ + CODE_9402008(9402008, "send type error"), + + /** + * can not send this msg + */ + CODE_9402009(9402009, "can not send this msg"), + + /** + * content too long or no content + */ + CODE_9402010(9402010, "content too long or no content"), + + /** + * path not exist + */ + CODE_9402011(9402011, "path not exist"), + + /** + * contain evil word + */ + CODE_9402012(9402012, "contain evil word"), + + /** + * path need html suffix + */ + CODE_9402013(9402013, "path need html suffix"), + + /** + * not open to personal body type + */ + CODE_9402014(9402014, "not open to personal body type"), + + /** + * not open to violation body type + */ + CODE_9402015(9402015, "not open to violation body type"), + + /** + * not open to low quality provider + */ + CODE_9402016(9402016, "not open to low quality provider"), + + /** + * invalid product_id + */ + CODE_9402101(9402101, "invalid product_id"), + + /** + * device_id count more than limit + */ + CODE_9402102(9402102, "device_id count more than limit"), + + /** + * 请勿频繁提交,待上一次操作完成后再提交 concurrent limit + */ + CODE_9402202(9402202, "请勿频繁提交,待上一次操作完成后再提交"), + + /** + * user not book this ad id + */ + CODE_9402301(9402301, "user not book this ad id"), + + /** + * 消息类型错误! + */ + CODE_9403000(9403000, "消息类型错误!"), + + /** + * 消息字段的内容过长! + */ + CODE_9403001(9403001, "消息字段的内容过长!"), + + /** + * 消息字段的内容违规! + */ + CODE_9403002(9403002, "消息字段的内容违规!"), + + /** + * 发送的微信号太多! + */ + CODE_9403003(9403003, "发送的微信号太多!"), + + /** + * 存在错误的微信号! + */ + CODE_9403004(9403004, "存在错误的微信号!"), + + /** + * 直播间列表为空 live room not exsits + */ + CODE_9410000(9410000, "直播间列表为空"), + + /** + * 获取房间失败 inner error: get room fail + */ + CODE_9410001(9410001, "获取房间失败"), + + /** + * 获取商品失败 inner error: get goods fail + */ + CODE_9410002(9410002, "获取商品失败"), + + /** + * 获取回放失败 inner error: get replay url fail + */ + CODE_9410003(9410003, "获取回放失败"); + + + private final int code; + private final String msg; + + WxOpenErrorMsgEnum(int code, String msg) { + this.code = code; + this.msg = msg; + } + + static final Map valueMap = Maps.newHashMap(); + + static { + for (WxOpenErrorMsgEnum value : WxOpenErrorMsgEnum.values()) { + valueMap.put(value.code, value.msg); } + } + + /** + * 通过错误代码查找其中文含义. + */ + public static String findMsgByCode(int code) { + return valueMap.getOrDefault(code, null); + } } diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/GsonParser.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/GsonParser.java index 53f51e0f3e..061a3cb2ee 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/GsonParser.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/GsonParser.java @@ -3,7 +3,6 @@ import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.stream.JsonReader; -import lombok.NoArgsConstructor; import java.io.Reader; From 08ea0bd9df913c9b5160b76b01997ac4c085af01 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 4 Mar 2022 15:07:47 +0800 Subject: [PATCH 145/622] =?UTF-8?q?:art:=20StorageType=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E7=B1=BB=E5=A2=9E=E5=8A=A0Redisson?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/starter/wxjava/miniapp/enums/StorageType.java | 4 ++++ .../spring/starter/wxjava/mp/enums/StorageType.java | 4 ++++ .../spring/starter/wxjava/qidian/enums/StorageType.java | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java index 9328980bb2..bf9fd6b175 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java @@ -15,6 +15,10 @@ public enum StorageType { * redis(JedisClient). */ Jedis, + /** + * redis(Redisson). + */ + Redisson, /** * redis(RedisTemplate). */ diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java index 7dcb5a1157..4bf4b07890 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java @@ -15,6 +15,10 @@ public enum StorageType { * redis(JedisClient). */ Jedis, + /** + * redis(Redisson). + */ + Redisson, /** * redis(RedisTemplate). */ diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java index 0a7a6b85df..e6ae0cab4f 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java @@ -15,6 +15,10 @@ public enum StorageType { * redis(JedisClient). */ Jedis, + /** + * redis(Redisson). + */ + Redisson, /** * redis(RedisTemplate). */ From 2c27f8bc5a032acda8701723d654098ba5643c0f Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 4 Mar 2022 15:09:01 +0800 Subject: [PATCH 146/622] =?UTF-8?q?:bug:=20#2553=20=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E4=BF=AE=E5=A4=8D=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E5=A4=9A=E5=8F=8C=E5=BC=95=E5=8F=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java index 96ff9f70b6..fb173b1ebb 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java @@ -43,13 +43,13 @@ public String addDraft(String title, String content, String thumbMediaId) throws @Override public String addDraft(WxMpAddDraft addDraft) throws WxErrorException { String json = this.mpService.post(WxMpApiUrl.Draft.ADD_DRAFT, addDraft); - return GsonParser.parse(json).get(MEDIA_ID).toString(); + return GsonParser.parse(json).get(MEDIA_ID).getAsString(); } @Override public Boolean updateDraft(WxMpUpdateDraft updateDraftInfo) throws WxErrorException { String json = this.mpService.post(WxMpApiUrl.Draft.UPDATE_DRAFT, updateDraftInfo); - return GsonParser.parse(json).get(ERRCODE).toString().equals(ERRCODE_SUCCESS); + return GsonParser.parse(json).get(ERRCODE).getAsString().equals(ERRCODE_SUCCESS); } @Override @@ -62,7 +62,7 @@ public WxMpDraftInfo getDraft(String mediaId) throws WxErrorException { public Boolean delDraft(String mediaId) throws WxErrorException { String json = this.mpService.post(WxMpApiUrl.Draft.DEL_DRAFT, GsonHelper.buildJsonObject(MEDIA_ID, mediaId)); - return GsonParser.parse(json).get(ERRCODE).toString().equals(ERRCODE_SUCCESS); + return GsonParser.parse(json).get(ERRCODE).getAsString().equals(ERRCODE_SUCCESS); } @Override From 61f1179bdb18af74d813c5ca0986e2679070347d Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 6 Mar 2022 22:32:55 +0800 Subject: [PATCH 147/622] =?UTF-8?q?:art:=20XmlUtils=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=B1=BB=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=AF=E6=8C=81=E5=8F=98?= =?UTF-8?q?=E6=80=81=E5=BE=AE=E4=BF=A1=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/util/XmlUtils.java | 44 ++++++++++--- .../weixin/common/util/XmlUtilsTest.java | 65 +++++++++++++------ 2 files changed, 81 insertions(+), 28 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java index 91c6b8f2ec..7f7494431b 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java @@ -3,7 +3,6 @@ import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; -import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.error.WxRuntimeException; import org.dom4j.*; import org.dom4j.io.SAXReader; @@ -15,6 +14,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.stream.Collectors; /** *
@@ -50,8 +50,8 @@ public static Map xml2Map(String xmlString) {
 
   private static Object element2MapOrString(Element element) {
 
-    final List content = element.content();
-    final Set names = names(content);
+    final List nodes = element.content();
+    final List names = names(nodes);
 
     // 判断节点下有无非文本节点(非Text和CDATA),如无,直接取Text文本内容
     if (names.size() < 1) {
@@ -59,10 +59,11 @@ private static Object element2MapOrString(Element element) {
     }
 
     Map result = Maps.newHashMap();
-    if (names.size() == 1) {
+    Set distinctNames = Sets.newHashSet(names);
+    if (distinctNames.size() == 1) {
       // 说明是个列表,各个子对象是相同的name
       List list = Lists.newArrayList();
-      for (Node node : content) {
+      for (Node node : nodes) {
         if (node instanceof DefaultText) {
           continue;
         }
@@ -73,8 +74,8 @@ private static Object element2MapOrString(Element element) {
       }
 
       result.put(names.iterator().next(), list);
-    } else {
-      for (Node node : content) {
+    } else if (distinctNames.size() == names.size()) {
+      for (Node node : nodes) {
         if (node instanceof DefaultText) {
           continue;
         }
@@ -83,13 +84,38 @@ private static Object element2MapOrString(Element element) {
           result.put(node.getName(), element2MapOrString((Element) node));
         }
       }
+    } else {
+      // 说明有重复name,但不是全部都相同
+      Map namesCountMap = names.stream().collect(Collectors.groupingBy(a -> a, Collectors.counting()));
+      for (Node node : nodes) {
+        if (node instanceof DefaultText) {
+          continue;
+        }
+
+        if (node instanceof Element) {
+          String nodeName = node.getName();
+          if (namesCountMap.get(nodeName) == 1) {
+            result.put(nodeName, element2MapOrString((Element) node));
+          } else {
+            List values;
+            if (result.containsKey(nodeName)) {
+              values = (List) result.get(nodeName);
+            } else {
+              values = Lists.newArrayList();
+              result.put(nodeName, values);
+            }
+
+            values.add(element2MapOrString((Element) node));
+          }
+        }
+      }
     }
 
     return result;
   }
 
-  private static Set names(List nodes) {
-    Set names = Sets.newHashSet();
+  private static List names(List nodes) {
+    List names = Lists.newArrayList();
     for (Node node : nodes) {
       // 如果节点类型是Text或CDATA跳过
       if (node instanceof DefaultText || node instanceof CDATA) {
diff --git a/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/XmlUtilsTest.java b/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/XmlUtilsTest.java
index 7b6bb536f4..ff34475ef2 100644
--- a/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/XmlUtilsTest.java
+++ b/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/XmlUtilsTest.java
@@ -63,27 +63,54 @@ public void testXml2Map() {
     assertThat(map).isNotNull();
     final Map copyrightCheckResult = (Map) map.get("CopyrightCheckResult");
     List> resultList = (List>) ((Map) copyrightCheckResult.get("ResultList")).get("item");
-    assertThat(copyrightCheckResult).isNotNull();
 
-    assertThat(copyrightCheckResult.get("Count")).isEqualTo("2");
-    assertThat(copyrightCheckResult.get("CheckState")).isEqualTo("2");
+    assertThat(copyrightCheckResult)
+      .isNotNull()
+      .containsEntry("Count", "2")
+      .containsEntry("CheckState", "2");
 
-    assertThat(resultList.get(0).get("ArticleIdx")).isEqualTo("1");
-    assertThat(resultList.get(0).get("UserDeclareState")).isEqualTo("0");
-    assertThat(resultList.get(0).get("AuditState")).isEqualTo("2");
-    assertThat(resultList.get(0).get("OriginalArticleUrl")).isEqualTo("Url_1");
-    assertThat(resultList.get(0).get("OriginalArticleType")).isEqualTo("1");
-    assertThat(resultList.get(0).get("CanReprint")).isEqualTo("1");
-    assertThat(resultList.get(0).get("NeedReplaceContent")).isEqualTo("1");
-    assertThat(resultList.get(0).get("NeedShowReprintSource")).isEqualTo("1");
+    assertThat(resultList.get(0)).containsEntry("ArticleIdx", "1")
+      .containsEntry("UserDeclareState", "0")
+      .containsEntry("AuditState", "2")
+      .containsEntry("OriginalArticleUrl", "Url_1")
+      .containsEntry("OriginalArticleType", "1")
+      .containsEntry("CanReprint", "1")
+      .containsEntry("NeedReplaceContent", "1")
+      .containsEntry("NeedShowReprintSource", "1");
 
-    assertThat(resultList.get(1).get("ArticleIdx")).isEqualTo("2");
-    assertThat(resultList.get(1).get("UserDeclareState")).isEqualTo("0");
-    assertThat(resultList.get(1).get("AuditState")).isEqualTo("2");
-    assertThat(resultList.get(1).get("OriginalArticleUrl")).isEqualTo("Url_2");
-    assertThat(resultList.get(1).get("OriginalArticleType")).isEqualTo("1");
-    assertThat(resultList.get(1).get("CanReprint")).isEqualTo("1");
-    assertThat(resultList.get(1).get("NeedReplaceContent")).isEqualTo("1");
-    assertThat(resultList.get(1).get("NeedShowReprintSource")).isEqualTo("1");
+    assertThat(resultList.get(1)).containsEntry("ArticleIdx", "2")
+      .containsEntry("UserDeclareState", "0")
+      .containsEntry("AuditState", "2")
+      .containsEntry("OriginalArticleUrl", "Url_2")
+      .containsEntry("OriginalArticleType", "1")
+      .containsEntry("CanReprint", "1")
+      .containsEntry("NeedReplaceContent", "1")
+      .containsEntry("NeedShowReprintSource", "1");
+  }
+
+  @Test
+  public void testXml2Map_another() {
+    String xml = "   1481013459    2247503051 0   1  1    2     ";
+
+    final Map map = XmlUtils.xml2Map(xml);
+    assertThat(map).isNotNull()
+      .containsEntry("ToUserName", "gh_4d00ed8d6399")
+      .containsEntry("FromUserName", "oV5CrjpxgaGXNHIQigzNlgLTnwic")
+      .containsEntry("CreateTime", "1481013459")
+      .containsEntry("MsgType", "event");
+
+    Map publishEventInfo = (Map) map.get("PublishEventInfo");
+    assertThat(publishEventInfo).containsEntry("publish_id", "2247503051")
+      .containsEntry("publish_status", "0")
+      .containsEntry("article_id", "b5O2OUs25HBxRceL7hfReg-U9QGeq9zQjiDvy WP4Hq4");
+
+    Map articleDetail = (Map) publishEventInfo.get("article_detail");
+    assertThat(articleDetail).containsEntry("count", "1");
+    List< Map> item = (List>) articleDetail.get("item");
+    assertThat(item.get(0)).containsEntry("idx", "1")
+      .containsEntry("article_url", "ARTICLE_URL");
+
+    assertThat(item.get(1)).containsEntry("idx", "2")
+      .containsEntry("article_url", "ARTICLE_URL_2");
   }
 }

From bbb5269bc2ec14b66fc07eced44c3f7cc64a167c Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 6 Mar 2022 23:11:18 +0800
Subject: [PATCH 148/622] =?UTF-8?q?:art:=20#2534=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?=
 =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E=E9=83=A8?=
 =?UTF-8?q?=E5=88=86=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/bean/code/WxMaCategory.java    | 20 ++--
 .../bean/code/WxMaCodeSubmitAuditRequest.java | 87 ++++++++++++++++++
 .../code/WxMaCodeSubmitAuditRequestTest.java  | 91 ++++++++++++++++---
 3 files changed, 178 insertions(+), 20 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCategory.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCategory.java
index 5e176cfa61..2311eba478 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCategory.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCategory.java
@@ -5,6 +5,7 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
 
 import java.io.Serializable;
 
@@ -18,8 +19,19 @@
 @Builder
 @NoArgsConstructor
 @AllArgsConstructor
+@Accessors(chain = true)
 public class WxMaCategory implements Serializable {
   private static final long serialVersionUID = -7663757440028175135L;
+
+  /**
+   * 小程序的页面,可通过“获取小程序的第三方提交代码的页面配置”接口获得
+   */
+  private String address;
+  /**
+   * 小程序的标签,多个标签用空格分隔,标签不能多于10个,标签长度不超过20
+   */
+  private String tag;
+
   /**
    * 一级类目名称
    */
@@ -51,14 +63,6 @@ public class WxMaCategory implements Serializable {
   @SerializedName("third_id")
   private Long thirdId;
 
-  /**
-   * 小程序的页面,可通过“获取小程序的第三方提交代码的页面配置”接口获得
-   */
-  private String address;
-  /**
-   * 小程序的标签,多个标签用空格分隔,标签不能多于10个,标签长度不超过20
-   */
-  private String tag;
   /**
    * 小程序页面的标题,标题长度不超过32
    */
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequest.java
index ff245c8e6a..bc944353df 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequest.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequest.java
@@ -6,6 +6,7 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
 
 import java.io.Serializable;
 import java.util.List;
@@ -20,15 +21,101 @@
 @Builder
 @NoArgsConstructor
 @AllArgsConstructor
+@Accessors(chain = true)
 public class WxMaCodeSubmitAuditRequest implements Serializable {
   private static final long serialVersionUID = 8854979405505241314L;
+
   /**
    * 提交审核项的一个列表(至少填写1项,至多填写5项)
    */
   @SerializedName("item_list")
   private List itemList;
 
+  /**
+   * feedback_info	String	否	反馈内容,至多 200 字
+   */
+  @SerializedName("feedback_info")
+  private String feedbackInfo;
+
+  /**
+   * feedback_stuff	String	否	用 | 分割的 media_id 列表,至多 5 张图片, 可以通过新增临时素材接口上传而得到
+   */
+  @SerializedName("feedback_stuff")
+  private String feedbackStuff;
+
+  /**
+   * preview_info	Object	否	预览信息(小程序页面截图和操作录屏)
+   */
+  @SerializedName("preview_info")
+  private PreviewInfo previewInfo;
+
+  /**
+   * version_desc	String	否	小程序版本说明和功能解释
+   */
+  @SerializedName("version_desc")
+  private String versionDesc;
+
+  /**
+   * ugc_declare	Object	否	用户生成内容场景(UGC)信息安全声明
+   */
+  @SerializedName("ugc_declare")
+  private UgcDeclare ugcDeclare;
+
   public String toJson() {
     return WxMaGsonBuilder.create().toJson(this);
   }
+
+  @Data
+  @Accessors(chain = true)
+  public static class PreviewInfo implements Serializable {
+    private static final long serialVersionUID = -3391652096859063951L;
+
+    /**
+     * video_id_list	String Array	否	录屏mediaid列表,可以通过提审素材上传接口获得
+     */
+    @SerializedName("video_id_list")
+    private List videoIdList;
+
+    /**
+     * pic_id_list	String Array	否	截屏mediaid列表,可以通过提审素材上传接口获得
+     */
+    @SerializedName("pic_id_list")
+    private List picIdList;
+  }
+
+  @Data
+  @Accessors(chain = true)
+  public static class UgcDeclare implements Serializable {
+    private static final long serialVersionUID = 201470564426848261L;
+
+    /**
+     * scene	Number Array	否	UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段
+     */
+    @SerializedName("scene")
+    private Integer[] scene;
+
+    /**
+     * other_scene_desc	String	否	当scene选其他时的说明,不超时256字
+     */
+    @SerializedName("other_scene_desc")
+    private String otherSceneDesc;
+
+    /**
+     * method	Number Array	否	内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关
+     */
+    @SerializedName("method")
+    private Integer[] method;
+
+    /**
+     * has_audit_team	Number	否	是否有审核团队, 0.无,1.有,默认0
+     */
+    @SerializedName("has_audit_team")
+    private Integer hasAuditTeam;
+
+    /**
+     * audit_desc	String	否	说明当前对UGC内容的审核机制,不超过256字
+     */
+    @SerializedName("audit_desc")
+    private String auditDesc;
+  }
 }
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequestTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequestTest.java
index 1f962087dc..4567f4275d 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequestTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeSubmitAuditRequestTest.java
@@ -1,9 +1,12 @@
 package cn.binarywang.wx.miniapp.bean.code;
 
+import me.chanjar.weixin.common.util.json.GsonParser;
 import org.testng.annotations.Test;
 
 import java.util.Arrays;
 
+import static org.assertj.core.api.Assertions.assertThat;
+
 /**
  * @author Charming
  * @since 2018-04-26 19:55
@@ -11,20 +14,84 @@
 public class WxMaCodeSubmitAuditRequestTest {
   @Test
   public void testToJson() {
-    WxMaCodeSubmitAuditRequest request = WxMaCodeSubmitAuditRequest
-      .builder()
+    WxMaCodeSubmitAuditRequest request = WxMaCodeSubmitAuditRequest.builder()
       .itemList(Arrays.asList(
-        WxMaCategory
-          .builder()
-          .address("pages/logs/logs")
-          .tag("工具 效率")
-          .firstClass("工具")
-          .firstId(287L)
-          .secondClass("效率")
-          .secondId(616L)
+        WxMaCategory.builder()
+          .address("index")
+          .tag("学习 生活")
+          .firstClass("文娱")
+          .firstId(1L)
+          .secondClass("资讯")
+          .secondId(2L)
+          .title("首页")
+          .build(),
+        WxMaCategory.builder()
+          .address("page/logs/logs")
+          .tag("学习 工作")
+          .firstClass("教育")
+          .firstId(3L)
+          .secondClass("学历教育")
+          .secondId(4L)
+          .thirdClass("高等")
+          .thirdId(5L)
           .title("日志")
           .build()
-      )).build();
-    System.out.println(request.toJson());
+      ))
+      .feedbackInfo("blablabla")
+      .feedbackStuff("xx|yy|zz")
+      .previewInfo(new WxMaCodeSubmitAuditRequest.PreviewInfo().setVideoIdList(Arrays.asList("xxxx"))
+        .setPicIdList(Arrays.asList("xxxx", "yyyy", "zzzz")))
+      .versionDesc("blablabla")
+      .ugcDeclare(new WxMaCodeSubmitAuditRequest.UgcDeclare()
+        .setAuditDesc("blablabla")
+        .setHasAuditTeam(1)
+        .setMethod(new Integer[]{1})
+        .setScene(new Integer[]{1, 2})
+      ).build();
+
+    String expectedJson = "{\n" +
+      "\t\"item_list\": [\n" +
+      "\t{\n" +
+      "\t\t\"address\":\"index\",\n" +
+      "\t\t\"tag\":\"学习 生活\",\n" +
+      "\t\t\"first_class\": \"文娱\",\n" +
+      "\t\t\"second_class\": \"资讯\",\n" +
+      "\t\t\"first_id\":1,\n" +
+      "\t\t\"second_id\":2,\n" +
+      "\t\t\"title\": \"首页\"\n" +
+      "\t},\n" +
+      "\t{\n" +
+      "\t\t\"address\":\"page/logs/logs\",\n" +
+      "\t\t\"tag\":\"学习 工作\",\n" +
+      "\t\t\"first_class\": \"教育\",\n" +
+      "\t\t\"second_class\": \"学历教育\",\n" +
+      "\t\t\"third_class\": \"高等\",\n" +
+      "\t\t\"first_id\":3,\n" +
+      "\t\t\"second_id\":4,\n" +
+      "\t\t\"third_id\":5,\n" +
+      "\t\t\"title\": \"日志\"\n" +
+      "\t}\n" +
+      "\t],\n" +
+      "\t\"feedback_info\": \"blablabla\",\n" +
+      "    \"feedback_stuff\": \"xx|yy|zz\",\n" +
+      "    \"preview_info\" : {\n" +
+      "        \"video_id_list\": [\"xxxx\"],\n" +
+      "        \"pic_id_list\": [\"xxxx\", \"yyyy\", \"zzzz\" ]\n" +
+      "    },\n" +
+      "    \"version_desc\":\"blablabla\",\n" +
+      "    \"ugc_declare\": {\n" +
+      "        \"scene\": [\n" +
+      "            1,\n" +
+      "            2\n" +
+      "        ],\n" +
+      "        \"method\": [\n" +
+      "            1\n" +
+      "        ],\n" +
+      "        \"has_audit_team\": 1,\n" +
+      "        \"audit_desc\": \"blablabla\"\n" +
+      "    }\n" +
+      "}\n" +
+      "";
+    assertThat(request.toJson().replace("\n", "")).isEqualTo(GsonParser.parse(expectedJson).toString());
   }
 }

From 0919205931449b380fc5312963e5f5fa05ca2c08 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 7 Mar 2022 09:25:15 +0800
Subject: [PATCH 149/622] =?UTF-8?q?:art:=20=E4=BF=AE=E6=94=B9XML=E6=B6=88?=
 =?UTF-8?q?=E6=81=AF=E8=A7=A3=E6=9E=90=E7=B1=BB=E9=87=8C=E7=9A=84agentId?=
 =?UTF-8?q?=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B=EF=BC=8C?=
 =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=BA=E7=A9=BA=E5=80=BC=E6=97=B6=E5=AF=BC?=
 =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=BC=82=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
index 4408d3cb99..40d72c3a54 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java
@@ -16,6 +16,7 @@
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 import me.chanjar.weixin.cp.util.xml.XStreamTransformer;
 import org.apache.commons.io.IOUtils;
+import org.apache.commons.lang3.StringUtils;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -51,7 +52,7 @@ public class WxCpXmlMessage implements Serializable {
   ///////////////////////
 
   @XStreamAlias("AgentID")
-  private Integer agentId;
+  private String agentId;
 
   @XStreamAlias("ToUserName")
   @XStreamConverter(value = XStreamCDataConverter.class)
@@ -476,7 +477,7 @@ protected static WxCpXmlMessage fromXml(String xml) {
     return xmlMessage;
   }
 
-  public static WxCpXmlMessage fromXml(String xml, Integer agentId) {
+  public static WxCpXmlMessage fromXml(String xml, String agentId) {
     //修改微信变态的消息内容格式,方便解析
     xml = xml.replace("", "");
     final WxCpXmlMessage xmlMessage = fromXml(xml);
@@ -497,7 +498,7 @@ public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigSto
     WxCpXmlMessage wxCpXmlMessage = fromXml(encryptedXml);
     String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
     log.debug("解密后的原始xml消息内容:{}", plainText);
-    if (null != wxCpXmlMessage.getAgentId()) {
+    if (StringUtils.isNotEmpty(wxCpXmlMessage.getAgentId())) {
       return fromXml(plainText, wxCpXmlMessage.getAgentId());
     } else {
       return fromXml(plainText);

From eb8942c871c6aa0166097b329cb0a09b8e075249 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Wed, 9 Mar 2022 11:44:26 +0800
Subject: [PATCH 150/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
 =?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/util/json/WxCpUserGsonAdapter.java  | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java
index d88a22cb18..f75c0ef1e9 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java
@@ -98,9 +98,9 @@ public WxCpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC
     if (GsonHelper.isNotNull(o.get(EXTERNAL_PROFILE))) {
       user.setExternalCorpName(GsonHelper.getString(o.getAsJsonObject().get(EXTERNAL_PROFILE).getAsJsonObject(), EXTERNAL_CORP_NAME));
       JsonElement jsonElement = o.get(EXTERNAL_PROFILE).getAsJsonObject().get(WECHAT_CHANNELS);
-      if(jsonElement !=null){
+      if (jsonElement != null) {
         JsonObject asJsonObject = jsonElement.getAsJsonObject();
-        user.setWechatChannels(WechatChannels.builder().nickname(GsonHelper.getString(asJsonObject,"nickname")).status(GsonHelper.getInteger(asJsonObject,"status")).build());
+        user.setWechatChannels(WechatChannels.builder().nickname(GsonHelper.getString(asJsonObject, "nickname")).status(GsonHelper.getInteger(asJsonObject, "status")).build());
       }
       this.buildExternalAttrs(o, user);
     }
@@ -140,7 +140,12 @@ private void buildExtraAttrs(JsonObject o, WxCpUser user) {
   }
 
   private void buildExternalAttrs(JsonObject o, WxCpUser user) {
-    JsonArray attrJsonElements = o.get(EXTERNAL_PROFILE).getAsJsonObject().get(EXTERNAL_ATTR).getAsJsonArray();
+    JsonElement jsonElement = o.get(EXTERNAL_PROFILE).getAsJsonObject().get(EXTERNAL_ATTR);
+    if (jsonElement == null) {
+      return;
+    }
+
+    JsonArray attrJsonElements = jsonElement.getAsJsonArray();
     for (JsonElement element : attrJsonElements) {
       final Integer type = GsonHelper.getInteger(element.getAsJsonObject(), "type");
       final String name = GsonHelper.getString(element.getAsJsonObject(), "name");
@@ -328,8 +333,8 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon
       attrsJson.addProperty(EXTERNAL_CORP_NAME, user.getExternalCorpName());
     }
 
-    if(user.getWechatChannels() != null){
-      attrsJson.add(WECHAT_CHANNELS,GsonHelper.buildJsonObject("nickname", user.getWechatChannels().getNickname(), "status", user.getWechatChannels().getStatus()));
+    if (user.getWechatChannels() != null) {
+      attrsJson.add(WECHAT_CHANNELS, GsonHelper.buildJsonObject("nickname", user.getWechatChannels().getNickname(), "status", user.getWechatChannels().getStatus()));
     }
 
     if (!user.getExternalAttrs().isEmpty()) {

From 13c80294a2bfa6e823a209b8d4f7fa8ca48adca7 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Thu, 10 Mar 2022 23:59:24 +0800
Subject: [PATCH 151/622] =?UTF-8?q?:art:=20=E3=80=90=E5=B0=8F=E7=A8=8B?=
 =?UTF-8?q?=E5=BA=8F=E3=80=91=E5=9B=9E=E8=B0=83=E6=B6=88=E6=81=AF=E8=A7=A3?=
 =?UTF-8?q?=E6=9E=90=E7=B1=BBWxMaMessage=E5=A2=9E=E5=8A=A0allFieldsMap?=
 =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E4=BB=A5=E5=AD=98=E5=82=A8=E6=89=80?=
 =?UTF-8?q?=E6=9C=89xml=E6=B6=88=E6=81=AF=E6=8A=A5=E6=96=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../chanjar/weixin/common/util/XmlUtils.java  | 13 ++-
 .../wx/miniapp/bean/WxMaMessage.java          | 12 ++-
 .../wx/miniapp/bean/WxMaMessageTest.java      | 83 +++++++++++++++++--
 3 files changed, 97 insertions(+), 11 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java
index 7f7494431b..facf564e32 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/XmlUtils.java
@@ -39,7 +39,18 @@ public static Map xml2Map(String xmlString) {
       Element root = doc.getRootElement();
       List elements = root.elements();
       for (Element element : elements) {
-        map.put(element.getName(), element2MapOrString(element));
+        String elementName = element.getName();
+        if (map.containsKey(elementName)) {
+          if (map.get(elementName) instanceof List) {
+            ((List) map.get(elementName)).add(element2MapOrString(element));
+          } else {
+            List value = Lists.newArrayList(map.get(elementName));
+            value.add(element2MapOrString(element));
+            map.put(elementName, value);
+          }
+        } else {
+          map.put(elementName, element2MapOrString(element));
+        }
       }
     } catch (DocumentException | SAXException e) {
       throw new WxRuntimeException(e);
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
index 1915e4e8bd..aa9fd868d5 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
@@ -9,6 +9,7 @@
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 import lombok.Data;
 import me.chanjar.weixin.common.error.WxRuntimeException;
+import me.chanjar.weixin.common.util.XmlUtils;
 import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
 import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang3.StringUtils;
@@ -17,6 +18,7 @@
 import java.io.InputStream;
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
+import java.util.Map;
 
 /**
  * @author Binary Wang
@@ -26,6 +28,11 @@
 public class WxMaMessage implements Serializable {
   private static final long serialVersionUID = -3586245291677274914L;
 
+  /**
+   * 使用dom4j解析的存放所有xml属性和值的map.
+   */
+  private Map allFieldsMap;
+
   @SerializedName("Encrypt")
   @XStreamAlias("Encrypt")
   @XStreamConverter(value = XStreamCDataConverter.class)
@@ -206,9 +213,12 @@ public class WxMaMessage implements Serializable {
   private WxMaSubscribeMsgEvent.WxMaSubscribeMsgEventJson uselessMsg;
 
   public static WxMaMessage fromXml(String xml) {
-    return XStreamTransformer.fromXml(WxMaMessage.class, xml);
+    WxMaMessage message = XStreamTransformer.fromXml(WxMaMessage.class, xml);
+    message.setAllFieldsMap(XmlUtils.xml2Map(xml));
+    return message;
   }
 
+  @Deprecated
   public static WxMaMessage fromXml(InputStream is) {
     return XStreamTransformer.fromXml(WxMaMessage.class, is);
   }
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java
index 1269734842..098da74e54 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java
@@ -3,6 +3,10 @@
 import me.chanjar.weixin.common.api.WxConsts;
 import org.testng.annotations.Test;
 
+import java.util.List;
+import java.util.Map;
+
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.assertNotNull;
 
@@ -33,7 +37,7 @@ public void testFromXml() {
     WxMaMessage wxMessage = WxMaMessage.fromXml(xml);
     assertEquals(wxMessage.getToUser(), "toUser");
     assertEquals(wxMessage.getFromUser(), "fromUser");
-    assertEquals(wxMessage.getCreateTime(),new Integer(1482048670));
+    assertEquals(wxMessage.getCreateTime(), new Integer(1482048670));
     assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.TEXT);
     assertEquals(wxMessage.getContent(), "this is a test");
     assertEquals(wxMessage.getMsgId(), new Long(1234567890123456L));
@@ -103,13 +107,13 @@ public void testSubscribeMsgPopupEvent() {
   private void checkSubscribeMsgPopupEvent(WxMaMessage wxMessage) {
     assertEquals(wxMessage.getToUser(), "gh_123456789abc");
     assertEquals(wxMessage.getFromUser(), "otFpruAK8D-E6EfStSYonYSBZ8_4");
-    assertEquals(wxMessage.getCreateTime(),new Integer(1610969440));
+    assertEquals(wxMessage.getCreateTime(), new Integer(1610969440));
     assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.EVENT);
     assertEquals(wxMessage.getEvent(), "subscribe_msg_popup_event");
     assertEquals(wxMessage.getSubscribeMsgPopupEvent().getList().size(), 1);
     WxMaSubscribeMsgEvent.PopupEvent event = wxMessage.getSubscribeMsgPopupEvent().getList().get(0);
     assertEquals(event.getTemplateId(), "VRR0UEO9VJOLs0MHlU0OilqX6MVFDwH3_3gz3Oc0NIc");
-    assertEquals(event.getSubscribeStatusString(),"accept");
+    assertEquals(event.getSubscribeStatusString(), "accept");
     assertEquals(event.getPopupScene(), "0");
   }
 
@@ -165,13 +169,13 @@ public void testSubscribeMsgChangeEvent() {
   private void checkSubscribeMsgChangeEvent(WxMaMessage wxMessage) {
     assertEquals(wxMessage.getToUser(), "gh_123456789abc");
     assertEquals(wxMessage.getFromUser(), "o7esq5OI1Uej6Xixw1lA2H7XDVbc");
-    assertEquals(wxMessage.getCreateTime(),new Integer(1610968440));
+    assertEquals(wxMessage.getCreateTime(), new Integer(1610968440));
     assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.EVENT);
     assertEquals(wxMessage.getEvent(), "subscribe_msg_change_event");
     assertEquals(wxMessage.getSubscribeMsgChangeEvent().getList().size(), 1);
     WxMaSubscribeMsgEvent.ChangeEvent event = wxMessage.getSubscribeMsgChangeEvent().getList().get(0);
     assertEquals(event.getTemplateId(), "BEwX0BOT3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8");
-    assertEquals(event.getSubscribeStatusString(),"reject");
+    assertEquals(event.getSubscribeStatusString(), "reject");
   }
 
   public void testSubscribeMsgSentEvent() {
@@ -212,18 +216,79 @@ public void testSubscribeMsgSentEvent() {
     wxMessage = WxMaMessage.fromJson(json);
     checkSubscribeMsgSentEvent(wxMessage);
   }
+
   private void checkSubscribeMsgSentEvent(WxMaMessage wxMessage) {
     assertEquals(wxMessage.getToUser(), "gh_123456789abc");
     assertEquals(wxMessage.getFromUser(), "o7esq5PHRGBQYmeNyfG064wEFVpQ");
-    assertEquals(wxMessage.getCreateTime(),new Integer(1620963428));
+    assertEquals(wxMessage.getCreateTime(), new Integer(1620963428));
     assertEquals(wxMessage.getMsgType(), WxConsts.XmlMsgType.EVENT);
     assertEquals(wxMessage.getEvent(), "subscribe_msg_sent_event");
     assertNotNull(wxMessage.getSubscribeMsgSentEvent());
     WxMaSubscribeMsgEvent.SentEvent event = wxMessage.getSubscribeMsgSentEvent().getList();
     assertEquals(event.getTemplateId(), "BEwX0BO-T3MqK3Uc5oTU3CGBqzjpndk2jzUf7VfExd8");
-    assertEquals(event.getMsgId(),"1864323726461255680");
-    assertEquals(event.getErrorCode(),"0");
-    assertEquals(event.getErrorStatus(),"success");
+    assertEquals(event.getMsgId(), "1864323726461255680");
+    assertEquals(event.getErrorCode(), "0");
+    assertEquals(event.getErrorStatus(), "success");
   }
 
+  @Test
+  public void testFromXmlForAllFieldsMap() {
+    String xml = "\n" +
+      "    \n" +
+      "    \n" +
+      "    1642658087\n" +
+      "    \n" +
+      "    \n" +
+      "    \n" +
+      "    \n" +
+      "    16\n" +
+      "    2\n" +
+      "    \n" +
+      "        1642605533\n" +
+      "        300001\n" +
+      "        \n" +
+      "        0\n" +
+      "        0\n" +
+      "    \n" +
+      "    \n" +
+      "        1642605533\n" +
+      "        100001\n" +
+      "        \n" +
+      "        0\n" +
+      "        0\n" +
+      "    \n" +
+      "    \n" +
+      "";
+
+    WxMaMessage wxMessage = WxMaMessage.fromXml(xml);
+    Map allFieldsMap = wxMessage.getAllFieldsMap();
+    assertThat(allFieldsMap).isNotEmpty()
+      .containsEntry("ToUserName", "gh_3953b390c11d")
+      .containsEntry("FromUserName", "ofYMP5JFT4SD7EX1LQv3IWrciBSo")
+      .containsEntry("CreateTime", "1642658087")
+      .containsEntry("MsgType", "event")
+      .containsEntry("Event", "add_express_path")
+      .containsEntry("DeliveryID", "TEST")
+      .containsEntry("WayBillId", "01234567894_waybill_id")
+      .containsEntry("Version", "16")
+      .containsEntry("Count", "2")
+      .containsEntry("OrderId", "01234567894");
+
+    List> actions = (List>) allFieldsMap.get("Actions");
+    assertThat(actions).isNotEmpty().hasSize(2);
+
+    assertThat(actions.get(0))
+      .containsEntry("ActionTime", "1642605533")
+      .containsEntry("ActionType", "300001")
+      .containsEntry("ActionMsg", "揽件阶段-揽件成功")
+      .containsEntry("Lat", "0")
+      .containsEntry("Lng", "0");
+
+    assertThat(actions.get(1))
+      .containsEntry("ActionTime", "1642605533")
+      .containsEntry("ActionType", "100001")
+      .containsEntry("ActionMsg", "揽件阶段-揽件成功")
+      .containsEntry("Lat", "0")
+      .containsEntry("Lng", "0");
+  }
 }

From 4036921f21ae12ae25fc205a955226eeb917b96c Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Fri, 11 Mar 2022 00:07:50 +0800
Subject: [PATCH 152/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.8?=
 =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0c373d1670..092bd86d71 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.2.7.B
+  4.2.8.B
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index 4ea942cf5e..53cf990eff 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index 2f0e9af560..c56388479c 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index e7e6c113a6..e67848ffef 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index 9324590eff..b96bd641d0 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index d0c6d4c8d8..e525e533e8 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index e62ad4911b..9be2dc735c 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index 24b6cd963b..3b95de027e 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index ddf5f714a5..7417d74d07 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index afcbf5ca5d..fc25fecba7 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index 81745ee309..6bb624e413 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index fda859f6d4..c65d63f470 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index 9d5f12336c..0adf9bf611 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index 0156e852bb..8860c5899d 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index 05766b15f8..dca5df40ae 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index 93be808196..62ca46cf9d 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.7.B
+    4.2.8.B
   
 
   weixin-java-qidian

From 94e6d6518b7447ffc0d86b18eac4e0f035584664 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE=E6=9E=97?= 
Date: Tue, 22 Mar 2022 06:32:15 +0000
Subject: [PATCH 153/622] =?UTF-8?q?:new:=20#2562=20=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=B6=88=E8=B4=B9=E8=80=85=E6=8A=95=E8=AF=892.0?=
 =?UTF-8?q?=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../complaint/ComplaintDetailRequest.java     |  36 +++
 .../bean/complaint/ComplaintDetailResult.java | 236 ++++++++++++++++++
 .../complaint/ComplaintNotifyUrlRequest.java  |  36 +++
 .../complaint/ComplaintNotifyUrlResult.java   |  44 ++++
 .../bean/complaint/ComplaintRequest.java      |  77 ++++++
 .../wxpay/bean/complaint/ComplaintResult.java |  58 +++++
 .../wxpay/bean/complaint/CompleteRequest.java |  48 ++++
 .../complaint/NegotiationHistoryRequest.java  |  57 +++++
 .../complaint/NegotiationHistoryResult.java   | 190 ++++++++++++++
 .../wxpay/bean/complaint/ResponseRequest.java |  96 +++++++
 .../bean/notify/ComplaintNotifyResult.java    |  64 +++++
 .../wxpay/service/ComplaintService.java       | 132 ++++++++++
 .../wxpay/service/WxPayService.java           |  37 +++
 .../service/impl/BaseWxPayServiceImpl.java    |  30 +++
 .../service/impl/ComplaintServiceImpl.java    | 106 ++++++++
 .../impl/WxPayServiceApacheHttpImpl.java      |  18 ++
 .../impl/WxPayServiceJoddHttpImpl.java        |  10 +
 .../impl/ComplaintServiceImplTest.java        | 155 ++++++++++++
 18 files changed, 1430 insertions(+)
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/ComplaintNotifyResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java
 create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java
new file mode 100644
index 0000000000..2e8f23db16
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java
@@ -0,0 +1,36 @@
+package com.github.binarywang.wxpay.bean.complaint;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 微信消费者投诉2.0
+ * 查询投诉单详情请求实体
+ *
+ * @author jmdhappy
+ * @date 2022-3-19
+ */
+@Data
+@Builder(builderMethodName = "newBuilder")
+@NoArgsConstructor
+@AllArgsConstructor
+public class ComplaintDetailRequest implements Serializable {
+
+  private static final long serialVersionUID = 3244929701614280801L;
+
+  /**
+   * 
+   * 字段名:投诉单号
+   * 是否必填:是
+   * 描述:投诉单对应的投诉单号
+   * 
+ */ + @SerializedName("complaint_id") + private String complaintId; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java new file mode 100644 index 0000000000..f62c9c1ddb --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java @@ -0,0 +1,236 @@ +package com.github.binarywang.wxpay.bean.complaint; + + +import com.github.binarywang.wxpay.v3.SpecEncrypt; +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; +import java.util.List; + +/** + * 微信消费者投诉2.0 + * 查询投诉单列表返回的实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +public class ComplaintDetailResult implements Serializable { + + private static final long serialVersionUID = -6201692411535927503L; + + /** + *
+   * 字段名:投诉单号
+   * 是否必填:是
+   * 描述:投诉单对应的投诉单号
+   * 
+ */ + @SerializedName("complaint_id") + private String complaintId; + + /** + *
+   * 字段名:投诉时间
+   * 是否必填:是
+   * 描述:投诉时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,
+   * T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
+   * 例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName("complaint_time") + private String complaintTime; + + /** + *
+   * 字段名:投诉详情
+   * 是否必填:是
+   * 投诉的具体描述
+   * 
+ */ + @SerializedName("complaint_detail") + private String complaintDetail; + + /** + *
+   * 字段名:被诉商户号
+   * 是否必填:是
+   * 投诉单对应的被诉商户号。
+   * 
+ */ + @SerializedName("complainted_mchid") + private String complaintedMchid; + + /** + *
+   * 字段名:投诉单状态
+   * 是否必填:是
+   * 标识当前投诉单所处的处理阶段,具体状态如下所示:
+   * PENDING:待处理
+   * PROCESSING:处理中
+   * PROCESSED:已处理完成
+   * 
+ */ + @SerializedName("complaint_state") + private String complaintState; + + /** + *
+   * 字段名:投诉人联系方式
+   * 是否必填:否
+   * 投诉人联系方式。该字段已做加密处理,具体解密方法详见敏感信息加密说明。
+   * 
+ */ + @SerializedName("payer_phone") + @SpecEncrypt + private String payerPhone; + + /** + *
+   * 字段名:投诉人openid
+   * 是否必填:是
+   * 投诉人在商户appid下的唯一标识
+   * 
+ */ + @SerializedName("payer_openid") + private String payerOpenid; + + + /** + *
+   * 字段名:投诉资料列表
+   * 是否必填:是
+   * 用户上传的投诉相关资料,包括图片凭证等
+   * 
+ */ + @SerializedName("complaint_media_list") + private List complaintMediaList; + + @Data + public static class ComplaintMedia implements Serializable { + private static final long serialVersionUID = 4240983048700956803L; + + /** + *
+     * 字段名:媒体文件业务类型
+     * 是否必填:是
+     * 描述:
+     * 媒体文件对应的业务类型
+     * USER_COMPLAINT_IMAGE:用户投诉图片,用户提交投诉时上传的图片凭证
+     * OPERATION_IMAGE:操作流水图片,用户、商户、微信支付客服在协商解决投诉时,上传的图片凭证
+     * 注:用户上传的图片凭证会以白名单的形式提供给商户,若希望查看用户图片,联系微信支付客服
+     * 示例值:USER_COMPLAINT_IMAGE
+     * 
+ */ + @SerializedName("media_type") + private String mediaType; + + /** + *
+     * 字段名:媒体文件请求url
+     * 是否必填:是
+     * 描述:
+     * 微信返回的媒体文件请求url
+     * 
+ */ + @SerializedName("media_url") + private String mediaUrl; + + } + + /** + *
+   * 字段名:投诉单关联订单信息
+   * 是否必填:是
+   * 投诉单关联订单信息
+   * 注:投诉单和订单目前是一对一关系,array是预留未来一对多的扩展
+   * 
+ */ + @SerializedName("complaint_order_info") + private List complaintOrderInfo; + + @Data + public static class ComplaintOrder implements Serializable { + private static final long serialVersionUID = 4240983048700956804L; + + /** + *
+     * 字段名:微信订单号
+     * 是否必填:是
+     * 描述:
+     * 投诉单关联的微信订单号
+     * 
+ */ + @SerializedName("transaction_id") + private String transactionId; + + /** + *
+     * 字段名:商户订单号
+     * 是否必填:是
+     * 描述:
+     * 投诉单关联的商户订单号
+     * 
+ */ + @SerializedName("out_trade_no") + private String outTradeNo; + + /** + *
+     * 字段名:订单金额
+     * 是否必填:是
+     * 描述:
+     * 订单金额,单位(分)
+     * 
+ */ + @SerializedName("amount") + private Integer amount; + + } + + /** + *
+   * 字段名:投诉单是否已全额退款
+   * 是否必填:是
+   * 描述:
+   * 投诉单下所有订单是否已全部全额退款
+   * 
+ */ + @SerializedName("complaint_full_refunded") + private Boolean complaintFullRefunded; + + /** + *
+   * 字段名:是否有待回复的用户留言
+   * 是否必填:是
+   * 描述:
+   * 投诉单是否有待回复的用户留言
+   * 
+ */ + @SerializedName("incoming_user_response") + private Boolean incomingUserResponse; + + /** + *
+   * 字段名:问题描述
+   * 是否必填:是
+   * 描述:
+   * 用户发起投诉前选择的faq标题(2021年7月15日之后的投诉单均包含此信息)
+   * 
+ */ + @SerializedName("problem_description") + private String problemDescription; + + /** + *
+   * 字段名:用户投诉次数
+   * 是否必填:是
+   * 描述:
+   * 用户投诉次数。用户首次发起投诉记为1次,用户每有一次继续投诉就加1
+   * 
+ */ + @SerializedName("user_complaint_times") + private Integer userComplaintTimes; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java new file mode 100644 index 0000000000..28a51bd02a --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java @@ -0,0 +1,36 @@ +package com.github.binarywang.wxpay.bean.complaint; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 微信消费者投诉2.0 + * 投诉通知请求实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class ComplaintNotifyUrlRequest implements Serializable { + + private static final long serialVersionUID = -1L; + + /** + *
+   * 字段名:通知地址
+   * 是否必填:是
+   * 描述:通知地址,仅支持https。
+   * 
+ */ + @SerializedName("url") + private String url; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java new file mode 100644 index 0000000000..5254201e69 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java @@ -0,0 +1,44 @@ +package com.github.binarywang.wxpay.bean.complaint; + + +import com.github.binarywang.wxpay.bean.media.MarketingImageUploadResult; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 微信消费者投诉2.0 + * 投诉通知地址返回的实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +public class ComplaintNotifyUrlResult implements Serializable { + + private static final long serialVersionUID = -6201692411535927502L; + + /** + *
+   * 字段名:商户号
+   * 是否必填:是
+   * 描述:返回创建回调地址的商户号,由微信支付生成并下发。
+   * 
+ */ + @SerializedName("mchid") + private String mchid; + + /** + *
+   * 字段名:通知地址
+   * 是否必填:是
+   * 描述:通知地址,仅支持https。
+   * 
+ */ + @SerializedName("url") + private String url; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java new file mode 100644 index 0000000000..b53a1b590a --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java @@ -0,0 +1,77 @@ +package com.github.binarywang.wxpay.bean.complaint; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 微信消费者投诉2.0 + * 查询投诉单列表请求实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class ComplaintRequest implements Serializable { + + private static final long serialVersionUID = 3244929701614280800L; + + /** + *
+   * 字段名:分页大小
+   * 是否必填:否
+   * 描述:设置该次请求返回的最大投诉条数,范围【1,50】,商户自定义字段,不传默认为10。
+   * 注:如遇到提示“当前查询结果数据量过大”,是回包触发微信支付下行数据包大小限制,请缩小入参limit并重试。
+   * 
+ */ + @SerializedName("limit") + private Integer limit = 10; + + /** + *
+   * 字段名:分页开始位置
+   * 是否必填:否
+   * 描述:该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回,不传默认为0 。
+   * 
+ */ + @SerializedName("offset") + private Integer offset = 0; + + /** + *
+   * 字段名:开始日期
+   * 是否必填:是
+   * 描述:投诉发生的开始日期,格式为yyyy-MM-DD。注意,查询日期跨度不超过30天,当前查询为实时查询
+   * 
+ */ + @SerializedName("begin_date") + private String beginDate; + + /** + *
+   * 字段名:结束日期
+   * 是否必填:是
+   * 描述:投诉发生的结束日期,格式为yyyy-MM-DD。注意,查询日期跨度不超过30天,当前查询为实时查询
+   * 
+ */ + @SerializedName("end_date") + private String endDate; + + /** + *
+   * 字段名:被诉商户号
+   * 是否必填:否
+   * 描述:投诉单对应的被诉商户号。
+   * 
+ */ + @SerializedName("complainted_mchid") + private String complaintedMchid; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java new file mode 100644 index 0000000000..1ee346d53e --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java @@ -0,0 +1,58 @@ +package com.github.binarywang.wxpay.bean.complaint; + + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; +import java.util.List; + +/** + * 微信消费者投诉2.0 + * 查询投诉单列表返回的实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +public class ComplaintResult implements Serializable { + + private static final long serialVersionUID = -6201692411535927502L; + + /** + *
+   * 字段名:分页大小
+   * 是否必填:是
+   * 描述:设置该次请求返回的最大投诉条数,范围【1,50】
+   * 
+ */ + @SerializedName("limit") + private Integer limit; + + /** + *
+   * 字段名:分页开始位置
+   * 是否必填:是
+   * 描述:该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回。
+   * 
+ */ + @SerializedName("offset") + private Integer offset; + + /** + *
+   * 字段名:投诉总条数
+   * 是否必填:否
+   * 描述:投诉总条数,当offset=0时返回
+   * 
+ */ + @SerializedName("total_count") + private Integer totalCount; + + /** + * 用户投诉信息详情 + */ + @SerializedName("data") + private List data; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java new file mode 100644 index 0000000000..a4d066df93 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java @@ -0,0 +1,48 @@ +package com.github.binarywang.wxpay.bean.complaint; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 微信消费者投诉2.0 + * 反馈处理完成请求实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class CompleteRequest implements Serializable { + + private static final long serialVersionUID = 3243229701614220801L; + + /** + *
+   * 字段名:投诉单号
+   * 是否必填:是
+   * 描述:投诉单对应的投诉单号
+   * 
+ */ + @SerializedName("complaint_id") + @Expose + private String complaintId; + + /** + *
+   * 字段名:被诉商户号
+   * 是否必填:是
+   * 描述:投诉单对应的被诉商户号
+   * 
+ */ + @SerializedName("complainted_mchid") + private String complaintedMchid; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java new file mode 100644 index 0000000000..3362e4a92f --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java @@ -0,0 +1,57 @@ +package com.github.binarywang.wxpay.bean.complaint; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 微信消费者投诉2.0 + * 查询投诉协商历史请求实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class NegotiationHistoryRequest implements Serializable { + + private static final long serialVersionUID = 3244929701614280806L; + + /** + *
+   * 字段名:投诉单号
+   * 是否必填:是
+   * 描述:投诉单对应的投诉单号
+   * 
+ */ + @SerializedName("complaint_id") + private String complaintId; + + /** + *
+   * 字段名:分页大小
+   * 是否必填:否
+   * 描述:设置该次请求返回的最大投诉条数,范围【1,50】,商户自定义字段,不传默认为10。
+   * 注:如遇到提示“当前查询结果数据量过大”,是回包触发微信支付下行数据包大小限制,请缩小入参limit并重试。
+   * 
+ */ + @SerializedName("limit") + private Integer limit = 10; + + /** + *
+   * 字段名:分页开始位置
+   * 是否必填:否
+   * 描述:该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回,不传默认为0 。
+   * 
+ */ + @SerializedName("offset") + private Integer offset = 0; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java new file mode 100644 index 0000000000..4e5ab4197f --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java @@ -0,0 +1,190 @@ +package com.github.binarywang.wxpay.bean.complaint; + + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; +import java.util.List; + +/** + * 微信消费者投诉2.0 + * 查询投诉单协商历史返回的实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +public class NegotiationHistoryResult implements Serializable { + + private static final long serialVersionUID = -6201692411535927502L; + + /** + *
+   * 字段名:分页大小
+   * 是否必填:是
+   * 描述:设置该次请求返回的最大投诉条数,范围【1,50】
+   * 
+ */ + @SerializedName("limit") + private Integer limit; + + /** + *
+   * 字段名:分页开始位置
+   * 是否必填:是
+   * 描述:该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回。
+   * 
+ */ + @SerializedName("offset") + private Integer offset; + + /** + *
+   * 字段名:投诉协商历史总条数
+   * 是否必填:否
+   * 描述:投诉协商历史总条数,当offset=0时返回
+   * 
+ */ + @SerializedName("total_count") + private Integer totalCount; + + /** + * 投诉协商历史 + */ + @SerializedName("data") + private List data; + + @Data + public static class NegotiationHistory implements Serializable { + private static final long serialVersionUID = 4240983048700956824L; + + /** + *
+     * 字段名:投诉资料列表
+     * 是否必填:是
+     * 用户上传的投诉相关资料,包括图片凭证等
+     * 
+ */ + @SerializedName("complaint_media_list") + private List complaintMediaList; + + @Data + public static class ComplaintMedia implements Serializable { + private static final long serialVersionUID = 4240983048700956803L; + + /** + *
+       * 字段名:媒体文件业务类型
+       * 是否必填:是
+       * 描述:
+       * 媒体文件对应的业务类型
+       * USER_COMPLAINT_IMAGE:用户投诉图片,用户提交投诉时上传的图片凭证
+       * OPERATION_IMAGE:操作流水图片,用户、商户、微信支付客服在协商解决投诉时,上传的图片凭证
+       * 注:用户上传的图片凭证会以白名单的形式提供给商户,若希望查看用户图片,联系微信支付客服
+       * 示例值:USER_COMPLAINT_IMAGE
+       * 
+ */ + @SerializedName("media_type") + private String mediaType; + + /** + *
+       * 字段名:媒体文件请求url
+       * 是否必填:是
+       * 描述:
+       * 微信返回的媒体文件请求url
+       * 
+ */ + @SerializedName("media_url") + private String mediaUrl; + + } + + /** + *
+     * 字段名:操作流水号
+     * 是否必填:是
+     * 描述:
+     * 操作流水号
+     * 
+ */ + @SerializedName("log_id") + private String logId; + + /** + *
+     * 字段名:操作人
+     * 是否必填:是
+     * 描述:
+     * 当前投诉协商记录的操作人
+     * 
+ */ + @SerializedName("operator") + private String operator; + + /** + *
+     * 字段名:操作时间
+     * 是否必填:是
+     * 描述:
+     * 当前投诉协商记录的操作时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,
+     * T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
+     * 例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒。
+     * 示例值:2015-05-20T13:29:35.120+08:00
+     * 
+ */ + @SerializedName("operate_time") + private String operateTime; + + /** + *
+     * 字段名:操作类型
+     * 是否必填:是
+     * 描述:
+     * 当前投诉协商记录的操作类型,对应枚举:
+     * USER_CREATE_COMPLAINT:用户提交投诉
+     * USER_CONTINUE_COMPLAINT:用户继续投诉
+     * USER_RESPONSE:用户留言
+     * PLATFORM_RESPONSE:平台留言
+     * MERCHANT_RESPONSE:商户留言
+     * MERCHANT_CONFIRM_COMPLETE:商户申请结单
+     * COMPLAINT_FULL_REFUNDED:投诉单全额退款
+     * USER_CREATE_COMPLAINT_SYSTEM_MESSAGE:用户提交投诉系统通知
+     * COMPLAINT_FULL_REFUNDED_SYSTEM_MESSAGE:投诉单全额退款系统通知
+     * USER_CONTINUE_COMPLAINT_SYSTEM_MESSAGE:用户继续投诉系统通知
+     * MERCHANT_CONFIRM_COMPLETE_SYSTEM_MESSAGE:商户申请结单系统通知
+     * USER_REVOKE_COMPLAINT:用户主动撤诉(只存在于历史投诉单的协商历史中)
+     * PLATFORM_HELP_APPLICATION:平台问询
+     * USER_APPLY_PLATFORM_HELP:申请协助
+     * 
+ */ + @SerializedName("operate_type") + private String operateType; + + /** + *
+     * 字段名:操作内容
+     * 是否必填:否
+     * 描述:
+     * 当前投诉协商记录的具体内容
+     * 
+ */ + @SerializedName("operate_details") + private String operateDetails; + + /** + *
+     * 字段名:图片凭证
+     * 是否必填:是
+     * 描述:
+     * 当前投诉协商记录提交的图片凭证(url格式),最多返回4张图片,url有效时间为1小时。如未查询到协商历史图片凭证,则返回空数组。
+     * 注:本字段包含商户、微信支付客服在协商解决投诉时上传的图片凭证,若希望查看用户图片,请使用complaint_media_list字段并联系微信支付客服
+     * 
+ */ + @SerializedName("image_list") + private List imageList; + + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java new file mode 100644 index 0000000000..24e287773b --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java @@ -0,0 +1,96 @@ +package com.github.binarywang.wxpay.bean.complaint; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 微信消费者投诉2.0 + * 提交回复请求实体 + * + * @author jmdhappy + * @date 2022-3-19 + */ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class ResponseRequest implements Serializable { + + private static final long serialVersionUID = 3244929701614220801L; + + /** + *
+   * 字段名:投诉单号
+   * 是否必填:是
+   * 描述:投诉单对应的投诉单号
+   * 
+ */ + @SerializedName("complaint_id") + @Expose + private String complaintId; + + /** + *
+   * 字段名:被诉商户号
+   * 是否必填:是
+   * 描述:投诉单对应的被诉商户号
+   * 
+ */ + @SerializedName("complainted_mchid") + private String complaintedMchid; + + /** + *
+   * 字段名:回复内容
+   * 是否必填:是
+   * 描述:具体的投诉处理方案,限制200个字符以内。
+   * 
+ */ + @SerializedName("response_content") + private String responseContent; + + /** + *
+   * 字段名:回复图片
+   * 是否必填:否
+   * 描述:
+   * 传入调用商户上传反馈图片接口返回的media_id,最多上传4张图片凭证
+   * 示例值:file23578_21798531.jpg
+   * 
+ */ + @SerializedName("response_images") + private String responseImages; + + /** + *
+   * 字段名:跳转链接
+   * 是否必填:是
+   * 描述:
+   * 商户可在回复中附加跳转链接,引导用户跳转至商户客诉处理页面,链接需满足https格式
+   * 注:配置文字链属于灰度功能, 若有需要请使用超管邮箱,按照要求发送邮件申请。邮件要求详情见:
+   * 商户申请开通留言链接白名单指南。
+   * 示例值:https://www.xxx.com/notify
+   * 
+ */ + @SerializedName("jump_url") + private String jumpUrl; + + /** + *
+   * 字段名:跳转链接文案
+   * 是否必填:否
+   * 描述:
+   * 实际展示给用户的文案,附在回复内容之后。用户点击文案,即可进行跳转。
+   * 注:若传入跳转链接,则跳转链接文案为必传项,二者缺一不可。
+   * 
+ */ + @SerializedName("jump_url_text") + private String jumpUrlText; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/ComplaintNotifyResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/ComplaintNotifyResult.java new file mode 100644 index 0000000000..a5d18df6df --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/ComplaintNotifyResult.java @@ -0,0 +1,64 @@ +package com.github.binarywang.wxpay.bean.notify; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 投诉通知. + * 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_16.shtml + * + * @author jmdhappy + */ +@Data +@NoArgsConstructor +public class ComplaintNotifyResult implements Serializable { + private static final long serialVersionUID = -1L; + /** + * 源数据 + */ + private OriginNotifyResponse rawData; + /** + * 解密后的数据 + */ + private DecryptNotifyResult result; + + @Data + @NoArgsConstructor + public static class DecryptNotifyResult implements Serializable { + private static final long serialVersionUID = -1L; + + /** + *
+     * 字段名:投诉单号
+     * 是否必填:是
+     * 描述:
+     *  投诉单对应的投诉单号
+     * 
+ */ + @SerializedName(value = "complaint_id") + private String complaintId; + + /** + *
+     * 字段名:动作类型
+     * 是否必填:是
+     * 描述:
+     * 触发本次投诉通知回调的具体动作类型,枚举如下:
+     * CREATE_COMPLAINT:用户提交投诉
+     * CONTINUE_COMPLAINT:用户继续投诉
+     * USER_RESPONSE:用户新留言
+     * RESPONSE_BY_PLATFORM:平台新留言
+     * SELLER_REFUND:收款方全额退款
+     * MERCHANT_RESPONSE:商户新回复
+     * MERCHANT_CONFIRM_COMPLETE:商户反馈处理完成
+     * 
+ */ + @SerializedName(value = "action_type") + private String actionType; + + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java new file mode 100644 index 0000000000..bd6a2e3461 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java @@ -0,0 +1,132 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.complaint.*; +import com.github.binarywang.wxpay.exception.WxPayException; + +import javax.crypto.BadPaddingException; + +/** + *
+ * 微信支付 消费者投诉2.0 API.
+ * Created by jmdhappy on 2022/3/19.
+ * 
+ * + * @author jmdhappy + */ +public interface ComplaintService { + + /** + *
+   * 查询投诉单列表API
+   * 商户可通过调用此接口,查询指定时间段的所有用户投诉信息,以分页输出查询结果。
+   * 对于服务商、渠道商,可通过调用此接口,查询指定子商户号对应子商户的投诉信息,若不指定则查询所有子商户投诉信息。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_11.shtml
+   * 
+ * + * @param request {@link ComplaintRequest} 查询投诉单列表请求数据 + * @return {@link ComplaintResult} 微信返回的投诉单列表 + * @throws WxPayException the wx pay exception + */ + ComplaintResult queryComplaints(ComplaintRequest request) throws WxPayException, BadPaddingException; + + /** + *
+   * 查询投诉单详情API
+   * 商户可通过调用此接口,查询指定投诉单的用户投诉详情,包含投诉内容、投诉关联订单、投诉人联系方式等信息,方便商户处理投诉。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_13.shtml
+   * 
+ * + * @param request {@link ComplaintDetailRequest} 投诉单详情请求数据 + * @return {@link ComplaintDetailResult} 微信返回的投诉单详情 + * @throws WxPayException the wx pay exception + */ + ComplaintDetailResult getComplaint(ComplaintDetailRequest request) throws WxPayException, BadPaddingException; + + /** + *
+   * 查询投诉协商历史API
+   * 商户可通过调用此接口,查询指定投诉的用户商户协商历史,以分页输出查询结果,方便商户根据处理历史来制定后续处理方案。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_12.shtml
+   * 
+ * + * @param request {@link NegotiationHistoryRequest} 请求数据 + * @return {@link NegotiationHistoryResult} 微信返回结果 + * @throws WxPayException the wx pay exception + */ + NegotiationHistoryResult queryNegotiationHistorys(NegotiationHistoryRequest request) throws WxPayException; + + /** + *
+   * 创建投诉通知回调地址API
+   * 商户通过调用此接口创建投诉通知回调URL,当用户产生新投诉且投诉状态已变更时,微信支付会通过回 调URL通知商户。对于服务商、渠道商,会收到所有子商户的投诉信息推送。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_2.shtml
+   * 
+ * + * @param request {@link ComplaintDetailRequest} 请求数据 + * @return {@link ComplaintNotifyUrlResult} 微信返回结果 + * @throws WxPayException the wx pay exception + */ + ComplaintNotifyUrlResult addComplaintNotifyUrl(ComplaintNotifyUrlRequest request) throws WxPayException; + + /** + *
+   * 查询投诉通知回调地址API
+   * 商户通过调用此接口查询投诉通知的回调URL。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_3.shtml
+   * 
+ * + * @return {@link ComplaintNotifyUrlResult} 微信返回结果 + * @throws WxPayException the wx pay exception + */ + ComplaintNotifyUrlResult getComplaintNotifyUrl() throws WxPayException; + + /** + *
+   * 更新投诉通知回调地址API
+   * 商户通过调用此接口更新投诉通知的回调URL。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_4.shtml
+   * 
+ * + * @param request {@link ComplaintDetailRequest} 请求数据 + * @return {@link ComplaintNotifyUrlResult} 微信返回结果 + * @throws WxPayException the wx pay exception + */ + ComplaintNotifyUrlResult updateComplaintNotifyUrl(ComplaintNotifyUrlRequest request) throws WxPayException; + + /** + *
+   * 删除投诉通知回调地址API
+   * 当商户不再需要推送通知时,可通过调用此接口删除投诉通知的回调URL,取消通知回调。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_5.shtml
+   * 
+ * + * @throws WxPayException the wx pay exception + */ + void deleteComplaintNotifyUrl() throws WxPayException; + + /** + *
+   * 提交回复API
+   * 商户可通过调用此接口,提交回复内容。其中上传图片凭证需首先调用商户上传反馈图片接口,得到图片id,再将id填入请求。
+   * 回复可配置文字链,传入跳转链接文案和跳转链接字段,用户点击即可跳转对应页面
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_14.shtml
+   * 
+ * + * @param request {@link ResponseRequest} 请求数据 + * @throws WxPayException the wx pay exception + */ + void submitResponse(ResponseRequest request) throws WxPayException; + + /** + *
+   * 反馈处理完成API
+   * 商户可通过调用此接口,反馈投诉单已处理完成。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_15.shtml
+   * 
+ * + * @param request {@link CompleteRequest} 请求数据 + * @throws WxPayException the wx pay exception + */ + void complete(CompleteRequest request) throws WxPayException; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 2a567fa1df..3f98c3d2c6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -173,6 +173,25 @@ public interface WxPayService { */ InputStream downloadV3(String url) throws WxPayException; + /** + * 发送put V3请求,得到响应字符串. + * + * @param url 请求地址 + * @param url 请求数据 + * @return 返回请求结果字符串 string + * @throws WxPayException the wx pay exception + */ + String putV3(String url, String requestStr) throws WxPayException; + + /** + * 发送delete V3请求,得到响应字符串. + * + * @param url 请求地址 + * @return 返回请求结果字符串 string + * @throws WxPayException the wx pay exception + */ + String deleteV3(String url) throws WxPayException; + /** * 获取微信签约代扣服务类 * @return entrust service @@ -1296,4 +1315,22 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * @throws WxPayException . */ WxPayQueryExchangeRateResult queryExchangeRate(String feeType, String date) throws WxPayException; + + /** + * 解析投诉通知 + * 详见https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_16.shtml + * + * @param notifyData 通知数据 + * @param header 通知头部数据,不传则表示不校验头 + * @return the wx pay refund notify result + * @throws WxPayException the wx pay exception + */ + ComplaintNotifyResult parseComplaintNotifyResult(String notifyData, SignatureHeader header) throws WxPayException; + + /** + * 获取消费者投诉服务类. + * + * @return the complaints service + */ + ComplaintService getComplaintsService(); } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index 437b618678..ae40210c88 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -77,6 +77,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { private final WxEntrustPapService wxEntrustPapService = new WxEntrustPapServiceImpl(this); private final PartnerTransferService partnerTransferService = new PartnerTransferServiceImpl(this); private final PayrollService payrollService = new PayrollServiceImpl(this); + private final ComplaintService complaintsService = new ComplaintServiceImpl(this); protected Map configMap; @@ -1222,4 +1223,33 @@ public WxPayQueryExchangeRateResult queryExchangeRate(String feeType, String dat result.checkResult(this, request.getSignType(), true); return result; } + + @Override + public ComplaintNotifyResult parseComplaintNotifyResult(String notifyData, SignatureHeader header) throws WxPayException { + if (Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)) { + throw new WxPayException("非法请求,头部信息验证失败"); + } + OriginNotifyResponse response = GSON.fromJson(notifyData, OriginNotifyResponse.class); + OriginNotifyResponse.Resource resource = response.getResource(); + String cipherText = resource.getCiphertext(); + String associatedData = resource.getAssociatedData(); + String nonce = resource.getNonce(); + String apiV3Key = this.getConfig().getApiV3Key(); + try { + String result = AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key); + ComplaintNotifyResult.DecryptNotifyResult decryptNotifyResult = GSON.fromJson(result, ComplaintNotifyResult.DecryptNotifyResult.class); + ComplaintNotifyResult notifyResult = new ComplaintNotifyResult(); + notifyResult.setRawData(response); + notifyResult.setResult(decryptNotifyResult); + return notifyResult; + } catch (GeneralSecurityException | IOException e) { + throw new WxPayException("解析报文异常!", e); + } + } + + @Override + public ComplaintService getComplaintsService() { + return complaintsService; + } + } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java new file mode 100644 index 0000000000..ee7c403fd7 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java @@ -0,0 +1,106 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.complaint.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.ComplaintService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; + +import javax.crypto.BadPaddingException; +import java.util.List; + +/** + *
+ * 消费者投诉2.0 实现.
+ * Created by jmdhappy on 2022/3/19.
+ * 
+ * + * @author jmdhappy + */ +@RequiredArgsConstructor +public class ComplaintServiceImpl implements ComplaintService { + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService; + + @Override + public ComplaintResult queryComplaints(ComplaintRequest request) throws WxPayException, BadPaddingException { + String url = String.format("%s/v3/merchant-service/complaints-v2?limit=%d&offset=%d&begin_date=%s&end_date=%s&complainted_mchid=%s", + this.payService.getPayBaseUrl(), request.getLimit(), request.getOffset(), request.getBeginDate(), request.getEndDate(), request.getComplaintedMchid()); + String response = this.payService.getV3(url); + ComplaintResult complaintResult = GSON.fromJson(response, ComplaintResult.class); + List data = complaintResult.getData(); + for (ComplaintDetailResult complaintDetailResult : data) { + // 对手机号进行解密操作 + String payerPhone = RsaCryptoUtil.decryptOAEP(complaintDetailResult.getPayerPhone(), this.payService.getConfig().getPrivateKey()); + complaintDetailResult.setPayerPhone(payerPhone); + } + return complaintResult; + } + + @Override + public ComplaintDetailResult getComplaint(ComplaintDetailRequest request) throws WxPayException, BadPaddingException { + String url = String.format("%s/v3/merchant-service/complaints-v2/%s", + this.payService.getPayBaseUrl(), request.getComplaintId()); + String response = this.payService.getV3(url); + ComplaintDetailResult result = GSON.fromJson(response, ComplaintDetailResult.class); + // 对手机号进行解密操作 + String payerPhone = RsaCryptoUtil.decryptOAEP(result.getPayerPhone(), this.payService.getConfig().getPrivateKey()); + result.setPayerPhone(payerPhone); + return result; + } + + @Override + public NegotiationHistoryResult queryNegotiationHistorys(NegotiationHistoryRequest request) throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaints-v2/%s/negotiation-historys?limit=%d&offset=%d", + this.payService.getPayBaseUrl(), request.getComplaintId(), request.getLimit(), request.getOffset()); + String response = this.payService.getV3(url); + return GSON.fromJson(response, NegotiationHistoryResult.class); + } + + @Override + public ComplaintNotifyUrlResult addComplaintNotifyUrl(ComplaintNotifyUrlRequest request) throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaint-notifications", this.payService.getPayBaseUrl()); + String response = this.payService.postV3(url, GSON.toJson(request)); + return GSON.fromJson(response, ComplaintNotifyUrlResult.class); + } + + @Override + public ComplaintNotifyUrlResult getComplaintNotifyUrl() throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaint-notifications", this.payService.getPayBaseUrl()); + String response = this.payService.getV3(url); + return GSON.fromJson(response, ComplaintNotifyUrlResult.class); + } + + @Override + public ComplaintNotifyUrlResult updateComplaintNotifyUrl(ComplaintNotifyUrlRequest request) throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaint-notifications", this.payService.getPayBaseUrl()); + String response = this.payService.putV3(url, GSON.toJson(request)); + return GSON.fromJson(response, ComplaintNotifyUrlResult.class); + } + + @Override + public void deleteComplaintNotifyUrl() throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaint-notifications", this.payService.getPayBaseUrl()); + this.payService.deleteV3(url); + } + + @Override + public void submitResponse(ResponseRequest request) throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaints-v2/%s/response", this.payService.getPayBaseUrl(), request.getComplaintId()); + // 上面url已经含有complaintId,这里设置为空,避免在body中再次传递,否则微信会报错 + request.setComplaintId(null); + this.payService.postV3(url, GSON.toJson(request)); + } + + @Override + public void complete(CompleteRequest request) throws WxPayException { + String url = String.format("%s/v3/merchant-service/complaints-v2/%s/complete", this.payService.getPayBaseUrl(), request.getComplaintId()); + // 上面url已经含有complaintId,这里设置为空,避免在body中再次传递,否则微信会报错 + request.setComplaintId(null); + this.payService.postV3(url, GSON.toJson(request)); + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java index 87d5014acf..e70813fc37 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java @@ -269,6 +269,24 @@ public InputStream downloadV3(String url) throws WxPayException { } } + @Override + public String putV3(String url, String requestStr) throws WxPayException { + HttpPut httpPut = new HttpPut(url); + StringEntity entity = this.createEntry(requestStr); + httpPut.setEntity(entity); + httpPut.addHeader("Accept", "application/json"); + httpPut.addHeader("Content-Type", "application/json"); + return requestV3(url, httpPut); + } + + @Override + public String deleteV3(String url) throws WxPayException { + HttpDelete httpDelete = new HttpDelete(url); + httpDelete.addHeader("Accept", "application/json"); + httpDelete.addHeader("Content-Type", "application/json"); + return requestV3(url, httpDelete); + } + private CloseableHttpClient createApiV3HttpClient() throws WxPayException { CloseableHttpClient apiV3HttpClient = this.getConfig().getApiV3HttpClient(); if (null == apiV3HttpClient) { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java index 3745284544..29521d493a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java @@ -96,6 +96,16 @@ public InputStream downloadV3(String url) throws WxPayException { return null; } + @Override + public String putV3(String url, String requestStr) throws WxPayException { + return null; + } + + @Override + public String deleteV3(String url) throws WxPayException { + return null; + } + private HttpRequest buildHttpRequest(String url, String requestStr, boolean useKey) throws WxPayException { HttpRequest request = HttpRequest .post(url) diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java new file mode 100644 index 0000000000..6014924fdc --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java @@ -0,0 +1,155 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.complaint.*; +import com.github.binarywang.wxpay.bean.profitsharing.*; +import com.github.binarywang.wxpay.constant.WxPayConstants; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.inject.Inject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import javax.crypto.BadPaddingException; + +/** + *
+ *  消费者投诉2.0 测试类
+ * 
+ * + * @author jmdhappy + */ +@Test +@Guice(modules = ApiTestModule.class) +public class ComplaintServiceImplTest { + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + @Inject + private WxPayService payService; + + private static final String complaintId = "200231020220320120496109901"; + + /** + * 查询投诉单列表API + * @throws WxPayException + */ + @Test + public void testQueryComplaints() throws WxPayException, BadPaddingException { + ComplaintRequest request = ComplaintRequest + .newBuilder() + .offset(0) + .limit(10) + .beginDate("2022-03-01") + .endDate("2022-03-20") + .complaintedMchid(this.payService.getConfig().getMchId()) + .build(); + this.logger.info(this.payService.getComplaintsService().queryComplaints(request).toString()); + } + + /** + * 查询投诉单详情API + * @throws WxPayException + */ + @Test + public void testGetComplaint() throws WxPayException, BadPaddingException { + ComplaintDetailRequest request = ComplaintDetailRequest + .newBuilder() + .complaintId(complaintId) + .build(); + this.logger.info(this.payService.getComplaintsService().getComplaint(request).toString()); + } + + /** + * 查询投诉协商历史API + * @throws WxPayException + */ + @Test + public void testQueryNegotiationHistorys() throws WxPayException { + NegotiationHistoryRequest request = NegotiationHistoryRequest + .newBuilder() + .complaintId(complaintId) + .offset(0) + .limit(20) + .build(); + this.logger.info(this.payService.getComplaintsService().queryNegotiationHistorys(request).toString()); + } + + /** + * 创建投诉通知回调地址API + * @throws WxPayException + */ + @Test + public void testAddComplaintNotifyUrl() throws WxPayException { + ComplaintNotifyUrlRequest request = ComplaintNotifyUrlRequest + .newBuilder() + .url("https://jeepay.natapp4.cc") + .build(); + this.logger.info(this.payService.getComplaintsService().addComplaintNotifyUrl(request).toString()); + } + + /** + * 查询投诉通知回调地址API + * @throws WxPayException + */ + @Test + public void testGetComplaintNotifyUrl() throws WxPayException { + this.logger.info(this.payService.getComplaintsService().getComplaintNotifyUrl().toString()); + } + + /** + * 更新投诉通知回调地址API + * @throws WxPayException + */ + @Test + public void testUpdateComplaintNotifyUrl() throws WxPayException { + ComplaintNotifyUrlRequest request = ComplaintNotifyUrlRequest + .newBuilder() + .url("https://jeepay1.natapp4.cc") + .build(); + this.logger.info(this.payService.getComplaintsService().updateComplaintNotifyUrl(request).toString()); + } + + /** + * 删除投诉通知回调地址API + * @throws WxPayException + */ + @Test + public void testDeleteComplaintNotifyUrl() throws WxPayException { + this.payService.getComplaintsService().deleteComplaintNotifyUrl(); + } + + /** + * 提交回复API + * @throws WxPayException + */ + @Test + public void testSubmitResponse() throws WxPayException { + ResponseRequest request = ResponseRequest + .newBuilder() + .complaintId(complaintId) + .complaintedMchid(this.payService.getConfig().getMchId()) + .responseContent("测试投诉接口1233,正在处理,不要炸鸡") + //.jumpUrl("https://www.baidu.com") + //.jumpUrlText("问题解决方案") + .build(); + this.payService.getComplaintsService().submitResponse(request); + } + + /** + * 反馈处理完成API + * @throws WxPayException + */ + @Test + public void testComplete() throws WxPayException { + CompleteRequest request = CompleteRequest + .newBuilder() + .complaintId(complaintId) + .complaintedMchid(this.payService.getConfig().getMchId()) + .build(); + this.payService.getComplaintsService().complete(request); + } + +} From a4dd111def5ffb9f89df206a2072d87ea2017b97 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 20 Mar 2022 23:30:53 +0800 Subject: [PATCH 154/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E9=87=8D=E5=86=99jodd=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BaseWxPayServiceImpl.java | 6 ++-- .../binarywang/wxpay/util/ZipUtils.java | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/ZipUtils.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index ae40210c88..47b8987205 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -20,13 +20,13 @@ import com.github.binarywang.wxpay.service.*; import com.github.binarywang.wxpay.util.SignUtils; import com.github.binarywang.wxpay.util.XmlConfig; +import com.github.binarywang.wxpay.util.ZipUtils; import com.github.binarywang.wxpay.v3.util.AesUtils; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import jodd.io.ZipUtil; import me.chanjar.weixin.common.error.WxRuntimeException; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -888,7 +888,7 @@ private String handleGzipBill(String url, String requestStr) throws WxPayExcepti Path path = Paths.get(tempDirectory.toString(), System.currentTimeMillis() + ".gzip"); Files.write(path, responseBytes); try { - List allLines = Files.readAllLines(ZipUtil.ungzip(path.toFile()).toPath(), StandardCharsets.UTF_8); + List allLines = Files.readAllLines(ZipUtils.unGzip(path.toFile()).toPath(), StandardCharsets.UTF_8); return Joiner.on("\n").join(allLines); } catch (ZipException e) { if (e.getMessage().contains("Not in GZIP format")) { @@ -941,7 +941,7 @@ private String handleGzipFundFlow(String url, String requestStr) throws WxPayExc Files.write(path, responseBytes); try { - List allLines = Files.readAllLines(ZipUtil.ungzip(path.toFile()).toPath(), StandardCharsets.UTF_8); + List allLines = Files.readAllLines(ZipUtils.unGzip(path.toFile()).toPath(), StandardCharsets.UTF_8); return Joiner.on("\n").join(allLines); } catch (ZipException e) { if (e.getMessage().contains("Not in GZIP format")) { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/ZipUtils.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/ZipUtils.java new file mode 100644 index 0000000000..f9c434196a --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/ZipUtils.java @@ -0,0 +1,33 @@ +package com.github.binarywang.wxpay.util; + +import lombok.experimental.UtilityClass; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.io.IOUtils; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.zip.GZIPInputStream; + +/** + * @author Binary Wang + */ +@UtilityClass +public class ZipUtils { + + /** + * 解压gzip文件 + */ + public static File unGzip(final File file) throws IOException { + File resultFile = new File(FilenameUtils.removeExtension(file.getAbsolutePath())); + resultFile.createNewFile(); + + try (FileOutputStream fos = new FileOutputStream(resultFile); + GZIPInputStream gzis = new GZIPInputStream(new FileInputStream(file));) { + IOUtils.copy(gzis, fos); + } + + return resultFile; + } +} From 6ce3772c86995d2db4f8db273aa077f539ec0cb5 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 21 Mar 2022 14:45:44 +0800 Subject: [PATCH 155/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/util/fs/FileUtils.java | 2 +- .../wxpay/service/impl/BaseWxPayServiceImpl.java | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/fs/FileUtils.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/fs/FileUtils.java index d60f5cedd5..65bc48da1c 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/fs/FileUtils.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/fs/FileUtils.java @@ -43,7 +43,7 @@ private static void copyToFile(final InputStream source, final File destination) * @param ext 扩展名 */ public static File createTmpFile(InputStream inputStream, String name, String ext) throws IOException { - return createTmpFile(inputStream, name, ext, Files.createTempDirectory("weixin-java-tools-temp").toFile()); + return createTmpFile(inputStream, name, ext, Files.createTempDirectory("wxjava-temp").toFile()); } /** diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index 47b8987205..128a7362dd 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -147,10 +147,14 @@ public WxEntrustPapService getWxEntrustPapService() { } @Override - public PartnerTransferService getPartnerTransferService(){return partnerTransferService;} + public PartnerTransferService getPartnerTransferService() { + return partnerTransferService; + } @Override - public PayrollService getPayrollService(){return payrollService;} + public PayrollService getPayrollService() { + return payrollService; + } @Override public WxPayConfig getConfig() { @@ -358,8 +362,9 @@ public WxPayOrderNotifyResult parseOrderNotifyResult(String xmlData, String sign /** * 校验通知签名 + * * @param header 通知头信息 - * @param data 通知数据 + * @param data 通知数据 * @return true:校验通过 false:校验不通过 */ private boolean verifyNotifySign(SignatureHeader header, String data) { @@ -700,6 +705,10 @@ public WxPayUnifiedOrderV3Result unifiedOrderV3(TradeTypeEnum tradeType, WxPayUn if (StringUtils.isBlank(request.getMchid())) { request.setMchid(this.getConfig().getMchId()); } + if (StringUtils.isBlank(request.getNotifyUrl())) { + request.setNotifyUrl(this.getConfig().getNotifyUrl()); + } + String url = this.getPayBaseUrl() + tradeType.getPartnerUrl(); String response = this.postV3(url, GSON.toJson(request)); return GSON.fromJson(response, WxPayUnifiedOrderV3Result.class); From 1893790aae7bb762f9d9fc56cb7f2241c545abf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE=E6=9E=97?= Date: Fri, 25 Mar 2022 09:18:45 +0000 Subject: [PATCH 156/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=B6=88=E8=B4=B9=E8=80=85=E6=8A=95=E8=AF=89=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/impl/ComplaintServiceImpl.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java index ee7c403fd7..d269a8f902 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java @@ -34,8 +34,10 @@ public ComplaintResult queryComplaints(ComplaintRequest request) throws WxPayExc List data = complaintResult.getData(); for (ComplaintDetailResult complaintDetailResult : data) { // 对手机号进行解密操作 - String payerPhone = RsaCryptoUtil.decryptOAEP(complaintDetailResult.getPayerPhone(), this.payService.getConfig().getPrivateKey()); - complaintDetailResult.setPayerPhone(payerPhone); + if(complaintDetailResult.getPayerPhone() != null) { + String payerPhone = RsaCryptoUtil.decryptOAEP(complaintDetailResult.getPayerPhone(), this.payService.getConfig().getPrivateKey()); + complaintDetailResult.setPayerPhone(payerPhone); + } } return complaintResult; } @@ -47,8 +49,10 @@ public ComplaintDetailResult getComplaint(ComplaintDetailRequest request) throws String response = this.payService.getV3(url); ComplaintDetailResult result = GSON.fromJson(response, ComplaintDetailResult.class); // 对手机号进行解密操作 - String payerPhone = RsaCryptoUtil.decryptOAEP(result.getPayerPhone(), this.payService.getConfig().getPrivateKey()); - result.setPayerPhone(payerPhone); + if(result.getPayerPhone() != null) { + String payerPhone = RsaCryptoUtil.decryptOAEP(result.getPayerPhone(), this.payService.getConfig().getPrivateKey()); + result.setPayerPhone(payerPhone); + } return result; } From 62645a4311e78f44ab65c7617bea2c3b5fc9a5fe Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Fri, 25 Mar 2022 09:21:27 +0000 Subject: [PATCH 157/622] =?UTF-8?q?:art:=20#2563=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BC=98=E5=8C=96=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BE=85=E5=88=86=E9=85=8D=E7=A6=BB=E8=81=8C=E6=88=90?= =?UTF-8?q?=E5=91=98=E5=88=97=E8=A1=A8=E7=9A=84=E6=8E=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E9=A1=B5=E6=9F=A5=E8=AF=A2=E6=B8=B8?= =?UTF-8?q?=E6=A0=87=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 17 +++--- .../impl/WxCpExternalContactServiceImpl.java | 11 ++-- .../WxCpUserExternalUnassignList.java | 10 +++- .../cp/api/WxCpExternalContactTest.java | 54 +++++++++++++++++++ 4 files changed, 81 insertions(+), 11 deletions(-) create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpExternalContactTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index 8e04977ff4..ae6b59ed6b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -361,14 +361,19 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c List listFollowers() throws WxErrorException; /** - * 企业和第三方可通过此接口,获取所有离职成员的客户列表,并可进一步调用离职成员的外部联系人再分配接口将这些客户重新分配给其他企业成员。 + * 获取待分配的离职成员列表 + * 企业和第三方可通过此接口,获取所有离职成员的客户列表,并可进一步调用分配离职成员的客户接口将这些客户重新分配给其他企业成员。 * - * @param page the page - * @param pageSize the page size - * @return wx cp user external unassign list - * @throws WxErrorException the wx error exception + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_unassigned_list?access_token=ACCESS_TOKEN + * + * @param pageId 分页查询,要查询页号,从0开始 + * @param cursor 分页查询游标,字符串类型,适用于数据量较大的情况,如果使用该参数则无需填写page_id,该参数由上一次调用返回 + * @param pageSize 每次返回的最大记录数,默认为1000,最大值为1000 + * @return + * @throws WxErrorException */ - WxCpUserExternalUnassignList listUnassignedList(Integer page, Integer pageSize) throws WxErrorException; + WxCpUserExternalUnassignList listUnassignedList(Integer pageId, String cursor, Integer pageSize) throws WxErrorException; /** * 企业可通过此接口,将已离职成员的外部联系人分配给另一个成员接替联系。 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java index 3997f50768..def24cf8bd 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java @@ -32,7 +32,7 @@ import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.ExternalContact.*; /** - * @author 曹祖鹏 & yuanqixun & Mr.Pan + * @author 曹祖鹏 & yuanqixun & Mr.Pan & Wang_Wong */ @RequiredArgsConstructor public class WxCpExternalContactServiceImpl implements WxCpExternalContactService { @@ -245,10 +245,13 @@ public List listFollowers() throws WxErrorException { } @Override - public WxCpUserExternalUnassignList listUnassignedList(Integer pageIndex, Integer pageSize) throws WxErrorException { + public WxCpUserExternalUnassignList listUnassignedList(Integer pageIndex, String cursor, Integer pageSize) throws WxErrorException { JsonObject json = new JsonObject(); - json.addProperty("page_id", pageIndex == null ? 0 : pageIndex); - json.addProperty("page_size", pageSize == null ? 100 : pageSize); + if(pageIndex != null){ + json.addProperty("page_id", pageIndex); + } + json.addProperty("cursor", StringUtils.isEmpty(cursor) ? "" : cursor); + json.addProperty("page_size", pageSize == null ? 1000 : pageSize); final String url = this.mainService.getWxCpConfigStorage().getApiUrl(LIST_UNASSIGNED_CONTACT); final String result = this.mainService.post(url, json.toString()); return WxCpUserExternalUnassignList.fromJson(result); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java index 68d065a2d4..d273348363 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java @@ -12,7 +12,7 @@ /** * 离职员工外部联系人列表 * - * @author yqx + * @author yqx & Wang_Wong * @date 2020/3/15 */ @Getter @@ -25,6 +25,9 @@ public class WxCpUserExternalUnassignList extends WxCpBaseResp { @SerializedName("is_last") private boolean isLast; + @SerializedName("next_cursor") + private String nextCursor; + @Getter @Setter public static class UnassignInfo implements Serializable { @@ -52,4 +55,9 @@ public static class UnassignInfo implements Serializable { public static WxCpUserExternalUnassignList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalUnassignList.class); } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpExternalContactTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpExternalContactTest.java new file mode 100644 index 0000000000..7fb1650dad --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpExternalContactTest.java @@ -0,0 +1,54 @@ +package me.chanjar.weixin.cp.api; + +import com.google.common.collect.Lists; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.external.*; +import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactBatchInfo; +import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; +import me.chanjar.weixin.cp.bean.external.msg.Attachment; +import me.chanjar.weixin.cp.bean.external.msg.Image; +import me.chanjar.weixin.cp.bean.external.msg.Video; +import org.apache.commons.lang3.time.DateFormatUtils; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; +import org.testng.collections.CollectionUtils; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +import static org.testng.Assert.assertNotNull; + +/** + * 离职继承测试类 + * + * 官方文档: + * https://developer.work.weixin.qq.com/document/path/92124 + */ +@Slf4j +@Guice(modules = ApiTestModule.class) +public class WxCpExternalContactTest { + + @Inject + private WxCpService wxCpService; + @Inject + protected ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage; + + @Test + public void testGetExternalContact() throws WxErrorException { + String externalUserId = this.configStorage.getExternalUserId(); + WxCpUserExternalUnassignList unassignList = this.wxCpService.getExternalContactService().listUnassignedList(null, null, 100); + log.info(unassignList.toJson()); + + // test str + String result = "{\"errcode\":0,\"errmsg\":\"ok\",\"info\":[{\"handover_userid\":\"zhangsan\",\"external_userid\":\"woAJ2GCAAAd4uL12hdfsdasassdDmAAAAA\",\"dimission_time\":1550838571},{\"handover_userid\":\"lisi\",\"external_userid\":\"wmAJ2GCAAAzLTI123ghsdfoGZNqqAAAA\",\"dimission_time\":1550661468}],\"is_last\":false,\"next_cursor\":\"aSfwejksvhToiMMfFeIGZZ\"}"; + WxCpUserExternalUnassignList json = WxCpUserExternalUnassignList.fromJson(result); + log.info(json.toJson()); + + } + +} From be49b1054736da19ae21eb726bdb01a4a63721dc Mon Sep 17 00:00:00 2001 From: linlinjava Date: Wed, 30 Mar 2022 20:23:36 +0800 Subject: [PATCH 158/622] =?UTF-8?q?:art:=20#2567=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E7=9B=B4=E6=92=AD=E9=97=B4=E5=92=8C?= =?UTF-8?q?=E5=95=86=E5=93=81=E3=80=81=E6=8C=82=E4=BB=B6=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=AD=89=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaLiveService.java | 187 ++++++++++++++++++ .../miniapp/api/impl/WxMaLiveServiceImpl.java | 171 +++++++++++++++- .../miniapp/bean/live/WxMaLiveGoodInfo.java | 5 + .../miniapp/constant/WxMaApiUrlConstants.java | 89 ++++++++- 4 files changed, 448 insertions(+), 4 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java index a90f4756b9..3b0ccc390a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java @@ -4,6 +4,7 @@ import me.chanjar.weixin.common.error.WxErrorException; import java.util.List; +import java.util.Map; /** *
@@ -207,4 +208,190 @@ public interface WxMaLiveService {
    * @throws WxErrorException .
    */
   List getAssistantList(Integer roomId) throws WxErrorException;
+
+  /**
+   * 添加主播副号
+   * 

+ * 调用接口添加主播副号 + *

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addsubanchor?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param username 用户微信号
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean addSubanchor(Integer roomId, String username) throws WxErrorException;
+
+  /**
+   * 修改主播副号
+   * 

+ * 调用接口修改主播副号 + *

+ * 调用频率: 10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param username 小助手微信号
+   * @param username 用户微信号
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean modifySubanchor(Integer roomId, String username) throws WxErrorException;
+
+  /**
+   * 删除主播副号
+   * 

+ * 调用频率: 10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/deletesubanchor?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean deleteSubanchor(Integer roomId) throws WxErrorException;
+
+  /**
+   * 获取主播副号
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getsubanchor?access_token=ACCESS_TOKEN + *

+ * @param roomId 直播间id + * @return . + * @throws WxErrorException . + */ + String getSubanchor(Integer roomId) throws WxErrorException; + + /** + * 开启/关闭直播间官方收录 + *

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatefeedpublic?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param isFeedsPublic 是否开启官方收录 【1: 开启,0:关闭】
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean updatefeedpublic(Integer roomId, Integer isFeedsPublic) throws WxErrorException;
+
+  /**
+   * 开启/关闭回放功能
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatereplay?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param closeReplay 是否关闭回放 【0:开启,1:关闭】
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean updatereplay(Integer roomId, Integer closeReplay) throws WxErrorException;
+
+  /**
+   * 开启/关闭客服功能
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatekf?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param closeKf 是否关闭客服 【0:开启,1:关闭】
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean updatekf(Integer roomId, Integer closeKf) throws WxErrorException;
+
+  /**
+   * 开启/关闭直播间全局禁言
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatecomment?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param banComment 1-禁言,0-取消禁言
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean updatecomment(Integer roomId, Integer banComment) throws WxErrorException;
+
+  /**
+   * 上下架商品
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/onsale?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param goodsId 商品ID
+   * @param onSale 上下架 【0:下架,1:上架】
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean onsale(Integer roomId, Integer goodsId, Integer onSale) throws WxErrorException;
+
+  /**
+   * 删除直播间商品
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/deleteInRoom?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param goodsId 商品ID
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean deleteInRoom(Integer roomId, Integer goodsId) throws WxErrorException;
+
+  /**
+   * 推送商品
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/push?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param goodsId 商品ID
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean push(Integer roomId, Integer goodsId) throws WxErrorException;
+
+  /**
+   * 直播间商品排序
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/sort?access_token=ACCESS_TOKEN + *

+   * @param roomId 房间ID
+   * @param goods 商品ID列表, 例如: [{"goodsId":"123"}, {"goodsId":"234"}]
+   * @return 是否成功
+   * @throws WxErrorException .
+   */
+  boolean sort(Integer roomId, List> goods) throws WxErrorException;
+
+  /**
+   * 下载商品讲解视频
+   * 

+ * 调用额度:10000次/一天 + *

+ * http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/goods/getVideo?access_token=ACCESS_TOKEN + *

+ * @param roomId 直播间id + * @param goodsId 商品ID + * @return . + * @throws WxErrorException . + */ + String getVideo(Integer roomId, Integer goodsId) throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java index b71e58653e..abda4faa63 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java @@ -18,7 +18,6 @@ import java.util.List; import java.util.Map; -import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Broadcast.GET_LIVE_INFO; import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Broadcast.Room; /** @@ -152,7 +151,7 @@ private JsonObject getLiveInfo(Integer start, Integer limit, Map } map.put("start", start); map.put("limit", limit); - String responseContent = wxMaService.post(GET_LIVE_INFO, WxMaGsonBuilder.create().toJson(map)); + String responseContent = wxMaService.post(Room.GET_LIVE_INFO, WxMaGsonBuilder.create().toJson(map)); JsonObject jsonObject = GsonParser.parse(responseContent); if (jsonObject.get(ERR_CODE).getAsInt() != 0) { throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); @@ -231,4 +230,172 @@ public List getAssistantList(Integer roomId) thro return WxMaAssistantResult.fromJson(responseContent).getList(); } + @Override + public boolean addSubanchor(Integer roomId, String username) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("username", username); + String responseContent = this.wxMaService.post(Room.ADD_SUBANCHOR, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean modifySubanchor(Integer roomId, String username) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("username", username); + String responseContent = this.wxMaService.post(Room.MODIFY_SUBANCHOR, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean deleteSubanchor(Integer roomId) throws WxErrorException { + Map map = new HashMap<>(1); + map.put(ROOM_ID, roomId); + String responseContent = this.wxMaService.post(Room.DELETE_SUBANCHOR, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public String getSubanchor(Integer roomId) throws WxErrorException { + Map map = new HashMap<>(1); + map.put(ROOM_ID, roomId); + String responseContent = this.wxMaService.get(Room.GET_SUBANCHOR, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return jsonObject.get("username").getAsString(); + } + + @Override + public boolean updatefeedpublic(Integer roomId, Integer isFeedsPublic) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("isFeedsPublic", isFeedsPublic); + String responseContent = this.wxMaService.post(Room.UPDATE_FEED_PUBLIC, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean updatereplay(Integer roomId, Integer closeReplay) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("closeReplay", closeReplay); + String responseContent = this.wxMaService.post(Room.UPDATE_REPLAY, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean updatekf(Integer roomId, Integer closeKf) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("closeKf", closeKf); + String responseContent = this.wxMaService.post(Room.UPDATE_KF, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean updatecomment(Integer roomId, Integer banComment) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("banComment", banComment); + String responseContent = this.wxMaService.post(Room.UPDATE_COMMENT, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean onsale(Integer roomId, Integer goodsId, Integer onSale) throws WxErrorException { + Map map = new HashMap<>(3); + map.put(ROOM_ID, roomId); + map.put("goodsId", goodsId); + map.put("onSale", onSale); + String responseContent = this.wxMaService.post(Room.ONSALE, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean deleteInRoom(Integer roomId, Integer goodsId) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("goodsId", goodsId); + String responseContent = this.wxMaService.post(Room.DELETE_IN_ROOM, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean push(Integer roomId, Integer goodsId) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("goodsId", goodsId); + String responseContent = this.wxMaService.post(Room.PUSH, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public boolean sort(Integer roomId, List> goods) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("goods", goods); + String responseContent = this.wxMaService.post(Room.SORT, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return true; + } + + @Override + public String getVideo(Integer roomId, Integer goodsId) throws WxErrorException { + Map map = new HashMap<>(2); + map.put(ROOM_ID, roomId); + map.put("goodsId", goodsId); + String responseContent = this.wxMaService.get(Room.GET_VIDEO, WxMaGsonBuilder.create().toJson(map)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return jsonObject.get("url").getAsString(); + } + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java index 4a63ff7a48..3ef043495a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java @@ -4,6 +4,7 @@ import java.io.Serializable; import java.math.BigDecimal; +import java.util.List; /** * 直播商品信息 @@ -22,4 +23,8 @@ public class WxMaLiveGoodInfo implements Serializable { * 1, 2:表示是为api添加商品,否则是在MP添加商品 */ private String thirdPartyTag; + /** + * https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/pendant.html + */ + private List goodsKey; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 3fd6719f7c..4fd7ce1dbc 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -158,22 +158,107 @@ public interface Jsapi { } public interface Broadcast { - String GET_LIVE_INFO = "https://api.weixin.qq.com/wxa/business/getliveinfo"; - /** * 直播间管理相关接口 */ interface Room { + /** + * 创建直播间 + */ String CREATE_ROOM = "https://api.weixin.qq.com/wxaapi/broadcast/room/create"; + /** + * 获取直播间列表 + * 获取直播间回放 + */ + String GET_LIVE_INFO = "https://api.weixin.qq.com/wxa/business/getliveinfo"; + /** + * 直播间导入商品 + */ String ADD_GOODS = "https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods"; + /** + * 删除直播间 + */ String DELETE_ROOM = "https://api.weixin.qq.com/wxaapi/broadcast/room/deleteroom"; + /** + * 编辑直播间 + */ String EDIT_ROOM = "https://api.weixin.qq.com/wxaapi/broadcast/room/editroom"; + /** + * 获取直播间推流地址 + */ String GET_PUSH_URL = "https://api.weixin.qq.com/wxaapi/broadcast/room/getpushurl"; + /** + * 获取直播间分享二维码 + */ String GET_SHARED_CODE = "https://api.weixin.qq.com/wxaapi/broadcast/room/getsharedcode"; + /** + * 添加管理直播间小助手 + */ String ADD_ASSISTANT = "https://api.weixin.qq.com/wxaapi/broadcast/room/addassistant"; + /** + * 修改管理直播间小助手 + */ String MODIFY_ASSISTANT = "https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant"; + /** + * 删除管理直播间小助手 + */ String REMOVE_ASSISTANT = "https://api.weixin.qq.com/wxaapi/broadcast/room/removeassistant"; + /** + * 查询管理直播间小助手 + */ String GET_ASSISTANT_LIST = "https://api.weixin.qq.com/wxaapi/broadcast/room/getassistantlist"; + /** + * 添加主播副号 + */ + String ADD_SUBANCHOR = "https://api.weixin.qq.com/wxaapi/broadcast/room/addsubanchor"; + /** + * 修改主播副号 + */ + String MODIFY_SUBANCHOR = "https://api.weixin.qq.com/wxaapi/broadcast/room/modifysubanchor"; + /** + * 删除主播副号 + */ + String DELETE_SUBANCHOR = "https://api.weixin.qq.com/wxaapi/broadcast/room/deletesubanchor"; + /** + * 获取主播副号 + */ + String GET_SUBANCHOR = "https://api.weixin.qq.com/wxaapi/broadcast/room/getsubanchor"; + /** + * 开启/关闭直播间官方收录 + */ + String UPDATE_FEED_PUBLIC = "https://api.weixin.qq.com/wxaapi/broadcast/room/updatefeedpublic"; + /** + * 开启/关闭回放功能 + */ + String UPDATE_REPLAY = "https://api.weixin.qq.com/wxaapi/broadcast/room/updatereplay"; + /** + * 开启/关闭客服功能 + */ + String UPDATE_KF = "https://api.weixin.qq.com/wxaapi/broadcast/room/updatekf"; + /** + * 开启/关闭直播间全局禁言 + */ + String UPDATE_COMMENT = "https://api.weixin.qq.com/wxaapi/broadcast/room/updatecomment"; + /** + * 上下架商品 + */ + String ONSALE = "https://api.weixin.qq.com/wxaapi/broadcast/goods/onsale"; + /** + * 删除商品 + */ + String DELETE_IN_ROOM = "https://api.weixin.qq.com/wxaapi/broadcast/goods/deleteInRoom"; + /** + * 推送商品 + */ + String PUSH = "https://api.weixin.qq.com/wxaapi/broadcast/goods/push"; + /** + * 商品排序 + */ + String SORT = "https://api.weixin.qq.com/wxaapi/broadcast/goods/sort"; + /** + * 下载商品讲解视频 + */ + String GET_VIDEO = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getVideo"; } /** From 94bd26269414971ea41e30890e0d049ed689c478 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 30 Mar 2022 20:36:10 +0800 Subject: [PATCH 159/622] =?UTF-8?q?:art:=20=E5=A2=9E=E5=8A=A0=E8=8B=A5?= =?UTF-8?q?=E5=B9=B2=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/common/bean/WxOAuth2UserInfo.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java index 69518b2565..e647560026 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java @@ -25,6 +25,23 @@ public class WxOAuth2UserInfo implements Serializable { * nickname 普通用户昵称 */ private String nickname; + /** + * sex 普通用户性别,1为男性,2为女性 + */ + private Integer sex; + /** + * city 普通用户个人资料填写的城市 + */ + private String city; + + /** + * province 普通用户个人资料填写的省份 + */ + private String province; + /** + * country 国家,如中国为CN + */ + private String country; /** * headimgurl 用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像), * 用户没有头像时该项为空 From 2a169bacadbb0a6971126a7940b46cd5c5e47b92 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 31 Mar 2022 21:59:46 +0800 Subject: [PATCH 160/622] =?UTF-8?q?:art:=20#2537=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E9=83=A8=E9=97=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=AD=90=E9=83=A8?= =?UTF-8?q?=E9=97=A8ID=E5=88=97=E8=A1=A8=E5=92=8C=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=8D=95=E4=B8=AA=E9=83=A8=E9=97=A8=E8=AF=A6=E6=83=85=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpDepartmentService.java | 24 +++++++++++++ .../api/impl/WxCpDepartmentServiceImpl.java | 28 +++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 2 ++ .../impl/WxCpDepartmentServiceImplTest.java | 34 +++++++++++++++---- 4 files changed, 81 insertions(+), 7 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java index c86816b7f2..b8e43cbdcb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java @@ -28,6 +28,18 @@ public interface WxCpDepartmentService { */ Long create(WxCpDepart depart) throws WxErrorException; + /** + *
+   * 部门管理接口 - 获取单个部门详情.
+   * 详情请见: https://developer.work.weixin.qq.com/document/path/95351
+   * 
+ * + * @param id 部门id + * @return 部门信息 + * @throws WxErrorException 异常 + */ + WxCpDepart get(Long id) throws WxErrorException; + /** *
    * 部门管理接口 - 获取部门列表.
@@ -40,6 +52,18 @@ public interface WxCpDepartmentService {
    */
   List list(Long id) throws WxErrorException;
 
+  /**
+   * 
+   * 部门管理接口 - 获取子部门ID列表.
+   * 详情请见: https://developer.work.weixin.qq.com/document/path/95350
+   * 
+ * + * @param id 部门id。获取指定部门及其下的子部门(以及子部门的子部门等等,递归)。 如果不填,默认获取全量组织架构 + * @return 子部门ID列表 + * @throws WxErrorException 异常 + */ + List simpleList(Long id) throws WxErrorException; + /** *
    * 部门管理接口 - 更新部门.
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImpl.java
index 3a5ef87985..b6d9cf29b1 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImpl.java
@@ -35,6 +35,18 @@ public Long create(WxCpDepart depart) throws WxErrorException {
     return GsonHelper.getAsLong(tmpJsonObject.get("id"));
   }
 
+  @Override
+  public WxCpDepart get(Long id) throws WxErrorException {
+    String url = String.format(this.mainService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_GET), id);
+    String responseContent = this.mainService.get(url, null);
+    JsonObject tmpJsonObject = GsonParser.parse(responseContent);
+    return WxCpGsonBuilder.create()
+      .fromJson(tmpJsonObject.get("department"),
+        new TypeToken() {
+        }.getType()
+      );
+  }
+
   @Override
   public void update(WxCpDepart group) throws WxErrorException {
     String url = this.mainService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_UPDATE);
@@ -62,4 +74,20 @@ public List list(Long id) throws WxErrorException {
         }.getType()
       );
   }
+
+  @Override
+  public List simpleList(Long id) throws WxErrorException {
+    String url = this.mainService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_SIMPLE_LIST);
+    if (id != null) {
+      url += "?id=" + id;
+    }
+
+    String responseContent = this.mainService.get(url, null);
+    JsonObject tmpJsonObject = GsonParser.parse(responseContent);
+    return WxCpGsonBuilder.create()
+      .fromJson(tmpJsonObject.get("department_id"),
+        new TypeToken>() {
+        }.getType()
+      );
+  }
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index 1b803cfdde..2155b4c611 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -71,8 +71,10 @@ interface Chat {
   interface Department {
     String DEPARTMENT_CREATE = "/cgi-bin/department/create";
     String DEPARTMENT_UPDATE = "/cgi-bin/department/update";
+    String DEPARTMENT_GET = "/cgi-bin/department/get?id=%d";
     String DEPARTMENT_DELETE = "/cgi-bin/department/delete?id=%d";
     String DEPARTMENT_LIST = "/cgi-bin/department/list";
+    String DEPARTMENT_SIMPLE_LIST = "/cgi-bin/department/simplelist";
   }
 
   interface Media {
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java
index 57957d3fb6..7417f8055a 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java
@@ -1,13 +1,15 @@
 package me.chanjar.weixin.cp.api.impl;
 
-import java.util.List;
-
-import org.testng.annotations.*;
-
 import com.google.inject.Inject;
+import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.cp.api.ApiTestModule;
 import me.chanjar.weixin.cp.api.WxCpService;
 import me.chanjar.weixin.cp.bean.WxCpDepart;
+import org.testng.annotations.DataProvider;
+import org.testng.annotations.Guice;
+import org.testng.annotations.Test;
+
+import java.util.List;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
@@ -36,11 +38,11 @@ public void testCreate() throws Exception {
   }
 
   @DataProvider
-  public Object[][] departIds(){
+  public Object[][] departIds() {
     return new Object[][]{
       {null},
-      {1},
-      {5}
+      {12L},
+      {5L}
     };
   }
 
@@ -70,4 +72,22 @@ public void testDelete() throws Exception {
     this.wxCpService.getDepartmentService().delete(this.depart.getId());
   }
 
+  @Test(dataProvider = "departIds")
+  public void testSimpleList(Long id) throws WxErrorException {
+    System.out.println("=================获取子部门ID列表");
+    List departList = this.wxCpService.getDepartmentService().simpleList(id);
+    assertThat(departList).isNotEmpty();
+    departList.forEach(System.out::println);
+  }
+
+  @Test(dataProvider = "departIds")
+  public void testGet(Long id) throws WxErrorException {
+    if (id == null) {
+      return;
+    }
+
+    WxCpDepart depart = this.wxCpService.getDepartmentService().get(id);
+    assertThat(depart).isNotNull();
+    System.out.println(depart);
+  }
 }

From 1df2dda1363ce7b0c83fc322ca8f6e60e1488b41 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Thu, 31 Mar 2022 22:28:04 +0800
Subject: [PATCH 161/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.2.9?=
 =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index 092bd86d71..b73530f343 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.2.8.B
+  4.2.9.B
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index 53cf990eff..231cd687e6 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index c56388479c..6068376804 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index e67848ffef..6c5064f001 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index b96bd641d0..165d910c53 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index e525e533e8..6fe4d58406 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index 9be2dc735c..1d9a661348 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index 3b95de027e..7f68c16430 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index 7417d74d07..e3c9d54ec2 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index fc25fecba7..ec7f05aba3 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index 6bb624e413..1234426a0c 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index c65d63f470..048d321fb2 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index 0adf9bf611..1597b7a45e 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index 8860c5899d..3843a9f6c2 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index dca5df40ae..51c8c26724 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index 62ca46cf9d..05911ebe6e 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.8.B
+    4.2.9.B
   
 
   weixin-java-qidian

From 2cb8331030ba5f129ab575947236b7587fca78bb Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sat, 2 Apr 2022 17:32:53 +0800
Subject: [PATCH 162/622] =?UTF-8?q?:art:=20=E3=80=90=E4=BC=81=E4=B8=9A?=
 =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E9=87=8D=E6=9E=84=E8=A7=84=E8=8C=83?=
 =?UTF-8?q?=E5=8C=96=E6=A8=A1=E6=9D=BF=E5=8D=A1=E7=89=87=E6=B6=88=E6=81=AF?=
 =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5=E5=91=BD=E5=90=8D=EF=BC=8C?=
 =?UTF-8?q?=E5=B9=B6=E8=A1=A5=E5=85=85card=5Fimage=E7=9A=84=E6=94=AF?=
 =?UTF-8?q?=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/bean/message/WxCpMessage.java   | 151 ++++++++--------
 .../messagebuilder/TemplateCardBuilder.java   | 170 +++++++++---------
 .../cp/bean/message/WxCpMessageTest.java      | 110 ++++++------
 3 files changed, 226 insertions(+), 205 deletions(-)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java
index e6df7c5d63..77bc0960a5 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java
@@ -71,9 +71,7 @@ public class WxCpMessage implements Serializable {
   private String taskId;
   private List taskButtons = new ArrayList<>();
 
-  /**
-   * 模板型卡片特有属性
-   */
+  // 模板型卡片特有属性
   /**
    * 模板卡片类型,文本通知型卡片填写 “text_notice”,
    * 图文展示型卡片此处填写 “news_notice”,
@@ -81,62 +79,62 @@ public class WxCpMessage implements Serializable {
    * 投票选择型卡片填写”vote_interaction”,
    * 多项选择型卡片填写 “multiple_interaction”
    */
-  private String card_type;
+  private String cardType;
 
   /**
    * 卡片来源样式信息,不需要来源样式可不填写
    * 来源图片的url
    */
-  private String source_icon_url;
+  private String sourceIconUrl;
   /**
    * 卡片来源样式信息,不需要来源样式可不填写
    * 来源图片的描述,建议不超过20个字
    */
-  private String source_desc;
+  private String sourceDesc;
 
   /**
    * 一级标题,建议不超过36个字
    */
-  private String main_title_title;
+  private String mainTitleTitle;
   /**
    * 标题辅助信息,建议不超过44个字
    */
-  private String main_title_desc;
+  private String mainTitleDesc;
 
   /**
    * 图文展示型的卡片必须有图片字段。
    * 图片的url.
    */
-  private String card_image_url;
+  private String cardImageUrl;
 
   /**
    * 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默认1.3
    */
-  private Float card_image_aspect_ratio;
+  private Float cardImageAspectRatio;
   /**
    * 关键数据样式
    * 关键数据样式的数据内容,建议不超过14个字
    */
-  private String emphasis_content_title;
+  private String emphasisContentTitle;
   /**
    * 关键数据样式的数据描述内容,建议不超过22个字
    */
-  private String emphasis_content_desc;
+  private String emphasisContentDesc;
 
   /**
    * 二级普通文本,建议不超过160个字
    */
-  private String sub_title_text;
+  private String subTitleText;
 
   /**
    * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4
    */
-  private List vertical_contents;
+  private List verticalContents;
 
   /**
    * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
    */
-  private List horizontal_contents;
+  private List horizontalContents;
 
   /**
    * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3
@@ -147,21 +145,21 @@ public class WxCpMessage implements Serializable {
    * 整体卡片的点击跳转事件,text_notice必填本字段
    * 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2]
    */
-  private Integer card_action_type;
+  private Integer cardActionType;
   /**
    * 跳转事件的url,card_action.type是1时必填
    */
-  private String card_action_url;
+  private String cardActionUrl;
 
   /**
    * 跳转事件的小程序的appid,必须是与当前应用关联的小程序,card_action.type是2时必填
    */
-  private String card_action_appid;
+  private String cardActionAppid;
 
   /**
    * 跳转事件的小程序的pagepath,card_action.type是2时选填
    */
-  private String card_action_pagepath;
+  private String cardActionPagepath;
 
   /**
    * 按钮交互型卡片需指定。
@@ -173,12 +171,12 @@ public class WxCpMessage implements Serializable {
    * 投票选择型卡片需要指定
    * 选择题key值,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节
    */
-  private String checkbox_question_key;
+  private String checkboxQuestionKey;
 
   /**
    * 选择题模式,单选:0,多选:1,不填默认0
    */
-  private Integer checkbox_mode;
+  private Integer checkboxMode;
 
   /**
    * 选项list,选项个数不超过 20 个,最少1个
@@ -189,11 +187,11 @@ public class WxCpMessage implements Serializable {
    * 提交按钮样式
    * 按钮文案,建议不超过10个字,不填默认为提交
    */
-  private String submit_button_text;
+  private String submitButtonText;
   /**
    * 提交按钮的key,会产生回调事件将本参数作为EventKey返回,最长支持1024字节
    */
-  private String submit_button_key;
+  private String submitButtonKey;
   /**
    * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器
    */
@@ -472,64 +470,75 @@ private void handleMsgType(JsonObject messageJson) {
       }
       case TEMPLATE_CARD: {
         JsonObject template = new JsonObject();
-        template.addProperty("card_type", this.getCard_type());
+        template.addProperty("card_type", this.getCardType());
 
-        if (StringUtils.isNotBlank(this.getSource_icon_url()) || StringUtils.isNotBlank(this.getSource_desc())) {
+        if (StringUtils.isNotBlank(this.getSourceIconUrl()) || StringUtils.isNotBlank(this.getSourceDesc())) {
           JsonObject source = new JsonObject();
-          if (StringUtils.isNotBlank(this.getSource_icon_url())) {
-            source.addProperty("icon_url", this.getSource_icon_url());
+          if (StringUtils.isNotBlank(this.getSourceIconUrl())) {
+            source.addProperty("icon_url", this.getSourceIconUrl());
           }
-          if (StringUtils.isNotBlank(this.getSource_desc())) {
-            source.addProperty("desc", this.getSource_desc());
+          if (StringUtils.isNotBlank(this.getSourceDesc())) {
+            source.addProperty("desc", this.getSourceDesc());
           }
           template.add("source", source);
         }
 
-        if (StringUtils.isNotBlank(this.getMain_title_title()) || StringUtils.isNotBlank(this.getMain_title_desc())) {
-          JsonObject main_title = new JsonObject();
-          if (StringUtils.isNotBlank(this.getMain_title_title())) {
-            main_title.addProperty("title", this.getMain_title_title());
+        if (StringUtils.isNotBlank(this.getMainTitleTitle()) || StringUtils.isNotBlank(this.getMainTitleDesc())) {
+          JsonObject mainTitle = new JsonObject();
+          if (StringUtils.isNotBlank(this.getMainTitleTitle())) {
+            mainTitle.addProperty("title", this.getMainTitleTitle());
+          }
+          if (StringUtils.isNotBlank(this.getMainTitleDesc())) {
+            mainTitle.addProperty("desc", this.getMainTitleDesc());
+          }
+          template.add("main_title", mainTitle);
+        }
+
+        if (StringUtils.isNotBlank(this.getCardImageUrl()) || this.getCardImageAspectRatio() != null) {
+          JsonObject cardImage = new JsonObject();
+          if (StringUtils.isNotBlank(this.getCardImageUrl())) {
+            cardImage.addProperty("url", this.getCardImageUrl());
           }
-          if (StringUtils.isNotBlank(this.getMain_title_desc())) {
-            main_title.addProperty("desc", this.getMain_title_desc());
+          if (null != this.getCardImageAspectRatio()) {
+            cardImage.addProperty("aspect_ratio", this.getCardImageAspectRatio());
           }
-          template.add("main_title", main_title);
+          template.add("card_image", cardImage);
         }
 
-        if (StringUtils.isNotBlank(this.getEmphasis_content_title()) || StringUtils.isNotBlank(this.getEmphasis_content_desc())) {
-          JsonObject emphasis_content = new JsonObject();
-          if (StringUtils.isNotBlank(this.getEmphasis_content_title())) {
-            emphasis_content.addProperty("title", this.getEmphasis_content_title());
+        if (StringUtils.isNotBlank(this.getEmphasisContentTitle()) || StringUtils.isNotBlank(this.getEmphasisContentDesc())) {
+          JsonObject emphasisContent = new JsonObject();
+          if (StringUtils.isNotBlank(this.getEmphasisContentTitle())) {
+            emphasisContent.addProperty("title", this.getEmphasisContentTitle());
           }
-          if (StringUtils.isNotBlank(this.getEmphasis_content_desc())) {
-            emphasis_content.addProperty("desc", this.getEmphasis_content_desc());
+          if (StringUtils.isNotBlank(this.getEmphasisContentDesc())) {
+            emphasisContent.addProperty("desc", this.getEmphasisContentDesc());
           }
-          template.add("emphasis_content", emphasis_content);
+          template.add("emphasis_content", emphasisContent);
         }
 
 
-        if (StringUtils.isNotBlank(this.getSub_title_text())) {
-          template.addProperty("sub_title_text", this.getSub_title_text());
+        if (StringUtils.isNotBlank(this.getSubTitleText())) {
+          template.addProperty("sub_title_text", this.getSubTitleText());
         }
 
         if (StringUtils.isNotBlank(this.getTaskId())) {
           template.addProperty("task_id", this.getTaskId());
         }
 
-        List verticalContents = this.getVertical_contents();
-        if (null != verticalContents && verticalContents.size() > 0) {
+        List verticalContents = this.getVerticalContents();
+        if (null != verticalContents && !verticalContents.isEmpty()) {
           JsonArray vContentJsonArray = new JsonArray();
-          for (VerticalContent vContent : this.getVertical_contents()) {
+          for (VerticalContent vContent : this.getVerticalContents()) {
             JsonObject tempObject = vContent.toJson();
             vContentJsonArray.add(tempObject);
           }
           template.add("vertical_content_list", vContentJsonArray);
         }
 
-        List horizontalContents = this.getHorizontal_contents();
-        if (null != horizontalContents && horizontalContents.size() > 0) {
+        List horizontalContents = this.getHorizontalContents();
+        if (null != horizontalContents && !horizontalContents.isEmpty()) {
           JsonArray hContentJsonArray = new JsonArray();
-          for (HorizontalContent hContent : this.getHorizontal_contents()) {
+          for (HorizontalContent hContent : this.getHorizontalContents()) {
             JsonObject tempObject = hContent.toJson();
             hContentJsonArray.add(tempObject);
           }
@@ -537,7 +546,7 @@ private void handleMsgType(JsonObject messageJson) {
         }
 
         List jumps = this.getJumps();
-        if (null != jumps && jumps.size() > 0) {
+        if (null != jumps && !jumps.isEmpty()) {
           JsonArray jumpJsonArray = new JsonArray();
           for (TemplateCardJump jump : this.getJumps()) {
             JsonObject tempObject = jump.toJson();
@@ -546,23 +555,23 @@ private void handleMsgType(JsonObject messageJson) {
           template.add("jump_list", jumpJsonArray);
         }
 
-        if (null != this.getCard_action_type()) {
+        if (null != this.getCardActionType()) {
           JsonObject cardAction = new JsonObject();
-          cardAction.addProperty("type", this.getCard_action_type());
-          if (StringUtils.isNotBlank(this.getCard_action_url())) {
-            cardAction.addProperty("url", this.getCard_action_url());
+          cardAction.addProperty("type", this.getCardActionType());
+          if (StringUtils.isNotBlank(this.getCardActionUrl())) {
+            cardAction.addProperty("url", this.getCardActionUrl());
           }
-          if (StringUtils.isNotBlank(this.getCard_action_appid())) {
-            cardAction.addProperty("appid", this.getCard_action_appid());
+          if (StringUtils.isNotBlank(this.getCardActionAppid())) {
+            cardAction.addProperty("appid", this.getCardActionAppid());
           }
-          if (StringUtils.isNotBlank(this.getCard_action_pagepath())) {
-            cardAction.addProperty("pagepath", this.getCard_action_pagepath());
+          if (StringUtils.isNotBlank(this.getCardActionPagepath())) {
+            cardAction.addProperty("pagepath", this.getCardActionPagepath());
           }
           template.add("card_action", cardAction);
         }
 
         List buttons = this.getButtons();
-        if (null != buttons && buttons.size() > 0) {
+        if (null != buttons && !buttons.isEmpty()) {
           JsonArray btnJsonArray = new JsonArray();
           for (TemplateCardButton btn : this.getButtons()) {
             JsonObject tempObject = btn.toJson();
@@ -572,11 +581,11 @@ private void handleMsgType(JsonObject messageJson) {
         }
 
         // checkbox
-        if (StringUtils.isNotBlank(this.getCheckbox_question_key())) {
+        if (StringUtils.isNotBlank(this.getCheckboxQuestionKey())) {
           JsonObject checkBox = new JsonObject();
-          checkBox.addProperty("question_key", this.getCheckbox_question_key());
-          if (null != this.getCheckbox_mode()) {
-            checkBox.addProperty("mode", this.getCheckbox_mode());
+          checkBox.addProperty("question_key", this.getCheckboxQuestionKey());
+          if (null != this.getCheckboxMode()) {
+            checkBox.addProperty("mode", this.getCheckboxMode());
           }
           JsonArray optionArray = new JsonArray();
           for (CheckboxOption option : this.getOptions()) {
@@ -589,20 +598,20 @@ private void handleMsgType(JsonObject messageJson) {
         }
 
         // submit_button
-        if (StringUtils.isNotBlank(this.getSubmit_button_text()) || StringUtils.isNotBlank(this.getSubmit_button_key())) {
+        if (StringUtils.isNotBlank(this.getSubmitButtonText()) || StringUtils.isNotBlank(this.getSubmitButtonKey())) {
           JsonObject submit_button = new JsonObject();
-          if (StringUtils.isNotBlank(this.getSubmit_button_text())) {
-            submit_button.addProperty("text", this.getSubmit_button_text());
+          if (StringUtils.isNotBlank(this.getSubmitButtonText())) {
+            submit_button.addProperty("text", this.getSubmitButtonText());
           }
-          if (StringUtils.isNotBlank(this.getSubmit_button_key())) {
-            submit_button.addProperty("key", this.getSubmit_button_key());
+          if (StringUtils.isNotBlank(this.getSubmitButtonKey())) {
+            submit_button.addProperty("key", this.getSubmitButtonKey());
           }
           template.add("submit_button", submit_button);
         }
 
         // select_list
         List selects = this.getSelects();
-        if (null != selects && selects.size() > 0) {
+        if (null != selects && !selects.isEmpty()) {
           JsonArray selectJsonArray = new JsonArray();
           for (MultipleSelect select : this.getSelects()) {
             JsonObject tempObject = select.toJson();
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java
index d936cda0f3..09a506d8e9 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java
@@ -23,62 +23,62 @@ public class TemplateCardBuilder extends BaseBuilder {
    * 投票选择型卡片填写”vote_interaction”,
    * 多项选择型卡片填写 “multiple_interaction”
    */
-  private String card_type;
+  private String cardType;
 
   /**
    * 卡片来源样式信息,不需要来源样式可不填写
    * 来源图片的url
    */
-  private String source_icon_url;
+  private String sourceIconUrl;
   /**
    * 卡片来源样式信息,不需要来源样式可不填写
    * 来源图片的描述,建议不超过20个字
    */
-  private String source_desc;
+  private String sourceDesc;
 
   /**
    * 一级标题,建议不超过36个字
    */
-  private String main_title_title;
+  private String mainTitleTitle;
   /**
    * 标题辅助信息,建议不超过44个字
    */
-  private String main_title_desc;
+  private String mainTitleDesc;
 
   /**
    * 图文展示型的卡片必须有图片字段。
    * 图片的url.
    */
-  private String card_image_url;
+  private String cardImageUrl;
 
   /**
    * 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默认1.3
    */
-  private Float card_image_aspect_ratio;
+  private Float cardImageAspectRatio;
   /**
    * 关键数据样式
    * 关键数据样式的数据内容,建议不超过14个字
    */
-  private String emphasis_content_title;
+  private String emphasisContentTitle;
   /**
    * 关键数据样式的数据描述内容,建议不超过22个字
    */
-  private String emphasis_content_desc;
+  private String emphasisContentDesc;
 
   /**
    * 二级普通文本,建议不超过160个字
    */
-  private String sub_title_text;
+  private String subTitleText;
 
   /**
    * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4
    */
-  private List vertical_contents;
+  private List verticalContents;
 
   /**
    * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
    */
-  private List horizontal_contents;
+  private List horizontalContents;
 
   /**
    * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3
@@ -89,26 +89,26 @@ public class TemplateCardBuilder extends BaseBuilder {
    * 整体卡片的点击跳转事件,text_notice必填本字段
    * 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2]
    */
-  private Integer card_action_type;
+  private Integer cardActionType;
   /**
    * 跳转事件的url,card_action.type是1时必填
    */
-  private String card_action_url;
+  private String cardActionUrl;
 
   /**
    * 跳转事件的小程序的appid,必须是与当前应用关联的小程序,card_action.type是2时必填
    */
-  private String card_action_appid;
+  private String cardActionAppid;
 
   /**
    * 跳转事件的小程序的pagepath,card_action.type是2时选填
    */
-  private String card_action_pagepath;
+  private String cardActionPagepath;
 
   /**
    * 任务id,同一个应用任务id不能重复,只能由数字、字母和“_-@”组成,最长128字节
    */
-  private String task_id;
+  private String taskId;
 
   /**
    * 按钮交互型卡片需指定。
@@ -120,12 +120,12 @@ public class TemplateCardBuilder extends BaseBuilder {
    * 投票选择型卡片需要指定
    * 选择题key值,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节
    */
-  private String checkbox_question_key;
+  private String checkboxQuestionKey;
 
   /**
    * 选择题模式,单选:0,多选:1,不填默认0
    */
-  private Integer checkbox_mode;
+  private Integer checkboxMode;
 
   /**
    * 选项list,选项个数不超过 20 个,最少1个
@@ -136,11 +136,11 @@ public class TemplateCardBuilder extends BaseBuilder {
    * 提交按钮样式
    * 按钮文案,建议不超过10个字,不填默认为提交
    */
-  private String submit_button_text;
+  private String submitButtonText;
   /**
    * 提交按钮的key,会产生回调事件将本参数作为EventKey返回,最长支持1024字节
    */
-  private String submit_button_key;
+  private String submitButtonKey;
 
   /**
    * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器
@@ -157,53 +157,63 @@ public TemplateCardBuilder() {
     this.msgType = WxConsts.KefuMsgType.TEMPLATE_CARD;
   }
 
-  public TemplateCardBuilder card_type(String card_type) {
-    this.card_type = card_type;
+  public TemplateCardBuilder cardType(String cardType) {
+    this.cardType = cardType;
     return this;
   }
 
-  public TemplateCardBuilder source_icon_url(String source_icon_url) {
-    this.source_icon_url = source_icon_url;
+  public TemplateCardBuilder cardImageUrl(String cardImageUrl) {
+    this.cardImageUrl = cardImageUrl;
     return this;
   }
 
-  public TemplateCardBuilder source_desc(String source_desc) {
-    this.source_desc = source_desc;
+  public TemplateCardBuilder cardImageAspectRatio(Float cardImageAspectRatio) {
+    this.cardImageAspectRatio = cardImageAspectRatio;
     return this;
   }
 
-  public TemplateCardBuilder main_title_title(String main_title_title) {
-    this.main_title_title = main_title_title;
+  public TemplateCardBuilder sourceIconUrl(String sourceIconUrl) {
+    this.sourceIconUrl = sourceIconUrl;
     return this;
   }
 
-  public TemplateCardBuilder main_title_desc(String mainTitleDesc) {
-    this.main_title_desc = mainTitleDesc;
+  public TemplateCardBuilder sourceDesc(String sourceDesc) {
+    this.sourceDesc = sourceDesc;
     return this;
   }
 
-  public TemplateCardBuilder emphasis_content_title(String emphasis_content_title) {
-    this.emphasis_content_title = emphasis_content_title;
+  public TemplateCardBuilder mainTitleTitle(String mainTitleTitle) {
+    this.mainTitleTitle = mainTitleTitle;
     return this;
   }
 
-  public TemplateCardBuilder emphasis_content_desc(String emphasis_content_desc) {
-    this.emphasis_content_desc = emphasis_content_desc;
+  public TemplateCardBuilder mainTitleDesc(String mainTitleDesc) {
+    this.mainTitleDesc = mainTitleDesc;
     return this;
   }
 
-  public TemplateCardBuilder sub_title_text(String sub_title_text) {
-    this.sub_title_text = sub_title_text;
+  public TemplateCardBuilder emphasisContentTitle(String emphasisContentTitle) {
+    this.emphasisContentTitle = emphasisContentTitle;
     return this;
   }
 
-  public TemplateCardBuilder vertical_contents(List vertical_contents) {
-    this.vertical_contents = vertical_contents;
+  public TemplateCardBuilder emphasisContentDesc(String emphasisContentDesc) {
+    this.emphasisContentDesc = emphasisContentDesc;
     return this;
   }
 
-  public TemplateCardBuilder horizontal_contents(List horizontal_contents) {
-    this.horizontal_contents = horizontal_contents;
+  public TemplateCardBuilder subTitleText(String subTitleText) {
+    this.subTitleText = subTitleText;
+    return this;
+  }
+
+  public TemplateCardBuilder verticalContents(List verticalContents) {
+    this.verticalContents = verticalContents;
+    return this;
+  }
+
+  public TemplateCardBuilder horizontalContents(List horizontalContents) {
+    this.horizontalContents = horizontalContents;
     return this;
   }
 
@@ -212,28 +222,28 @@ public TemplateCardBuilder jumps(List jumps) {
     return this;
   }
 
-  public TemplateCardBuilder card_action_type(Integer card_action_type) {
-    this.card_action_type = card_action_type;
+  public TemplateCardBuilder cardActionType(Integer cardActionType) {
+    this.cardActionType = cardActionType;
     return this;
   }
 
-  public TemplateCardBuilder card_action_url(String card_action_url) {
-    this.card_action_url = card_action_url;
+  public TemplateCardBuilder cardActionUrl(String cardActionUrl) {
+    this.cardActionUrl = cardActionUrl;
     return this;
   }
 
-  public TemplateCardBuilder card_action_appid(String card_action_appid) {
-    this.card_action_appid = card_action_appid;
+  public TemplateCardBuilder cardActionAppid(String cardActionAppid) {
+    this.cardActionAppid = cardActionAppid;
     return this;
   }
 
-  public TemplateCardBuilder card_action_pagepath(String card_action_pagepath) {
-    this.card_action_pagepath = card_action_pagepath;
+  public TemplateCardBuilder cardActionPagepath(String cardActionPagepath) {
+    this.cardActionPagepath = cardActionPagepath;
     return this;
   }
 
-  public TemplateCardBuilder task_id(String taskId) {
-    this.task_id = taskId;
+  public TemplateCardBuilder taskId(String taskId) {
+    this.taskId = taskId;
     return this;
   }
 
@@ -242,13 +252,13 @@ public TemplateCardBuilder buttons(List buttons) {
     return this;
   }
 
-  public TemplateCardBuilder checkbox_question_key(String checkbox_question_key) {
-    this.checkbox_question_key = checkbox_question_key;
+  public TemplateCardBuilder checkboxQuestionKey(String checkboxQuestionKey) {
+    this.checkboxQuestionKey = checkboxQuestionKey;
     return this;
   }
 
-  public TemplateCardBuilder checkbox_mode(Integer checkbox_mode) {
-    this.checkbox_mode = checkbox_mode;
+  public TemplateCardBuilder checkboxMode(Integer checkboxMode) {
+    this.checkboxMode = checkboxMode;
     return this;
   }
 
@@ -257,13 +267,13 @@ public TemplateCardBuilder options(List options) {
     return this;
   }
 
-  public TemplateCardBuilder submit_button_text(String submit_button_text) {
-    this.submit_button_text = submit_button_text;
+  public TemplateCardBuilder submitButtonText(String submitButtonText) {
+    this.submitButtonText = submitButtonText;
     return this;
   }
 
-  public TemplateCardBuilder submit_button_key(String submit_button_key) {
-    this.submit_button_key = submit_button_key;
+  public TemplateCardBuilder submitButtonKey(String submitButtonKey) {
+    this.submitButtonKey = submitButtonKey;
     return this;
   }
 
@@ -281,30 +291,30 @@ public TemplateCardBuilder quoteArea(QuoteArea quoteArea) {
   public WxCpMessage build() {
     WxCpMessage m = super.build();
     m.setSafe(null);
-    m.setCard_type(this.card_type);
-    m.setSource_icon_url(this.source_icon_url);
-    m.setSource_desc(this.source_desc);
-    m.setMain_title_title(this.main_title_title);
-    m.setMain_title_desc(this.main_title_desc);
-    m.setCard_image_url(this.card_image_url);
-    m.setCard_image_aspect_ratio(this.card_image_aspect_ratio);
-    m.setEmphasis_content_title(this.emphasis_content_title);
-    m.setEmphasis_content_desc(this.emphasis_content_desc);
-    m.setSub_title_text(this.sub_title_text);
-    m.setVertical_contents(this.vertical_contents);
-    m.setHorizontal_contents(this.horizontal_contents);
+    m.setCardType(this.cardType);
+    m.setSourceIconUrl(this.sourceIconUrl);
+    m.setSourceDesc(this.sourceDesc);
+    m.setMainTitleTitle(this.mainTitleTitle);
+    m.setMainTitleDesc(this.mainTitleDesc);
+    m.setCardImageUrl(this.cardImageUrl);
+    m.setCardImageAspectRatio(this.cardImageAspectRatio);
+    m.setEmphasisContentTitle(this.emphasisContentTitle);
+    m.setEmphasisContentDesc(this.emphasisContentDesc);
+    m.setSubTitleText(this.subTitleText);
+    m.setVerticalContents(this.verticalContents);
+    m.setHorizontalContents(this.horizontalContents);
     m.setJumps(this.jumps);
-    m.setCard_action_type(this.card_action_type);
-    m.setCard_action_appid(this.card_action_appid);
-    m.setCard_action_pagepath(this.card_action_pagepath);
-    m.setCard_action_url(this.card_action_url);
-    m.setTaskId(this.task_id);
+    m.setCardActionType(this.cardActionType);
+    m.setCardActionAppid(this.cardActionAppid);
+    m.setCardActionPagepath(this.cardActionPagepath);
+    m.setCardActionUrl(this.cardActionUrl);
+    m.setTaskId(this.taskId);
     m.setButtons(this.buttons);
-    m.setCheckbox_mode(this.checkbox_mode);
-    m.setCheckbox_question_key(this.checkbox_question_key);
+    m.setCheckboxMode(this.checkboxMode);
+    m.setCheckboxQuestionKey(this.checkboxQuestionKey);
     m.setOptions(this.options);
-    m.setSubmit_button_text(this.submit_button_text);
-    m.setSubmit_button_key(this.submit_button_key);
+    m.setSubmitButtonText(this.submitButtonText);
+    m.setSubmitButtonKey(this.submitButtonKey);
     m.setSelects(this.selects);
     m.setQuoteArea(this.quoteArea);
     return m;
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java
index 552fe3d5ab..c8a3676149 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java
@@ -188,20 +188,20 @@ public void TestTemplateCardBuilder_text_notice() {
       .build();
     WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID")
       .agentId(1000002)
-      .card_type(WxConsts.TemplateCardType.TEXT_NOTICE)
-      .source_icon_url("图片的url")
-      .source_desc("企业微信")
-      .main_title_title("欢迎使用企业微信")
-      .main_title_desc("您的好友正在邀请您加入企业微信")
-      .emphasis_content_title("100")
-      .emphasis_content_desc("核心数据")
-      .sub_title_text("下载企业微信还能抢红包!")
-      .horizontal_contents(Arrays.asList(hContent1,hContent2,hContent3))
+      .cardType(WxConsts.TemplateCardType.TEXT_NOTICE)
+      .sourceIconUrl("图片的url")
+      .sourceDesc("企业微信")
+      .mainTitleTitle("欢迎使用企业微信")
+      .mainTitleDesc("您的好友正在邀请您加入企业微信")
+      .emphasisContentTitle("100")
+      .emphasisContentDesc("核心数据")
+      .subTitleText("下载企业微信还能抢红包!")
+      .horizontalContents(Arrays.asList(hContent1,hContent2,hContent3))
       .jumps(Arrays.asList(jump1,jump2))
-      .card_action_type(2)
-      .card_action_appid("小程序的appid")
-      .card_action_url("https://work.weixin.qq.com")
-      .card_action_pagepath("/index.html")
+      .cardActionType(2)
+      .cardActionAppid("小程序的appid")
+      .cardActionUrl("https://work.weixin.qq.com")
+      .cardActionPagepath("/index.html")
       .quoteArea(quoteArea)
       .build();
     reply.setEnableIdTrans(false);
@@ -259,18 +259,18 @@ public void TestTemplateCardBuilder_news_notice() {
 
     WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID")
       .agentId(1000002)
-      .card_type(WxConsts.TemplateCardType.NEWS_NOTICE)
-      .source_icon_url("图片的url")
-      .source_desc("企业微信")
-      .main_title_title("欢迎使用企业微信")
-      .main_title_desc("您的好友正在邀请您加入企业微信")
-      .vertical_contents(Arrays.asList(vContent1,vContent2))
-      .horizontal_contents(Arrays.asList(hContent1,hContent2,hContent3))
+      .cardType(WxConsts.TemplateCardType.NEWS_NOTICE)
+      .sourceIconUrl("图片的url")
+      .sourceDesc("企业微信")
+      .mainTitleTitle("欢迎使用企业微信")
+      .mainTitleDesc("您的好友正在邀请您加入企业微信")
+      .verticalContents(Arrays.asList(vContent1,vContent2))
+      .horizontalContents(Arrays.asList(hContent1,hContent2,hContent3))
       .jumps(Arrays.asList(jump1,jump2))
-      .card_action_type(2)
-      .card_action_appid("小程序的appid")
-      .card_action_url("https://work.weixin.qq.com")
-      .card_action_pagepath("/index.html")
+      .cardActionType(2)
+      .cardActionAppid("小程序的appid")
+      .cardActionUrl("https://work.weixin.qq.com")
+      .cardActionPagepath("/index.html")
       .build();
     reply.setEnableIdTrans(false);
     reply.setEnableDuplicateCheck(false);
@@ -316,18 +316,18 @@ public void TestTemplateCardBuilder_button_interaction() {
 
     WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID")
       .agentId(1000002)
-      .card_type(WxConsts.TemplateCardType.BUTTON_INTERACTION)
-      .source_icon_url("图片的url")
-      .source_desc("企业微信")
-      .main_title_title("欢迎使用企业微信")
-      .main_title_desc("您的好友正在邀请您加入企业微信")
-      .sub_title_text("下载企业微信还能抢红包!")
-      .horizontal_contents(Arrays.asList(hContent1,hContent2,hContent3))
-      .card_action_type(2)
-      .card_action_appid("小程序的appid")
-      .card_action_url("https://work.weixin.qq.com")
-      .card_action_pagepath("/index.html")
-      .task_id("task_id")
+      .cardType(WxConsts.TemplateCardType.BUTTON_INTERACTION)
+      .sourceIconUrl("图片的url")
+      .sourceDesc("企业微信")
+      .mainTitleTitle("欢迎使用企业微信")
+      .mainTitleDesc("您的好友正在邀请您加入企业微信")
+      .subTitleText("下载企业微信还能抢红包!")
+      .horizontalContents(Arrays.asList(hContent1,hContent2,hContent3))
+      .cardActionType(2)
+      .cardActionAppid("小程序的appid")
+      .cardActionUrl("https://work.weixin.qq.com")
+      .cardActionPagepath("/index.html")
+      .taskId("task_id")
       .buttons(Arrays.asList(tButton1,tButton2))
       .build();
     reply.setEnableIdTrans(false);
@@ -356,22 +356,24 @@ public void TestTemplateCardBuilder_vote_interaction() {
 
     WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID")
       .agentId(1000002)
-      .card_type(WxConsts.TemplateCardType.VOTE_INTERACTION)
-      .source_icon_url("图片的url")
-      .source_desc("企业微信")
-      .main_title_title("欢迎使用企业微信")
-      .main_title_desc("您的好友正在邀请您加入企业微信")
-      .task_id("task_id")
-      .checkbox_question_key("question_key1")
-      .checkbox_mode(1)
+      .cardType(WxConsts.TemplateCardType.VOTE_INTERACTION)
+      .sourceIconUrl("图片的url")
+      .sourceDesc("企业微信")
+      .mainTitleTitle("欢迎使用企业微信")
+      .mainTitleDesc("您的好友正在邀请您加入企业微信")
+      .taskId("task_id")
+      .checkboxQuestionKey("question_key1")
+      .checkboxMode(1)
       .options(Arrays.asList(option1,option2))
-      .submit_button_key("key")
-      .submit_button_text("提交")
+      .submitButtonKey("key")
+      .submitButtonText("提交")
       .build();
+
     reply.setEnableIdTrans(false);
     reply.setEnableDuplicateCheck(false);
     reply.setDuplicateCheckInterval(1800);
     System.out.println(reply.toJson());
+
     assertThat(reply.toJson())
       .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"vote_interaction\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"task_id\":\"task_id\",\"checkbox\":{\"question_key\":\"question_key1\",\"mode\":1,\"option_list\":[{\"id\":\"option_id1\",\"text\":\"选择题选项1\",\"is_checked\":true},{\"id\":\"option_id2\",\"text\":\"选择题选项2\",\"is_checked\":false}]},\"submit_button\":{\"text\":\"提交\",\"key\":\"key\"}}}");
   }
@@ -414,15 +416,15 @@ public void TestTemplateCardBuilder_multiple_interaction() {
 
     WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID")
       .agentId(1000002)
-      .card_type(WxConsts.TemplateCardType.MULTIPLE_INTERACTION)
-      .source_icon_url("图片的url")
-      .source_desc("企业微信")
-      .main_title_title("欢迎使用企业微信")
-      .main_title_desc("您的好友正在邀请您加入企业微信")
-      .task_id("task_id")
+      .cardType(WxConsts.TemplateCardType.MULTIPLE_INTERACTION)
+      .sourceIconUrl("图片的url")
+      .sourceDesc("企业微信")
+      .mainTitleTitle("欢迎使用企业微信")
+      .mainTitleDesc("您的好友正在邀请您加入企业微信")
+      .taskId("task_id")
       .selects(Arrays.asList(mSelect1,mSelect2))
-      .submit_button_key("key")
-      .submit_button_text("提交")
+      .submitButtonKey("key")
+      .submitButtonText("提交")
       .build();
     reply.setEnableIdTrans(false);
     reply.setEnableDuplicateCheck(false);

From e2c24124e1c51e61a3352843472fddde0a1562ca Mon Sep 17 00:00:00 2001
From: Boris 
Date: Sat, 2 Apr 2022 20:48:20 +0800
Subject: [PATCH 163/622] =?UTF-8?q?:new:=20#2574=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E7=89=A9=E6=B5=81=E6=9C=8D=E5=8A=A1?=
 =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=B3=E6=97=B6=E9=85=8D=E9=80=81=E6=9F=A5?=
 =?UTF-8?q?=E8=AF=A2=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/api/WxMaExpressService.java    |   3 +
 .../api/WxMaImmediateDeliveryService.java     | 164 +++++++++++-------
 .../WxMaImmediateDeliveryServiceImpl.java     |  29 ++++
 .../delivery/QueryWaybillTraceRequest.java    |  46 +++++
 .../delivery/QueryWaybillTraceResponse.java   | 123 +++++++++++++
 .../bean/delivery/TraceWaybillRequest.java    | 101 +++++++++++
 .../bean/delivery/TraceWaybillResponse.java   |  34 ++++
 .../bean/delivery/WaybillGoodsInfo.java       |  59 +++++++
 .../miniapp/constant/WxMaApiUrlConstants.java |  14 ++
 9 files changed, 507 insertions(+), 66 deletions(-)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java
index b8229ceeb3..cbac84c744 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java
@@ -136,4 +136,7 @@ public interface WxMaExpressService {
    * @throws WxErrorException 模拟更新订单状态失败时返回
    */
   void testUpdateOrder(WxMaExpressTestUpdateOrderRequest wxMaExpressTestUpdateOrderRequest) throws WxErrorException;
+
+
+
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java
index d372799ecf..f08f510e39 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java
@@ -11,6 +11,10 @@
 import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse;
 import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest;
 import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse;
+import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceRequest;
+import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceResponse;
+import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillRequest;
+import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillResponse;
 import me.chanjar.weixin.common.error.WxErrorException;
 
 /**
@@ -25,76 +29,104 @@
  */
 public interface WxMaImmediateDeliveryService {
 
-    /**
-     * 拉取已绑定账号.
-     * 
-     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html
-     * 
- * - * @return 响应 - * @throws WxErrorException 异常 - */ - BindAccountResponse getBindAccount() throws WxErrorException; + /** + * 拉取已绑定账号. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html
+   * 
+ * + * @return 响应 + * @throws WxErrorException 异常 + */ + BindAccountResponse getBindAccount() throws WxErrorException; - /** - * 下配送单接口. - *
-     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html
-     * 
- * - * @param request request - * @return 响应 - * @throws WxErrorException 异常 - */ - AddOrderResponse addOrder(AddOrderRequest request) throws WxErrorException; + /** + * 下配送单接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + AddOrderResponse addOrder(AddOrderRequest request) throws WxErrorException; - /** - * 拉取配送单信息. - *
-     * 商家可使用本接口查询某一配送单的配送状态,便于商家掌握配送情况。
-     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html
-     * 
- * - * @param request request - * @return 响应 - * @throws WxErrorException 异常 - */ - GetOrderResponse getOrder(GetOrderRequest request) throws WxErrorException; + /** + * 拉取配送单信息. + *
+   * 商家可使用本接口查询某一配送单的配送状态,便于商家掌握配送情况。
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + GetOrderResponse getOrder(GetOrderRequest request) throws WxErrorException; - /** - * 取消配送单接口. - *
-     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html
-     * 
- * - * @param request request - * @return 响应 - * @throws WxErrorException 异常 - */ - CancelOrderResponse cancelOrder(CancelOrderRequest request) throws WxErrorException; + /** + * 取消配送单接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + CancelOrderResponse cancelOrder(CancelOrderRequest request) throws WxErrorException; - /** - * 异常件退回商家商家确认收货接口. - *
-     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html
-     * 
- * - * @param request request - * @return 响应 - * @throws WxErrorException 异常 - */ - AbnormalConfirmResponse abnormalConfirm(AbnormalConfirmRequest request) throws WxErrorException; + /** + * 异常件退回商家商家确认收货接口. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + AbnormalConfirmResponse abnormalConfirm(AbnormalConfirmRequest request) throws WxErrorException; + + /** + * 模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方. + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + MockUpdateOrderResponse mockUpdateOrder(MockUpdateOrderRequest request) throws WxErrorException; + + + /** + * 商户使用此接口向微信提供某交易单号对应的运单号。微信后台会跟踪运单的状态变化 + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/express_search.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + TraceWaybillResponse traceWaybill(TraceWaybillRequest request) throws WxErrorException; + + + /** + * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息 + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/express_search.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + QueryWaybillTraceResponse queryWaybillTrace(QueryWaybillTraceRequest request) + throws WxErrorException; - /** - * 模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方. - *
-     * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html
-     * 
- * - * @param request request - * @return 响应 - * @throws WxErrorException 异常 - */ - MockUpdateOrderResponse mockUpdateOrder(MockUpdateOrderRequest request) throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java index 75f88eb63c..18f99a8600 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -13,8 +13,14 @@ import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceRequest; +import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceResponse; +import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillRequest; +import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillResponse; import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; import cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants; +import cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.InstantDelivery; +import cn.binarywang.wx.miniapp.constant.WxMaConstants; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import javassist.bytecode.ConstPool; @@ -157,6 +163,29 @@ public MockUpdateOrderResponse mockUpdateOrder(final MockUpdateOrderRequest requ MockUpdateOrderResponse.class); } + @Override + public TraceWaybillResponse traceWaybill( + TraceWaybillRequest request) throws WxErrorException { + String responseContent = this.wxMaService.post(InstantDelivery.TRACE_WAYBILL_URL, request); + TraceWaybillResponse response = TraceWaybillResponse.fromJson(responseContent); + if (response.getErrcode() == -1) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return response; + + } + + @Override + public QueryWaybillTraceResponse queryWaybillTrace( + QueryWaybillTraceRequest request) throws WxErrorException { + String responseContent = this.wxMaService.post(InstantDelivery.QUERY_WAYBILL_TRACE_URL, request); + QueryWaybillTraceResponse response = QueryWaybillTraceResponse.fromJson(responseContent); + if (response.getErrcode() == -1) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return response; + } + /** * 解析响应. * diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceRequest.java new file mode 100644 index 0000000000..b7069a8737 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceRequest.java @@ -0,0 +1,46 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + *
+ * 查询运单接口 query_trace
+ *
+ * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class QueryWaybillTraceRequest implements Serializable { + + private static final long serialVersionUID = -7538739003766268386L; + + + /** + * 查询id + *
+   * 是否必填: 是
+   * 描述: 可以从 传运单接口 trace_waybill 取数据
+   * 
+ */ + @SerializedName("waybill_token") + private String waybillToken; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceResponse.java new file mode 100644 index 0000000000..726705cf8d --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryWaybillTraceResponse.java @@ -0,0 +1,123 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + *
+ * 查询运单接口 query_trace 响应参数
+ *
+ * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Accessors(chain = true) +public class QueryWaybillTraceResponse extends WxMaBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 运单信息. + */ + @SerializedName("waybill_info") + private WaybillInfo waybillInfo; + + /** + * 商品信息 + */ + @SerializedName("shop_info") + private ShopInfo shopInfo; + + /** + * 运力信息. + */ + @SerializedName("delivery_info") + private DeliveryInfo deliveryInfo; + + + public static QueryWaybillTraceResponse fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, QueryWaybillTraceResponse.class); + } + + /** + * 运单信息. + */ + @Data + @Accessors(chain = true) + public static class WaybillInfo implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 运单状态 释义 + *
+     *
+     * 0	运单不存在或者未揽收
+     * 1	已揽件
+     * 2	运输中
+     * 3	派件中
+     * 4	已签收
+     * 5	异常
+     * 6	代签收
+     *
+     * 
+ */ + @SerializedName("status") + private Integer status; + + /** + * 查询id. + */ + @SerializedName("waybill_token") + private String waybillToken; + } + + /** + * 商品信息. + */ + @Data + @Accessors(chain = true) + public static class ShopInfo implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 配送公司Id. + */ + @SerializedName("goods_info") + private WaybillGoodsInfo goodsInfo; + + + } + + + /** + * 运力信息. + */ + @Data + @Accessors(chain = true) + public static class DeliveryInfo implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 配送公司Id. + */ + @SerializedName("delivery_id") + private String deliveryId; + + /** + * 运力公司名称. + */ + @SerializedName("delivery_name") + private String deliveryName; + + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillRequest.java new file mode 100644 index 0000000000..0f929956a2 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillRequest.java @@ -0,0 +1,101 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + *
+ * 传运单接口 trace_waybill
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class TraceWaybillRequest implements Serializable { + + private static final long serialVersionUID = -7538739003766268386L; + + + /** + * 用户openid + *
+   * 是否必填: 是
+   * 描述: 用户openid
+   * 
+ */ + @SerializedName("openid") + private String openid; + + /** + * 寄件人手机号 + *
+   * 是否必填: 否
+   * 描述:
+   * 
+ */ + @SerializedName("sender_phone") + private String senderPhone; + + /** + * 收件人手机号 + *
+   * 是否必填: 否
+   * 描述:部分运力需要用户手机号作为查单依据
+   * 
+ */ + @SerializedName("receiver_phone") + private String receiverPhone; + + /** + * 运单ID + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * 交易单号(微信支付生成的交易单号,一般以420开头) + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("trans_id") + private String transId; + + + /** + * 点击落地页商品卡片跳转路径(建议为订单详情页path),不传默认跳转小程序首页。 + *
+   * 是否必填: 否
+   * 
+ */ + @SerializedName("order_detail_path") + private String orderDetailPath; + + /** + * 商品信息 + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("goods_info") + private WaybillGoodsInfo goodsInfo; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillResponse.java new file mode 100644 index 0000000000..836e51ba07 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/TraceWaybillResponse.java @@ -0,0 +1,34 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + *
+ * 传运单接口 trace_waybill 响应参数
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Accessors(chain = true) +public class TraceWaybillResponse extends WxMaBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 查询id. + */ + @SerializedName("waybill_token") + private String waybillToken; + + + public static TraceWaybillResponse fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, TraceWaybillResponse.class); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java new file mode 100644 index 0000000000..709d316ec6 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java @@ -0,0 +1,59 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * 运单商品信息 + * + * @author boris + * @since 2022-04-01 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WaybillGoodsInfo implements Serializable { + + private static final long serialVersionUID = 5643624677715536605L; + + + + /** + * 商品信息 + */ + @SerializedName("detail_list") + private List goodsItemList; + + public static WaybillGoodsInfo fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, WaybillGoodsInfo.class); + } + + @Data + public static class GoodsItem { + + /** + * 商品名称 + *
+     * 是否必填: 是
+     * 
+ */ + @SerializedName("goods_name") + private Long goodsName; + + /** + * 商品图片URL + *
+     * 是否必填: 是
+     * 
+ */ + @SerializedName("goods_img_url") + private Integer goodsImgUrl; + + + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 4fd7ce1dbc..8a149b4d73 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -529,6 +529,20 @@ public interface InstantDelivery { */ String MOCK_UPDATE_ORDER = "https://api.weixin.qq.com/cgi-bin/express/local/business/test_update_order"; + /** + * 物流服务-查询组件-跟踪物流面单 + * 商户使用此接口向微信提供某交易单号对应的运单号。微信后台会跟踪运单的状态变化 + */ + String TRACE_WAYBILL_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/trace_waybill"; + + + /** + * 物流服务-查询组件-查询运单接口 query_trace + * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息 + */ + String QUERY_WAYBILL_TRACE_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/query_trace"; + + /** * 下单接口. */ From a6b0b9c191274ecb5a625e6d4d07c8374d5eea87 Mon Sep 17 00:00:00 2001 From: jamy888 Date: Sat, 2 Apr 2022 13:16:18 +0000 Subject: [PATCH 164/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=BE=A9=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=9B=9E=E8=B0=83=E6=B6=88=E6=81=AF=E6=97=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E7=94=A8agentId=E8=BF=9B=E8=A1=8C=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=8C=B9=E9=85=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/message/WxCpMessageRouterRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouterRule.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouterRule.java index 739bb0330f..bbae22693b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouterRule.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouterRule.java @@ -246,7 +246,7 @@ protected boolean test(WxCpXmlMessage wxMessage) { return (this.fromUser == null || this.fromUser.equals(wxMessage.getFromUserName())) && - (this.agentId == null || this.agentId.equals(wxMessage.getAgentId())) + (this.agentId == null || this.agentId.equals(Integer.valueOf(wxMessage.getAgentId()))) && (this.msgType == null || this.msgType.equalsIgnoreCase(wxMessage.getMsgType())) && From 829df8804bd416ffe8cd8abbdfbb79221ecef71a Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Sat, 2 Apr 2022 13:22:46 +0000 Subject: [PATCH 165/622] =?UTF-8?q?:art:=20=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E9=85=8D=E7=BD=AE=E7=B1=BB=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BC=9A=E8=AF=9D=E5=AD=98=E6=A1=A3=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storage/AbstractWxCpConfigStorageConfiguration.java | 8 +++++++- .../weixin/cp/config/impl/WxCpDefaultConfigImpl.java | 9 +++++++++ weixin-java-cp/src/test/resources/test-config.sample.xml | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java index 17e940928d..cfcb16fe0a 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java @@ -7,7 +7,7 @@ /** * WxCpConfigStorage 抽象配置类 * - * @author yl + * @author yl & Wang_Wong * @date 2021/12/6 */ public abstract class AbstractWxCpConfigStorageConfiguration { @@ -18,6 +18,8 @@ protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpPropert String token = properties.getToken(); Integer agentId = properties.getAgentId(); String aesKey = properties.getAesKey(); + // 企业微信,会话存档路径 + String msgAuditLibPath = properties.getMsgAuditLibPath(); config.setCorpId(corpId); config.setCorpSecret(corpSecret); @@ -30,6 +32,9 @@ protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpPropert if (StringUtils.isNotBlank(aesKey)) { config.setAesKey(aesKey); } + if (StringUtils.isNotBlank(msgAuditLibPath)) { + config.setMsgAuditLibPath(msgAuditLibPath); + } WxCpProperties.ConfigStorage storage = properties.getConfigStorage(); String httpProxyHost = storage.getHttpProxyHost(); @@ -50,4 +55,5 @@ protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpPropert } return config; } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java index b7304628a7..c716eb7359 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java @@ -285,6 +285,15 @@ public void setAgentId(Integer agentId) { this.agentId = agentId; } + /** + * 设置企微会话存档路径. + * + * @param msgAuditLibPath 会话存档具体路径 + */ + public void setMsgAuditLibPath(String msgAuditLibPath) { + this.msgAuditLibPath = msgAuditLibPath; + } + @Override public String getOauth2redirectUri() { return this.oauth2redirectUri; diff --git a/weixin-java-cp/src/test/resources/test-config.sample.xml b/weixin-java-cp/src/test/resources/test-config.sample.xml index 76a74a25a3..23e83e942a 100644 --- a/weixin-java-cp/src/test/resources/test-config.sample.xml +++ b/weixin-java-cp/src/test/resources/test-config.sample.xml @@ -11,4 +11,6 @@ 企业号通讯录里的某个tagid 网页授权获取用户信息回调地址 webhook链接地址的key值 + + /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so From 100fd1f85647c35e96530976e3d011661959904e Mon Sep 17 00:00:00 2001 From: oof <10114822@qq.com> Date: Mon, 4 Apr 2022 12:27:15 +0000 Subject: [PATCH 166/622] =?UTF-8?q?:art:=20=E5=88=A0=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=9A=84=E5=AF=BC=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/api/impl/WxOpenInRedisTemplateConfigStorage.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java index da04b176b2..f7d8fdd45a 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java @@ -10,8 +10,6 @@ import me.chanjar.weixin.common.redis.JedisWxRedisOps; import me.chanjar.weixin.common.redis.RedisTemplateWxRedisOps; import me.chanjar.weixin.common.redis.WxRedisOps; -import redis.clients.jedis.Jedis; -import redis.clients.jedis.util.Pool; /** *

From 2f2d51b53dc5b6ed44455a95e9e43ad01902d3d3 Mon Sep 17 00:00:00 2001
From: linlinjava 
Date: Tue, 5 Apr 2022 23:09:59 +0800
Subject: [PATCH 167/622] =?UTF-8?q?:new:=20#2578=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9B=B4?=
 =?UTF-8?q?=E6=92=AD=E5=A2=9E=E5=8A=A0=E6=8C=82=E4=BB=B6=E7=BB=84=E4=BB=B6?=
 =?UTF-8?q?=E5=85=A8=E5=B1=80key=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/api/WxMaLiveGoodsService.java  | 28 +++++++++++++++++++
 .../wx/miniapp/api/WxMaLiveService.java       |  2 +-
 .../api/impl/WxMaLiveGoodsServiceImpl.java    | 24 ++++++++++++++++
 .../miniapp/api/impl/WxMaLiveServiceImpl.java |  4 +--
 .../miniapp/constant/WxMaApiUrlConstants.java |  8 ++++++
 5 files changed, 63 insertions(+), 3 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveGoodsService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveGoodsService.java
index d0e06d480f..7b41e0f78f 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveGoodsService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveGoodsService.java
@@ -114,4 +114,32 @@ public interface WxMaLiveGoodsService {
    * @throws WxErrorException .
    */
   WxMaLiveResult getApprovedGoods(Integer offset, Integer limit, Integer status) throws WxErrorException;
+
+  /**
+   * 直播挂件设置全局key
+   * 
+   * 若已设置此全局key,且添加商品时未指定goodsKey字段,则我们会使用此全局key作为该商品的goodsKey。 须注意的是,若全局key已设定,并添加了未指定goodsKey字段的商品之后,再重新设定不一样的全局key则会导致先前的映射失效。 为了避免映射失效,建议全局key只设定一次。
+   * 注意:key必须为字符串数组
+   * 调用额度:500次/一天
+   * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/setkey?access_token=
+   * 
+ * + * @param goodsKey 全局key + * @return 设置是否成功 + * @throws WxErrorException . + */ + boolean setKey(List goodsKey) throws WxErrorException; + + /** + * 查看当前设定的全局key + *
+   * 查看当前设定的全局key。
+   * 调用额度:500次/一天
+   * http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/goods/getkey?access_token=
+   * 
+ * + * @return 全局key + * @throws WxErrorException . + */ + List getKey() throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java index 3b0ccc390a..2d7751948d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java @@ -386,7 +386,7 @@ public interface WxMaLiveService { *

* 调用额度:10000次/一天 *

- * http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/goods/getVideo?access_token=ACCESS_TOKEN + * http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/getVideo?access_token=ACCESS_TOKEN *

* @param roomId 直播间id * @param goodsId 商品ID diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveGoodsServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveGoodsServiceImpl.java index 99d82fdbf8..cfd8428673 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveGoodsServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveGoodsServiceImpl.java @@ -9,6 +9,7 @@ import com.google.common.collect.ImmutableMap; import com.google.gson.JsonArray; import com.google.gson.JsonObject; +import com.google.gson.reflect.TypeToken; import lombok.RequiredArgsConstructor; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.json.GsonHelper; @@ -20,6 +21,7 @@ import java.util.Map; import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Broadcast.Goods.*; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Code.GET_PAGE_URL; /** *
@@ -94,4 +96,26 @@ public WxMaLiveResult getApprovedGoods(Integer offset, Integer limit, Integer st
     return WxMaLiveResult.fromJson(jsonObject.toString());
   }
 
+  @Override
+  public boolean setKey(List goodsKey) throws WxErrorException {
+    Map map = new HashMap<>(1);
+    map.put("goodsKey", goodsKey);
+    this.wxMaService.post(SET_KEY, WxMaGsonBuilder.create().toJson(map));
+    return true;
+  }
+
+  @Override
+  public List getKey() throws WxErrorException {
+    String responseContent = this.wxMaService.get(GET_KEY, null);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    boolean vendorGoodsKey = jsonObject.has("vendorGoodsKey");
+    if (vendorGoodsKey) {
+      return WxMaGsonBuilder.create().fromJson(jsonObject.getAsJsonArray("vendorGoodsKey"),
+              new TypeToken>() {
+              }.getType());
+    } else {
+      return null;
+    }
+  }
+
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java
index abda4faa63..56c744f6d4 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java
@@ -272,7 +272,7 @@ public boolean deleteSubanchor(Integer roomId) throws WxErrorException {
   public String getSubanchor(Integer roomId) throws WxErrorException {
     Map map = new HashMap<>(1);
     map.put(ROOM_ID, roomId);
-    String responseContent = this.wxMaService.get(Room.GET_SUBANCHOR, WxMaGsonBuilder.create().toJson(map));
+    String responseContent = this.wxMaService.get(Room.GET_SUBANCHOR, Joiner.on("&").withKeyValueSeparator("=").join(map));
     JsonObject jsonObject = GsonParser.parse(responseContent);
     if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
       throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
@@ -390,7 +390,7 @@ public String getVideo(Integer roomId, Integer goodsId) throws WxErrorException
     Map map = new HashMap<>(2);
     map.put(ROOM_ID, roomId);
     map.put("goodsId", goodsId);
-    String responseContent = this.wxMaService.get(Room.GET_VIDEO, WxMaGsonBuilder.create().toJson(map));
+    String responseContent = this.wxMaService.post(Room.GET_VIDEO, WxMaGsonBuilder.create().toJson(map));
     JsonObject jsonObject = GsonParser.parse(responseContent);
     if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
       throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
index 8a149b4d73..4377b148b4 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
@@ -272,6 +272,14 @@ interface Goods {
       String UPDATE_GOODS = "https://api.weixin.qq.com/wxaapi/broadcast/goods/update";
       String GET_GOODS_WARE_HOUSE = "https://api.weixin.qq.com/wxa/business/getgoodswarehouse";
       String GET_APPROVED_GOODS = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved";
+      /**
+       * 直播挂件设置全局 Key
+       */
+      String SET_KEY = "https://api.weixin.qq.com/wxaapi/broadcast/goods/setkey";
+      /**
+       * 直播挂件获取全局 Key
+       */
+      String GET_KEY = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getkey";
     }
 
     /**

From 4f2360c9b2deda4167627b183d540aa20fc24e8a Mon Sep 17 00:00:00 2001
From: wuy <1311695042@qq.com>
Date: Wed, 6 Apr 2022 22:29:42 +0800
Subject: [PATCH 168/622] + add diboot link

---
 README.md                 |   6 ++++--
 images/banners/diboot.png | Bin 0 -> 374915 bytes
 2 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 images/banners/diboot.png

diff --git a/README.md b/README.md
index 7d72b14919..2572db8435 100644
--- a/README.md
+++ b/README.md
@@ -34,8 +34,10 @@
         
       
     
-    
-      
赞助商招募中,欢迎微信联系洽谈
+ + + diboot低代码开发平台 + diff --git a/images/banners/diboot.png b/images/banners/diboot.png new file mode 100644 index 0000000000000000000000000000000000000000..74b28b4fecc53738906ecc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<1960779692@qq.com> Date: Thu, 7 Apr 2022 02:51:51 +0000 Subject: [PATCH 169/622] =?UTF-8?q?:new:=20#2579=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1OA=E8=87=AA=E5=BB=BA=E5=BA=94?= =?UTF-8?q?=E7=94=A8-=E5=AE=A1=E6=89=B9=E6=B5=81=E7=A8=8B=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOaAgentService.java | 29 ++++ .../me/chanjar/weixin/cp/api/WxCpService.java | 7 + .../cp/api/impl/BaseWxCpServiceImpl.java | 6 + .../cp/api/impl/WxCpOaAgentServiceImpl.java | 43 +++++ .../oa/selfagent/WxCpOpenApprovalData.java | 161 ++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 29 +++- .../weixin/cp/api/WxCpOaAgentTest.java | 59 +++++++ 7 files changed, 331 insertions(+), 3 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/selfagent/WxCpOpenApprovalData.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java new file mode 100644 index 0000000000..6f4fae85de --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java @@ -0,0 +1,29 @@ +package me.chanjar.weixin.cp.api; + +import lombok.NonNull; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.oa.selfagent.WxCpOpenApprovalData; + +/** + * 企业微信自建应用接口. + * https://developer.work.weixin.qq.com/document/path/90269 + * + * @author Wang_Wong + * @date 2022-04-06 + */ +public interface WxCpOaAgentService { + + /** + * 查询第三方应用审批申请当前状态 + * 开发者也可主动查询审批单的当前审批状态。 + * + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/corp/getopenapprovaldata?access_token=ACCESS_TOKEN + * + * @param thirdNo + * @return + * @throws WxErrorException + */ + WxCpOpenApprovalData getOpenApprovalData(@NonNull String thirdNo) throws WxErrorException; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 473fb3dfcb..529e6f06e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -399,6 +399,13 @@ public interface WxCpService extends WxService { */ WxCpLivingService getLivingService(); + /** + * 获取OA 自建应用相关接口的服务类对象 + * + * @return + */ + WxCpOaAgentService getOaAgentService(); + /** * 获取会话存档相关接口的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index cccbe8648d..55ddcf9e23 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -50,6 +50,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpAgentService agentService = new WxCpAgentServiceImpl(this); private WxCpOaService oaService = new WxCpOaServiceImpl(this); private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); + private WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); private WxCpMsgAuditService msgAuditService = new WxCpMsgAuditServiceImpl(this); private WxCpTaskCardService taskCardService = new WxCpTaskCardServiceImpl(this); private WxCpExternalContactService externalContactService = new WxCpExternalContactServiceImpl(this); @@ -485,6 +486,11 @@ public WxCpLivingService getLivingService() { return livingService; } + @Override + public WxCpOaAgentService getOaAgentService() { + return oaAgentService; + } + @Override public WxCpMsgAuditService getMsgAuditService() { return msgAuditService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java new file mode 100644 index 0000000000..9f3d3f1676 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java @@ -0,0 +1,43 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.JsonObject; +import com.google.gson.reflect.TypeToken; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.cp.api.WxCpOaAgentService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.living.WxCpLivingInfo; +import me.chanjar.weixin.cp.bean.oa.selfagent.WxCpOpenApprovalData; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Living.GET_USER_ALL_LIVINGID; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.GET_OPEN_APPROVAL_DATA; + +/** + * 企业微信自建应用接口实现类. + * + * @author Wang_Wong + * @date 2022-04-06 + */ +@Slf4j +@RequiredArgsConstructor +public class WxCpOaAgentServiceImpl implements WxCpOaAgentService { + private final WxCpService cpService; + + @Override + public WxCpOpenApprovalData getOpenApprovalData(@NonNull String thirdNo) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("thirdNo", thirdNo); + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_OPEN_APPROVAL_DATA); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGsonBuilder.create() + .fromJson(GsonParser.parse(responseContent).get("data"), + new TypeToken() { + }.getType() + ); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/selfagent/WxCpOpenApprovalData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/selfagent/WxCpOpenApprovalData.java new file mode 100644 index 0000000000..261a0f8de1 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/selfagent/WxCpOpenApprovalData.java @@ -0,0 +1,161 @@ +package me.chanjar.weixin.cp.bean.oa.selfagent; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 审批申请当前状态信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpOpenApprovalData implements Serializable { + private static final long serialVersionUID = -5028321625140879591L; + + @SerializedName("ThirdNo") + private String thirdNo; + + @SerializedName("OpenTemplateId") + private String openTemplateId; + + @SerializedName("OpenSpName") + private String openSpName; + + @SerializedName("OpenSpstatus") + private Integer openSpstatus; + + @SerializedName("ApplyTime") + private Long applyTime; + + @SerializedName("ApplyUsername") + private String applyUserName; + + @SerializedName("ApplyUserParty") + private String applyUserParty; + + @SerializedName("ApplyUserImage") + private String applyUserImage; + + @SerializedName("ApplyUserId") + private String applyUserId; + + @SerializedName("ApprovalNodes") + private ApprovalNodes approvalNodes; + + @SerializedName("NotifyNodes") + private NotifyNodes notifyNodes; + + @SerializedName("ApproverStep") + private Integer approverStep; + + @Getter + @Setter + public static class ApprovalNodes implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("ApprovalNode") + private List approvalNode; + + } + + @Getter + @Setter + public static class ApprovalNode implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("NodeStatus") + private Integer nodeStatus; + + @SerializedName("NodeAttr") + private Integer nodeAttr; + + @SerializedName("NodeType") + private Integer nodeType; + + @SerializedName("Items") + private Items items; + + } + + @Getter + @Setter + public static class NotifyNodes implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("NotifyNode") + private List notifyNode; + + } + + @Getter + @Setter + public static class NotifyNode implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("ItemName") + private String itemName; + + @SerializedName("ItemParty") + private String itemParty; + + @SerializedName("ItemImage") + private String itemImage; + + @SerializedName("ItemUserId") + private String itemUserId; + + } + + @Getter + @Setter + public static class Items implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("Item") + private List item; + + } + + @Getter + @Setter + public static class Item implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("ItemName") + private String itemName; + + @SerializedName("ItemParty") + private String itemParty; + + @SerializedName("ItemImage") + private String itemImage; + + @SerializedName("ItemUserId") + private String itemUserId; + + @SerializedName("ItemSpeech") + private String itemSpeech; + + @SerializedName("ItemStatus") + private Integer itemStatus; + + @SerializedName("ItemOpTime") + private Long itemOpTime; + + } + + public static WxCpOpenApprovalData fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpOpenApprovalData.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 2155b4c611..e80a93263e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -91,6 +91,10 @@ interface Menu { } interface Oa { + /** + * 打卡 + * https://developer.work.weixin.qq.com/document/path/94204 + */ String GET_CORP_CHECKIN_OPTION = "/cgi-bin/checkin/getcorpcheckinoption"; String GET_CHECKIN_DATA = "/cgi-bin/checkin/getcheckindata"; String GET_CHECKIN_OPTION = "/cgi-bin/checkin/getcheckinoption"; @@ -98,12 +102,27 @@ interface Oa { String GET_CHECKIN_MONTH_DATA = "/cgi-bin/checkin/getcheckin_monthdata"; String GET_CHECKIN_SCHEDULE_DATA = "/cgi-bin/checkin/getcheckinschedulist"; String SET_CHECKIN_SCHEDULE_DATA = "/cgi-bin/checkin/setcheckinschedulist"; + + /** + * 审批 + * https://developer.work.weixin.qq.com/document/path/91956 + */ + String COPY_TEMPLATE = "/cgi-bin/oa/approval/copytemplate"; + String GET_TEMPLATE_DETAIL = "/cgi-bin/oa/gettemplatedetail"; + String APPLY_EVENT = "/cgi-bin/oa/applyevent"; String GET_APPROVAL_INFO = "/cgi-bin/oa/getapprovalinfo"; String GET_APPROVAL_DETAIL = "/cgi-bin/oa/getapprovaldetail"; + + /** + * 公费电话 + * https://developer.work.weixin.qq.com/document/path/93662 + */ String GET_DIAL_RECORD = "/cgi-bin/dial/get_dial_record"; - String GET_TEMPLATE_DETAIL = "/cgi-bin/oa/gettemplatedetail"; - String APPLY_EVENT = "/cgi-bin/oa/applyevent"; + /** + * 日程 + * https://developer.work.weixin.qq.com/document/path/93624 + */ String CALENDAR_ADD = "/cgi-bin/oa/calendar/add"; String CALENDAR_UPDATE = "/cgi-bin/oa/calendar/update"; String CALENDAR_GET = "/cgi-bin/oa/calendar/get"; @@ -115,7 +134,11 @@ interface Oa { String SCHEDULE_DEL = "/cgi-bin/oa/schedule/del"; String SCHEDULE_LIST = "/cgi-bin/oa/schedule/get_by_calendar"; - String COPY_TEMPLATE = "/cgi-bin/oa/approval/copytemplate"; + /** + * 审批流程引擎 + * https://developer.work.weixin.qq.com/document/path/90269 + */ + String GET_OPEN_APPROVAL_DATA = "/cgi-bin/corp/getopenapprovaldata"; } interface Living { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java new file mode 100644 index 0000000000..88d990e4f7 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java @@ -0,0 +1,59 @@ +package me.chanjar.weixin.cp.api; + +import com.google.gson.reflect.TypeToken; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.oa.selfagent.WxCpOpenApprovalData; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import org.testng.annotations.Test; + +import java.io.InputStream; + +/** + * 企业微信自建应用接口测试类. + * https://developer.work.weixin.qq.com/document/path/90269 + * + * @author Wang_Wong + * @date 2022-04-06 + */ +@Slf4j +public class WxCpOaAgentTest { + + // extends WxCpBaseResp + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + @Test + public void test() throws WxErrorException { + + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + + /** + * Test + */ + String test = "{\"errcode\":0,\"errmsg\":\"ok\",\"data\":{\"ThirdNo\":\"thirdNoxxx\",\"OpenTemplateId\":\"1234567111\",\"OpenSpName\":\"付款\",\"OpenSpstatus\":1,\"ApplyTime\":1527837645,\"ApplyUsername\":\"jackiejjwu\",\"ApplyUserParty\":\"产品部\",\"ApplyUserImage\":\"http://www.qq.com/xxx.png\",\"ApplyUserId\":\"WuJunJie\",\"ApprovalNodes\":{\"ApprovalNode\":[{\"NodeStatus\":1,\"NodeAttr\":1,\"NodeType\":1,\"Items\":{\"Item\":[{\"ItemName\":\"chauvetxiao\",\"ItemParty\":\"产品部\",\"ItemImage\":\"http://www.qq.com/xxx.png\",\"ItemUserId\":\"XiaoWen\",\"ItemStatus\":1,\"ItemSpeech\":\"\",\"ItemOpTime\":0}]}}]},\"NotifyNodes\":{\"NotifyNode\":[{\"ItemName\":\"jinhuiguo\",\"ItemParty\":\"行政部\",\"ItemImage\":\"http://www.qq.com/xxx.png\",\"ItemUserId\":\"GuoJinHui\"}]},\"ApproverStep\":0}}"; + + final WxCpOpenApprovalData data = WxCpGsonBuilder.create() + .fromJson(GsonParser.parse(test).get("data"), + new TypeToken() { + }.getType() + ); + + log.info(data.toJson()); + + + WxCpOpenApprovalData openApprovalData = cpService.getOaAgentService().getOpenApprovalData("943225459735269376"); + log.info(openApprovalData.toJson()); + + } + +} From 07c3545105d8a4d203bcf590429cf2b35848d518 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 7 Apr 2022 10:54:08 +0800 Subject: [PATCH 170/622] =?UTF-8?q?:art:=20=E9=81=BF=E5=85=8Dgitee?= =?UTF-8?q?=E8=AF=AF=E4=BC=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2572db8435..df517de764 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## WxJava - 微信开发 Java SDK [![LICENSE](https://img.shields.io/badge/License-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) [![Badge](https://img.shields.io/badge/Link-996.icu-red.svg)](https://996.icu/#/zh_CN) +## WxJava - 微信开发 Java SDK [![码云Gitee](https://gitee.com/binary/weixin-java-tools/badge/star.svg?theme=blue)](https://gitee.com/binary/weixin-java-tools) [![Github](https://img.shields.io/github/stars/Wechat-Group/WxJava?logo=github&style=flat)](https://github.com/Wechat-Group/WxJava) From 7992ee0d3d259105bae7d292ca4486e0610cf61e Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Sun, 10 Apr 2022 13:27:54 +0000 Subject: [PATCH 171/622] =?UTF-8?q?:new:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=81=87=E6=9C=9F=E7=AE=A1=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/WxCpOaService.java | 18 ++++- .../me/chanjar/weixin/cp/api/WxCpService.java | 2 +- .../cp/api/impl/WxCpOaAgentServiceImpl.java | 2 - .../weixin/cp/api/impl/WxCpOaServiceImpl.java | 7 ++ .../weixin/cp/bean/oa/WxCpCorpConfInfo.java | 74 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 5 ++ .../cp/api/impl/WxCpOaServiceImplTest.java | 20 +++-- 7 files changed, 118 insertions(+), 10 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java index 7eb986dbbb..bbbcb60957 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java @@ -10,7 +10,7 @@ /** * 企业微信OA相关接口. * - * @author Element + * @author Element & Wang_Wong * @date 2019-04-06 10:52 */ public interface WxCpOaService { @@ -107,6 +107,7 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, */ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime) throws WxErrorException; + /** *

    *   获取审批申请详情
@@ -122,6 +123,21 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime,
    */
   WxCpApprovalDetailResult getApprovalDetail(@NonNull String spNo) throws WxErrorException;
 
+
+  /**
+   * 获取企业假期管理配置
+   * 企业可通过审批应用或自建应用Secret调用本接口,获取可见范围内员工的“假期管理”配置,包括:各个假期的id、名称、请假单位、时长计算方式、发放规则等。
+   * 第三方应用可获取应用可见范围内员工的“假期管理”配置,包括:各个假期的id、名称、请假单位、时长计算方式、发放规则等。
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/getcorpconf?access_token=ACCESS_TOKEN
+   *
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpCorpConfInfo getCorpConf() throws WxErrorException;
+
+
   /**
    * 获取公费电话拨打记录
    *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
index 529e6f06e0..ddb3968c22 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java
@@ -386,7 +386,7 @@ public interface WxCpService extends WxService {
   WxCpMessageService getMessageService();
 
   /**
-   * Gets oa service.
+   * 获取OA相关接口的服务类对象.
    *
    * @return the oa service
    */
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java
index 9f3d3f1676..5acdf0cf0d 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java
@@ -9,11 +9,9 @@
 import me.chanjar.weixin.common.util.json.GsonParser;
 import me.chanjar.weixin.cp.api.WxCpOaAgentService;
 import me.chanjar.weixin.cp.api.WxCpService;
-import me.chanjar.weixin.cp.bean.living.WxCpLivingInfo;
 import me.chanjar.weixin.cp.bean.oa.selfagent.WxCpOpenApprovalData;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
-import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Living.GET_USER_ALL_LIVINGID;
 import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.GET_OPEN_APPROVAL_DATA;
 
 /**
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
index 3e8277a850..afee242fea 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
@@ -165,6 +165,13 @@ public WxCpApprovalDetailResult getApprovalDetail(@NonNull String spNo) throws W
     return WxCpGsonBuilder.create().fromJson(responseContent, WxCpApprovalDetailResult.class);
   }
 
+  @Override
+  public WxCpCorpConfInfo getCorpConf() throws WxErrorException {
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_CORP_CONF);
+    String responseContent = this.mainService.get(url, null);
+    return WxCpCorpConfInfo.fromJson(responseContent);
+  }
+
   @Override
   public List getDialRecord(Date startTime, Date endTime, Integer offset, Integer limit)
     throws WxErrorException {
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java
new file mode 100644
index 0000000000..514cb421fa
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java
@@ -0,0 +1,74 @@
+package me.chanjar.weixin.cp.bean.oa;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 企业假期管理配置信息.
+ *
+ * @author Wang_Wong
+ */
+@Data
+public class WxCpCorpConfInfo extends WxCpBaseResp implements Serializable {
+  private static final long serialVersionUID = 7387181805254287157L;
+
+  @SerializedName("lists")
+  private List lists;
+
+  @Getter
+  @Setter
+  public static class CorpConf implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    @SerializedName("id")
+    private Integer id;
+
+    @SerializedName("name")
+    private String name;
+
+    @SerializedName("time_attr")
+    private Integer timeAttr;
+
+    @SerializedName("duration_type")
+    private Integer durationType;
+
+    @SerializedName("quota_attr")
+    private QuotaAttr quotaAttr;
+
+    @SerializedName("perday_duration")
+    private Integer perdayDuration;
+
+  }
+
+  @Getter
+  @Setter
+  public static class QuotaAttr implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    @SerializedName("type")
+    private Integer type;
+
+    @SerializedName("autoreset_time")
+    private Integer autoresetTime;
+
+    @SerializedName("autoreset_duration")
+    private Integer autoresetDuration;
+
+  }
+
+  public static WxCpCorpConfInfo fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpCorpConfInfo.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index e80a93263e..b3773eeaba 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -112,6 +112,11 @@ interface Oa {
     String APPLY_EVENT = "/cgi-bin/oa/applyevent";
     String GET_APPROVAL_INFO = "/cgi-bin/oa/getapprovalinfo";
     String GET_APPROVAL_DETAIL = "/cgi-bin/oa/getapprovaldetail";
+    String GET_APPROVAL_DATA = "/cgi-bin/oa/getapprovaldata";
+
+    String GET_CORP_CONF = "/cgi-bin/oa/vacation/getcorpconf";
+    String GET_USER_VACATION_QUOTA = "/cgi-bin/oa/vacation/getuservacationquota";
+    String SET_ONE_USER_QUOTA = "/cgi-bin/oa/vacation/setoneuserquota";
 
     /**
      * 公费电话
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java
index 4370bb3d83..d3f52561af 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java
@@ -1,15 +1,12 @@
 package me.chanjar.weixin.cp.api.impl;
 
 import com.google.gson.Gson;
-import com.google.gson.JsonObject;
-import com.google.gson.reflect.TypeToken;
 import com.google.inject.Inject;
+import lombok.extern.slf4j.Slf4j;
 import me.chanjar.weixin.common.error.WxErrorException;
-import me.chanjar.weixin.common.util.json.GsonParser;
 import me.chanjar.weixin.cp.api.ApiTestModule;
 import me.chanjar.weixin.cp.api.WxCpService;
 import me.chanjar.weixin.cp.bean.oa.*;
-import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 import org.apache.commons.lang3.time.DateFormatUtils;
 import org.testng.annotations.Guice;
 import org.testng.annotations.Test;
@@ -25,9 +22,9 @@
 /**
  * 企业微信 OA数据接口 测试用例
  *
- * @author Element
+ * @author Element & Wang_Wong
  */
-
+@Slf4j
 @Guice(modules = ApiTestModule.class)
 public class WxCpOaServiceImplTest {
 
@@ -171,4 +168,15 @@ public void testGetApprovalData() {
   @Test
   public void testGetDialRecord() {
   }
+
+  /**
+   * https://developer.work.weixin.qq.com/document/path/93375
+   * @throws WxErrorException
+   */
+  @Test
+  public void testGetCorpConf() throws WxErrorException{
+    WxCpCorpConfInfo corpConf = this.wxService.getOaService().getCorpConf();
+    log.info(corpConf.toJson());
+  }
+
 }

From 1d817903baef6106a59e60c421cdf18e925091c4 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 10 Apr 2022 20:46:35 +0800
Subject: [PATCH 172/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
 =?UTF-8?q?=E7=A0=81=EF=BC=8C=E9=81=BF=E5=85=8D=E6=8A=A5=E5=A5=87=E6=80=AA?=
 =?UTF-8?q?=E7=9A=84=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../mp/api/impl/BaseWxMpServiceImpl.java      | 21 ++++++-------------
 1 file changed, 6 insertions(+), 15 deletions(-)

diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java
index d11499bd4f..e12e304939 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java
@@ -25,11 +25,7 @@
 import me.chanjar.weixin.common.util.DataUtils;
 import me.chanjar.weixin.common.util.RandomUtils;
 import me.chanjar.weixin.common.util.crypto.SHA1;
-import me.chanjar.weixin.common.util.http.RequestExecutor;
-import me.chanjar.weixin.common.util.http.RequestHttp;
-import me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor;
-import me.chanjar.weixin.common.util.http.SimplePostRequestExecutor;
-import me.chanjar.weixin.common.util.http.URIUtil;
+import me.chanjar.weixin.common.util.http.*;
 import me.chanjar.weixin.common.util.json.GsonParser;
 import me.chanjar.weixin.common.util.json.WxGsonBuilder;
 import me.chanjar.weixin.mp.api.*;
@@ -46,16 +42,7 @@
 import java.util.Map;
 import java.util.concurrent.locks.Lock;
 
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.CLEAR_QUOTA_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.FETCH_SHORTEN_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GEN_SHORTEN_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GET_CALLBACK_IP_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GET_CURRENT_AUTOREPLY_INFO_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.GET_TICKET_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.NETCHECK_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.QRCONNECT_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.SEMANTIC_SEMPROXY_SEARCH_URL;
-import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.SHORTURL_API_URL;
+import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.*;
 
 /**
  * 基础实现类.
@@ -482,6 +469,10 @@ protected String extractAccessToken(String resultContent) throws WxErrorExceptio
   @Override
   public void setWxMpConfigStorage(WxMpConfigStorage wxConfigProvider) {
     final String defaultMpId = wxConfigProvider.getAppId();
+    if (defaultMpId == null) {
+      throw new WxRuntimeException("appid不能设置为null");
+    }
+
     this.setMultiConfigStorages(ImmutableMap.of(defaultMpId, wxConfigProvider), defaultMpId);
   }
 

From 76f6826461a3452000893dc17d171985e0009401 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 10 Apr 2022 21:09:29 +0800
Subject: [PATCH 173/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E6=94=BE?=
 =?UTF-8?q?=E9=94=99=E4=BD=8D=E7=BD=AE=E7=9A=84=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/bean/request/WxPayRefundV3Request.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
index b534416257..31a41d9222 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundV3Request.java
@@ -236,8 +236,8 @@ public static class GoodsDetail implements Serializable {
      */
     @SerializedName(value = "refund_quantity")
     private Integer refundQuantity;
-
-    @SerializedName(value = "sub_mchid")
-    private String subMchid;
   }
+
+  @SerializedName(value = "sub_mchid")
+  private String subMchid;
 }

From db8c26b74ae30d4a3e0bdef465ada7057bf8e72d Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 10 Apr 2022 21:59:02 +0800
Subject: [PATCH 174/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
 =?UTF-8?q?=E7=A0=81=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=82=B9=E6=B3=A8=E8=A7=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java | 2 ++
 .../main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
index 39605be88d..1bf6c46cb8 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java
@@ -2,6 +2,7 @@
 
 import com.google.gson.annotations.SerializedName;
 import lombok.Data;
+import lombok.experimental.Accessors;
 
 import java.io.Serializable;
 
@@ -9,6 +10,7 @@
  * @author Boris
  */
 @Data
+@Accessors(chain = true)
 public class VisibleRange implements Serializable {
   private static final long serialVersionUID = 5356285705365931051L;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java
index 2b5ae5fc63..06746e3d51 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java
@@ -1,6 +1,7 @@
 package me.chanjar.weixin.cp.bean.external.msg;
 
 import lombok.Data;
+import lombok.experimental.Accessors;
 
 import java.io.Serializable;
 
@@ -11,6 +12,7 @@
  * @date 2020-08-16
  */
 @Data
+@Accessors(chain = true)
 public class Text implements Serializable {
   private static final long serialVersionUID = 6608288753719551600L;
   private String content;

From 83adb23f8fe36b30c032b5f5b0c76490eb8309ff Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 10 Apr 2022 23:09:51 +0800
Subject: [PATCH 175/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.0?=
 =?UTF-8?q?=20=E6=AD=A3=E5=BC=8F=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index b73530f343..899d90d379 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.2.9.B
+  4.3.0
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index 231cd687e6..36e1ac5d09 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index 6068376804..4d3776171d 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index 6c5064f001..43d3c7b453 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index 165d910c53..62f3628c67 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index 6fe4d58406..dd55913b48 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index 1d9a661348..bb22aff45e 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index 7f68c16430..51f64628bd 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index e3c9d54ec2..1673ba2435 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index ec7f05aba3..fc389d4844 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index 1234426a0c..9c8c3f86e1 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index 048d321fb2..e01606833c 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index 1597b7a45e..e8c924c0d2 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index 3843a9f6c2..5d77bf3b9a 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index 51c8c26724..6ecd995963 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index 05911ebe6e..f0f2d05b18 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.2.9.B
+    4.3.0
   
 
   weixin-java-qidian

From 8bcafdc6b2545126bd0bbab2c044ea6388067131 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 11 Apr 2022 09:05:02 +0800
Subject: [PATCH 176/622] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E7=89=88?=
 =?UTF-8?q?=E6=9C=AC=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index df517de764..2eecdfd298 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@
 
 ### 重要信息
 1. 项目合作洽谈,请联系微信`binary0000`(在微信里自行搜索并添加好友即可,请注明来意)。
-2. **2021-11-01 发布 [【4.2.0正式版】](https://mp.weixin.qq.com/s/nIk_xOf6dxkhKfqq830Cuw)**!
+2. **2022-4-10 发布 [【4.3.0正式版】](https://mp.weixin.qq.com/s/yCsa7nD4_DLjW1RDcrEk6g)**!
 3. 贡献源码可以参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007)
 4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。
 5. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识;
@@ -79,7 +79,7 @@
 
   com.github.binarywang
   (不同模块参考下文)
-  4.2.0
+  4.3.0
 
 ```
 

From b00e938ef7e44dc88d7f10cea2478f5ef6730c1c Mon Sep 17 00:00:00 2001
From: Wong <1960779692@qq.com>
Date: Wed, 13 Apr 2022 06:44:20 +0000
Subject: [PATCH 177/622] =?UTF-8?q?:new:=E3=80=90=E4=BC=81=E4=B8=9A?=
 =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=20=E6=96=B0=E5=A2=9E=E8=8E=B7?=
 =?UTF-8?q?=E5=8F=96=E6=88=90=E5=91=98=E5=81=87=E6=9C=9F=E4=BD=99=E9=A2=9D?=
 =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../chanjar/weixin/cp/api/WxCpOaService.java  | 15 +++++
 .../weixin/cp/api/impl/WxCpOaServiceImpl.java |  9 +++
 .../chanjar/weixin/cp/bean/WxCpBaseResp.java  |  1 +
 .../cp/bean/oa/WxCpUserVacationQuota.java     | 55 +++++++++++++++++++
 .../cp/api/impl/WxCpOaServiceImplTest.java    | 19 +++++++
 5 files changed, 99 insertions(+)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java
index bbbcb60957..c0b5204e1f 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java
@@ -138,6 +138,21 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime,
   WxCpCorpConfInfo getCorpConf() throws WxErrorException;
 
 
+  /**
+   * 获取成员假期余额
+   * 企业可通过审批应用或自建应用Secret调用本接口,获取可见范围内各个员工的假期余额数据。
+   * 第三方应用可获取应用可见范围内各个员工的假期余额数据。
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/getuservacationquota?access_token=ACCESS_TOKEN
+   *
+   * @param userId
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws WxErrorException;
+
+
   /**
    * 获取公费电话拨打记录
    *
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
index afee242fea..82cad7aa13 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
@@ -172,6 +172,15 @@ public WxCpCorpConfInfo getCorpConf() throws WxErrorException {
     return WxCpCorpConfInfo.fromJson(responseContent);
   }
 
+  @Override
+  public WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws WxErrorException {
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_USER_VACATION_QUOTA);
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("userid", userId);
+    String responseContent = this.mainService.post(url, jsonObject.toString());
+    return WxCpUserVacationQuota.fromJson(responseContent);
+  }
+
   @Override
   public List getDialRecord(Date startTime, Date endTime, Integer offset, Integer limit)
     throws WxErrorException {
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java
index 254260ea36..4ea58c5447 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java
@@ -29,4 +29,5 @@ public boolean success() {
   public static WxCpBaseResp fromJson(String json) {
     return WxCpGsonBuilder.create().fromJson(json, WxCpBaseResp.class);
   }
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java
new file mode 100644
index 0000000000..159fcd6943
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java
@@ -0,0 +1,55 @@
+package me.chanjar.weixin.cp.bean.oa;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 成员假期余额信息.
+ *
+ * @author Wang_Wong
+ */
+@Data
+public class WxCpUserVacationQuota extends WxCpBaseResp implements Serializable {
+  private static final long serialVersionUID = 7387181805254287157L;
+
+  @SerializedName("lists")
+  private List lists;
+
+  @Getter
+  @Setter
+  public static class VacationQuota implements Serializable {
+    private static final long serialVersionUID = -5696099236344075582L;
+
+    @SerializedName("id")
+    private Integer id;
+
+    @SerializedName("assignduration")
+    private Integer assignDuration;
+
+    @SerializedName("usedduration")
+    private Integer usedDuration;
+
+    @SerializedName("leftduration")
+    private Integer leftDuration;
+
+    @SerializedName("vacationname")
+    private String vacationName;
+
+  }
+
+  public static WxCpUserVacationQuota fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpUserVacationQuota.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java
index d3f52561af..b1c4272362 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java
@@ -170,7 +170,9 @@ public void testGetDialRecord() {
   }
 
   /**
+   * 获取企业假期管理配置
    * https://developer.work.weixin.qq.com/document/path/93375
+   *
    * @throws WxErrorException
    */
   @Test
@@ -179,4 +181,21 @@ public void testGetCorpConf() throws WxErrorException{
     log.info(corpConf.toJson());
   }
 
+  /**
+   * 获取成员假期余额
+   * https://developer.work.weixin.qq.com/document/path/93376
+   *
+   * @throws WxErrorException
+   */
+  @Test
+  public void testGetUserVacationQuota() throws WxErrorException{
+    WxCpUserVacationQuota vacationQuota = this.wxService.getOaService().getUserVacationQuota("WangKai");
+    log.info(vacationQuota.toJson());
+
+    String text = "{\"errcode\":0,\"errmsg\":\"ok\",\"lists\":[{\"id\":1,\"assignduration\":0,\"usedduration\":0,\"leftduration\":604800,\"vacationname\":\"年假\"},{\"id\":2,\"assignduration\":0,\"usedduration\":0,\"leftduration\":1296000,\"vacationname\":\"事假\"},{\"id\":3,\"assignduration\":0,\"usedduration\":0,\"leftduration\":0,\"vacationname\":\"病假\"}]}";
+    WxCpUserVacationQuota json = WxCpUserVacationQuota.fromJson(text);
+    log.info("数据为:{}", json.toJson());
+
+  }
+
 }

From 63c0eb107e2970bf3d91cb18510ff6da463dd6ac Mon Sep 17 00:00:00 2001
From: nadirvishun 
Date: Mon, 11 Apr 2022 15:21:47 +0800
Subject: [PATCH 178/622] =?UTF-8?q?:art:=20#2583=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=B7=AF?=
 =?UTF-8?q?=E7=94=B1=E7=BA=BF=E7=A8=8B=E6=B1=A0=E5=85=B3=E9=97=AD=E7=9A=84?=
 =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E5=BD=93=E9=80=9A=E8=BF=87http?=
 =?UTF-8?q?=E4=BC=98=E9=9B=85=E5=85=B3=E9=97=AD=E6=97=B6=E9=9C=80=E8=A6=81?=
 =?UTF-8?q?=E8=B0=83=E7=94=A8=EF=BC=8C=E5=90=A6=E5=88=99java=E8=BF=9B?=
 =?UTF-8?q?=E7=A8=8B=E4=B8=8D=E4=BC=9A=E7=BB=93=E6=9D=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/message/WxCpMessageRouter.java  | 39 +++++++++-
 .../cp/tp/message/WxCpTpMessageRouter.java    | 78 +++++++++++++------
 .../weixin/mp/api/WxMpMessageRouter.java      | 18 ++++-
 3 files changed, 110 insertions(+), 25 deletions(-)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java
index a0464a7252..b2327bdc6b 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java
@@ -76,6 +76,41 @@ public WxCpMessageRouter(WxCpService wxCpService) {
     this.exceptionHandler = new LogExceptionHandler();
   }
 
+  /**
+   * 使用自定义的 {@link ExecutorService}.
+   */
+  public WxCpMessageRouter(WxCpService wxMpService, ExecutorService executorService) {
+    this.wxCpService = wxMpService;
+    this.executorService = executorService;
+    this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker();
+    this.sessionManager = wxCpService.getSessionManager();
+    this.exceptionHandler = new LogExceptionHandler();
+  }
+
+  /**
+   * 系统退出前,应该调用该方法
+   */
+  public void shutDownExecutorService() {
+    this.executorService.shutdown();
+  }
+
+  /**
+   * 系统退出前,应该调用该方法,增加了超时时间检测
+   */
+  public void shutDownExecutorService(Integer second) {
+    this.executorService.shutdown();
+    try {
+      if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS)) {
+        this.executorService.shutdownNow();
+        if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS))
+          log.error("线程池未关闭!");
+      }
+    } catch (InterruptedException ie) {
+      this.executorService.shutdownNow();
+      Thread.currentThread().interrupt();
+    }
+  }
+
   /**
    * 
    * 设置自定义的 {@link ExecutorService}
@@ -219,8 +254,8 @@ private boolean isMsgDuplicated(WxCpXmlMessage wxMessage) {
     return this.messageDuplicateChecker.isDuplicate(messageId.toString());
   }
 
-  private void append(StringBuilder sb, String value){
-    if(StringUtils.isNotEmpty(value)){
+  private void append(StringBuilder sb, String value) {
+    if (StringUtils.isNotEmpty(value)) {
       sb.append("-").append(value);
     }
   }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java
index 5b045082a8..70ad0a64d3 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java
@@ -78,6 +78,41 @@ public WxCpTpMessageRouter(WxCpTpService wxCpTpService) {
     this.exceptionHandler = new LogExceptionHandler();
   }
 
+  /**
+   * 使用自定义的 {@link ExecutorService}.
+   */
+  public WxCpTpMessageRouter(WxCpTpService wxCpTpService, ExecutorService executorService) {
+    this.wxCpTpService = wxCpTpService;
+    this.executorService = executorService;
+    this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker();
+    this.sessionManager = wxCpTpService.getSessionManager();
+    this.exceptionHandler = new LogExceptionHandler();
+  }
+
+  /**
+   * 系统退出前,应该调用该方法
+   */
+  public void shutDownExecutorService() {
+    this.executorService.shutdown();
+  }
+
+  /**
+   * 系统退出前,应该调用该方法,增加了超时时间检测
+   */
+  public void shutDownExecutorService(Integer second) {
+    this.executorService.shutdown();
+    try {
+      if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS)) {
+        this.executorService.shutdownNow();
+        if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS))
+          log.error("线程池未关闭!");
+      }
+    } catch (InterruptedException ie) {
+      this.executorService.shutdownNow();
+      Thread.currentThread().interrupt();
+    }
+  }
+
   /**
    * 
    * 设置自定义的 {@link ExecutorService}
@@ -200,30 +235,29 @@ public WxCpXmlOutMessage route(final WxCpTpXmlMessage wxMessage) {
 
   private boolean isMsgDuplicated(WxCpTpXmlMessage wxMessage) {
     StringBuilder messageId = new StringBuilder();
-      if (wxMessage.getInfoType() != null) {
-        messageId.append(wxMessage.getInfoType())
-          .append("-").append(StringUtils.trimToEmpty(wxMessage.getSuiteId()))
-          .append("-").append(wxMessage.getTimeStamp())
-          .append("-").append(StringUtils.trimToEmpty(wxMessage.getAuthCorpId()))
-          .append("-").append(StringUtils.trimToEmpty(wxMessage.getUserID()))
-          .append("-").append(StringUtils.trimToEmpty(wxMessage.getChangeType()))
-          .append("-").append(StringUtils.trimToEmpty(wxMessage.getServiceCorpId()));
-      }
+    if (wxMessage.getInfoType() != null) {
+      messageId.append(wxMessage.getInfoType())
+        .append("-").append(StringUtils.trimToEmpty(wxMessage.getSuiteId()))
+        .append("-").append(wxMessage.getTimeStamp())
+        .append("-").append(StringUtils.trimToEmpty(wxMessage.getAuthCorpId()))
+        .append("-").append(StringUtils.trimToEmpty(wxMessage.getUserID()))
+        .append("-").append(StringUtils.trimToEmpty(wxMessage.getChangeType()))
+        .append("-").append(StringUtils.trimToEmpty(wxMessage.getServiceCorpId()));
+    }
 
-      if (wxMessage.getMsgType() != null) {
-        if (wxMessage.getMsgId() != null) {
-          messageId.append(wxMessage.getMsgId())
-            .append("-").append(wxMessage.getCreateTime())
-            .append("-").append(wxMessage.getFromUserName());
-        }
-        else {
-          messageId.append(wxMessage.getMsgType())
-            .append("-").append(wxMessage.getCreateTime())
-            .append("-").append(wxMessage.getFromUserName())
-            .append("-").append(StringUtils.trimToEmpty(wxMessage.getEvent()))
-            .append("-").append(StringUtils.trimToEmpty(wxMessage.getEventKey()));
-        }
+    if (wxMessage.getMsgType() != null) {
+      if (wxMessage.getMsgId() != null) {
+        messageId.append(wxMessage.getMsgId())
+          .append("-").append(wxMessage.getCreateTime())
+          .append("-").append(wxMessage.getFromUserName());
+      } else {
+        messageId.append(wxMessage.getMsgType())
+          .append("-").append(wxMessage.getCreateTime())
+          .append("-").append(wxMessage.getFromUserName())
+          .append("-").append(StringUtils.trimToEmpty(wxMessage.getEvent()))
+          .append("-").append(StringUtils.trimToEmpty(wxMessage.getEventKey()));
       }
+    }
 
     return this.messageDuplicateChecker.isDuplicate(messageId.toString());
   }
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java
index 263305c0d0..4a2291050c 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java
@@ -89,12 +89,28 @@ public WxMpMessageRouter(WxMpService wxMpService, ExecutorService executorServic
   }
 
   /**
-   * 如果使用默认的 {@link ExecutorService},则系统退出前,应该调用该方法.
+   * 系统退出前,应该调用该方法
    */
   public void shutDownExecutorService() {
     this.executorService.shutdown();
   }
 
+  /**
+   * 系统退出前,应该调用该方法,增加了超时时间检测
+   */
+  public void shutDownExecutorService(Integer second) {
+    this.executorService.shutdown();
+    try {
+      if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS)) {
+        this.executorService.shutdownNow();
+        if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS))
+          log.error("线程池未关闭!");
+      }
+    } catch (InterruptedException ie) {
+      this.executorService.shutdownNow();
+      Thread.currentThread().interrupt();
+    }
+  }
 
   /**
    * 

From 568a989576f03644369f230ed2e5e18ded41b4a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=80=E5=BF=B5=E6=97=A0=E6=98=8E?= <673331499@qq.com>
Date: Thu, 14 Apr 2022 03:45:28 +0000
Subject: [PATCH 179/622] =?UTF-8?q?:art:=20=E3=80=90=E4=BC=81=E4=B8=9A?=
 =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E5=8F=91=E9=80=81=E5=9B=BE=E6=96=87?=
 =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=87=8C=E7=9A=84=E8=B7=B3=E8=BD=AC=E5=88=B0?=
 =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9A=84=E7=9B=B8=E5=85=B3=E5=8F=82?=
 =?UTF-8?q?=E6=95=B0=E5=AE=8C=E5=96=84=E8=A1=A5=E5=85=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../java/me/chanjar/weixin/cp/bean/article/NewArticle.java  | 6 ++++++
 .../java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java
index 854c0ca89a..9dd4a40280 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java
@@ -41,4 +41,10 @@ public class NewArticle implements Serializable {
    * 按钮文字,仅在图文数为1条时才生效。 默认为“阅读全文”, 不超过4个文字,超过自动截断。该设置只在企业微信上生效,微工作台(原企业号)上不生效。
    */
   private String btnText;
+
+  /**小程序appid,必须是与当前应用关联的小程序,appid和pagepath必须同时填写,填写后会忽略url字段**/
+  private String appid;
+
+  /**点击消息卡片后的小程序页面,仅限本小程序内的页面。appid和pagepath必须同时填写,填写后会忽略url字段**/
+  private String pagepath;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java
index 77bc0960a5..780305ddd5 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java
@@ -408,6 +408,8 @@ private void handleMsgType(JsonObject messageJson) {
           articleJson.addProperty("description", article.getDescription());
           articleJson.addProperty("url", article.getUrl());
           articleJson.addProperty("picurl", article.getPicUrl());
+          articleJson.addProperty("appid", article.getAppid());
+          articleJson.addProperty("pagepath", article.getPagepath());
           articleJsonArray.add(articleJson);
         }
         newsJsonObject.add("articles", articleJsonArray);

From a88619a7dc2509798b9448bbbadf79f5f864ff73 Mon Sep 17 00:00:00 2001
From: nadirvishun 
Date: Thu, 14 Apr 2022 11:52:49 +0800
Subject: [PATCH 180/622] =?UTF-8?q?:art:=20#2587=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E8=B7=AF=E7=94=B1?=
 =?UTF-8?q?=E7=BA=BF=E7=A8=8B=E6=B1=A0=E5=85=B3=E9=97=AD=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/message/WxMaMessageRouter.java | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java
index 031c688c52..e2c497e139 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java
@@ -51,6 +51,51 @@ public WxMaMessageRouter(WxMaService wxMaService) {
     this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker();
   }
 
+  /**
+   * 使用自定义的 {@link ExecutorService}.
+   */
+  public WxMaMessageRouter(WxMaService wxMaService, ExecutorService executorService) {
+    this.wxMaService = wxMaService;
+    this.executorService = executorService;
+    this.sessionManager = new StandardSessionManager();
+    this.exceptionHandler = new LogExceptionHandler();
+    this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker();
+  }
+
+  /**
+   * 系统退出前,应该调用该方法
+   */
+  public void shutDownExecutorService() {
+    this.executorService.shutdown();
+  }
+
+  /**
+   * 系统退出前,应该调用该方法,增加了超时时间检测
+   */
+  public void shutDownExecutorService(Integer second) {
+    this.executorService.shutdown();
+    try {
+      if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS)) {
+        this.executorService.shutdownNow();
+        if (!this.executorService.awaitTermination(second, TimeUnit.SECONDS))
+          log.error("线程池未关闭!");
+      }
+    } catch (InterruptedException ie) {
+      this.executorService.shutdownNow();
+      Thread.currentThread().interrupt();
+    }
+  }
+
+  /**
+   * 
+   * 设置自定义的 {@link ExecutorService}
+   * 如果不调用该方法,默认使用内置的
+   * 
+ */ + public void setExecutorService(ExecutorService executorService) { + this.executorService = executorService; + } + /** * 开始一个新的Route规则. */ From f3921c733228d50ee2229a1e8f7b71f7b265a079 Mon Sep 17 00:00:00 2001 From: Leon Date: Thu, 14 Apr 2022 14:32:58 +0800 Subject: [PATCH 181/622] =?UTF-8?q?:new:=20#2588=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E4=BB=A3=E7=A0=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaCodeService.java | 8 ++ .../miniapp/api/impl/WxMaCodeServiceImpl.java | 6 ++ .../bean/code/WxMaCodeVersionInfo.java | 91 +++++++++++++++++++ .../miniapp/constant/WxMaApiUrlConstants.java | 1 + .../api/impl/WxMaCodeServiceImplTest.java | 30 +++--- 5 files changed, 122 insertions(+), 14 deletions(-) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeVersionInfo.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java index 7c13818b81..e560a15121 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java @@ -105,6 +105,14 @@ public interface WxMaCodeService { */ WxMaCodeVersionDistribution getSupportVersion() throws WxErrorException; + /** + * 查询小程序版本信息 + * + * @return 小程序的体验版和线上版本信息 + * @throws WxErrorException 失败时抛出,具体错误码请看此接口的注释文档 + */ + WxMaCodeVersionInfo getVersionInfo() throws WxErrorException; + /** * 设置最低基础库版本(仅供第三方代小程序调用). * diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImpl.java index 37265cfe5a..68271254a9 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImpl.java @@ -138,6 +138,12 @@ public WxMaCodeVersionDistribution getSupportVersion() throws WxErrorException { return WxMaCodeVersionDistribution.fromJson(responseContent); } + @Override + public WxMaCodeVersionInfo getVersionInfo() throws WxErrorException { + String responseContent = this.service.post(GET_VERSION_INFO_URL, "{}"); + return WxMaCodeVersionInfo.fromJson(responseContent); + } + @Override public void setSupportVersion(String version) throws WxErrorException { JsonObject param = new JsonObject(); diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeVersionInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeVersionInfo.java new file mode 100644 index 0000000000..32999382fb --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeVersionInfo.java @@ -0,0 +1,91 @@ +package cn.binarywang.wx.miniapp.bean.code; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 查询小程序版本信息 + * + * @author LeonXi + * @since 2022-04-13 16:45 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WxMaCodeVersionInfo implements Serializable { + + private static final long serialVersionUID = 6929700728659511688L; + + /** + * 体验版信息 + */ + @SerializedName("exp_info") + private ExpInfo expInfo; + + /** + * 线上版信息 + */ + @SerializedName("release_info") + private ReleaseInfo releaseInfo; + + public static WxMaCodeVersionInfo fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, WxMaCodeVersionInfo.class); + } + + @Data + @NoArgsConstructor + @AllArgsConstructor + public static class ExpInfo implements Serializable { + + private static final long serialVersionUID = 6315578419554592943L; + + /** + * 提交体验版的时间 + */ + @SerializedName("exp_time") + private Long expTime; + + /** + * 体验版版本信息 + */ + @SerializedName("exp_version") + private String expVersion; + + /** + * 体验版版本描述 + */ + @SerializedName("exp_desc") + private String expDesc; + } + + @Data + @NoArgsConstructor + @AllArgsConstructor + public static class ReleaseInfo implements Serializable { + + private static final long serialVersionUID = 2098307354673939939L; + + /** + * 发布线上版的时间 + */ + @SerializedName("release_time") + private Long releaseTime; + + /** + * 线上版版本信息 + */ + @SerializedName("release_version") + private String releaseVersion; + + /** + * 线上版本描述 + */ + @SerializedName("release_desc") + private String releaseDesc; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 4377b148b4..0124943b68 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -70,6 +70,7 @@ public interface Code { String GET_SUPPORT_VERSION_URL = "https://api.weixin.qq.com/cgi-bin/wxopen/getweappsupportversion"; String SET_SUPPORT_VERSION_URL = "https://api.weixin.qq.com/cgi-bin/wxopen/setweappsupportversion"; String UNDO_CODE_AUDIT_URL = "https://api.weixin.qq.com/wxa/undocodeaudit"; + String GET_VERSION_INFO_URL = "https://api.weixin.qq.com/wxa/getversioninfo"; } public interface Express { diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImplTest.java index 0a4aca45e3..bac7bab5b1 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCodeServiceImplTest.java @@ -1,25 +1,21 @@ package cn.binarywang.wx.miniapp.api.impl; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.testng.annotations.*; - import cn.binarywang.wx.miniapp.api.WxMaCodeService; import cn.binarywang.wx.miniapp.api.WxMaService; -import cn.binarywang.wx.miniapp.bean.code.WxMaCategory; -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeAuditStatus; -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeCommitRequest; -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeExtConfig; -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeSubmitAuditRequest; -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeVersionDistribution; +import cn.binarywang.wx.miniapp.bean.code.*; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.test.ApiTestModule; import com.google.inject.Inject; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; -import static org.testng.Assert.*; +import static org.testng.Assert.assertNotNull; +import static org.testng.Assert.assertTrue; /** * @author Charming @@ -143,6 +139,12 @@ public void testGetSupportVersion() throws Exception { System.out.println(distribution); } + @Test + public void testGetVersionInfo() throws Exception { + WxMaCodeVersionInfo versionInfo = wxService.getCodeService().getVersionInfo(); + System.out.println(versionInfo); + } + @Test public void testSetSupportVersion() throws Exception { wxService.getCodeService().setSupportVersion("1.2.0"); From 6f776bdda0d6891a4aaf0f900c10fc28beac1118 Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Thu, 14 Apr 2022 06:36:40 +0000 Subject: [PATCH 182/622] =?UTF-8?q?:bug:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=A2=84=E7=BA=A6=E7=9B=B4=E6=92=AD=E6=B4=BB=E5=8A=A8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=8F=82=E6=95=B0=E5=8F=96=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpLivingService.java | 2 +- .../bean/living/WxCpLivingCreateRequest.java | 10 ++--- .../chanjar/weixin/cp/api/WxCpLivingTest.java | 42 +++++++++++++++++++ .../impl/WxCpGroupRobotServiceImplTest.java | 2 +- 4 files changed, 49 insertions(+), 7 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java index 4b417e90f2..380c3bfc50 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java @@ -84,7 +84,7 @@ public interface WxCpLivingService { * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/create?access_token=ACCESS_TOKEN * * @param request 创建预约直播请求参数. - * @return + * @return livingId(直播id) * @throws WxErrorException */ String livingCreate(WxCpLivingCreateRequest request) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java index 6da6b81e55..4272a0372e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java @@ -1,14 +1,12 @@ package me.chanjar.weixin.cp.bean.living; import com.google.gson.annotations.SerializedName; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; +import lombok.*; import lombok.experimental.Accessors; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.io.Serializable; +import java.util.List; /** * 创建预约直播请求. @@ -57,10 +55,12 @@ public class WxCpLivingCreateRequest implements Serializable { @SerializedName("activity_detail") private ActivityDetail activityDetail; + @Getter + @Setter public static class ActivityDetail implements Serializable { @SerializedName("image_list") - private String[] imageList; + private List imageList; @SerializedName("description") private String description; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java index 295f0497ff..4305c26c94 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java @@ -1,6 +1,7 @@ package me.chanjar.weixin.cp.api; import lombok.extern.slf4j.Slf4j; +import lombok.val; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.living.*; @@ -10,6 +11,7 @@ import org.testng.annotations.Test; import java.io.InputStream; +import java.util.ArrayList; import java.util.Date; /** @@ -34,6 +36,46 @@ public void test() throws WxErrorException { wxCpService = new WxCpServiceImpl(); wxCpService.setWxCpConfigStorage(config); + /** + * 测试创建直播 + */ + WxCpLivingCreateRequest createRequest = new WxCpLivingCreateRequest(); + createRequest.setAnchorUserid("WangKai"); + createRequest.setTheme("直播1"); + + long currentTimeMillis = System.currentTimeMillis() + 3600000L; + createRequest.setLivingStart(currentTimeMillis); + createRequest.setLivingDuration(3600L); + createRequest.setType(4); + createRequest.setDescription("这是通用直播1"); + + val activityDetail = new WxCpLivingCreateRequest.ActivityDetail(); + activityDetail.setDescription("活动描述,非活动类型的直播不用传"); + +// String[] strings = new String[]{"MEDIA_ID_2", "MEDIA_ID_1"}; + ArrayList imageList = new ArrayList(); + imageList.add("MEDIA_ID_1"); + imageList.add("MEDIA_ID_2"); + + activityDetail.setImageList(imageList); + createRequest.setActivityDetail(activityDetail); + + String livingCreate = wxCpService.getLivingService().livingCreate(createRequest); + log.info("返回的直播id为:{}", livingCreate); + + WxCpLivingCreateRequest thisReq = WxCpLivingCreateRequest.fromJson(createRequest.toJson()); + log.info("返回的数据:{}", thisReq.toJson()); + + // 创建预约直播 + String createJson = "{\"anchor_userid\":\"ChenHu\",\"theme\":\"theme\",\"living_start\":164037820420,\"living_duration\":3600,\"description\":\"test description\",\"type\":4,\"remind_time\":60,\"activity_cover_mediaid\":\"MEDIA_ID\",\"activity_share_mediaid\":\"MEDIA_ID\",\"activity_detail\":{\"description\":\"活动描述,非活动类型的直播不用传\",\"image_list\":[\"xxxx1\",\"xxxx1\"]}}"; + WxCpLivingCreateRequest requestData = WxCpLivingCreateRequest.fromJson(createJson); + String thisLivingId = wxCpService.getLivingService().livingCreate(requestData); + log.info("livingId为:{}", thisLivingId); + + + /** + * other api + */ String livingCode = wxCpService.getLivingService().getLivingCode("o50by5NezHciWnoexJsrI49ILNqI", "lvOQpTDwAAD2MYuOq9y_bmLNMJfbbdGw"); log.info(JSON.toString(livingCode)); diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java index 57bd9b750d..c1a09f3599 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java @@ -61,7 +61,7 @@ public void testSendImage() throws WxErrorException { @Test public void testSendNews() throws WxErrorException { NewArticle article = new NewArticle("图文消息测试", "hello world", "http://www.baidu.com", - "http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png", null); + "http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png", null, null, null); robotService.sendNews(Stream.of(article).collect(Collectors.toList())); } } From 7229bb4e40fdfd3d4df266d4ba7d72df808fb666 Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Thu, 14 Apr 2022 08:51:03 +0000 Subject: [PATCH 183/622] =?UTF-8?q?:new:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=88=90=E5=91=98=E5=81=87=E6=9C=9F=E4=BD=99=E9=A2=9D=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/WxCpOaService.java | 22 ++++++++++++++++++- .../weixin/cp/api/impl/WxCpOaServiceImpl.java | 17 ++++++++++++++ .../chanjar/weixin/cp/bean/WxCpBaseResp.java | 8 ++++++- .../cp/api/impl/WxCpOaServiceImplTest.java | 22 +++++++++++++++++-- 4 files changed, 65 insertions(+), 4 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java index c0b5204e1f..6b2a3c9d80 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java @@ -2,6 +2,7 @@ import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.*; import java.util.Date; @@ -146,13 +147,32 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, * 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/getuservacationquota?access_token=ACCESS_TOKEN * - * @param userId + * @param userId 需要获取假期余额的成员的userid * @return * @throws WxErrorException */ WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws WxErrorException; + /** + * 修改成员假期余额 + * 企业可通过审批应用或自建应用Secret调用本接口,修改可见范围内员工的“假期余额”。 + * 第三方应用可通过应本接口修改应用可见范围内指定员工的“假期余额”。 + * + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/setoneuserquota?access_token=ACCESS_TOKEN + * + * @param userId 需要修改假期余额的成员的userid + * @param vacationId 假期id + * @param leftDuration 设置的假期余额,单位为秒,不能大于1000天或24000小时,当假期时间刻度为按小时请假时,必须为360整倍数,即0.1小时整倍数,按天请假时,必须为8640整倍数,即0.1天整倍数 + * @param timeAttr 假期时间刻度:0-按天请假;1-按小时请假 + * @param remarks 修改备注,用于显示在假期余额的修改记录当中,可对修改行为作说明,不超过200字符 + * @return + * @throws WxErrorException + */ + WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, @NonNull Integer leftDuration, @NonNull Integer timeAttr, String remarks) throws WxErrorException; + + /** * 获取公费电话拨打记录 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java index 82cad7aa13..7c0f866dd4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java @@ -11,8 +11,10 @@ import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.WxCpOaService; import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.*; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import org.apache.commons.lang3.StringUtils; import java.util.Date; import java.util.List; @@ -181,6 +183,21 @@ public WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws return WxCpUserVacationQuota.fromJson(responseContent); } + @Override + public WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, @NonNull Integer leftDuration, @NonNull Integer timeAttr, String remarks) throws WxErrorException { + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(SET_ONE_USER_QUOTA); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("vacation_id", vacationId); + jsonObject.addProperty("leftduration", leftDuration); + jsonObject.addProperty("time_attr", timeAttr); + if (StringUtils.isNotEmpty(remarks)) { + jsonObject.addProperty("remarks", remarks); + } + String responseContent = this.mainService.post(url, jsonObject.toString()); + return WxCpBaseResp.fromJson(responseContent); + } + @Override public List getDialRecord(Date startTime, Date endTime, Integer offset, Integer limit) throws WxErrorException { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java index 4ea58c5447..07447d68bb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java @@ -8,7 +8,9 @@ import java.io.Serializable; /** - * @author yqx + * 返回结果 + * + * @author yqx & WangWong * @date 2020/3/16 */ @Getter @@ -30,4 +32,8 @@ public static WxCpBaseResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpBaseResp.class); } + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java index b1c4272362..b5b7ce9f02 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java @@ -6,6 +6,7 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.ApiTestModule; import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.*; import org.apache.commons.lang3.time.DateFormatUtils; import org.testng.annotations.Guice; @@ -176,7 +177,7 @@ public void testGetDialRecord() { * @throws WxErrorException */ @Test - public void testGetCorpConf() throws WxErrorException{ + public void testGetCorpConf() throws WxErrorException { WxCpCorpConfInfo corpConf = this.wxService.getOaService().getCorpConf(); log.info(corpConf.toJson()); } @@ -188,7 +189,7 @@ public void testGetCorpConf() throws WxErrorException{ * @throws WxErrorException */ @Test - public void testGetUserVacationQuota() throws WxErrorException{ + public void testGetUserVacationQuota() throws WxErrorException { WxCpUserVacationQuota vacationQuota = this.wxService.getOaService().getUserVacationQuota("WangKai"); log.info(vacationQuota.toJson()); @@ -198,4 +199,21 @@ public void testGetUserVacationQuota() throws WxErrorException{ } + /** + * 修改成员假期余额 + * https://developer.work.weixin.qq.com/document/path/93377 + * + * @throws WxErrorException + */ + @Test + public void testSetOneUserQuota() throws WxErrorException { + + String text = "{\"errcode\":0,\"errmsg\":\"ok\"}"; + WxCpBaseResp resp = WxCpBaseResp.fromJson(text); + log.info("返回结果为:{}", resp.toJson()); + +// WxCpBaseResp wxCpBaseResp = this.wxService.getOaService().setOneUserQuota(, , , , ); + + } + } From 4d014708211fe638bbd035348bb1b287a6f7250c Mon Sep 17 00:00:00 2001 From: zhongjun Date: Mon, 18 Apr 2022 13:56:06 +0800 Subject: [PATCH 184/622] =?UTF-8?q?:art:=20=E6=B7=BB=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=85=A8=E5=B1=80=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81:40096-=E4=B8=8D=E5=90=88=E6=B3=95=E7=9A=84=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E8=81=94=E7=B3=BB=E4=BA=BAuserid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java index 61b863bf1a..0b6c774e06 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java @@ -248,6 +248,10 @@ public enum WxCpErrorMsgEnum { * 不合法的URL;缺少主页URL参数,或者URL不合法(链接需要带上协议头,以 http:// 或者 https:// 开头). */ CODE_40094(40094, "不合法的URL;缺少主页URL参数,或者URL不合法(链接需要带上协议头,以 http:// 或者 https:// 开头)"), + /** + * 不合法的外部联系人userid + */ + CODE_40096(40096,"不合法的外部联系人userid"), /** * 缺少access_token参数. */ From b6ee83d119386bcbe2739d17bd9fcd047f7db027 Mon Sep 17 00:00:00 2001 From: zhangyulai Date: Mon, 18 Apr 2022 15:28:33 +0800 Subject: [PATCH 185/622] =?UTF-8?q?:art:=20#2593=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E7=B1=BB=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87/=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E5=AE=89=E5=85=A8=E6=A3=80=E6=B5=8B2.0=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/WxMaMediaAsyncCheckResult.java | 58 +++++++++++++++++++ .../wx/miniapp/bean/WxMaMessage.java | 25 ++++++++ 2 files changed, 83 insertions(+) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMediaAsyncCheckResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMediaAsyncCheckResult.java index f4428b959b..64351ece6d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMediaAsyncCheckResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMediaAsyncCheckResult.java @@ -2,7 +2,11 @@ import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; import com.google.gson.annotations.SerializedName; +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamConverter; +import lombok.Builder; import lombok.Data; +import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; import java.io.Serializable; @@ -19,6 +23,60 @@ public class WxMaMediaAsyncCheckResult implements Serializable { @SerializedName("trace_id") private String traceId; + /** + * 综合结果 + */ + @Data + @Builder + @XStreamAlias("result") + public static class ResultBean implements Serializable { + /** + * suggest : risky + * label : 20001 + */ + @SerializedName("suggest") + @XStreamAlias("suggest") + @XStreamConverter(value = XStreamCDataConverter.class) + private String suggest; + @SerializedName("label") + @XStreamAlias("label") + @XStreamConverter(value = XStreamCDataConverter.class) + private String label; + } + + /** + * 详细检测结果 + */ + @Data + @Builder + @XStreamAlias("detail") + public static class DetailBean implements Serializable { + /** + * strategy : content_model + * errcode : 0 + * suggest : risky + * label : 20006 + * prob : 90 + */ + @SerializedName("strategy") + @XStreamAlias("strategy") + @XStreamConverter(value = XStreamCDataConverter.class) + private String strategy; + @SerializedName("errcode") + @XStreamAlias("errcode") + private Integer errcode; + @SerializedName("suggest") + @XStreamAlias("suggest") + @XStreamConverter(value = XStreamCDataConverter.class) + private String suggest; + @SerializedName("label") + @XStreamAlias("label") + @XStreamConverter(value = XStreamCDataConverter.class) + private String label; + @SerializedName("prob") + @XStreamAlias("prob") + private Integer prob; + } public static WxMaMediaAsyncCheckResult fromJson(String json) { return WxMaGsonBuilder.create().fromJson(json, WxMaMediaAsyncCheckResult.class); diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java index aa9fd868d5..e34d63cd69 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java @@ -7,6 +7,7 @@ import com.google.gson.annotations.SerializedName; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; +import com.thoughtworks.xstream.annotations.XStreamImplicit; import lombok.Data; import me.chanjar.weixin.common.error.WxRuntimeException; import me.chanjar.weixin.common.util.XmlUtils; @@ -18,6 +19,7 @@ import java.io.InputStream; import java.io.Serializable; import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Map; /** @@ -144,6 +146,29 @@ public class WxMaMessage implements Serializable { @XStreamConverter(value = XStreamCDataConverter.class) private String statusCode; + /** + * 异步校验图片/音频内容安全 接口版本 + * @since 2.0 + */ + @SerializedName("version") + @XStreamAlias("version") + private Integer version; + /** + * 异步校验图片/音频内容安全 综合结果 + * @since 2.0 + */ + @SerializedName("result") + @XStreamAlias("result") + private WxMaMediaAsyncCheckResult.ResultBean result; + /** + * 异步校验图片/音频内容安全 详细检测结果 + * @since 2.0 + */ + @SerializedName("detail") + @XStreamAlias("detail") + @XStreamImplicit + private List detail; + @SerializedName("Scene") @XStreamAlias("Scene") private Integer scene; From a0dcda4ac1d733072d3d68c5e65d3e9e1267d8bf Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 15 Apr 2022 17:30:55 +0800 Subject: [PATCH 186/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/WxPayService.java | 94 ++++++++++--------- 1 file changed, 49 insertions(+), 45 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 3f98c3d2c6..5afabbb3d3 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -35,17 +35,17 @@ public interface WxPayService { String getPayBaseUrl(); /** - * Map里 加入新的 {@link WxPayConfig},适用于动态添加新的微信公众号配置. + * Map里 加入新的 {@link WxPayConfig},适用于动态添加新的微信商户配置. * - * @param mchId 商户号id + * @param mchId 商户id * @param wxPayConfig 新的微信配置 */ void addConfig(String mchId, WxPayConfig wxPayConfig); /** - * 从 Map中 移除 {@link String mchId} 所对应的 {@link WxPayConfig},适用于动态移除微信公众号配置. + * 从 Map中 移除 {@link String mchId} 所对应的 {@link WxPayConfig},适用于动态移除微信商户配置. * - * @param mchId 对应公众号的标识 + * @param mchId 对应商户的标识 */ void removeConfig(String mchId); @@ -66,17 +66,17 @@ public interface WxPayService { void setMultiConfig(Map wxPayConfigs, String defaultMchId); /** - * 进行相应的公众号切换. + * 进行相应的商户切换. * - * @param mchId 公众号标识 + * @param mchId 商户标识 * @return 切换是否成功 boolean */ boolean switchover(String mchId); /** - * 进行相应的公众号切换. + * 进行相应的商户切换. * - * @param mchId 公众号标识 + * @param mchId 商户标识 * @return 切换成功 ,则返回当前对象,方便链式调用,否则抛出异常 */ WxPayService switchoverTo(String mchId); @@ -176,8 +176,8 @@ public interface WxPayService { /** * 发送put V3请求,得到响应字符串. * - * @param url 请求地址 - * @param url 请求数据 + * @param url 请求地址 + * @param requestStr 请求数据 * @return 返回请求结果字符串 string * @throws WxPayException the wx pay exception */ @@ -194,6 +194,7 @@ public interface WxPayService { /** * 获取微信签约代扣服务类 + * * @return entrust service */ WxEntrustPapService getWxEntrustPapService(); @@ -229,7 +230,7 @@ public interface WxPayService { /** * 获取分账服务类. *

- * V3接口 {@link WxPayService#getProfitSharingV3Service()} + * V3接口 {@link WxPayService#getProfitSharingV3Service()} *

* * @return the ent pay service @@ -341,7 +342,7 @@ public interface WxPayService { /** *
    * 查询订单
-   * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_2.shtml
+   * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_2.shtml
    * 商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询
    * 注意:
    *  查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同
@@ -365,7 +366,7 @@ public interface WxPayService {
   /**
    * 
    * 查询订单
-   * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_2.shtml
+   * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_2.shtml
    * 商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询
    * 注意:
    *  查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同
@@ -389,11 +390,11 @@ public interface WxPayService {
    * 
    * 合单查询订单API
    * 请求URL: https://api.mch.weixin.qq.com/v3/combine-transactions/out-trade-no/{combine_out_trade_no}
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_11.shtml
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_11.shtml
    * 
* * @param combineOutTradeNo 合单商户订单号 - * @return 合单支付订单信息 + * @return 合单支付订单信息 combine query result * @throws WxPayException the wx pay exception */ CombineQueryResult queryCombine(String combineOutTradeNo) throws WxPayException; @@ -472,7 +473,7 @@ public interface WxPayService { *
    * 合单关闭订单API
    * 请求URL: https://api.mch.weixin.qq.com/v3/combine-transactions/out-trade-no/{combine_out_trade_no}/close
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_12.shtml
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_12.shtml
    * 
* * @param request 请求对象 @@ -498,7 +499,7 @@ public interface WxPayService { * @param request 统一下单请求参数,设定的 tradeType 及配置里的 tradeType 将被忽略,转而使用 specificTradeType * @return 返回 {@link WxPayConstants.TradeType.Specific} 指定的类 * @throws WxPayException the wx pay exception - * @see WxPayService#createOrder(WxPayUnifiedOrderRequest) WxPayService#createOrder(WxPayUnifiedOrderRequest) + * @see WxPayService#createOrder(WxPayUnifiedOrderRequest) WxPayService#createOrder(WxPayUnifiedOrderRequest)WxPayService#createOrder(WxPayUnifiedOrderRequest) */ T createOrder(WxPayConstants.TradeType.Specific specificTradeType, WxPayUnifiedOrderRequest request) throws WxPayException; @@ -516,8 +517,9 @@ public interface WxPayService { /** * 调用统一下单接口,并组装生成支付所需参数对象. * - * @param 请使用{@link com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderV3Result}里的内部类或字段 - * @param request 统一下单请求参数 + * @param 请使用{@link com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderV3Result}里的内部类或字段 + * @param tradeType the trade type + * @param request 统一下单请求参数 * @return 返回 {@link com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderV3Result}里的内部类或字段 * @throws WxPayException the wx pay exception */ @@ -526,7 +528,8 @@ public interface WxPayService { /** * 在发起微信支付前,需要调用统一下单接口,获取"预支付交易会话标识" * - * @param request 请求对象,注意一些参数如appid、mchid等不用设置,方法内会自动从配置对象中获取到(前提是对应配置中已经设置) + * @param tradeType the trade type + * @param request 请求对象,注意一些参数如appid、mchid等不用设置,方法内会自动从配置对象中获取到(前提是对应配置中已经设置) * @return the wx pay unified order result * @throws WxPayException the wx pay exception */ @@ -540,7 +543,7 @@ public interface WxPayService { * https://api.mch.weixin.qq.com/v3/combine-transactions/h5 * https://api.mch.weixin.qq.com/v3/combine-transactions/jsapi * https://api.mch.weixin.qq.com/v3/combine-transactions/native - * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_9_3.shtml + * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_9_3.shtml *
* * @param tradeType 支付方式 @@ -558,9 +561,10 @@ public interface WxPayService { * https://api.mch.weixin.qq.com/v3/combine-transactions/h5 * https://api.mch.weixin.qq.com/v3/combine-transactions/jsapi * https://api.mch.weixin.qq.com/v3/combine-transactions/native - * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_9_3.shtml + * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_9_3.shtml *
* + * @param the type parameter * @param tradeType 支付方式 * @param request 请求对象 * @return 调起支付需要的参数 t @@ -597,7 +601,7 @@ public interface WxPayService { /** *
    * 微信支付-申请退款.
-   * 详见 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
+   * 详见 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
    * 接口链接:https://api.mch.weixin.qq.com/secapi/pay/refund
    * 
* @@ -610,7 +614,7 @@ public interface WxPayService { /** *
    * 申请退款API(支持单品).
-   * 详见 https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_103&index=3
+   * 详见 https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_103&index=3
    *
    * 应用场景
    * 当交易发生之后一段时间内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付款退还给买家,微信支付将在收到退款请求并且验证成功之后,按照退款规则将支付款按原路退到买家帐号上。
@@ -637,7 +641,7 @@ public interface WxPayService {
   /**
    * 
    * 申请退款API(支持单品).
-   * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_9.shtml
+   * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_9.shtml
    *
    * 应用场景
    * 当交易发生之后一年内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付金额退还给买家,微信支付将在收到退款请求并且验证成功之后,将支付款按原路退还至买家账号上。
@@ -667,7 +671,7 @@ public interface WxPayService {
    * 应用场景:
    *  提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,
    *  银行卡支付的退款3个工作日后重新查询退款状态。
-   * 详见 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_5
+   * 详见 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_5
    * 接口链接:https://api.mch.weixin.qq.com/pay/refundquery
    * 
* 以下四个参数四选一 @@ -688,7 +692,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 应用场景: * 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账, * 银行卡支付的退款3个工作日后重新查询退款状态。 - * 详见 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_5 + * 详见 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_5 * 接口链接:https://api.mch.weixin.qq.com/pay/refundquery *
* @@ -712,7 +716,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 接口地址 * https://api.mch.weixin.qq.com/pay/refundqueryv2 * https://api2.mch.weixin.qq.com/pay/refundqueryv2(备用域名)见跨城冗灾方案 - * 详见 https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_104&index=4 + * 详见 https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_104&index=4 *
* * @param request 微信退款单号 @@ -726,7 +730,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 微信支付-查询退款 * 应用场景: * 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,建议在提交退款申请后1分钟发起查询退款状态,一般来说零钱支付的退款5分钟内到账,银行卡支付的退款1-3个工作日到账。 - * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml + * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml * 接口链接:https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no} *
* @@ -741,7 +745,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 微信支付-查询退款 * 应用场景: * 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,建议在提交退款申请后1分钟发起查询退款状态,一般来说零钱支付的退款5分钟内到账,银行卡支付的退款1-3个工作日到账。 - * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml + * 详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml * 接口链接:https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no} *
* @@ -786,7 +790,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri /** *
    * 合单支付通知回调数据处理
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_13.shtml
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_13.shtml
    * 
* * @param notifyData 通知数据 @@ -844,7 +848,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 二维码中的内容为链接,形式为: * weixin://wxpay/bizpayurl?sign=XXXXX&appid=XXXXX&mch_id=XXXXX&product_id=XXXXXX&time_stamp=XXXXXX&nonce_str=XXXXX * 其中XXXXX为商户需要填写的内容,商户将该链接生成二维码,如需要打印发布二维码,需要采用此格式。商户可调用第三方库生成二维码图片。 - * 文档详见: https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4 *
* * @param productId 产品Id @@ -860,7 +864,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 二维码中的内容为链接,形式为: * weixin://wxpay/bizpayurl?sign=XXXXX&appid=XXXXX&mch_id=XXXXX&product_id=XXXXXX&time_stamp=XXXXXX&nonce_str=XXXXX * 其中XXXXX为商户需要填写的内容,商户将该链接生成二维码,如需要打印发布二维码,需要采用此格式。商户可调用第三方库生成二维码图片。 - * 文档详见: https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4 *
* * @param productId 产品Id @@ -873,7 +877,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 扫码支付模式二生成二维码的方法. * 对应链接格式:weixin://wxpay/bizpayurl?sr=XXXXX。请商户调用第三方库将code_url生成二维码图片。 * 该模式链接较短,生成的二维码打印到结账小票上的识别率较高。 - * 文档详见: https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_5 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_5 *
* * @param codeUrl 微信返回的交易会话的二维码链接 @@ -890,7 +894,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 商户在调用微信支付提供的相关接口时,会得到微信支付返回的相关信息以及获得整个接口的响应时间。 * 为提高整体的服务水平,协助商户一起提高服务质量,微信支付提供了相关接口调用耗时和返回信息的主动上报接口, * 微信支付可以根据商户侧上报的数据进一步优化网络部署,完善服务监控,和商户更好的协作为用户提供更好的业务体验。 - * 接口地址: https://api.mch.weixin.qq.com/payitil/report + * 接口地址: https://api.mch.weixin.qq.com/payitil/report * 是否需要证书:不需要 *
* @@ -908,7 +912,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 2、微信在次日9点启动生成前一天的对账单,建议商户10点后再获取; * 3、对账单中涉及金额的字段单位为“元”。 * 4、对账单接口只能下载三个月以内的账单。 - * 接口链接:https://api.mch.weixin.qq.com/pay/downloadbill + * 接口链接:https://api.mch.weixin.qq.com/pay/downloadbill * 详情请见: 下载对账单 *
* @@ -1027,7 +1031,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * • 微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账单中,跟原支付单订单号一致; * • 对账单中涉及金额的字段单位为“元”; * • 对账单接口只能下载三个月以内的账单。 - * 接口链接:https://api.mch.weixin.qq.com/v3/bill/tradebill + * 接口链接:https://api.mch.weixin.qq.com/v3/bill/tradebill * 详情请见: 申请交易账单 *
* @@ -1044,7 +1048,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 注意: * • 资金账单中的数据反映的是商户微信支付账户资金变动情况; * • 对账单中涉及金额的字段单位为“元”。 - * 接口链接:https://api.mch.weixin.qq.com/v3/bill/fundflowbill + * 接口链接:https://api.mch.weixin.qq.com/v3/bill/fundflowbill * 详情请见: 申请资金账单 *
* @@ -1075,12 +1079,12 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri /** *
    * 提交付款码支付.
-   * 文档地址:https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_10&index=1
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_10&index=1
    * 应用场景:
    * 收银员使用扫码设备读取微信用户刷卡授权码以后,二维码或条码信息传送至商户收银台,由商户收银台或者商户后台调用该接口发起支付。
    * 提醒1:提交支付请求后微信会同步返回支付结果。当返回结果为“系统错误”时,商户系统等待5秒后调用【查询订单API】,查询支付实际交易结果;当返回结果为“USERPAYING”时,商户系统可设置间隔时间(建议10秒)重新查询支付结果,直到支付成功或超时(建议30秒);
    * 提醒2:在调用查询接口返回后,如果交易状况不明晰,请调用【撤销订单API】,此时如果交易失败则关闭订单,该单不能再支付成功;如果交易成功,则将扣款退回到用户账户。当撤销无返回或错误时,请再次调用。注意:请勿扣款后立即调用【撤销订单API】,建议至少15秒后再调用。撤销订单API需要双向证书。
-   * 接口地址:   https://api.mch.weixin.qq.com/pay/micropay
+   * 接口地址:   https://api.mch.weixin.qq.com/pay/micropay
    * 是否需要证书:不需要。
    * 
* @@ -1114,10 +1118,10 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri *
    *  转换短链接.
    *  文档地址:
-   *     https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_9&index=8
+   *     https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_9&index=8
    *  应用场景:
    *     该接口主要用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量,提升扫描速度和精确度。
-   *  接口地址:https://api.mch.weixin.qq.com/tools/shorturl
+   *  接口地址:https://api.mch.weixin.qq.com/tools/shorturl
    *  是否需要证书:否
    * 
* @@ -1135,7 +1139,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * @param longUrl 需要被压缩的网址 * @return the string * @throws WxPayException the wx pay exception - * @see WxPayService#shorturl(WxPayShorturlRequest) WxPayService#shorturl(WxPayShorturlRequest)WxPayService#shorturl(WxPayShorturlRequest) + * @see WxPayService#shorturl(WxPayShorturlRequest) WxPayService#shorturl(WxPayShorturlRequest)WxPayService#shorturl(WxPayShorturlRequest)WxPayService#shorturl(WxPayShorturlRequest) */ String shorturl(String longUrl) throws WxPayException; @@ -1144,7 +1148,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * 授权码查询OPENID接口. * 通过授权码查询公众号Openid,调用查询后,该授权码只能由此商户号发起扣款,直至授权码更新。 * 文档地址: - * https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_13&index=9 + * https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_13&index=9 * 接口链接: * https://api.mch.weixin.qq.com/tools/authcodetoopenid *
@@ -1163,7 +1167,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * @param authCode 授权码 * @return openid string * @throws WxPayException the wx pay exception - * @see WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest) WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest)WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest) + * @see WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest) WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest)WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest)WxPayService#authcode2Openid(WxPayAuthcode2OpenidRequest) */ String authcode2Openid(String authCode) throws WxPayException; From 4985a21f24f38c5b9f2f2c246b2b4f25a9d2d2fc Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 18 Apr 2022 15:34:13 +0800 Subject: [PATCH 187/622] =?UTF-8?q?:art:=20=E8=A1=A5=E5=85=85=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E7=8A=B6=E6=80=81=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/oa/WxCpRecordSpStatus.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java index 055871e23f..d6be02d40e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpRecordSpStatus.java @@ -39,7 +39,17 @@ public enum WxCpRecordSpStatus { * 已退回 */ @SerializedName("11") - WITHDRAWN(11); + WITHDRAWN(11), + /** + * 12-已加签 + */ + @SerializedName("12") + SIGNED(12), + /** + * 13-已同意并加签 + */ + @SerializedName("13") + PASSEDANDSIGNED(13); private final Integer status; From ccd452c2a54bc232bdfb52f6d243a4a561a8d4e4 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 18 Apr 2022 15:37:12 +0800 Subject: [PATCH 188/622] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2eecdfd298..8dd8824069 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ ### 重要信息 -1. 项目合作洽谈,请联系微信`binary0000`(在微信里自行搜索并添加好友即可,请注明来意)。 +1. 项目合作洽谈请联系微信`binary0000`(在微信里自行搜索并添加好友,请注明来意,如有关于SDK问题需讨论请参考下文入群讨论,不要加此微信)。 2. **2022-4-10 发布 [【4.3.0正式版】](https://mp.weixin.qq.com/s/yCsa7nD4_DLjW1RDcrEk6g)**! 3. 贡献源码可以参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007) 4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。 From 0256461044e3f5f9596b4d60e9a1339aacc0e80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E7=BF=9F?= <33095817+didi12121@users.noreply.github.com> Date: Mon, 18 Apr 2022 16:39:28 +0800 Subject: [PATCH 189/622] =?UTF-8?q?:new:=20#2592=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E8=81=94=E7=B3=BB=E4=BA=BA=E8=81=8A=E5=A4=A9=E6=95=8F?= =?UTF-8?q?=E6=84=9F=E8=AF=8D=E7=9A=84=E7=9A=84=E6=96=B0=E5=A2=9E=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=81=E5=88=A0=E9=99=A4=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 28 ++++++++ .../impl/WxCpExternalContactServiceImpl.java | 64 +++++++++++++------ .../bean/external/WxCpInterceptRuleResp.java | 61 ++++++++++++++++++ .../external/WxCpInterceptRuleResultResp.java | 30 +++++++++ .../cp/bean/oa/applydata/ContentValue.java | 3 + .../weixin/cp/constant/WxCpApiPathConsts.java | 5 ++ 6 files changed, 171 insertions(+), 20 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index ae6b59ed6b..a87079d5ae 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -960,5 +960,33 @@ WxMediaUploadResult uploadAttachment(String mediaType, String fileType, Integer WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, File file) throws WxErrorException; + /** + *
+   * 新建敏感词规则
+   * 企业和第三方应用可以通过此接口新建敏感词规则
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_intercept_rule?access_token=ACCESS_TOKEN
+   * 
+   */
+  WxCpInterceptRuleResultResp addInterceptRule(WxCpInterceptRuleResp ruleResp) throws  WxErrorException;
+  /**
+   * 
+   * 修改敏感词规则
+   * 企业和第三方应用可以通过此接口修改敏感词规则
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_intercept_rule?access_token=ACCESS_TOKEN
+   * 
+   */
+  WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp ruleResp) throws  WxErrorException;
+  /**
+   * 
+   * 删除敏感词规则
+   * 企业和第三方应用可以通过此接口修改敏感词规则
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/del_intercept_rule?access_token=ACCESS_TOKEN
+   * 
+   * @param rule_id 规则id
+   */
+  WxCpBaseResp delInterceptRule(String rule_id) throws  WxErrorException;
 
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
index def24cf8bd..89fc6961d1 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
@@ -2,10 +2,12 @@
 
 import com.google.gson.Gson;
 import com.google.gson.JsonObject;
+
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.UUID;
+
 import lombok.NonNull;
 import lombok.RequiredArgsConstructor;
 import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
@@ -111,7 +113,7 @@ public WxCpExternalContactInfo getExternalContact(String userId) throws WxErrorE
   @Override
   public WxCpExternalContactInfo getContactDetail(String userId, String cursor) throws WxErrorException {
     String params = userId;
-    if(StringUtils.isNotEmpty(cursor)){
+    if (StringUtils.isNotEmpty(cursor)) {
       params = params + "&cursor=" + cursor;
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_CONTACT_DETAIL + params);
@@ -130,11 +132,11 @@ public String convertToOpenid(@NotNull String externalUserId) throws WxErrorExce
   }
 
   @Override
-  public String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException {
+  public String unionidToExternalUserid(@NotNull String unionid, String openid) throws WxErrorException {
     JsonObject json = new JsonObject();
     json.addProperty("unionid", unionid);
-    if(StringUtils.isNotEmpty(openid)){
-      json.addProperty("openid",openid);
+    if (StringUtils.isNotEmpty(openid)) {
+      json.addProperty("openid", openid);
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(UNIONID_TO_EXTERNAL_USERID);
     String responseContent = this.mainService.post(url, json.toString());
@@ -157,8 +159,8 @@ public WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull String unionid
     JsonObject json = new JsonObject();
     json.addProperty("unionid", unionid);
     json.addProperty("openid", openid);
-    if(StringUtils.isNotEmpty(corpid)){
-      json.addProperty("corpid",corpid);
+    if (StringUtils.isNotEmpty(corpid)) {
+      json.addProperty("corpid", corpid);
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(UNIONID_TO_EXTERNAL_USERID_3RD);
     String responseContent = this.mainService.post(url, json.toString());
@@ -188,7 +190,7 @@ public WxCpBaseResp finishExternalUserIdMigration(@NotNull String corpid) throws
   @Override
   public String opengidToChatid(@NotNull String opengid) throws WxErrorException {
     JsonObject json = new JsonObject();
-    json.addProperty("opengid",opengid);
+    json.addProperty("opengid", opengid);
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(OPENID_TO_CHATID);
     String responseContent = this.mainService.post(url, json.toString());
     JsonObject tmpJson = GsonParser.parse(responseContent);
@@ -247,7 +249,7 @@ public List listFollowers() throws WxErrorException {
   @Override
   public WxCpUserExternalUnassignList listUnassignedList(Integer pageIndex, String cursor, Integer pageSize) throws WxErrorException {
     JsonObject json = new JsonObject();
-    if(pageIndex != null){
+    if (pageIndex != null) {
       json.addProperty("page_id", pageIndex);
     }
     json.addProperty("cursor", StringUtils.isEmpty(cursor) ? "" : cursor);
@@ -518,20 +520,20 @@ public WxCpGetMomentTaskResult getMomentTaskResult(String jobId) throws WxErrorE
 
   @Override
   public WxCpGetMomentList getMomentList(Long startTime, Long endTime, String creator, Integer filterType,
-    String cursor, Integer limit) throws WxErrorException {
+                                         String cursor, Integer limit) throws WxErrorException {
     JsonObject json = new JsonObject();
     json.addProperty("start_time", startTime);
     json.addProperty("end_time", endTime);
     if (!StringUtils.isEmpty(creator)) {
       json.addProperty("creator", creator);
     }
-    if (filterType!=null) {
+    if (filterType != null) {
       json.addProperty("filter_type", filterType);
     }
     if (!StringUtils.isEmpty(cursor)) {
       json.addProperty("cursor", cursor);
     }
-    if (limit!=null) {
+    if (limit != null) {
       json.addProperty("limit", limit);
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_LIST);
@@ -547,7 +549,7 @@ public WxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer l
     if (!StringUtils.isEmpty(cursor)) {
       json.addProperty("cursor", cursor);
     }
-    if (limit!=null) {
+    if (limit != null) {
       json.addProperty("limit", limit);
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_TASK);
@@ -557,14 +559,14 @@ public WxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer l
 
   @Override
   public WxCpGetMomentCustomerList getMomentCustomerList(String momentId, String userId,
-    String cursor, Integer limit) throws WxErrorException {
+                                                         String cursor, Integer limit) throws WxErrorException {
     JsonObject json = new JsonObject();
     json.addProperty("moment_id", momentId);
     json.addProperty("userid", userId);
     if (!StringUtils.isEmpty(cursor)) {
       json.addProperty("cursor", cursor);
     }
-    if (limit!=null) {
+    if (limit != null) {
       json.addProperty("limit", limit);
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_CUSTOMER_LIST);
@@ -574,14 +576,14 @@ public WxCpGetMomentCustomerList getMomentCustomerList(String momentId, String u
 
   @Override
   public WxCpGetMomentSendResult getMomentSendResult(String momentId, String userId,
-    String cursor, Integer limit) throws WxErrorException {
+                                                     String cursor, Integer limit) throws WxErrorException {
     JsonObject json = new JsonObject();
     json.addProperty("moment_id", momentId);
     json.addProperty("userid", userId);
     if (!StringUtils.isEmpty(cursor)) {
       json.addProperty("cursor", cursor);
     }
-    if (limit!=null) {
+    if (limit != null) {
       json.addProperty("limit", limit);
     }
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_MOMENT_SEND_RESULT);
@@ -790,8 +792,8 @@ public WxCpBaseResp delGroupWelcomeTemplate(@NotNull String templateId, String a
    * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表
    * 
* - * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -811,7 +813,7 @@ public WxCpProductAlbumListResult getProductAlbumList(Integer limit, String curs * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册 *
* - * @param productId 商品id + * @param productId 商品id * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -826,7 +828,7 @@ public WxCpProductAlbumResult getProductAlbum(String productId) throws WxErrorEx @Override public WxMediaUploadResult uploadAttachment(String mediaType, String fileType, Integer attachmentType, - InputStream inputStream) throws WxErrorException, IOException { + InputStream inputStream) throws WxErrorException, IOException { return uploadAttachment(mediaType, attachmentType, FileUtils.createTmpFile(inputStream, UUID.randomUUID().toString(), fileType)); } @@ -839,4 +841,26 @@ public WxMediaUploadResult uploadAttachment(String mediaType, Integer attachment return this.mainService.execute(MediaUploadRequestExecutor.create( this.mainService.getRequestHttp()), url, file); } + + @Override + public WxCpInterceptRuleResultResp addInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException { + return WxCpInterceptRuleResultResp + .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(ADD_INTERCEPT_RULE), ruleResp.toJson())); + } + + @Override + public WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException { + return WxCpInterceptRuleResultResp + .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_INTERCEPT_RULE), ruleResp.toJson())); + } + + @Override + public WxCpBaseResp delInterceptRule(String rule_id) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("rule_id",rule_id); + return WxCpBaseResp + .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(DEL_INTERCEPT_RULE), jsonObject)); + } + + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java new file mode 100644 index 0000000000..0c5f86c3c3 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java @@ -0,0 +1,61 @@ +package me.chanjar.weixin.cp.bean.external; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.util.Date; +import java.util.List; + +/** + * 新增敏感词规则请求参数封装实体类 + * + * @author didi + * @date 2022-04-17 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxCpInterceptRuleResp { + + @SerializedName("rule_name") + private String ruleName; + @SerializedName("rule_id") + private String ruleId; + @SerializedName("word_list") + private List wordList; + @SerializedName("semantics_list") + private List semanticsList; + @SerializedName("intercept_type") + private int interceptType; + @SerializedName("applicable_range") + private ApplicableRange applicableRange; + + @Data + public static class ApplicableRange { + @SerializedName("user_list") + private List userList; + @SerializedName("department_list") + private List departmentList; + public static ApplicableRange fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ApplicableRange.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + } + + public static WxCpInterceptRuleResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleResp.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java new file mode 100644 index 0000000000..2ce6c28f27 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.external; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 新建敏感词规则负返回结果 + * @author didi + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class WxCpInterceptRuleResultResp extends WxCpBaseResp implements Serializable { + + @SerializedName("rule_id") + private String ruleId; + + public static WxCpInterceptRuleResultResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleResultResp.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java index 6ae69c1895..e2d4761bd3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java @@ -42,6 +42,9 @@ public class ContentValue implements Serializable { private Vacation vacation; + @SerializedName("date_range") + private Attendance.DataRange dateRange; + @Data public static class Date implements Serializable { private static final long serialVersionUID = -6181554080062231138L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index b3773eeaba..cd43d3472d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -281,6 +281,11 @@ interface ExternalContact { String UPLOAD_ATTACHMENT = "/cgi-bin/media/upload_attachment"; + + String ADD_INTERCEPT_RULE = "/cgi-bin/externalcontact/add_intercept_rule"; + String UPDATE_INTERCEPT_RULE = "/cgi-bin/externalcontact/update_intercept_rule"; + String DEL_INTERCEPT_RULE = "/cgi-bin/externalcontact/del_intercept_rule"; + } interface Kf { From 062eb6c3b4d7a8c832aad6e362ab4f56ada85aff Mon Sep 17 00:00:00 2001 From: dragon Date: Mon, 18 Apr 2022 17:10:26 +0800 Subject: [PATCH 190/622] :art: add BizMail to WxCpXmlMessage --- .../chanjar/weixin/cp/bean/message/WxCpXmlMessage.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index 40d72c3a54..0edf9965a6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -284,6 +284,15 @@ public class WxCpXmlMessage implements Serializable { @XStreamConverter(value = XStreamCDataConverter.class) private String email; + /** + * 企业邮箱;代开发自建应用不返回该字段。 + * ISSUE#2584 + * @see Link + */ + @XStreamAlias("BizMail") + @XStreamConverter(value = XStreamCDataConverter.class) + private String bizMail; + /** * 头像url。注:如果要获取小图将url最后的”/0”改成”/100”即可. */ From 050dafbd42468f88fd45dff885008a113c2c9ec4 Mon Sep 17 00:00:00 2001 From: zhongjun Date: Tue, 19 Apr 2022 17:31:31 +0800 Subject: [PATCH 191/622] =?UTF-8?q?:new:=20#2596=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E9=80=9A?= =?UTF-8?q?=E8=AE=AF=E5=BD=95=E7=AE=A1=E7=90=86-=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=A2=9E=E9=87=8F=E6=9B=B4=E6=96=B0=E6=88=90?= =?UTF-8?q?=E5=91=98=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/cp/api/WxCpService.java | 12 ++++++++++-- .../weixin/cp/api/impl/BaseWxCpServiceImpl.java | 13 +++++++++++-- .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index ddb3968c22..76f337f8e2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -263,6 +263,14 @@ public interface WxCpService extends WxService { */ String replaceParty(String mediaId) throws WxErrorException; + /** + * 上传用户列表,增量更新成员 + * @param mediaId 媒体id + * @return jobId 异步任务id + * @throws WxErrorException the wx error exception + */ + String syncUser(String mediaId) throws WxErrorException; + /** * 上传用户列表覆盖企业号上的用户信息 * @@ -275,11 +283,11 @@ public interface WxCpService extends WxService { /** * 获取异步任务结果 * - * @param joinId the join id + * @param jobId 异步任务id * @return the task result * @throws WxErrorException the wx error exception */ - String getTaskResult(String joinId) throws WxErrorException; + String getTaskResult(String jobId) throws WxErrorException; /** * 初始化http请求对象 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 55ddcf9e23..263fa87a76 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -408,6 +408,15 @@ public String replaceParty(String mediaId) throws WxErrorException { return post(this.configStorage.getApiUrl(BATCH_REPLACE_PARTY), jsonObject.toString()); } + @Override + public String syncUser(String mediaId) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("media_id", mediaId); + String responseContent = post(this.configStorage.getApiUrl(BATCH_SYNC_USER), jsonObject.toString()); + JsonObject tmpJson = GsonParser.parse(responseContent); + return tmpJson.get("jobid").getAsString(); + } + @Override public String replaceUser(String mediaId) throws WxErrorException { JsonObject jsonObject = new JsonObject(); @@ -416,8 +425,8 @@ public String replaceUser(String mediaId) throws WxErrorException { } @Override - public String getTaskResult(String joinId) throws WxErrorException { - String url = this.configStorage.getApiUrl(BATCH_GET_RESULT + joinId); + public String getTaskResult(String jobId) throws WxErrorException { + String url = this.configStorage.getApiUrl(BATCH_GET_RESULT + jobId); return get(url, null); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index cd43d3472d..8c45a676e4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -16,6 +16,7 @@ public interface WxCpApiPathConsts { String GET_AGENT_CONFIG_TICKET = "/cgi-bin/ticket/get?&type=agent_config"; String GET_CALLBACK_IP = "/cgi-bin/getcallbackip"; String BATCH_REPLACE_PARTY = "/cgi-bin/batch/replaceparty"; + String BATCH_SYNC_USER = "/cgi-bin/batch/syncuser"; String BATCH_REPLACE_USER = "/cgi-bin/batch/replaceuser"; String BATCH_GET_RESULT = "/cgi-bin/batch/getresult?jobid="; String JSCODE_TO_SESSION = "/cgi-bin/miniprogram/jscode2session"; From 751820621d8a3f7dd3d4e9625498b79000dc6a9c Mon Sep 17 00:00:00 2001 From: po <36494934+chanlyang@users.noreply.github.com> Date: Wed, 20 Apr 2022 19:22:10 +0800 Subject: [PATCH 192/622] =?UTF-8?q?:bug:=20#2604=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E4=BF=AE=E5=A4=8D=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E9=A2=84=E4=BB=A3=E6=89=A3=E9=80=9A=E7=9F=A5=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/request/WxPreWithholdRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java index ed806afecf..bc9032433c 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java @@ -28,7 +28,7 @@ public class WxPreWithholdRequest implements Serializable { * 委托代扣协议ID */ @SerializedName(value = "contract_id") - private String contractId; + private transient String contractId; /** * 直连商户号 From 7265b3bec2765cde14d7063a3976d1a98c56b0fc Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 20 Apr 2022 19:24:43 +0800 Subject: [PATCH 193/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/WxEntrustPapService.java | 82 +++++++++---------- 1 file changed, 38 insertions(+), 44 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java index be76b34c47..b51f8dde1d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java @@ -7,69 +7,64 @@ /** *
  *   微信签约代扣相关接口.
- *   https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter2_8.shtml
+ *   https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter2_8.shtml
  *  
* * @author chenliang - * @date 2021-08-02 4:50 下午 + * @date 2021 -08-02 4:50 下午 */ public interface WxEntrustPapService { /** - * *
    *   获取公众号纯签约链接,
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_1.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_1.shtml
    *   该接口返回一个签约链接,该链接只能在微信内打开
    * 
* - * @param wxMpEntrustRequest - * @return - * @throws WxPayException + * @param wxMpEntrustRequest the wx mp entrust request + * @return string + * @throws WxPayException the wx pay exception */ String mpSign(WxMpEntrustRequest wxMpEntrustRequest) throws WxPayException; /** - * *
    *   获取小程序纯签约参数json
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_3.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_3.shtml
    *   返回一个json 前端用来拉起一个新的签约小程序进行签约
    * 
* - * - * @param wxMaEntrustRequest - * @return - * @throws WxPayException + * @param wxMaEntrustRequest the wx ma entrust request + * @return string + * @throws WxPayException the wx pay exception */ String maSign(WxMaEntrustRequest wxMaEntrustRequest) throws WxPayException; /** - * *
    *   获取h5纯签约支付跳转链接
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_4.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_4.shtml
    *   返回一个签约链接  在浏览器请求链接拉起微信
    * 
* - * @param wxH5EntrustRequest - * @return - * @throws WxPayException + * @param wxH5EntrustRequest the wx h 5 entrust request + * @return wx h 5 entrust result + * @throws WxPayException the wx pay exception */ WxH5EntrustResult h5Sign(WxH5EntrustRequest wxH5EntrustRequest) throws WxPayException; /** - * *
    *   支付中签约
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_5.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_5.shtml
    *   请求微信 若微信内请求 需要构造json返回,
    *   若h5请求 直接使用mweb_url 链接即可拉起微信
    * 
* - * @param wxPayEntrustRequest - * @return - * @throws WxPayException + * @param wxPayEntrustRequest the wx pay entrust request + * @return wx pay entrust result + * @throws WxPayException the wx pay exception */ WxPayEntrustResult paySign(WxPayEntrustRequest wxPayEntrustRequest) throws WxPayException; @@ -77,7 +72,7 @@ public interface WxEntrustPapService { * 申请扣款 *
    *   申请扣款
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_8.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_8.shtml
    *   请求微信发起委托扣款,扣款额度和次数由使用的签约模板限制,
    *   该扣款接口是立即扣款 无延时 扣款前无消息通知。
    *
@@ -85,9 +80,9 @@ public interface WxEntrustPapService {
    *   从用户签约成功时间开始算,商户在12小时内发起的扣款,会被立即执行,无延迟。商户超过12小时以后发起的扣款,都按24小时扣费规则执行
    * 
* - * @param wxWithholdRequest - * @return - * @throws WxPayException + * @param wxWithholdRequest the wx withhold request + * @return wx withhold result + * @throws WxPayException the wx pay exception */ WxWithholdResult withhold(WxWithholdRequest wxWithholdRequest) throws WxPayException; @@ -95,16 +90,16 @@ public interface WxEntrustPapService { * 预扣费通知 *
    *   预扣费接口
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_10.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_10.shtml
    *   商户进行委托代扣扣费前需要在可通知时间段内调用「预扣费通知」的接口为用户发送扣费提醒,
    *   并设定扣费持续天数和预计扣费金额,经过扣费等待期后,在可扣费期内可发起扣费,扣款金额不能高于预计扣费金额,
    *   扣费失败可主动发起重试扣费(重试次数由其他规则限制),直到扣费成功,或者可扣费期结束。
    *   商户只能在北京时间每天 6:00~22:00调用「预扣费通知」
    * 
* - * @param wxPreWithholdRequest - * @return - * @throws WxPayException + * @param wxPreWithholdRequest the wx pre withhold request + * @return string + * @throws WxPayException the wx pay exception */ String preWithhold(WxPreWithholdRequest wxPreWithholdRequest) throws WxPayException; @@ -112,13 +107,13 @@ public interface WxEntrustPapService { * 签约状态查询 *
    *   签约状态查询
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_7.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_7.shtml
    *   查询签约关系接口提供单笔签约关系查询。
    * 
* - * @param wxSignQueryRequest - * @return - * @throws WxPayException + * @param wxSignQueryRequest the wx sign query request + * @return wx sign query result + * @throws WxPayException the wx pay exception */ WxSignQueryResult querySign(WxSignQueryRequest wxSignQueryRequest) throws WxPayException; @@ -127,31 +122,30 @@ public interface WxEntrustPapService { * 申请解约 *
    *   申请解约
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_9.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_9.shtml
    *   商户与用户的签约关系有误或者商户主动要求与用户解除之前的签约协议时可调用此接口完成解约。
    *   商户可以在商户后台(pay.weixin.qq.com)设置解约回调地址,当发生解约关系的时候,微信服务器会向此地址通知解约信息,内容与签约返回一致
    * 
* - * @param wxTerminatedContractRequest - * @return - * @throws WxPayException + * @param wxTerminatedContractRequest the wx terminated contract request + * @return wx termination contract result + * @throws WxPayException the wx pay exception */ WxTerminationContractResult terminationContract(WxTerminatedContractRequest wxTerminatedContractRequest) throws WxPayException; /** - * *
    *   查询代扣订单
-   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter4_5.shtml
+   *   详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter4_5.shtml
    *   该接口仅提供微信扣款服务申请扣款接口创建的订单进行查询,商户可以通过该接口主动查询微信代扣订单状态,完成下一步的业务逻辑。
    *   ACCEPT等待扣款:为24小时延时扣费场景下独有的,当没有达到24小时前一直是这种状态;
    *   NOTPAY未支付:系统已经启动扣款流程,这个状态只是瞬间状态,很快会进入终态(SUCCESS、PAY_FAIL)
    *
    * 
* - * @param wxWithholdOrderQueryRequest - * @return - * @throws WxPayException + * @param wxWithholdOrderQueryRequest the wx withhold order query request + * @return wx withhold order query result + * @throws WxPayException the wx pay exception */ WxWithholdOrderQueryResult papOrderQuery(WxWithholdOrderQueryRequest wxWithholdOrderQueryRequest) throws WxPayException; } From 6074c846fc5dd5458bc0730c832b053ed2d98c23 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 20 Apr 2022 19:28:57 +0800 Subject: [PATCH 194/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.1?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 899d90d379..98c69751b6 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.0 + 4.3.1.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 36e1ac5d09..a5e23847f7 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 4d3776171d..0c8517f0ac 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 43d3c7b453..514401d84a 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 62f3628c67..3529470785 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index dd55913b48..c21343a0da 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index bb22aff45e..f557ea6fd5 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 51f64628bd..4f5196860d 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 1673ba2435..615448d9e1 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index fc389d4844..7c4acc0b5b 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 9c8c3f86e1..cb86a8dbe2 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index e01606833c..039557b9a8 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index e8c924c0d2..0a60b558a0 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 5d77bf3b9a..8b90980c68 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 6ecd995963..41af824397 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index f0f2d05b18..241fb5af33 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.0 + 4.3.1.B weixin-java-qidian From fa5cac5e5bf5630a56e8b712ec092901688d169e Mon Sep 17 00:00:00 2001 From: Wong <1960779692@qq.com> Date: Thu, 21 Apr 2022 06:38:47 +0000 Subject: [PATCH 195/622] =?UTF-8?q?:new:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=95=B0=E6=8D=AE=EF=BC=88=E6=97=A7=EF=BC=89?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/WxCpOaService.java | 17 +++ .../weixin/cp/api/impl/WxCpOaServiceImpl.java | 13 ++ .../cp/bean/oa/WxCpGetApprovalData.java | 130 ++++++++++++++++++ .../cp/api/impl/WxCpOaServiceImplTest.java | 17 ++- 4 files changed, 176 insertions(+), 1 deletion(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java index 6b2a3c9d80..9dcea51746 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java @@ -154,6 +154,23 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws WxErrorException; + /** + * 获取审批数据(旧) + * 提示:推荐使用新接口“批量获取审批单号”及“获取审批申请详情”,此接口后续将不再维护、逐步下线。 + * 通过本接口来获取公司一段时间内的审批记录。一次拉取调用最多拉取100个审批记录,可以通过多次拉取的方式来满足需求,但调用频率不可超过600次/分。 + * + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/corp/getapprovaldata?access_token=ACCESS_TOKEN + * + * @param startTime 获取审批记录的开始时间。Unix时间戳 + * @param endTime 获取审批记录的结束时间。Unix时间戳 + * @param nextSpNum 第一个拉取的审批单号,不填从该时间段的第一个审批单拉取 + * @return + * @throws WxErrorException + */ + WxCpGetApprovalData getApprovalData(@NonNull Long startTime, @NonNull Long endTime, Long nextSpNum) throws WxErrorException; + + /** * 修改成员假期余额 * 企业可通过审批应用或自建应用Secret调用本接口,修改可见范围内员工的“假期余额”。 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java index 7c0f866dd4..0e227c8874 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java @@ -183,6 +183,19 @@ public WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws return WxCpUserVacationQuota.fromJson(responseContent); } + @Override + public WxCpGetApprovalData getApprovalData(@NonNull Long startTime, @NonNull Long endTime, Long nextSpNum) throws WxErrorException { + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_APPROVAL_DATA); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("starttime", startTime); + jsonObject.addProperty("endtime", endTime); + if (nextSpNum != null) { + jsonObject.addProperty("next_spnum", nextSpNum); + } + String responseContent = this.mainService.post(url, jsonObject.toString()); + return WxCpGetApprovalData.fromJson(responseContent); + } + @Override public WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, @NonNull Integer leftDuration, @NonNull Integer timeAttr, String remarks) throws WxErrorException { final String url = this.mainService.getWxCpConfigStorage().getApiUrl(SET_ONE_USER_QUOTA); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java new file mode 100644 index 0000000000..8385ab0375 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java @@ -0,0 +1,130 @@ +package me.chanjar.weixin.cp.bean.oa; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取审批数据(旧). + * + * @author Wang_Wong + */ +@Data +public class WxCpGetApprovalData extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = 7387181805254287159L; + + @SerializedName("count") + private Integer count; + + @SerializedName("total") + private Integer total; + + @SerializedName("next_spnum") + private Long nextSpNum; + + @SerializedName("data") + private List data; + + @Getter + @Setter + public static class ApprovalData implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("spname") + private String spName; + + @SerializedName("apply_name") + private String applyName; + + @SerializedName("apply_org") + private String applyOrg; + + @SerializedName("approval_name") + private List approvalName; + + @SerializedName("notify_name") + private List notifyName; + + @SerializedName("mediaids") + private List mediaIds; + + @SerializedName("sp_status") + private Integer spStatus; + + @SerializedName("sp_num") + private Long spNum; + + @SerializedName("apply_time") + private Long applyTime; + + @SerializedName("apply_user_id") + private String applyUserId; + + @SerializedName("expense") + private Expense expense; + + @SerializedName("comm") + private Comm comm; + + } + + @Getter + @Setter + public static class Expense implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("expense_type") + private Integer expenseType; + + @SerializedName("reason") + private String reason; + + @SerializedName("item") + private List item; + + } + + @Getter + @Setter + public static class Comm implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("apply_data") + private String applyData; + + } + + @Getter + @Setter + public static class Item implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("expenseitem_type") + private Integer expenseItemType; + + @SerializedName("time") + private Long time; + + @SerializedName("sums") + private Integer sums; + + @SerializedName("reason") + private String reason; + + } + + public static WxCpGetApprovalData fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGetApprovalData.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java index b5b7ce9f02..16f53893f3 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java @@ -162,8 +162,23 @@ public void testApply() throws WxErrorException { this.wxService.getOaService().apply(new WxCpOaApplyEventRequest().setCreatorUserId("123")); } + /** + * 获取审批数据(旧) + * https://developer.work.weixin.qq.com/document/path/91530 + * + * @throws WxErrorException + */ @Test - public void testGetApprovalData() { + public void testGetApprovalData() throws WxErrorException { + + // 提示:推荐使用新接口“批量获取审批单号”及“获取审批申请详情”,此接口后续将不再维护、逐步下线。 +// WxCpGetApprovalData approvalData = this.wxService.getOaService().getApprovalData(System.currentTimeMillis(), System.currentTimeMillis() + 3600L, null); +// log.info("返回数据:{}", approvalData.toJson()); + + String text = "{\"errcode\":0,\"errmsg\":\"ok\",\"count\":3,\"total\":5,\"next_spnum\":201704240001,\"data\":[{\"spname\":\"报销\",\"apply_name\":\"报销测试\",\"apply_org\":\"报销测试企业\",\"approval_name\":[\"审批人测试\"],\"notify_name\":[\"抄送人测试\"],\"sp_status\":1,\"sp_num\":201704200001,\"mediaids\":[\"WWCISP_G8PYgRaOVHjXWUWFqchpBqqqUpGj0OyR9z6WTwhnMZGCPHxyviVstiv_2fTG8YOJq8L8zJT2T2OvTebANV-2MQ\"],\"apply_time\":1499153693,\"apply_user_id\":\"testuser\",\"expense\":{\"expense_type\":1,\"reason\":\"\",\"item\":[{\"expenseitem_type\":6,\"time\":1492617600,\"sums\":9900,\"reason\":\"\"}]},\"comm\":{\"apply_data\":\"{\\\"item-1492610773696\\\":{\\\"title\\\":\\\"abc\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"\\\"}}\"}},{\"spname\":\"请假\",\"apply_name\":\"请假测试\",\"apply_org\":\"请假测试企业\",\"approval_name\":[\"审批人测试\"],\"notify_name\":[\"抄送人测试\"],\"sp_status\":1,\"sp_num\":201704200004,\"apply_time\":1499153693,\"apply_user_id\":\"testuser\",\"leave\":{\"timeunit\":0,\"leave_type\":4,\"start_time\":1492099200,\"end_time\":1492790400,\"duration\":144,\"reason\":\"\"},\"comm\":{\"apply_data\":\"{\\\"item-1492610773696\\\":{\\\"title\\\":\\\"abc\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"\\\"}}\"}},{\"spname\":\"自定义审批\",\"apply_name\":\"自定义\",\"apply_org\":\"自定义测试企业\",\"approval_name\":[\"自定义审批人\"],\"notify_name\":[\"自定义抄送人\"],\"sp_status\":1,\"sp_num\":201704240001,\"apply_time\":1499153693,\"apply_user_id\":\"testuser\",\"comm\":{\"apply_data\":\"{\\\"item-1492610773696\\\":{\\\"title\\\":\\\"abc\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"\\\"}}\"}}]}"; + WxCpGetApprovalData wxCpGetApprovalData = WxCpGetApprovalData.fromJson(text); + log.info("返回数据2:{}", wxCpGetApprovalData.toJson()); + } @Test From aea370503e550394b4e8208150221efb85b3f865 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 21 Apr 2022 15:07:56 +0800 Subject: [PATCH 196/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/mp/api/WxMpMerchantInvoiceService.java | 2 +- .../invoice/merchant/ClearOutInvoiceRequest.java | 5 +++++ .../invoice/merchant/InvoiceAuthDataRequest.java | 6 ++++++ .../bean/invoice/merchant/InvoiceAuthDataResult.java | 11 +++++++++++ .../invoice/merchant/InvoiceAuthPageRequest.java | 7 +++++++ .../bean/invoice/merchant/InvoiceAuthPageResult.java | 3 +++ .../invoice/merchant/InvoiceAuthPageSetting.java | 12 ++++++++++++ .../bean/invoice/merchant/InvoiceRejectRequest.java | 6 ++++++ .../mp/bean/invoice/merchant/InvoiceResult.java | 5 +++++ .../bean/invoice/merchant/MakeOutInvoiceRequest.java | 7 +++++++ .../merchant/MerchantInvoicePlatformInfo.java | 5 +++++ .../merchant/MerchantInvoicePlatformInfoWrapper.java | 3 +++ .../bean/invoice/reimburse/InvoiceBatchRequest.java | 1 - .../bean/invoice/reimburse/InvoiceCommodityInfo.java | 5 ++++- .../bean/invoice/reimburse/InvoiceInfoRequest.java | 4 ---- .../bean/invoice/reimburse/InvoiceInfoResponse.java | 5 ++++- .../mp/bean/invoice/reimburse/InvoiceUserInfo.java | 5 ++++- .../reimburse/UpdateInvoiceStatusRequest.java | 1 - .../invoice/reimburse/UpdateStatusBatchRequest.java | 1 - .../bean/ecommerce/PartnerTransactionsRequest.java | 2 +- .../bean/ecommerce/PartnerTransactionsResult.java | 2 ++ .../marketing/transfer/PartnerTransferRequest.java | 2 +- 22 files changed, 87 insertions(+), 13 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMerchantInvoiceService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMerchantInvoiceService.java index 795c848b3a..ed41c53e5b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMerchantInvoiceService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMerchantInvoiceService.java @@ -13,7 +13,7 @@ * 73100: 开票平台错误 *

* 流程文档: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Vendor_and_Invoicing_Platform_Mode_Instruction.html - * 接口文档: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Vendor_API_List.html + * 接口文档: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Vendor_API_List.html * * @author Mario Luo */ diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java index d0d0f6a9a8..7b90a0797f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/ClearOutInvoiceRequest.java @@ -6,13 +6,18 @@ /** * 发票充红请求参数 + * + * @author Mario Luo */ @Data public class ClearOutInvoiceRequest implements Serializable { + private static final long serialVersionUID = 36469746428007271L; + private ClearOutInvoiceInfo invoiceinfo; @Data public static class ClearOutInvoiceInfo implements Serializable { + private static final long serialVersionUID = -9119257155033644495L; /** * 用户的openid 用户知道是谁在开票 diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataRequest.java index 092e16410a..cef4690999 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataRequest.java @@ -1,23 +1,29 @@ package me.chanjar.weixin.mp.bean.invoice.merchant; +import com.google.gson.annotations.SerializedName; import lombok.Data; import java.io.Serializable; /** * 获取电子开票用户授权数据 + * + * @author Mario Luo */ @Data public class InvoiceAuthDataRequest implements Serializable { + private static final long serialVersionUID = -7423619297443219650L; /** * 开票平台在微信的标识号,商户需要找开票平台提供 */ + @SerializedName("s_pappid") private String sPappid; /** * 订单id,在商户内单笔开票请求的唯一识别号 */ + @SerializedName("order_id") private String orderId; } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataResult.java index 99d8f57cc6..433c700c99 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthDataResult.java @@ -7,9 +7,12 @@ /** * 用户开票认证信息返回结果DTO + * + * @author Mario Luo */ @Data public class InvoiceAuthDataResult implements Serializable { + private static final long serialVersionUID = 7199243456761896912L; /** * 订单授权状态,当errcode为0时会出现 @@ -28,6 +31,8 @@ public class InvoiceAuthDataResult implements Serializable { @Data public static class UserAuthInfo implements Serializable { + private static final long serialVersionUID = 3132380567762544927L; + /** * 个人抬头 */ @@ -41,6 +46,8 @@ public static class UserAuthInfo implements Serializable { @Data public static class UserField implements Serializable { + private static final long serialVersionUID = 2114368427010646381L; + private String title; private String phone; private String email; @@ -49,6 +56,8 @@ public static class UserField implements Serializable { @Data public static class BizField implements Serializable { + private static final long serialVersionUID = 1799355181972008881L; + private String title; private String taxNo; private String addr; @@ -60,6 +69,8 @@ public static class BizField implements Serializable { @Data public static class KeyValuePair implements Serializable { + private static final long serialVersionUID = -1068075389526145791L; + private String key; private String value; } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageRequest.java index 07a8a24e55..0b50111df2 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageRequest.java @@ -1,23 +1,29 @@ package me.chanjar.weixin.mp.bean.invoice.merchant; +import com.google.gson.annotations.SerializedName; import lombok.Data; import java.io.Serializable; /** * 获取授权地址的输入参数 + * + * @author Mario Luo */ @Data public class InvoiceAuthPageRequest implements Serializable { + private static final long serialVersionUID = -804002889404266929L; /** * 开票平台在微信的标识号,商户需要找开票平台提供 */ + @SerializedName("s_pappid") private String sPappid; /** * 订单id,在商户内单笔开票请求的唯一识别号 */ + @SerializedName("order_id") private String orderId; /** @@ -33,6 +39,7 @@ public class InvoiceAuthPageRequest implements Serializable { /** * 授权成功后跳转页面。本字段只有在source为H5的时候需要填写,引导用户在微信中进行下一步流程。app开票因为从外部app拉起微信授权页,授权完成后自动回到原来的app,故无需填写。 */ + @SerializedName("redirect_url") private String redirectUrl; /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageResult.java index d137adb49a..1ab3513bfe 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageResult.java @@ -6,9 +6,12 @@ /** * 获取授权链接返回结果DTO + * + * @author Mario Luo */ @Data public class InvoiceAuthPageResult implements Serializable { + private static final long serialVersionUID = 2922797121045894425L; /** * 授权页地址 diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageSetting.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageSetting.java index dbc04816ec..83a72c852d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageSetting.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageSetting.java @@ -5,19 +5,27 @@ import java.io.Serializable; import java.util.List; +/** + * @author Mario Luo + */ @Data public class InvoiceAuthPageSetting implements Serializable { + private static final long serialVersionUID = 4585269585619597753L; private AuthField authField; @Data public static class AuthField implements Serializable { + private static final long serialVersionUID = 7341329271546930795L; + private UserField userField; private BizField bizField; } @Data public static class UserField implements Serializable { + private static final long serialVersionUID = -128178697394854697L; + private Integer showTitle; private Integer showPhone; private Integer showEmail; @@ -28,6 +36,8 @@ public static class UserField implements Serializable { @Data public static class BizField implements Serializable { + private static final long serialVersionUID = -8277885344416192644L; + private Integer showTitle; private Integer showTaxNo; private Integer showAddr; @@ -45,6 +55,8 @@ public static class BizField implements Serializable { @Data public static class CustomField implements Serializable { + private static final long serialVersionUID = -3838241240210071209L; + /** * 字段名 */ diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java index 0d48cd79fd..992faa4d2c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceRejectRequest.java @@ -1,23 +1,29 @@ package me.chanjar.weixin.mp.bean.invoice.merchant; +import com.google.gson.annotations.SerializedName; import lombok.Data; import java.io.Serializable; /** * 拒绝开票请求参数 + * + * @author Mario Luo */ @Data public class InvoiceRejectRequest implements Serializable { + private static final long serialVersionUID = -5303749544133451879L; /** * 开票平台标示 */ + @SerializedName("s_pappid") private String sPappid; /** * 订单id */ + @SerializedName("order_id") private String orderId; /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceResult.java index 6f4da63a20..184b57970c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceResult.java @@ -6,9 +6,12 @@ /** * 电子发票信息查询结果 + * + * @author Mario Luo */ @Data public class InvoiceResult implements Serializable { + private static final long serialVersionUID = 7896888653261133444L; /** * 发票相关信息 @@ -17,6 +20,8 @@ public class InvoiceResult implements Serializable { @Data public static class InvoiceDetail implements Serializable { + private static final long serialVersionUID = -3465795497702734126L; + /** * 发票流水号 */ diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MakeOutInvoiceRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MakeOutInvoiceRequest.java index d9336eac12..666bdb97e5 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MakeOutInvoiceRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MakeOutInvoiceRequest.java @@ -7,9 +7,12 @@ /** * 开票信息请求参数 + * + * @author Mario Luo */ @Data public class MakeOutInvoiceRequest implements Serializable { + private static final long serialVersionUID = 2089481479917841771L; private InvoiceInfo invoiceinfo; @@ -18,6 +21,8 @@ public class MakeOutInvoiceRequest implements Serializable { */ @Data public static class InvoiceInfo implements Serializable { + private static final long serialVersionUID = 8492738482767944634L; + /** * 维修openid */ @@ -145,6 +150,8 @@ public static class InvoiceInfo implements Serializable { */ @Data public static class InvoiceDetailItem implements Serializable { + private static final long serialVersionUID = 2981363715996297681L; + /** * 发票性质 */ diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java index 9c54b82c1f..32adbc29a6 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfo.java @@ -1,14 +1,18 @@ package me.chanjar.weixin.mp.bean.invoice.merchant; +import com.google.gson.annotations.SerializedName; import lombok.Data; import java.io.Serializable; /** * 商户的开票平台信息 + * + * @author Mario Luo */ @Data public class MerchantInvoicePlatformInfo implements Serializable { + private static final long serialVersionUID = -2388214622725430530L; /** * 微信支付商户号 @@ -18,5 +22,6 @@ public class MerchantInvoicePlatformInfo implements Serializable { /** * 为该商户提供开票服务的开票平台 id ,由开票平台提供给商户 */ + @SerializedName("s_pappid") private String sPappid; } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfoWrapper.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfoWrapper.java index 0351466164..fb79122fce 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfoWrapper.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfoWrapper.java @@ -6,9 +6,12 @@ /** * 设置商户联系信息和发票过时时间参数 + * + * @author Mario Luo */ @Data public class MerchantInvoicePlatformInfoWrapper implements Serializable { + private static final long serialVersionUID = 7994013978048258576L; private MerchantInvoicePlatformInfo paymchInfo; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceBatchRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceBatchRequest.java index 48c878ba61..ce7b1860f5 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceBatchRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceBatchRequest.java @@ -22,7 +22,6 @@ @NoArgsConstructor @AllArgsConstructor public class InvoiceBatchRequest implements Serializable { - private static final long serialVersionUID = -9121443117105107231L; /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceCommodityInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceCommodityInfo.java index a75874efab..2d4786341c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceCommodityInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceCommodityInfo.java @@ -2,6 +2,8 @@ import lombok.Data; +import java.io.Serializable; + /** *

  * 发票商品信息
@@ -10,7 +12,8 @@
  * @since 2021-03-23
  */
 @Data
-public class InvoiceCommodityInfo {
+public class InvoiceCommodityInfo implements Serializable {
+  private static final long serialVersionUID = 5139576099614652523L;
 
   /**
    * 项目(商品)名称
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoRequest.java
index 8a9b09f42b..0dd960681b 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoRequest.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoRequest.java
@@ -22,10 +22,8 @@
 @NoArgsConstructor
 @AllArgsConstructor
 public class InvoiceInfoRequest implements Serializable {
-
   private static final long serialVersionUID = 7854633127026139444L;
 
-
   /**
   * 发票卡券的card_id
   * 
@@ -45,8 +43,6 @@ public class InvoiceInfoRequest implements Serializable {
   @SerializedName("encrypt_code")
   private String encryptCode;
 
-
-
   public String toJson() {
     return WxMpGsonBuilder.create().toJson(this);
   }
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoResponse.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoResponse.java
index 0dded411c2..5572f3c45b 100644
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoResponse.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceInfoResponse.java
@@ -7,17 +7,20 @@
 import me.chanjar.weixin.common.util.json.GsonParser;
 import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
 
+import java.io.Serializable;
 import java.util.List;
 
 /**
  * 
  * 查询报销发票信息响应对象
  * 
+ * * @author xiaoyu * @since 2021-03-23 */ @Data -public class InvoiceInfoResponse { +public class InvoiceInfoResponse implements Serializable { + private static final long serialVersionUID = -4835089274990526299L; /** * 发票ID diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceUserInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceUserInfo.java index 1d8d709248..3fc60b0b9e 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceUserInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/InvoiceUserInfo.java @@ -3,17 +3,20 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import java.io.Serializable; import java.util.List; /** *
  * 用户可在发票票面看到的主要信息
  * 
+ * * @author xiaoyu * @since 2021-03-23 */ @Data -public class InvoiceUserInfo { +public class InvoiceUserInfo implements Serializable { + private static final long serialVersionUID = 4970283608560240497L; /** * 发票加税合计金额,以分为单位 diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateInvoiceStatusRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateInvoiceStatusRequest.java index 7e3b6e363e..16a7901ca8 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateInvoiceStatusRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateInvoiceStatusRequest.java @@ -21,7 +21,6 @@ @NoArgsConstructor @AllArgsConstructor public class UpdateInvoiceStatusRequest implements Serializable { - private static final long serialVersionUID = -4122242332481909977L; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateStatusBatchRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateStatusBatchRequest.java index e117d94d1a..17f6a68cde 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateStatusBatchRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/reimburse/UpdateStatusBatchRequest.java @@ -22,7 +22,6 @@ @NoArgsConstructor @AllArgsConstructor public class UpdateStatusBatchRequest implements Serializable { - private static final long serialVersionUID = 7016357689566912199L; /** * 用户openid diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java index ccfcc5f600..dc4ebfe4a7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java @@ -11,7 +11,7 @@ /** * 普通支付(电商收付通)API *
- * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml
  * 
* * @author cloudX diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsResult.java index a79dae78e5..2c9086e7f4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsResult.java @@ -12,10 +12,12 @@ *
  *   文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_5.shtml
  * 
+ * @author cloudX */ @Data @NoArgsConstructor public class PartnerTransactionsResult implements Serializable { + private static final long serialVersionUID = 2371448241965534820L; /** *
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java
index ce4738ae1f..9a25f4ac8c 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java
@@ -10,7 +10,7 @@
 /**
  * 发起批量转账API
  * 
- * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_1.shtml
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/transfer_partner/chapter3_1.shtml
  * 
* * @author xiaoqiang From df45a4a25dd55f0728878891772734242a392aff Mon Sep 17 00:00:00 2001 From: zhongjun Date: Thu, 21 Apr 2022 16:27:00 +0800 Subject: [PATCH 197/622] =?UTF-8?q?:art:=20#2606=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=B1=BB=E5=A2=9E=E5=8A=A0=E4=BC=81=E4=B8=9A=E9=82=AE?= =?UTF-8?q?=E7=AE=B1=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java | 1 + .../me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java index 76a8f93300..776e347ced 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java @@ -31,6 +31,7 @@ public class WxCpUser implements Serializable { private String mobile; private Gender gender; private String email; + private String bizMail; private String avatar; private String thumbAvatar; private String mainDepartment; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java index f75c0ef1e9..493c196e43 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java @@ -73,6 +73,7 @@ public WxCpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationC user.setMobile(GsonHelper.getString(o, "mobile")); user.setGender(Gender.fromCode(GsonHelper.getString(o, "gender"))); user.setEmail(GsonHelper.getString(o, "email")); + user.setBizMail(GsonHelper.getString(o, "biz_mail")); user.setAvatar(GsonHelper.getString(o, "avatar")); user.setThumbAvatar(GsonHelper.getString(o, "thumb_avatar")); user.setAddress(GsonHelper.getString(o, "address")); @@ -244,6 +245,9 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon if (user.getEmail() != null) { o.addProperty("email", user.getEmail()); } + if (user.getBizMail() != null) { + o.addProperty("biz_mail", user.getBizMail()); + } if (user.getAvatar() != null) { o.addProperty("avatar", user.getAvatar()); } From bd821c80c1094207b72dfe7e89f6829580f0aca0 Mon Sep 17 00:00:00 2001 From: Yang Bingdong Date: Thu, 21 Apr 2022 16:33:11 +0800 Subject: [PATCH 198/622] =?UTF-8?q?:art:=20#2607=20=E3=80=90=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91WxOpenAuthorizerInfo?= =?UTF-8?q?=E7=B1=BB=E5=A2=9E=E5=8A=A0account=5Fstatus=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java | 1 + .../weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java index a80dab0307..1c1dce8fff 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java @@ -23,6 +23,7 @@ public class WxOpenAuthorizerInfo implements Serializable { private Map businessInfo; private String alias; private String qrcodeUrl; + private Integer accountStatus; /** * 账号介绍 */ diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java index 2fb4e7957e..54991b09da 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java @@ -24,6 +24,7 @@ public WxOpenAuthorizerInfo deserialize(JsonElement jsonElement, Type type, Json authorizationInfo.setAlias(GsonHelper.getString(jsonObject, "alias")); authorizationInfo.setQrcodeUrl(GsonHelper.getString(jsonObject, "qrcode_url")); authorizationInfo.setSignature(GsonHelper.getString(jsonObject, "signature")); + authorizationInfo.setAccountStatus(GsonHelper.getInteger(jsonObject, "account_status")); if (jsonObject.has("service_type_info")) { authorizationInfo.setServiceTypeInfo(GsonHelper.getInteger(jsonObject.getAsJsonObject("service_type_info"), "id")); From 5d0364f6d208941f7274981323324bc60a233032 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 21 Apr 2022 16:27:28 +0800 Subject: [PATCH 199/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=96=87=E6=A1=A3=EF=BC=8C=E9=87=8D=E6=9E=84=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/util/json/WxCpUserGsonAdapter.java | 100 ++++++------------ .../wx/miniapp/api/WxMaSecCheckService.java | 17 ++- .../api/impl/WxMaSecCheckServiceImpl.java | 4 +- .../impl/WxMpMerchantInvoiceServiceImpl.java | 10 +- .../open/bean/auth/WxOpenAuthorizerInfo.java | 18 +++- .../json/WxOpenAuthorizerInfoGsonAdapter.java | 18 ++-- 6 files changed, 80 insertions(+), 87 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java index 493c196e43..b91404bf75 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java @@ -199,15 +199,9 @@ private void buildExternalAttrs(JsonObject o, WxCpUser user) { @Override public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationContext context) { JsonObject o = new JsonObject(); - if (user.getUserId() != null) { - o.addProperty("userid", user.getUserId()); - } - if (user.getNewUserId() != null) { - o.addProperty("new_userid", user.getNewUserId()); - } - if (user.getName() != null) { - o.addProperty("name", user.getName()); - } + this.addProperty(o, "userid", user.getUserId()); + this.addProperty(o, "new_userid", user.getNewUserId()); + this.addProperty(o, "name", user.getName()); if (user.getDepartIds() != null) { JsonArray jsonArray = new JsonArray(); for (Long departId : user.getDepartIds()) { @@ -224,9 +218,7 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon o.add("order", jsonArray); } - if (user.getPosition() != null) { - o.addProperty("position", user.getPosition()); - } + this.addProperty(o, "position", user.getPosition()); if (user.getPositions() != null) { JsonArray jsonArray = new JsonArray(); @@ -236,42 +228,20 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon o.add("positions", jsonArray); } - if (user.getMobile() != null) { - o.addProperty("mobile", user.getMobile()); - } + this.addProperty(o, "mobile", user.getMobile()); if (user.getGender() != null) { o.addProperty("gender", user.getGender().getCode()); } - if (user.getEmail() != null) { - o.addProperty("email", user.getEmail()); - } - if (user.getBizMail() != null) { - o.addProperty("biz_mail", user.getBizMail()); - } - if (user.getAvatar() != null) { - o.addProperty("avatar", user.getAvatar()); - } - if (user.getThumbAvatar() != null) { - o.addProperty("thumb_avatar", user.getThumbAvatar()); - } - if (user.getAddress() != null) { - o.addProperty("address", user.getAddress()); - } - if (user.getAvatarMediaId() != null) { - o.addProperty("avatar_mediaid", user.getAvatarMediaId()); - } - if (user.getStatus() != null) { - o.addProperty("status", user.getStatus()); - } - if (user.getEnable() != null) { - o.addProperty("enable", user.getEnable()); - } - if (user.getAlias() != null) { - o.addProperty("alias", user.getAlias()); - } - if (user.getIsLeader() != null) { - o.addProperty("isleader", user.getIsLeader()); - } + this.addProperty(o, "email", user.getEmail()); + this.addProperty(o, "biz_mail", user.getBizMail()); + this.addProperty(o, "avatar", user.getAvatar()); + this.addProperty(o, "thumb_avatar", user.getThumbAvatar()); + this.addProperty(o, "address", user.getAddress()); + this.addProperty(o, "avatar_mediaid", user.getAvatarMediaId()); + this.addProperty(o, "status", user.getStatus()); + this.addProperty(o, "enable", user.getEnable()); + this.addProperty(o, "alias", user.getAlias()); + this.addProperty(o, "isleader", user.getIsLeader()); if (user.getIsLeaderInDept() != null && user.getIsLeaderInDept().length > 0) { JsonArray ary = new JsonArray(); for (int item : user.getIsLeaderInDept()) { @@ -279,24 +249,14 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon } o.add("is_leader_in_dept", ary); } - if (user.getHideMobile() != null) { - o.addProperty("hide_mobile", user.getHideMobile()); - } - if (user.getEnglishName() != null) { - o.addProperty("english_name", user.getEnglishName()); - } - if (user.getTelephone() != null) { - o.addProperty("telephone", user.getTelephone()); - } - if (user.getQrCode() != null) { - o.addProperty("qr_code", user.getQrCode()); - } + this.addProperty(o, "hide_mobile", user.getHideMobile()); + this.addProperty(o, "english_name", user.getEnglishName()); + this.addProperty(o, "telephone", user.getTelephone()); + this.addProperty(o, "qr_code", user.getQrCode()); if (user.getToInvite() != null) { o.addProperty("to_invite", user.getToInvite()); } - if (user.getMainDepartment() != null) { - o.addProperty("main_department", user.getMainDepartment()); - } + this.addProperty(o, "main_department", user.getMainDepartment()); if (!user.getExtAttrs().isEmpty()) { JsonArray attrsJsonArray = new JsonArray(); @@ -326,16 +286,12 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon o.add(EXTRA_ATTR, attrsJson); } - if (user.getExternalPosition() != null) { - o.addProperty(EXTERNAL_POSITION, user.getExternalPosition()); - } + this.addProperty(o, EXTERNAL_POSITION, user.getExternalPosition()); JsonObject attrsJson = new JsonObject(); o.add(EXTERNAL_PROFILE, attrsJson); - if (user.getExternalCorpName() != null) { - attrsJson.addProperty(EXTERNAL_CORP_NAME, user.getExternalCorpName()); - } + this.addProperty(attrsJson, EXTERNAL_CORP_NAME, user.getExternalCorpName()); if (user.getWechatChannels() != null) { attrsJson.add(WECHAT_CHANNELS, GsonHelper.buildJsonObject("nickname", user.getWechatChannels().getNickname(), "status", user.getWechatChannels().getStatus())); @@ -374,4 +330,16 @@ public JsonElement serialize(WxCpUser user, Type typeOfSrc, JsonSerializationCon return o; } + private void addProperty(JsonObject object, String property, Integer value) { + if (value != null) { + object.addProperty(property, value); + } + } + + private void addProperty(JsonObject object, String property, String value) { + if (value != null) { + object.addProperty(property, value); + } + } + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java index a22061a007..b7721b4e73 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSecCheckService.java @@ -23,7 +23,7 @@ public interface WxMaSecCheckService { * 应用场景举例: * 1)图片智能鉴黄:涉及拍照的工具类应用(如美拍,识图类应用)用户拍照上传检测;电商类商品上架图片检测;媒体类用户文章里的图片检测等; * 2)敏感人脸识别:用户头像;媒体类用户文章里的图片检测;社交类用户上传的图片检测等。频率限制:单个 appId 调用上限为 1000 次/分钟,100,000 次/天 - * 详情请见: https://developers.weixin.qq.com/miniprogram/dev/api/open-api/sec-check/imgSecCheck.html + * 详情请见: https://developers.weixin.qq.com/miniprogram/dev/api/open-api/sec-check/imgSecCheck.html *
* * @param file the file @@ -48,7 +48,7 @@ public interface WxMaSecCheckService { * 用户个人资料违规文字检测; * 媒体新闻类用户发表文章,评论内容检测; * 游戏类用户编辑上传的素材(如答题类小游戏用户上传的问题及答案)检测等。 频率限制:单个 appId 调用上限为 4000 次/分钟,2,000,000 次/天* - * 详情请见: https://developers.weixin.qq.com/miniprogram/dev/api/open-api/sec-check/msgSecCheck.html + * 详情请见: https://developers.weixin.qq.com/miniprogram/dev/api/open-api/sec-check/msgSecCheck.html *
* * @param msgString the msg string @@ -61,9 +61,9 @@ public interface WxMaSecCheckService { /** *
    * 检查一段文本是否含有违法违规内容(新版本接口,主要是request和response做了参数优化)
-   * 详情请见: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.msgSecCheck.html
+   * 详情请见: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.msgSecCheck.html
    * 
- * @param msgRequest + * @param msgRequest request * @return WxMaMsgSecCheckCheckResponse * @throws WxErrorException the wx error exception */ @@ -79,7 +79,7 @@ public interface WxMaSecCheckService { * 频率限制: * 单个 appId 调用上限为 2000 次/分钟,200,000 次/天;文件大小限制:单个文件大小不超过10M * 详情请见: - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html *
* * @param mediaUrl 要检测的多媒体url @@ -89,7 +89,6 @@ public interface WxMaSecCheckService { */ WxMaMediaAsyncCheckResult mediaCheckAsync(String mediaUrl, int mediaType) throws WxErrorException; - /** *
    * 异步校验图片/音频是否含有违法违规内容。(新版本接口,主要对request和respone做了参数优化)
@@ -100,14 +99,14 @@ public interface WxMaSecCheckService {
    * 频率限制:
    * 单个 appId 调用上限为 2000 次/分钟,200,000 次/天;文件大小限制:单个文件大小不超过10M
    * 详情请见:
-   * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html
+   * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html
    * 
* - * @param medisRequest + * @param request 请求 * @return wx ma media async check result * @throws WxErrorException the wx error exception */ - WxMaMediaAsyncCheckResult mediaCheckAsync(WxMaMediaSecCheckCheckRequest medisRequest) throws WxErrorException; + WxMaMediaAsyncCheckResult mediaCheckAsync(WxMaMediaSecCheckCheckRequest request) throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java index 837674eb64..dc69b3f7f4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSecCheckServiceImpl.java @@ -85,8 +85,8 @@ public WxMaMediaAsyncCheckResult mediaCheckAsync(String mediaUrl, int mediaType) } @Override - public WxMaMediaAsyncCheckResult mediaCheckAsync(WxMaMediaSecCheckCheckRequest medisRequest) throws WxErrorException { - String response = this.service.post(MEDIA_CHECK_ASYNC_URL,medisRequest); + public WxMaMediaAsyncCheckResult mediaCheckAsync(WxMaMediaSecCheckCheckRequest request) throws WxErrorException { + String response = this.service.post(MEDIA_CHECK_ASYNC_URL, request); parseErrorResponse(response); return WxMaGsonBuilder.create().fromJson(response,WxMaMediaAsyncCheckResult.class); } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpMerchantInvoiceServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpMerchantInvoiceServiceImpl.java index 11883cded3..4631a2e2cc 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpMerchantInvoiceServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpMerchantInvoiceServiceImpl.java @@ -1,7 +1,9 @@ package me.chanjar.weixin.mp.api.impl; import com.google.common.collect.ImmutableMap; +import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonObject; import lombok.AllArgsConstructor; import me.chanjar.weixin.common.error.WxErrorException; @@ -97,7 +99,7 @@ public MerchantInvoicePlatformInfo getMerchantInvoicePlatform(MerchantInvoicePla */ private T doCommonInvoiceHttpPost(WxMpApiUrl url, Object data, Class resultClass) throws WxErrorException { String json = ""; - final Gson gson = WxMpGsonBuilder.create(); + final Gson gson = this.createGson(); if (data != null) { json = gson.toJson(data); } @@ -108,4 +110,10 @@ private T doCommonInvoiceHttpPost(WxMpApiUrl url, Object data, Class resu return gson.fromJson(responseText, resultClass); } + + private Gson createGson() { + GsonBuilder gsonBuilder = new GsonBuilder(); + gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES); + return gsonBuilder.create(); + } } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java index 1c1dce8fff..b22b66ecb0 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java @@ -23,6 +23,15 @@ public class WxOpenAuthorizerInfo implements Serializable { private Map businessInfo; private String alias; private String qrcodeUrl; + /** + * 帐号状态 + * 类型 说明 + * 1 正常 + * 14 已注销 + * 16 已封禁 + * 18 已告警 + * 19 已冻结 + */ private Integer accountStatus; /** * 账号介绍 @@ -35,7 +44,8 @@ public class WxOpenAuthorizerInfo implements Serializable { private MiniProgramInfo miniProgramInfo; @Data - public class MiniProgramInfo { + public static class MiniProgramInfo implements Serializable { + private static final long serialVersionUID = 8857028017332191988L; @SerializedName("visit_status") private Integer visitStatus; /** @@ -45,13 +55,15 @@ public class MiniProgramInfo { private List categories; @Data - public class Category { + public static class Category implements Serializable { + private static final long serialVersionUID = -5771529867281696141L; private String first; private String second; } @Data - public class Network { + public static class Network implements Serializable { + private static final long serialVersionUID = -18932624803859857L; @SerializedName("RequestDomain") private List requestDomain; @SerializedName("WsRequestDomain") diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java index 54991b09da..b9dbf49c10 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java @@ -12,6 +12,11 @@ * @author 007 */ public class WxOpenAuthorizerInfoGsonAdapter implements JsonDeserializer { + + private static final String VERIFY_TYPE_INFO = "verify_type_info"; + private static final String SERVICE_TYPE_INFO = "service_type_info"; + private static final String MINI_PROGRAM_INFO = "MiniProgramInfo"; + @Override public WxOpenAuthorizerInfo deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException { WxOpenAuthorizerInfo authorizationInfo = new WxOpenAuthorizerInfo(); @@ -23,21 +28,22 @@ public WxOpenAuthorizerInfo deserialize(JsonElement jsonElement, Type type, Json authorizationInfo.setPrincipalName(GsonHelper.getString(jsonObject, "principal_name")); authorizationInfo.setAlias(GsonHelper.getString(jsonObject, "alias")); authorizationInfo.setQrcodeUrl(GsonHelper.getString(jsonObject, "qrcode_url")); + authorizationInfo.setAccountStatus(GsonHelper.getInteger(jsonObject, "account_status")); authorizationInfo.setSignature(GsonHelper.getString(jsonObject, "signature")); authorizationInfo.setAccountStatus(GsonHelper.getInteger(jsonObject, "account_status")); - if (jsonObject.has("service_type_info")) { - authorizationInfo.setServiceTypeInfo(GsonHelper.getInteger(jsonObject.getAsJsonObject("service_type_info"), "id")); + if (jsonObject.has(SERVICE_TYPE_INFO)) { + authorizationInfo.setServiceTypeInfo(GsonHelper.getInteger(jsonObject.getAsJsonObject(SERVICE_TYPE_INFO), "id")); } - if (jsonObject.has("verify_type_info")) { - authorizationInfo.setVerifyTypeInfo(GsonHelper.getInteger(jsonObject.getAsJsonObject("verify_type_info"), "id")); + if (jsonObject.has(VERIFY_TYPE_INFO)) { + authorizationInfo.setVerifyTypeInfo(GsonHelper.getInteger(jsonObject.getAsJsonObject(VERIFY_TYPE_INFO), "id")); } Map businessInfo = WxOpenGsonBuilder.create().fromJson(jsonObject.get("business_info"), new TypeToken>() { }.getType()); authorizationInfo.setBusinessInfo(businessInfo); - if (jsonObject.has("MiniProgramInfo")) { - WxOpenAuthorizerInfo.MiniProgramInfo miniProgramInfo = WxOpenGsonBuilder.create().fromJson(jsonObject.get("MiniProgramInfo"), + if (jsonObject.has(MINI_PROGRAM_INFO)) { + WxOpenAuthorizerInfo.MiniProgramInfo miniProgramInfo = WxOpenGsonBuilder.create().fromJson(jsonObject.get(MINI_PROGRAM_INFO), new TypeToken() { }.getType()); authorizationInfo.setMiniProgramInfo(miniProgramInfo); From 103011575154334f892a9270c8931d85013e0c2b Mon Sep 17 00:00:00 2001 From: zhongjun Date: Fri, 22 Apr 2022 09:01:19 +0800 Subject: [PATCH 200/622] =?UTF-8?q?:new:=20#2612=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=BC=81=E4=B8=9A=E6=B4=BB=E8=B7=83=E6=88=90=E5=91=98?= =?UTF-8?q?=E6=95=B0=E5=92=8C=E9=80=9A=E8=AE=AF=E5=BD=95=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpExportService.java | 100 ++++++++++++++++++ .../me/chanjar/weixin/cp/api/WxCpService.java | 14 +++ .../weixin/cp/api/WxCpUserService.java | 18 ++++ .../cp/api/impl/BaseWxCpServiceImpl.java | 13 +++ .../cp/api/impl/WxCpExportServiceImpl.java | 59 +++++++++++ .../cp/api/impl/WxCpUserServiceImpl.java | 15 +++ .../cp/bean/export/WxCpExportRequest.java | 41 +++++++ .../cp/bean/export/WxCpExportResult.java | 48 +++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 9 ++ .../cp/api/impl/WxCpUserServiceImplTest.java | 8 ++ 10 files changed, 325 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java new file mode 100644 index 0000000000..a28c7fc7d9 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java @@ -0,0 +1,100 @@ +package me.chanjar.weixin.cp.api; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.export.WxCpExportRequest; +import me.chanjar.weixin.cp.bean.export.WxCpExportResult; + +/** + * 异步导出接口 + * + * @author zhongjun + * @date 2022/4/21 + **/ +public interface WxCpExportService { + + /** + *
+   *
+   * 导出成员
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/export/simple_user?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/94849
+   * 
+ * + * @param params 导出参数 + * @return jobId 异步任务id + * @throws WxErrorException . + */ + String simpleUser(WxCpExportRequest params) throws WxErrorException; + + /** + *
+   *
+   * 导出成员详情
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/export/user?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/94851
+   * 
+ * + * @param params 导出参数 + * @return jobId 异步任务id + * @throws WxErrorException . + */ + String user(WxCpExportRequest params) throws WxErrorException; + + /** + *
+   *
+   * 导出部门
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/export/department?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/94852
+   * 
+ * + * @param params 导出参数 + * @return jobId 异步任务id + * @throws WxErrorException . + */ + String department(WxCpExportRequest params) throws WxErrorException; + + /** + *
+   *
+   * 导出标签成员
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/export/taguser?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/94853
+   * 
+ * + * @param params 导出参数 + * @return jobId 异步任务id + * @throws WxErrorException . + */ + String tagUser(WxCpExportRequest params) throws WxErrorException; + + /** + *
+   *
+   * 获取导出结果
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/export/get_result?access_token=ACCESS_TOKEN&jobid=jobid_xxxxxxxxxxxxxxx
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/94854
+   * 返回的url文件下载解密可参考 CSDN
+   * 
+ * + * @param jobId 异步任务id + * @return 导出结果 + * @throws WxErrorException . + */ + WxCpExportResult getResult(String jobId) throws WxErrorException; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 76f337f8e2..851e9c192f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -511,4 +511,18 @@ public interface WxCpService extends WxService { * @param kfService the kf service */ void setKfService(WxCpKfService kfService); + + /** + * 获取异步导出服务 + * + * @return 异步导出服务 + */ + WxCpExportService getExportService(); + + /** + * 设置异步导出服务 + * + * @param exportService 异步导出服务 + */ + void setExportService(WxCpExportService exportService); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java index ede813a0a5..e5a51eea1f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java @@ -5,6 +5,7 @@ import me.chanjar.weixin.cp.bean.WxCpUser; import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; +import java.util.Date; import java.util.List; import java.util.Map; @@ -199,4 +200,21 @@ public interface WxCpUserService { * @throws WxErrorException . */ String getJoinQrCode(int sizeType) throws WxErrorException; + + /** + *
+   *
+   * 获取企业活跃成员数。
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/get_active_stat?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/92714
+   * 
+ * + * @param date 具体某天的活跃人数,最长支持获取30天前数据 + * @return join_qrcode 活跃成员数 + * @throws WxErrorException . + */ + Integer getActiveStat(Date date) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 263fa87a76..ece8bd9add 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -61,6 +61,8 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpAgentWorkBenchService workBenchService = new WxCpAgentWorkBenchServiceImpl(this); private WxCpKfService kfService = new WxCpKfServiceImpl(this); + private WxCpExportService exportService = new WxCpExportServiceImpl(this); + /** * 全局的是否正在刷新access token的锁. */ @@ -588,4 +590,15 @@ public WxCpKfService getKfService() { public void setKfService(WxCpKfService kfService) { this.kfService = kfService; } + + + @Override + public WxCpExportService getExportService() { + return exportService; + } + + @Override + public void setExportService(WxCpExportService exportService) { + this.exportService = exportService; + } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java new file mode 100644 index 0000000000..1e90343881 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java @@ -0,0 +1,59 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.cp.api.WxCpExportService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.export.WxCpExportRequest; +import me.chanjar.weixin.cp.bean.export.WxCpExportResult; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Export.*; + +/** + * 异步导出接口 + * + * @author zhongjun + * @date 2022/4/21 + **/ +@RequiredArgsConstructor +public class WxCpExportServiceImpl implements WxCpExportService { + + private final WxCpService mainService; + + @Override + public String simpleUser(WxCpExportRequest params) throws WxErrorException { + return export(SIMPLE_USER, params); + } + + @Override + public String user(WxCpExportRequest params) throws WxErrorException { + return export(USER, params); + } + + @Override + public String department(WxCpExportRequest params) throws WxErrorException { + return export(DEPARTMENT, params); + } + + @Override + public String tagUser(WxCpExportRequest params) throws WxErrorException { + return export(TAG_USER, params); + } + + @Override + public WxCpExportResult getResult(String jobId) throws WxErrorException { + String url = String.format(this.mainService.getWxCpConfigStorage().getApiUrl(GET_RESULT), jobId); + String responseContent = this.mainService.get(url, null); + return WxCpGsonBuilder.create().fromJson(responseContent, WxCpExportResult.class); + } + + private String export(String path, WxCpExportRequest params) throws WxErrorException { + String url = this.mainService.getWxCpConfigStorage().getApiUrl(path); + String responseContent = this.mainService.post(url, params.toJson()); + JsonObject tmpJson = GsonParser.parse(responseContent); + return tmpJson.get("jobid").getAsString(); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java index d0648b21ec..b789fc1b63 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java @@ -14,7 +14,10 @@ import me.chanjar.weixin.cp.bean.WxCpUser; import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import org.apache.commons.lang3.time.FastDateFormat; +import java.text.Format; +import java.util.Date; import java.util.List; import java.util.Map; @@ -29,6 +32,8 @@ */ @RequiredArgsConstructor public class WxCpUserServiceImpl implements WxCpUserService { + private final Format dateFormat = FastDateFormat.getInstance("yyyy-MM-dd"); + private final WxCpService mainService; @Override @@ -208,4 +213,14 @@ public String getJoinQrCode(int sizeType) throws WxErrorException { JsonObject tmpJson = GsonParser.parse(responseContent); return tmpJson.get("join_qrcode").getAsString(); } + + @Override + public Integer getActiveStat(Date date) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("date", this.dateFormat.format(date)); + String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_ACTIVE_STAT); + String responseContent = this.mainService.post(url, jsonObject.toString()); + JsonObject tmpJson = GsonParser.parse(responseContent); + return tmpJson.get("active_cnt").getAsInt(); + } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java new file mode 100644 index 0000000000..ef21c19e28 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java @@ -0,0 +1,41 @@ +package me.chanjar.weixin.cp.bean.export; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 异步导出参数 + * + * @author zhongjun + * @date 2022/4/21 + **/ +@Data +public class WxCpExportRequest implements Serializable { + private static final long serialVersionUID = -8127528999898984359L; + + /** + * base64encode的加密密钥,长度固定为43,base64decode之后即得到AESKey。加密方式采用AES-256-CBC方式,数据采用PKCS#7填充至32字节的倍数;IV初始向量大小为16字节,取AESKey前16字节,详见:http://tools.ietf.org/html/rfc2315 + */ + @SerializedName("encoding_aeskey") + private String encodingAesKey; + + /** + * 每块数据的部门数,支持范围[104,106],默认值为10^6 + */ + @SerializedName("block_size") + private Integer blockSize; + + /** + * 需要导出的标签 + * 导出标签成员时使用 + */ + @SerializedName("tagid") + private Integer tagId; + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java new file mode 100644 index 0000000000..b291049ae0 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java @@ -0,0 +1,48 @@ +package me.chanjar.weixin.cp.bean.export; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; + +import java.util.List; + +/** + * 异步导出响应 + * + * @author zhongjun + * @date 2022/4/21 + **/ +@Data +@EqualsAndHashCode(callSuper = true) +public class WxCpExportResult extends WxCpBaseResp { + private static final long serialVersionUID = -8673839248829238966L; + + /** + * 任务状态:0-未处理,1-处理中,2-完成,3-异常失败 + */ + private Integer status; + + @SerializedName("data_list") + private List dataList; + + + @Data + public static class ExportData { + + /** + * 数据下载链接,支持指定Range头部分段下载。有效期2个小时 + */ + private String url; + + /** + * 密文数据大小 + */ + private Integer size; + + /** + * 密文数据md5 + */ + private String md5; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 8c45a676e4..c3b4e03ecb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -215,6 +215,7 @@ interface User { String GET_USER_ID = "/cgi-bin/user/getuserid"; String GET_EXTERNAL_CONTACT = "/cgi-bin/crm/get_external_contact?external_userid="; String GET_JOIN_QR_CODE = "/cgi-bin/corp/get_join_qrcode?size_type="; + String GET_ACTIVE_STAT = "/cgi-bin/user/get_active_stat"; } interface ExternalContact { @@ -310,4 +311,12 @@ interface Kf { String CUSTOMER_BATCH_GET = "/cgi-bin/kf/customer/batchget"; } + + interface Export { + String SIMPLE_USER = "/cgi-bin/export/simple_user"; + String USER = "/cgi-bin/export/user"; + String DEPARTMENT = "/cgi-bin/export/department"; + String TAG_USER = "/cgi-bin/export/taguser"; + String GET_RESULT = "/cgi-bin/export/get_result?jobid=%s"; + } } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java index 9c4448830e..0fb494ff34 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.cp.api.impl; +import java.util.Date; import java.util.List; import java.util.Map; @@ -121,4 +122,11 @@ public void testGetUserId() throws WxErrorException { @Test public void testGetExternalContact() { } + + @Test + public void testGetActiveStat() throws WxErrorException { + Integer activeStat = this.wxCpService.getUserService().getActiveStat(new Date()); + System.out.printf("active stat: %d", activeStat); + assertNotNull(activeStat); + } } From 8831056a5fdc359130e9c75d722013d5b3850b3a Mon Sep 17 00:00:00 2001 From: zhongjun Date: Sun, 24 Apr 2022 12:42:07 +0800 Subject: [PATCH 201/622] =?UTF-8?q?:new:=20#2613=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=95=86=E5=93=81=E5=9B=BE=E5=86=8C=E7=9A=84=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 48 ++++++++++++++++--- .../impl/WxCpExternalContactServiceImpl.java | 34 ++++++++++--- .../bean/external/WxCpProductAlbumInfo.java | 4 ++ .../weixin/cp/constant/WxCpApiPathConsts.java | 4 ++ 4 files changed, 77 insertions(+), 13 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index a87079d5ae..f75f72a76a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -1,17 +1,16 @@ package me.chanjar.weixin.cp.api; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; import lombok.NonNull; import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.*; import me.chanjar.weixin.cp.bean.external.contact.*; -import me.chanjar.weixin.cp.bean.oa.WxCpApprovalInfoQueryFilter; import org.jetbrains.annotations.NotNull; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; import java.util.Date; import java.util.List; @@ -977,7 +976,8 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_intercept_rule?access_token=ACCESS_TOKEN *
    */
-  WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp ruleResp) throws  WxErrorException;
+  WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException;
+
   /**
    * 
    * 删除敏感词规则
@@ -987,6 +987,42 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * 
    * @param rule_id 规则id
    */
-  WxCpBaseResp delInterceptRule(String rule_id) throws  WxErrorException;
+  WxCpBaseResp delInterceptRule(String rule_id) throws WxErrorException;
+
+  /**
+   * 
+   * 创建商品图册
+   * 企业和第三方应用可以通过此接口增加商品
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_product_album?access_token=ACCESS_TOKEN
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/95096#%E5%88%9B%E5%BB%BA%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
+   * 
+   * @param wxCpProductAlbumInfo 商品图册信息
+   * @return 商品id
+   */
+  String addProductAlbum(WxCpProductAlbumInfo wxCpProductAlbumInfo) throws WxErrorException;
+
+  /**
+   * 
+   * 编辑商品图册
+   * 企业和第三方应用可以通过此接口修改商品信息
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_product_album?access_token=ACCESS_TOKEN
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/95096#%E7%BC%96%E8%BE%91%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
+   * 
+   * @param wxCpProductAlbumInfo 商品图册信息
+   */
+  void updateProductAlbum(WxCpProductAlbumInfo wxCpProductAlbumInfo) throws WxErrorException;
 
+  /**
+   * 
+   * 删除商品图册
+   * 企业和第三方应用可以通过此接口删除商品信息
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/delete_product_album?access_token=ACCESS_TOKEN
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/95096#%E5%88%A0%E9%99%A4%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
+   * 
+   * @param productId 商品id
+   */
+  void deleteProductAlbum(String productId) throws WxErrorException;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
index 89fc6961d1..bfd5608ed9 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
@@ -2,12 +2,6 @@
 
 import com.google.gson.Gson;
 import com.google.gson.JsonObject;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.UUID;
-
 import lombok.NonNull;
 import lombok.RequiredArgsConstructor;
 import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
@@ -27,9 +21,13 @@
 import org.apache.commons.lang3.StringUtils;
 import org.jetbrains.annotations.NotNull;
 
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
 import java.util.Collections;
 import java.util.Date;
 import java.util.List;
+import java.util.UUID;
 
 import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.ExternalContact.*;
 
@@ -857,10 +855,32 @@ public WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp rul
   @Override
   public WxCpBaseResp delInterceptRule(String rule_id) throws WxErrorException {
     JsonObject jsonObject = new JsonObject();
-    jsonObject.addProperty("rule_id",rule_id);
+    jsonObject.addProperty("rule_id", rule_id);
     return WxCpBaseResp
       .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(DEL_INTERCEPT_RULE), jsonObject));
   }
 
+  @Override
+  public String addProductAlbum(WxCpProductAlbumInfo wxCpProductAlbumInfo) throws WxErrorException {
+    String url = this.mainService.getWxCpConfigStorage().getApiUrl(ADD_PRODUCT_ALBUM);
+    String responseContent = this.mainService.post(url, wxCpProductAlbumInfo.toJson());
+    JsonObject tmpJson = GsonParser.parse(responseContent);
+    return tmpJson.get("product_id").getAsString();
+  }
+
+  @Override
+  public void updateProductAlbum(WxCpProductAlbumInfo wxCpProductAlbumInfo) throws WxErrorException {
+    String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_PRODUCT_ALBUM);
+    this.mainService.post(url, wxCpProductAlbumInfo.toJson());
+  }
+
+  @Override
+  public void deleteProductAlbum(String productId) throws WxErrorException {
+    JsonObject o = new JsonObject();
+    o.addProperty("product_id", productId);
+    String url = this.mainService.getWxCpConfigStorage().getApiUrl(DELETE_PRODUCT_ALBUM);
+    this.mainService.post(url, o.toString());
+  }
+
 
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
index e0ad62ea36..c837d30850 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java
@@ -50,4 +50,8 @@ public static WxCpProductAlbumInfo fromJson(String json) {
     return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumInfo.class);
   }
 
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index c3b4e03ecb..71a6d03451 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -273,8 +273,12 @@ interface ExternalContact {
     String GET_GROUP_MSG_LIST_V2 = "/cgi-bin/externalcontact/get_groupmsg_list_v2";
     String GET_GROUP_MSG_RESULT = "/cgi-bin/externalcontact/get_group_msg_result";
 
+
     String GET_PRODUCT_ALBUM = "/cgi-bin/externalcontact/get_product_album";
     String GET_PRODUCT_ALBUM_LIST = "/cgi-bin/externalcontact/get_product_album_list";
+    String ADD_PRODUCT_ALBUM = "/cgi-bin/externalcontact/add_product_album";
+    String UPDATE_PRODUCT_ALBUM = "/cgi-bin/externalcontact/update_product_album";
+    String DELETE_PRODUCT_ALBUM = "/cgi-bin/externalcontact/delete_product_album";
 
     String GROUP_WELCOME_TEMPLATE_ADD = "/cgi-bin/externalcontact/group_welcome_template/add";
     String GROUP_WELCOME_TEMPLATE_EDIT = "/cgi-bin/externalcontact/group_welcome_template/edit";

From 343fa115ae261abb4d6ea3f8a2452d367f3842b1 Mon Sep 17 00:00:00 2001
From: 0katekate0 <32161300+0katekate0@users.noreply.github.com>
Date: Sun, 24 Apr 2022 12:43:24 +0800
Subject: [PATCH 202/622] =?UTF-8?q?:new:=20#2614=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E5=BE=AE?=
 =?UTF-8?q?=E7=9B=98=E7=A9=BA=E9=97=B4=E7=AE=A1=E7=90=86=E7=9A=84=E7=9B=B8?=
 =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/api/WxCpOaWeDriveService.java   | 31 +++++++++
 .../me/chanjar/weixin/cp/api/WxCpService.java |  7 ++
 .../cp/api/impl/BaseWxCpServiceImpl.java      |  6 ++
 .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 32 +++++++++
 .../bean/oa/wedrive/WxCpSpaceCreateData.java  | 30 +++++++++
 .../oa/wedrive/WxCpSpaceCreateRequest.java    | 66 +++++++++++++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  6 ++
 .../cp/api/WxCpOaWeDriveServiceTest.java      | 53 +++++++++++++++
 8 files changed, 231 insertions(+)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateData.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateRequest.java
 create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
new file mode 100644
index 0000000000..39b6d4d5f5
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
@@ -0,0 +1,31 @@
+package me.chanjar.weixin.cp.api;
+
+import lombok.NonNull;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData;
+import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest;
+
+/**
+ * 企业微信微盘相关接口.
+ * https://developer.work.weixin.qq.com/document/path/93654
+ *
+ * @author Wang_Wong
+ * @date 2022-04-22
+ */
+public interface WxCpOaWeDriveService {
+
+  /**
+   * 新建空间
+   * 该接口用于在微盘内新建空间,可以指定人创建空间。
+   * 

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_create?access_token=ACCESS_TOKEN + * + * @param request 新建空间对应请求参数 + * @return spaceid(空间id) + * + * @throws WxErrorException + */ + WxCpSpaceCreateData spaceCreate(@NonNull WxCpSpaceCreateRequest request) throws WxErrorException; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 851e9c192f..769ef0d2e7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -414,6 +414,13 @@ public interface WxCpService extends WxService { */ WxCpOaAgentService getOaAgentService(); + /** + * 获取OA效率工具 微盘的服务类对象 + * + * @return + */ + WxCpOaWeDriveService getOaWeDriveService(); + /** * 获取会话存档相关接口的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index ece8bd9add..6de02c3e25 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -51,6 +51,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpOaService oaService = new WxCpOaServiceImpl(this); private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); private WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); + private WxCpOaWeDriveService oaWeDriveService = new WxCpOaWeDriveServiceImpl(this); private WxCpMsgAuditService msgAuditService = new WxCpMsgAuditServiceImpl(this); private WxCpTaskCardService taskCardService = new WxCpTaskCardServiceImpl(this); private WxCpExternalContactService externalContactService = new WxCpExternalContactServiceImpl(this); @@ -502,6 +503,11 @@ public WxCpOaAgentService getOaAgentService() { return oaAgentService; } + @Override + public WxCpOaWeDriveService getOaWeDriveService() { + return oaWeDriveService; + } + @Override public WxCpMsgAuditService getMsgAuditService() { return msgAuditService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java new file mode 100644 index 0000000000..5f58cbb452 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -0,0 +1,32 @@ +package me.chanjar.weixin.cp.api.impl; + +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.WxCpOaWeDriveService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData; +import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.SPACE_CREATE; + +/** + * 企业微信微盘接口实现类. + * + * @author Wang_Wong + * @date 2022-04-22 + */ +@Slf4j +@RequiredArgsConstructor +public class WxCpOaWeDriveServiceImpl implements WxCpOaWeDriveService { + private final WxCpService cpService; + + @Override + public WxCpSpaceCreateData spaceCreate(@NonNull WxCpSpaceCreateRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_CREATE); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpSpaceCreateData.fromJson(responseContent); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateData.java new file mode 100644 index 0000000000..1217452043 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateData.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 新建空间信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpSpaceCreateData extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("spaceid") + private String spaceId; + + public static WxCpSpaceCreateData fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceCreateData.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateRequest.java new file mode 100644 index 0000000000..3b9319e43d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceCreateRequest.java @@ -0,0 +1,66 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 新建空间请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpSpaceCreateRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("space_name") + private String spaceName; + + @SerializedName("auth_info") + private List authInfo; + + @Getter + @Setter + public static class AuthInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("type") + private Integer type; + + @SerializedName("departmentid") + private Integer departmentId; + + @SerializedName("auth") + private Integer auth; + + @SerializedName("userid") + private String userId; + + public static AuthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpSpaceCreateRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceCreateRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 71a6d03451..4d5527861c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -140,6 +140,12 @@ interface Oa { String SCHEDULE_DEL = "/cgi-bin/oa/schedule/del"; String SCHEDULE_LIST = "/cgi-bin/oa/schedule/get_by_calendar"; + /** + * 微盘 + * https://developer.work.weixin.qq.com/document/path/93654 + */ + String SPACE_CREATE = "/cgi-bin/wedrive/space_create"; + /** * 审批流程引擎 * https://developer.work.weixin.qq.com/document/path/90269 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java new file mode 100644 index 0000000000..eb7b682948 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -0,0 +1,53 @@ +package me.chanjar.weixin.cp.api; + +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData; +import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import org.testng.annotations.Test; + +import java.io.InputStream; + +/** + * 微盘测试类. + * 官方文档:https://developer.work.weixin.qq.com/document/path/93654 + * + * @author Wang_Wong + */ +@Slf4j +public class WxCpOaWeDriveServiceTest { + + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + @Test + public void test() throws WxErrorException { + + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + + String createSpace = "{\"userid\":\"USERID\",\"space_name\":\"SPACE_NAME\",\"auth_info\":[{\"type\":1,\"userid\":\"USERID\",\"auth\":2},{\"type\":2,\"departmentid\":2,\"auth\":1}]}"; + WxCpSpaceCreateRequest wxCpSpaceCreateRequest = WxCpSpaceCreateRequest.fromJson(createSpace); + log.info(wxCpSpaceCreateRequest.toJson()); + + /** + * 新建空间 + */ + WxCpSpaceCreateRequest request = new WxCpSpaceCreateRequest(); + request.setUserId("WangKai"); + request.setSpaceName("测试云盘2"); + + WxCpSpaceCreateData spaceCreateData = cpService.getOaWeDriveService().spaceCreate(request); + log.info("空间id为:{}", spaceCreateData.getSpaceId()); + log.info(spaceCreateData.toJson()); + + } + +} From 9e0a5bcc787ad9f38a15952289ad89524e83f339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E6=95=B2=E4=BB=A3=E7=A0=81=E7=9A=84=E6=94=BB?= =?UTF-8?q?=E5=9F=8E=E7=8B=AE?= <191789784@qq.com> Date: Sun, 24 Apr 2022 12:44:42 +0800 Subject: [PATCH 203/622] =?UTF-8?q?:new:=20#2615=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=BA=94=E7=94=A8=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E4=BB=98=E8=B4=B9=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/WxCpTpAuthInfo.java | 74 +++++++++++++++++++ .../cp/bean/WxCpTpPermanentCodeInfo.java | 71 ++++++++++++++++++ .../cp/bean/message/WxCpTpXmlMessage.java | 20 +++++ .../weixin/cp/constant/WxCpTpConsts.java | 25 +++++++ .../impl/BaseWxCpTpServiceImplTest.java | 64 ++++++++++++++++ 5 files changed, 254 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java index 9ca4971754..8249cd50bd 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java @@ -36,6 +36,13 @@ public class WxCpTpAuthInfo extends WxCpBaseResp { @SerializedName("auth_info") private AuthInfo authInfo; + + /** + * 企业当前生效的版本信息 + */ + @SerializedName("edition_info") + private EditionInfo editionInfo; + @Getter @Setter public static class DealerCorpInfo extends WxCpBaseResp { @@ -128,6 +135,22 @@ public static class AuthInfo implements Serializable { } + /** + * 企业当前生效的版本信息 + */ + @Getter + @Setter + public static class EditionInfo implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + /** + * 授权的应用信息,注意是一个数组,但仅旧的多应用套件授权时会返回多个agent,对新的单应用授权,永远只返回一个agent + */ + @SerializedName("agent") + private List agents; + + } + @Getter @Setter public static class Agent implements Serializable { @@ -170,6 +193,57 @@ public static class Agent implements Serializable { @SerializedName("privilege") private Privilege privilege; + /** + * 版本id + */ + @SerializedName("edition_id") + private String editionId; + + /** + * 版本名称 + */ + @SerializedName("edition_name") + private String editionName; + + /** + * 付费状态 + *
+ *

    + *
  • 0-没有付费;
  • + *
  • 1-限时试用;
  • + *
  • 2-试用过期;
  • + *
  • 3-购买期内;
  • + *
  • 4-购买过期;
  • + *
  • 5-不限时试用;
  • + *
  • 6-购买期内,但是人数超标, 注意,超标后还可以用7天;
  • + *
  • 7-购买期内,但是人数超标, 且已经超标试用7天
  • + *
+ */ + @SerializedName("app_status") + private Integer appStatus; + + /** + * 用户上限。 + *

特别注意, 以下情况该字段无意义,可以忽略:

+ *
    + *
  • 1. 固定总价购买
  • + *
  • 2. app_status = 限时试用/试用过期/不限时试用
  • + *
  • 3. 在第2条“app_status=不限时试用”的情况下,如果该应用的配置为“小企业无使用限制”,user_limit有效,且为限制的人数
  • + *
+ */ + @SerializedName("user_limit") + private Integer userLimit; + + /** + * 版本到期时间, 秒级时间戳, 根据需要自行乘以1000(根据购买版本,可能是试用到期时间或付费使用到期时间)。 + *

特别注意,以下情况该字段无意义,可以忽略:

+ *
    + *
  • 1. app_status = 不限时试用
  • + *
+ */ + @SerializedName("expired_time") + private Long expiredTime; + } /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index 9774f6230b..7a22310ee6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -46,6 +46,11 @@ public class WxCpTpPermanentCodeInfo extends WxCpBaseResp { @SerializedName("auth_user_info") private AuthUserInfo authUserInfo; + /** + * 企业当前生效的版本信息 + */ + @SerializedName("edition_info") + private EditionInfo editionInfo; @Getter @Setter @@ -127,6 +132,22 @@ public static class AuthInfo implements Serializable { } + /** + * 企业当前生效的版本信息 + */ + @Getter + @Setter + public static class EditionInfo implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + /** + * 授权的应用信息,注意是一个数组,但仅旧的多应用套件授权时会返回多个agent,对新的单应用授权,永远只返回一个agent + */ + @SerializedName("agent") + private List agents; + + } + @Getter @Setter public static class Agent implements Serializable { @@ -169,6 +190,56 @@ public static class Agent implements Serializable { @SerializedName("privilege") private Privilege privilege; + /** + * 版本id + */ + @SerializedName("edition_id") + private String editionId; + + /** + * 版本名称 + */ + @SerializedName("edition_name") + private String editionName; + + /** + * 付费状态 + *
+ *
    + *
  • 0-没有付费;
  • + *
  • 1-限时试用;
  • + *
  • 2-试用过期;
  • + *
  • 3-购买期内;
  • + *
  • 4-购买过期;
  • + *
  • 5-不限时试用;
  • + *
  • 6-购买期内,但是人数超标, 注意,超标后还可以用7天;
  • + *
  • 7-购买期内,但是人数超标, 且已经超标试用7天
  • + *
+ */ + @SerializedName("app_status") + private Integer appStatus; + + /** + * 用户上限。 + *

特别注意, 以下情况该字段无意义,可以忽略:

+ *
    + *
  • 1. 固定总价购买
  • + *
  • 2. app_status = 限时试用/试用过期/不限时试用
  • + *
  • 3. 在第2条“app_status=不限时试用”的情况下,如果该应用的配置为“小企业无使用限制”,user_limit有效,且为限制的人数
  • + *
+ */ + @SerializedName("user_limit") + private Integer userLimit; + + /** + * 版本到期时间, 秒级时间戳, 根据需要自行乘以1000(根据购买版本,可能是试用到期时间或付费使用到期时间)。 + *

特别注意,以下情况该字段无意义,可以忽略:

+ *
    + *
  • 1. app_status = 不限时试用
  • + *
+ */ + @SerializedName("expired_time") + private Long expiredTime; } /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java index 5796735948..87f8332dcf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java @@ -314,6 +314,26 @@ public class WxCpTpXmlMessage implements Serializable { @XStreamConverter(value = XStreamCDataConverter.class) private String taskId; + @XStreamAlias("PaidCorpId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String paidCorpId; + + @XStreamAlias("OrderId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String orderId; + + @XStreamAlias("OperatorId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String operatorId; + + @XStreamAlias("OldOrderId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String oldOrderId; + + @XStreamAlias("NewOrderId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String newOrderId; + @Data @XStreamAlias("ContactSync") public static class ContactSync implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java index 40270270cf..aed02d92f0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java @@ -47,6 +47,31 @@ public static class InfoType { */ public static final String CHANGE_EXTERNAL_CONTACT = "change_external_contact"; + /** + * 下单成功通知 + */ + public static final String OPEN_ORDER = "open_order"; + + /** + * 改单通知 + */ + public static final String CHANGE_ORDER = "change_order"; + + /** + * 支付成功通知 + */ + public static final String PAY_FOR_APP_SUCCESS = "pay_for_app_success"; + + /** + * 退款通知 + */ + public static final String REFUND = "refund"; + + /** + * 付费版本变更通知 + */ + public static final String CHANGE_EDITION = "change_editon"; + } } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java index 26ca567c12..d181fac105 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java @@ -12,6 +12,9 @@ import org.testng.Assert; import org.testng.annotations.Test; +import java.util.List; +import java.util.Objects; + import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_AUTH_INFO; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_PERMANENT_CODE; import static org.assertj.core.api.Assertions.assertThat; @@ -179,6 +182,28 @@ public void testGetPermanentCodeInfo() throws WxErrorException { " \"userid\": \"yuanqixun\", \n" + " \"name\": \"袁启勋\", \n" + " \"avatar\": \"http://wework.qpic.cn/bizmail/ZYqy8EswiaFyPnk7gy7eiafoicz3TL35f4bAvCf2eSe6RVYSK7aPDFxcw/0\"\n" + + " },\n" + + " \"edition_info\":\n" + + " {\n" + + " \"agent\" :\n" + + " [\n" + + " {\n" + + " \"agentid\":1,\n" + + " \"edition_id\":\"RLS65535\",\n" + + " \"edition_name\":\"协同版\",\n" + + " \"app_status\":3,\n" + + " \"user_limit\":200,\n" + + " \"expired_time\":1541990791\n" + + " },\n" + + " {\n" + + " \"agentid\":1,\n" + + " \"edition_id\":\"RLS65535\",\n" + + " \"edition_name\":\"协同版\",\n" + + " \"app_status\":3,\n" + + " \"user_limit\":200,\n" + + " \"expired_time\":1541990791\n" + + " }\n" + + " ]\n" + " }\n" + "}"; @@ -192,6 +217,15 @@ public void testGetPermanentCodeInfo() throws WxErrorException { assertThat(tpPermanentCodeInfo.getAuthInfo().getAgents().get(0).getAgentId()).isEqualTo(1000012); Assert.assertNotNull(tpPermanentCodeInfo.getAuthInfo().getAgents().get(0).getSquareLogoUrl()); Assert.assertNotNull(tpPermanentCodeInfo.getAuthCorpInfo().getCorpSquareLogoUrl()); + + final WxCpTpPermanentCodeInfo.EditionInfo editionInfo = tpPermanentCodeInfo.getEditionInfo(); + Assert.assertNotNull(editionInfo); + + final List editionInfoAgents = editionInfo.getAgents(); + Assert.assertTrue(Objects.nonNull(editionInfoAgents) && !editionInfoAgents.isEmpty()); + + Assert.assertNotNull(editionInfoAgents.get(0).getExpiredTime()); + } @Test @@ -250,6 +284,28 @@ public void testGetAuthInfo() throws WxErrorException { " \"appid\":5\n" + " }\n" + " ]\n" + + " },\n" + + " \"edition_info\":\n" + + " {\n" + + " \"agent\" :\n" + + " [\n" + + " {\n" + + " \"agentid\":1,\n" + + " \"edition_id\":\"RLS65535\",\n" + + " \"edition_name\":\"协同版\",\n" + + " \"app_status\":3,\n" + + " \"user_limit\":200,\n" + + " \"expired_time\":1541990791\n" + + " },\n" + + " {\n" + + " \"agentid\":1,\n" + + " \"edition_id\":\"RLS65535\",\n" + + " \"edition_name\":\"协同版\",\n" + + " \"app_status\":3,\n" + + " \"user_limit\":200,\n" + + " \"expired_time\":1541990791\n" + + " }\n" + + " ]\n" + " }\n" + "}\n"; @@ -263,6 +319,14 @@ public void testGetAuthInfo() throws WxErrorException { Mockito.doReturn(returnJson).when(tpService).post(configStorage.getApiUrl(GET_AUTH_INFO), jsonObject.toString()); WxCpTpAuthInfo authInfo = tpService.getAuthInfo(authCorpId, permanentCode); Assert.assertNotNull(authInfo.getAuthCorpInfo().getCorpId()); + + final WxCpTpAuthInfo.EditionInfo editionInfo = authInfo.getEditionInfo(); + Assert.assertNotNull(editionInfo); + + final List editionInfoAgents = editionInfo.getAgents(); + Assert.assertTrue(Objects.nonNull(editionInfoAgents) && !editionInfoAgents.isEmpty()); + + Assert.assertNotNull(editionInfoAgents.get(0).getExpiredTime()); } @Test From 6b93962208e0915a23059298ca32efa9cda18eda Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 25 Apr 2022 10:06:31 +0800 Subject: [PATCH 204/622] Update README.md --- README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 8dd8824069..013cebb791 100644 --- a/README.md +++ b/README.md @@ -51,23 +51,24 @@ 1. 项目合作洽谈请联系微信`binary0000`(在微信里自行搜索并添加好友,请注明来意,如有关于SDK问题需讨论请参考下文入群讨论,不要加此微信)。 2. **2022-4-10 发布 [【4.3.0正式版】](https://mp.weixin.qq.com/s/yCsa7nD4_DLjW1RDcrEk6g)**! 3. 贡献源码可以参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007) -4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。 -5. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识; -6. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。 -7. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前,请先阅读[【提问的智慧】](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间; -8. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com +4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码; +5. 微信开发新手请务必阅读【开发文档】([Gitee Wiki](https://gitee.com/binary/weixin-java-tools/wikis/Home) 或者 [Github Wiki](https://github.com/Wechat-Group/WxJava/wiki))的常见问题部分,可以少走很多弯路,节省不少时间。 +6. 技术交流群:想获得QQ群/微信群/钉钉企业群等信息的同学,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可获取加入方式,同时也可以在微信中搜索 `weixin-java-tools` 或 `WxJava` 后选择正确的公众号进行关注,该公众号会及时通知SDK相关更新信息,并不定期分享微信Java开发相关技术知识; +7. 钉钉技术交流群:`32206329`(技术交流2群), `30294972`(技术交流1群,目前已满),`35724728`(通知群,实时通知Github项目变更记录)。 +8. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前,请先阅读[【提问的智慧】](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间; +9. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com -------------------------------- ### 其他说明 1. **阅读源码的同学请注意,本SDK为简化代码编译时加入了`lombok`支持,如果不了解`lombok`的话,请先学习下相关知识,比如可以阅读[此文章](https://mp.weixin.qq.com/s/cUc-bUcprycADfNepnSwZQ);** -1. 如有新功能需求,发现BUG,或者由于微信官方接口调整导致的代码问题,可以直接在[【Issues】](https://github.com/Wechat-Group/WxJava/issues)页提出issue,便于讨论追踪问题; -1. 如果需要贡献代码,请务必在提交PR之前先仔细阅读[【代码贡献指南】](CONTRIBUTING.md),谢谢理解配合; -1. 目前本`SDK`最新版本要求的`JDK`最低版本是`8`,使用`7`的同学可以使用`WxJava` `3.8.0`及以前版本,而还在使用`JDK`6的用户请参考[【此项目】]( https://github.com/binarywang/weixin-java-tools-for-jdk6) ,而其他更早的JDK版本则需要自己改造实现。 -1. [本项目在开源中国的页面](https://www.oschina.net/p/weixin-java-tools-new),欢迎大家积极留言评分 🙂 -1. SDK开发文档请查阅 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki),部分文档可能未能及时更新,如有发现,可以及时上报或者自行修改。 -1. **如果本开发工具包对您有所帮助,欢迎对我们的努力进行肯定,可以直接前往[【托管于码云的项目首页】](http://gitee.com/binary/weixin-java-tools),在页尾部分找到“捐助”按钮进行打赏,多多益善 😄。非常感谢各位打赏和捐助的同学!** -1. 各个模块的Javadoc可以在线查看:[weixin-java-miniapp](http://binary.ac.cn/weixin-java-miniapp-javadoc/)、[weixin-java-pay](http://binary.ac.cn/weixin-java-pay-javadoc/)、[weixin-java-mp](http://binary.ac.cn/weixin-java-mp-javadoc/)、[weixin-java-common](http://binary.ac.cn/weixin-java-common-javadoc/)、[weixin-java-cp](http://binary.ac.cn/weixin-java-cp-javadoc/)、[weixin-java-open](http://binary.ac.cn/weixin-java-open-javadoc/) -1. 本SDK项目在以下代码托管网站同步更新: +2. 如有新功能需求,发现BUG,或者由于微信官方接口调整导致的代码问题,可以直接在[【Issues】](https://github.com/Wechat-Group/WxJava/issues)页提出issue,便于讨论追踪问题; +3. 如果需要贡献代码,请务必在提交PR之前先仔细阅读[【代码贡献指南】](CONTRIBUTING.md),谢谢理解配合; +4. 目前本`SDK`最新版本要求的`JDK`最低版本是`8`,使用`7`的同学可以使用`WxJava` `3.8.0`及以前版本,而还在使用`JDK`6的用户请参考[【此项目】]( https://github.com/binarywang/weixin-java-tools-for-jdk6) ,而其他更早的JDK版本则需要自己改造实现。 +5. [本项目在开源中国的页面](https://www.oschina.net/p/weixin-java-tools-new),欢迎大家积极留言评分 🙂 +6. SDK开发文档请查阅 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki),部分文档可能未能及时更新,如有发现,可以及时上报或者自行修改。 +7. **如果本开发工具包对您有所帮助,欢迎对我们的努力进行肯定,可以直接前往[【托管于码云的项目首页】](http://gitee.com/binary/weixin-java-tools),在页尾部分找到“捐助”按钮进行打赏,多多益善 😄。非常感谢各位打赏和捐助的同学!** +8. 各个模块的Javadoc可以在线查看:[weixin-java-miniapp](http://binary.ac.cn/weixin-java-miniapp-javadoc/)、[weixin-java-pay](http://binary.ac.cn/weixin-java-pay-javadoc/)、[weixin-java-mp](http://binary.ac.cn/weixin-java-mp-javadoc/)、[weixin-java-common](http://binary.ac.cn/weixin-java-common-javadoc/)、[weixin-java-cp](http://binary.ac.cn/weixin-java-cp-javadoc/)、[weixin-java-open](http://binary.ac.cn/weixin-java-open-javadoc/) +9. 本SDK项目在以下代码托管网站同步更新: * 码云:https://gitee.com/binary/weixin-java-tools * GitHub:https://github.com/wechat-group/WxJava @@ -97,8 +98,8 @@ 点此展开查看 1. 本项目定为大约每两个月发布一次正式版(同时 `develop` 分支代码合并进入 `master` 分支),版本号格式为 `X.X.0`(如`2.1.0`,`2.2.0`等),遇到重大问题需修复会及时提交新版本,欢迎大家随时提交Pull Request; -1. BUG修复和新特性一般会先发布成小版本作为临时测试版本(如`3.6.8.B`,即尾号不为0,并添加B,以区别于正式版),代码仅存在于 `develop` 分支中; -1. 目前最新版本号为 [![Maven Central](https://img.shields.io/maven-central/v/com.github.binarywang/wx-java.svg)](http://mvnrepository.com/artifact/com.github.binarywang/wx-java) ,也可以通过访问链接 [【微信支付】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-pay%22) 、[【微信小程序】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-miniapp%22) 、[【公众号】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-mp%22) 、[【企业微信】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-cp%22)、[【开放平台】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-open%22) +2. BUG修复和新特性一般会先发布成小版本作为临时测试版本(如`3.6.8.B`,即尾号不为0,并添加B,以区别于正式版),代码仅存在于 `develop` 分支中; +3. 目前最新版本号为 [![Maven Central](https://img.shields.io/maven-central/v/com.github.binarywang/wx-java.svg)](http://mvnrepository.com/artifact/com.github.binarywang/wx-java) ,也可以通过访问链接 [【微信支付】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-pay%22) 、[【微信小程序】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-miniapp%22) 、[【公众号】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-mp%22) 、[【企业微信】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-cp%22)、[【开放平台】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-open%22) 分别查看所有最新的版本。 From 220e38d6c41ea60ad947cb91ca41015e40e7f58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E6=95=B2=E4=BB=A3=E7=A0=81=E7=9A=84=E6=94=BB?= =?UTF-8?q?=E5=9F=8E=E7=8B=AE?= <191789784@qq.com> Date: Mon, 25 Apr 2022 10:10:07 +0800 Subject: [PATCH 205/622] =?UTF-8?q?:new:=20#2615=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=B8=82=E5=9C=BA=E4=BB=98=E8=B4=B9=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=92=8C=E7=89=88=E6=9C=AC=E7=9B=B8=E5=85=B3=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/WxCpTpAuthInfo.java | 12 + .../cp/bean/WxCpTpPermanentCodeInfo.java | 14 ++ .../cp/bean/WxCpTpProlongTryResult.java | 49 ++++ .../cp/bean/order/WxCpTpOrderDetails.java | 210 ++++++++++++++++++ .../bean/order/WxCpTpOrderListGetResult.java | 53 +++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 9 + .../cp/tp/service/WxCpTpEditionService.java | 33 +++ .../cp/tp/service/WxCpTpOrderService.java | 44 ++++ .../weixin/cp/tp/service/WxCpTpService.java | 27 +++ .../service/impl/BaseWxCpTpServiceImpl.java | 22 ++ .../impl/WxCpTpEditionServiceImpl.java | 52 +++++ .../service/impl/WxCpTpOrderServiceImpl.java | 71 ++++++ .../impl/BaseWxCpTpServiceImplTest.java | 12 +- .../impl/WxCpTpEditionServiceImplTest.java | 70 ++++++ .../impl/WxCpTpOrderServiceImplTest.java | 156 +++++++++++++ 15 files changed, 831 insertions(+), 3 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImplTest.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImplTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java index 8249cd50bd..27f12dac5b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java @@ -244,6 +244,17 @@ public static class Agent implements Serializable { @SerializedName("expired_time") private Long expiredTime; + /** + * 是否虚拟版本 + */ + @SerializedName("is_virtual_version") + private Boolean isVirtualVersion; + + /** + * 是否由互联企业分享安装。详见 企业互联 + */ + @SerializedName("is_shared_from_other_corp") + private Boolean isSharedFromOtherCorp; } /** @@ -290,6 +301,7 @@ public static WxCpTpAuthInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpAuthInfo.class); } + @Override public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index 7a22310ee6..44d7a76b90 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -240,6 +240,19 @@ public static class Agent implements Serializable { */ @SerializedName("expired_time") private Long expiredTime; + + /** + * 是否虚拟版本 + */ + @SerializedName("is_virtual_version") + private Boolean isVirtualVersion; + + /** + * 是否由互联企业分享安装。详见 企业互联 + */ + @SerializedName("is_shared_from_other_corp") + private Boolean isSharedFromOtherCorp; + } /** @@ -304,6 +317,7 @@ public static WxCpTpPermanentCodeInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpPermanentCodeInfo.class); } + @Override public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java new file mode 100644 index 0000000000..1429b8296e --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java @@ -0,0 +1,49 @@ +package me.chanjar.weixin.cp.bean; + +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * 应用市场延长试用期结果 + * @author leiguoqing + * @date 2022年4月24日 + */ +@Getter +@Setter +public class WxCpTpProlongTryResult extends WxCpBaseResp { + + /** + * The constant serialVersionUID. + */ + private static final long serialVersionUID = -5028321625140879571L; + + /** + * 延长后的试用到期时间(秒级时间戳) + */ + @SerializedName("try_end_time") + private Long tryEndTime; + + + /** + * From json wx cp tp order list get result. + * + * @param json the json + * @return the wx cp tp order list get result + */ + public static WxCpTpProlongTryResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpTpProlongTryResult.class); + } + + /** + * To json string. + * + * @return the string + */ + @Override + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java new file mode 100644 index 0000000000..3b468384b5 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java @@ -0,0 +1,210 @@ +package me.chanjar.weixin.cp.bean.order; + +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * 应用版本付费订单详情 + * + * @author leiguoqing + * @date 2022年4月24日 + */ +@Getter +@Setter +public class WxCpTpOrderDetails extends WxCpBaseResp { + + /** + * The constant serialVersionUID. + */ + private static final long serialVersionUID = -5028321625140879571L; + + /** + * 订单号 + */ + @SerializedName("orderid") + private String orderId; + + /** + * 订单状态。0-未支付,1-已支付,2-已关闭, 3-未支付且已过期, 4-申请退款中, 5-申请退款成功, 6-退款被拒绝 + */ + @SerializedName("order_status") + private Integer orderStatus; + + /** + * 订单类型。0-普通订单,1-扩容订单,2-续期,3-版本变更 + */ + @SerializedName("order_type") + private Integer orderType; + + /** + * 客户企业的corpid + */ + @SerializedName("paid_corpid") + private String paidCorpId; + + /** + * 下单操作人员userid。如果是服务商代下单,没有该字段。 + */ + @SerializedName("operator_id") + private String operatorId; + + + /** + * 应用id + */ + @SerializedName("suiteid") + private String suiteId; + + + /** + * 应用id。(仅旧套件有该字段) + */ + @SerializedName("appid") + private String appId; + + + /** + * 购买版本ID + */ + @SerializedName("edition_id") + private String editionId; + + + /** + * 购买版本名字 + */ + @SerializedName("edition_name") + private String editionName; + + + /** + * 实付款金额,单位分 + */ + @SerializedName("price") + private Long price; + + + /** + * 购买的人数 + */ + @SerializedName("user_count") + private Integer userCount; + + + /** + * 购买的时间,单位天 + */ + @SerializedName("order_period") + private Integer orderPeriod; + + /** + * 下单时间,秒级时间戳 + */ + @SerializedName("order_time") + private Long orderTime; + + /** + * 付款时间,秒级时间戳 + */ + @SerializedName("paid_time") + private Long paidTime; + + + /** + * 购买生效期的开始时间,秒级时间戳 + */ + @SerializedName("begin_time") + private Long beginTime; + + + /** + * 购买生效期的结束时间,秒级时间戳 + */ + @SerializedName("end_time") + private Long endTime; + + /** + * 下单来源。0-客户下单;1-服务商代下单;2-代理商代下单 + */ + @SerializedName("order_from") + private Integer orderFrom; + + + /** + * 下单方corpid + */ + @SerializedName("operator_corpid") + private String operatorCorpId; + + /** + * 服务商分成金额,单位分 + */ + @SerializedName("service_share_amount") + private Long serviceShareAmount; + + + /** + * 平台分成金额,单位分 + */ + @SerializedName("platform_share_amount") + private Long platformShareAmount; + + + /** + * 代理商分成金额,单位分 + */ + @SerializedName("dealer_share_amount") + private Long dealerShareAmount; + + + /** + * 渠道商信息(仅当有渠道商报备后才会有此字段) + */ + @SerializedName("dealer_corp_info") + private DealerCorpInfo dealerCorpInfo; + + + /** + * 渠道商信息(仅当有渠道商报备后才会有此字段) + */ + @Getter + @Setter + public static class DealerCorpInfo { + /** + * 代理商corpid + */ + @SerializedName("corpid") + private String corpId; + + + /** + * 代理商名 + */ + @SerializedName("corp_name") + private String corpName; + } + + /** + * From json wx cp tp order details. + * + * @param json the json + * @return the wx cp tp order details + */ + public static WxCpTpOrderDetails fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpTpOrderDetails.class); + } + + /** + * To json string. + * + * @return the string + */ + @Override + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java new file mode 100644 index 0000000000..341ba9bc94 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java @@ -0,0 +1,53 @@ +package me.chanjar.weixin.cp.bean.order; + +import com.google.gson.annotations.SerializedName; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.util.List; + +/** + * 应用版本付费订单列表 + * + * @author leiguoqing + * @date 2022年4月24日 + */ +@Getter +@Setter +public class WxCpTpOrderListGetResult extends WxCpBaseResp { + + /** + * The constant serialVersionUID. + */ + private static final long serialVersionUID = -5028321625140879571L; + + /** + * 订单列表 + */ + @SerializedName("order_list") + private List orderList; + + + /** + * From json wx cp tp order list get result. + * + * @param json the json + * @return the wx cp tp order list get result + */ + public static WxCpTpOrderListGetResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpTpOrderListGetResult.class); + } + + /** + * To json string. + * + * @return the string + */ + @Override + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 4d5527861c..d821484219 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -204,6 +204,15 @@ interface Tp { String CONTACT_SEARCH = "/cgi-bin/service/contact/search"; String GET_ADMIN_LIST = "/cgi-bin/service/get_admin_list"; + // 获取订单详情 + String GET_ORDER = "/cgi-bin/service/get_order"; + + // 获取订单列表 + String GET_ORDER_LIST = "/cgi-bin/service/get_order_list"; + + // 延长试用期 + String PROLONG_TRY = "/cgi-bin/service/prolong_try"; + } interface User { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java new file mode 100644 index 0000000000..4f88e9471b --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java @@ -0,0 +1,33 @@ +package me.chanjar.weixin.cp.tp.service; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpTpProlongTryResult; + + +/** + * 应用版本付费版本相关接口 + * + * @author leiguoqing + * @date 2022年4月24日 + */ +public interface WxCpTpEditionService { + + /** + * 延长试用期 + *

+ * 文档地址 + *

+ * 注意: + *

    + *
  • 一个应用可以多次延长试用,但是试用总天数不能超过60天
  • + *
  • 仅限时试用或试用过期状态下的应用可以延长试用期
  • + *
+ * + * @param buyerCorpId 购买方corpId + * @param prolongDays 延长天数 + * @param appId 仅旧套件需要填此参数 + * @return the order + * @throws WxErrorException the wx error exception + */ + WxCpTpProlongTryResult prolongTry(String buyerCorpId, Integer prolongDays, String appId) throws WxErrorException; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java new file mode 100644 index 0000000000..d2288860cf --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java @@ -0,0 +1,44 @@ +package me.chanjar.weixin.cp.tp.service; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.order.WxCpTpOrderDetails; +import me.chanjar.weixin.cp.bean.order.WxCpTpOrderListGetResult; + +import java.util.Date; + + +/** + * 应用版本付费订单相关接口 + * + * @author leiguoqing + * @date 2022年4月24日 + */ +public interface WxCpTpOrderService { + + /** + * 获取订单详情 + *

+ * 文档地址 + *

+ * + * @param orderId 订单号 + * @return the order + * @throws WxErrorException the wx error exception + */ + WxCpTpOrderDetails getOrder(String orderId) throws WxErrorException; + + + /** + * 获取订单列表 + *

+ * 文档地址 + *

+ * + * @param startTime 起始时间 + * @param endTime 终止时间 + * @param testMode 指定拉取正式或测试模式的订单。默认正式模式。0-正式模式,1-测试模式。 + * @return the order + * @throws WxErrorException the wx error exception + */ + WxCpTpOrderListGetResult getOrderList(Date startTime, Date endTime, Integer testMode) throws WxErrorException; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java index bd44911feb..37405b2e92 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java @@ -530,4 +530,31 @@ public interface WxCpTpService { */ void expireProviderToken(); + /** + * 获取应用版本付费订单相关接口服务 + * + * @return the wx cp tp order service + */ + WxCpTpOrderService getWxCpTpOrderService(); + + /** + * 设置应用版本付费订单相关接口服务 + * + * @param wxCpTpOrderService the wx cp tp order service + */ + void setWxCpTpOrderService(WxCpTpOrderService wxCpTpOrderService); + + /** + * 获取应用版本付费版本相关接口服务 + * + * @return the wx cp tp edition service + */ + WxCpTpEditionService getWxCpTpEditionService(); + + /** + * 设置应用版本付费版本相关接口服务 + * + * @param wxCpTpEditionService the wx cp tp edition service + */ + void setWxCpTpOrderService(WxCpTpEditionService wxCpTpEditionService); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java index 03316b9ae2..a4dbd12480 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java @@ -48,6 +48,8 @@ public abstract class BaseWxCpTpServiceImpl implements WxCpTpService, Requ private WxCpTpMediaService wxCpTpMediaService = new WxCpTpMediaServiceImpl(this); private WxCpTpOAService wxCpTpOAService = new WxCpTpOAServiceImpl(this); private WxCpTpUserService wxCpTpUserService = new WxCpTpUserServiceImpl(this); + private WxCpTpOrderService wxCpTpOrderService = new WxCpTpOrderServiceImpl(this); + private WxCpTpEditionService wxCpTpEditionService = new WxCpTpEditionServiceImpl(this); /** * 全局的是否正在刷新access token的锁. @@ -594,6 +596,26 @@ public void expireProviderToken() { this.configStorage.expireProviderToken(); } + @Override + public WxCpTpOrderService getWxCpTpOrderService() { + return wxCpTpOrderService; + } + + @Override + public void setWxCpTpOrderService(WxCpTpOrderService wxCpTpOrderService) { + this.wxCpTpOrderService = wxCpTpOrderService; + } + + @Override + public WxCpTpEditionService getWxCpTpEditionService() { + return wxCpTpEditionService; + } + + @Override + public void setWxCpTpOrderService(WxCpTpEditionService wxCpTpEditionService) { + this.wxCpTpEditionService = wxCpTpEditionService; + } + private WxJsapiSignature doCreateWxJsapiSignature(String url, String authCorpId, String jsapiTicket) { long timestamp = System.currentTimeMillis() / 1000; String noncestr = RandomUtils.getRandomStr(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java new file mode 100644 index 0000000000..8a6a71352b --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java @@ -0,0 +1,52 @@ +package me.chanjar.weixin.cp.tp.service.impl; + +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpTpProlongTryResult; +import me.chanjar.weixin.cp.tp.service.WxCpTpEditionService; +import me.chanjar.weixin.cp.tp.service.WxCpTpService; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.PROLONG_TRY; + +/** + * 应用版本付费版本相关接口实现 + * + * @author leigouqing + * @date 2022年4月24日 + */ +@RequiredArgsConstructor +public class WxCpTpEditionServiceImpl implements WxCpTpEditionService { + + /** + * The Main service. + */ + private final WxCpTpService mainService; + + /** + * 延长试用期 + *

+ * 文档地址 + *

+ *

    + *
  • 一个应用可以多次延长试用,但是试用总天数不能超过60天
  • + *
  • 仅限时试用或试用过期状态下的应用可以延长试用期
  • + *
+ * + * @param buyerCorpId 购买方corpId + * @param prolongDays 延长天数 + * @param appId 仅旧套件需要填此参数 + * @return the order + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpTpProlongTryResult prolongTry(String buyerCorpId, Integer prolongDays, String appId) throws WxErrorException { + String url = mainService.getWxCpTpConfigStorage().getApiUrl(PROLONG_TRY); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("buyer_corpid", buyerCorpId); + jsonObject.addProperty("prolong_days", prolongDays); + jsonObject.addProperty("appid", appId); + String result = mainService.post(url, jsonObject.toString()); + return WxCpTpProlongTryResult.fromJson(result); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java new file mode 100644 index 0000000000..6a598e0079 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java @@ -0,0 +1,71 @@ +package me.chanjar.weixin.cp.tp.service.impl; + +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.order.WxCpTpOrderDetails; +import me.chanjar.weixin.cp.bean.order.WxCpTpOrderListGetResult; +import me.chanjar.weixin.cp.tp.service.WxCpTpOrderService; +import me.chanjar.weixin.cp.tp.service.WxCpTpService; + +import java.util.Date; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_ORDER; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_ORDER_LIST; + +/** + * 应用版本付费订单相关接口实现 + * + * @author leigouqing + * @date 2022年4月24日 + */ +@RequiredArgsConstructor +public class WxCpTpOrderServiceImpl implements WxCpTpOrderService { + + /** + * The Main service. + */ + private final WxCpTpService mainService; + + /** + * 获取订单详情 + *

+ * 文档地址 + *

+ * + * @param orderId 订单号 + * @return the order + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpTpOrderDetails getOrder(String orderId) throws WxErrorException { + String url = mainService.getWxCpTpConfigStorage().getApiUrl(GET_ORDER); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("orderid", orderId); + String result = this.mainService.post(url, jsonObject.toString()); + return WxCpTpOrderDetails.fromJson(result); + } + + /** + * 获取订单列表 + *

+ * 文档地址 + *

+ * + * @param startTime 起始时间 + * @param endTime 终止时间 + * @param testMode 指定拉取正式或测试模式的订单。默认正式模式。0-正式模式,1-测试模式。 + * @return the order list + * @throws WxErrorException the wx error exception + */ + @Override + public WxCpTpOrderListGetResult getOrderList(Date startTime, Date endTime, Integer testMode) throws WxErrorException { + String url = mainService.getWxCpTpConfigStorage().getApiUrl(GET_ORDER_LIST); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("start_time", startTime.getTime() / 1000); + jsonObject.addProperty("end_time", endTime.getTime() / 1000); + jsonObject.addProperty("test_mode", testMode); + String result = this.mainService.post(url, jsonObject.toString()); + return WxCpTpOrderListGetResult.fromJson(result); + } +} diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java index d181fac105..8a29a1130a 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java @@ -201,7 +201,9 @@ public void testGetPermanentCodeInfo() throws WxErrorException { " \"edition_name\":\"协同版\",\n" + " \"app_status\":3,\n" + " \"user_limit\":200,\n" + - " \"expired_time\":1541990791\n" + + " \"expired_time\":1541990791,\n" + + " \"is_virtual_version\":false,\n" + + " \"is_shared_from_other_corp\":true\n" + " }\n" + " ]\n" + " }\n" + @@ -295,7 +297,9 @@ public void testGetAuthInfo() throws WxErrorException { " \"edition_name\":\"协同版\",\n" + " \"app_status\":3,\n" + " \"user_limit\":200,\n" + - " \"expired_time\":1541990791\n" + + " \"expired_time\":1541990791,\n" + + " \"is_virtual_version\":false,\n" + + " \"is_shared_from_other_corp\":true\n" + " },\n" + " {\n" + " \"agentid\":1,\n" + @@ -303,7 +307,9 @@ public void testGetAuthInfo() throws WxErrorException { " \"edition_name\":\"协同版\",\n" + " \"app_status\":3,\n" + " \"user_limit\":200,\n" + - " \"expired_time\":1541990791\n" + + " \"expired_time\":1541990791,\n" + + " \"is_virtual_version\":false,\n" + + " \"is_shared_from_other_corp\":true\n" + " }\n" + " ]\n" + " }\n" + diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImplTest.java new file mode 100644 index 0000000000..b3561a3ae2 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImplTest.java @@ -0,0 +1,70 @@ +package me.chanjar.weixin.cp.tp.service.impl; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpTpProlongTryResult; +import me.chanjar.weixin.cp.config.WxCpTpConfigStorage; +import me.chanjar.weixin.cp.config.impl.WxCpTpDefaultConfigImpl; +import me.chanjar.weixin.cp.tp.service.WxCpTpEditionService; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.PROLONG_TRY; +import static org.mockito.Matchers.any; +import static org.mockito.Matchers.eq; +import static org.mockito.Mockito.when; +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; + +/** + * 应用版本付费版本相关接口测试 + */ +public class WxCpTpEditionServiceImplTest { + + @Mock + private WxCpTpServiceApacheHttpClientImpl wxCpTpService; + + private WxCpTpConfigStorage configStorage; + + private WxCpTpEditionService wxCpTpEditionService; + + @BeforeClass + public void setUp() { + MockitoAnnotations.initMocks(this); + configStorage = new WxCpTpDefaultConfigImpl(); + when(wxCpTpService.getWxCpTpConfigStorage()).thenReturn(configStorage); + wxCpTpEditionService = new WxCpTpEditionServiceImpl(wxCpTpService); + } + + + /** + * 延长试用期 + */ + @Test + public void testProlongTry() throws WxErrorException { + + String buyerCorpId = "wx7da9abf8ac62baaa"; + Integer prolongDays = 7; + String appId = "1"; + + Long tryEndTime = 1565152189L; + + String result = "" + + " {\n" + + " \"errcode\" : 0,\n" + + " \"errmsg\" : \"ok\",\n" + + " \"try_end_time\" : 1565152189\n" + + " }"; + + String url = configStorage.getApiUrl(PROLONG_TRY); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + + final WxCpTpProlongTryResult prolongTryResult = wxCpTpEditionService.prolongTry(buyerCorpId, prolongDays, appId); + + assertNotNull(prolongTryResult); + + assertEquals(prolongTryResult.getTryEndTime(), tryEndTime); + + } +} diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImplTest.java new file mode 100644 index 0000000000..eb0c5a38a8 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImplTest.java @@ -0,0 +1,156 @@ +package me.chanjar.weixin.cp.tp.service.impl; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.order.WxCpTpOrderDetails; +import me.chanjar.weixin.cp.bean.order.WxCpTpOrderListGetResult; +import me.chanjar.weixin.cp.config.WxCpTpConfigStorage; +import me.chanjar.weixin.cp.config.impl.WxCpTpDefaultConfigImpl; +import me.chanjar.weixin.cp.tp.service.WxCpTpOrderService; +import org.apache.commons.lang3.time.DateUtils; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.Date; +import java.util.List; +import java.util.Objects; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_ORDER; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_ORDER_LIST; +import static org.mockito.Matchers.any; +import static org.mockito.Matchers.eq; +import static org.mockito.Mockito.when; +import static org.testng.Assert.*; + +/** + * 应用版本付费订单相关接口测试 + */ +public class WxCpTpOrderServiceImplTest { + + @Mock + private WxCpTpServiceApacheHttpClientImpl wxCpTpService; + + private WxCpTpConfigStorage configStorage; + + private WxCpTpOrderService wxCpTpOrderService; + + @BeforeClass + public void setUp() { + MockitoAnnotations.initMocks(this); + configStorage = new WxCpTpDefaultConfigImpl(); + when(wxCpTpService.getWxCpTpConfigStorage()).thenReturn(configStorage); + wxCpTpOrderService = new WxCpTpOrderServiceImpl(wxCpTpService); + } + + + /** + * 获取订单详情 + */ + @Test + public void testGetOrder() throws WxErrorException { + String orderId = "2018091822ks1sd3s"; + + String result = "" + + "{\n" + + " \"errcode\" : 0,\n" + + " \"errmsg\" : \"ok\",\n" + + " \"orderid\" : \"2018091822ks1sd3s\",\n" + + " \"order_status\" : 1,\n" + + " \"order_type\" : 1,\n" + + " \"paid_corpid\" : \"wwfedd7e5291d63aaa\",\n" + + " \"operator_id\" : \"zhangsan\",\n" + + " \"suiteid\" : \"wx67cce113441ccaaa\",\n" + + " \"appid\" : 1,\n" + + " \"edition_id\" : \"RLS65535\",\n" + + " \"edition_name\" : \"协同版\",\n" + + " \"price\" : 100,\n" + + " \"user_count\" : 1000,\n" + + " \"order_period\": 365,\n" + + " \"order_time\" : 1533702999,\n" + + " \"paid_time\" : 1533702910,\n" + + " \"begin_time\" : 1533702910,\n" + + " \"end_time\" : 1553515904,\n" + + " \"order_from\" : 1,\n" + + " \"operator_corpid\" : \"wwfedd7e5292d63aaa\",\n" + + " \"service_share_amount\" : 60,\n" + + " \"platform_share_amount\" : 10,\n" + + " \"dealer_share_amount\" : 30,\n" + + " \"dealer_corp_info\":\n" + + " {\n" + + " \"corpid\": \"xxxx\",\n" + + " \"corp_name\": \"name\"\n" + + " }\n" + + " }"; + String url = configStorage.getApiUrl(GET_ORDER); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + + final WxCpTpOrderDetails orderDetails = wxCpTpOrderService.getOrder(orderId); + + assertNotNull(orderDetails); + + assertEquals(orderDetails.getOrderId(), orderId); + + } + + /** + * 获取订单列表 + */ + @Test + public void testGetOrderList() throws WxErrorException { + String orderId = "2018091822ks1sd3s"; + Date startTime = new Date(); + Date endTime = DateUtils.addDays(startTime, 5); + Integer testMode = 0; + + String result = "" + + " {\n" + + " \"errcode\" : 0,\n" + + " \"errmsg\" : \"ok\",\n" + + " \"order_list\": [\n" + + " {\n" + + " \"orderid\" : \"2018091822ks1sd3s\",\n" + + " \"order_status\" : 1,\n" + + " \"order_type\" : 1,\n" + + " \"paid_corpid\" : \"wwfedd7e5292d63aaa\",\n" + + " \"operator_id\" : \"zhangsan\",\n" + + " \"suiteid\" : \"wx67cce113441cc7a6\",\n" + + " \"appid\" : 1,\n" + + " \"edition_id\" : \"RLS65535\",\n" + + " \"edition_name\" : \"协同版\",\n" + + " \"price\" : 100,\n" + + " \"user_count\" : 1000,\n" + + " \"order_period\": 365,\n" + + " \"order_time\" : 1533702999,\n" + + " \"paid_time\" : 1533702910,\n" + + " \"begin_time\" : 1533702910,\n" + + " \"end_time\" : 1553515904,\n" + + " \"order_from\" : 1,\n" + + " \"operator_corpid\" : \"wwfedd7e5292d63aaa\",\n" + + " \"service_share_amount\" : 60,\n" + + " \"platform_share_amount\" : 10,\n" + + " \"dealer_share_amount\" : 30,\n" + + " \"dealer_corp_info\":\n" + + " {\n" + + " \"corpid\": \"xxxx\",\n" + + " \"corp_name\": \"name\"\n" + + " }\n" + + " }]\n" + + " }"; + + String url = configStorage.getApiUrl(GET_ORDER_LIST); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + + final WxCpTpOrderListGetResult orderList = wxCpTpOrderService.getOrderList(startTime, endTime, testMode); + + assertNotNull(orderList); + + final List detailsList = orderList.getOrderList(); + + assertTrue(Objects.nonNull(detailsList) && !detailsList.isEmpty()); + + assertEquals(detailsList.get(0).getOrderId(), orderId); + } + + +} From 1fc0da066bba06b44549c1124ccf0d8bab3628fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E4=B9=9D=E5=A4=A7=E5=A4=A7?= Date: Mon, 25 Apr 2022 10:13:00 +0800 Subject: [PATCH 206/622] =?UTF-8?q?:new:=20#2586=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=94=AF=E4=BB=98=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E6=94=AF=E6=8C=81base64=E7=BC=96=E7=A0=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/config/WxPayConfig.java | 27 ++++++++++++++++--- .../wxpay/config/WxPayConfigTest.java | 7 +++++ 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java index 59733944ae..b94620ee96 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java @@ -26,6 +26,7 @@ import java.security.KeyStore; import java.security.PrivateKey; import java.security.cert.X509Certificate; +import java.util.Base64; import java.util.Collections; /** @@ -101,15 +102,28 @@ public class WxPayConfig { */ private String signType; private SSLContext sslContext; + /** + * p12证书base64编码 + */ + private String keyString; /** * p12证书文件的绝对路径或者以classpath:开头的类路径. */ private String keyPath; + /** + * apiclient_key.pem证书base64编码 + */ + private String privateKeyString; /** * apiclient_key.pem证书文件的绝对路径或者以classpath:开头的类路径. */ private String privateKeyPath; + + /** + * apiclient_cert.pem证书base64编码 + */ + private String privateCertString; /** * apiclient_cert.pem证书文件的绝对路径或者以classpath:开头的类路径. */ @@ -222,7 +236,7 @@ public SSLContext initSSLContext() throws WxPayException { throw new WxPayException("请确保商户号mchId已设置"); } - InputStream inputStream = this.loadConfigInputStream(this.getKeyPath(), this.keyContent, "p12证书"); + InputStream inputStream = this.loadConfigInputStream(this.keyString, this.getKeyPath(), this.keyContent, "p12证书"); try { KeyStore keystore = KeyStore.getInstance("PKCS12"); @@ -245,7 +259,9 @@ public SSLContext initSSLContext() throws WxPayException { * @author doger.wang **/ public CloseableHttpClient initApiV3HttpClient() throws WxPayException { + val privateKeyString = this.getPrivateKeyString(); val privateKeyPath = this.getPrivateKeyPath(); + val privateCertString = this.getPrivateCertString(); val privateCertPath = this.getPrivateCertPath(); val serialNo = this.getCertSerialNo(); val apiV3Key = this.getApiV3Key(); @@ -253,8 +269,8 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException { throw new WxPayException("请确保apiV3Key值已设置"); } - InputStream keyInputStream = this.loadConfigInputStream(privateKeyPath, this.privateKeyContent, "privateKeyPath"); - InputStream certInputStream = this.loadConfigInputStream(privateCertPath, this.privateCertContent, "privateCertPath"); + InputStream keyInputStream = this.loadConfigInputStream(privateKeyString, privateKeyPath, this.privateKeyContent, "privateKeyPath"); + InputStream certInputStream = this.loadConfigInputStream(privateCertString, privateCertPath, this.privateCertContent, "privateCertPath"); try { PrivateKey merchantPrivateKey = PemUtils.loadPrivateKey(keyInputStream); X509Certificate certificate = PemUtils.loadCertificate(certInputStream); @@ -298,10 +314,13 @@ private WxPayHttpProxy getWxPayHttpProxy() { return null; } - private InputStream loadConfigInputStream(String configPath, byte[] configContent, String fileName) throws WxPayException { + private InputStream loadConfigInputStream(String configString, String configPath, byte[] configContent, String fileName) throws WxPayException { InputStream inputStream; if (configContent != null) { inputStream = new ByteArrayInputStream(configContent); + } else if(StringUtils.isNotEmpty(configString)) { + configContent = Base64.getDecoder().decode(configString); + inputStream = new ByteArrayInputStream(configContent); } else { if (StringUtils.isBlank(configPath)) { throw new WxPayException("请确保证书文件地址【" + fileName + "】或者内容已配置"); diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/WxPayConfigTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/WxPayConfigTest.java index 8b5a621b89..5a506e72f8 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/WxPayConfigTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/WxPayConfigTest.java @@ -37,4 +37,11 @@ public void testInitSSLContext() throws Exception { public void testHashCode() { payConfig.hashCode(); } + + @Test + public void testInitSSLContext_base64() throws Exception { + payConfig.setMchId("123"); + payConfig.setKeyString("MIIKmgIBAzCCCmQGCS..."); + payConfig.initSSLContext(); + } } From f9cf8ca1de63f422ca181e1b72b743a168e92b16 Mon Sep 17 00:00:00 2001 From: Mr_z Date: Tue, 26 Apr 2022 09:40:21 +0800 Subject: [PATCH 207/622] =?UTF-8?q?:art:=20WxPayScoreResult=E7=B1=BB?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0openid=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java index 266440d214..8e78b1b985 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java @@ -100,6 +100,8 @@ public static WxPayScoreResult fromJson(String json) { @SerializedName("authorization_success_time") private String authorizationSuccessTime; + @SerializedName("openid") + private String openid; /** * 收款信息 From 010c184caaaa7e1217da1b407f2ea98fddd0ddc2 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 26 Apr 2022 11:30:44 +0800 Subject: [PATCH 208/622] =?UTF-8?q?:art:=20#2598=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E5=A4=8Dwindows?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=BC=9A=E8=AF=9D=E5=AD=98=E6=A1=A3=E7=9A=84?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/tencent/wework/Finance.java | 6 ++-- .../cp/api/impl/WxCpMsgAuditServiceImpl.java | 33 ++++++++++++++++--- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java index e653fd0f47..8571894758 100644 --- a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java +++ b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java @@ -2,6 +2,8 @@ import lombok.extern.slf4j.Slf4j; +import java.util.List; + /** * 注意: * 此类必须配置在com.tencent.wework路径底下,否则会报错: @@ -147,7 +149,7 @@ public static boolean isWindows() { * @param libFiles 类库配置文件 * @param prefixPath 类库文件的前缀路径 */ - public Finance(String[] libFiles, String prefixPath) { + public Finance(List libFiles, String prefixPath) { boolean isWindows = Finance.isWindows(); for (String file : libFiles) { String suffix = file.substring(file.lastIndexOf(".") + 1); @@ -173,7 +175,7 @@ public Finance(String[] libFiles, String prefixPath) { * @param prefixPath * @return */ - public synchronized static Finance loadingLibraries(String[] libFiles, String prefixPath) { + public synchronized static Finance loadingLibraries(List libFiles, String prefixPath) { if (finance != null) { return finance; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java index 6e47a4648c..33465921c3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java @@ -17,6 +17,9 @@ import java.io.File; import java.io.FileOutputStream; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedList; import java.util.List; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.MsgAudit.*; @@ -39,12 +42,19 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S throw new WxErrorException("请配置会话存档sdk文件的路径,不要配错了!!"); } + /** + * 完整的文件库路径: + * + * /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + */ // 替换斜杠 String replacePath = configPath.replace("\\", "/"); - // 所有的后缀文件 - String suffixFiles = replacePath.substring(replacePath.lastIndexOf("/") + 1); - // 获取的前缀路径 - String prefixPath = replacePath.substring(0, replacePath.lastIndexOf("/") + 1); + // 获取最后一个斜杠的下标,用作分割路径 + int lastIndex = replacePath.lastIndexOf("/") + 1; + // 获取完整路径的前缀路径 + String prefixPath = replacePath.substring(0, lastIndex); + // 获取后缀的所有文件,目的遍历所有文件 + String suffixFiles = replacePath.substring(lastIndex); // 包含so文件 String[] libFiles = suffixFiles.split(","); @@ -52,7 +62,20 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S throw new WxErrorException("请仔细配置会话存档文件路径!!"); } - Finance.loadingLibraries(libFiles, prefixPath); + List libList = Arrays.asList(libFiles); + // 判断windows系统会话存档sdk中dll的加载,因为会互相依赖所以是有顺序的,否则会导致无法加载sdk #2598 + List osLib = new LinkedList(); + List fileLib = new ArrayList(); + libList.stream().forEach(s -> { + if (s.contains("lib")) { + osLib.add(s); + } else { + fileLib.add(s); + } + }); + osLib.addAll(fileLib); + + Finance.loadingLibraries(osLib, prefixPath); long sdk = Finance.SingletonSDK(); long ret = Finance.Init(sdk, cpService.getWxCpConfigStorage().getCorpId(), cpService.getWxCpConfigStorage().getCorpSecret()); From a685e8f3fa2b849f2af3e82a9f1c8747e38badd2 Mon Sep 17 00:00:00 2001 From: zhongjun Date: Tue, 26 Apr 2022 11:31:59 +0800 Subject: [PATCH 209/622] =?UTF-8?q?:new:=20#2620=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=BE=AE=E4=BF=A1=E5=AE=A2?= =?UTF-8?q?=E6=9C=8D=E7=BB=9F=E8=AE=A1=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E3=80=8C=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E3=80=8D=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E6=95=B0=E6=8D=AE=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/WxCpKfService.java | 32 +++---- .../weixin/cp/api/impl/WxCpKfServiceImpl.java | 26 ++--- .../kf/WxCpKfGetCorpStatisticRequest.java | 34 +++++++ .../bean/kf/WxCpKfGetCorpStatisticResp.java | 96 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + .../cp/util/json/StatisticListAdapter.java | 32 +++++++ .../weixin/cp/util/json/WxCpGsonBuilder.java | 3 + 7 files changed, 192 insertions(+), 32 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java index 0da548905c..0795fb7247 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java @@ -1,23 +1,10 @@ package me.chanjar.weixin.cp.api; -import java.util.List; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd; -import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest; -import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp; +import me.chanjar.weixin.cp.bean.kf.*; + +import java.util.List; /** * 微信客服接口 @@ -188,4 +175,17 @@ WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer vo */ WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdList) throws WxErrorException; + + /** + *

+   * 获取「客户数据统计」企业汇总数据
+   * 通过此接口,可以获取咨询会话数、咨询客户数等企业汇总统计数据
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/kf/get_corp_statistic?access_token=ACCESS_TOKEN
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/95489
+   * 
+   * @param request 查询参数
+   * @return 客户数据统计-企业汇总数据
+   */
+  WxCpKfGetCorpStatisticResp getCorpStatistic(WxCpKfGetCorpStatisticRequest request) throws WxErrorException;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java
index 12f1062b0c..26afa1d647 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java
@@ -4,29 +4,16 @@
 import com.google.gson.GsonBuilder;
 import com.google.gson.JsonArray;
 import com.google.gson.JsonObject;
-import java.util.List;
 import lombok.RequiredArgsConstructor;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.cp.api.WxCpKfService;
 import me.chanjar.weixin.cp.api.WxCpService;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp;
+import me.chanjar.weixin.cp.bean.kf.*;
 import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
+import java.util.List;
+
 import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Kf.*;
 
 /**
@@ -188,4 +175,11 @@ public WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdLi
     return WxCpKfCustomerBatchGetResp.fromJson(responseContent);
   }
 
+  @Override
+  public WxCpKfGetCorpStatisticResp getCorpStatistic(WxCpKfGetCorpStatisticRequest request) throws WxErrorException {
+    String url = cpService.getWxCpConfigStorage().getApiUrl(GET_CORP_STATISTIC);
+    String responseContent = cpService.post(url, GSON.toJson(request));
+    return WxCpKfGetCorpStatisticResp.fromJson(responseContent);
+  }
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java
new file mode 100644
index 0000000000..193a6b3531
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java
@@ -0,0 +1,34 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * 获取「客户数据统计」企业汇总数据
+ *
+ * @author zhongjun
+ * @date 2022/4/25
+ **/
+@NoArgsConstructor
+@Data
+public class WxCpKfGetCorpStatisticRequest {
+
+  /**
+   * 客服帐号ID。不传入时返回的数据为企业维度汇总的数据
+   */
+  @SerializedName("open_kfid")
+  private String openKfId;
+
+  /**
+   * 起始日期的时间戳,填这一天的0时0分0秒(否则系统自动处理为当天的0分0秒)。取值范围:昨天至前180天
+   */
+  @SerializedName("start_time")
+  private Long startTime;
+  /**
+   * 结束日期的时间戳,填这一天的0时0分0秒(否则系统自动处理为当天的0分0秒)。取值范围:昨天至前180天
+   */
+  @SerializedName("end_time")
+  private Long endTime;
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java
new file mode 100644
index 0000000000..86d97ab3f4
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java
@@ -0,0 +1,96 @@
+package me.chanjar.weixin.cp.bean.kf;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 获取「客户数据统计」企业汇总数据
+ *
+ * @author zhongjun
+ * @date 2022/4/25
+ **/
+@EqualsAndHashCode(callSuper = true)
+@NoArgsConstructor
+@Data
+public class WxCpKfGetCorpStatisticResp extends WxCpBaseResp {
+  private static final long serialVersionUID = -89898989898989898L;
+
+  /**
+   * 统计数据列表
+   */
+  @SerializedName("statistic_list")
+  private List statisticList;
+
+  @NoArgsConstructor
+  @Data
+  public static class StatisticList {
+    /**
+     * 数据统计日期,为当日0点的时间戳
+     */
+    @SerializedName("stat_time")
+    private Long statTime;
+
+    /**
+     * 一天的统计数据。若当天未产生任何下列统计数据或统计数据还未计算完成则不会返回此项
+     */
+    @SerializedName("statistic")
+    private Statistic statistic;
+  }
+
+  @NoArgsConstructor
+  @Data
+  public static class Statistic {
+
+    /**
+     * 咨询会话数。客户发过消息并分配给接待人员或智能助手的客服会话数,转接不会产生新的会话
+     */
+    @SerializedName("session_cnt")
+    private Integer sessionCnt;
+
+    /**
+     * 咨询客户数。在会话中发送过消息的客户数量,若客户多次咨询只计算一个客户
+     */
+    @SerializedName("user_cnt")
+    private Integer customerCnt;
+
+    /**
+     * 咨询消息总数。客户在会话中发送的消息的数量
+     */
+    @SerializedName("customer_msg_cnt")
+    private Integer customerMsgCnt;
+
+    /**
+     * 升级服务客户数。通过「升级服务」功能成功添加专员或加入客户群的客户数,若同一个客户添加多个专员或客户群,只计算一个客户。在2022年3月10日以后才会有对应统计数据
+     */
+    @SerializedName("upgrade_service_customer_cnt")
+    private Integer upgradeServiceCustomerCnt;
+
+    /**
+     * 智能回复会话数。客户发过消息并分配给智能助手的咨询会话数。通过API发消息或者开启智能回复功能会将客户分配给智能助手
+     */
+    @SerializedName("ai_transfer_rate")
+    private Integer aiSessionReplyCnt;
+
+    /**
+     * 转人工率。一个自然日内,客户给智能助手发消息的会话中,转人工的会话的占比。
+     */
+    @SerializedName("ai_transfer_rate")
+    private Integer aiTransferRate;
+
+    /**
+     * 知识命中率。一个自然日内,客户给智能助手发送的消息中,命中知识库的占比。只有在开启了智能回复原生功能并配置了知识库的情况下,才会产生该项统计数据。当api托管了会话分配,智能回复原生功能失效。若不返回,代表没有向配置知识库的智能接待助手发送消息,该项无法计算
+     */
+    @SerializedName("ai_knowledge_hit_rate")
+    private Integer aiKnowledgeHitRate;
+  }
+
+  public static WxCpKfGetCorpStatisticResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpKfGetCorpStatisticResp.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index d821484219..2923d8f45a 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -328,6 +328,7 @@ interface Kf {
 
     String SEND_MSG_ON_EVENT = "/cgi-bin/kf/send_msg_on_event";
     String CUSTOMER_BATCH_GET = "/cgi-bin/kf/customer/batchget";
+    String GET_CORP_STATISTIC = "/cgi-bin/kf/get_corp_statistic";
 
   }
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java
new file mode 100644
index 0000000000..1dbe151499
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java
@@ -0,0 +1,32 @@
+package me.chanjar.weixin.cp.util.json;
+
+import com.google.gson.*;
+import me.chanjar.weixin.common.util.json.GsonHelper;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfGetCorpStatisticResp;
+
+import java.lang.reflect.Type;
+
+/**
+ * @author zhongjun
+ * @date 2022/4/25
+ **/
+public class StatisticListAdapter implements JsonDeserializer {
+
+  @Override
+  public WxCpKfGetCorpStatisticResp.StatisticList deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
+    WxCpKfGetCorpStatisticResp.StatisticList statisticList = new WxCpKfGetCorpStatisticResp.StatisticList();
+    JsonObject asJsonObject = jsonElement.getAsJsonObject();
+    statisticList.setStatTime(asJsonObject.get("stat_time").getAsLong());
+    JsonElement statistic = asJsonObject.get("statistic");
+    if (GsonHelper.isNotNull(statistic)) {
+      WxCpKfGetCorpStatisticResp.Statistic statisticObj = new WxCpKfGetCorpStatisticResp.Statistic();
+      statisticObj.setSessionCnt(statistic.getAsJsonObject().get("session_cnt").getAsInt());
+      statisticObj.setCustomerCnt(statistic.getAsJsonObject().get("customer_cnt").getAsInt());
+      statisticObj.setCustomerMsgCnt(statistic.getAsJsonObject().get("customer_msg_cnt").getAsInt());
+      statisticObj.setUpgradeServiceCustomerCnt(statistic.getAsJsonObject().get("upgrade_service_customer_cnt").getAsInt());
+      statisticObj.setAiTransferRate(statistic.getAsJsonObject().get("ai_transfer_rate").getAsInt());
+      statisticObj.setAiKnowledgeHitRate(statistic.getAsJsonObject().get("ai_knowledge_hit_rate").getAsInt());
+    }
+    return statisticList;
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java
index 098935bf03..750d24ed08 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpGsonBuilder.java
@@ -9,6 +9,8 @@
 import me.chanjar.weixin.cp.bean.WxCpDepart;
 import me.chanjar.weixin.cp.bean.WxCpTag;
 import me.chanjar.weixin.cp.bean.WxCpUser;
+import me.chanjar.weixin.cp.bean.kf.WxCpKfGetCorpStatisticResp;
+
 import java.util.Objects;
 
 /**
@@ -27,6 +29,7 @@ public class WxCpGsonBuilder {
     INSTANCE.registerTypeAdapter(WxError.class, new WxErrorAdapter());
     INSTANCE.registerTypeAdapter(WxMenu.class, new WxCpMenuGsonAdapter());
     INSTANCE.registerTypeAdapter(WxCpTag.class, new WxCpTagGsonAdapter());
+    INSTANCE.registerTypeAdapter(WxCpKfGetCorpStatisticResp.StatisticList.class, new StatisticListAdapter());
   }
 
   public static Gson create() {

From e7f589e1d36076f1432f50ef74554fbb964e7765 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 25 Apr 2022 14:44:37 +0800
Subject: [PATCH 210/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?=
 =?UTF-8?q?=E5=88=86=E6=96=87=E6=A1=A3=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../me/chanjar/weixin/common/service/WxOAuth2Service.java  | 4 ++--
 .../java/me/chanjar/weixin/cp/constant/WxCpConsts.java     | 7 ++++---
 .../me/chanjar/weixin/open/api/WxOpenComponentService.java | 2 +-
 .../weixin/open/api/impl/WxOpenMpOAuth2ServiceImpl.java    | 2 +-
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java
index 5a53de010f..e422be06a5 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java
@@ -14,7 +14,7 @@ public interface WxOAuth2Service {
   /**
    * 
    * 构造oauth2授权的url连接.
-   * 详情请见: https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
+   * 详情请见: 网页授权
    * 
* * @param redirectUri 用户授权完成后的重定向链接,无需urlencode, 方法内会进行encode @@ -27,7 +27,7 @@ public interface WxOAuth2Service { /** *
    * 用code换取oauth2的access token.
-   * 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=网页授权获取用户基本信息
+   * 详情请见: 网页授权获取用户基本信息
    * 
* * @param code code diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java index 0c7648a9e9..3a4c10e211 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java @@ -215,7 +215,7 @@ public static class ExternalChatUpdateDetail { */ public static final String DEL_MEMBER = "del_member"; /** - * 成员退群 + * 群主变更 */ public static final String CHANGE_OWNER = "change_owner"; /** @@ -228,8 +228,9 @@ public static class ExternalChatUpdateDetail { public static final String CHANGE_NOTICE = "change_notice"; } } + @UtilityClass - public static class ExternalTagChangeType{ + public static class ExternalTagChangeType { /** * 创建企业客户标签 @@ -250,7 +251,7 @@ public static class ExternalTagChangeType{ } @UtilityClass - public static class TageType{ + public static class TageType { /** * 标签 */ diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java index d56d8d4329..314e63f67c 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java @@ -408,7 +408,7 @@ public interface WxOpenComponentService { * @return the wx mp o auth 2 access token * @throws WxErrorException the wx error exception * @see WxMpService#getOAuth2Service() - * @deprecated 2021-05-21: 已修正公众号相关接口,请使用:WxOpenCommpentService.getWxMpServiceByAppid(mpAppId).getOAuth2Service().getAccessToken(code) + * @deprecated 2021-05-21: 已修正公众号相关接口,请使用:WxOpenComponentService.getWxMpServiceByAppid(mpAppId).getOAuth2Service().getAccessToken(code) */ @Deprecated WxOAuth2AccessToken oauth2getAccessToken(String appid, String code) throws WxErrorException; diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpOAuth2ServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpOAuth2ServiceImpl.java index 406e363481..3f990ecfeb 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpOAuth2ServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpOAuth2ServiceImpl.java @@ -28,7 +28,7 @@ public WxOpenMpOAuth2ServiceImpl(WxOpenComponentService wxOpenComponentService, /** * 第三方平台代公众号发起网页授权 - * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/Official_Accounts/official_account_website_authorization.html + * 文档地址:第三方平台代公众号发起网页授权 * * @param code 微信授权code * @return 微信用户信息 From 7d222213803618cdd58a74d6cf5b69c7241b582c Mon Sep 17 00:00:00 2001 From: helloSk <245743602@qq.com> Date: Wed, 27 Apr 2022 08:53:02 +0000 Subject: [PATCH 211/622] =?UTF-8?q?:art:=20=E6=B6=88=E8=B4=B9=E8=80=85?= =?UTF-8?q?=E6=8A=95=E8=AF=892.0=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/complaint/ResponseRequest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java index 24e287773b..57684ec0bb 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java @@ -8,6 +8,7 @@ import lombok.NoArgsConstructor; import java.io.Serializable; +import java.util.List; /** * 微信消费者投诉2.0 @@ -65,7 +66,7 @@ public class ResponseRequest implements Serializable { *
*/ @SerializedName("response_images") - private String responseImages; + private List responseImages; /** *

From e9e7afd69edacc75738951058928cd68d0755927 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE=E6=9E=97?= 
Date: Wed, 27 Apr 2022 09:22:03 +0000
Subject: [PATCH 212/622] =?UTF-8?q?:art:=20=E7=94=B5=E5=95=86=E6=94=B6?=
 =?UTF-8?q?=E4=BB=98=E9=80=9A=E4=BA=8C=E7=BA=A7=E5=95=86=E6=88=B7=E8=BF=9B?=
 =?UTF-8?q?=E4=BB=B6=E5=A2=9E=E5=8A=A0=E7=BB=93=E7=AE=97=E8=A7=84=E5=88=99?=
 =?UTF-8?q?=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../bean/ecommerce/ApplymentsRequest.java     | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java
index ac17e18cd1..87ce9b5b21 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java
@@ -200,6 +200,18 @@ public class ApplymentsRequest implements Serializable {
   @SerializedName(value = "sales_scene_info")
   private SalesSceneInfo salesSceneInfo;
 
+  /**
+   * 
+   * 字段名:+结算规则
+   * 变量名:settlement_info
+   * 是否必填:否
+   * 类型:object
+   * 描述:请填写商家的结算费率规则、所属行业等信息。若电商平台未传入,系统将填写默认值
+   * 
+ */ + @SerializedName(value = "settlement_info") + private SettlementInfo settlementInfo; + /** *
    * 字段名:商户简称
@@ -822,4 +834,39 @@ public static class SalesSceneInfo implements Serializable {
 
   }
 
+  @Data
+  @NoArgsConstructor
+  public static class SettlementInfo implements Serializable {
+    /**
+     * 
+     * 字段名:结算规则ID
+     * 变量名:settlement_id
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  1、选填,请选择二级商户的结算规则ID,需匹配电商平台开通工具箱选择的费率档位,详细参见电商二级商户结算规则对照表;https://kf.qq.com/faq/220228qEfuAz220228bMFji6.html
+     *  2、若电商平台未传入,将默认选择0.6%费率对应的结算规则id;
+     *  示例值:719
+     * 
+ */ + @SerializedName(value = "settlement_id") + private Integer settlementId; + + /** + *
+     * 字段名:所属行业
+     * 变量名:qualification_type
+     * 是否必填:二选一
+     * 类型:string[1, 200]
+     * 描述:
+     *  1、选填,请填写二级商户所属的行业名称,映射特殊资质要求,详细参见电商二级商户结算规则对照表;
+     *  2、若电商平台未传入,将默认填写无需特殊资质的行业名称;
+     *  示例值:零售批发/生活娱乐/其他
+     * 
+ */ + @SerializedName(value = "qualification_type") + private String qualificationType; + + } + } From 5227c4565388d1ebc925bd969318cfd75ec9aa2c Mon Sep 17 00:00:00 2001 From: zhongjun Date: Wed, 27 Apr 2022 17:28:58 +0800 Subject: [PATCH 213/622] =?UTF-8?q?:new:=20#2622=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91OA=E6=89=93=E5=8D=A1?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=A2=9E=E5=8A=A0=E5=BD=95=E5=85=A5=E6=89=93?= =?UTF-8?q?=E5=8D=A1=E4=BA=BA=E5=91=98=E4=BA=BA=E8=84=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/common/error/WxCpErrorMsgEnum.java | 20 +++++++++++++++++++ .../chanjar/weixin/cp/api/WxCpOaService.java | 13 ++++++++++++ .../weixin/cp/api/impl/WxCpOaServiceImpl.java | 9 +++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + 4 files changed, 43 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java index 0b6c774e06..ea1e9e7c68 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxCpErrorMsgEnum.java @@ -1096,6 +1096,26 @@ public enum WxCpErrorMsgEnum { * 通用错误码,提交审批单内部接口失败 */ CODE_301057(301057, "通用错误码,提交审批单内部接口失败"), + /** + * 输入userid无对应成员 + */ + CODE_301069(301069,"输入userid无对应成员"), + /** + * 系统错误,请稍后再试 + */ + CODE_301070(301070,"系统错误,请稍后再试"), + /** + * 企业内有其他人员有相似人脸,此情况下人脸仍然会录入成功 + */ + CODE_301071(301071,"企业内有其他人员有相似人脸,此情况下人脸仍然会录入成功"), + /** + * 人脸图像数据错误请更换图片 + */ + CODE_301072(301072,"企业内有其他人员有相似人脸,此情况下人脸仍然会录入成功"), + /** + * 输入参数错误 + */ + CODE_301075(301075,"输入参数错误"), /** * 批量导入任务的文件中userid有重复. */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java index 9dcea51746..69fabb5694 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java @@ -255,4 +255,17 @@ List getDialRecord(Date startTime, Date endTime, Integer offset, * @throws WxErrorException the wx error exception */ void setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule) throws WxErrorException; + /** + *
+   * 录入打卡人员人脸信息
+   * 企业可通过打卡应用Secret调用本接口,为企业打卡人员录入人脸信息,人脸信息仅用于人脸打卡。
+   * 上传图片大小限制:图片数据不超过1M
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/checkin/addcheckinuserface?access_token=ACCESS_TOKEN
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/93378
+   * 
+   * @param userId 需要录入的用户id
+   * @param userFace 需要录入的人脸图片数据,需要将图片数据base64处理后填入,对已录入的人脸会进行更新处理
+   */
+  void addCheckInUserFace(String userId, String userFace) throws WxErrorException;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
index 0e227c8874..244bcdef84 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java
@@ -354,4 +354,13 @@ public void setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule
     final String url = this.mainService.getWxCpConfigStorage().getApiUrl(SET_CHECKIN_SCHEDULE_DATA);
     this.mainService.post(url, WxCpGsonBuilder.create().toJson(wxCpSetCheckinSchedule));
   }
+
+  @Override
+  public void addCheckInUserFace(String userId, String userFace) throws WxErrorException {
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("userid", userId);
+    jsonObject.addProperty("userface", userFace);
+    String url = this.mainService.getWxCpConfigStorage().getApiUrl(ADD_CHECK_IN_USER_FACE);
+    this.mainService.post(url, jsonObject.toString());
+  }
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index 2923d8f45a..cad78c1f4d 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -103,6 +103,7 @@ interface Oa {
     String GET_CHECKIN_MONTH_DATA = "/cgi-bin/checkin/getcheckin_monthdata";
     String GET_CHECKIN_SCHEDULE_DATA = "/cgi-bin/checkin/getcheckinschedulist";
     String SET_CHECKIN_SCHEDULE_DATA = "/cgi-bin/checkin/setcheckinschedulist";
+    String ADD_CHECK_IN_USER_FACE = "/cgi-bin/checkin/addcheckinuserface";
 
     /**
      * 审批

From f1977f53fdf8325712efa6b8f504486caf0f73ba Mon Sep 17 00:00:00 2001
From: 0katekate0 <32161300+0katekate0@users.noreply.github.com>
Date: Wed, 27 Apr 2022 17:29:54 +0800
Subject: [PATCH 214/622] =?UTF-8?q?:new:=20#2624=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?=
 =?UTF-8?q?=E7=9B=98=E9=87=8D=E5=91=BD=E5=90=8D=E4=BB=A5=E5=8F=8A=E8=A7=A3?=
 =?UTF-8?q?=E6=95=A3=E7=A9=BA=E9=97=B4=E7=9A=84=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/api/WxCpOaWeDriveService.java   | 29 +++++++++++++
 .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 22 +++++++++-
 .../oa/wedrive/WxCpSpaceRenameRequest.java    | 41 +++++++++++++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  2 +
 .../cp/api/WxCpOaWeDriveServiceTest.java      | 23 ++++++++++-
 5 files changed, 114 insertions(+), 3 deletions(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceRenameRequest.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
index 39b6d4d5f5..228b6920ae 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
@@ -2,8 +2,10 @@
 
 import lombok.NonNull;
 import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData;
 import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest;
+import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceRenameRequest;
 
 /**
  * 企业微信微盘相关接口.
@@ -28,4 +30,31 @@ public interface WxCpOaWeDriveService {
    */
   WxCpSpaceCreateData spaceCreate(@NonNull WxCpSpaceCreateRequest request) throws WxErrorException;
 
+  /**
+   * 重命名空间
+   * 该接口用于重命名已有空间,接收userid参数,以空间管理员身份来重命名。
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_rename?access_token=ACCESS_TOKEN
+   *
+   * @param request 重命名空间的请求参数
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpBaseResp spaceRename(@NonNull WxCpSpaceRenameRequest request) throws WxErrorException;
+
+  /**
+   * 解散空间
+   * 该接口用于解散已有空间,需要以空间管理员身份来解散。
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_dismiss?access_token=ACCESS_TOKEN
+   *
+   * @param userId
+   * @param spaceId
+   * @return
+   * @throws WxErrorException
+   */
+  WxCpBaseResp spaceDismiss(@NonNull String userId, @NonNull String spaceId) throws WxErrorException;
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java
index 5f58cbb452..eace47a91e 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java
@@ -1,15 +1,18 @@
 package me.chanjar.weixin.cp.api.impl;
 
+import com.google.gson.JsonObject;
 import lombok.NonNull;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.cp.api.WxCpOaWeDriveService;
 import me.chanjar.weixin.cp.api.WxCpService;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData;
 import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest;
+import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceRenameRequest;
 
-import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.SPACE_CREATE;
+import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.*;
 
 /**
  * 企业微信微盘接口实现类.
@@ -29,4 +32,21 @@ public WxCpSpaceCreateData spaceCreate(@NonNull WxCpSpaceCreateRequest request)
     return WxCpSpaceCreateData.fromJson(responseContent);
   }
 
+  @Override
+  public WxCpBaseResp spaceRename(@NonNull WxCpSpaceRenameRequest request) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_RENAME);
+    String responseContent = this.cpService.post(apiUrl, request.toJson());
+    return WxCpBaseResp.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpBaseResp spaceDismiss(@NonNull String userId, @NonNull String spaceId) throws WxErrorException {
+    String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_DISMISS);
+    JsonObject jsonObject = new JsonObject();
+    jsonObject.addProperty("userid", userId);
+    jsonObject.addProperty("spaceid", spaceId);
+    String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
+    return WxCpBaseResp.fromJson(responseContent);
+  }
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceRenameRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceRenameRequest.java
new file mode 100644
index 0000000000..f7f313326e
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceRenameRequest.java
@@ -0,0 +1,41 @@
+package me.chanjar.weixin.cp.bean.oa.wedrive;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 重命名空间请求.
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxCpSpaceRenameRequest implements Serializable {
+  private static final long serialVersionUID = -4960239393895754138L;
+
+  @SerializedName("userid")
+  private String userId;
+
+  @SerializedName("spaceid")
+  private String spaceId;
+
+  @SerializedName("space_name")
+  private String spaceName;
+
+  public static WxCpSpaceRenameRequest fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceRenameRequest.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index cad78c1f4d..afef5193cf 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -146,6 +146,8 @@ interface Oa {
      * https://developer.work.weixin.qq.com/document/path/93654
      */
     String SPACE_CREATE = "/cgi-bin/wedrive/space_create";
+    String SPACE_RENAME = "/cgi-bin/wedrive/space_rename";
+    String SPACE_DISMISS = "/cgi-bin/wedrive/space_dismiss";
 
     /**
      * 审批流程引擎
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java
index eb7b682948..f212ce02bb 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java
@@ -3,8 +3,10 @@
 import lombok.extern.slf4j.Slf4j;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
 import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData;
 import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest;
+import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceRenameRequest;
 import me.chanjar.weixin.cp.config.WxCpConfigStorage;
 import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage;
 import org.testng.annotations.Test;
@@ -37,17 +39,34 @@ public void test() throws WxErrorException {
     WxCpSpaceCreateRequest wxCpSpaceCreateRequest = WxCpSpaceCreateRequest.fromJson(createSpace);
     log.info(wxCpSpaceCreateRequest.toJson());
 
+
     /**
      * 新建空间
      */
     WxCpSpaceCreateRequest request = new WxCpSpaceCreateRequest();
     request.setUserId("WangKai");
-    request.setSpaceName("测试云盘2");
+    request.setSpaceName("测试云盘Three");
 
     WxCpSpaceCreateData spaceCreateData = cpService.getOaWeDriveService().spaceCreate(request);
-    log.info("空间id为:{}", spaceCreateData.getSpaceId());
+    log.info("空间id为:{}", spaceCreateData.getSpaceId()); //
     log.info(spaceCreateData.toJson());
 
+    /**
+     * 重命名空间
+     */
+    WxCpSpaceRenameRequest wxCpSpaceRenameRequest = new WxCpSpaceRenameRequest();
+    wxCpSpaceRenameRequest.setUserId("WangKai");
+    wxCpSpaceRenameRequest.setSpaceId(spaceCreateData.getSpaceId());
+    wxCpSpaceRenameRequest.setSpaceName("测试云盘Four");
+    WxCpBaseResp baseResp = cpService.getOaWeDriveService().spaceRename(wxCpSpaceRenameRequest);
+    log.info("重命名成功:{}", baseResp.toJson());
+
+    /**
+     * 解散空间
+     */
+    WxCpBaseResp thisResp = cpService.getOaWeDriveService().spaceDismiss("WangKai", spaceCreateData.getSpaceId());
+    log.info("解散成功:{}", thisResp.toJson());
+
   }
 
 }

From 40f10de24b39a648d583180444e12cae926cbc12 Mon Sep 17 00:00:00 2001
From: helloSk <245743602@qq.com>
Date: Thu, 28 Apr 2022 03:00:30 +0000
Subject: [PATCH 215/622] =?UTF-8?q?:art:=E3=80=90=E5=BE=AE=E4=BF=A1?=
 =?UTF-8?q?=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0=E5=95=86=E6=88=B7?=
 =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=8F=8D=E9=A6=88=E5=9B=BE=E7=89=87API?=
 =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E4=BF=AE=E5=A4=8D=E6=B6=88=E8=B4=B9=E8=80=85?=
 =?UTF-8?q?=E6=8A=95=E8=AF=892.0=E9=87=8C=E6=9F=A5=E8=AF=A2=E6=8A=95?=
 =?UTF-8?q?=E8=AF=89=E5=8D=8F=E5=95=86=E5=8E=86=E5=8F=B2=E7=9A=84=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../complaint/NegotiationHistoryResult.java   |  4 +-
 .../wxpay/service/ComplaintService.java       | 31 +++++++++++++
 .../service/impl/ComplaintServiceImpl.java    | 46 ++++++++++++++++++-
 .../impl/ComplaintServiceImplTest.java        | 22 ++++++++-
 4 files changed, 97 insertions(+), 6 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java
index 4e5ab4197f..b6f265fd86 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java
@@ -67,7 +67,7 @@ public static class NegotiationHistory implements Serializable {
      * 
*/ @SerializedName("complaint_media_list") - private List complaintMediaList; + private List complaintMediaList; @Data public static class ComplaintMedia implements Serializable { @@ -97,7 +97,7 @@ public static class ComplaintMedia implements Serializable { *
*/ @SerializedName("media_url") - private String mediaUrl; + private List mediaUrl; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java index bd6a2e3461..1ed2b09df3 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ComplaintService.java @@ -1,9 +1,13 @@ package com.github.binarywang.wxpay.service; import com.github.binarywang.wxpay.bean.complaint.*; +import com.github.binarywang.wxpay.bean.media.ImageUploadResult; import com.github.binarywang.wxpay.exception.WxPayException; import javax.crypto.BadPaddingException; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; /** *
@@ -129,4 +133,31 @@ public interface ComplaintService {
    */
   void complete(CompleteRequest request) throws WxPayException;
 
+  /**
+   * 
+   * 商户上传反馈图片API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_10.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/merchant-service/images/upload
+   * 
+ * + * @param imageFile 需要上传的图片文件 + * @return ImageUploadResult 微信返回的媒体文件标识Id。示例值:BB04A5DEEFEA18D4F2554C1EDD3B610B.bmp + * @throws WxPayException the wx pay exception + */ + ImageUploadResult uploadResponseImage(File imageFile) throws WxPayException, IOException; + + /** + *
+   * 商户上传反馈图片API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_10.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/merchant-service/images/upload
+   * 
+ * + * @param inputStream 需要上传的图片文件流 + * @param fileName 需要上传的图片文件名 + * @return ImageUploadResult 微信返回的媒体文件标识Id。示例值:BB04A5DEEFEA18D4F2554C1EDD3B610B.bmp + * @throws WxPayException the wx pay exception + */ + ImageUploadResult uploadResponseImage(InputStream inputStream, String fileName) throws WxPayException, IOException; + } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java index d269a8f902..51d9609c41 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImpl.java @@ -1,15 +1,20 @@ package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.complaint.*; +import com.github.binarywang.wxpay.bean.media.ImageUploadResult; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.ComplaintService; import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.WechatPayUploadHttpPost; import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import lombok.RequiredArgsConstructor; +import org.apache.commons.codec.digest.DigestUtils; import javax.crypto.BadPaddingException; +import java.io.*; +import java.net.URI; import java.util.List; /** @@ -34,7 +39,7 @@ public ComplaintResult queryComplaints(ComplaintRequest request) throws WxPayExc List data = complaintResult.getData(); for (ComplaintDetailResult complaintDetailResult : data) { // 对手机号进行解密操作 - if(complaintDetailResult.getPayerPhone() != null) { + if (complaintDetailResult.getPayerPhone() != null) { String payerPhone = RsaCryptoUtil.decryptOAEP(complaintDetailResult.getPayerPhone(), this.payService.getConfig().getPrivateKey()); complaintDetailResult.setPayerPhone(payerPhone); } @@ -49,7 +54,7 @@ public ComplaintDetailResult getComplaint(ComplaintDetailRequest request) throws String response = this.payService.getV3(url); ComplaintDetailResult result = GSON.fromJson(response, ComplaintDetailResult.class); // 对手机号进行解密操作 - if(result.getPayerPhone() != null) { + if (result.getPayerPhone() != null) { String payerPhone = RsaCryptoUtil.decryptOAEP(result.getPayerPhone(), this.payService.getConfig().getPrivateKey()); result.setPayerPhone(payerPhone); } @@ -107,4 +112,41 @@ public void complete(CompleteRequest request) throws WxPayException { this.payService.postV3(url, GSON.toJson(request)); } + @Override + public ImageUploadResult uploadResponseImage(File imageFile) throws WxPayException, IOException { + String url = String.format("%s/v3/merchant-service/images/upload", this.payService.getPayBaseUrl()); + + try (FileInputStream s1 = new FileInputStream(imageFile)) { + String sha256 = DigestUtils.sha256Hex(s1); + try (InputStream s2 = new FileInputStream(imageFile)) { + WechatPayUploadHttpPost request = new WechatPayUploadHttpPost.Builder(URI.create(url)) + .withImage(imageFile.getName(), sha256, s2) + .build(); + String result = this.payService.postV3(url, request); + return ImageUploadResult.fromJson(result); + } + } + } + + @Override + public ImageUploadResult uploadResponseImage(InputStream inputStream, String fileName) throws WxPayException, IOException { + String url = String.format("%s/v3/merchant-service/images/upload", this.payService.getPayBaseUrl()); + try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) { + //文件大小不能超过2M + byte[] buffer = new byte[2048]; + int len; + while ((len = inputStream.read(buffer)) > -1) { + bos.write(buffer, 0, len); + } + bos.flush(); + byte[] data = bos.toByteArray(); + String sha256 = DigestUtils.sha256Hex(data); + WechatPayUploadHttpPost request = new WechatPayUploadHttpPost.Builder(URI.create(url)) + .withImage(fileName, sha256, new ByteArrayInputStream(data)) + .build(); + String result = this.payService.postV3(url, request); + return ImageUploadResult.fromJson(result); + } + } + } diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java index 6014924fdc..f4607116ef 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ComplaintServiceImplTest.java @@ -1,8 +1,7 @@ package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.complaint.*; -import com.github.binarywang.wxpay.bean.profitsharing.*; -import com.github.binarywang.wxpay.constant.WxPayConstants; +import com.github.binarywang.wxpay.bean.media.ImageUploadResult; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.testbase.ApiTestModule; @@ -13,6 +12,8 @@ import org.testng.annotations.Test; import javax.crypto.BadPaddingException; +import java.io.File; +import java.io.IOException; /** *
@@ -152,4 +153,21 @@ public void testComplete() throws WxPayException {
     this.payService.getComplaintsService().complete(request);
   }
 
+  /**
+   *  商户上传反馈图片API
+   * @throws WxPayException
+   * @throws IOException
+   */
+  @Test
+  public  void testUploadResponseImage() throws WxPayException, IOException {
+    String filePath="你的图片文件的路径地址";
+//    String filePath="WxJava/images/banners/wiki.jpg";
+
+    File file = new File(filePath);
+
+    ImageUploadResult imageUploadResult = this.payService.getComplaintsService().uploadResponseImage(file);
+    imageUploadResult.getMediaId();
+
+  }
+
 }

From 42c57b6de97e0f615d0bc0629164d81be28575ee Mon Sep 17 00:00:00 2001
From: Wyman <30896040+EscapeeX@users.noreply.github.com>
Date: Fri, 29 Apr 2022 09:48:22 +0800
Subject: [PATCH 216/622] =?UTF-8?q?:new:=20=20#2627=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0V3?=
 =?UTF-8?q?=E5=88=86=E8=B4=A6=E5=8A=A8=E8=B4=A6=E9=80=9A=E7=9F=A5=E8=A7=A3?=
 =?UTF-8?q?=E6=9E=90=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ProfitSharingNotifyData.java              | 142 ++++++++++++++++++
 .../ProfitSharingNotifyResult.java            | 130 ++++++++++++++++
 .../wxpay/service/ProfitSharingV3Service.java |  19 +++
 .../impl/ProfitSharingV3ServiceImpl.java      |  53 +++++++
 .../impl/ProfitSharingV3ServiceImplTest.java  |  38 +++++
 5 files changed, 382 insertions(+)
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyData.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyResult.java
 create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImplTest.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyData.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyData.java
new file mode 100644
index 0000000000..6d47183f23
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyData.java
@@ -0,0 +1,142 @@
+package com.github.binarywang.wxpay.bean.profitsharingV3;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ *
+ * 微信V3接口
+ * 通用通知实体
+ *
+ * @author yuanbo
+ * @create 2022-04-26-21:33 PM
+ */
+@Data
+@NoArgsConstructor
+public class ProfitSharingNotifyData implements Serializable{
+
+
+  private static final long serialVersionUID = 4242383310854692441L;
+
+  /**
+   * 
+   * 字段名:通知ID
+   * 是否必填:是
+   * 描述:通知的唯一ID
+   * 
+ */ + @SerializedName("id") + private String id; + + /** + *
+   * 字段名:通知创建时间
+   * 是否必填:是
+   * 描述:通知创建的时间,Rfc3339标准
+   * 
+ */ + @SerializedName("create_time") + private String createTime; + + /** + *
+   * 字段名:通知数据类型
+   * 是否必填:是
+   * 描述:通知的资源数据类型
+   * 
+ */ + @SerializedName("resource_type") + private String resourceType; + + /** + *
+   * 字段名:通知类型
+   * 是否必填:是
+   * 描述:通知的类型
+   * 
+ */ + @SerializedName("event_type") + private String eventType; + + /** + *
+   * 字段名:通知数据
+   * 是否必填:是
+   * 描述:通知资源数据
+   * 
+ */ + @SerializedName("resource") + private Resource resource; + + /** + *
+   * 字段名:通知简要说明
+   * 是否必填:是
+   * 描述:通知简要说明
+   * 
+ */ + @SerializedName("summary") + private String summary; + + @Data + @NoArgsConstructor + public static class Resource implements Serializable { + + private static final long serialVersionUID = 8530711804335261449L; + + + /** + *
+     * 字段名:加密算法类型
+     * 是否必填:是
+     * 描述:对分账结果数据进行加密的加密算法,目前只支持AEAD_AES_256_GCM
+     * 
+ */ + @SerializedName("algorithm") + private String algorithm; + + + /** + *
+     * 字段名:加密前的对象类型
+     * 是否必填:是
+     * 描述:加密前的对象类型,分账动账通知的类型为profitsharing
+     * 
+ */ + @SerializedName("original_type") + private String originalType; + + /** + *
+     * 字段名:数据密文
+     * 是否必填:是
+     * 描述:Base64编码后的分账结果数据密文
+     * 
+ */ + @SerializedName("ciphertext") + private String cipherText; + + /** + *
+     * 字段名:随机串
+     * 是否必填:是
+     * 描述:加密使用的随机串
+     * 
+ */ + @SerializedName("nonce") + private String nonce; + + /** + *
+     * 字段名:附加数据
+     * 是否必填:否
+     * 描述:附加数据
+     * 
+ */ + @SerializedName("associated_data") + private String associatedData; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyResult.java new file mode 100644 index 0000000000..06c00101c3 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingNotifyResult.java @@ -0,0 +1,130 @@ +package com.github.binarywang.wxpay.bean.profitsharingV3; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * + * 微信V3接口 + * 分账动账通知解密后数据实体 + * + * @author yuanbo + * @create 2022-04-26-21:08 PM + */ +@Data +@NoArgsConstructor +public class ProfitSharingNotifyResult implements Serializable { + + + private static final long serialVersionUID = -2875006651351414624L; + + /** + *
+   * 字段名:直连商户号
+   * 是否必填:是
+   * 描述:直连模式分账发起和出资商户
+   * 
+ */ + @SerializedName("mchid") + private String mchId; + + /** + *
+   * 字段名:微信订单号
+   * 是否必填:是
+   * 描述:微信支付订单号
+   * 
+ */ + @SerializedName("transaction_id") + private String transactionId; + + /** + *
+   * 字段名:微信分账/回退单号
+   * 是否必填:是
+   * 描述:微信分账/回退单号
+   * 
+ */ + @SerializedName("order_id") + private String orderId; + + /** + *
+   * 字段名:商户分账/回退单号
+   * 是否必填:是
+   * 描述:分账方系统内部的分账/回退单号
+   * 
+ */ + @SerializedName("out_order_no") + private String outOrderNo; + + /** + *
+   * 字段名:分账接收方
+   * 是否必填:是
+   * 描述:分账接收方对象
+   * 
+ */ + @SerializedName("receiver") + private Receiver receiver; + + /** + *
+   * 字段名:成功时间
+   * 是否必填:是
+   * 描述:成功时间,Rfc3339标准
+   * 
+ */ + @SerializedName("success_time") + private String successTime; + + @Data + @NoArgsConstructor + public static class Receiver implements Serializable { + + private static final long serialVersionUID = -931070141604645363L; + + /** + *
+     * 字段名:分账接收方类型
+     * 是否必填:是
+     * 描述:MERCHANT_ID:商户号(mch_id或者sub_mch_id)
+     * 
+ */ + @SerializedName("type") + private String type; + + /** + *
+     * 字段名:分账接收方账号
+     * 是否必填:是
+     * 描述:申请本功能商户号
+     * 
+ */ + @SerializedName("account") + private String account; + + /** + *
+     * 字段名:分账动账金额
+     * 是否必填:是
+     * 描述:分账动账金额,单位为分,只能为整数
+     * 
+ */ + @SerializedName("amount") + private Integer amount; + + /** + *
+     * 字段名:分账/回退描述
+     * 是否必填:是
+     * 描述:分账/回退描述
+     * 
+ */ + @SerializedName("description") + private String description; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java index fcb87063a9..501e933973 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java @@ -1,5 +1,6 @@ package com.github.binarywang.wxpay.service; +import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.profitsharingV3.*; import com.github.binarywang.wxpay.exception.WxPayException; @@ -161,4 +162,22 @@ public interface ProfitSharingV3Service { */ ProfitSharingReceiver deleteProfitSharingReceiver(ProfitSharingReceiver receiver) throws WxPayException; + + /** + *
+   * 分账动账通知
+   *
+   * 分账或分账回退成功后,微信会把相关变动结果发送给分账接收方(只支持商户)。
+   * 对后台通知交互时,如果微信收到应答不是成功或超时,微信认为通知失败,微信会通过一定的策略定期重新发起通知,尽可能提高通知的成功率,但微信不保证通知最终能成功。
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_10.shtml
+   * 
+ * + * @param notifyData 分账通知实体 + * @param header 分账通知头 {@link SignatureHeader} + * @return {@link ProfitSharingNotifyData} 资源对象 + * @throws WxPayException the wx pay exception + * @see 微信文档 + */ + ProfitSharingNotifyData getProfitSharingNotifyData(String notifyData, SignatureHeader header) throws WxPayException; + } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImpl.java index 539836de14..92d724177f 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImpl.java @@ -1,15 +1,24 @@ package com.github.binarywang.wxpay.service.impl; +import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.profitsharingV3.*; +import com.github.binarywang.wxpay.config.WxPayConfig; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.ProfitSharingV3Service; import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.auth.Verifier; +import com.github.binarywang.wxpay.v3.util.AesUtils; import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.security.GeneralSecurityException; +import java.util.Objects; + /** * 微信支付V3-资金应用-分账Service * @@ -82,4 +91,48 @@ public ProfitSharingReceiver deleteProfitSharingReceiver(ProfitSharingReceiver r String result = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); return GSON.fromJson(result, ProfitSharingReceiver.class); } + + @Override + public ProfitSharingNotifyData getProfitSharingNotifyData(String notifyData, SignatureHeader header) throws WxPayException { + ProfitSharingNotifyData response = parseNotifyData(notifyData, header); + ProfitSharingNotifyData.Resource resource = response.getResource(); + String cipherText = resource.getCipherText(); + String associatedData = resource.getAssociatedData(); + String nonce = resource.getNonce(); + String apiV3Key = this.payService.getConfig().getApiV3Key(); + try { + String result = AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key); + ProfitSharingNotifyData notifyResult = GSON.fromJson(result, ProfitSharingNotifyData.class); + return notifyResult; + } catch (GeneralSecurityException | IOException e) { + throw new WxPayException("解析报文异常!", e); + } + } + + private ProfitSharingNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException { + if (Objects.nonNull(header) && !this.verifyNotifySign(header, data)) { + throw new WxPayException("非法请求,头部信息验证失败"); + } + return GSON.fromJson(data, ProfitSharingNotifyData.class); + } + + /** + * 校验通知签名 + * + * @param header 通知头信息 + * @param data 通知数据 + * @return true:校验通过 false:校验不通过 + */ + private boolean verifyNotifySign(SignatureHeader header, String data) throws WxPayException { + String beforeSign = String.format("%s\n%s\n%s\n", + header.getTimeStamp(), + header.getNonce(), + data); + Verifier verifier = this.payService.getConfig().getVerifier(); + if (verifier == null) { + throw new WxPayException("证书检验对象为空"); + } + return verifier.verify(header.getSerialNo(), + beforeSign.getBytes(StandardCharsets.UTF_8), header.getSigned()); + } } diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImplTest.java new file mode 100644 index 0000000000..398f1023f3 --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/ProfitSharingV3ServiceImplTest.java @@ -0,0 +1,38 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.inject.Inject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +/** + * 测试类 + * + * @author yuanbo + * @create 2022-04-26-22:33 PM + */ +@Test +@Guice(modules = ApiTestModule.class) +public class ProfitSharingV3ServiceImplTest { + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + @Inject + private WxPayService payService; + + @Test + public void testProfitSharingNotifyData() throws WxPayException { + SignatureHeader header = new SignatureHeader(); + header.setSerialNo("Wechatpay-Serial"); + header.setTimeStamp("Wechatpay-Timestamp"); + header.setNonce("Wechatpay-Nonce"); + header.setSigned("Wechatpay-Signature"); + String data = "body"; + this.logger.info(this.payService.getProfitSharingV3Service().getProfitSharingNotifyData(data,header).toString()); + } +} From 3e49868388d64e752884310a4f93b8df4ab63d9a Mon Sep 17 00:00:00 2001 From: zhongjun Date: Fri, 29 Apr 2022 09:50:50 +0800 Subject: [PATCH 217/622] =?UTF-8?q?:art:=20#2625=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=BE=A4=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0state=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/external/WxCpUserExternalGroupChatInfo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java index 053789f9c8..0fa97573cb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java @@ -83,6 +83,12 @@ public static class GroupMember implements Serializable { @SerializedName("join_scene") private int joinScene; + /** + * 该成员入群方式对应的state参数 + */ + @SerializedName("state") + private String state; + /** * 在群里的昵称 */ From 6390dea04637ad2df5f3d6e5b5a3c46bccbbf7f9 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 29 Apr 2022 15:38:29 +0800 Subject: [PATCH 218/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.2?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 98c69751b6..4864cc360b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index a5e23847f7..f0d0a231bd 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 0c8517f0ac..d42ba832ff 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 514401d84a..3f7b856ccd 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 3529470785..c67898676e 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index c21343a0da..dc01085f88 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index f557ea6fd5..d5f8338153 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 4f5196860d..7d4ae5fd54 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 615448d9e1..d0b2897b97 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 7c4acc0b5b..3a54a993f3 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index cb86a8dbe2..e82ab1a7e6 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 039557b9a8..f753defd84 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 0a60b558a0..1d6054993f 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 8b90980c68..dcb4bc998a 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 41af824397..54bd44f557 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 241fb5af33..2df0bb2e20 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.1.B + 4.3.2.B weixin-java-qidian From 303a0ea155aaea244ba5a17f981d47b87e57df61 Mon Sep 17 00:00:00 2001 From: leif Yi Date: Thu, 5 May 2022 11:37:26 +0800 Subject: [PATCH 219/622] =?UTF-8?q?:bug:=20#2634=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E4=BF=AE=E5=A4=8D=E8=B4=A2?= =?UTF-8?q?=E4=BB=98=E9=80=9A=E6=94=AF=E4=BB=98=E5=8F=82=E6=95=B0=E6=8A=A5?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/service/impl/EcommerceServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java index 4f13618f3b..1927920d28 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java @@ -110,7 +110,8 @@ public TransactionsResult partner(TradeTypeEnum tradeType, PartnerTransactionsRe @Override public T partnerTransactions(TradeTypeEnum tradeType, PartnerTransactionsRequest request) throws WxPayException { TransactionsResult result = this.partner(tradeType, request); - return result.getPayInfo(tradeType, request.getSpAppid(), + String appId = request.getSubAppid() != null ? request.getSubAppid() : request.getSpAppid(); + return result.getPayInfo(tradeType, appId, request.getSpMchid(), payService.getConfig().getPrivateKey()); } From 946f693bd052b77964db5c10be2ca0830310a7e6 Mon Sep 17 00:00:00 2001 From: xiaohe-53 <78242668+xiaohe-53@users.noreply.github.com> Date: Thu, 5 May 2022 11:42:44 +0800 Subject: [PATCH 220/622] =?UTF-8?q?:art:=20#2632=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=AE=8C=E5=96=84=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=8D=A1=E7=89=87=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 7 +++- .../weixin/cp/api/WxCpTaskCardService.java | 22 +++++++++- .../cp/api/impl/WxCpTaskCardServiceImpl.java | 21 ++++++++++ .../weixin/cp/bean/message/WxCpMessage.java | 28 +++++++++++++ .../messagebuilder/TemplateCardBuilder.java | 33 +++++++++++++++ .../cp/bean/templatecard/ActionMenuItem.java | 40 +++++++++++++++++++ .../bean/templatecard/HorizontalContent.java | 8 ++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + .../cp/bean/message/WxCpMessageTest.java | 31 +++++++++++--- 9 files changed, 182 insertions(+), 9 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java diff --git a/pom.xml b/pom.xml index 4864cc360b..4091a237b0 100644 --- a/pom.xml +++ b/pom.xml @@ -92,6 +92,11 @@ huangxm129@163.com https://github.com/huangxm129 + + xiaohe + xiaohe@53jy.net + https://github.com/xiaohe-53 + @@ -302,7 +307,7 @@ org.projectlombok lombok - 1.18.8 + 1.18.24 provided diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java index 3d97cb9283..4109c0a03b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java @@ -8,6 +8,7 @@ *
  *  任务卡片管理接口.
  *  Created by Jeff on 2019-05-16.
+ *  Updted by HeXiao on 2022-03-09.
  * 
* * @author Jeff @@ -23,9 +24,26 @@ public interface WxCpTaskCardService { * 注意: 这个方法使用WxCpConfigStorage里的agentId *
* - * @param userIds 企业的成员ID列表 - * @param taskId 任务卡片ID + * @param userIds 企业的成员ID列表 + * @param taskId 任务卡片ID * @param replaceName 替换文案 */ void update(List userIds, String taskId, String replaceName) throws WxErrorException; + + + /** + * 更新按钮为不可点击状态 + * 详情请见https://developer.work.weixin.qq.com/document/path/94888#%E6%9B%B4%E6%96%B0%E6%8C%89%E9%92%AE%E4%B8%BA%E4%B8%8D%E5%8F%AF%E7%82%B9%E5%87%BB%E7%8A%B6%E6%80%81 + * @param userIds 企业的成员ID列表 + * @param partyIds 企业的部门ID列表 + * @param tagIds 企业的标签ID列表 + * @param atAll 更新整个任务接收人员 + * @param responseCode 更新卡片所需要消费的code,可通过发消息接口和回调接口返回值获取,一个code只能调用一次该接口,且只能在24小时内调用 + * @param replaceName 需要更新的按钮的文案 + * @throws WxErrorException + */ + void updateTemplateCardButton(List userIds, List partyIds, + List tagIds, Integer atAll, String responseCode, + String replaceName) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java index 384a3d30cd..9e9e7dea05 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java @@ -38,4 +38,25 @@ public void update(List userIds, String taskId, String replaceName) thro String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_TASK_CARD); this.mainService.post(url, WxGsonBuilder.create().toJson(data)); } + + @Override + public void updateTemplateCardButton(List userIds, List partyIds, + List tagIds, Integer atAll, + String responseCode, String replaceName) throws WxErrorException { + Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); + Map data = new HashMap<>(7); + data.put("userids", userIds); + data.put("partyids", partyIds); + data.put("tagids", tagIds); + data.put("atall", atAll); + data.put("agentid", agentId); + data.put("response_code", responseCode); + Map btnMap = new HashMap<>(); + btnMap.put("replace_name", replaceName); + data.put("button", btnMap); + + String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_TEMPLATE_CARD); + this.mainService.post(url, WxGsonBuilder.create().toJson(data)); + + } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java index 780305ddd5..1ce367d9f5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java @@ -92,6 +92,21 @@ public class WxCpMessage implements Serializable { */ private String sourceDesc; + /** + * 来源文字的颜色,目前支持:0(默认) 灰色,1 黑色,2 红色,3 绿色 + */ + private Integer sourceDescColor; + + /** + * 更多操作界面的描述 + */ + private String actionMenuDesc; + + /** + * 操作列表,列表长度取值范围为 [1, 3] + */ + private List actionMenuActionList; + /** * 一级标题,建议不超过36个字 */ @@ -482,9 +497,22 @@ private void handleMsgType(JsonObject messageJson) { if (StringUtils.isNotBlank(this.getSourceDesc())) { source.addProperty("desc", this.getSourceDesc()); } + source.addProperty("desc_color", this.getSourceDescColor()); template.add("source", source); } + if (StringUtils.isNotBlank(this.getActionMenuDesc())) { + JsonObject action_menu = new JsonObject(); + action_menu.addProperty("desc", this.getActionMenuDesc()); + JsonArray actionList = new JsonArray(); + List actionMenuItemList = this.getActionMenuActionList(); + for (ActionMenuItem actionItemI : actionMenuItemList) { + actionList.add(actionItemI.toJson()); + } + action_menu.add("action_list", actionList); + template.add("action_menu", action_menu); + } + if (StringUtils.isNotBlank(this.getMainTitleTitle()) || StringUtils.isNotBlank(this.getMainTitleDesc())) { JsonObject mainTitle = new JsonObject(); if (StringUtils.isNotBlank(this.getMainTitleTitle())) { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java index 09a506d8e9..866b5b7a04 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java @@ -36,6 +36,21 @@ public class TemplateCardBuilder extends BaseBuilder { */ private String sourceDesc; + /** + * 来源文字的颜色,目前支持:0(默认) 灰色,1 黑色,2 红色,3 绿色 + */ + private Integer sourceDescColor; + + /** + * 更多操作界面的描述 + */ + private String actionMenuDesc; + + /** + * 操作列表,列表长度取值范围为 [1, 3] + */ + private List actionMenuActionList; + /** * 一级标题,建议不超过36个字 */ @@ -172,6 +187,16 @@ public TemplateCardBuilder cardImageAspectRatio(Float cardImageAspectRatio) { return this; } + public TemplateCardBuilder actionMenuDesc(String actionMenuDesc) { + this.actionMenuDesc = actionMenuDesc; + return this; + } + + public TemplateCardBuilder actionMenuActionList(List actionMenuItemList) { + this.actionMenuActionList = actionMenuItemList; + return this; + } + public TemplateCardBuilder sourceIconUrl(String sourceIconUrl) { this.sourceIconUrl = sourceIconUrl; return this; @@ -182,6 +207,11 @@ public TemplateCardBuilder sourceDesc(String sourceDesc) { return this; } + public TemplateCardBuilder sourceDescColor(Integer sourceDescColor) { + this.sourceDescColor = sourceDescColor; + return this; + } + public TemplateCardBuilder mainTitleTitle(String mainTitleTitle) { this.mainTitleTitle = mainTitleTitle; return this; @@ -294,6 +324,9 @@ public WxCpMessage build() { m.setCardType(this.cardType); m.setSourceIconUrl(this.sourceIconUrl); m.setSourceDesc(this.sourceDesc); + m.setSourceDescColor(this.sourceDescColor); + m.setActionMenuDesc(this.actionMenuDesc); + m.setActionMenuActionList(this.actionMenuActionList); m.setMainTitleTitle(this.mainTitleTitle); m.setMainTitleDesc(this.mainTitleDesc); m.setCardImageUrl(this.cardImageUrl); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java new file mode 100644 index 0000000000..54950fb821 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java @@ -0,0 +1,40 @@ +package me.chanjar.weixin.cp.bean.templatecard; + +import com.google.gson.JsonObject; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 卡片右上角更多操作按钮点击后出现的操作列表,列表长度取值范围为 [1, 3] + * @author xiaohe + * @date 2022-03-06 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class ActionMenuItem implements Serializable { + private static final long serialVersionUID = 400885585614100693L; + + /** + * 操作的描述文案 + */ + private String text; + + /** + * 按钮key值,用户点击后,会产生回调事件将本参数作为EventKey返回,回调事件会带上该key值,最长支持1024字节,不可重复 + */ + private String key; + + public JsonObject toJson() { + JsonObject btnObject = new JsonObject(); + btnObject.addProperty("text", this.getText()); + btnObject.addProperty("key", this.getKey()); + return btnObject; + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java index 397420820b..393a99dacf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java @@ -44,6 +44,11 @@ public class HorizontalContent implements Serializable { */ private String media_id; + /** + * 成员详情的userid,horizontal_content_list.type是3时必填 + */ + private String userid; + public JsonObject toJson() { JsonObject hContentJson = new JsonObject(); @@ -61,6 +66,9 @@ public JsonObject toJson() { if (StringUtils.isNotBlank(this.getMedia_id())) { hContentJson.addProperty("media_id", this.getMedia_id()); } + if (StringUtils.isNotBlank(this.getUserid())) { + hContentJson.addProperty("userid", this.getUserid()); + } return hContentJson; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index afef5193cf..dbf78fe735 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -187,6 +187,7 @@ interface Tag { interface TaskCard { String UPDATE_TASK_CARD = "/cgi-bin/message/update_taskcard"; + String UPDATE_TEMPLATE_CARD = "/cgi-bin/message/update_template_card"; } interface Tp { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java index c8a3676149..06c895d256 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpMessageTest.java @@ -166,6 +166,12 @@ public void TestTemplateCardBuilder_text_notice() { .value("企业微信.apk") .media_id("文件的media_id") .build(); + HorizontalContent hContent4 = HorizontalContent.builder() + .type(3) + .keyname("员工信息") + .value("点击查看") + .userid("zhangsan") + .build(); TemplateCardJump jump1 = TemplateCardJump.builder() .type(1) @@ -178,7 +184,7 @@ public void TestTemplateCardBuilder_text_notice() { .appid("小程序的appid") .pagepath("/index.html") .build(); - QuoteArea quoteArea=QuoteArea.builder() + QuoteArea quoteArea = QuoteArea.builder() .type(1) .title("引用文献标题") .appid("小程序的appid") @@ -186,17 +192,31 @@ public void TestTemplateCardBuilder_text_notice() { .url("https://work.weixin.qq.com") .quoteText("引用文献样式的引用文案") .build(); + ActionMenuItem action1 = ActionMenuItem.builder() + .text("接受推送") + .key("A") + .build(); + ActionMenuItem action2 = ActionMenuItem.builder() + .text("不再推送") + .key("B") + .build(); WxCpMessage reply = WxCpMessage.TEMPLATECARD().toUser("OPENID") + .toParty("PartyID1 | PartyID2") + .toTag("TagID1 | TagID2") .agentId(1000002) .cardType(WxConsts.TemplateCardType.TEXT_NOTICE) + .taskId("task_id") .sourceIconUrl("图片的url") .sourceDesc("企业微信") + .sourceDescColor(1) + .actionMenuDesc("卡片副交互辅助文本说明") + .actionMenuActionList(Arrays.asList(action1, action2)) .mainTitleTitle("欢迎使用企业微信") .mainTitleDesc("您的好友正在邀请您加入企业微信") .emphasisContentTitle("100") .emphasisContentDesc("核心数据") .subTitleText("下载企业微信还能抢红包!") - .horizontalContents(Arrays.asList(hContent1,hContent2,hContent3)) + .horizontalContents(Arrays.asList(hContent1, hContent2, hContent3, hContent4)) .jumps(Arrays.asList(jump1,jump2)) .cardActionType(2) .cardActionAppid("小程序的appid") @@ -209,8 +229,7 @@ public void TestTemplateCardBuilder_text_notice() { reply.setDuplicateCheckInterval(1800); // System.out.println(reply.toJson()); assertThat(reply.toJson()) - .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"text_notice\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\"},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"emphasis_content\":{\"title\":\"100\",\"desc\":\"核心数据\"},\"sub_title_text\":\"下载企业微信还能抢红包!\",\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"}],\"jump_list\":[{\"type\":1,\"title\":\"企业微信官网\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"title\":\"跳转小程序\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"},\"quote_area\":{\"type\":1,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\",\"title\":\"引用文献标题\",\"quote_text\":\"引用文献样式的引用文案\"}}}"); - + .isEqualTo("{\"agentid\":1000002,\"touser\":\"OPENID\",\"msgtype\":\"template_card\",\"toparty\":\"PartyID1 | PartyID2\",\"totag\":\"TagID1 | TagID2\",\"duplicate_check_interval\":1800,\"template_card\":{\"card_type\":\"text_notice\",\"source\":{\"icon_url\":\"图片的url\",\"desc\":\"企业微信\",\"desc_color\":1},\"action_menu\":{\"desc\":\"卡片副交互辅助文本说明\",\"action_list\":[{\"text\":\"接受推送\",\"key\":\"A\"},{\"text\":\"不再推送\",\"key\":\"B\"}]},\"main_title\":{\"title\":\"欢迎使用企业微信\",\"desc\":\"您的好友正在邀请您加入企业微信\"},\"emphasis_content\":{\"title\":\"100\",\"desc\":\"核心数据\"},\"sub_title_text\":\"下载企业微信还能抢红包!\",\"task_id\":\"task_id\",\"horizontal_content_list\":[{\"keyname\":\"邀请人\",\"value\":\"张三\"},{\"type\":1,\"keyname\":\"企业微信官网\",\"value\":\"点击访问\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"keyname\":\"企业微信下载\",\"value\":\"企业微信.apk\",\"media_id\":\"文件的media_id\"},{\"type\":3,\"keyname\":\"员工信息\",\"value\":\"点击查看\",\"userid\":\"zhangsan\"}],\"jump_list\":[{\"type\":1,\"title\":\"企业微信官网\",\"url\":\"https://work.weixin.qq.com\"},{\"type\":2,\"title\":\"跳转小程序\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"}],\"card_action\":{\"type\":2,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\"},\"quote_area\":{\"type\":1,\"url\":\"https://work.weixin.qq.com\",\"appid\":\"小程序的appid\",\"pagepath\":\"/index.html\",\"title\":\"引用文献标题\",\"quote_text\":\"引用文献样式的引用文案\"}}}"); } /** @@ -404,13 +423,13 @@ public void TestTemplateCardBuilder_multiple_interaction() { .question_key("question_key1") .title("选择器标签1") .selected_id("selection_id1") - .options(Arrays.asList(option1,option2)) + .options(Arrays.asList(option1, option2)) .build(); MultipleSelect mSelect2 = MultipleSelect.builder() .question_key("question_key2") .title("选择器标签2") .selected_id("selection_id3") - .options(Arrays.asList(option3,option4)) + .options(Arrays.asList(option3, option4)) .build(); From fcb0bc8c35bf3dc5e511c28c610ae6dc738ce6ab Mon Sep 17 00:00:00 2001 From: zhongjun Date: Thu, 5 May 2022 11:45:08 +0800 Subject: [PATCH 221/622] =?UTF-8?q?:new:=20#2597=20=E3=80=90=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E5=A2=9E=E5=8A=A0=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E4=B8=9A=E5=8A=A1=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/open/api/WxOpenMaService.java | 57 +++++++++ .../open/api/impl/WxOpenMaServiceImpl.java | 24 ++++ .../open/bean/result/WxAmpLinkResult.java | 111 ++++++++++++++++++ 3 files changed, 192 insertions(+) create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java index f907ff9be6..16e9532e64 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java @@ -238,6 +238,19 @@ public interface WxOpenMaService extends WxMaService { */ String API_AUDIT_UPLOAD_MEDIA = "https://api.weixin.qq.com/wxa/uploadmedia"; + /** + * 小程序管理-获取公众号关联的小程序 + */ + String API_WX_AMP_LINK_GET = "https://api.weixin.qq.com/cgi-bin/wxopen/wxamplinkget"; + /** + * 小程序管理-关联小程序 + */ + String API_WX_AMP_LINK_CREATE = "https://api.weixin.qq.com/cgi-bin/wxopen/wxamplink"; + /** + * 小程序管理-解除已关联的小程序 + */ + String API_WX_AMP_LINK_UN = "https://api.weixin.qq.com/cgi-bin/wxopen/wxampunlink"; + /** * 获得小程序的域名配置信息 * @@ -645,4 +658,48 @@ WxOpenMaDomainResult modifyDomain(String action, List requestDomains, Li * @return */ WxMaAuditMediaUploadResult uploadMedia(File file) throws WxErrorException; + + /** + *
+   * 获取公众号关联的小程序
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://api.weixin.qq.com/cgi-bin/wxopen/wxamplinkget?access_token=TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html
+   * 
+   * @return 公众号关联的小程序
+   */
+  WxAmpLinkResult getWxAmpLink() throws WxErrorException;
+
+  /**
+   * 
+   * 关联小程序
+   * 关联流程(需要公众号和小程序管理员双方确认):
+   * 1、第三方平台调用接口发起关联
+   * 2、公众号管理员收到模板消息,同意关联小程序。
+   * 3、小程序管理员收到模板消息,同意关联公众号。
+   * 4、关联成功
+   * 等待管理员同意的中间状态可使用“获取公众号关联的小程序”接口进行查询。
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://api.weixin.qq.com/cgi-bin/wxopen/wxamplink?access_token=TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html
+   * 
+   * @param appid 小程序 appid
+   * @param notifyUsers 是否发送模板消息通知公众号粉丝
+   * @param showProfile 是否展示公众号主页中
+   * @return 响应结果
+   */
+  WxOpenResult wxAmpLink(String appid, String notifyUsers, String showProfile) throws WxErrorException;
+
+  /**
+   * 
+   * 解除已关联的小程序
+   * 请求方式:POST(HTTPS)
+   * 请求地址:https://api.weixin.qq.com/cgi-bin/wxopen/wxampunlink?access_token=TOKEN
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html
+   * 
+   * @param appid 小程序 appid
+   * @return 响应结果
+   */
+  WxOpenResult wxAmpUnLink(String appid) throws WxErrorException;
+
 }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java
index 7188a669c2..8933d2a124 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java
@@ -406,6 +406,30 @@ public WxMaAuditMediaUploadResult uploadMedia(File file) throws WxErrorException
     return (WxMaAuditMediaUploadResult) this.execute(AuditMediaUploadRequestExecutor.create(getRequestHttp()), API_AUDIT_UPLOAD_MEDIA, file);
   }
 
+  @Override
+  public WxAmpLinkResult getWxAmpLink() throws WxErrorException {
+    String response = post(API_WX_AMP_LINK_GET, "{}");
+    return WxMaGsonBuilder.create().fromJson(response, WxAmpLinkResult.class);
+  }
+
+  @Override
+  public WxOpenResult wxAmpLink(String appid, String notifyUsers, String showProfile) throws WxErrorException {
+    JsonObject params = new JsonObject();
+    params.addProperty("appid", appid);
+    params.addProperty("notify_users", notifyUsers);
+    params.addProperty("show_profile", showProfile);
+    String response = post(API_WX_AMP_LINK_CREATE, GSON.toJson(params));
+    return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class);
+  }
+
+  @Override
+  public WxOpenResult wxAmpUnLink(String appid) throws WxErrorException {
+    JsonObject params = new JsonObject();
+    params.addProperty("appid", appid);
+    String response = post(API_WX_AMP_LINK_UN, GSON.toJson(params));
+    return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class);
+  }
+
   private JsonArray toJsonArray(List strList) {
     JsonArray jsonArray = new JsonArray();
     if (strList != null && !strList.isEmpty()) {
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java
new file mode 100644
index 0000000000..51604ee648
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java
@@ -0,0 +1,111 @@
+package me.chanjar.weixin.open.bean.result;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.List;
+
+/**
+ * 公众号关联的小程序
+ *
+ * @author zhongjun
+ * @date 2022/4/29
+ **/
+
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxAmpLinkResult extends WxOpenResult{
+
+  /**
+   * 关联的小程序列表,具有 items 字段,内带有参数
+   */
+  @SerializedName("wxopens")
+  private WxOpen wxOpen;
+
+  @Getter
+  @Setter
+  public static class WxOpen{
+    @SerializedName("items")
+    private List items;
+  }
+
+  @Getter
+  @Setter
+  public static class Item{
+
+    /**
+     * 关联状态
+     * 1:已关联;
+     * 2:等待小程序管理员确认中;
+     * 3:小程序管理员拒绝关联
+     * 12:等待公众号管理员确认中;
+     */
+    private Integer status;
+
+    /**
+     * 小程序appid
+     */
+    private String appid;
+
+    /**
+     * 小程序 gh_id
+     */
+    private String username;
+
+    /**
+     * 小程序名称
+     */
+    private String nickname;
+
+    /**
+     * 是否在公众号管理页展示中
+     */
+    private Integer selected;
+
+    /**
+     * 是否展示在附近的小程序中
+     */
+    @SerializedName("nearby_display_status")
+    private Integer nearbyDisplayStatus;
+
+    /**
+     * 是否已经发布
+     */
+    private Integer released;
+
+    /**
+     * 头像 url
+     */
+    @SerializedName("headimg_url")
+    private String headImgUrl;
+
+    /**
+     * 小程序邮箱
+     */
+    private String email;
+
+    /**
+     * 微信认证及支付信息
+     */
+    @SerializedName("func_info")
+    private List funcInfo;
+
+  }
+
+  @Getter
+  @Setter
+  public static class FuncInfo{
+    /**
+     * 微信认证及支付信息,0 表示未开通,1 表示开通
+     */
+    private Integer status;
+
+    private String name;
+
+    private Long id;
+
+  }
+}

From d6301d3c2ee30f593c8a44e9232ccd98de1085d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=90=BD=E8=8A=B1=E9=9A=8F=E9=A3=8E?= <15327477@qq.com>
Date: Thu, 5 May 2022 03:47:01 +0000
Subject: [PATCH 222/622] =?UTF-8?q?:art:=E3=80=90=E5=B0=8F=E7=A8=8B?=
 =?UTF-8?q?=E5=BA=8F=E3=80=91=E7=89=A9=E6=B5=81=E5=8A=A9=E6=89=8B=E7=94=9F?=
 =?UTF-8?q?=E6=88=90=E8=BF=90=E5=8D=95=E6=8E=A5=E5=8F=A3=E7=9A=84=E8=AF=B7?=
 =?UTF-8?q?=E6=B1=82=E5=8F=82=E6=95=B0=E4=B8=AD=E5=95=86=E5=93=81=E4=BF=A1?=
 =?UTF-8?q?=E6=81=AF=E9=87=8C=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E8=AF=A6?=
 =?UTF-8?q?=E6=83=85=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../express/request/WxMaExpressOrderShop.java | 11 ++++
 .../request/WxMaExpressOrderShopDetail.java   | 51 +++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShopDetail.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShop.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShop.java
index 41c08f9e8e..029f0d44b7 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShop.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShop.java
@@ -6,6 +6,7 @@
 import lombok.NoArgsConstructor;
 
 import java.io.Serializable;
+import java.util.List;
 
 /**
  * 商品信息对象
@@ -55,4 +56,14 @@ public class WxMaExpressOrderShop implements Serializable {
   @SerializedName("goods_count")
   private Integer goodsCount;
 
+  /**
+   * 商品详情列表
+   * 
+   * 是否必填: 否
+   * 描述: 适配多商品场景,用以消息落地页展示。(新规范,新接入商家建议用此字段)
+   * 
+ */ + @SerializedName("detail_list") + private List detailList; + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShopDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShopDetail.java new file mode 100644 index 0000000000..638bca6ddc --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressOrderShopDetail.java @@ -0,0 +1,51 @@ +package cn.binarywang.wx.miniapp.bean.express.request; + + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + + +/** + * 商品详情 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WxMaExpressOrderShopDetail implements Serializable { + + private static final long serialVersionUID = 5988620921216969796L; + + /** + * 商品名称 + *
+   * 是否必填: 否
+   * 描述: 最多40汉字
+   * 
+ */ + @SerializedName("goods_name") + private String goodsName; + + /** + * 商品图片url + *
+   * 是否必填: 否
+   * 
+ */ + @SerializedName("goods_img_url") + private String goodsImgUrl; + + /** + * 商品详情描述 + *
+   * 是否必填: 否
+   * 描述: 最多40汉字
+   * 
+ */ + @SerializedName("goods_desc") + private String goodsDesc; + +} From 7e96d6ab0f00240b962c01403c9b08b04a978d13 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 10 May 2022 22:19:12 +0800 Subject: [PATCH 223/622] =?UTF-8?q?:new:=20#2637=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E5=BE=AE?= =?UTF-8?q?=E7=9B=98=E8=8E=B7=E5=8F=96=E7=A9=BA=E9=97=B4=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOaWeDriveService.java | 49 +++++++- .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 28 ++++- .../oa/wedrive/WxCpSpaceAclAddRequest.java | 66 +++++++++++ .../oa/wedrive/WxCpSpaceAclDelRequest.java | 63 +++++++++++ .../cp/bean/oa/wedrive/WxCpSpaceInfo.java | 105 ++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 3 + .../cp/api/WxCpOaWeDriveServiceTest.java | 62 ++++++++++- 7 files changed, 363 insertions(+), 13 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclAddRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclDelRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceInfo.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java index 228b6920ae..05b99bde82 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java @@ -3,9 +3,7 @@ import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceRenameRequest; +import me.chanjar.weixin.cp.bean.oa.wedrive.*; /** * 企业微信微盘相关接口. @@ -25,7 +23,6 @@ public interface WxCpOaWeDriveService { * * @param request 新建空间对应请求参数 * @return spaceid(空间id) - * * @throws WxErrorException */ WxCpSpaceCreateData spaceCreate(@NonNull WxCpSpaceCreateRequest request) throws WxErrorException; @@ -33,7 +30,7 @@ public interface WxCpOaWeDriveService { /** * 重命名空间 * 该接口用于重命名已有空间,接收userid参数,以空间管理员身份来重命名。 - * + *

* 请求方式:POST(HTTPS) * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_rename?access_token=ACCESS_TOKEN * @@ -46,7 +43,7 @@ public interface WxCpOaWeDriveService { /** * 解散空间 * 该接口用于解散已有空间,需要以空间管理员身份来解散。 - * + *

* 请求方式:POST(HTTPS) * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_dismiss?access_token=ACCESS_TOKEN * @@ -57,4 +54,44 @@ public interface WxCpOaWeDriveService { */ WxCpBaseResp spaceDismiss(@NonNull String userId, @NonNull String spaceId) throws WxErrorException; + /** + * 获取空间信息 + * 该接口用于获取空间成员列表、信息、权限等信息。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_info?access_token=ACCESS_TOKEN + * + * @param userId + * @param spaceId + * @return + * @throws WxErrorException + */ + WxCpSpaceInfo spaceInfo(@NonNull String userId, @NonNull String spaceId) throws WxErrorException; + + /** + * 添加成员/部门 + * 该接口用于对指定空间添加成员/部门,可一次性添加多个。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_add?access_token=ACCESS_TOKEN + * + * @param request 添加成员/部门请求参数 + * @return + * @throws WxErrorException + */ + WxCpBaseResp spaceAclAdd(@NonNull WxCpSpaceAclAddRequest request) throws WxErrorException; + + /** + * 移除成员/部门 + * 该接口用于对指定空间移除成员/部门,操作者需要有移除权限。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_del?access_token=ACCESS_TOKEN + * + * @param request 移除成员/部门请求参数 + * @return + * @throws WxErrorException + */ + WxCpBaseResp spaceAclDel(@NonNull WxCpSpaceAclDelRequest request) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index eace47a91e..cc5d53111e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -8,9 +8,7 @@ import me.chanjar.weixin.cp.api.WxCpOaWeDriveService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceRenameRequest; +import me.chanjar.weixin.cp.bean.oa.wedrive.*; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.*; @@ -49,4 +47,28 @@ public WxCpBaseResp spaceDismiss(@NonNull String userId, @NonNull String spaceId return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpSpaceInfo spaceInfo(@NonNull String userId, @NonNull String spaceId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_INFO); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("spaceid", spaceId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpSpaceInfo.fromJson(responseContent); + } + + @Override + public WxCpBaseResp spaceAclAdd(@NonNull WxCpSpaceAclAddRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_ACL_ADD); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp spaceAclDel(@NonNull WxCpSpaceAclDelRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_ACL_DEL); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclAddRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclAddRequest.java new file mode 100644 index 0000000000..94d65b43f8 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclAddRequest.java @@ -0,0 +1,66 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 添加成员/部门请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpSpaceAclAddRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("auth_info") + private List authInfo; + + @Getter + @Setter + public static class AuthInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("type") + private Integer type; + + @SerializedName("departmentid") + private Integer departmentId; + + @SerializedName("auth") + private Integer auth; + + @SerializedName("userid") + private String userId; + + public static AuthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpSpaceAclAddRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceAclAddRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclDelRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclDelRequest.java new file mode 100644 index 0000000000..272d9a57b8 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceAclDelRequest.java @@ -0,0 +1,63 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 移除成员/部门请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpSpaceAclDelRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("auth_info") + private List authInfo; + + @Getter + @Setter + public static class AuthInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("type") + private Integer type; + + @SerializedName("departmentid") + private Integer departmentId; + + @SerializedName("userid") + private String userId; + + public static AuthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpSpaceAclDelRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceAclDelRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceInfo.java new file mode 100644 index 0000000000..821b7ef5e6 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceInfo.java @@ -0,0 +1,105 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取空间信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpSpaceInfo extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("space_info") + private SpaceInfo spaceInfo; + + @Getter + @Setter + public static class SpaceInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("space_name") + private String spaceName; + + @SerializedName("auth_list") + private AuthList authList; + + public static SpaceInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, SpaceInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class AuthList implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("auth_info") + private List authInfo; + + @SerializedName("quit_userid") + private List quitUserId; + + public static AuthList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class AuthInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("type") + private Integer type; + + @SerializedName("departmentid") + private Integer departmentId; + + @SerializedName("auth") + private Integer auth; + + @SerializedName("userid") + private String userId; + + public static AuthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpSpaceInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index dbf78fe735..beabef410e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -148,6 +148,9 @@ interface Oa { String SPACE_CREATE = "/cgi-bin/wedrive/space_create"; String SPACE_RENAME = "/cgi-bin/wedrive/space_rename"; String SPACE_DISMISS = "/cgi-bin/wedrive/space_dismiss"; + String SPACE_INFO = "/cgi-bin/wedrive/space_info"; + String SPACE_ACL_ADD = "/cgi-bin/wedrive/space_acl_add"; + String SPACE_ACL_DEL = "/cgi-bin/wedrive/space_acl_del"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index f212ce02bb..93b69e167c 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -1,17 +1,16 @@ package me.chanjar.weixin.cp.api; - import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateData; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceCreateRequest; -import me.chanjar.weixin.cp.bean.oa.wedrive.WxCpSpaceRenameRequest; +import me.chanjar.weixin.cp.bean.oa.wedrive.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; /** * 微盘测试类. @@ -39,6 +38,61 @@ public void test() throws WxErrorException { WxCpSpaceCreateRequest wxCpSpaceCreateRequest = WxCpSpaceCreateRequest.fromJson(createSpace); log.info(wxCpSpaceCreateRequest.toJson()); + String uId = "WangKai"; + String spId = "s.ww45d3e188865aca30.652091685u4h"; + + + /** + * 获取空间信息 + */ + WxCpSpaceInfo data = cpService.getOaWeDriveService().spaceInfo(uId, spId); + log.info("获取空间信息为:{}", data.toJson()); + + /** + * 移除成员/部门 + */ + WxCpSpaceAclDelRequest spaceAclDelRequest = new WxCpSpaceAclDelRequest(); + spaceAclDelRequest.setUserId(uId); + spaceAclDelRequest.setSpaceId(spId); + + // 被移除的空间成员信息 + WxCpSpaceAclDelRequest.AuthInfo delAuthInfo = new WxCpSpaceAclDelRequest.AuthInfo(); + delAuthInfo.setType(1); + delAuthInfo.setUserId("MiaoMiu99"); + + List delAuthInfoList = new ArrayList<>(); + delAuthInfoList.add(delAuthInfo); + + spaceAclDelRequest.setAuthInfo(delAuthInfoList); + WxCpBaseResp spaceAclDel = cpService.getOaWeDriveService().spaceAclDel(spaceAclDelRequest); + log.info("移除成员/部门,返回数据为:{}", spaceAclDel.toJson()); + + /** + * 添加成员/部门 + * https://developer.work.weixin.qq.com/document/path/93656 + */ + WxCpSpaceAclAddRequest spaceAclAddRequest = new WxCpSpaceAclAddRequest(); + spaceAclAddRequest.setUserId(uId); + spaceAclAddRequest.setSpaceId(spId); + + List authInfoList = new ArrayList<>(); + // 被添加的空间成员信息 + WxCpSpaceAclAddRequest.AuthInfo authInfo = new WxCpSpaceAclAddRequest.AuthInfo(); + authInfo.setAuth(2); + authInfo.setType(1); + authInfo.setUserId("MiaoMiu99"); + + authInfoList.add(authInfo); + spaceAclAddRequest.setAuthInfo(authInfoList); + + WxCpBaseResp wxCpBaseResp = cpService.getOaWeDriveService().spaceAclAdd(spaceAclAddRequest); + log.info("添加成员/部门,返回数据为:{}", wxCpBaseResp.toJson()); + + /** + * 获取空间信息 + */ + WxCpSpaceInfo spaceInfo = cpService.getOaWeDriveService().spaceInfo("WangKai", "s.ww45d3e188865aca30.652091685u4h"); + log.info("获取空间信息,spaceInfo信息为:{}", spaceInfo.toJson()); /** * 新建空间 From 858a3b9c82d57be804e8a1c3fc2070892e22f9ee Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 11 May 2022 10:09:44 +0800 Subject: [PATCH 224/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index 0edf9965a6..ff55df804e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -774,11 +774,10 @@ public static class Detail implements Serializable { /** * 节点分支审批人审批意见附件,赋值为media_id具体使用请参考:文档-获取临时素材 - * TODO 居然可以返回多个,坑爹的,暂时屏蔽注解以免报错,有兴趣挑战的,尽管把代码砸过来吧! - * 请先通过allFieldsMap解析需要的参数! */ - // @XStreamAlias("Attach") - private String attach; + @XStreamAlias("Attach") + @XStreamImplicit + private List attach; } /** From 6177ca05b8496b4c2cf58f9f4972cb4ad8bc3517 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Thu, 12 May 2022 09:57:28 +0800 Subject: [PATCH 225/622] =?UTF-8?q?:new:=20#2639=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E7=9B=98=E7=A9=BA=E9=97=B4=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOaWeDriveService.java | 27 ++++++++++ .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 17 ++++++ .../oa/wedrive/WxCpSpaceSettingRequest.java | 53 +++++++++++++++++++ .../cp/bean/oa/wedrive/WxCpSpaceShare.java | 30 +++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 2 + .../cp/api/WxCpOaWeDriveServiceTest.java | 20 +++++++ 6 files changed, 149 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceSettingRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceShare.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java index 05b99bde82..8f6c51ad9e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java @@ -94,4 +94,31 @@ public interface WxCpOaWeDriveService { */ WxCpBaseResp spaceAclDel(@NonNull WxCpSpaceAclDelRequest request) throws WxErrorException; + /** + * 权限管理 + * 该接口用于修改空间权限,需要传入userid,修改权限范围继承传入用户的权限范围。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_setting?access_token=ACCESS_TOKEN + * + * @param request 权限管理请求参数 + * @return + * @throws WxErrorException + */ + WxCpBaseResp spaceSetting(@NonNull WxCpSpaceSettingRequest request) throws WxErrorException; + + /** + * 获取邀请链接 + * 该接口用于获取空间邀请分享链接。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_share?access_token=ACCESS_TOKEN + * + * @param userId + * @param spaceId + * @return + * @throws WxErrorException + */ + WxCpSpaceShare spaceShare(@NonNull String userId, @NonNull String spaceId) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index cc5d53111e..4ed2da2c99 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -71,4 +71,21 @@ public WxCpBaseResp spaceAclDel(@NonNull WxCpSpaceAclDelRequest request) throws return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpBaseResp spaceSetting(@NonNull WxCpSpaceSettingRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_SETTING); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpSpaceShare spaceShare(@NonNull String userId, @NonNull String spaceId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SPACE_SHARE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("spaceid", spaceId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpSpaceShare.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceSettingRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceSettingRequest.java new file mode 100644 index 0000000000..9239fb73f2 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceSettingRequest.java @@ -0,0 +1,53 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 权限管理请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpSpaceSettingRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("enable_watermark") + private Boolean enableWatermark; + + @SerializedName("add_member_only_admin") + private Boolean addMemberOnlyAdmin; + + @SerializedName("enable_share_url") + private Boolean enableShareUrl; + + @SerializedName("share_url_no_approve") + private Boolean shareUrlNoApprove; + + @SerializedName("share_url_no_approve_default_auth") + private Integer shareUrlNoApproveDefaultAuth; + + public static WxCpSpaceSettingRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceSettingRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceShare.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceShare.java new file mode 100644 index 0000000000..929073912d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpSpaceShare.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 获取邀请链接. + * + * @author Wang_Wong + */ +@Data +public class WxCpSpaceShare extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("space_share_url") + private String spaceShareUrl; + + public static WxCpSpaceShare fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSpaceShare.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index beabef410e..096d9d6c1f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -151,6 +151,8 @@ interface Oa { String SPACE_INFO = "/cgi-bin/wedrive/space_info"; String SPACE_ACL_ADD = "/cgi-bin/wedrive/space_acl_add"; String SPACE_ACL_DEL = "/cgi-bin/wedrive/space_acl_del"; + String SPACE_SETTING = "/cgi-bin/wedrive/space_setting"; + String SPACE_SHARE = "/cgi-bin/wedrive/space_share"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index 93b69e167c..5a7f934042 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -41,6 +41,26 @@ public void test() throws WxErrorException { String uId = "WangKai"; String spId = "s.ww45d3e188865aca30.652091685u4h"; + /** + * 权限管理 + */ + WxCpSpaceSettingRequest spaceSettingRequest = new WxCpSpaceSettingRequest(); + spaceSettingRequest.setUserId(uId); + spaceSettingRequest.setSpaceId(spId); +// spaceSettingRequest.setEnableWatermark(false); + spaceSettingRequest.setAddMemberOnlyAdmin(true); + spaceSettingRequest.setEnableShareUrl(false); + spaceSettingRequest.setShareUrlNoApprove(true); + spaceSettingRequest.setShareUrlNoApproveDefaultAuth(2); + + WxCpBaseResp spaceSetting = cpService.getOaWeDriveService().spaceSetting(spaceSettingRequest); + log.info("权限管理信息为:{}", spaceSetting.toJson()); + + /** + * 获取邀请链接 + */ + WxCpSpaceShare spaceShare = cpService.getOaWeDriveService().spaceShare(uId, spId); + log.info("获取邀请链接信息为:{}", spaceShare.toJson()); /** * 获取空间信息 From 458e7c3d245138accecba1da0f3b62e0c5a4064e Mon Sep 17 00:00:00 2001 From: Jc826 Date: Fri, 13 May 2022 16:29:56 +0800 Subject: [PATCH 226/622] =?UTF-8?q?:new:=20#2642=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=BE=A4=E5=8A=A0=E5=85=A5=E7=BE=A4=E8=81=8A=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpExternalContactService.java | 46 +++++++++- .../impl/WxCpExternalContactServiceImpl.java | 38 ++++++++ .../bean/external/WxCpGroupJoinWayInfo.java | 92 +++++++++++++++++++ .../bean/external/WxCpGroupJoinWayResult.java | 23 +++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 5 + .../WxCpExternalContactServiceImplTest.java | 54 ++++++++++- 6 files changed, 253 insertions(+), 5 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index f75f72a76a..0335725c78 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -56,7 +56,6 @@ public interface WxCpExternalContactService { * @throws WxErrorException the wx error exception */ WxCpContactWayInfo getContactWay(@NonNull String configId) throws WxErrorException; - /** * 更新企业已配置的「联系我」方式 * @@ -171,6 +170,50 @@ public interface WxCpExternalContactService { */ String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException; + /** + * + * 配置客户群进群方式 + * 企业可以在管理后台-客户联系中配置「加入群聊」的二维码或者小程序按钮,客户通过扫描二维码或点击小程序上的按钮,即可加入特定的客户群。 + * 企业可通过此接口为具有客户联系功能的成员生成专属的二维码或者小程序按钮。 + * 如果配置的是小程序按钮,需要开发者的小程序接入小程序插件。 + * 注意: + * 通过API添加的配置不会在管理端进行展示,每个企业可通过API最多配置50万个「加入群聊」(与「联系我」共用50万的额度)。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 + * @param wxCpGroupJoinWayInfo + * @return {@link WxCpGroupJoinWayResult} + * @throws WxErrorException + */ + WxCpGroupJoinWayResult addJoinWay(@NonNull WxCpGroupJoinWayInfo wxCpGroupJoinWayInfo) throws WxErrorException; + + /** + *更新客户群进群方式配置 + * 更新进群方式配置信息。注意:使用覆盖的方式更新。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 + * @param wxCpGroupJoinWayInfo + * @return + * @throws WxErrorException + */ + WxCpBaseResp updateJoinWay(@NonNull WxCpGroupJoinWayInfo wxCpGroupJoinWayInfo) throws WxErrorException; + + /** + * 获取客户群进群方式配置 + * 获取企业配置的群二维码或小程序按钮。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 + * @param configId + * @return + * @throws WxErrorException + */ + WxCpGroupJoinWayInfo getJoinWay(@NonNull String configId) throws WxErrorException; + + /** + * 删除客户群进群方式配置 + * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 + * @param configId + * @return + * @throws WxErrorException + */ + WxCpBaseResp delJoinWay( @NonNull String configId) throws WxErrorException; + /** * 代开发应用external_userid转换 *

@@ -1025,4 +1068,5 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * @param productId 商品id
    */
   void deleteProductAlbum(String productId) throws WxErrorException;
+
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
index bfd5608ed9..aa6cc03666 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java
@@ -882,5 +882,43 @@ public void deleteProductAlbum(String productId) throws WxErrorException {
     this.mainService.post(url, o.toString());
   }
 
+  @Override
+  public WxCpGroupJoinWayResult addJoinWay(@NonNull WxCpGroupJoinWayInfo wxCpGroupJoinWayInfo) throws WxErrorException {
+    if (wxCpGroupJoinWayInfo.getJoinWay().getChatIdList() != null && wxCpGroupJoinWayInfo.getJoinWay().getChatIdList().size() > 5) {
+      throw new WxRuntimeException("使用该配置的客户群ID列表,支持5个");
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(ADD_JOIN_WAY);
+    String responseContent = this.mainService.post(url, wxCpGroupJoinWayInfo.getJoinWay().toJson());
+
+    return WxCpGroupJoinWayResult.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpBaseResp updateJoinWay(@NonNull WxCpGroupJoinWayInfo wxCpGroupJoinWayInfo) throws WxErrorException {
+    if (wxCpGroupJoinWayInfo.getJoinWay().getChatIdList() != null && wxCpGroupJoinWayInfo.getJoinWay().getChatIdList().size() > 5) {
+      throw new WxRuntimeException("使用该配置的客户群ID列表,支持5个");
+    }
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_JOIN_WAY);
+    String responseContent = this.mainService.post(url, wxCpGroupJoinWayInfo.getJoinWay().toJson());
+    return WxCpBaseResp.fromJson(responseContent);
+  }
+
+  @Override
+  public WxCpGroupJoinWayInfo getJoinWay(String configId) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("config_id", configId);
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_JOIN_WAY);
+    String responseContent = this.mainService.post(url,json);
+
+    return WxCpGroupJoinWayInfo.fromJson(responseContent);
+  }
 
+  @Override
+  public WxCpBaseResp delJoinWay(@NonNull String configId) throws WxErrorException {
+    JsonObject json = new JsonObject();
+    json.addProperty("config_id", configId);
+    final String url = this.mainService.getWxCpConfigStorage().getApiUrl(DEL_JOIN_WAY);
+    String responseContent = this.mainService.post(url, json);
+    return WxCpBaseResp.fromJson(responseContent);
+  }
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java
new file mode 100644
index 0000000000..460e86b95d
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java
@@ -0,0 +1,92 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ *客户群「加入群聊」对象
+ * @author Jc
+ */
+@Data
+@NoArgsConstructor
+public class WxCpGroupJoinWayInfo  implements Serializable {
+  private static final long serialVersionUID = 5621905029624794129L;
+  @SerializedName("join_way")
+  private JoinWay joinWay;
+  @Getter
+  @Setter
+  public static  class JoinWay implements Serializable {
+    private static final long serialVersionUID = 5621905029624794122L;
+
+    /**
+     * 联系方式的配置id
+     */
+    @SerializedName("config_id")
+    private String configId;
+    /**
+     * 场景。
+     * 1 - 群的小程序插件
+     * 2 - 群的二维码插件
+     */
+    @SerializedName("scene")
+    private Integer scene;
+    /**
+     * 联系方式的备注信息,用于助记,超过30个字符将被截断
+     */
+    @SerializedName("remark")
+    private String remark;
+    /**
+     * 当群满了后,是否自动新建群。0-否;1-是。 默认为1
+     */
+    @SerializedName("auto_create_room")
+    private Integer autoCreateRoom;
+    /**
+     * 自动建群的群名前缀,当auto_create_room为1时有效。最长40个utf8字符
+     */
+    @SerializedName("room_base_name")
+    private String roomBaseName;
+    /**
+     * 自动建群的群起始序号,当auto_create_room为1时有效
+     */
+    @SerializedName("room_base_id")
+    private Integer roomBaseId;
+    /**
+     * 使用该配置的客户群ID列表,支持5个。
+     */
+    @SerializedName("chat_id_list")
+    private List chatIdList;
+    /**
+     * 联系二维码的URL,仅在配置为群二维码时返回
+     */
+    @SerializedName("qr_code")
+    private String qrCode;
+    /**
+     企业自定义的state参数,用于区分不同的入群渠道。不超过30个UTF-8字符
+     如果有设置此参数,在调用获取客户群详情接口时会返回每个群成员对应的该参数值
+     */
+    @SerializedName("state")
+    private Integer state;
+
+    public String toJson() {
+      return WxCpGsonBuilder.create().toJson(this);
+    }
+    public static WxCpGroupJoinWayInfo.JoinWay fromJson(String json) {
+      return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.JoinWay.class);
+    }
+  }
+
+  public static WxCpGroupJoinWayInfo fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.class);
+  }
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java
new file mode 100644
index 0000000000..f77b6089c8
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java
@@ -0,0 +1,23 @@
+package me.chanjar.weixin.cp.bean.external;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ *客户群「加入群聊」配置处理结果
+ * @author Jc
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxCpGroupJoinWayResult  extends WxCpBaseResp {
+  private static final long serialVersionUID = 5621905029624794129L;
+  @SerializedName("config_id")
+  private String configId;
+
+  public static WxCpGroupJoinWayResult fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayResult.class);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index 096d9d6c1f..57dd9d47ea 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -263,6 +263,7 @@ interface ExternalContact {
     String UPDATE_REMARK = "/cgi-bin/externalcontact/remark";
     String LIST_EXTERNAL_CONTACT = "/cgi-bin/externalcontact/list?userid=";
     String LIST_UNASSIGNED_CONTACT = "/cgi-bin/externalcontact/get_unassigned_list";
+
     @Deprecated
     String TRANSFER_UNASSIGNED_CONTACT = "/cgi-bin/externalcontact/transfer";
     String TRANSFER_CUSTOMER = "/cgi-bin/externalcontact/transfer_customer";
@@ -275,6 +276,10 @@ interface ExternalContact {
     String GROUP_CHAT_TRANSFER = "/cgi-bin/externalcontact/groupchat/transfer";
     String LIST_USER_BEHAVIOR_DATA = "/cgi-bin/externalcontact/get_user_behavior_data";
     String LIST_GROUP_CHAT_DATA = "/cgi-bin/externalcontact/groupchat/statistic";
+    String ADD_JOIN_WAY = "/cgi-bin/externalcontact/groupchat/add_join_way";
+    String GET_JOIN_WAY = "/cgi-bin/externalcontact/groupchat/get_join_way";
+    String UPDATE_JOIN_WAY = "/cgi-bin/externalcontact/groupchat/update_join_way";
+    String DEL_JOIN_WAY = "/cgi-bin/externalcontact/groupchat/del_join_way";
     String ADD_MSG_TEMPLATE = "/cgi-bin/externalcontact/add_msg_template";
     String SEND_WELCOME_MSG = "/cgi-bin/externalcontact/send_welcome_msg";
 
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java
index 3f7cc0b3b3..9aa64d662c 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImplTest.java
@@ -12,14 +12,13 @@
 import me.chanjar.weixin.cp.bean.external.msg.Attachment;
 import me.chanjar.weixin.cp.bean.external.msg.Image;
 import me.chanjar.weixin.cp.bean.external.msg.Video;
+import org.apache.commons.lang3.ArrayUtils;
 import org.apache.commons.lang3.time.DateFormatUtils;
 import org.testng.annotations.Guice;
 import org.testng.annotations.Test;
 
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Date;
-import java.util.List;
+import java.util.*;
+
 import org.testng.collections.CollectionUtils;
 
 import static org.testng.Assert.assertNotNull;
@@ -337,4 +336,51 @@ public void testGetMomentList() throws WxErrorException {
     assertNotNull(result);
   }
 
+  @Test
+  public void testAddJoinWay() throws WxErrorException {
+
+
+    WxCpGroupJoinWayInfo.JoinWay joinWay = new  WxCpGroupJoinWayInfo.JoinWay();
+    joinWay.setChatIdList(Arrays.asList("wrfpBaCwAAxR-iIqIUa5vvbpZQcAexJA"));
+    joinWay.setScene(2);
+    joinWay.setAutoCreateRoom(1);
+    joinWay.setRemark("CreateDate:" + DateFormatUtils.ISO_8601_EXTENDED_DATETIME_FORMAT.format(new Date()));
+
+    WxCpGroupJoinWayInfo info = new WxCpGroupJoinWayInfo();
+    info.setJoinWay(joinWay);
+    this.wxCpService.getExternalContactService().addJoinWay(info);
+  }
+
+  @Test
+  public void testUpdateJoinWay() throws WxErrorException {
+
+    final String configId = "";
+
+    WxCpGroupJoinWayInfo.JoinWay joinWay = new  WxCpGroupJoinWayInfo.JoinWay();
+    joinWay.setConfigId(configId);
+    joinWay.setChatIdList(Arrays.asList("wrfpBaCwAAxR-iIqIUa5vvbpZQcAexJA"));
+    joinWay.setScene(2);
+    joinWay.setAutoCreateRoom(1);
+    joinWay.setRemark("CreateDate:" + DateFormatUtils.ISO_8601_EXTENDED_DATETIME_FORMAT.format(new Date()));
+
+    WxCpGroupJoinWayInfo info = new WxCpGroupJoinWayInfo();
+    info.setJoinWay(joinWay);
+    this.wxCpService.getExternalContactService().updateJoinWay(info);
+  }
+
+  @Test
+  public void testDelJoinWay() throws WxErrorException {
+
+    final String configId = "";
+
+    this.wxCpService.getExternalContactService().delJoinWay(configId);
+  }
+
+  @Test
+  public void testGetJoinWay() throws WxErrorException {
+
+    final String configId = "";
+
+    this.wxCpService.getExternalContactService().getJoinWay(configId);
+  }
 }

From 66383836b8e4655c4d000d8d186f623772e98f1a Mon Sep 17 00:00:00 2001
From: 0katekate0 <32161300+0katekate0@users.noreply.github.com>
Date: Sun, 15 May 2022 19:37:32 +0800
Subject: [PATCH 227/622] =?UTF-8?q?:new:=20#2643=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?=
 =?UTF-8?q?=E7=9B=98=E8=8E=B7=E5=8F=96=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8?=
 =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/api/WxCpOaWeDriveService.java   |  26 ++++
 .../cp/api/impl/WxCpOaWeDriveServiceImpl.java |  14 +++
 .../cp/bean/oa/wedrive/WxCpFileList.java      | 114 ++++++++++++++++++
 .../bean/oa/wedrive/WxCpFileListRequest.java  |  50 ++++++++
 .../cp/bean/oa/wedrive/WxCpFileUpload.java    |  30 +++++
 .../oa/wedrive/WxCpFileUploadRequest.java     |  47 ++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |   2 +
 .../cp/api/WxCpOaWeDriveServiceTest.java      |  44 ++++++-
 8 files changed, 325 insertions(+), 2 deletions(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileList.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileListRequest.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUpload.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUploadRequest.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
index 8f6c51ad9e..dd27ddbf87 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
@@ -121,4 +121,30 @@ public interface WxCpOaWeDriveService {
    */
   WxCpSpaceShare spaceShare(@NonNull String userId, @NonNull String spaceId) throws WxErrorException;
 
+  /**
+   * 获取文件列表
+   * 该接口用于获取指定地址下的文件列表。
+   * 

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_list?access_token=ACCESS_TOKEN + * + * @param request 获取文件列表请求参数 + * @return + * @throws WxErrorException + */ + WxCpFileList fileList(@NonNull WxCpFileListRequest request) throws WxErrorException; + + /** + * 上传文件 + * 该接口用于向微盘中的指定位置上传文件。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_upload?access_token=ACCESS_TOKEN + * + * @param request 上传文件请求参数 + * @return + * @throws WxErrorException + */ + WxCpFileUpload fileUpload(@NonNull WxCpFileUploadRequest request) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index 4ed2da2c99..188ba2bb6e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -88,4 +88,18 @@ public WxCpSpaceShare spaceShare(@NonNull String userId, @NonNull String spaceId return WxCpSpaceShare.fromJson(responseContent); } + @Override + public WxCpFileList fileList(@NonNull WxCpFileListRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_LIST); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpFileList.fromJson(responseContent); + } + + @Override + public WxCpFileUpload fileUpload(@NonNull WxCpFileUploadRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_UPLOAD); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpFileUpload.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileList.java new file mode 100644 index 0000000000..b217afdb89 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileList.java @@ -0,0 +1,114 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取邀请链接. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileList extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("has_more") + private Boolean hasMore; + + @SerializedName("next_start") + private Integer nextStart; + + @SerializedName("file_list") + private FileList fileList; + + @Getter + @Setter + public static class FileList implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("item") + private List item; + + public static FileList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, FileList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class Item implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("file_name") + private String fileName; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("fatherid") + private String fatherId; + + @SerializedName("file_size") + private Long fileSize; + + @SerializedName("ctime") + private Long cTime; + + @SerializedName("mtime") + private Long mTime; + + @SerializedName("file_type") + private Integer fileType; + + @SerializedName("file_status") + private Integer fileStatus; + + @SerializedName("create_userid") + private String createUserId; + + @SerializedName("update_userid") + private String updateUserId; + + @SerializedName("sha") + private String sha; + + @SerializedName("url") + private String url; + + @SerializedName("md5") + private String md5; + + public static Item fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Item.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpFileList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileListRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileListRequest.java new file mode 100644 index 0000000000..361a2d4be2 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileListRequest.java @@ -0,0 +1,50 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 获取文件列表请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpFileListRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("fatherid") + private String fatherId; + + @SerializedName("sort_type") + private Integer sortType; + + @SerializedName("start") + private Integer start; + + @SerializedName("limit") + private Integer limit; + + public static WxCpFileListRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileListRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUpload.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUpload.java new file mode 100644 index 0000000000..96617dd34b --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUpload.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 上传文件返回信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileUpload extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("fileid") + private String fileId; + + public static WxCpFileUpload fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileUpload.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUploadRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUploadRequest.java new file mode 100644 index 0000000000..9d2aa7c3fa --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileUploadRequest.java @@ -0,0 +1,47 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 上传文件请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpFileUploadRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("fatherid") + private String fatherId; + + @SerializedName("file_name") + private String fileName; + + @SerializedName("file_base64_content") + private String fileBase64Content; + + public static WxCpFileUploadRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileUploadRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 57dd9d47ea..8eae00d57d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -153,6 +153,8 @@ interface Oa { String SPACE_ACL_DEL = "/cgi-bin/wedrive/space_acl_del"; String SPACE_SETTING = "/cgi-bin/wedrive/space_setting"; String SPACE_SHARE = "/cgi-bin/wedrive/space_share"; + String FILE_LIST = "/cgi-bin/wedrive/file_list"; + String FILE_UPLOAD = "/cgi-bin/wedrive/file_upload"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index 5a7f934042..e51ef106c9 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -1,13 +1,16 @@ package me.chanjar.weixin.cp.api; + import lombok.extern.slf4j.Slf4j; -import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.wedrive.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; +import sun.misc.BASE64Encoder; +import java.io.File; +import java.io.FileInputStream; import java.io.InputStream; import java.util.ArrayList; import java.util.List; @@ -25,7 +28,7 @@ public class WxCpOaWeDriveServiceTest { private static WxCpService cpService; @Test - public void test() throws WxErrorException { + public void test() throws Exception { InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); @@ -40,6 +43,43 @@ public void test() throws WxErrorException { String uId = "WangKai"; String spId = "s.ww45d3e188865aca30.652091685u4h"; + // 空间的文件id + String fileId = "s.ww45d3e188865aca30.652091685u4h_f.652344507ysDL"; + + /** + * 上传文件 + */ + WxCpFileUploadRequest fileUploadRequest = new WxCpFileUploadRequest(); + fileUploadRequest.setUserId(uId); + fileUploadRequest.setSpaceId(spId); + fileUploadRequest.setFatherId(spId); + fileUploadRequest.setFileName("第一个文件"); + + // 将文件转成base64字符串 + File file = new File("D:/info.log.2022-05-07.0.log"); + FileInputStream inputFile = new FileInputStream(file); + byte[] buffer = new byte[(int)file.length()]; + inputFile.read(buffer); + inputFile.close(); + String encodeBase64Content = new BASE64Encoder().encode(buffer); + fileUploadRequest.setFileBase64Content(encodeBase64Content); + + WxCpFileUpload fileUpload = cpService.getOaWeDriveService().fileUpload(fileUploadRequest); + log.info("上传文件为:{}", fileUpload.toJson()); + + /** + * 获取文件列表 + */ + WxCpFileListRequest fileListRequest = new WxCpFileListRequest(); + fileListRequest.setUserId(uId); + fileListRequest.setSpaceId(spId); + fileListRequest.setFatherId(spId); + fileListRequest.setSortType(1); + fileListRequest.setStart(0); + fileListRequest.setLimit(100); + + WxCpFileList fileList = cpService.getOaWeDriveService().fileList(fileListRequest); + log.info("获取文件列表为:{}", fileList.toJson()); /** * 权限管理 From cfb532722aff03fd2557255391411c48b235f1eb Mon Sep 17 00:00:00 2001 From: zhongjun Date: Sun, 15 May 2022 20:32:35 +0800 Subject: [PATCH 228/622] =?UTF-8?q?:new:=20#2644=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=96=B0=E5=A2=9E=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E9=93=B6=E8=A1=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/bean/bank/BankAccountResult.java | 30 +++++++++ .../binarywang/wxpay/bean/bank/BankInfo.java | 41 ++++++++++++ .../wxpay/bean/bank/BankingResult.java | 64 ++++++++++++++++++ .../binarywang/wxpay/service/BankService.java | 67 +++++++++++++++++++ .../wxpay/service/WxPayService.java | 18 +++++ .../wxpay/service/impl/BankServiceImpl.java | 46 +++++++++++++ .../service/impl/BaseWxPayServiceImpl.java | 5 ++ .../impl/WxPayServiceApacheHttpImpl.java | 12 +++- .../impl/WxPayServiceJoddHttpImpl.java | 5 ++ 9 files changed, 287 insertions(+), 1 deletion(-) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankAccountResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankingResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankAccountResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankAccountResult.java new file mode 100644 index 0000000000..5f67a2badf --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankAccountResult.java @@ -0,0 +1,30 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.List; + +/** + * 对私银行卡号开户银行信息 + * + * @author zhongjun + **/ +@Data +public class BankAccountResult implements Serializable { + + private static final long serialVersionUID = -8226859146533243501L; + + /** + * 根据卡号查询到的银行列表数据的总条数,未查询到对应银行列表时默认返回0,最大不超过两百条。 + */ + @SerializedName("total_count") + private Integer totalCount; + + @SerializedName("data") + private List data; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java new file mode 100644 index 0000000000..005963b875 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java @@ -0,0 +1,41 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +/** + * 银行信息 + * + * @author zhongjun + * @date 2022/5/12 + **/ +@Data +public class BankInfo { + /** + * 银行别名 + */ + @SerializedName("bank_alias") + private String bankAlias; + /** + * 银行别名编码 + */ + @SerializedName("bank_alias_code") + private String bankAliasCode; + /** + * 开户银行 + */ + @SerializedName("account_bank") + private String accountBank; + /** + * 开户银行编码 + */ + @SerializedName("account_bank_code") + private Integer accountBankCode; + /** + * 是否需要填写支行 + */ + @SerializedName("need_bank_branch") + private Boolean needBankBranch; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankingResult.java new file mode 100644 index 0000000000..407ad5fc55 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankingResult.java @@ -0,0 +1,64 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.List; + +/** + * 个人业务的银行列表 + * + * @author zhongjun + **/ +@Data +public class BankingResult implements Serializable { + private static final long serialVersionUID = -8372812998971715894L; + + /** + * 银行列表数据的总条数,调用方需要根据总条数分页查询 + */ + @SerializedName("total_count") + private Integer totalCount; + + /** + * 本次查询银行列表返回的数据条数 + */ + @SerializedName("count") + private Integer count; + + /** + * 该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0。 + */ + @SerializedName("offset") + private Integer offset; + + @SerializedName("data") + private List data; + + @SerializedName("links") + private Link links; + + @Getter + @Setter + public static class Link { + /** + * 下一页链接 + */ + @SerializedName("next") + private String next; + /** + * 上一页链接 + */ + @SerializedName("prev") + private String prev; + /** + * 当前链接 + */ + @SerializedName("self") + private String self; + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java new file mode 100644 index 0000000000..e08b9fb524 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java @@ -0,0 +1,67 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.bank.BankAccountResult; +import com.github.binarywang.wxpay.bean.bank.BankingResult; +import com.github.binarywang.wxpay.exception.WxPayException; + +/** + *

+ * 微信支付-银行组件
+ * 
+ * + * @author zhongjun + **/ +public interface BankService { + /** + *
+   *
+   * 获取对私银行卡号开户银行
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://api.mch.weixin.qq.com/v3/capital/capitallhh/banks/search-banks-by-bank-account
+   *
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter11_2_1.shtml
+   * 
+ * + * @param accountNumber 银行卡号 该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) + * @return BankAccountResult 对私银行卡号开户银行信息 + * @throws WxPayException . + */ + BankAccountResult searchBanksByBankAccount(String accountNumber) throws WxPayException; + + /** + *
+   *
+   * 查询支持个人业务的银行列表
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://api.mch.weixin.qq.com/v3/capital/capitallhh/banks/personal-banking
+   *
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter11_2_2.shtml
+   * 
+ * + * @param offset 本次查询偏移量 + * @param limit 本次请求最大查询条数,最大值为200 + * @return PersonalBankingResult 支持个人业务的银行列表信息 + * @throws WxPayException . + */ + BankingResult personalBanking(Integer offset, Integer limit) throws WxPayException; + + /** + *
+   *
+   * 支持对公业务的银行列表
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://api.mch.weixin.qq.com/v3/capital/capitallhh/banks/corporate-banking
+   *
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter11_2_3.shtml
+   * 
+ * + * @param offset 本次查询偏移量 + * @param limit 本次请求最大查询条数,最大值为200 + * @return BankingResult 支持对公业务的银行列表信息 + * @throws WxPayException . + */ + BankingResult corporateBanking(Integer offset, Integer limit) throws WxPayException; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 5afabbb3d3..74f353e838 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -164,6 +164,17 @@ public interface WxPayService { */ String getV3(String url) throws WxPayException; + /** + * 发送get请求,得到响应字符串. + *

+ * 部分字段会包含敏感信息,所以在提交前需要在请求头中会包含"Wechatpay-Serial"信息 + * + * @param url 请求地址 + * @return 返回请求结果字符串 string + * @throws WxPayException the wx pay exception + */ + String getV3WithWechatPaySerial(String url) throws WxPayException; + /** * 发送下载 V3请求,得到响应流. * @@ -1337,4 +1348,11 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * @return the complaints service */ ComplaintService getComplaintsService(); + + + /** + * 获取银行组件服务 + * @return 银行组件服务 + */ + BankService getBankService(); } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java new file mode 100644 index 0000000000..58739b5fd2 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java @@ -0,0 +1,46 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.bank.BankAccountResult; +import com.github.binarywang.wxpay.bean.bank.BankingResult; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.BankService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; + +/** + * 微信支付-银行组件 + * + * @author zhongjun + **/ +@RequiredArgsConstructor +public class BankServiceImpl implements BankService { + private final WxPayService payService; + private static final Gson GSON = new GsonBuilder().create(); + + @Override + public BankAccountResult searchBanksByBankAccount(String accountNumber) throws WxPayException { + String url = String.format("%s/v3/capital/capitallhh/banks/search-banks-by-bank-account?account_number=%s", this.payService.getPayBaseUrl(), accountNumber); + String response = payService.getV3WithWechatPaySerial(url); + return GSON.fromJson(response, BankAccountResult.class); + } + + @Override + public BankingResult personalBanking(Integer offset, Integer limit) throws WxPayException { + offset = offset == null ? 0 : offset; + limit = limit == null ? 200 : limit; + String url = String.format("%s/v3/capital/capitallhh/banks/personal-banking?offset=%s&limit=%s", this.payService.getPayBaseUrl(), offset, limit); + String response = payService.getV3(url); + return GSON.fromJson(response, BankingResult.class); + } + + @Override + public BankingResult corporateBanking(Integer offset, Integer limit) throws WxPayException { + offset = offset == null ? 0 : offset; + limit = limit == null ? 200 : limit; + String url = String.format("%s/v3/capital/capitallhh/banks/corporate-banking?offset=%s&limit=%s", this.payService.getPayBaseUrl(), offset, limit); + String response = payService.getV3(url); + return GSON.fromJson(response, BankingResult.class); + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index 128a7362dd..ecce6c62f6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -78,6 +78,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { private final PartnerTransferService partnerTransferService = new PartnerTransferServiceImpl(this); private final PayrollService payrollService = new PayrollServiceImpl(this); private final ComplaintService complaintsService = new ComplaintServiceImpl(this); + private final BankService bankService = new BankServiceImpl(this); protected Map configMap; @@ -1261,4 +1262,8 @@ public ComplaintService getComplaintsService() { return complaintsService; } + @Override + public BankService getBankService() { + return bankService; + } } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java index e70813fc37..47f78c88e9 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java @@ -241,7 +241,17 @@ public String getV3(String url) throws WxPayException { HttpGet httpGet = new HttpGet(url); httpGet.addHeader("Accept", "application/json"); httpGet.addHeader("Content-Type", "application/json"); - return this.requestV3(url.toString(), httpGet); + return this.requestV3(url, httpGet); + } + + @Override + public String getV3WithWechatPaySerial(String url) throws WxPayException { + HttpGet httpGet = new HttpGet(url); + httpGet.addHeader("Accept", "application/json"); + httpGet.addHeader("Content-Type", "application/json"); + String serialNumber = getConfig().getVerifier().getValidCertificate().getSerialNumber().toString(16).toUpperCase(); + httpGet.addHeader("Wechatpay-Serial", serialNumber); + return this.requestV3(url, httpGet); } @Override diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java index 29521d493a..5e6d23eac9 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java @@ -91,6 +91,11 @@ public String getV3(String url) throws WxPayException { return null; } + @Override + public String getV3WithWechatPaySerial(String url) throws WxPayException { + return null; + } + @Override public InputStream downloadV3(String url) throws WxPayException { return null; From dfec57f200c8f0e23201fa26e3f68b962fe40e33 Mon Sep 17 00:00:00 2001 From: leif Yi Date: Sun, 15 May 2022 20:34:49 +0800 Subject: [PATCH 229/622] =?UTF-8?q?:new:=20#2646=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0=E6=8A=A5?= =?UTF-8?q?=E5=85=B3v3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/customs/DeclarationQueryRequest.java | 125 +++++++ .../bean/customs/DeclarationQueryResult.java | 337 ++++++++++++++++++ .../bean/customs/DeclarationRequest.java | 191 ++++++++++ .../wxpay/bean/customs/DeclarationResult.java | 158 ++++++++ .../wxpay/bean/customs/RedeclareRequest.java | 136 +++++++ .../wxpay/bean/customs/RedeclareResult.java | 156 ++++++++ .../customs/VerifyCertificateRequest.java | 156 ++++++++ .../bean/customs/VerifyCertificateResult.java | 93 +++++ .../service/CustomDeclarationService.java | 77 ++++ .../impl/CustomDeclarationServiceImpl.java | 110 ++++++ .../CustomDeclarationServiceImplTest.java | 74 ++++ 11 files changed, 1613 insertions(+) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImpl.java create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImplTest.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryRequest.java new file mode 100644 index 0000000000..beaa3f2604 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryRequest.java @@ -0,0 +1,125 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author xifenzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DeclarationQueryRequest implements Serializable { + + private static final long serialVersionUID = -251403491989628142L; + /** + *

+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:订单类型
+   * 变量名:order_type
+   * 是否必填:是
+   * 类型:string(16)
+   * 描述:
+   *  4种订单号类型,选择一种
+   *  out_trade_no   商户订单号
+   *  transaction_id  微信支付订单号
+   *  sub_order_no  商户子订单号
+   *  sub_order_id  微信子订单号
+   *  示例值:out_trade_no
+   * 
+ */ + @SerializedName(value = "order_type") + private String orderType; + + /** + *
+   * 字段名:订单号
+   * 变量名:order_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  根据订单号类型,传入不同的订单号码
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "order_no") + private String orderNo; + + /** + *
+   * 字段名:海关
+   * 变量名:customs
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  海关代码, 枚举值参见参数规定-海关列表(https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter2_3.shtml#menu11)
+   *  示例值:SHANGHAI_ZS
+   * 
+ */ + @SerializedName(value = "customs") + private String customs; + + /** + *
+   * 字段名:偏移量
+   * 变量名:offset
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  非0整数,该次请求资源的起始位置,从0开始计数。调用方选填,默认为0
+   *  示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private String offset; + + /** + *
+   * 字段名:请求最大记录条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  非0非负的整数,该次请求可返回的最大资源条数。调用方选填,默认值建议为20
+   *  示例值:20
+   * 
+ */ + @SerializedName(value = "limit") + private String limit; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryResult.java new file mode 100644 index 0000000000..e84370ca11 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationQueryResult.java @@ -0,0 +1,337 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * @author xifenzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DeclarationQueryResult implements Serializable { + + private static final long serialVersionUID = 7776809282150143165L; + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:微信支付返回的订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:核验机构
+   * 变量名:verify_department
+   * 是否必填:是
+   * 类型:string(16)
+   * 描述:
+   *  核验机构代码
+   *  UNIONPAY:银联
+   *  NETSUNION:网联
+   *  OTHERS:其他
+   *  示例值:UNIONPAY
+   * 
+ */ + @SerializedName(value = "verify_department") + private String verifyDepartment; + + /** + *
+   * 字段名:核验机构交易流水号
+   * 变量名:Verify_department_trade_id
+   * 是否必填:是
+   * 类型:string(64)
+   * 描述:
+   *  交易流水号,来自验核机构,如银联记录的交易流水号,供商户报备海关
+   *  示例值:2018112288340107038204310100000
+   * 
+ */ + @SerializedName(value = "verify_department_trade_id") + private String verifyDepartmentTradeId; + + /** + *
+   * 字段名:偏移量
+   * 变量名:offset
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  非0整数,该次请求资源的起始位置,从0开始计数。调用方选填,默认为0
+   *  示例值:0
+   * 
+ */ + @SerializedName(value = "offset") + private Integer offset; + + /** + *
+   * 字段名:请求最大记录条数
+   * 变量名:limit
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  非0非负的整数,该次请求可返回的最大资源条数。调用方选填,默认值建议为20
+   *  示例值:20
+   * 
+ */ + @SerializedName(value = "limit") + private Integer limit; + + /** + *
+   * 字段名:查询结果总条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  查询结果总条数
+   *  示例值:1
+   * 
+ */ + @SerializedName(value = "total_count") + private Integer totalCount; + + /** + *
+   * 字段名:报关数据包
+   * 变量名:data
+   * 是否必填:是
+   * 类型:array
+   * 描述:
+   *  报关单结果数组,具体内容参见下方描述
+   *  示例值:
+   * 
+ */ + @SerializedName(value = "data") + private List data; + + /** + * 驳回原因详情 + */ + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class DeclarationData { + /** + *
+     * 字段名:商户子订单号
+     * 变量名:sub_order_no
+     * 是否必填:否
+     * 类型:string(32)
+     * 描述:
+     *  微信子订单号,如有拆单则返回
+     *  示例值:20150806125346
+     * 
+ */ + @SerializedName(value = "sub_order_no") + private String subOrderNo; + + /** + *
+     * 字段名:微信子订单号
+     * 变量名:sub_order_id
+     * 是否必填:否
+     * 类型:string(32)
+     * 描述:
+     *  商户子订单号,如有拆单则必传
+     *  注意:仅适用于机构模式
+     *  示例值:20150806125346
+     * 
+ */ + @SerializedName(value = "sub_order_id") + private String subOrderId; + + /** + *
+     * 字段名:商户海关备案号
+     * 变量名:merchant_customs_no
+     * 是否必填:是
+     * 类型:string(32)
+     * 描述:
+     *  商户在海关登记的备案号
+     *  示例值:123456
+     * 
+ */ + @SerializedName(value = "mch_customs_no") + private String merchantCustomsNo; + + /** + *
+     * 字段名:海关
+     * 变量名:customs
+     * 是否必填:是
+     * 类型:string(32)
+     * 描述:
+     *  海关代码, 枚举值参见参数规定-海关列表(https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter2_3.shtml#menu11)
+     *  示例值:SHANGHAI_ZS
+     * 
+ */ + @SerializedName(value = "customs") + private String customs; + + /** + *
+     * 字段名:关税
+     * 变量名:duty
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  关税,以分为单位,非必填项,不会提交给海关
+     *  示例值:888
+     * 
+ */ + @SerializedName(value = "duty") + private Integer duty; + + /** + *
+     * 字段名:货币类型
+     * 变量名:fee_type
+     * 是否必填:否
+     * 类型:string(32)
+     * 描述:
+     *  微信支付订单支付时使用的币种,暂只支持人民币CNY,如有拆单则必传
+     *  示例值:CNY
+     * 
+ */ + @SerializedName(value = "fee_type") + private String feeType; + + /** + *
+     * 字段名:子订单金额
+     * 变量名:order_fee
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  子订单金额,以分为单位,不能超过原订单金额,order_fee=transport_fee+product_fee(应付金额=物流费+商品价格),如有拆单则必传
+     *  示例值:888
+     * 
+ */ + @SerializedName(value = "order_fee") + private Integer orderFee; + + /** + *
+     * 字段名:物流费用
+     * 变量名:transport_fee
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  物流费用,以分为单位,如有拆单则必传
+     *  示例值:888
+     * 
+ */ + @SerializedName(value = "transport_fee") + private Integer transportFee; + + /** + *
+     * 字段名:商品费用
+     * 变量名:product_fee
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  商品费用,以分为单位,如有拆单则必传
+     *  示例值:888
+     * 
+ */ + @SerializedName(value = "product_fee") + private Integer productFee; + + /** + *
+     * 字段名:报关状态
+     * 变量名:state
+     * 是否必填:是
+     * 类型:string(32)
+     * 描述:
+     *  申报结果状态码
+     *  PROCESSING:申报中
+     *  UNDECLARED:未申报
+     *  SUBMITTED:已修改未申报
+     *  SUCCESS:申报成功
+     *  FAIL:申报失败
+     *  EXCEPT:海关接口异常
+     *  示例值:PROCESSING
+     * 
+ */ + @SerializedName(value = "state") + private String state; + + /** + *
+     * 字段名:报关结果说明
+     * 变量名:explanation
+     * 是否必填:是
+     * 类型:string(128)
+     * 描述:
+     *  申报结果说明,如果状态是失败或异常,显示失败原因
+     *  示例值:支付单已存在并且为非退单状态
+     * 
+ */ + @SerializedName(value = "explanation") + private String explanation; + + /** + *
+     * 字段名:最后更新时间
+     * 变量名:modify_time
+     * 是否必填:是
+     * 类型:string(32)
+     * 描述:
+     *  最后更新时间,该时间取自微信服务器
+     *  示例值:2015-09-01T10:00:00+08:00
+     * 
+ */ + @SerializedName(value = "modify_time") + private String modifyTime; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java new file mode 100644 index 0000000000..89b1b79654 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java @@ -0,0 +1,191 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author xifenzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DeclarationRequest implements Serializable { + + private static final long serialVersionUID = -170115210896346836L; + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:商户订单号
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "out_trade_no") + private String outTradeNo; + + /** + *
+   * 字段名:微信支付返回的订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:海关
+   * 变量名:customs
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  海关代码, 枚举值参见参数规定-海关列表(https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter2_3.shtml#menu11)
+   *  示例值:SHANGHAI_ZS
+   * 
+ */ + @SerializedName(value = "customs") + private String customs; + + /** + *
+   * 字段名:商户海关备案号
+   * 变量名:merchant_customs_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户在海关登记的备案号
+   *  示例值:123456
+   * 
+ */ + @SerializedName(value = "merchant_customs_no") + private String merchantCustomsNo; + + /** + *
+   * 字段名:关税
+   * 变量名:duty
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  关税,以分为单位,非必填项,不会提交给海关
+   *  示例值:888
+   * 
+ */ + @SerializedName(value = "duty") + private String duty; + + /** + *
+   * 字段名:商户子订单号
+   * 变量名:sub_order_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_no") + private String subOrderNo; + + /** + *
+   * 字段名:货币类型
+   * 变量名:fee_type
+   * 是否必填:否
+   * 类型:string(32)
+   * 描述:
+   *  微信支付订单支付时使用的币种,暂只支持人民币CNY,如有拆单则必传
+   *  示例值:CNY
+   * 
+ */ + @SerializedName(value = "fee_type") + private String feeType; + + /** + *
+   * 字段名:子订单金额
+   * 变量名:order_fee
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  子订单金额,以分为单位,不能超过原订单金额,order_fee=transport_fee+product_fee(应付金额=物流费+商品价格),如有拆单则必传
+   *  示例值:888
+   * 
+ */ + @SerializedName(value = "order_fee") + private String orderFee; + + /** + *
+   * 字段名:物流费用
+   * 变量名:transport_fee
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  物流费用,以分为单位,如有拆单则必传
+   *  示例值:888
+   * 
+ */ + @SerializedName(value = "transport_fee") + private String transportFee; + + /** + *
+   * 字段名:商品费用
+   * 变量名:product_fee
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  商品费用,以分为单位,如有拆单则必传
+   *  示例值:888
+   * 
+ */ + @SerializedName(value = "product_fee") + private String productFee; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationResult.java new file mode 100644 index 0000000000..06f604f742 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationResult.java @@ -0,0 +1,158 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author xifengzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DeclarationResult implements Serializable { + + private static final long serialVersionUID = -5895139329545995308L; + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:商户订单号
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "20150806125346") + private String outTradeNo; + + /** + *
+   * 字段名:微信支付返回的订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:报关状态
+   * 变量名:state
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  申报结果状态码
+   *  PROCESSING:申报中
+   *  UNDECLARED:未申报
+   *  SUBMITTED:已修改未申报
+   *  SUCCESS:申报成功
+   *  FAIL:申报失败
+   *  EXCEPT:海关接口异常
+   *  示例值:PROCESSING
+   * 
+ */ + @SerializedName(value = "state") + private String state; + + /** + *
+   * 字段名:商户子订单号
+   * 变量名:sub_order_no
+   * 是否必填:否
+   * 类型:string(32)
+   * 描述:
+   *  微信子订单号,如有拆单则返回
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_no") + private String subOrderNo; + + /** + *
+   * 字段名:微信子订单号
+   * 变量名:sub_order_id
+   * 是否必填:否
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_id") + private String subOrderId; + + /** + *
+   * 字段名:核验机构
+   * 变量名:verify_department
+   * 是否必填:是
+   * 类型:string(16)
+   * 描述:
+   *  核验机构代码
+   *  UNIONPAY:银联
+   *  NETSUNION:网联
+   *  OTHERS:其他
+   *  示例值:UNIONPAY
+   * 
+ */ + @SerializedName(value = "verify_department") + private String verifyDepartment; + + /** + *
+   * 字段名:核验机构交易流水号
+   * 变量名:Verify_department_trade_id
+   * 是否必填:是
+   * 类型:string(64)
+   * 描述:
+   *  交易流水号,来自验核机构,如银联记录的交易流水号,供商户报备海关
+   *  示例值:2018112288340107038204310100000
+   * 
+ */ + @SerializedName(value = "verify_department_trade_id") + private String verifyDepartmentTradeId; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareRequest.java new file mode 100644 index 0000000000..d3645d13da --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareRequest.java @@ -0,0 +1,136 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author xifengzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class RedeclareRequest implements Serializable { + private static final long serialVersionUID = -5092107027805161479L; + + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:微信订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  out_trade_no, transaction_id二选一传入
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:商户订单号
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  out_trade_no, transaction_id二选一传入
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "out_trade_no") + private String outTradeNo; + + /** + *
+   * 字段名:商户子订单号
+   * 变量名:sub_order_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_no") + private String subOrderNo; + + /** + *
+   * 字段名:微信子订单号
+   * 变量名:sub_order_id
+   * 是否必填:否
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_id") + private String subOrderId; + + /** + *
+   * 字段名:海关
+   * 变量名:customs
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  海关代码, 枚举值参见参数规定-海关列表(https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter2_3.shtml#menu11)
+   *  示例值:SHANGHAI_ZS
+   * 
+ */ + @SerializedName(value = "customs") + private String customs; + + /** + *
+   * 字段名:商户海关备案号
+   * 变量名:merchant_customs_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户在海关登记的备案号
+   *  示例值:123456
+   * 
+ */ + @SerializedName(value = "merchant_customs_no") + private String merchantCustomsNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareResult.java new file mode 100644 index 0000000000..25e09d7c07 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/RedeclareResult.java @@ -0,0 +1,156 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author xifengzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class RedeclareResult implements Serializable { + + private static final long serialVersionUID = 8863516626598050095L; + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:微信订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付返回的订单号
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:商户订单号
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "out_trade_no") + private String outTradeNo; + + /** + *
+   * 字段名:商户子订单号
+   * 变量名:sub_order_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_no") + private String subOrderNo; + + /** + *
+   * 字段名:微信子订单号
+   * 变量名:sub_order_id
+   * 是否必填:否
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_id") + private String subOrderId; + + /** + *
+   * 字段名:报关状态
+   * 变量名:state
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  申报结果状态码
+   *  PROCESSING:申报中
+   *  UNDECLARED:未申报
+   *  SUBMITTED:已修改未申报
+   *  SUCCESS:申报成功
+   *  FAIL:申报失败
+   *  EXCEPT:海关接口异常
+   *  示例值:PROCESSING
+   * 
+ */ + @SerializedName(value = "state") + private String state; + + /** + *
+   * 字段名:报关结果说明
+   * 变量名:explanation
+   * 是否必填:是
+   * 类型:string(128)
+   * 描述:
+   *  申报结果说明,如果状态是失败或异常,显示失败原因
+   *  示例值:支付单已存在并且为非退单状态
+   * 
+ */ + @SerializedName(value = "explanation") + private String explanation; + + /** + *
+   * 字段名:最后更新时间
+   * 变量名:modify_time
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  最后更新时间,该时间取自微信服务器
+   *  示例值:2015-09-01T10:00:00+08:00
+   * 
+ */ + @SerializedName(value = "modify_time") + private String modifyTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateRequest.java new file mode 100644 index 0000000000..767a4ce8d8 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateRequest.java @@ -0,0 +1,156 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.github.binarywang.wxpay.v3.SpecEncrypt; +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; + +/** + * @author xifengzhu + */ +@Data +public class VerifyCertificateRequest implements Serializable { + private static final long serialVersionUID = 721089103541592315L; + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:商户订单号
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "out_trade_no") + private String outTradeNo; + + /** + *
+   * 字段名:微信支付返回的订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:海关
+   * 变量名:customs
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  海关代码, 枚举值参见参数规定-海关列表(https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter2_3.shtml#menu11)
+   *  示例值:SHANGHAI_ZS
+   * 
+ */ + @SerializedName(value = "customs") + private String customs; + + /** + *
+   * 字段名:商户海关备案号
+   * 变量名:merchant_customs_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户在海关登记的备案号
+   *  示例值:123456
+   * 
+ */ + @SerializedName(value = "merchant_customs_no") + private String merchantCustomsNo; + + /** + *
+   * 字段名:商户子订单号
+   * 变量名:sub_order_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户子订单号,如有拆单则必传
+   *  注意:仅适用于机构模式
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "sub_order_no") + private String subOrderNo; + + /** + *
+   * 字段名:证件类型
+   * 变量名:certificate_type
+   * 是否必填:是
+   * 类型:string(16)
+   * 描述:
+   *  请传固定值IDCARD,暂只支持大陆身份证
+   *  示例值:IDCARD
+   * 
+ */ + @SerializedName(value = "certificate_type") + private String certificateType; + + /** + *
+   * 字段名:证件号
+   * 变量名:certificate_id
+   * 是否必填:是
+   * 类型:string
+   * 描述:
+   *  用户大陆身份证号,尾号为字母X的身份证号,请大写字母X。该字段需要进行加密
+   *  示例值:330821198809085211
+   * 
+ */ + @SerializedName(value = "certificate_id") + private String certificateId; + + /** + *
+   * 字段名:证件姓名
+   * 变量名:certificate_name
+   * 是否必填:是
+   * 类型:string
+   * 描述:
+   *  证件姓名,字段值需要进行加密
+   *  示例值:330821198809085211
+   * 
+ */ + @SerializedName(value = "certificate_name") + private String certificateName; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateResult.java new file mode 100644 index 0000000000..d97049cb46 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/VerifyCertificateResult.java @@ -0,0 +1,93 @@ +package com.github.binarywang.wxpay.bean.customs; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author xifengzhu + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class VerifyCertificateResult implements Serializable { + private static final long serialVersionUID = -8578640869555299753L; + /** + *
+   * 字段名:机构APPID
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:wxd678efh567hg6787
+   * 
+ */ + @SerializedName(value = "appid") + private String appid; + + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信支付分配的商户号
+   *  示例值:1230000109
+   * 
+ */ + @SerializedName(value = "mchid") + private String mchid; + + /** + *
+   * 字段名:商户订单号
+   * 变量名:out_trade_no
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一
+   *  示例值:20150806125346
+   * 
+ */ + @SerializedName(value = "out_trade_no") + private String outTradeNo; + + /** + *
+   * 字段名:微信支付返回的订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  微信分配的公众账号ID
+   *  示例值:1000320306201511078440737890
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:身份核验结果
+   * 变量名:certificate_check_result
+   * 是否必填:是
+   * 类型:string(32)
+   * 描述:
+   *  订购人和支付人身份信息校验结果
+   *  SAME:身份信息校验匹配
+   *  DIFFERENT:身份信息校验不匹配
+   *  示例值:SAME
+   * 
+ */ + @SerializedName(value = "certificate_check_result") + private String certificateCheckResult; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java new file mode 100644 index 0000000000..f2980fed43 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java @@ -0,0 +1,77 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.customs.*; +import com.github.binarywang.wxpay.exception.WxPayException; + +/** + *
+ * 微信支付 支付报关 API.
+ * Created by xifengzhu on 2022/05/05.
+ * 
+ * + * @author xifengzhu + */ +public interface CustomDeclarationService { + + static String DECLARATION_BASE_URL = "https://apihk.mch.weixin.qq.com/global/v3/customs"; + + /** + *
+   * 报关API
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_1.shtml
+   * 
+ * + * @param request + * @return 返回数据 declaration result + * @throws WxPayException the wx pay exception + */ + DeclarationResult declare(DeclarationRequest request) throws WxPayException; + + /** + *
+   * 报关查询API
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_3.shtml
+   * 
+ * + * @param request + * @return 返回数据 declaration query result + * @throws WxPayException the wx pay exception + */ + DeclarationQueryResult query(DeclarationQueryRequest request) throws WxPayException; + + /** + *
+   * 身份信息校验API
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_2.shtml
+   * 
+ * + * @param request + * @return 返回数据 verify certification result + * @throws WxPayException the wx pay exception + */ + VerifyCertificateResult verifyCertificate(VerifyCertificateRequest request) throws WxPayException; + + /** + *
+   * 报关信息修改API
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_5.shtml
+   * 
+ * + * @param request + * @return 返回数据 declaration result + * @throws WxPayException the wx pay exception + */ + DeclarationResult modify(DeclarationRequest request) throws WxPayException; + + /** + *
+   * 报关重推API
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_4.shtml
+   * 
+ * + * @param request + * @return 返回数据 redeclaration result + * @throws WxPayException the wx pay exception + */ + RedeclareResult redeclare(RedeclareRequest request) throws WxPayException; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImpl.java new file mode 100644 index 0000000000..d25ed7c0a2 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImpl.java @@ -0,0 +1,110 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.customs.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.CustomDeclarationService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxRuntimeException; + +import javax.crypto.BadPaddingException; +import javax.crypto.Cipher; +import javax.crypto.IllegalBlockSizeException; +import javax.crypto.NoSuchPaddingException; +import java.nio.charset.StandardCharsets; +import java.security.InvalidKeyException; +import java.security.NoSuchAlgorithmException; +import java.security.cert.X509Certificate; +import java.util.Base64; + +/** + *
+ * 支付报关 实现.
+ * Created by xifengzhu on 2022/05/05.
+ * 
+ * + * @author xifengzhu + */ +@RequiredArgsConstructor +public class CustomDeclarationServiceImpl implements CustomDeclarationService { + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService; + + @Override + public DeclarationResult declare(DeclarationRequest request) throws WxPayException { + String response = this.payService.postV3(DECLARATION_BASE_URL.concat("/orders"), GSON.toJson(request)); + return GSON.fromJson(response, DeclarationResult.class); + } + + @Override + public DeclarationQueryResult query(DeclarationQueryRequest request) throws WxPayException { + String url = String.format("%s/orders?appid=%s&mchid=%s&order_type=%s&order_no=%s&customs=%s&offset=%s&limit=%s", + DECLARATION_BASE_URL, + request.getAppid(), + request.getMchid(), + request.getOrderType(), + request.getOrderNo(), + request.getCustoms(), + request.getOffset(), + request.getLimit() + ); + String result = this.payService.getV3(url); + return GSON.fromJson(result, DeclarationQueryResult.class); + } + + @Override + public VerifyCertificateResult verifyCertificate(VerifyCertificateRequest request) throws WxPayException { + this.encryptFields(request); + String response = this.payService.postV3WithWechatpaySerial(DECLARATION_BASE_URL.concat("/verify-certificate"), GSON.toJson(request)); + return GSON.fromJson(response, VerifyCertificateResult.class); + } + + @Override + public DeclarationResult modify(DeclarationRequest request) throws WxPayException { + String response = this.payService.patchV3(DECLARATION_BASE_URL.concat("/orders"), GSON.toJson(request)); + return GSON.fromJson(response, DeclarationResult.class); + } + + @Override + public RedeclareResult redeclare(RedeclareRequest request) throws WxPayException { + String response = this.payService.postV3(DECLARATION_BASE_URL.concat("/redeclare"), GSON.toJson(request)); + return GSON.fromJson(response, RedeclareResult.class); + } + + private void encryptFields(VerifyCertificateRequest request) throws WxPayException { + try { + request.setCertificateId(encryptOAEP(request.getCertificateId())); + request.setCertificateName(encryptOAEP(request.getCertificateName())); + } catch (Exception e) { + throw new WxPayException("敏感信息加密失败", e); + } + } + + private X509Certificate getValidCertificate() { + return this.payService.getConfig().getVerifier().getValidCertificate(); + } + + private String encryptOAEP(String message) + throws IllegalBlockSizeException { + X509Certificate certificate = getValidCertificate(); + try { + // 身份信息校验 RSA 加密,填充方案使用 `RSAES-PKCS1-v1_5` + // https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_2.shtml + Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); + cipher.init(Cipher.ENCRYPT_MODE, certificate.getPublicKey()); + + byte[] data = message.getBytes(StandardCharsets.UTF_8); + byte[] ciphertext = cipher.doFinal(data); + return Base64.getEncoder().encodeToString(ciphertext); + } catch (NoSuchAlgorithmException | NoSuchPaddingException e) { + throw new WxRuntimeException("当前Java环境不支持RSA v1.5/OAEP", e); + } catch (InvalidKeyException e) { + throw new IllegalArgumentException("无效的证书", e); + } catch (IllegalBlockSizeException | BadPaddingException e) { + throw new IllegalBlockSizeException("加密原串的长度不能超过214字节"); + } + } +} diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImplTest.java new file mode 100644 index 0000000000..6a219ee2f3 --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/CustomDeclarationServiceImplTest.java @@ -0,0 +1,74 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.customs.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.CustomDeclarationService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +@Slf4j +@Test +@Guice(modules = ApiTestModule.class) +public class CustomDeclarationServiceImplTest { + private static final Gson GSON = new GsonBuilder().create(); + @Inject + private WxPayService wxPayService; + + @Test + public void testDeclare() throws WxPayException { + CustomDeclarationService customDeclarationService = new CustomDeclarationServiceImpl(wxPayService); + String requestParamStr = "{\"appid\":\"wx4275b35dac8f1bde\",\"mchid\":\"1623887211\",\"out_trade_no\":\"schiff32205031811186126779176\",\"transaction_id\":\"4200001480202205035540107159\",\"customs\":\"NINGBO\",\"merchant_customs_no\":\"4401230148\"}"; + DeclarationRequest request = GSON.fromJson(requestParamStr, DeclarationRequest.class); + + DeclarationResult result = customDeclarationService.declare(request); + System.out.println("result = " + result); + } + + @Test + public void testQuery() throws WxPayException { + CustomDeclarationService customDeclarationService = new CustomDeclarationServiceImpl(wxPayService); + String requestParamStr = "{\"appid\":\"wx4275b35dac8f1bde\",\"mchid\":\"1623887211\",\"order_type\":\"transaction_id\",\"order_no\":\"4200001480202205035540107159\",\"customs\":\"NINGBO\",\"offset\":\"0\",\"limit\":\"20\"}"; + DeclarationQueryRequest request = GSON.fromJson(requestParamStr, DeclarationQueryRequest.class); + + DeclarationQueryResult result = customDeclarationService.query(request); + System.out.println("result = " + result); + } + + @Test + public void testVerifyCertificate() throws WxPayException { + CustomDeclarationService customDeclarationService = new CustomDeclarationServiceImpl(wxPayService); + String requestParamStr = "{\"appid\":\"wx4275b35dac8f1bde\",\"mchid\":\"1623887211\",\"out_trade_no\":\"schiff32205031811186126779176\",\"transaction_id\":\"4200001480202205035540107159\",\"customs\":\"NINGBO\",\"merchant_customs_no\":\"4401230148\",\"certificate_type\":\"IDCARD\",\"certificate_id\":\"430223199101264838\",\"certificate_name\":\"易株强\"}"; + VerifyCertificateRequest request = GSON.fromJson(requestParamStr, VerifyCertificateRequest.class); + + VerifyCertificateResult result = customDeclarationService.verifyCertificate(request); + System.out.println("result = " + result); + } + + @Test + public void testModify() throws WxPayException { + CustomDeclarationService customDeclarationService = new CustomDeclarationServiceImpl(wxPayService); + + String requestParamStr = "{\"appid\":\"wx4275b35dac8f1bde\",\"mchid\":\"1623887211\",\"out_trade_no\":\"schiff32205031811186126779176\",\"transaction_id\":\"4200001480202205035540107159\",\"customs\":\"NINGBO\",\"merchant_customs_no\":\"4401230148\"}"; + + DeclarationRequest request = GSON.fromJson(requestParamStr, DeclarationRequest.class); + + DeclarationResult result = customDeclarationService.modify(request); + System.out.println("result = " + result); + } + + @Test + public void testRedeclare() throws WxPayException { + CustomDeclarationService customDeclarationService = new CustomDeclarationServiceImpl(wxPayService); + String requestParamStr = "{\"appid\":\"wx4275b35dac8f1bde\",\"mchid\":\"1623887211\",\"out_trade_no\":\"schiff32205031811186126779176\",\"transaction_id\":\"4200001480202205035540107159\",\"customs\":\"NINGBO\",\"merchant_customs_no\":\"4401230148\"}"; + RedeclareRequest request = GSON.fromJson(requestParamStr, RedeclareRequest.class); + + RedeclareResult result = customDeclarationService.redeclare(request); + System.out.println("result = " + result); + } +} From 28e82774108c6bd1e51cc786f89c24b87468e05e Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 15 May 2022 20:43:10 +0800 Subject: [PATCH 230/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/message/WxCpXmlApprovalInfo.java | 252 ++++++++++++++++++ .../cp/bean/message/WxCpXmlMessage.java | 243 +---------------- .../api/impl/WxOpenComponentServiceImpl.java | 4 +- 3 files changed, 255 insertions(+), 244 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java new file mode 100644 index 0000000000..5035390db6 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java @@ -0,0 +1,252 @@ +package me.chanjar.weixin.cp.bean.message; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamConverter; +import com.thoughtworks.xstream.annotations.XStreamImplicit; +import lombok.Data; +import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; + +import java.io.Serializable; +import java.util.List; + +/** + * 审批信息 + * + * @author Gyv12345 + */ +@XStreamAlias("ApprovalInfo") +@Data +public class WxCpXmlApprovalInfo implements Serializable { + private static final long serialVersionUID = 8136329462880646091L; + + /** + * 审批编号 + */ + @XStreamAlias("SpNo") + private String spNo; + + /** + * 审批申请类型名称(审批模板名称) + */ + @XStreamAlias("SpName") + @XStreamConverter(value = XStreamCDataConverter.class) + private String spName; + + /** + * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付 + */ + @XStreamAlias("SpStatus") + private Integer spStatus; + + /** + * 审批模板id。 + */ + @XStreamAlias("TemplateId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String templateId; + /** + * 审批申请提交时间,Unix时间戳 + */ + @XStreamAlias("ApplyTime") + private Long applyTime; + + /** + * 申请人信息 + */ + @XStreamAlias("Applyer") + private Applier applier; + + /** + * 审批流程信息,可能有多个审批节点。 + */ + @XStreamImplicit(itemFieldName = "SpRecord") + private List spRecords; + + /** + * 抄送信息,可能有多个抄送节点 + * 这回查字典,notifier通知人,Notifyer这不知道是什么 + */ + @XStreamImplicit(itemFieldName = "Notifyer") + private List notifier; + + /** + * 审批申请备注信息,可能有多个备注节点 + */ + @XStreamImplicit(itemFieldName = "Comments") + private List comments; + + /** + * 审批申请单变化类型 + */ + @XStreamAlias("StatuChangeEvent") + private Integer statusChangeEvent; + + /** + * 申请人信息 + */ + @XStreamAlias("Applyer") + @Data + public static class Applier implements Serializable { + private static final long serialVersionUID = -979255011922209018L; + + /** + * 申请人userid + */ + @XStreamAlias("UserId") + private String userId; + + /** + * 申请人所在部门pid + */ + @XStreamAlias("Party") + private String party; + } + + /** + * 审批流程信息 + */ + @XStreamAlias("SpRecord") + @Data + public static class SpRecord implements Serializable { + private static final long serialVersionUID = 1247535623941881764L; + + /** + * 审批节点状态:1-审批中;2-已同意;3-已驳回;4-已转审 + */ + @XStreamAlias("SpStatus") + private String spStatus; + + /** + * 节点审批方式:1-或签;2-会签 + */ + @XStreamAlias("ApproverAttr") + private String approverAttr; + + /** + * 审批节点详情。当节点为标签或上级时,一个节点可能有多个分支 + */ + @XStreamImplicit(itemFieldName = "Details") + private List details; + + } + + /** + * 审批节点详情 + */ + @XStreamAlias("Details") + @Data + public static class Detail implements Serializable { + private static final long serialVersionUID = -8446107461495047603L; + + /** + * 分支审批人 + */ + @XStreamAlias("Approver") + private Approver approver; + + /** + * 审批意见字段 + */ + @XStreamAlias("Speech") + private String speech; + + /** + * 分支审批人审批状态:1-审批中;2-已同意;3-已驳回;4-已转审 + */ + @XStreamAlias("SpStatus") + private String spStatus; + + /** + * 节点分支审批人审批操作时间,0为尚未操作 + */ + @XStreamAlias("SpTime") + private Long spTime; + + /** + * 节点分支审批人审批意见附件,赋值为media_id具体使用请参考:文档-获取临时素材 + */ + @XStreamImplicit(itemFieldName = "Attach") + private List attach; + } + + /** + * 分支审批人 + */ + @Data + @XStreamAlias("Approver") + public static class Approver implements Serializable { + private static final long serialVersionUID = 7360442444186683191L; + + /** + * 分支审批人userid + */ + @XStreamAlias("UserId") + private String userId; + } + + /** + * 抄送信息 + */ + @Data + @XStreamAlias("Notifyer") + public static class Notifier implements Serializable { + private static final long serialVersionUID = -4524071522890013920L; + + /** + * 节点抄送人userid + */ + @XStreamAlias("UserId") + private String userId; + } + + /** + * 审批申请备注信息 + */ + @Data + @XStreamAlias("Comments") + public static class Comment implements Serializable { + private static final long serialVersionUID = 6912156206252719485L; + + /** + * 备注人信息 + */ + @XStreamAlias("CommentUserInfo") + private CommentUserInfo commentUserInfo; + + /** + * 备注提交时间 + */ + @XStreamAlias("CommentTime") + private String commentTime; + + /** + * 备注文本内容 + */ + @XStreamAlias("CommentContent") + private String commentContent; + + /** + * 备注id + */ + @XStreamAlias("CommentId") + private String commentId; + + /** + * 备注意见附件,值是附件media_id + */ + @XStreamImplicit(itemFieldName="Attach") + private List attach; + } + + @Data + @XStreamAlias("CommentUserInfo") + private static class CommentUserInfo implements Serializable { + private static final long serialVersionUID = 5031739716823000947L; + + /** + * 备注人userid + */ + @XStreamAlias("UserId") + private String userId; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index ff55df804e..bb7025edfc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -475,7 +475,7 @@ public class WxCpXmlMessage implements Serializable { @XStreamAlias("ApprovalInfo") - private ApprovalInfo approvalInfo = new ApprovalInfo(); + private WxCpXmlApprovalInfo approvalInfo = new WxCpXmlApprovalInfo(); protected static WxCpXmlMessage fromXml(String xml) { @@ -620,245 +620,4 @@ public static class SendLocationInfo implements Serializable { } - /** - * 审批信息 - */ - @XStreamAlias("ApprovalInfo") - @Data - public static class ApprovalInfo implements Serializable { - private static final long serialVersionUID = 8136329462880646091L; - - /** - * 审批编号 - */ - @XStreamAlias("SpNo") - private String spNo; - - /** - * 审批申请类型名称(审批模板名称) - */ - @XStreamAlias("SpName") - @XStreamConverter(value = XStreamCDataConverter.class) - private String spName; - - /** - * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付 - */ - @XStreamAlias("SpStatus") - private Integer spStatus; - - /** - * 审批模板id。 - */ - @XStreamAlias("TemplateId") - @XStreamConverter(value = XStreamCDataConverter.class) - private String templateId; - /** - * 审批申请提交时间,Unix时间戳 - */ - @XStreamAlias("ApplyTime") - private Long applyTime; - - /** - * 申请人信息 - */ - @XStreamAlias("Applyer") - private Applier applier; - - /** - * 审批流程信息,可能有多个审批节点。 - */ - @XStreamImplicit(itemFieldName = "SpRecord") - private List spRecords; - - /** - * 抄送信息,可能有多个抄送节点 - * 这回查字典,notifier通知人,Notifyer这不知道是什么 - */ - @XStreamImplicit(itemFieldName = "Notifyer") - private List notifier; - - /** - * 审批申请备注信息,可能有多个备注节点 - */ - @XStreamImplicit(itemFieldName = "Comments") - private List comments; - - /** - * 审批申请单变化类型 - */ - @XStreamAlias("StatuChangeEvent") - private Integer statusChangeEvent; - - /** - * 申请人信息 - */ - @XStreamAlias("Applyer") - @Data - public static class Applier implements Serializable { - private static final long serialVersionUID = -979255011922209018L; - - /** - * 申请人userid - */ - @XStreamAlias("UserId") - private String userId; - - /** - * 申请人所在部门pid - */ - @XStreamAlias("Party") - private String party; - } - - /** - * 审批流程信息 - */ - @XStreamAlias("SpRecord") - @Data - public static class SpRecord implements Serializable { - - private static final long serialVersionUID = 1247535623941881764L; - - /** - * 审批节点状态:1-审批中;2-已同意;3-已驳回;4-已转审 - */ - @XStreamAlias("SpStatus") - private String spStatus; - - /** - * 节点审批方式:1-或签;2-会签 - */ - @XStreamAlias("ApproverAttr") - private String approverAttr; - - /** - * 审批节点详情。当节点为标签或上级时,一个节点可能有多个分支 - */ - @XStreamImplicit(itemFieldName = "Details") - private List details; - - } - - /** - * 审批节点详情 - */ - @XStreamAlias("Details") - @Data - public static class Detail implements Serializable { - private static final long serialVersionUID = -8446107461495047603L; - - /** - * 分支审批人 - */ - @XStreamAlias("Approver") - private Approver approver; - - /** - * 审批意见字段 - */ - @XStreamAlias("Speech") - private String speech; - - /** - * 分支审批人审批状态:1-审批中;2-已同意;3-已驳回;4-已转审 - */ - @XStreamAlias("SpStatus") - private String spStatus; - - /** - * 节点分支审批人审批操作时间,0为尚未操作 - */ - @XStreamAlias("SpTime") - private Long spTime; - - /** - * 节点分支审批人审批意见附件,赋值为media_id具体使用请参考:文档-获取临时素材 - */ - @XStreamAlias("Attach") - @XStreamImplicit - private List attach; - } - - /** - * 分支审批人 - */ - @Data - @XStreamAlias("Approver") - public static class Approver implements Serializable { - - private static final long serialVersionUID = 7360442444186683191L; - - /** - * 分支审批人userid - */ - @XStreamAlias("UserId") - private String userId; - } - - /** - * 抄送信息 - */ - @Data - @XStreamAlias("Notifyer") - public static class Notifier implements Serializable { - - private static final long serialVersionUID = -4524071522890013920L; - - /** - * 节点抄送人userid - */ - @XStreamAlias("UserId") - private String userId; - } - - /** - * 审批申请备注信息 - */ - @Data - @XStreamAlias("Comments") - public static class Comment implements Serializable { - - private static final long serialVersionUID = 6912156206252719485L; - - /** - * 备注人信息 - */ - @XStreamAlias("CommentUserInfo") - private CommentUserInfo commentUserInfo; - - /** - * 备注提交时间 - */ - @XStreamAlias("CommentTime") - private String commentTime; - - /** - * 备注文本内容 - */ - @XStreamAlias("CommentContent") - private String commentContent; - - /** - * 备注id - */ - @XStreamAlias("CommentId") - private String commentId; - - } - - @Data - @XStreamAlias("CommentUserInfo") - private static class CommentUserInfo implements Serializable { - - private static final long serialVersionUID = 5031739716823000947L; - - /** - * 备注人userid - */ - @XStreamAlias("UserId") - private String userId; - } - } - } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java index 28bd71cb54..2537db9f3b 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java @@ -467,8 +467,8 @@ public WxOAuth2AccessToken oauth2refreshAccessToken(String appId, String refresh @Override public String oauth2buildAuthorizationUrl(String appId, String redirectURI, String scope, String state) { - return String.format(CONNECT_OAUTH2_AUTHORIZE_URL, - appId, URIUtil.encodeURIComponent(redirectURI), scope, StringUtils.trimToEmpty(state), getWxOpenConfigStorage().getComponentAppId()); + return String.format(CONNECT_OAUTH2_AUTHORIZE_URL, appId, URIUtil.encodeURIComponent(redirectURI), scope, + StringUtils.trimToEmpty(state), getWxOpenConfigStorage().getComponentAppId()); } @Override From 46a01bdd334dfdc46d9f32991b0a25bb29e2f2ab Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 15 May 2022 21:08:49 +0800 Subject: [PATCH 231/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.3?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 4091a237b0..36901cd377 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index f0d0a231bd..737ebfc339 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index d42ba832ff..179a6b67db 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 3f7b856ccd..5143df78aa 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index c67898676e..7b0c7b9189 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index dc01085f88..58ce5cf2a6 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index d5f8338153..ee31d2e15d 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 7d4ae5fd54..2261eed7b8 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index d0b2897b97..c787979e4f 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 3a54a993f3..b77108d18a 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index e82ab1a7e6..3c61377132 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index f753defd84..83b48d7704 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 1d6054993f..6630ae9124 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index dcb4bc998a..ba7eb0c62a 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 54bd44f557..5f2f8f196e 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 2df0bb2e20..7a66ea4a04 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.2.B + 4.3.3.B weixin-java-qidian From b353067ee14764bf7331147dd118affe5eb09568 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 16 May 2022 10:25:38 +0800 Subject: [PATCH 232/622] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 013cebb791..27801731e3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ - + @@ -31,17 +31,17 @@ - + - diboot低代码开发平台 + diboot低代码开发平台 - + From 19c311391eb6aac1064da21d7a14234c83c3cb1a Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 17 May 2022 09:55:00 +0800 Subject: [PATCH 233/622] =?UTF-8?q?:new:=20#2648=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E7=9B=98=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOaWeDriveService.java | 47 ++++++++++ .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 34 +++++++ .../cp/bean/oa/wedrive/WxCpFileCreate.java | 33 +++++++ .../cp/bean/oa/wedrive/WxCpFileDownload.java | 36 ++++++++ .../cp/bean/oa/wedrive/WxCpFileRename.java | 89 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 3 + .../cp/api/WxCpOaWeDriveServiceTest.java | 20 +++++ 7 files changed, 262 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileCreate.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDownload.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileRename.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java index dd27ddbf87..32182f9f3c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java @@ -147,4 +147,51 @@ public interface WxCpOaWeDriveService { */ WxCpFileUpload fileUpload(@NonNull WxCpFileUploadRequest request) throws WxErrorException; + /** + * 下载文件 + * 该接口用于下载文件,请求的userid需有下载权限。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_download?access_token=ACCESS_TOKEN + * + * @param userId + * @param fileId + * @return + * @throws WxErrorException + */ + WxCpFileDownload fileDownload(@NonNull String userId, @NonNull String fileId) throws WxErrorException; + + /** + * 重命名文件 + * 该接口用于对指定文件进行重命名。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_rename?access_token=ACCESS_TOKEN + * + * @param userId + * @param fileId + * @param newName + * @return + * @throws WxErrorException + */ + WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, @NonNull String newName) throws WxErrorException; + + /** + * 新建文件/微文档 + * 该接口用于在微盘指定位置新建文件、微文档。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_create?access_token=ACCESS_TOKEN + * + * @param userId 操作者userid + * @param spaceId 空间spaceid + * @param fatherId 父目录fileid, 在根目录时为空间spaceid + * @param fileType 文件类型, 1:文件夹 3:微文档(文档) 4:微文档(表格) + * @param fileName 文件名字 + * @return + * @throws WxErrorException + */ + WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, + @NonNull String fatherId, @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index 188ba2bb6e..771e5c00c7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -102,4 +102,38 @@ public WxCpFileUpload fileUpload(@NonNull WxCpFileUploadRequest request) throws return WxCpFileUpload.fromJson(responseContent); } + @Override + public WxCpFileDownload fileDownload(@NonNull String userId, @NonNull String fileId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_DOWNLOAD); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("fileid", fileId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpFileDownload.fromJson(responseContent); + } + + @Override + public WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, @NonNull String newName) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_RENAME); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("fileiid", fileId); + jsonObject.addProperty("new_name", newName); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpFileRename.fromJson(responseContent); + } + + @Override + public WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, @NonNull String fatherId, @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_CREATE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("spaceid", spaceId); + jsonObject.addProperty("fatherid", fatherId); + jsonObject.addProperty("file_type", fileType); + jsonObject.addProperty("file_name", fileName); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpFileCreate.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileCreate.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileCreate.java new file mode 100644 index 0000000000..6d7ba3e6fe --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileCreate.java @@ -0,0 +1,33 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 新建文件/微文档 返回信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileCreate extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("url") + private String url; + + public static WxCpFileCreate fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileCreate.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDownload.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDownload.java new file mode 100644 index 0000000000..638d26e488 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDownload.java @@ -0,0 +1,36 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 下载文件返回信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileDownload extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("download_url") + private String downloadUrl; + + @SerializedName("cookie_name") + private String cookieName; + + @SerializedName("cookie_value") + private String cookieValue; + + public static WxCpFileDownload fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileDownload.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileRename.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileRename.java new file mode 100644 index 0000000000..26fe21b198 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileRename.java @@ -0,0 +1,89 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 下载文件返回信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileRename extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("file") + private File file; + + @Getter + @Setter + public static class File implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("file_name") + private String fileName; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("fatherid") + private String fatherId; + + @SerializedName("file_size") + private Long fileSize; + + @SerializedName("ctime") + private Long cTime; + + @SerializedName("mtime") + private Long mTime; + + @SerializedName("file_type") + private Integer fileType; + + @SerializedName("file_status") + private Integer fileStatus; + + @SerializedName("create_userid") + private String createUserId; + + @SerializedName("update_userid") + private String updateUserId; + + @SerializedName("sha") + private String sha; + + @SerializedName("url") + private String url; + + @SerializedName("md5") + private String md5; + + public static File fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, File.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpFileRename fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileRename.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 8eae00d57d..05af6660c5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -155,6 +155,9 @@ interface Oa { String SPACE_SHARE = "/cgi-bin/wedrive/space_share"; String FILE_LIST = "/cgi-bin/wedrive/file_list"; String FILE_UPLOAD = "/cgi-bin/wedrive/file_upload"; + String FILE_DOWNLOAD = "/cgi-bin/wedrive/file_download"; + String FILE_RENAME = "/cgi-bin/wedrive/file_rename"; + String FILE_CREATE = "/cgi-bin/wedrive/file_create"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index e51ef106c9..5d0016ae83 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -45,6 +45,19 @@ public void test() throws Exception { String spId = "s.ww45d3e188865aca30.652091685u4h"; // 空间的文件id String fileId = "s.ww45d3e188865aca30.652091685u4h_f.652344507ysDL"; + String fileId2 = "s.ww45d3e188865aca30.652091685u4h_f.652696024TU4P"; + + /** + * 新建文件/微文档 + */ + WxCpFileCreate fileCreate = cpService.getOaWeDriveService().fileCreate(uId, spId, spId, 3, "新建微文档1"); + log.info("新建文件/微文档:{}", fileCreate.toJson()); + + /** + * 下载文件 + */ + WxCpFileDownload fileDownload = cpService.getOaWeDriveService().fileDownload(uId, fileId); + log.info("下载文件为:{}", fileDownload.toJson()); /** * 上传文件 @@ -57,6 +70,7 @@ public void test() throws Exception { // 将文件转成base64字符串 File file = new File("D:/info.log.2022-05-07.0.log"); +// File file = new File("D:/16.png"); FileInputStream inputFile = new FileInputStream(file); byte[] buffer = new byte[(int)file.length()]; inputFile.read(buffer); @@ -67,6 +81,12 @@ public void test() throws Exception { WxCpFileUpload fileUpload = cpService.getOaWeDriveService().fileUpload(fileUploadRequest); log.info("上传文件为:{}", fileUpload.toJson()); + /** + * 重命名文件 + */ + WxCpFileRename fileRename = cpService.getOaWeDriveService().fileRename(uId, fileUpload.getFileId(), "新的名字呢"); + log.info("重命名文件:{}", fileRename.toJson()); + /** * 获取文件列表 */ From 5da9fb30aacbe21019f13e89dd43bd19c37b6c9f Mon Sep 17 00:00:00 2001 From: zhongjun Date: Tue, 17 May 2022 13:52:15 +0800 Subject: [PATCH 234/622] =?UTF-8?q?:art:=20#2541=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=8F=91=E9=80=81=E7=BE=A4?= =?UTF-8?q?=E8=81=8A=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=B6=88=E6=81=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0=E5=AF=B9=E6=96=87=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpGroupRobotService.java | 9 +++++++++ .../cp/api/impl/WxCpGroupRobotServiceImpl.java | 14 +++++++++----- .../cp/bean/message/WxCpGroupRobotMessage.java | 11 +++++++++++ .../me/chanjar/weixin/cp/constant/WxCpConsts.java | 6 ++++++ 4 files changed, 35 insertions(+), 5 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java index b5a9579e0d..9839afb9e9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java @@ -88,4 +88,13 @@ public interface WxCpGroupRobotService { * @throws WxErrorException 异常 */ void sendNews(String webhookUrl, List articleList) throws WxErrorException; + + /** + * 发送文件类型的消息 + * + * @param webhookUrl webhook地址 + * @param mediaId 文件id + * @throws WxErrorException 异常 + */ + void sendFile(String webhookUrl, String mediaId) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java index 9661adf478..056a51fddf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java @@ -1,7 +1,6 @@ package me.chanjar.weixin.cp.api.impl; import lombok.RequiredArgsConstructor; -import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.WxCpGroupRobotService; import me.chanjar.weixin.cp.api.WxCpService; @@ -14,8 +13,6 @@ import java.util.List; import static me.chanjar.weixin.cp.constant.WxCpConsts.GroupRobotMsgType; -import static me.chanjar.weixin.cp.constant.WxCpConsts.GroupRobotMsgType.MARKDOWN; -import static me.chanjar.weixin.cp.constant.WxCpConsts.GroupRobotMsgType.TEXT; /** * 企业微信群机器人消息发送api 实现 @@ -59,7 +56,7 @@ public void sendNews(List articleList) throws WxErrorException { @Override public void sendText(String webhookUrl, String content, List mentionedList, List mobileList) throws WxErrorException { this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage() - .setMsgType(TEXT) + .setMsgType(GroupRobotMsgType.TEXT) .setContent(content) .setMentionedList(mentionedList) .setMentionedMobileList(mobileList) @@ -69,7 +66,7 @@ public void sendText(String webhookUrl, String content, List mentionedLi @Override public void sendMarkdown(String webhookUrl, String content) throws WxErrorException { this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage() - .setMsgType(MARKDOWN) + .setMsgType(GroupRobotMsgType.MARKDOWN) .setContent(content) .toJson()); } @@ -89,4 +86,11 @@ public void sendNews(String webhookUrl, List articleList) throws WxE .setArticles(articleList).toJson()); } + @Override + public void sendFile(String webhookUrl, String mediaId) throws WxErrorException { + this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage() + .setMsgType(GroupRobotMsgType.FILE) + .setMediaId(mediaId).toJson()); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java index 387b454cdb..bf73d2e6e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java @@ -57,6 +57,11 @@ public class WxCpGroupRobotMessage implements Serializable { */ private List articles; + /** + * 文件id + */ + private String mediaId; + public String toJson() { JsonObject messageJson = new JsonObject(); messageJson.addProperty("msgtype", this.getMsgType()); @@ -112,6 +117,12 @@ public String toJson() { messageJson.add("news", text); break; } + case FILE: { + JsonObject file = new JsonObject(); + file.addProperty("media_id", this.getMediaId()); + messageJson.add("file", file); + break; + } default: } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java index 3a4c10e211..d6c506a695 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java @@ -374,6 +374,12 @@ public static class GroupRobotMsgType { * 图文消息(点击跳转到外链). */ public static final String NEWS = "news"; + + /** + * 文件类型消息. + */ + public static final String FILE = "file"; + } /** From a6d4b6e6abd08d7e0d45d4c33435eaab2819d811 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Thu, 19 May 2022 14:06:39 +0800 Subject: [PATCH 235/622] =?UTF-8?q?:new:=20#2651=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=96=B0=E5=A2=9E=E5=BE=AE?= =?UTF-8?q?=E7=9B=98=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOaWeDriveService.java | 43 +++++++ .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 29 ++++- .../oa/wedrive/WxCpFileDeleteRequest.java | 39 +++++++ .../cp/bean/oa/wedrive/WxCpFileInfo.java | 89 +++++++++++++++ .../cp/bean/oa/wedrive/WxCpFileMove.java | 105 ++++++++++++++++++ .../bean/oa/wedrive/WxCpFileMoveRequest.java | 58 ++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 3 + .../cp/api/WxCpOaWeDriveServiceTest.java | 28 +++++ 8 files changed, 393 insertions(+), 1 deletion(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDeleteRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMove.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMoveRequest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java index 32182f9f3c..c4c4376d5c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java @@ -5,6 +5,8 @@ import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.wedrive.*; +import java.util.List; + /** * 企业微信微盘相关接口. * https://developer.work.weixin.qq.com/document/path/93654 @@ -194,4 +196,45 @@ public interface WxCpOaWeDriveService { WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, @NonNull String fatherId, @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException; + /** + * 移动文件 + * 该接口用于将文件移动到指定位置。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_move?access_token=ACCESS_TOKEN + * + * @param request 移动文件的请求参数 + * @return + * @throws WxErrorException + */ + WxCpFileMove fileMove(@NonNull WxCpFileMoveRequest request) throws WxErrorException; + + /** + * 删除文件 + * 该接口用于删除指定文件。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_delete?access_token=ACCESS_TOKEN + * + * @param userId 操作者userid + * @param fileId 文件fileid列表 + * @return + * @throws WxErrorException + */ + WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List fileId) throws WxErrorException; + + /** + * 文件信息 + * 该接口用于获取指定文件的信息。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_info?access_token=ACCESS_TOKEN + * + * @param userId + * @param fileId + * @return + * @throws WxErrorException + */ + WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index 771e5c00c7..63095ed4e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -10,6 +10,8 @@ import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.wedrive.*; +import java.util.List; + import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.*; /** @@ -117,7 +119,7 @@ public WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_RENAME); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("userid", userId); - jsonObject.addProperty("fileiid", fileId); + jsonObject.addProperty("fileid", fileId); jsonObject.addProperty("new_name", newName); String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); return WxCpFileRename.fromJson(responseContent); @@ -136,4 +138,29 @@ public WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId return WxCpFileCreate.fromJson(responseContent); } + @Override + public WxCpFileMove fileMove(@NonNull WxCpFileMoveRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_MOVE); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpFileMove.fromJson(responseContent); + } + + @Override + public WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List fileId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_DELETE); + WxCpFileDeleteRequest request = new WxCpFileDeleteRequest(userId, fileId); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_INFO); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("fileid", fileId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpFileInfo.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDeleteRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDeleteRequest.java new file mode 100644 index 0000000000..65e19c8a1e --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileDeleteRequest.java @@ -0,0 +1,39 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 删除文件请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpFileDeleteRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("fileid") + private List fileId; + + public static WxCpFileDeleteRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileDeleteRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileInfo.java new file mode 100644 index 0000000000..222105379e --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileInfo.java @@ -0,0 +1,89 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 文件信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileInfo extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("file_info") + private FileInfo fileInfo; + + @Getter + @Setter + public static class FileInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("file_name") + private String fileName; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("fatherid") + private String fatherId; + + @SerializedName("file_size") + private Long fileSize; + + @SerializedName("ctime") + private Long cTime; + + @SerializedName("mtime") + private Long mTime; + + @SerializedName("file_type") + private Integer fileType; + + @SerializedName("file_status") + private Integer fileStatus; + + @SerializedName("create_userid") + private String createUserId; + + @SerializedName("update_userid") + private String updateUserId; + + @SerializedName("sha") + private String sha; + + @SerializedName("md5") + private String md5; + + @SerializedName("url") + private String url; + + public static FileInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, FileInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpFileInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMove.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMove.java new file mode 100644 index 0000000000..f9d232df20 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMove.java @@ -0,0 +1,105 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 移动文件返回信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileMove extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("file_list") + private FileList fileList; + + @Getter + @Setter + public static class FileList implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("item") + private List item; + + public static FileList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, FileList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class Item implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("file_name") + private String fileName; + + @SerializedName("spaceid") + private String spaceId; + + @SerializedName("fatherid") + private String fatherId; + + @SerializedName("file_size") + private Long fileSize; + + @SerializedName("ctime") + private Long cTime; + + @SerializedName("mtime") + private Long mTime; + + @SerializedName("file_type") + private Integer fileType; + + @SerializedName("file_status") + private Integer fileStatus; + + @SerializedName("create_userid") + private String createUserId; + + @SerializedName("update_userid") + private String updateUserId; + + @SerializedName("sha") + private String sha; + + @SerializedName("md5") + private String md5; + + public static Item fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Item.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpFileMove fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileMove.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMoveRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMoveRequest.java new file mode 100644 index 0000000000..8f8a178aa3 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileMoveRequest.java @@ -0,0 +1,58 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 移动文件请求. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpFileMoveRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + /** + * 操作者userid + */ + @SerializedName("userid") + private String userId; + + /** + * 如果移动到的目标目录与需要移动的文件重名时,是否覆盖。 + * true:重名文件覆盖 + * false:重名文件进行冲突重命名处理(移动后文件名格式如xxx(1).txt xxx(1).doc等) + */ + @SerializedName("replace") + private Boolean replace; + + /** + * 当前目录的fileid,根目录时为空间spaceid + */ + @SerializedName("fatherid") + private String fatherId; + + /** + * 文件fileid + */ + @SerializedName("fileid") + private String[] fileId; + + public static WxCpFileMoveRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileMoveRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 05af6660c5..180f5f5946 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -158,6 +158,9 @@ interface Oa { String FILE_DOWNLOAD = "/cgi-bin/wedrive/file_download"; String FILE_RENAME = "/cgi-bin/wedrive/file_rename"; String FILE_CREATE = "/cgi-bin/wedrive/file_create"; + String FILE_MOVE = "/cgi-bin/wedrive/file_move"; + String FILE_DELETE = "/cgi-bin/wedrive/file_delete"; + String FILE_INFO = "/cgi-bin/wedrive/file_info"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index 5d0016ae83..a1205df240 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.cp.api; +import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -47,6 +48,33 @@ public void test() throws Exception { String fileId = "s.ww45d3e188865aca30.652091685u4h_f.652344507ysDL"; String fileId2 = "s.ww45d3e188865aca30.652091685u4h_f.652696024TU4P"; + + /** + * 删除文件 + */ + ArrayList fileIds = Lists.newArrayList(); + fileIds.add(fileId); + WxCpBaseResp fileDelete = cpService.getOaWeDriveService().fileDelete(uId, fileIds); + log.info("删除文件数据为:{}", fileDelete.toJson()); + + /** + * 文件信息 + */ + WxCpFileInfo fileInfo = cpService.getOaWeDriveService().fileInfo(uId, fileId); + log.info("fileInfo数据为:{}", fileInfo.toJson()); + + /** + * 移动文件 + */ + WxCpFileMoveRequest fileMoveRequest = new WxCpFileMoveRequest(); + fileMoveRequest.setUserId(uId); + fileMoveRequest.setFatherId(spId); + fileMoveRequest.setReplace(true); + fileMoveRequest.setFileId(new String[]{fileId}); + + WxCpFileMove fileMove = cpService.getOaWeDriveService().fileMove(fileMoveRequest); + log.info("fileMove数据为:{}", fileMove.toJson()); + /** * 新建文件/微文档 */ From 4de09fa5656e51ee2215d85d2d04af5b7a900b5c Mon Sep 17 00:00:00 2001 From: zhongjun Date: Thu, 19 May 2022 14:11:20 +0800 Subject: [PATCH 236/622] =?UTF-8?q?:new:=20#2631=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E7=BB=84=E4=BB=B6-=E8=AE=A2=E5=8D=95=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=92=8C=E7=94=9F=E6=88=90=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaShopOrderService.java | 48 +++++++++++++- .../api/impl/WxMaShopOrderServiceImpl.java | 65 ++++++++++++------- .../bean/shop/WxMaShopOrderDetail.java | 6 ++ .../bean/shop/WxMaShopPromotionInfo.java | 39 +++++++++++ .../WxMaShopGetOrderListResponse.java | 30 +++++++++ .../WxMaShopGetPaymentParamsResponse.java | 41 ++++++++++++ .../miniapp/constant/WxMaApiUrlConstants.java | 2 + 7 files changed, 204 insertions(+), 27 deletions(-) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java index 50b39fb6ed..2cfce36f32 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java @@ -2,11 +2,11 @@ import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderInfo; import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopOrderPayRequest; -import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAddOrderResponse; -import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; -import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopGetOrderResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.*; import me.chanjar.weixin.common.error.WxErrorException; +import java.util.Date; + /** * 小程序交易组件-订单服务 * @@ -21,4 +21,46 @@ public interface WxMaShopOrderService { WxMaShopGetOrderResponse getOrder(Integer orderId, String outOrderId, String openid) throws WxErrorException; + + + /** + *

+   *
+   * 获取订单列表
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:文档地址
+   * 
+ * + * @param page 第x页,大于等于1 + * @param pageSize 每页订单数,上限100 + * @param desc 是否时间倒叙 + * @param startCreateTime 起始创建时间 + * @param endCreateTime 最终创建时间 + * @return 订单列表信息 + * @throws WxErrorException . + */ + WxMaShopGetOrderListResponse getOrderList(Integer page, Integer pageSize, Boolean desc, Date startCreateTime, Date endCreateTime) + throws WxErrorException; + + /** + *
+   *
+   * 生成支付参数
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:文档地址
+   * 
+ * + * @param orderId 微信侧订单id + * @param outOrderId 商家自定义订单ID + * @param openid 用户openid + * @return 支付参数 + * @throws WxErrorException . + */ + WxMaShopGetPaymentParamsResponse getPaymentParams(String orderId, String outOrderId, String openid) throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java index ff466ded63..33e733021a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java @@ -1,17 +1,10 @@ package cn.binarywang.wx.miniapp.api.impl; -import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Order.ORDER_ADD; -import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Order.ORDER_CHECK_SCENE; -import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Order.ORDER_GET; -import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Order.ORDER_PAY; - import cn.binarywang.wx.miniapp.api.WxMaService; import cn.binarywang.wx.miniapp.api.WxMaShopOrderService; import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderInfo; import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopOrderPayRequest; -import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAddOrderResponse; -import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; -import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopGetOrderResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.*; import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; import com.google.gson.JsonObject; import lombok.RequiredArgsConstructor; @@ -21,6 +14,12 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.json.GsonHelper; import me.chanjar.weixin.common.util.json.GsonParser; +import org.apache.commons.lang3.time.FastDateFormat; + +import java.text.Format; +import java.util.Date; + +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Order.*; /** * @author boris @@ -28,6 +27,9 @@ @RequiredArgsConstructor @Slf4j public class WxMaShopOrderServiceImpl implements WxMaShopOrderService { + + private final Format dateFormat = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss"); + private static final String ERR_CODE = "errcode"; private static final String MATCH_KEY = "is_matched"; private final WxMaService wxMaService; @@ -45,34 +47,49 @@ public Boolean checkScene(Integer scene) throws WxErrorException { @Override public WxMaShopAddOrderResponse addOrder(WxMaShopOrderInfo orderInfo) throws WxErrorException { - String responseContent = this.wxMaService.post(ORDER_ADD, orderInfo); - JsonObject jsonObject = GsonParser.parse(responseContent); - if (jsonObject.get(ERR_CODE).getAsInt() != 0) { - throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); - } - return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopAddOrderResponse.class); + return this.post(ORDER_ADD,orderInfo, WxMaShopAddOrderResponse.class); } @Override public WxMaShopBaseResponse orderPay(WxMaShopOrderPayRequest request) throws WxErrorException { - String responseContent = this.wxMaService.post(ORDER_PAY, request); - JsonObject jsonObject = GsonParser.parse(responseContent); - if (jsonObject.get(ERR_CODE).getAsInt() != 0) { - throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + return this.post(ORDER_PAY,request, WxMaShopBaseResponse.class); + } + + @Override + public WxMaShopGetOrderResponse getOrder(Integer orderId, String outOrderId, String openid) throws WxErrorException { + return this.post(ORDER_GET, GsonHelper.buildJsonObject("order_id", orderId, "out_order_id", outOrderId, + "openid", openid), WxMaShopGetOrderResponse.class); + } + + @Override + public WxMaShopGetOrderListResponse getOrderList(Integer page, Integer pageSize, Boolean desc, Date startCreateTime, Date endCreateTime) throws WxErrorException { + JsonObject object = new JsonObject(); + object.addProperty("page", page == null ? 1 : page); + object.addProperty("page_size", pageSize == null ? 10 : pageSize); + object.addProperty("desc", desc ? 1 : 2); + if (startCreateTime != null) { + object.addProperty("start_create_time", this.dateFormat.format(startCreateTime)); + } + if (endCreateTime != null) { + object.addProperty("end_create_time", this.dateFormat.format(endCreateTime)); } - return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class); + return this.post(ORDER_GET_LIST, object, WxMaShopGetOrderListResponse.class); } @Override - public WxMaShopGetOrderResponse getOrder(Integer orderId, String outOrderId, String openid) - throws WxErrorException { - String responseContent = this.wxMaService.post(ORDER_GET, + public WxMaShopGetPaymentParamsResponse getPaymentParams(String orderId, String outOrderId, String openid) throws WxErrorException { + return this.post(ORDER_GET_PAYMENT_PARAMS, GsonHelper.buildJsonObject("order_id", orderId, "out_order_id", outOrderId, - "openid", openid)); + "openid", openid), WxMaShopGetPaymentParamsResponse.class); + } + + + private T post(String url, Object params, Class classOfT) throws WxErrorException { + String responseContent = this.wxMaService.post(url, params); JsonObject jsonObject = GsonParser.parse(responseContent); if (jsonObject.get(ERR_CODE).getAsInt() != 0) { throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); } - return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopGetOrderResponse.class); + return WxMaGsonBuilder.create().fromJson(responseContent, classOfT); } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java index 661fa3208a..c3cc219d2f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java @@ -14,6 +14,12 @@ public class WxMaShopOrderDetail implements Serializable { private static final long serialVersionUID = 3325843289672341160L; + /** + * 推广员、分享员信息 + */ + @SerializedName("promotion_info") + private WxMaShopPromotionInfo promotionInfo; + /** * 下单商品信息 *
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java
new file mode 100644
index 0000000000..b5c263ad19
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java
@@ -0,0 +1,39 @@
+package cn.binarywang.wx.miniapp.bean.shop;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 推广员、分享员信息
+ *
+ * @author zhongjun
+ * @date 2022/5/17
+ **/
+@Data
+public class WxMaShopPromotionInfo implements Serializable {
+  private static final long serialVersionUID = -812058443344709898L;
+  /**
+   * 推广员唯一ID
+   */
+  @SerializedName("promoter_id")
+  private String promoterId;
+
+  /**
+   * 推广员视频号昵称
+   */
+  @SerializedName("finder_nickname")
+  private String finderNickname;
+  /**
+   * 推广员openid
+   */
+  @SerializedName("promoter_openid")
+  private String promoterOpenid;
+
+  /**
+   * 分享员openid
+   */
+  @SerializedName("sharer_openid")
+  private String sharerOpenid;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java
new file mode 100644
index 0000000000..0596843396
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java
@@ -0,0 +1,30 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderResult;
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serializable;
+
+/**
+ * @author leiin
+ * @date 2021/3/23
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxMaShopGetOrderListResponse extends WxMaShopBaseResponse implements Serializable {
+  private static final long serialVersionUID = -81207907908726897L;
+
+  /**
+   * 订单满足条件的总数
+   */
+  @SerializedName("total_num")
+  private Integer totalNum;
+
+  /**
+   * 订单列表
+   */
+  @SerializedName("order")
+  private WxMaShopOrderResult order;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java
new file mode 100644
index 0000000000..fc1bc4767d
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java
@@ -0,0 +1,41 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+
+/**
+ * 生成支付参数响应
+ *
+ * @author zhongjun
+ * @date 2022/5/17
+ **/
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxMaShopGetPaymentParamsResponse extends WxMaShopBaseResponse implements Serializable {
+  private static final long serialVersionUID = -8796836131438585559L;
+
+  @SerializedName("payment_params")
+  private PaymentParams paymentParams;
+
+  @Getter
+  @Setter
+  public static class PaymentParams {
+
+    private String timeStamp;
+
+    private String nonceStr;
+
+    @SerializedName("package")
+    private String packageValue;
+
+    private String signType;
+
+    private String paySign;
+  }
+
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
index 0124943b68..132ee8927f 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
@@ -418,6 +418,8 @@ interface Order {
       String ORDER_ADD = "https://api.weixin.qq.com/shop/order/add";
       String ORDER_PAY = "https://api.weixin.qq.com/shop/order/pay";
       String ORDER_GET = "https://api.weixin.qq.com/shop/order/get";
+      String ORDER_GET_LIST = "https://api.weixin.qq.com/shop/order/get_list";
+      String ORDER_GET_PAYMENT_PARAMS = "https://api.weixin.qq.com/shop/order/getpaymentparams";
     }
 
     interface Register {

From 529f786814b50ee8fe8969bb6087329f0a720933 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=AB=98=E5=B2=A9?= 
Date: Sun, 22 May 2022 21:14:49 +0800
Subject: [PATCH 237/622] =?UTF-8?q?:art:=20#2653=20=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=94=AF=E4=BB=98=E5=88=86?=
 =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E6=9C=8D?=
 =?UTF-8?q?=E5=8A=A1=E5=95=86=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ecommerce/PartnerTransactionsRequest.java |   6 +
 .../wxpay/bean/ecommerce/SignatureHeader.java |   4 +
 .../wxpay/bean/notify/SignatureHeader.java    |   4 +
 .../payscore/WxPartnerPayScoreRequest.java    |  39 ++
 .../payscore/WxPartnerPayScoreResult.java     |  42 +++
 .../bean/payscore/WxPayScoreRequest.java      |   5 +-
 .../wxpay/bean/payscore/WxPayScoreResult.java |  13 +-
 .../wxpay/service/PartnerPayScoreService.java | 277 ++++++++++++++
 .../impl/PartnerPayScoreServiceImpl.java      | 341 ++++++++++++++++++
 9 files changed, 724 insertions(+), 7 deletions(-)
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java
index dc4ebfe4a7..5fbc02a776 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsRequest.java
@@ -1,6 +1,8 @@
 package com.github.binarywang.wxpay.bean.ecommerce;
 
 import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 
@@ -17,7 +19,9 @@
  * @author cloudX
  */
 @Data
+@Builder
 @NoArgsConstructor
+@AllArgsConstructor
 public class PartnerTransactionsRequest implements Serializable {
   private static final long serialVersionUID = -1550405819444680465L;
 
@@ -277,6 +281,7 @@ public static class Discount implements Serializable {
 
   @Data
   @NoArgsConstructor
+  @AllArgsConstructor
   public static class Amount implements Serializable {
     private static final long serialVersionUID = -4967636398225864273L;
 
@@ -312,6 +317,7 @@ public static class Amount implements Serializable {
 
   @Data
   @NoArgsConstructor
+  @AllArgsConstructor
   public static class Payer implements Serializable {
     private static final long serialVersionUID = -3946401119476159971L;
 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SignatureHeader.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SignatureHeader.java
index bd50ac89d4..7d894fcd80 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SignatureHeader.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SignatureHeader.java
@@ -1,5 +1,7 @@
 package com.github.binarywang.wxpay.bean.ecommerce;
 
+import lombok.AllArgsConstructor;
+import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 
@@ -10,7 +12,9 @@
  * 文档地址: https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-yan-zheng
  */
 @Data
+@Builder
 @NoArgsConstructor
+@AllArgsConstructor
 public class SignatureHeader implements Serializable {
   private static final long serialVersionUID = -6958015499416059949L;
   /**
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/SignatureHeader.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/SignatureHeader.java
index d010637a8c..daa6d6e724 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/SignatureHeader.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/SignatureHeader.java
@@ -1,5 +1,7 @@
 package com.github.binarywang.wxpay.bean.notify;
 
+import lombok.AllArgsConstructor;
+import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 
@@ -10,7 +12,9 @@
  * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml
  */
 @Data
+@Builder
 @NoArgsConstructor
+@AllArgsConstructor
 public class SignatureHeader implements Serializable {
   private static final long serialVersionUID = -1L;
   /**
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java
new file mode 100644
index 0000000000..8948d3d4c3
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java
@@ -0,0 +1,39 @@
+package com.github.binarywang.wxpay.bean.payscore;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+import me.chanjar.weixin.common.util.json.WxGsonBuilder;
+
+/**
+ * @author hallkk
+ * @date 2022/05/18
+ */
+@Data
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxPartnerPayScoreRequest extends WxPayScoreRequest {
+  private static final long serialVersionUID = 6269843192878112955L;
+
+  public String toJson() {
+    return WxGsonBuilder.create().toJson(this);
+  }
+
+  @SerializedName("sub_appid")
+  private String subAppid;
+
+  @SerializedName("sub_mchid")
+  private String subMchid;
+
+  @SerializedName("out_apply_no")
+  private String outApplyNo;
+
+  @SerializedName("result_notify_url")
+  private String resultNotifyUrl;
+
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java
new file mode 100644
index 0000000000..d8a350efef
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java
@@ -0,0 +1,42 @@
+package com.github.binarywang.wxpay.bean.payscore;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.common.util.json.WxGsonBuilder;
+
+/**
+ * @author hallkk
+ * @date 2022/05/18
+ */
+@Data
+@NoArgsConstructor
+public class WxPartnerPayScoreResult extends WxPayScoreResult {
+  private static final long serialVersionUID = 718267574622164410L;
+
+  public static WxPartnerPayScoreResult fromJson(String json) {
+    return WxGsonBuilder.create().fromJson(json, WxPartnerPayScoreResult.class);
+  }
+
+  @SerializedName("sub_appid")
+  private String subAppid;
+
+  @SerializedName("sub_mchid")
+  private String subMchid;
+
+  @SerializedName("sub_openid")
+  private String subOpenId;
+
+  @SerializedName("out_apply_no")
+  private String outApplyNo;
+
+  @SerializedName("result_notify_url")
+  private String resultNotifyUrl;
+
+  @SerializedName("apply_state")
+  private String applyState;
+
+  @SerializedName("reject_reason")
+  private String rejectReason;
+
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java
index 0f4b92a7b7..295b7000eb 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java
@@ -10,6 +10,7 @@
 import lombok.Data;
 import lombok.NoArgsConstructor;
 import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
 import me.chanjar.weixin.common.util.json.WxGsonBuilder;
 
 /**
@@ -17,7 +18,7 @@
  * @date 2020/5/12 16:36
  */
 @Data
-@Builder
+@SuperBuilder
 @NoArgsConstructor
 @AllArgsConstructor
 @Accessors(chain = true)
@@ -82,6 +83,6 @@ public String toJson() {
   @SerializedName("detail")
   private Detail detail;
   @SerializedName("authorization_code")
-  private  String authorizationCode;
+  private String authorizationCode;
 
 }
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java
index 8e78b1b985..1cd4eef539 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java
@@ -85,20 +85,23 @@ public static WxPayScoreResult fromJson(String json) {
   @SerializedName("payScoreSignInfo")
   private Map payScoreSignInfo;
 
+  @SerializedName("openid")
+  private String openId;
+
   @SerializedName("apply_permissions_token")
-  private  String applyPermissionsToken;
+  private String applyPermissionsToken;
 
   @SerializedName("authorization_code")
-  private  String authorizationCode;
+  private String authorizationCode;
 
   @SerializedName("authorization_state")
-  private  String authorizationState;
+  private String authorizationState;
 
   @SerializedName("cancel_authorization_time")
-  private  String cancelAuthorizationTime;
+  private String cancelAuthorizationTime;
 
   @SerializedName("authorization_success_time")
-  private  String authorizationSuccessTime;
+  private String authorizationSuccessTime;
 
   @SerializedName("openid")
   private String openid;
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java
new file mode 100644
index 0000000000..e55b83785d
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java
@@ -0,0 +1,277 @@
+package com.github.binarywang.wxpay.service;
+
+import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader;
+import com.github.binarywang.wxpay.bean.payscore.PayScoreNotifyData;
+import com.github.binarywang.wxpay.bean.payscore.UserAuthorizationStatusNotifyResult;
+import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreRequest;
+import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreResult;
+import com.github.binarywang.wxpay.exception.WxPayException;
+
+/**
+ * 
+ *  服务商支付分相关服务类.
+ *   微信支付分是对个人的身份特质、支付行为、使用历史等情况的综合计算分值,旨在为用户提供更简单便捷的生活方式。
+ *   微信用户可以在具体应用场景中,开通微信支付分。开通后,用户可以在【微信—>钱包—>支付分】中查看分数和使用记录。
+ *   (即需在应用场景中使用过一次,钱包才会出现支付分入口)
+ *
+ * @author hallkk
+ * @date 2022/05/18
+ */
+public interface PartnerPayScoreService {
+
+
+  /**
+   * 
+   * 支付分商户预授权API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_1.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions
+   * 
+ * + * @param request 请求对象 + * @return WxPartnerPayScoreResult wx partner payscore result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult permissions(WxPartnerPayScoreRequest request) throws WxPayException; + + + /** + *
+   * 支付分查询与用户授权记录(授权协议号)API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_2.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/authorization-code/{authorization_code}
+   * 
+ * + * @param serviceId + * @param subMchid + * @param authorizationCode + * @return WxPayScoreResult wx partner payscore result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult permissionsQueryByAuthorizationCode(String serviceId, String subMchid, + String authorizationCode) throws WxPayException; + + + /** + *
+   * 解除用户授权关系(授权协议号)API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_4.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/authorization-code/{authorization_code}/terminate
+   * 
+ * + * @param serviceId + * @param subMchid + * @param authorizationCode + * @param reason + * @return WxPartnerPayScoreResult wx partner payscore result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult permissionsTerminateByAuthorizationCode(String serviceId, String subMchid, + String authorizationCode, String reason) throws WxPayException; + + + /** + *
+   * 支付分查询与用户授权记录(openid)API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_3.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/search
+   * 
+ * + * @param serviceId + * @param subMchid + * @param subAppid + * @param openId + * @param subOpenid + * @return WxPayScoreResult wx partner payscore result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult permissionsQueryByOpenId(String serviceId, String appId, String subMchid, String subAppid, + String openId, String subOpenid) throws WxPayException; + + + /** + *
+   * 解除用户授权关系(openid)API
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_5.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/openid/{openid}/terminate
+   * 
+ * + * @param serviceId + * @param subMchid + * @param subAppid + * @param openId + * @param subOpenid + * @param reason + * @return WxPayScoreResult wx partner payscore result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult permissionsTerminateByOpenId(String serviceId, String appId, String subMchid, String subAppid, + String openId, String subOpenid, String reason) throws WxPayException; + + + /** + *
+   * 支付分创建订单API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_1.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder
+   * 
+ * + * @param request 请求对象 + * @return WxPayScoreResult wx partner payscore result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult createServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; + + /** + *
+   * 支付分查询订单API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_2.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder
+   * 
+ * + * @param serviceId + * @param subMchid + * @param outOrderNo the out order no + * @param queryId the query id + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult queryServiceOrder(String serviceId, String subMchid, + String outOrderNo, String queryId) throws WxPayException; + + /** + *
+   * 支付分取消订单API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_3.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/cancel
+   * 
+ *

+ * + * @param serviceId + * @param subMchid + * @param outOrderNo the out order no + * @param reason the reason + * @return com.github.binarywang.wxpay.bean.payscore.WxPayScoreResult wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult cancelServiceOrder(String serviceId, String appId, String subMchid, + String outOrderNo, String reason) throws WxPayException; + + /** + *

+   * 支付分修改订单金额API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_4.shtml
+   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/modify
+   * 
+ *

+ * + * @param request the request + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult modifyServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; + + /** + *

+   * 支付分完结订单API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_5.shtml
+   * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/complete
+   * 
+ * + * @param request the request + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + void completeServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; + + /** + *
+   * 商户发起催收扣款API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_6.shtml
+   * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/pay
+   *
+   * 
+ * + * @param serviceId + * @param subMchid + * @param outOrderNo the out order no + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult payServiceOrder(String serviceId, String appId, String subMchid, String outOrderNo) throws WxPayException; + + /** + *
+   * 支付分订单收款API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_7.shtml
+   * 请求URL: https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/sync
+   * 
+ * + * @param request the request + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult syncServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; + + /** + *
+   * 收付通子商户申请绑定支付分服务API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter9_1.shtml
+   * 请求URL: https://api.mch.weixin.qq.com/v3/payscore/partner/service-account-applications
+   * 
+ * + * @param request the request + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult applyServiceAccount(WxPartnerPayScoreRequest request) throws WxPayException; + + /** + *
+   * 查询收付通子商户服务绑定结果API.
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter9_2.shtml
+   * 请求URL: https://api.mch.weixin.qq.com/v3/payscore/partner/service-account-applications/{out_apply_no}
+   * 
+ * + * @param outApplyNo 商户申请绑定单号 + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult queryServiceAccountState(String outApplyNo) throws WxPayException; + + /** + *
+   * 授权/解除授权服务回调数据处理
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter4_4.shtml
+   * 
+ * + * @param notifyData 通知数据 + * @param header 通知头部数据,不传则表示不校验头 + * @return 解密后通知数据 return user authorization status notify result + * @throws WxPayException the wx pay exception + */ + UserAuthorizationStatusNotifyResult parseUserAuthorizationStatusNotifyResult(String notifyData, SignatureHeader header) throws WxPayException; + + /** + *
+   * 支付分回调内容解析方法
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
+   * 
+ * + * @param data the data + * @return the wx pay score result + */ + PayScoreNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException; + + /** + *
+   * 支付分回调NotifyData解密resource
+   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
+   * 
+ * + * @param data the data + * @return the wx pay score result + * @throws WxPayException the wx pay exception + */ + WxPartnerPayScoreResult decryptNotifyDataResource(PayScoreNotifyData data) throws WxPayException; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java new file mode 100644 index 0000000000..48ea1b2f6b --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java @@ -0,0 +1,341 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; +import com.github.binarywang.wxpay.bean.payscore.PayScoreNotifyData; +import com.github.binarywang.wxpay.bean.payscore.UserAuthorizationStatusNotifyResult; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreRequest; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreResult; +import com.github.binarywang.wxpay.config.WxPayConfig; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.PartnerPayScoreService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.AesUtils; +import com.google.common.collect.Maps; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; +import org.apache.commons.lang3.StringUtils; +import org.apache.http.client.utils.URIBuilder; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.nio.charset.StandardCharsets; +import java.security.GeneralSecurityException; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * @author hallkk + * @date 2022/05/18 + */ +@RequiredArgsConstructor +public class PartnerPayScoreServiceImpl implements PartnerPayScoreService { + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService; + + @Override + public WxPartnerPayScoreResult permissions(WxPartnerPayScoreRequest request) throws WxPayException { + String url = this.payService.getPayBaseUrl() + "/v3/payscore/partner/permissions"; + request.setAppid(request.getAppid()); + request.setServiceId(request.getServiceId()); + WxPayConfig config = this.payService.getConfig(); + String permissionNotifyUrl = config.getPayScorePermissionNotifyUrl(); + if (StringUtils.isBlank(permissionNotifyUrl)) { + throw new WxPayException("授权回调地址未配置"); + } + String authorizationCode = request.getAuthorizationCode(); + if (StringUtils.isBlank(authorizationCode)) { + throw new WxPayException("authorizationCode不允许为空"); + } + request.setNotifyUrl(permissionNotifyUrl); + String result = this.payService.postV3(url, request.toJson()); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult permissionsQueryByAuthorizationCode(String serviceId, String subMchid, String authorizationCode) + throws WxPayException { + if (StringUtils.isBlank(authorizationCode)) { + throw new WxPayException("authorizationCode不允许为空"); + } + String url = String.format("%s/v3/payscore/partner/permissions/authorization-code/%s", this.payService.getPayBaseUrl(), authorizationCode); + URIBuilder uriBuilder; + try { + uriBuilder = new URIBuilder(url); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + + uriBuilder.setParameter("service_id", serviceId); + uriBuilder.setParameter("sub_mchid", subMchid); + try { + String result = payService.getV3(uriBuilder.build().toString()); + return WxPartnerPayScoreResult.fromJson(result); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + } + + @Override + public WxPartnerPayScoreResult permissionsTerminateByAuthorizationCode(String serviceId, String subMchid, + String authorizationCode, String reason) throws WxPayException { + if (StringUtils.isBlank(authorizationCode)) { + throw new WxPayException("authorizationCode不允许为空"); + } + String url = String.format( + "%s/v3/payscore/partner/permissions/authorization-code/%s/terminate", + this.payService.getPayBaseUrl(), + authorizationCode + ); + Map map = new HashMap<>(4); + map.put("service_id", serviceId); + map.put("sub_mchid", subMchid); + map.put("reason", reason); + String result = payService.postV3(url, WxGsonBuilder.create().toJson(map)); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult permissionsQueryByOpenId(String serviceId, String appId, String subMchid, + String subAppid, String openId, String subOpenid) throws WxPayException { + if (StringUtils.isAllEmpty(openId, subOpenid) || !StringUtils.isAnyEmpty(openId, subOpenid)) { + throw new WxPayException("open_id,sub_openid不允许都填写或都不填写"); + } + if (StringUtils.isBlank(subMchid)) { + throw new WxPayException("sub_mchid不允许都为空"); + } + String url = String.format("%s/v3/payscore/partner/permissions/openid/%s", this.payService.getPayBaseUrl(), openId); + URIBuilder uriBuilder; + try { + uriBuilder = new URIBuilder(url); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + + uriBuilder.setParameter("appid", appId); + uriBuilder.setParameter("service_id", serviceId); + uriBuilder.setParameter("sub_mchid", subMchid); + uriBuilder.setParameter("sub_appid", subAppid); + uriBuilder.setParameter("openid", openId); + uriBuilder.setParameter("sub_openid", subOpenid); + + if (StringUtils.isNotEmpty(openId)) { + uriBuilder.setParameter("openid", openId); + } + if (StringUtils.isNotEmpty(subOpenid)) { + uriBuilder.setParameter("sub_openid", subOpenid); + } + + try { + String result = payService.getV3(uriBuilder.build().toString()); + return WxPartnerPayScoreResult.fromJson(result); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + } + + @Override + public WxPartnerPayScoreResult permissionsTerminateByOpenId(String serviceId, String appId, String subMchid, String subAppid, String openId, String subOpenid, String reason) throws WxPayException { + if (StringUtils.isAllEmpty(openId, subOpenid) || !StringUtils.isAnyEmpty(openId, subOpenid)) { + throw new WxPayException("open_id,sub_openid不允许都填写或都不填写"); + } + String url = String.format("%s/v3/payscore/partner/permissions/openid/%s/terminate", this.payService.getPayBaseUrl(), openId); + Map map = new HashMap<>(4); + map.put("appid", appId); + map.put("sub_appid", subAppid); + map.put("service_id", serviceId); + if (StringUtils.isNotEmpty(openId)) { + map.put("openid", openId); + } + if (StringUtils.isNotEmpty(subOpenid)) { + map.put("sub_openid", subOpenid); + } + map.put("sub_mchid", subMchid); + map.put("reason", reason); + String result = payService.postV3(url, WxGsonBuilder.create().toJson(map)); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult createServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException { + String url = this.payService.getPayBaseUrl() + "/v3/payscore/partner/serviceorder"; + + WxPayConfig config = this.payService.getConfig(); + request.setNotifyUrl(config.getPayScoreNotifyUrl()); + String result = this.payService.postV3(url, request.toJson()); + + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult queryServiceOrder(String serviceId, String subMchid, String outOrderNo, + String queryId) throws WxPayException { + String url = this.payService.getPayBaseUrl() + "/v3/payscore/partner/serviceorder"; + + URIBuilder uriBuilder; + try { + uriBuilder = new URIBuilder(url); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + uriBuilder.setParameter("service_id", serviceId); + uriBuilder.setParameter("sub_mchid", subMchid); + if (StringUtils.isAllEmpty(outOrderNo, queryId) || !StringUtils.isAnyEmpty(outOrderNo, queryId)) { + throw new WxPayException("out_order_no,query_id不允许都填写或都不填写"); + } + if (StringUtils.isNotEmpty(outOrderNo)) { + uriBuilder.setParameter("out_order_no", outOrderNo); + } + if (StringUtils.isNotEmpty(queryId)) { + uriBuilder.setParameter("query_id", queryId); + } + + try { + String result = payService.getV3(uriBuilder.build().toString()); + return WxPartnerPayScoreResult.fromJson(result); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + } + + @Override + public WxPartnerPayScoreResult cancelServiceOrder(String serviceId, String appId, String subMchid, String outOrderNo, String reason) throws WxPayException { + String url = String.format("%s/v3/payscore/partner/serviceorder/%s/cancel", this.payService.getPayBaseUrl(), outOrderNo); + Map map = new HashMap<>(4); + map.put("appid", appId); + map.put("service_id", serviceId); + map.put("sub_mchid", subMchid); + map.put("reason", reason); + if (StringUtils.isAnyEmpty(appId, serviceId, subMchid, reason)) { + throw new WxPayException("appid, service_id, sub_mchid, reason都不能为空"); + } + String result = payService.postV3(url, WxGsonBuilder.create().toJson(map)); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult modifyServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException { + String outOrderNo = request.getOutOrderNo(); + String url = String.format("%s/v3/payscore/partner/serviceorder/%s/modify", this.payService.getPayBaseUrl(), outOrderNo); + request.setAppid(this.payService.getConfig().getAppId()); + request.setOutOrderNo(null); + String result = payService.postV3(url, request.toJson()); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public void completeServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException { + String outOrderNo = request.getOutOrderNo(); + String url = String.format("%s/v3/payscore/partner/serviceorder/%s/complete", this.payService.getPayBaseUrl(), outOrderNo); + request.setAppid(request.getAppid()); + request.setServiceId(request.getServiceId()); + request.setOutOrderNo(null); + request.setSubMchid(request.getSubMchid()); + this.payService.postV3(url, request.toJson()); + } + + @Override + public WxPartnerPayScoreResult payServiceOrder(String serviceId, String appId, String subMchid, String outOrderNo) throws WxPayException { + String url = String.format("%s/v3/payscore/partner/serviceorder/%s/pay", this.payService.getPayBaseUrl(), outOrderNo); + Map map = new HashMap<>(3); + map.put("appid", appId); + map.put("service_id", serviceId); + map.put("sub_mchid", subMchid); + if (StringUtils.isAnyEmpty(appId, serviceId, subMchid)) { + throw new WxPayException("appid, service_id, sub_mchid都不能为空"); + } + String result = payService.postV3(url, WxGsonBuilder.create().toJson(map)); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult syncServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException { + String outOrderNo = request.getOutOrderNo(); + String url = String.format("%s/v3/payscore/partner/serviceorder/%s/sync", this.payService.getPayBaseUrl(), outOrderNo); + request.setAppid(this.payService.getConfig().getAppId()); + request.setOutOrderNo(null); + String result = payService.postV3(url, request.toJson()); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public WxPartnerPayScoreResult applyServiceAccount(WxPartnerPayScoreRequest request) throws WxPayException { + String url = String.format("%s/v3/payscore/partner/service-account-applications", this.payService.getPayBaseUrl()); + Map params = Maps.newHashMap(); + params.put("service_id", request.getServiceId()); + params.put("appid", request.getAppid()); + params.put("sub_mchid", request.getSubMchid()); + params.put("sub_appid", request.getSubAppid()); + params.put("out_apply_no", request.getOutApplyNo()); + params.put("result_notify_url", request.getResultNotifyUrl()); + + String result = payService.postV3(url, WxGsonBuilder.create().toJson(params)); + return WxPartnerPayScoreResult.fromJson(result); + + } + + @Override + public WxPartnerPayScoreResult queryServiceAccountState(String outApplyNo) throws WxPayException { + String url = String.format("%s/v3/payscore/partner/service-account-applications/%s", this.payService.getPayBaseUrl(), outApplyNo); + String result = payService.getV3(url); + return WxPartnerPayScoreResult.fromJson(result); + } + + @Override + public UserAuthorizationStatusNotifyResult parseUserAuthorizationStatusNotifyResult(String notifyData, SignatureHeader header) throws WxPayException { + PayScoreNotifyData response = parseNotifyData(notifyData, header); + PayScoreNotifyData.Resource resource = response.getResource(); + String cipherText = resource.getCipherText(); + String associatedData = resource.getAssociatedData(); + String nonce = resource.getNonce(); + String apiV3Key = this.payService.getConfig().getApiV3Key(); + try { + String result = AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key); + UserAuthorizationStatusNotifyResult notifyResult = GSON.fromJson(result, UserAuthorizationStatusNotifyResult.class); + notifyResult.setRawData(response); + return notifyResult; + } catch (GeneralSecurityException | IOException e) { + throw new WxPayException("解析报文异常!", e); + } + } + + @Override + public PayScoreNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException { + if (Objects.nonNull(header) && !this.verifyNotifySign(header, data)) { + throw new WxPayException("非法请求,头部信息验证失败"); + } + return GSON.fromJson(data, PayScoreNotifyData.class); + } + + @Override + public WxPartnerPayScoreResult decryptNotifyDataResource(PayScoreNotifyData data) throws WxPayException { + PayScoreNotifyData.Resource resource = data.getResource(); + String cipherText = resource.getCipherText(); + String associatedData = resource.getAssociatedData(); + String nonce = resource.getNonce(); + String apiV3Key = this.payService.getConfig().getApiV3Key(); + try { + return WxPartnerPayScoreResult.fromJson(AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key)); + } catch (GeneralSecurityException | IOException e) { + throw new WxPayException("解析报文异常!", e); + } + } + + /** + * 校验通知签名 + * + * @param header 通知头信息 + * @param data 通知数据 + * @return true:校验通过 false:校验不通过 + */ + private boolean verifyNotifySign(SignatureHeader header, String data) { + String beforeSign = String.format("%s\n%s\n%s\n", header.getTimeStamp(), header.getNonce(), data); + return this.payService.getConfig().getVerifier().verify( + header.getSerialNo(), + beforeSign.getBytes(StandardCharsets.UTF_8), + header.getSigned() + ); + } +} From 9517292a0ec3c32bf76daf937224539d6c94dfb2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 22 May 2022 21:15:32 +0800 Subject: [PATCH 238/622] :arrow_up: Bump gson from 2.8.0 to 2.8.9 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 36901cd377..8ed924e080 100644 --- a/pom.xml +++ b/pom.xml @@ -190,7 +190,7 @@ com.google.code.gson gson - 2.8.0 + 2.8.9 com.fasterxml.jackson.dataformat From 1fdfd5c5a2db7d8bd1bd9b973545b818a64fc83c Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Sun, 22 May 2022 21:16:10 +0800 Subject: [PATCH 239/622] =?UTF-8?q?:new:=20#2656=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E7=9B=98=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOaWeDriveService.java | 26 ++++++++ .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 14 ++++ .../oa/wedrive/WxCpFileAclAddRequest.java | 66 +++++++++++++++++++ .../oa/wedrive/WxCpFileAclDelRequest.java | 63 ++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 2 + .../cp/api/WxCpOaWeDriveServiceTest.java | 37 +++++++++++ 6 files changed, 208 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclAddRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclDelRequest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java index c4c4376d5c..94dc5b6444 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java @@ -223,6 +223,32 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, */ WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List fileId) throws WxErrorException; + /** + * 新增指定人 + * 该接口用于对指定文件添加指定人/部门。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_add?access_token=ACCESS_TOKEN + * + * @param request 新增指定人请求参数 + * @return + * @throws WxErrorException + */ + WxCpBaseResp fileAclAdd(@NonNull WxCpFileAclAddRequest request) throws WxErrorException; + + /** + * 删除指定人 + * 该接口用于删除指定文件的指定人/部门。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_del?access_token=ACCESS_TOKEN + * + * @param request 请求参数 + * @return + * @throws WxErrorException + */ + WxCpBaseResp fileAclDel(@NonNull WxCpFileAclDelRequest request) throws WxErrorException; + /** * 文件信息 * 该接口用于获取指定文件的信息。 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index 63095ed4e0..c133585fcc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -153,6 +153,20 @@ public WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List fil return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpBaseResp fileAclAdd(@NonNull WxCpFileAclAddRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_ACL_ADD); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp fileAclDel(@NonNull WxCpFileAclDelRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_ACL_DEL); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + @Override public WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_INFO); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclAddRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclAddRequest.java new file mode 100644 index 0000000000..9320cf3c29 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclAddRequest.java @@ -0,0 +1,66 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 新增指定人请求参数. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpFileAclAddRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("auth_info") + private List authInfo; + + @Getter + @Setter + public static class AuthInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("type") + private Integer type; + + @SerializedName("departmentid") + private Integer departmentId; + + @SerializedName("auth") + private Integer auth; + + @SerializedName("userid") + private String userId; + + public static AuthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpFileAclAddRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileAclAddRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclDelRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclDelRequest.java new file mode 100644 index 0000000000..a86754a1dc --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileAclDelRequest.java @@ -0,0 +1,63 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 删除指定人请求参数. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpFileAclDelRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("userid") + private String userId; + + @SerializedName("fileid") + private String fileId; + + @SerializedName("auth_info") + private List authInfo; + + @Getter + @Setter + public static class AuthInfo implements Serializable { + private static final long serialVersionUID = -4960239393895754598L; + + @SerializedName("type") + private Integer type; + + @SerializedName("departmentid") + private Integer departmentId; + + @SerializedName("userid") + private String userId; + + public static AuthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AuthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpFileAclDelRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileAclDelRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 180f5f5946..df8c0278f1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -161,6 +161,8 @@ interface Oa { String FILE_MOVE = "/cgi-bin/wedrive/file_move"; String FILE_DELETE = "/cgi-bin/wedrive/file_delete"; String FILE_INFO = "/cgi-bin/wedrive/file_info"; + String FILE_ACL_ADD = "/cgi-bin/wedrive/file_acl_add"; + String FILE_ACL_DEL = "/cgi-bin/wedrive/file_acl_del"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index a1205df240..73bc0a2fc8 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -2,6 +2,7 @@ import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; +import lombok.var; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.oa.wedrive.*; @@ -48,6 +49,42 @@ public void test() throws Exception { String fileId = "s.ww45d3e188865aca30.652091685u4h_f.652344507ysDL"; String fileId2 = "s.ww45d3e188865aca30.652091685u4h_f.652696024TU4P"; + /** + * 删除指定人 + */ + WxCpFileAclDelRequest aclDelRequest = new WxCpFileAclDelRequest(); + aclDelRequest.setUserId(uId); + aclDelRequest.setFileId(fileId2); + + ArrayList aclDelList = Lists.newArrayList(); + + WxCpFileAclDelRequest.AuthInfo aclDelAuthInfo = new WxCpFileAclDelRequest.AuthInfo(); + aclDelAuthInfo.setType(1); + aclDelAuthInfo.setUserId(uId); + + aclDelList.add(aclDelAuthInfo); + aclDelRequest.setAuthInfo(aclDelList); + + WxCpBaseResp aclDel = cpService.getOaWeDriveService().fileAclDel(aclDelRequest); + log.info("删除指定人返回结果为:{}", aclDel.toJson()); + + /** + * 新增指定人 + */ + WxCpFileAclAddRequest fileAclAdd = new WxCpFileAclAddRequest(); + fileAclAdd.setUserId(uId); + fileAclAdd.setFileId(fileId2); + var authInfoData = new WxCpFileAclAddRequest.AuthInfo(); + authInfoData.setType(1); + authInfoData.setAuth(1); + authInfoData.setUserId(uId); + + ArrayList authList = Lists.newArrayList(); + authList.add(authInfoData); + fileAclAdd.setAuthInfo(authList); + + WxCpBaseResp result = cpService.getOaWeDriveService().fileAclAdd(fileAclAdd); + log.info("返回结果为:{}", result.toJson()); /** * 删除文件 From dbf9622395dc41bcc14046df5c643637f48b85a7 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 22 May 2022 22:12:37 +0800 Subject: [PATCH 240/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.4?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 8ed924e080..ec3e81826c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 737ebfc339..9083f41ed6 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 179a6b67db..fefb012108 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 5143df78aa..36e8963f66 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 7b0c7b9189..4a8f15041d 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 58ce5cf2a6..85f5e87d6a 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index ee31d2e15d..b06552c581 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 2261eed7b8..d09d09ed12 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index c787979e4f..6642c05433 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index b77108d18a..d5d25cda37 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 3c61377132..fe89d8deae 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 83b48d7704..c2f6a398e7 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 6630ae9124..a9eb6dff6f 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index ba7eb0c62a..354f62bf47 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 5f2f8f196e..ff6c9db264 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 7a66ea4a04..6e15cc4941 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.3.B + 4.3.4.B weixin-java-qidian From f83c55c010428421ba70344f18eedbd7c4e28736 Mon Sep 17 00:00:00 2001 From: hywr <33077958+hywr@users.noreply.github.com> Date: Mon, 23 May 2022 23:06:34 +0800 Subject: [PATCH 241/622] =?UTF-8?q?:new:=20#2658=20=E3=80=90=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=9A=90=E7=A7=81=E4=BF=9D=E6=8A=A4=E6=8C=87=E5=BC=95=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=A2=9E=E5=8A=A0=E7=94=B3=E8=AF=B7=E9=9A=90=E7=A7=81?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpOaWeDriveServiceTest.java | 4 +- .../wx/miniapp/bean/WxMaCodeLineColor.java | 2 + .../open/api/WxOpenMaPrivacyService.java | 40 +++++++- .../api/impl/WxOpenMaPrivacyServiceImpl.java | 16 +++- .../ma/privacy/ApplyPrivacyInterface.java | 47 ++++++++++ .../privacy/ApplyPrivacyInterfaceResult.java | 23 +++++ .../ma/privacy/GetPrivacyInterfaceResult.java | 92 +++++++++++++++++++ 7 files changed, 215 insertions(+), 9 deletions(-) create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterface.java create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterfaceResult.java create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index 73bc0a2fc8..219ace129f 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -9,12 +9,12 @@ import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; -import sun.misc.BASE64Encoder; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.ArrayList; +import java.util.Base64; import java.util.List; /** @@ -140,7 +140,7 @@ public void test() throws Exception { byte[] buffer = new byte[(int)file.length()]; inputFile.read(buffer); inputFile.close(); - String encodeBase64Content = new BASE64Encoder().encode(buffer); + String encodeBase64Content = Base64.getEncoder().encodeToString(buffer); fileUploadRequest.setFileBase64Content(encodeBase64Content); WxCpFileUpload fileUpload = cpService.getOaWeDriveService().fileUpload(fileUploadRequest); diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaCodeLineColor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaCodeLineColor.java index 2afb4c073e..388556a7bf 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaCodeLineColor.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaCodeLineColor.java @@ -2,6 +2,7 @@ import lombok.AllArgsConstructor; import lombok.Data; +import lombok.NoArgsConstructor; /** *

@@ -12,6 +13,7 @@
  * @author Element
  */
 @Data
+@NoArgsConstructor
 @AllArgsConstructor
 public class WxMaCodeLineColor {
   private String r = "0", g = "0", b = "0";
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java
index 4bf78f53bc..c8ee243f48 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaPrivacyService.java
@@ -1,14 +1,13 @@
 package me.chanjar.weixin.open.api;
 
 import me.chanjar.weixin.common.error.WxErrorException;
-import me.chanjar.weixin.open.bean.ma.privacy.GetPrivacySettingResult;
-import me.chanjar.weixin.open.bean.ma.privacy.SetPrivacySetting;
-import me.chanjar.weixin.open.bean.ma.privacy.UploadPrivacyFileResult;
+import me.chanjar.weixin.open.bean.ma.privacy.*;
 import org.jetbrains.annotations.Nullable;
 
 /**
- * 微信第三方平台 小程序用户隐私保护指引接口
+ * 微信第三方平台 小程序用户隐私保护指引接口 / 申请隐私接口(从2022年4月18日开始,部分小程序前端 api 需申请后,方可使用。该接口用于获取“需申请并审核通过”后才可使用的接口列表。)
  * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/set_privacy_setting.html
+ * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/apply_api/get_privacy_interface.html
  *
  * @author 广州跨界
  */
@@ -29,6 +28,16 @@ public interface WxOpenMaPrivacyService {
    */
   String OPEN_UPLOAD_PRIVACY_FILE = "https://api.weixin.qq.com/cgi-bin/component/uploadprivacyextfile";
 
+  /**
+   * 4 获取接口列表 从2022年4月18日开始,部分小程序前端 api 需申请后
+   */
+  String GET_PRIVATE_INTERFACE = "https://api.weixin.qq.com/wxa/security/get_privacy_interface";
+
+  /**
+   * 5 申请接口 从2022年4月18日开始,部分小程序前端 api 需申请后
+   */
+  String APPLY_PRIVATE_INTERFACE = "https://api.weixin.qq.com/wxa/security/apply_privacy_interface";
+
 
   /**
    * 查询小程序用户隐私保护指引
@@ -62,4 +71,27 @@ public interface WxOpenMaPrivacyService {
    * @throws WxErrorException 如果出错,抛出此异常
    */
   UploadPrivacyFileResult uploadPrivacyFile(String content) throws WxErrorException;
+
+
+  /**
+   * 隐私接口-获取接口列表
+   * 从2022年4月18日开始,部分小程序前端 api 需申请后,方可使用。该接口用于获取“需申请并审核通过”后才可使用的接口列表。
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/apply_api/get_privacy_interface.html
+   *
+   * @return 获取结果
+   * @throws WxErrorException 如果出错,抛出此异常
+   */
+  GetPrivacyInterfaceResult getPrivacyInterface() throws WxErrorException;
+
+
+  /**
+   * 隐私接口-申请接口
+   * 从2022年4月18日开始,部分小程序前端 api 需申请后,方可使用。该接口用于获取“需申请并审核通过”后才可使用的接口列表。
+   * 文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/apply_api/get_privacy_interface.html
+   *
+   * @param dto 请求参数
+   * @return 获取结果
+   * @throws WxErrorException 如果出错,抛出此异常
+   */
+  ApplyPrivacyInterfaceResult applyPrivacyInterface(ApplyPrivacyInterface dto) throws WxErrorException;
 }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java
index f7deb523c6..d8eb840c97 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaPrivacyServiceImpl.java
@@ -6,9 +6,7 @@
 import me.chanjar.weixin.common.error.WxError;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.open.api.WxOpenMaPrivacyService;
-import me.chanjar.weixin.open.bean.ma.privacy.GetPrivacySettingResult;
-import me.chanjar.weixin.open.bean.ma.privacy.SetPrivacySetting;
-import me.chanjar.weixin.open.bean.ma.privacy.UploadPrivacyFileResult;
+import me.chanjar.weixin.open.bean.ma.privacy.*;
 import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder;
 import org.jetbrains.annotations.Nullable;
 
@@ -52,4 +50,16 @@ public UploadPrivacyFileResult uploadPrivacyFile(String content) throws WxErrorE
 //    return WxOpenGsonBuilder.create().fromJson(json, UploadPrivacyFileResult.class);
     throw new WxErrorException(new WxError(5003, "暂未实现用户隐私指引内容上传"));
   }
+
+  @Override
+  public GetPrivacyInterfaceResult getPrivacyInterface() throws WxErrorException {
+    String json = wxMaService.get(GET_PRIVATE_INTERFACE, "");
+    return WxOpenGsonBuilder.create().fromJson(json, GetPrivacyInterfaceResult.class);
+  }
+
+  @Override
+  public ApplyPrivacyInterfaceResult applyPrivacyInterface(ApplyPrivacyInterface dto) throws WxErrorException {
+    String json = wxMaService.post(APPLY_PRIVATE_INTERFACE, dto);
+    return WxOpenGsonBuilder.create().fromJson(json, ApplyPrivacyInterfaceResult.class);
+  }
 }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterface.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterface.java
new file mode 100644
index 0000000000..b92a680273
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterface.java
@@ -0,0 +1,47 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.List;
+
+/**
+ * 申请隐私接口
+ *
+ * @author 广州跨界
+ */
+@Getter
+@Setter
+public class ApplyPrivacyInterface {
+
+  /**
+   * 接口英文名称,如:wx.chooseAddress/wx.choosePoi/wx.getLocation/wx.onLocationChange/wx.chooseLocation
+   */
+  @SerializedName("api_name")
+  private String apiName;
+
+  /**
+   * 申请说原因,不超过300个字符;需要以utf-8编码提交,否则会出现审核失败
+   */
+  @SerializedName("content")
+  private String content;
+
+  /**
+   * (辅助网页)例如,上传官网网页链接用于辅助审核
+   */
+  @SerializedName("url_list")
+  private List urlList;
+
+  /**
+   * (辅助图片)填写图片的url ,最多10个
+   */
+  @SerializedName("pic_list")
+  private List picList;
+
+  /**
+   * (辅助视频)填写视频的链接 ,最多支持1个;视频格式只支持mp4格式
+   */
+  @SerializedName("video_list")
+  private List videoList;
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterfaceResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterfaceResult.java
new file mode 100644
index 0000000000..c394ad6877
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterfaceResult.java
@@ -0,0 +1,23 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.open.bean.result.WxOpenResult;
+
+/**
+ * 获取接口列表 响应
+ *
+ * @author 广州跨界
+ */
+@Getter
+@Setter
+public class ApplyPrivacyInterfaceResult extends WxOpenResult {
+
+  /**
+   * 审核ID
+   */
+  @SerializedName("audit_id")
+  private Long auditId;
+
+}
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java
new file mode 100644
index 0000000000..39707b5ef1
--- /dev/null
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java
@@ -0,0 +1,92 @@
+package me.chanjar.weixin.open.bean.ma.privacy;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Getter;
+import lombok.Setter;
+import me.chanjar.weixin.open.bean.result.WxOpenResult;
+import org.springframework.lang.Nullable;
+
+import java.util.List;
+
+/**
+ * 获取接口列表 响应
+ *
+ * @author 广州跨界
+ */
+@Getter
+@Setter
+public class GetPrivacyInterfaceResult extends WxOpenResult {
+
+  /**
+   * 隐私接口列表
+   */
+  @SerializedName("interface_list")
+  private List interfaceList;
+
+
+  /**
+   * 隐私接口
+   */
+  @Getter
+  @Setter
+  public static class Interface {
+
+    /**
+     * 接口英文名称,如:wx.chooseAddress/wx.choosePoi/wx.getLocation/wx.onLocationChange/wx.chooseLocation
+     */
+    @SerializedName("api_name")
+    private String apiName;
+
+    /**
+     * 接口中文名称,如:获取用户收货地址/选择位置,支持模糊定位(精确到市)和精确定位混选/获取当前的地理位置、速度/监听实时地理位置变化事件/打开地图选择位置
+     */
+    @SerializedName("api_ch_name")
+    private String apiChName;
+
+    /**
+     * api描述
+     */
+    @SerializedName("api_desc")
+    private String apiDesc;
+
+    /**
+     * 申请时间 ,该字段发起申请后才会有
+     */
+    @Nullable
+    @SerializedName("apply_time")
+    private String applyTime;
+
+    /**
+     * 接口状态,该字段发起申请后才会有,1待申请开通,2无权限,3申请中,4申请失败,5已开通
+     */
+    @Nullable
+    @SerializedName("status")
+    private String status;
+
+    /**
+     * 申请单号,该字段发起申请后才会有
+     */
+    @Nullable
+    @SerializedName("audit_id")
+    private String auditId;
+
+    /**
+     * 申请被驳回原因或者无权限,该字段申请驳回时才会有
+     */
+    @Nullable
+    @SerializedName("fail_reason")
+    private String failReason;
+
+    /**
+     * api文档链接
+     */
+    @SerializedName("fail_reapi_linkason")
+    private String apiLink;
+
+    /**
+     * 分组名,如:地理位置
+     */
+    @SerializedName("group_name")
+    private String groupName;
+  }
+}

From 403d9c58ea6adb77c61df02a3484da3f9959bc9d Mon Sep 17 00:00:00 2001
From: 0katekate0 <32161300+0katekate0@users.noreply.github.com>
Date: Thu, 26 May 2022 16:10:44 +0800
Subject: [PATCH 242/622] =?UTF-8?q?:new:=20#2665=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE?=
 =?UTF-8?q?=E7=9B=98=E6=96=87=E4=BB=B6=E6=9D=83=E9=99=90=E7=9B=B8=E5=85=B3?=
 =?UTF-8?q?=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/cp/api/WxCpOaWeDriveService.java   | 30 +++++++++++++++++++
 .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 24 +++++++++++++++
 .../cp/bean/oa/wedrive/WxCpFileShare.java     | 30 +++++++++++++++++++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  2 ++
 .../cp/api/WxCpOaWeDriveServiceTest.java      | 13 ++++++++
 .../wx/miniapp/api/WxMaQrcodeService.java     |  3 +-
 6 files changed, 101 insertions(+), 1 deletion(-)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileShare.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
index 94dc5b6444..fff47ca10d 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
@@ -249,6 +249,36 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    */
   WxCpBaseResp fileAclDel(@NonNull WxCpFileAclDelRequest request) throws WxErrorException;
 
+  /**
+   * 分享设置
+   * 该接口用于文件的分享设置。
+   * 

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_setting?access_token=ACCESS_TOKEN + * + * @param userId + * @param fileId + * @param authScope + * @param auth + * @return + * @throws WxErrorException + */ + WxCpBaseResp fileSetting(@NonNull String userId, @NonNull String fileId, @NonNull Integer authScope, Integer auth) throws WxErrorException; + + /** + * 获取分享链接 + * 该接口用于获取文件的分享链接。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_share?access_token=ACCESS_TOKEN + * + * @param userId + * @param fileId + * @return + * @throws WxErrorException + */ + WxCpFileShare fileShare(@NonNull String userId, @NonNull String fileId) throws WxErrorException; + /** * 文件信息 * 该接口用于获取指定文件的信息。 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index c133585fcc..6cac3ec994 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -167,6 +167,30 @@ public WxCpBaseResp fileAclDel(@NonNull WxCpFileAclDelRequest request) throws Wx return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpBaseResp fileSetting(@NonNull String userId, @NonNull String fileId, @NonNull Integer authScope, Integer auth) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_SETTING); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("fileid", fileId); + jsonObject.addProperty("auth_scope", authScope); + if (auth != null) { + jsonObject.addProperty("auth", auth); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpFileShare fileShare(@NonNull String userId, @NonNull String fileId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_SHARE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("userid", userId); + jsonObject.addProperty("fileid", fileId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpFileShare.fromJson(responseContent); + } + @Override public WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_INFO); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileShare.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileShare.java new file mode 100644 index 0000000000..e3159e0e3b --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/wedrive/WxCpFileShare.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.oa.wedrive; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 获取分享链接返回信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpFileShare extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("share_url") + private String shareUrl; + + public static WxCpFileShare fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFileShare.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index df8c0278f1..7493806d15 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -163,6 +163,8 @@ interface Oa { String FILE_INFO = "/cgi-bin/wedrive/file_info"; String FILE_ACL_ADD = "/cgi-bin/wedrive/file_acl_add"; String FILE_ACL_DEL = "/cgi-bin/wedrive/file_acl_del"; + String FILE_SETTING = "/cgi-bin/wedrive/file_setting"; + String FILE_SHARE = "/cgi-bin/wedrive/file_share"; /** * 审批流程引擎 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java index 219ace129f..14ecdd2f40 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveServiceTest.java @@ -49,6 +49,19 @@ public void test() throws Exception { String fileId = "s.ww45d3e188865aca30.652091685u4h_f.652344507ysDL"; String fileId2 = "s.ww45d3e188865aca30.652091685u4h_f.652696024TU4P"; + + /** + * 获取分享链接 + */ + WxCpFileShare fileShare = cpService.getOaWeDriveService().fileShare(uId, fileId2); + log.info("获取分享链接返回结果为:{}", fileShare.toJson()); + + /** + * 分享设置 + */ + WxCpBaseResp fileSetting = cpService.getOaWeDriveService().fileSetting(uId, fileId2, 2, 1); + log.info("分享设置返回结果为:{}", fileSetting.toJson()); + /** * 删除指定人 */ diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java index ececed036e..9e92908904 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaQrcodeService.java @@ -11,7 +11,8 @@ * * 接口A(createWxaCode)加上接口C(createQrcode),总共生成的码数量限制为100,000,请谨慎调用。 * - * 文档地址:https://mp.weixin.qq.com/debug/wxadoc/dev/api/qrcode.html + * 文档地址1:https://mp.weixin.qq.com/debug/wxadoc/dev/api/qrcode.html + * 文档地址2:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/qr-code.html *

* * @author Binary Wang From cd034c4a6a33d42d41b90dadefcd38dc32b36d6d Mon Sep 17 00:00:00 2001 From: hiddentrack Date: Thu, 26 May 2022 17:03:08 +0800 Subject: [PATCH 243/622] =?UTF-8?q?:new:=20#2664=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E7=94=B5=E5=95=86=E6=94=B6?= =?UTF-8?q?=E4=BB=98=E9=80=9A(=E5=88=86=E8=B4=A6)=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=AE=A2=E5=8D=95=E5=89=A9=E4=BD=99=E5=BE=85?= =?UTF-8?q?=E5=88=86=E9=87=91=E9=A2=9D=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ofitSharingOrdersUnSplitAmountRequest.java | 36 ++++++++++++++ ...rofitSharingOrdersUnSplitAmountResult.java | 47 +++++++++++++++++++ .../wxpay/service/EcommerceService.java | 12 +++++ .../service/impl/EcommerceServiceImpl.java | 8 ++++ 4 files changed, 103 insertions(+) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java new file mode 100644 index 0000000000..b2d8bc4c18 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java @@ -0,0 +1,36 @@ +package com.github.binarywang.wxpay.bean.ecommerce; + + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + + +/** + * 查询订单剩余待分金额API 请求对象 + * + * @author mshyh + * @date 2022/05/26 + */ + + +@Data +@NoArgsConstructor +public class ProfitSharingOrdersUnSplitAmountRequest { + + /** + *
+   * 字段名:微信订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:微信支付订单号
+   * 示例值:4208450740201411110007820472
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java new file mode 100644 index 0000000000..0469965a48 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java @@ -0,0 +1,47 @@ +package com.github.binarywang.wxpay.bean.ecommerce; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + + + +/** + * 查询订单剩余待分金额API 结果响应 + * + * @author mshyh + * @date 2022/05/26 + */ + +@Data +@NoArgsConstructor +public class ProfitSharingOrdersUnSplitAmountResult { + + /** + *
+   * 字段名:微信支付订单号
+   * 变量名:transaction_id
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:微信支付订单号。
+   * 示例值:4208450740201411110007820472
+   * 
+ */ + @SerializedName(value = "transaction_id") + private String transactionId; + + /** + *
+   * 字段名:订单剩余待分金额
+   * 变量名:unsplit_amount
+   * 是否必填:是
+   * 类型:int
+   * 描述:订单剩余待分金额,整数,单位为分。
+   * 示例值:1000
+   * 
+ */ + @SerializedName(value = "unsplit_amount") + private Integer unsplitAmount; + + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java index 3f97b150a6..b3dbdee014 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java @@ -252,6 +252,18 @@ public interface EcommerceService { */ ProfitSharingResult queryProfitSharing(ProfitSharingQueryRequest request) throws WxPayException; + /** + *
+   * 查询订单剩余待分金额API
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_4_9.shtml
+   * 
+ * + * @param request 查询订单剩余待分金额请求 + * @return 返回数据 profit sharing UnSplitAmount result + * @throws WxPayException the wx pay exception + */ + ProfitSharingOrdersUnSplitAmountResult queryProfitSharingOrdersUnsplitAmount(ProfitSharingOrdersUnSplitAmountRequest request) throws WxPayException; + /** *
    * 添加分账接收方API
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java
index 1927920d28..91ab368306 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java
@@ -200,6 +200,14 @@ public ProfitSharingResult queryProfitSharing(ProfitSharingQueryRequest request)
     return GSON.fromJson(response, ProfitSharingResult.class);
   }
 
+  @Override
+  public ProfitSharingOrdersUnSplitAmountResult queryProfitSharingOrdersUnsplitAmount(ProfitSharingOrdersUnSplitAmountRequest request) throws WxPayException {
+    String url = String.format("%s/v3/ecommerce/profitsharing/orders/%s/amounts",
+      this.payService.getPayBaseUrl(), request.getTransactionId());
+    String response = this.payService.getV3(url);
+    return GSON.fromJson(response, ProfitSharingOrdersUnSplitAmountResult.class);
+  }
+
   @Override
   public ProfitSharingReceiverResult addReceivers(ProfitSharingReceiverRequest request) throws WxPayException {
     String url = String.format("%s/v3/ecommerce/profitsharing/receivers/add", this.payService.getPayBaseUrl());

From 41bb3b9901c96fefb6cff5f8bcf3fd38d3f89a87 Mon Sep 17 00:00:00 2001
From: Youyu Song 
Date: Thu, 26 May 2022 17:08:03 +0800
Subject: [PATCH 244/622] =?UTF-8?q?:art:=20=E5=BE=AE=E4=BF=A1=E5=88=86?=
 =?UTF-8?q?=E8=B4=A6=E8=A7=A3=E5=86=BB=E5=89=A9=E4=BD=99=E8=B5=84=E9=87=91?=
 =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=B7=BB=E5=8A=A0=E5=88=86=E8=B4=A6=E6=8E=A5?=
 =?UTF-8?q?=E6=94=B6=E6=96=B9=E5=88=97=E8=A1=A8receivers?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../bean/profitsharingV3/ProfitSharingUnfreezeResult.java | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java
index 0e67eee4cd..160b0b450e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java
@@ -4,6 +4,7 @@
 import lombok.Data;
 
 import java.io.Serializable;
+import java.util.List;
 
 /**
  * 微信V3接口
@@ -46,7 +47,6 @@ public class ProfitSharingUnfreezeResult implements Serializable {
   @SerializedName("order_id")
   private String orderId;
 
-
   /**
    * 
    * 字段名:分账单状态
@@ -59,6 +59,12 @@ public class ProfitSharingUnfreezeResult implements Serializable {
   @SerializedName("state")
   private String state;
 
+  /**
+   * 分账接收方列表
+   */
+  @SerializedName("receivers")
+  private List receivers;
+
   @Data
   public static class Receiver implements Serializable {
     private static final long serialVersionUID = 4240983048700956806L;

From 95be03bf1c3c2ae841284180c8b13b62649eb3c6 Mon Sep 17 00:00:00 2001
From: helloworldByChinese
 <55220844+helloworldByChinese@users.noreply.github.com>
Date: Fri, 27 May 2022 09:16:56 +0800
Subject: [PATCH 245/622] =?UTF-8?q?:art:=20#2663=20=E4=BC=98=E5=8C=96?=
 =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=B6=88=E6=81=AF=E6=A3=80=E6=9F=A5=E5=99=A8?=
 =?UTF-8?q?=E5=A4=9A=E5=AE=9E=E4=BE=8B=E5=AF=BC=E8=87=B4=E5=A4=9A=E5=AE=88?=
 =?UTF-8?q?=E6=8A=A4=E7=BA=BF=E7=A8=8B=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?=
 =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E5=8D=95=E4=BE=8B+=E5=AE=9A?=
 =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E7=BA=BF=E7=A8=8B=E6=B1=A0=E5=A4=84?=
 =?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../WxMessageInMemoryDuplicateChecker.java    |  2 +
 ...sageInMemoryDuplicateCheckerSingleton.java | 91 +++++++++++++++++++
 ...InMemoryDuplicateCheckerSingletonTest.java | 45 +++++++++
 .../weixin/cp/message/WxCpMessageRouter.java  |  5 +-
 .../cp/tp/message/WxCpTpMessageRouter.java    |  5 +-
 .../wx/miniapp/message/WxMaMessageRouter.java |  5 +-
 .../weixin/mp/api/WxMpMessageRouter.java      |  5 +-
 7 files changed, 150 insertions(+), 8 deletions(-)
 create mode 100644 weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java
 create mode 100644 weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateChecker.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateChecker.java
index 465f35434b..88c3aeae69 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateChecker.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateChecker.java
@@ -8,10 +8,12 @@
  * 
  * 默认消息重复检查器.
  * 将每个消息id保存在内存里,每隔5秒清理已经过期的消息id,每个消息id的过期时间是15秒
+ * 替换类WxMessageInMemoryDuplicateCheckerSingleton
  * 
* * @author Daniel Qian */ +@Deprecated public class WxMessageInMemoryDuplicateChecker implements WxMessageDuplicateChecker { /** diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java new file mode 100644 index 0000000000..f275a2badc --- /dev/null +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java @@ -0,0 +1,91 @@ +package me.chanjar.weixin.common.api; + +import com.google.common.util.concurrent.ThreadFactoryBuilder; +import lombok.extern.slf4j.Slf4j; + +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; + +/** + * @author jiangby + * @version 1.0 + *

+ * 消息去重,记录消息ID首次出现时的时间戳, + * 15S后定时任务触发时废除该记录消息ID + *

+ * @date 2022/5/26 1:32 + */ +@Slf4j +public class WxMessageInMemoryDuplicateCheckerSingleton implements WxMessageDuplicateChecker { + + /** + * 一个消息ID在内存的过期时间:15秒. + */ + private static final Long TIME_TO_LIVE = 15L; + + /** + * 每隔多少周期检查消息ID是否过期:5秒. + */ + private static final Long CLEAR_PERIOD = 5L; + + /** + * 线程池 + */ + private static final ScheduledThreadPoolExecutor SCHEDULED_THREAD_POOL_EXECUTOR = new ScheduledThreadPoolExecutor(1, + new ThreadFactoryBuilder().setNameFormat("wxMessage-memory-pool-%d").build(), new ThreadPoolExecutor.AbortPolicy()); + + /** + * 消息id->消息时间戳的map. + */ + private static final ConcurrentHashMap MSG_ID_2_TIMESTAMP = new ConcurrentHashMap<>(); + + static { + SCHEDULED_THREAD_POOL_EXECUTOR.scheduleAtFixedRate(() -> { + try { + Long now = System.currentTimeMillis(); + MSG_ID_2_TIMESTAMP.entrySet().removeIf(entry -> now - entry.getValue() > TIME_TO_LIVE * 1000); + } catch (Exception ex) { + log.error("重复消息去重任务出现异常", ex); + } + }, 1, CLEAR_PERIOD, TimeUnit.SECONDS); + } + + /** + * 私有化构造方法,避免外部调用 + */ + private WxMessageInMemoryDuplicateCheckerSingleton() { + } + + /** + * 获取单例 + * + * @return 单例对象 + */ + public static WxMessageInMemoryDuplicateCheckerSingleton getInstance() { + return WxMessageInnerClass.CHECKER_SINGLETON; + } + + /** + * 内部类实现单例 + */ + private static class WxMessageInnerClass { + static final WxMessageInMemoryDuplicateCheckerSingleton CHECKER_SINGLETON = new WxMessageInMemoryDuplicateCheckerSingleton(); + } + + /** + * messageId是否重复 + * + * @param messageId messageId + * @return 是否 + */ + @Override + public boolean isDuplicate(String messageId) { + if (messageId == null) { + return false; + } + Long timestamp = MSG_ID_2_TIMESTAMP.putIfAbsent(messageId, System.currentTimeMillis()); + return timestamp != null; + } +} diff --git a/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java b/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java new file mode 100644 index 0000000000..d6f4ba2fac --- /dev/null +++ b/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java @@ -0,0 +1,45 @@ +package me.chanjar.weixin.common.api; + +import org.testng.annotations.Test; + +import java.util.concurrent.TimeUnit; + +import static org.testng.Assert.assertFalse; +import static org.testng.Assert.assertTrue; + +/** + * @author jiangby + * @version 1.0 + * @description: 作用 + * @date 2022/5/26 1:46 + */ +@Test +public class WxMessageInMemoryDuplicateCheckerSingletonTest { + + private static WxMessageInMemoryDuplicateCheckerSingleton checkerSingleton = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); + + public void test() throws InterruptedException { + Long[] msgIds = new Long[]{1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L}; + + // 第一次检查 + for (Long msgId : msgIds) { + boolean result = checkerSingleton.isDuplicate(String.valueOf(msgId)); + assertFalse(result); + } + + // 初始化后1S进行检查 每五秒检查一次,过期时间为15秒,过15秒再检查 + TimeUnit.SECONDS.sleep(15); + for (Long msgId : msgIds) { + boolean result = checkerSingleton.isDuplicate(String.valueOf(msgId)); + assertTrue(result); + } + + // 过6秒再检查 + TimeUnit.SECONDS.sleep(6); + for (Long msgId : msgIds) { + boolean result = checkerSingleton.isDuplicate(String.valueOf(msgId)); + assertFalse(result); + } + + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java index b2327bdc6b..c027159bc2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java @@ -5,6 +5,7 @@ import me.chanjar.weixin.common.api.WxErrorExceptionHandler; import me.chanjar.weixin.common.api.WxMessageDuplicateChecker; import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker; +import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateCheckerSingleton; import me.chanjar.weixin.common.session.InternalSession; import me.chanjar.weixin.common.session.InternalSessionManager; import me.chanjar.weixin.common.session.WxSessionManager; @@ -71,7 +72,7 @@ public WxCpMessageRouter(WxCpService wxCpService) { ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat("WxCpMessageRouter-pool-%d").build(); this.executorService = new ThreadPoolExecutor(DEFAULT_THREAD_POOL_SIZE, DEFAULT_THREAD_POOL_SIZE, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), namedThreadFactory); - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); this.sessionManager = wxCpService.getSessionManager(); this.exceptionHandler = new LogExceptionHandler(); } @@ -82,7 +83,7 @@ public WxCpMessageRouter(WxCpService wxCpService) { public WxCpMessageRouter(WxCpService wxMpService, ExecutorService executorService) { this.wxCpService = wxMpService; this.executorService = executorService; - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); this.sessionManager = wxCpService.getSessionManager(); this.exceptionHandler = new LogExceptionHandler(); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java index 70ad0a64d3..848f089c6b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/message/WxCpTpMessageRouter.java @@ -5,6 +5,7 @@ import me.chanjar.weixin.common.api.WxErrorExceptionHandler; import me.chanjar.weixin.common.api.WxMessageDuplicateChecker; import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker; +import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateCheckerSingleton; import me.chanjar.weixin.common.session.InternalSession; import me.chanjar.weixin.common.session.InternalSessionManager; import me.chanjar.weixin.common.session.WxSessionManager; @@ -73,7 +74,7 @@ public WxCpTpMessageRouter(WxCpTpService wxCpTpService) { ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat("WxCpTpMessageRouter-pool-%d").build(); this.executorService = new ThreadPoolExecutor(DEFAULT_THREAD_POOL_SIZE, DEFAULT_THREAD_POOL_SIZE, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), namedThreadFactory); - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); this.sessionManager = wxCpTpService.getSessionManager(); this.exceptionHandler = new LogExceptionHandler(); } @@ -84,7 +85,7 @@ public WxCpTpMessageRouter(WxCpTpService wxCpTpService) { public WxCpTpMessageRouter(WxCpTpService wxCpTpService, ExecutorService executorService) { this.wxCpTpService = wxCpTpService; this.executorService = executorService; - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); this.sessionManager = wxCpTpService.getSessionManager(); this.exceptionHandler = new LogExceptionHandler(); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java index e2c497e139..a5f714edd0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java @@ -7,6 +7,7 @@ import me.chanjar.weixin.common.api.WxErrorExceptionHandler; import me.chanjar.weixin.common.api.WxMessageDuplicateChecker; import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker; +import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateCheckerSingleton; import me.chanjar.weixin.common.session.InternalSession; import me.chanjar.weixin.common.session.InternalSessionManager; import me.chanjar.weixin.common.session.StandardSessionManager; @@ -48,7 +49,7 @@ public WxMaMessageRouter(WxMaService wxMaService) { 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), namedThreadFactory); this.sessionManager = new StandardSessionManager(); this.exceptionHandler = new LogExceptionHandler(); - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); } /** @@ -59,7 +60,7 @@ public WxMaMessageRouter(WxMaService wxMaService, ExecutorService executorServic this.executorService = executorService; this.sessionManager = new StandardSessionManager(); this.exceptionHandler = new LogExceptionHandler(); - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); } /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java index 4a2291050c..e55e499098 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java @@ -6,6 +6,7 @@ import me.chanjar.weixin.common.api.WxErrorExceptionHandler; import me.chanjar.weixin.common.api.WxMessageDuplicateChecker; import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker; +import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateCheckerSingleton; import me.chanjar.weixin.common.session.InternalSession; import me.chanjar.weixin.common.session.InternalSessionManager; import me.chanjar.weixin.common.session.StandardSessionManager; @@ -72,7 +73,7 @@ public WxMpMessageRouter(WxMpService wxMpService) { ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat("WxMpMessageRouter-pool-%d").build(); this.executorService = new ThreadPoolExecutor(DEFAULT_THREAD_POOL_SIZE, DEFAULT_THREAD_POOL_SIZE, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), namedThreadFactory); - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); this.sessionManager = new StandardSessionManager(); this.exceptionHandler = new LogExceptionHandler(); } @@ -83,7 +84,7 @@ public WxMpMessageRouter(WxMpService wxMpService) { public WxMpMessageRouter(WxMpService wxMpService, ExecutorService executorService) { this.wxMpService = wxMpService; this.executorService = executorService; - this.messageDuplicateChecker = new WxMessageInMemoryDuplicateChecker(); + this.messageDuplicateChecker = WxMessageInMemoryDuplicateCheckerSingleton.getInstance(); this.sessionManager = new StandardSessionManager(); this.exceptionHandler = new LogExceptionHandler(); } From e7054aab0eace1d066dc3751afb7e7b9e73d6d81 Mon Sep 17 00:00:00 2001 From: zhangyulai Date: Sun, 29 May 2022 22:23:54 +0800 Subject: [PATCH 246/622] =?UTF-8?q?:art:=20=E4=BF=AE=E6=AD=A3=E5=87=A0?= =?UTF-8?q?=E4=B8=AA=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java | 4 ++-- .../wxpay/bean/notify/WxPayRefundNotifyV3Result.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java index 709d316ec6..8695efec1a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/WaybillGoodsInfo.java @@ -43,7 +43,7 @@ public static class GoodsItem { *
*/ @SerializedName("goods_name") - private Long goodsName; + private String goodsName; /** * 商品图片URL @@ -52,7 +52,7 @@ public static class GoodsItem { *
*/ @SerializedName("goods_img_url") - private Integer goodsImgUrl; + private String goodsImgUrl; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java index 961dbaa116..976e7e2691 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java @@ -184,7 +184,7 @@ public static class Amount implements Serializable { *
*/ @SerializedName(value = "refund") - private String refund; + private Integer refund; /** *
      * 字段名:用户支付金额
@@ -210,6 +210,6 @@ public static class Amount implements Serializable {
      * 
*/ @SerializedName(value = "payer_refund") - private String payerRefund; + private Integer payerRefund; } } From 172d31fd2e99aaf0015d09981981d9295c2b9aa7 Mon Sep 17 00:00:00 2001 From: yechenhao Date: Sun, 29 May 2022 22:25:05 +0800 Subject: [PATCH 247/622] =?UTF-8?q?:art:=20=E7=A7=BB=E9=99=A4jedis-lock?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/impl/AbstractWxMaRedisConfig.java | 72 ++++++++++++++++--- 1 file changed, 64 insertions(+), 8 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java index 19d3a00f69..aabdd48932 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/AbstractWxMaRedisConfig.java @@ -1,10 +1,11 @@ package cn.binarywang.wx.miniapp.config.impl; -import com.github.jedis.lock.JedisLock; import me.chanjar.weixin.common.error.WxRuntimeException; import redis.clients.jedis.Jedis; +import redis.clients.jedis.params.SetParams; import java.io.File; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -223,16 +224,21 @@ public void setExpiresTime(long expiresTime) { */ private class DistributedLock implements Lock { - private JedisLock lock; + private final String LOCK_SUCCESS = "OK"; + + private final Long RELEASE_SUCCESS = 1L; + + private String lockKey; private DistributedLock(String key) { - this.lock = new JedisLock(getRedisKey(key)); + this.lockKey = key; } @Override public void lock() { try (Jedis jedis = getConfiguredJedis()) { - if (!lock.acquire(jedis)) { + + if (!acquire(jedis)) { throw new WxRuntimeException("acquire timeouted"); } } catch (InterruptedException e) { @@ -240,10 +246,11 @@ public void lock() { } } + @Override public void lockInterruptibly() throws InterruptedException { try (Jedis jedis = getConfiguredJedis()) { - if (!lock.acquire(jedis)) { + if (!acquire(jedis)) { throw new WxRuntimeException("acquire timeouted"); } } @@ -252,7 +259,7 @@ public void lockInterruptibly() throws InterruptedException { @Override public boolean tryLock() { try (Jedis jedis = getConfiguredJedis()) { - return lock.acquire(jedis); + return acquire(jedis); } catch (InterruptedException e) { throw new WxRuntimeException("lock failed", e); } @@ -261,14 +268,14 @@ public boolean tryLock() { @Override public boolean tryLock(long time, TimeUnit unit) throws InterruptedException { try (Jedis jedis = getConfiguredJedis()) { - return lock.acquire(jedis); + return acquire(jedis); } } @Override public void unlock() { try (Jedis jedis = getConfiguredJedis()) { - lock.release(jedis); + releaseDistributedLock(jedis); } } @@ -277,5 +284,54 @@ public Condition newCondition() { throw new WxRuntimeException("unsupported method"); } + + /** + * 尝试获取锁 有限次数的重试 + * + * @param jedis + * @return + * @throws InterruptedException + */ + private Boolean acquire(Jedis jedis) throws InterruptedException { + Integer i = 0; + do { + i++; + boolean locked = tryGetDistributedLock(jedis); + if (locked) { + return true; + } else { + Thread.sleep(100L); + } + } while (i < 20); + return false; + } + + /** + * 尝试获取锁 + * + * @param jedis + * @return + */ + private Boolean tryGetDistributedLock(Jedis jedis) { + Long millisecondsToExpire = 2L; + Long threadId = Thread.currentThread().getId(); + String result = jedis.set(this.lockKey, threadId.toString(), SetParams.setParams().nx().px(millisecondsToExpire)); + return LOCK_SUCCESS.equals(result); + } + + + /** + * 释放分布式锁 + * + * @param jedis + * @return 是否释放成功 + */ + private Boolean releaseDistributedLock(Jedis jedis) { + Long threadId = Thread.currentThread().getId(); + String script = "if redis.call('get', KEYS[1]) == ARGV[1] then return redis.call('del', KEYS[1]) else return 0 end"; + Object result = jedis.eval(script, Collections.singletonList(lockKey), Collections.singletonList(threadId.toString())); + return RELEASE_SUCCESS.equals(result); + } + } } From 96e0067cb9767f2b8fdea2075448c39d95df94d4 Mon Sep 17 00:00:00 2001 From: gf3gf3 <41719697+gf3gf3@users.noreply.github.com> Date: Mon, 30 May 2022 17:31:58 +0800 Subject: [PATCH 248/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java index 460e86b95d..a78aa90985 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java @@ -72,7 +72,7 @@ public static class JoinWay implements Serializable { 如果有设置此参数,在调用获取客户群详情接口时会返回每个群成员对应的该参数值 */ @SerializedName("state") - private Integer state; + private String state; public String toJson() { return WxCpGsonBuilder.create().toJson(this); From 4e6e692d4d22795a41734a2236cf1ac66038443b Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 31 May 2022 17:36:19 +0800 Subject: [PATCH 249/622] =?UTF-8?q?:art:=20=E5=8D=87=E7=BA=A7=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 11 ++++++++--- weixin-java-common/pom.xml | 6 +++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index ec3e81826c..c95d24e932 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ UTF-8 4.5.13 - 9.4.41.v20210516 + 9.4.43.v20210629 @@ -160,7 +160,7 @@ commons-codec commons-codec - 1.10 + 1.13 commons-io @@ -208,7 +208,7 @@ ch.qos.logback logback-classic - 1.2.3 + 1.2.9 test @@ -315,6 +315,11 @@ bcpkix-jdk15on 1.68 + + javax.validation + validation-api + 2.0.1.Final + diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index d5d25cda37..bf7855083b 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -50,7 +50,7 @@ org.slf4j jcl-over-slf4j - 1.7.30 + 1.7.36 @@ -77,6 +77,10 @@ org.projectlombok lombok + + javax.validation + validation-api + ch.qos.logback From 42122ce5489393027dc18f0a68b46143ba66e5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=B7=9D?= <5214050+zhengchuan1@user.noreply.gitee.com> Date: Tue, 31 May 2022 09:36:46 +0000 Subject: [PATCH 250/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8Dxml=E5=BA=8F?= =?UTF-8?q?=E5=88=97=E5=8C=96=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/binarywang/wxpay/bean/result/WxH5EntrustResult.java | 1 + .../github/binarywang/wxpay/bean/result/WxPayEntrustResult.java | 1 + 2 files changed, 2 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java index 3cd8daad71..e39e71f866 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java @@ -19,6 +19,7 @@ @Data @AllArgsConstructor @NoArgsConstructor +@XStreamAlias("xml") public class WxH5EntrustResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = 1L; diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java index 2cd0e3588d..417eb85661 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java @@ -28,6 +28,7 @@ @Data @AllArgsConstructor @NoArgsConstructor +@XStreamAlias("xml") public class WxPayEntrustResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = 1L; From 3952fcdd335cc7bb80f77cd0e8157762c18d1d67 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 31 May 2022 20:14:20 +0800 Subject: [PATCH 251/622] =?UTF-8?q?:new:=20#2674=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E5=BA=94=E7=94=A8=E5=81=A5=E5=BA=B7=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpSchoolHealthService.java | 57 ++++++ .../me/chanjar/weixin/cp/api/WxCpService.java | 7 + .../cp/api/impl/BaseWxCpServiceImpl.java | 6 + .../api/impl/WxCpSchoolHealthServiceImpl.java | 59 +++++++ .../health/WxCpGetHealthReportStat.java | 33 ++++ .../school/health/WxCpGetReportJobIds.java | 34 ++++ .../school/health/WxCpGetReportJobInfo.java | 165 ++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 6 + .../weixin/cp/api/WxCpMsgAuditTest.java | 9 +- .../weixin/cp/api/WxCpSchoolHealthTest.java | 66 +++++++ 10 files changed, 441 insertions(+), 1 deletion(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetHealthReportStat.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobIds.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobInfo.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java new file mode 100644 index 0000000000..0d852e74b1 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java @@ -0,0 +1,57 @@ +package me.chanjar.weixin.cp.api; + +import lombok.NonNull; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetHealthReportStat; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobIds; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobInfo; + +/** + * 企业微信家校应用 健康上报接口. + * https://developer.work.weixin.qq.com/document/path/93676 + * + * @author Wang_Wong + * @date: 2022/5/31 9:10 + */ +public interface WxCpSchoolHealthService { + + /** + * 获取健康上报使用统计 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/health/get_health_report_stat?access_token=ACCESS_TOKEN + * + * @param date 具体某天的使用统计,最长支持获取30天前数据 + * @return + * @throws WxErrorException + */ + WxCpGetHealthReportStat getHealthReportStat(@NonNull String date) throws WxErrorException; + + /** + * 获取健康上报任务ID列表 + * 通过此接口可以获取企业当前正在运行的上报任务ID列表。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/health/get_report_jobids?access_token=ACCESS_TOKEN + * + * @param offset 否 分页,偏移量, 默认为0 + * @param limit 否 分页,预期请求的数据量,默认为100,取值范围 1 ~ 100 + * @return + * @throws WxErrorException + */ + WxCpGetReportJobIds getReportJobIds(Integer offset, Integer limit) throws WxErrorException; + + /** + * 获取健康上报任务详情 + * 通过此接口可以获取指定的健康上报任务详情。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/health/get_report_job_info?access_token=ACCESS_TOKEN + * + * @param jobId 是 任务ID + * @param date 是 具体某天任务详情,仅支持获取最近14天数据 + * @return + * @throws WxErrorException + */ + WxCpGetReportJobInfo getReportJobInfo(@NonNull String jobId, @NonNull String date) throws WxErrorException; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 769ef0d2e7..00be57b104 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -400,6 +400,13 @@ public interface WxCpService extends WxService { */ WxCpOaService getOaService(); + /** + * 获取家校应用健康上报的服务类对象 + * + * @return + */ + WxCpSchoolHealthService getSchoolHealthService(); + /** * 获取直播相关接口的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 6de02c3e25..890253b11c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -49,6 +49,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpTagService tagService = new WxCpTagServiceImpl(this); private WxCpAgentService agentService = new WxCpAgentServiceImpl(this); private WxCpOaService oaService = new WxCpOaServiceImpl(this); + private WxCpSchoolHealthService schoolHealthService = new WxCpSchoolHealthServiceImpl(this); private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); private WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); private WxCpOaWeDriveService oaWeDriveService = new WxCpOaWeDriveServiceImpl(this); @@ -493,6 +494,11 @@ public WxCpOaService getOaService() { return oaService; } + @Override + public WxCpSchoolHealthService getSchoolHealthService() { + return schoolHealthService; + } + @Override public WxCpLivingService getLivingService() { return livingService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java new file mode 100644 index 0000000000..bee4bf0306 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java @@ -0,0 +1,59 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.JsonObject; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.WxCpSchoolHealthService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetHealthReportStat; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobIds; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobInfo; + +import java.util.Optional; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.School.*; + +/** + * 企业微信家校应用 健康上报接口实现类. + * + * @author Wang_Wong + * @date: 2022/5/31 9:16 + */ +@Slf4j +@RequiredArgsConstructor +public class WxCpSchoolHealthServiceImpl implements WxCpSchoolHealthService { + + private final WxCpService cpService; + + @Override + public WxCpGetHealthReportStat getHealthReportStat(@NonNull String date) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_HEALTH_REPORT_STAT); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("date", date); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGetHealthReportStat.fromJson(responseContent); + } + + @Override + public WxCpGetReportJobIds getReportJobIds(Integer offset, Integer limit) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_REPORT_JOBIDS); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("offset", Optional.ofNullable(offset).orElse(0)); + jsonObject.addProperty("limit", Optional.ofNullable(limit).orElse(100)); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGetReportJobIds.fromJson(responseContent); + } + + @Override + public WxCpGetReportJobInfo getReportJobInfo(@NonNull String jobId, @NonNull String date) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_REPORT_JOB_INFO); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("jobid", jobId); + jsonObject.addProperty("date", date); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGetReportJobInfo.fromJson(responseContent); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetHealthReportStat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetHealthReportStat.java new file mode 100644 index 0000000000..3bd4448324 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetHealthReportStat.java @@ -0,0 +1,33 @@ +package me.chanjar.weixin.cp.bean.school.health; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 获取健康上报使用统计. + * + * @author Wang_Wong + */ +@Data +public class WxCpGetHealthReportStat extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("pv") + private Integer pv; + + @SerializedName("uv") + private Integer uv; + + public static WxCpGetHealthReportStat fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGetHealthReportStat.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobIds.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobIds.java new file mode 100644 index 0000000000..768dcec216 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobIds.java @@ -0,0 +1,34 @@ +package me.chanjar.weixin.cp.bean.school.health; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取健康上报使用统计. + * + * @author Wang_Wong + */ +@Data +public class WxCpGetReportJobIds extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("ending") + private Integer ending; + + @SerializedName("jobids") + private List jobIds; + + public static WxCpGetReportJobIds fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGetReportJobIds.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobInfo.java new file mode 100644 index 0000000000..5ca603101d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportJobInfo.java @@ -0,0 +1,165 @@ +package me.chanjar.weixin.cp.bean.school.health; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取健康上报任务详情. + * + * @author Wang_Wong + */ +@Data +public class WxCpGetReportJobInfo extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("job_info") + private JobInfo jobInfo; + + @Getter + @Setter + public static class JobInfo implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("title") + private String title; + + @SerializedName("creator") + private String creator; + + @SerializedName("type") + private Integer type; + + @SerializedName("report_type") + private Integer reportType; + + @SerializedName("skip_weekend") + private Integer skipWeekend; + + @SerializedName("finish_cnt") + private Integer finishCnt; + + @SerializedName("apply_range") + private ApplyRange applyRange; + + @SerializedName("report_to") + private ReportTo reportTo; + + @SerializedName("question_templates") + private List questionTemplates; + + public static JobInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, JobInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ApplyRange implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("userids") + private List userIds; + + @SerializedName("partyids") + private List partyIds; + + public static ApplyRange fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ApplyRange.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ReportTo implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("userids") + private List userIds; + + public static ReportTo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ReportTo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class QuestionTemplate implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("question_id") + private Integer questionId; + + @SerializedName("question_type") + private Integer questionType; + + @SerializedName("is_required") + private Integer isRequired; + + @SerializedName("title") + private String title; + + @SerializedName("option_list") + private List optionList; + + public static QuestionTemplate fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, QuestionTemplate.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class OptionList implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("option_id") + private Integer optionId; + + @SerializedName("option_text") + private String optionText; + + public static OptionList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, OptionList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpGetReportJobInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGetReportJobInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 7493806d15..93246c5269 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -173,6 +173,12 @@ interface Oa { String GET_OPEN_APPROVAL_DATA = "/cgi-bin/corp/getopenapprovaldata"; } + interface School { + String GET_HEALTH_REPORT_STAT = "/cgi-bin/health/get_health_report_stat"; + String GET_REPORT_JOBIDS = "/cgi-bin/health/get_report_jobids"; + String GET_REPORT_JOB_INFO = "/cgi-bin/health/get_report_job_info"; + } + interface Living { String GET_LIVING_CODE = "/cgi-bin/living/get_living_code"; String GET_LIVING_INFO = "/cgi-bin/living/get_living_info?livingid="; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java index 457996a0e4..47e511be7d 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -168,7 +168,14 @@ public void test() throws Exception { return; } - // 拉取媒体文件 + /** + * 拉取媒体文件 + * + * 注意: + * 1、根据上面返回的文件类型,拼接好存放文件的绝对路径即可。此时绝对路径写入文件流,来达到获取媒体文件的目的。 + * 2、拉取完媒体文件之后,此时文件已经存在绝对路径,可以通过mq异步上传到对象存储 + * 3、比如可以上传到阿里云oss或者腾讯云cos + */ String targetPath = path + md5Sum + suffix; cpService.getMsgAuditService().getMediaFile(sdkFileId, null, null, 1000L, targetPath); diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java new file mode 100644 index 0000000000..2ed24719bd --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java @@ -0,0 +1,66 @@ +package me.chanjar.weixin.cp.api; + +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetHealthReportStat; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobIds; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobInfo; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import org.testng.annotations.Test; + +import java.io.InputStream; +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * 企业微信家校应用 健康上报接口. + * https://developer.work.weixin.qq.com/document/path/93676 + * + * @author Wang_Wong + * @date: 2022/5/31 9:10 + */ +@Slf4j +public class WxCpSchoolHealthTest { + + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + @Test + public void test() throws WxErrorException { + + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + String currDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + + + /** + * 获取健康上报任务ID列表 + * https://developer.work.weixin.qq.com/document/path/93677 + */ + WxCpGetReportJobIds reportJobids = cpService.getSchoolHealthService().getReportJobIds(null, null); + log.info("返回的reportJobids为:{}", reportJobids.toJson()); + + /** + * 获取健康上报任务详情 + * https://developer.work.weixin.qq.com/document/path/93678 + */ + WxCpGetReportJobInfo reportJobInfo = cpService.getSchoolHealthService().getReportJobInfo(null, currDate); + log.info("返回的reportJobInfo为:{}", reportJobInfo.toJson()); + + /** + * 获取健康上报使用统计 + * https://developer.work.weixin.qq.com/document/path/93676 + */ + String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + WxCpGetHealthReportStat healthReportStat = cpService.getSchoolHealthService().getHealthReportStat(date); + log.info("返回的healthReportStat为:{}", healthReportStat.toJson()); + + } + +} From 6ce418a7193482a651a958278a096698eb9f5c39 Mon Sep 17 00:00:00 2001 From: jinxiaoyi <34831856+jinxiaoyi@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:35:56 +0800 Subject: [PATCH 252/622] =?UTF-8?q?:art:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=86=E9=A1=B5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jinxiaoyi --- .../java/me/chanjar/weixin/cp/api/WxCpKfService.java | 5 +++-- .../chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java | 11 +++++++++-- .../weixin/cp/api/impl/WxCpKfServiceImplTest.java | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java index 0795fb7247..ed8e00dc54 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java @@ -47,11 +47,12 @@ public interface WxCpKfService { /** * 获取客服帐号列表,包括所有的客服帐号的客服ID、名称和头像。 - * + * @param offset 分页,偏移量, 默认为0 + * @param limit 分页,预期请求的数据量,默认为100,取值范围 1 ~ 100 * @return 客服帐号列表 * @throws WxErrorException 异常 */ - WxCpKfAccountListResp listAccount() throws WxErrorException; + WxCpKfAccountListResp listAccount(Integer offset,Integer limit) throws WxErrorException; /** * 企业可通过此接口获取带有不同参数的客服链接,不同客服帐号对应不同的客服链接。获取后,企业可将链接嵌入到网页等场景中, diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java index 26afa1d647..8598afc524 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java @@ -49,9 +49,16 @@ public WxCpBaseResp delAccount(WxCpKfAccountDel del) throws WxErrorException { } @Override - public WxCpKfAccountListResp listAccount() throws WxErrorException { + public WxCpKfAccountListResp listAccount(Integer offset,Integer limit) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(ACCOUNT_LIST); - String responseContent = cpService.post(url, "{}"); + JsonObject json = new JsonObject(); + if (offset != null) { + json.addProperty("offset", offset); + } + if (limit != null) { + json.addProperty("limit", limit); + } + String responseContent = cpService.post(url, json.toString()); return WxCpKfAccountListResp.fromJson(responseContent); } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java index 09a4f568c3..d45fba83fb 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java @@ -58,7 +58,7 @@ public void testAccountUpd() throws Exception { @Test(priority = 3) public void testAccountList() throws Exception { - WxCpKfAccountListResp resp = this.wxService.getKfService().listAccount(); + WxCpKfAccountListResp resp = this.wxService.getKfService().listAccount(0,10); System.out.println(resp); } From 0dfd7a091c46893b22b4ff69c340c8e0066e11e9 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:38:00 +0800 Subject: [PATCH 253/622] =?UTF-8?q?:new:=20#2676=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E5=BA=94=E7=94=A8-=E5=A4=8D=E5=AD=A6=E7=A0=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxjava/cp/properties/WxCpProperties.java | 4 + ...bstractWxCpConfigStorageConfiguration.java | 6 +- .../weixin/cp/api/WxCpMsgAuditService.java | 8 +- .../weixin/cp/api/WxCpSchoolService.java | 60 +++++++ .../me/chanjar/weixin/cp/api/WxCpService.java | 7 + .../cp/api/impl/BaseWxCpServiceImpl.java | 6 + .../cp/api/impl/WxCpMsgAuditServiceImpl.java | 35 ++-- .../cp/api/impl/WxCpSchoolServiceImpl.java | 67 ++++++++ .../bean/school/WxCpCustomizeHealthInfo.java | 150 ++++++++++++++++++ .../weixin/cp/bean/school/WxCpResultList.java | 53 +++++++ .../weixin/cp/config/WxCpConfigStorage.java | 7 + .../cp/config/impl/WxCpDefaultConfigImpl.java | 18 +++ .../cp/config/impl/WxCpRedisConfigImpl.java | 6 + .../weixin/cp/constant/WxCpApiPathConsts.java | 4 + .../weixin/cp/util/crypto/WxCpCryptUtil.java | 66 +++++++- .../weixin/cp/api/WxCpMsgAuditTest.java | 47 ++++-- .../chanjar/weixin/cp/api/WxCpSchoolTest.java | 72 +++++++++ .../src/test/resources/test-config.sample.xml | 14 +- 18 files changed, 592 insertions(+), 38 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpCustomizeHealthInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpResultList.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java index b2cc778ac0..030478e534 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java @@ -38,6 +38,10 @@ public class WxCpProperties { * 微信企业号应用 EncodingAESKey */ private String aesKey; + /** + * 微信企业号应用 会话存档私钥 + */ + private String msgAuditPriKey; /** * 微信企业号应用 会话存档类库路径 */ diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java index cfcb16fe0a..c4bc300366 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java @@ -18,7 +18,8 @@ protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpPropert String token = properties.getToken(); Integer agentId = properties.getAgentId(); String aesKey = properties.getAesKey(); - // 企业微信,会话存档路径 + // 企业微信,私钥,会话存档路径 + String msgAuditPriKey = properties.getMsgAuditPriKey(); String msgAuditLibPath = properties.getMsgAuditLibPath(); config.setCorpId(corpId); @@ -32,6 +33,9 @@ protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpPropert if (StringUtils.isNotBlank(aesKey)) { config.setAesKey(aesKey); } + if (StringUtils.isNotBlank(msgAuditPriKey)) { + config.setMsgAuditPriKey(msgAuditPriKey); + } if (StringUtils.isNotBlank(msgAuditLibPath)) { config.setMsgAuditLibPath(msgAuditLibPath); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java index 63389aeb8c..95f484675f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java @@ -34,24 +34,26 @@ public interface WxCpMsgAuditService { * 获取解密的聊天数据Model * * @param chatData getChatDatas()获取到的聊天数据 + * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... * @return 解密后的聊天数据 * @throws Exception */ - WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData) throws Exception; + WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; /** * 获取解密的聊天数据明文 * * @param chatData getChatDatas()获取到的聊天数据 + * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... * @return 解密后的明文 * @throws Exception */ - String getChatPlainText(@NonNull WxCpChatDatas.WxCpChatData chatData) throws Exception; + String getChatPlainText(@NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; /** * 获取媒体文件 * 针对图片、文件等媒体数据,提供sdk接口拉取数据内容。 - * + *

* 注意: * 根据上面返回的文件类型,拼接好存放文件的绝对路径即可。此时绝对路径写入文件流,来达到获取媒体文件的目的。 * 详情可以看官方文档,亦可阅读此接口源码。 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java new file mode 100644 index 0000000000..2e97bf0755 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java @@ -0,0 +1,60 @@ +package me.chanjar.weixin.cp.api; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; +import me.chanjar.weixin.cp.bean.school.WxCpResultList; + +import javax.validation.constraints.NotNull; +import java.util.List; + +/** + * 企业微信家校应用 复学码相关接口. + * https://developer.work.weixin.qq.com/document/path/93744 + *

+ * 权限说明: + * 仅复学码应用可以调用 + * + * @author Wang_Wong + * @date: 2022/5/31 9:10 + */ +public interface WxCpSchoolService { + + /** + * 获取老师健康信息 + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/user/get_teacher_customize_health_info?access_token=ACCESS_TOKEN + * + * @param date + * @param nextKey + * @param limit + * @return + * @throws WxErrorException + */ + WxCpCustomizeHealthInfo getTeacherCustomizeHealthInfo(@NotNull String date, String nextKey, Integer limit) throws WxErrorException; + + /** + * 获取学生健康信息 + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/user/get_student_customize_health_info?access_token=ACCESS_TOKEN + * + * @param date + * @param nextKey + * @param limit + * @return + * @throws WxErrorException + */ + WxCpCustomizeHealthInfo getStudentCustomizeHealthInfo(@NotNull String date, String nextKey, Integer limit) throws WxErrorException; + + /** + * 获取师生健康码 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/get_health_qrcode?access_token=ACCESS_TOKEN + * + * @param userIds + * @param type + * @return + * @throws WxErrorException + */ + WxCpResultList getHealthQrCode(@NotNull List userIds, @NotNull Integer type) throws WxErrorException; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 00be57b104..32606b205d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -400,6 +400,13 @@ public interface WxCpService extends WxService { */ WxCpOaService getOaService(); + /** + * 获取家校应用复学码相关接口的服务类对象 + * + * @return + */ + WxCpSchoolService getSchoolService(); + /** * 获取家校应用健康上报的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 890253b11c..fbfdbf3834 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -49,6 +49,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpTagService tagService = new WxCpTagServiceImpl(this); private WxCpAgentService agentService = new WxCpAgentServiceImpl(this); private WxCpOaService oaService = new WxCpOaServiceImpl(this); + private WxCpSchoolService schoolService = new WxCpSchoolServiceImpl(this); private WxCpSchoolHealthService schoolHealthService = new WxCpSchoolHealthServiceImpl(this); private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); private WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); @@ -494,6 +495,11 @@ public WxCpOaService getOaService() { return oaService; } + @Override + public WxCpSchoolService getSchoolService() { + return schoolService; + } + @Override public WxCpSchoolHealthService getSchoolHealthService() { return schoolHealthService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java index 33465921c3..fa802a1c68 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java @@ -97,6 +97,7 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S Finance.FreeSlice(slice); WxCpChatDatas chatDatas = WxCpChatDatas.fromJson(content); if (chatDatas.getErrCode().intValue() != 0) { + Finance.DestroySingletonSDK(sdk); throw new WxErrorException(chatDatas.toJson()); } @@ -104,23 +105,33 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S } @Override - public WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData) throws Exception { - String plainText = this.decryptChatData(chatData); + public WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { + String plainText = this.decryptChatData(chatData, pkcs1); return WxCpChatModel.fromJson(plainText); } - public String decryptChatData(WxCpChatDatas.WxCpChatData chatData) throws Exception { - // 企业获取的会话内容将用公钥加密,企业可用自行保存的私钥解开会话内容数据,aeskey不能为空 - String priKey = cpService.getWxCpConfigStorage().getAesKey(); + public String decryptChatData(WxCpChatDatas.WxCpChatData chatData, Integer pkcs1) throws Exception { + /** + * 企业获取的会话内容,使用企业自行配置的消息加密公钥进行加密,企业可用自行保存的私钥解开会话内容数据。 + * msgAuditPriKey 会话存档私钥不能为空 + */ + String priKey = cpService.getWxCpConfigStorage().getMsgAuditPriKey(); if (StringUtils.isEmpty(priKey)) { - throw new WxErrorException("请配置会话存档私钥【aesKey】"); + throw new WxErrorException("请配置会话存档私钥【msgAuditPriKey】"); } - String decryptByPriKey = WxCpCryptUtil.decryptByPriKey(chatData.getEncryptRandomKey(), priKey); - // 每次使用DecryptData解密会话存档前需要调用NewSlice获取一个slice,在使用完slice中数据后,还需要调用FreeSlice释放。 + String decryptByPriKey = WxCpCryptUtil.decryptPriKey(chatData.getEncryptRandomKey(), priKey, pkcs1); + /** + * 每次使用DecryptData解密会话存档前需要调用NewSlice获取一个slice,在使用完slice中数据后,还需要调用FreeSlice释放。 + */ long sdk = Finance.SingletonSDK(); long msg = Finance.NewSlice(); + /** + * 解密会话存档内容 + * sdk不会要求用户传入rsa私钥,保证用户会话存档数据只有自己能够解密。 + * 此处需要用户先用rsa私钥解密encrypt_random_key后,作为encrypt_key参数传入sdk来解密encrypt_chat_msg获取会话存档明文。 + */ int ret = Finance.DecryptData(sdk, decryptByPriKey, chatData.getEncryptChatMsg(), msg); if (ret != 0) { Finance.FreeSlice(msg); @@ -128,15 +139,17 @@ public String decryptChatData(WxCpChatDatas.WxCpChatData chatData) throws Except throw new WxErrorException("msg err ret " + ret); } - // 明文 + /** + * 明文 + */ String plainText = Finance.GetContentFromSlice(msg); Finance.FreeSlice(msg); return plainText; } @Override - public String getChatPlainText(WxCpChatDatas.@NonNull WxCpChatData chatData) throws Exception { - return this.decryptChatData(chatData); + public String getChatPlainText(WxCpChatDatas.@NonNull WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { + return this.decryptChatData(chatData, pkcs1); } @Override diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java new file mode 100644 index 0000000000..329c924069 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java @@ -0,0 +1,67 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.WxCpSchoolService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; +import me.chanjar.weixin.cp.bean.school.WxCpResultList; + +import javax.validation.constraints.NotNull; +import java.util.List; +import java.util.Optional; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.School.*; + +/** + * 企业微信家校应用 复学码相关接口实现类. + * https://developer.work.weixin.qq.com/document/path/93744 + * + * @author Wang_Wong + * @date: 2022/6/1 14:05 + */ +@Slf4j +@RequiredArgsConstructor +public class WxCpSchoolServiceImpl implements WxCpSchoolService { + + private final WxCpService cpService; + + @Override + public WxCpCustomizeHealthInfo getTeacherCustomizeHealthInfo(@NotNull String date, String nextKey, Integer limit) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_TEACHER_CUSTOMIZE_HEALTH_INFO); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("date", date); + jsonObject.addProperty("limit", Optional.ofNullable(limit).orElse(100)); + if (nextKey != null) { + jsonObject.addProperty("next_key", nextKey); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpCustomizeHealthInfo.fromJson(responseContent); + } + + @Override + public WxCpCustomizeHealthInfo getStudentCustomizeHealthInfo(@NotNull String date, String nextKey, Integer limit) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_STUDENT_CUSTOMIZE_HEALTH_INFO); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("date", date); + jsonObject.addProperty("limit", Optional.ofNullable(limit).orElse(100)); + if (nextKey != null) { + jsonObject.addProperty("next_key", nextKey); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpCustomizeHealthInfo.fromJson(responseContent); + } + + @Override + public WxCpResultList getHealthQrCode(@NotNull List userIds, @NotNull Integer type) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_HEALTH_QRCODE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("type", type); + jsonObject.addProperty("userids", userIds.toString()); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpResultList.fromJson(responseContent); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpCustomizeHealthInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpCustomizeHealthInfo.java new file mode 100644 index 0000000000..a28c3fa356 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpCustomizeHealthInfo.java @@ -0,0 +1,150 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取健康信息. + * + * @author Wang_Wong + */ +@Data +public class WxCpCustomizeHealthInfo extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("health_infos") + private List healthInfos; + + @SerializedName("template_id") + private String templateId; + + @SerializedName("next_key") + private String nextKey; + + @SerializedName("ending") + private Integer ending; + + @Getter + @Setter + public static class HealthInfo implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("userid") + private String userId; + + @SerializedName("health_qrcode_status") + private Integer healthQrCodeStatus; + + @SerializedName("self_submit") + private Integer selfSubmit; + + @SerializedName("report_values") + private List reportValues; + + @SerializedName("question_templates") + private List questionTemplates; + + public static HealthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, HealthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ReportValue implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("question_id") + private Integer questionId; + + @SerializedName("single_chose") + private Integer singleChose; + + @SerializedName("text") + private String text; + + public static ReportValue fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ReportValue.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class QuestionTemplate implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("question_id") + private Integer questionId; + + @SerializedName("question_type") + private Integer questionType; + + @SerializedName("title") + private String title; + + @SerializedName("is_must_fill") + private Integer isMustFill; + + @SerializedName("is_not_display") + private Integer isNotDisplay; + + @SerializedName("option_list") + private List optionList; + + public static QuestionTemplate fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, QuestionTemplate.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class OptionList implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("option_id") + private Integer optionId; + + @SerializedName("option_text") + private String optionText; + + public static OptionList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, OptionList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpCustomizeHealthInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpCustomizeHealthInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpResultList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpResultList.java new file mode 100644 index 0000000000..c4305264d5 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpResultList.java @@ -0,0 +1,53 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取师生健康码. + * + * @author Wang_Wong + */ +@Data +public class WxCpResultList extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("result_list") + private List qrCodeList; + + @Setter + @Getter + public static class QrCodeList extends WxCpBaseResp{ + + @SerializedName("userid") + private String userId; + + @SerializedName("qrcode_data") + private String qrCodeData; + + public static QrCodeList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, QrCodeList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpResultList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpResultList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java index 1d7e9685d0..10ae05ead1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/WxCpConfigStorage.java @@ -174,6 +174,13 @@ public interface WxCpConfigStorage { */ String getAesKey(); + /** + * 企微会话存档私钥 + * + * @return + */ + String getMsgAuditPriKey(); + /** * 获取企微会话存档系统库 绝对路径 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java index c716eb7359..442e437cfc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpDefaultConfigImpl.java @@ -43,6 +43,10 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable { private volatile String token; private volatile String aesKey; private volatile long expiresTime; + /** + * 会话存档私钥以及sdk路径 + */ + private volatile String msgAuditPriKey; private volatile String msgAuditLibPath; private volatile String oauth2redirectUri; private volatile String httpProxyHost; @@ -257,6 +261,11 @@ public String getAesKey() { return this.aesKey; } + @Override + public String getMsgAuditPriKey() { + return this.msgAuditPriKey; + } + @Override public String getMsgAuditLibPath() { return this.msgAuditLibPath; @@ -294,6 +303,15 @@ public void setMsgAuditLibPath(String msgAuditLibPath) { this.msgAuditLibPath = msgAuditLibPath; } + /** + * 设置会话存档私钥 + * + * @param msgAuditPriKey 会话存档私钥 + */ + public void setMsgAuditPriKey(String msgAuditPriKey) { + this.msgAuditPriKey = msgAuditPriKey; + } + @Override public String getOauth2redirectUri() { return this.oauth2redirectUri; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java index 89b939e613..662cf226b6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java @@ -40,6 +40,7 @@ public class WxCpRedisConfigImpl implements WxCpConfigStorage { private volatile String token; private volatile String aesKey; private volatile Integer agentId; + private volatile String msgAuditPriKey; private volatile String msgAuditLibPath; private volatile String oauth2redirectUri; private volatile String httpProxyHost; @@ -321,6 +322,11 @@ public String getAesKey() { return this.aesKey; } + @Override + public String getMsgAuditPriKey() { + return this.msgAuditPriKey; + } + @Override public String getMsgAuditLibPath() { return this.msgAuditLibPath; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 93246c5269..a9528929fd 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -177,6 +177,10 @@ interface School { String GET_HEALTH_REPORT_STAT = "/cgi-bin/health/get_health_report_stat"; String GET_REPORT_JOBIDS = "/cgi-bin/health/get_report_jobids"; String GET_REPORT_JOB_INFO = "/cgi-bin/health/get_report_job_info"; + + String GET_TEACHER_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_teacher_customize_health_info"; + String GET_STUDENT_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_student_customize_health_info"; + String GET_HEALTH_QRCODE = "/cgi-bin/school/user/get_health_qrcode"; } interface Living { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java index d36a1ce342..7b09bf4ad1 100755 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java @@ -2,14 +2,18 @@ import com.google.common.base.CharMatcher; import com.google.common.io.BaseEncoding; +import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.crypto.WxCryptUtil; import me.chanjar.weixin.cp.config.WxCpConfigStorage; -import org.apache.commons.codec.binary.Base64; +import sun.security.util.DerInputStream; +import sun.security.util.DerValue; import javax.crypto.Cipher; import java.security.KeyFactory; import java.security.PrivateKey; import java.security.spec.PKCS8EncodedKeySpec; +import java.security.spec.RSAPrivateCrtKeySpec; +import java.util.Base64; public class WxCpCryptUtil extends WxCryptUtil { public WxCpCryptUtil(WxCpConfigStorage wxCpConfigStorage) { @@ -28,29 +32,77 @@ public WxCpCryptUtil(WxCpConfigStorage wxCpConfigStorage) { } /** - * 会话存档接口解密私钥 - * 企业获取的会话内容将用公钥加密,企业用自行保存的私钥解开会话内容数据 + * 判断使用PKCS8或者PKCS1进行解密 + * + * @param encryptRandomKey 使用PUBLICKEY_VER指定版本的公钥进行非对称加密后base64加密的内容 + * @param msgAuditPriKey 会话存档私钥 + * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... + * @return + * @throws Exception + */ + public static String decryptPriKey(String encryptRandomKey, String msgAuditPriKey, Integer pkcs1) throws Exception { + if (pkcs1 == null) { + throw new WxErrorException("请配置会话存档解密方式"); + } + + if (pkcs1.intValue() == 1) { + return decryptPriKeyByPKCS1(encryptRandomKey, msgAuditPriKey); + } + + return decryptPriKeyByPKCS8(encryptRandomKey, msgAuditPriKey); + } + + /** + * PKCS8 解密私钥 * * @param encryptRandomKey * @param msgAuditPriKey * @return * @throws Exception */ - public static String decryptByPriKey(String encryptRandomKey, String msgAuditPriKey) throws Exception { + public static String decryptPriKeyByPKCS8(String encryptRandomKey, String msgAuditPriKey) throws Exception { String privateKey = msgAuditPriKey.replaceAll("\\n", "") .replace("-----BEGIN PRIVATE KEY-----", "") .replace("-----END PRIVATE KEY-----", "") .replaceAll(" ", ""); - byte[] keyByte = Base64.decodeBase64(privateKey); - PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyByte); + byte[] keyBytes = Base64.getDecoder().decode(privateKey); + PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); PrivateKey priKey = keyFactory.generatePrivate(pkcs8KeySpec); Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm()); cipher.init(Cipher.DECRYPT_MODE, priKey); - byte[] utf8 = cipher.doFinal(Base64.decodeBase64(encryptRandomKey)); + byte[] utf8 = cipher.doFinal(Base64.getDecoder().decode(encryptRandomKey)); + return new String(utf8, "UTF-8"); + } + /** + * 会话存档,PKCS1 解密私钥 + * 企业获取的会话内容将用公钥加密,企业用自行保存的私钥解开会话内容数据 + * + * @param encryptRandomKey 使用PUBLICKEY_VER指定版本的公钥进行非对称加密后base64加密的内容,需要业务方先base64 decode处理后,再使用指定版本的私钥进行解密,得出内容。String类型 + * @param msgAuditPriKey 会话存档私钥 + * @return + * @throws Exception + */ + public static String decryptPriKeyByPKCS1(String encryptRandomKey, String msgAuditPriKey) throws Exception { + String privateKey = msgAuditPriKey.replaceAll("\\n", "") + .replace("-----BEGIN RSA PRIVATE KEY-----", "") + .replace("-----END RSA PRIVATE KEY-----", "") + .replaceAll(" ", ""); + + byte[] keyBytes = Base64.getDecoder().decode(privateKey); + DerValue[] seq = new DerInputStream(keyBytes).getSequence(0); + RSAPrivateCrtKeySpec keySpec = new RSAPrivateCrtKeySpec(seq[1].getBigInteger(), seq[2].getBigInteger(), + seq[3].getBigInteger(), seq[4].getBigInteger(), + seq[5].getBigInteger(), seq[6].getBigInteger(), + seq[7].getBigInteger(), seq[8].getBigInteger()); + + PrivateKey priKey = KeyFactory.getInstance("RSA").generatePrivate(keySpec); + Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); + cipher.init(Cipher.DECRYPT_MODE, priKey); + byte[] utf8 = cipher.doFinal(Base64.getDecoder().decode(encryptRandomKey)); return new String(utf8, "UTF-8"); } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java index 47e511be7d..a07db2edf4 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -1,6 +1,5 @@ package me.chanjar.weixin.cp.api; import com.google.common.collect.Lists; - import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.msgaudit.*; @@ -18,7 +17,7 @@ * 企业微信会话内容存档测试类. * 官方文档:https://developer.work.weixin.qq.com/document/path/91360 * - * @author Wang_Wong + * @author Wang_Wong * @date 2022-01-17 */ @Slf4j @@ -28,6 +27,7 @@ public class WxCpMsgAuditTest { private static WxCpService cpService; // com.binarywang.spring.starter.wxjava.cp.config.WxCpServiceAutoConfiguration + // WxCpServiceImpl.getAccessToken() @Test public void test() throws Exception { @@ -39,20 +39,26 @@ public void test() throws Exception { cpService.setWxCpConfigStorage(config); /** - * 配置: + * 仔细配置: * - * wwa3bexxXXXXXX - * 自定义agentId - * xIpum7Yt4NMXXXXXXX - * 2bSNqXXXXXXXX - * MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDZuPVMyVyMvJkdSCZA893B2pggd1r95T8k2QZgz+VejtaDJCbD60mYoW1Uwwlwuqy8W78M6MmXsskn+5XunyR1WJlJGqgi0OMVGYvSfkNb9kD50fM21CGLcN1y4miL9fVNBIsvJmIUeJCNS8TioAVGFvh2EgzjqTR1gHfDwu8If7rfGmTHkPYL8hQxMg/EQ3451JOIBHSa7EQSx64SIoVWEgSDFQjGEpjUiJRfciyyz+nTSkEDgFa9hpyTS6E0c/3Q5lVDFgIwTArC19XBFKb00PbcFuLriOIsTBX4K9XWBtefVXowAdqUVQDH6BNUIK7/iVPQ4L3p+F5DBOrx8I/7AgMBAAECggEBAK53C/nwEX2lU3ynaB/8SuMga274ta1mmmbIkdfaQA65nyOPQJEWZe8szBN0BoiSzgBR9JI/p+srlQ25CLgiRnDSAmMWPU1I3e72fZi7HPcAKakGmEKDUi4OzyVUUDp3aY3B6lZqB4Yn5o2S/b4sRI2ZspfKdxGncSYHP/Far3i6hzq2C1hbyYM6HkHPcrQ+z6ir6GxjLvHXssVJ+/C0HMsVIQAWPyEGbzWozS+EswmQ+itk+7cewiLWbaCSp6lsjHKGTxJwCxRes0nUt2SfkLnIUkDLxB7c6zDQJCn1K2UckCjNBlCWl+oDWLkLQ7UAJ+4IYYSslR4wXzRg8PplW8ECgYEA9VlEprEoG2oSn3HXIMFg0MANViQe89QJQdwd7D5h4FLxXQLItxqmZj77iktlzlICcK9WT9WHRY1AOilsuMaDmY0VH3Z8r/X9BU712KFJqMYH5CNxrqHOya3BG+CclEKToaOTmo9kiOpFAMNSuuWs6gvILJ0CKEmSUo5G9fJu4fkCgYEA4yypHoRZIP0mDdVDeVtdHHcq5JdWF6xbAFs4P57VHG1KDMWouk3IHSeO279gEIwcBAdaLcMMgFfzyQBwcisxjC76oyoZnbSntB7ZMFdPqALKfxIdleLilbASuRKesVAF+OgOx/yp/aQUeLG2pVBivgn2TyGMwjnxznTh9vh+vpMCgYEAmOva7krdRLkIgnjiLXhab8JEjbxVzoQKgRJBVE5NkxQffGmP0RC7Rl9bSQdVnRNgkfu3QGtGtQMlVRscuM6Cl+JnmASyErqvye89LJja4GcN5BRzdvVDflDeXBHThlU4zza1eVCGyQ+7ko4rsnIVJIvTaHs0LQguO2aStBk3I4ECgYAyBsO3VK3L9fNLWItjThtTCWsIq8rpq6reiTf5yqBjgi2sYlqlrDtFMFDlU190RWZl/Lh/G1TFbpjgypf4jEp89Ft9UugRMpc7sw9g9dk0xmiRUwvw1eXP0NZOqysHIPgvt+qJX7qPgHKBoaD3Bpy3/Lmg82Jr4xa8wECCgnZmwQKBgH7hirPs1/HqBrbxS726IZUf9QTmVkyOYIwzuwFYKb/+4caSah+iaXexVux0xS5tchj/6c1dQSKJmlegV8smIb6EEcko7llA1y1P5QFtXtaaRd07tTsv3BKEg496YLRjbxPzgJn6Fsoz3TTdGwESL8Q3I2h0WmVVhmr/rjr+RkWQ + * ww45xxx88865xxx + * xIpum7Yt4NMXcyxdzcQ2l_46BG4QIQDR57MhA45ebIw // secret + * 200000 // 会话存档的应用id + * // 回调配置的token + * // 回调配置的EncodingAESKey * - * 注意:最好先配置lib开头的系统库,再配置sdk类库,配置绝对路径,最好配置为linux路径 - * windows: - * D:/WorkSpace/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so - * linux: - * /www/osfile/work_msg_storage/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + * // 企业微信会话存档 + * // 1、会话存档私钥,一定要加上前缀!! + * // 2、仔细配置windows以及linux环境sdk路径 + * MIxxx893B2pggd1r95T8k2QxxxxbD6xxxxmXsskn+5XunyR1WJlJGqgi0OMVGYvSfkNb9kD50fM21CGLcN1y4miL9fVNBIsvJmIUeJCNS8TioAVGFvh2EgzjqTR1gH + * /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so * + * + * 注意:最好先配置lib开头的系统库,再配置sdk类库,配置绝对路径,最好配置为linux路径 + * Windows: + * D:/WorkSpace/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + * Linux: + * /www/osfile/work_msg_storage/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so */ /** @@ -84,12 +90,13 @@ public void test() throws Exception { // Integer publickeyVer = chatData.getPublickeyVer(); // 获取明文数据 - final String chatPlainText = cpService.getMsgAuditService().getChatPlainText(chatData); + final String chatPlainText = cpService.getMsgAuditService().getChatPlainText(chatData, 2); final WxCpChatModel wxCpChatModel = WxCpChatModel.fromJson(chatPlainText); log.info("明文数据为:{}", wxCpChatModel.toJson()); // 获取消息数据 - final WxCpChatModel decryptData = cpService.getMsgAuditService().getDecryptData(chatData); + // https://developer.work.weixin.qq.com/document/path/91774 + final WxCpChatModel decryptData = cpService.getMsgAuditService().getDecryptData(chatData, 2); log.info("获取消息数据为:{}", decryptData.toJson()); /** @@ -435,6 +442,16 @@ public void test() throws Exception { WxCpGroupChat room = cpService.getMsgAuditService().getGroupChat("wrOQpTDwAAyPl84GBJ40W5eWxWtixSCA"); log.info(room.toJson()); + + /** + * 获取access_token + * https://developer.work.weixin.qq.com/document/path/91039 + * https://www.jianshu.com/p/dde171887d63 + */ + String getUrl = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s"; + String data = cpService.get(String.format(getUrl, config.getCorpId(), config.getCorpSecret()), null); + + } } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java new file mode 100644 index 0000000000..ddb1d47c09 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java @@ -0,0 +1,72 @@ +package me.chanjar.weixin.cp.api; + +import com.google.common.collect.Lists; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; +import me.chanjar.weixin.cp.bean.school.WxCpResultList; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import org.testng.annotations.Test; + +import java.io.InputStream; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; + +/** + * 企业微信家校应用 复学码相关接口. + * https://developer.work.weixin.qq.com/document/path/93744 + * + * @author Wang_Wong + * @date: 2022/5/31 9:10 + */ +@Slf4j +public class WxCpSchoolTest { + + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + @Test + public void test() throws WxErrorException { + + /** + * 注意: + * 权限说明:仅复学码应用可以调用 + */ + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + + + /** + * 获取老师健康信息 + * https://developer.work.weixin.qq.com/document/path/93744 + */ + WxCpCustomizeHealthInfo teacherCustomizeHealthInfo = cpService.getSchoolService().getTeacherCustomizeHealthInfo(date, null, null); + log.info("teacherCustomizeHealthInfo为:{}", teacherCustomizeHealthInfo.toJson()); + + /** + * 获取学生健康信息 + * https://developer.work.weixin.qq.com/document/path/93745 + */ + WxCpCustomizeHealthInfo studentCustomizeHealthInfo = cpService.getSchoolService().getStudentCustomizeHealthInfo(date, null, null); + log.info("studentCustomizeHealthInfo为:{}", studentCustomizeHealthInfo.toJson()); + + /** + * 获取师生健康码 + * https://developer.work.weixin.qq.com/document/path/93746 + */ + ArrayList userIds = Lists.newArrayList(); + userIds.add("Wangkai"); + WxCpResultList healthQrCode = cpService.getSchoolService().getHealthQrCode(userIds, 1); + log.info("healthQrCode为:{}", healthQrCode.toJson()); + + } + +} diff --git a/weixin-java-cp/src/test/resources/test-config.sample.xml b/weixin-java-cp/src/test/resources/test-config.sample.xml index 23e83e942a..19241aba7f 100644 --- a/weixin-java-cp/src/test/resources/test-config.sample.xml +++ b/weixin-java-cp/src/test/resources/test-config.sample.xml @@ -11,6 +11,18 @@ 企业号通讯录里的某个tagid 网页授权获取用户信息回调地址 webhook链接地址的key值 - + + -----BEGIN RSA PRIVATE KEY----- + MIICXAIBAAKBgQCTfm5cxqfglfOV7b/Z7OtTZZoZpk2EPTvVhn/ngsfKR899xRdR + 25s4h8HkK0XhxqYdOGoAdG3Gms+DvCSY/vu3UtImf0eZSNXpKZJBUnvUVjX4ivnr + Ohu2Rjw6O4gPjPnZKw8voCu0Nae1YLeNvFYw48PK7QrqmpHQv1sCd/8zHwIDAQAB + AoGAResz7xgfQghjsgnEHk9BGUY7YHhlG9CZWjYJ0Ro+ksYq9vClBuGHeitk/0CC + Pq7YVVbGbVPELFd8EvNwF/UcJsMlvFis16FzNS60Hn7M/o82gI6AVhSQmocoGhNs + MIKxTnXRqqlKFbCdcSfG+hQP7syHah6Z8UhLYuEA8s/ppd0CQQD99HTSvB4P5FfL + rlKTz6w6uh4qBYl53u5cLQxCRFGgXD6HvPnEwdzQf+2LCVM1zIhyxw2Kak1U467Q + 6JizEuHDTC2YljEbg/j+/AlpA/Ua5HQYnH5yD3DCK7rQyTvqE5gU+CfRbwTbLGre + fk/WJK4iqizgZobNRyUCQGB7jR5b8K7NsX7SoV7v/PFOsoj4G2W5q7LSz4GaoXGl + 3F+dSlXPYHdTow3dzfgVDldEzgoThs5UWMTQvBUZch0= + -----END RSA PRIVATE KEY----- /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so From c8e3d7ad26e6aab728078a4e6424cd933ed2ba87 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 5 Jun 2022 22:39:51 +0800 Subject: [PATCH 254/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java index 2d4b713919..e70daf65ca 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java @@ -35,13 +35,12 @@ */ @Data public class WxMaOpenCommitStandardExt implements Serializable { - private static final long serialVersionUID = 4595618023108631477L; /** * 授权小程序Appid,可填入商户小程序AppID,以区分不同商户 */ - @SerializedName("create_time") + @SerializedName("extAppId") private String extAppId; /** From 29c92a0b92e4fbd5196f1dd8f6be0eacf991a7d8 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 5 Jun 2022 22:49:22 +0800 Subject: [PATCH 255/622] =?UTF-8?q?:art:=20=E7=94=B5=E5=95=86=E6=94=B6?= =?UTF-8?q?=E4=BB=98=E9=80=9A=E4=B8=AD=E7=9A=84=E5=88=86=E8=B4=A6=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E9=9B=86=E4=B8=AD=E7=9A=84=E5=88=86=E8=B4=A6?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E6=96=B9=E5=B0=91=E4=B8=80=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/bean/ecommerce/ProfitSharingResult.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java index 09cc3e843c..6cadd8d823 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java @@ -16,8 +16,8 @@ @Data @NoArgsConstructor public class ProfitSharingResult implements Serializable { - private static final long serialVersionUID = 9026456165403642050L; + /** *

    * 字段名:二级商户号
@@ -278,5 +278,18 @@ public static class Receiver implements Serializable {
      */
     @SerializedName(value = "receiver_account")
     private String receiverAccount;
+
+    /**
+     * 
+     * 字段名:分账明细单号
+     * 变量名:detail_id
+     * 类型:string[1,64]
+     * 是否必填:是 (查询明细结果时是必有的)
+     * 描述:微信分账明细单号,每笔分账业务执行的明细单号,可与资金账单对账使用
+     * 示例值:3601111111111111111111
+     * 
+ */ + @SerializedName(value = "detail_id") + private String detailId; } } From a6caeaf5cfeba2312195f4e6d68cb6f7e83540ed Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 5 Jun 2022 23:20:02 +0800 Subject: [PATCH 256/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.5?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index c95d24e932..85bf52a822 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 9083f41ed6..5cc05c5476 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index fefb012108..846e4b5dd0 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 36e8963f66..8d8a926e66 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 4a8f15041d..13cdad4f77 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 85f5e87d6a..2207529187 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index b06552c581..6064983a88 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index d09d09ed12..ba6b40c8c7 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 6642c05433..9fbad1bc31 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index bf7855083b..8325117b50 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index fe89d8deae..831cf912a3 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index c2f6a398e7..a464571f04 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index a9eb6dff6f..0178cecdcf 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 354f62bf47..81ac622d80 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index ff6c9db264..8f620ed34b 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 6e15cc4941..92f289f7f8 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.4.B + 4.3.5.B weixin-java-qidian From c39cd8b85e0b4a4c325c9ed100d9d19fc4d8b5c7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jun 2022 14:34:54 +0800 Subject: [PATCH 257/622] :arrow_up: Bump jodd-http from 5.2.0 to 6.2.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85bf52a822..3c29f696eb 100644 --- a/pom.xml +++ b/pom.xml @@ -137,7 +137,7 @@ org.jodd jodd-http - 5.2.0 + 6.2.1 provided From f81d5b74d526be571931ec8aefdab74ead5b8b57 Mon Sep 17 00:00:00 2001 From: songxh2 Date: Fri, 10 Jun 2022 14:36:12 +0800 Subject: [PATCH 258/622] =?UTF-8?q?:bug:=20=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/message/WxCpTpXmlMessage.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java index 87f8332dcf..c2aef9e131 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java @@ -16,6 +16,7 @@ import java.util.Map; /** + * sxh 修改版本,有些参数类型错误,修正版 * 回调推送的message * https://work.weixin.qq.com/api/doc#90001/90143/90612 * @@ -333,7 +334,7 @@ public class WxCpTpXmlMessage implements Serializable { @XStreamAlias("NewOrderId") @XStreamConverter(value = XStreamCDataConverter.class) private String newOrderId; - + @Data @XStreamAlias("ContactSync") public static class ContactSync implements Serializable { @@ -383,13 +384,13 @@ public static class ApprovalInfo implements Serializable { private static final long serialVersionUID = 6031833682211475786L; @XStreamAlias("ThirdNo") - protected Long thirdNo; + protected String thirdNo; @XStreamAlias("OpenSpName") protected String openSpName; @XStreamAlias("OpenTemplateId") - protected Integer openTemplateId; + protected String openTemplateId; @XStreamAlias("OpenSpStatus") protected Integer openSpStatus; @@ -401,7 +402,7 @@ public static class ApprovalInfo implements Serializable { protected String applyUserName; @XStreamAlias("ApplyUserId") - protected Integer applyUserId; + protected String applyUserId; @XStreamAlias("ApplyUserParty") protected String applyUserParty; @@ -447,7 +448,7 @@ public static class Item implements Serializable { @XStreamAlias("ItemName") protected String itemName; @XStreamAlias("ItemUserId") - protected Integer itemUserId; + protected String itemUserId; @XStreamAlias("ItemImage") protected String itemImage; @XStreamAlias("ItemStatus") @@ -467,7 +468,7 @@ public static class NotifyNode implements Serializable { @XStreamAlias("ItemName") protected String itemName; @XStreamAlias("ItemUserId") - protected Integer itemUserId; + protected String itemUserId; @XStreamAlias("ItemImage") protected String itemImage; } From 508d053ed32ed62b7c010b2d808ca41a7742bf95 Mon Sep 17 00:00:00 2001 From: Trifolium Date: Fri, 10 Jun 2022 14:37:51 +0800 Subject: [PATCH 259/622] =?UTF-8?q?:art:=20#2660=20=E3=80=90=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E8=A1=A5=E5=85=A8=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=8E=88=E6=9D=83=E5=B8=90=E5=8F=B7=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=83=A8=E5=88=86=E7=BC=BA=E5=A4=B1=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/bean/auth/WxOpenAuthorizerInfo.java | 30 ++++ .../json/WxOpenAuthorizerInfoGsonAdapter.java | 8 +- .../WxOpenAuthorizerInfoResultTest.java | 131 ++++++++++++++++++ 3 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java index b22b66ecb0..0888a30d41 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizerInfo.java @@ -43,6 +43,27 @@ public class WxOpenAuthorizerInfo implements Serializable { */ private MiniProgramInfo miniProgramInfo; + /** + * 小程序注册方式 + * 类型 说明 + * 0 普通方式注册 + * 2 通过复用公众号创建小程序 api 注册 + * 6 通过法人扫脸创建企业小程序 api 注册 + * 13 通过创建试用小程序 api 注册 + * 15 通过联盟控制台注册 + * 16 通过创建个人小程序 api 注册 + * 17 通过创建个人交易小程序 api 注册 + * 19 通过试用小程序转正 api 注册 + * 22 通过复用商户号创建企业小程序 api 注册 + * 23 通过复用商户号转正 api 注册 + */ + private Integer registerType; + + /** + * 小程序基础配置信息 + */ + private BasicConfig basicConfig; + @Data public static class MiniProgramInfo implements Serializable { private static final long serialVersionUID = 8857028017332191988L; @@ -76,4 +97,13 @@ public static class Network implements Serializable { private List bizDomain; } } + + @Data + public static class BasicConfig implements Serializable { + private static final long serialVersionUID = -8857028017332191989L; + @SerializedName("is_phone_configured") + private Boolean isPhoneConfigured; + @SerializedName("is_email_configured") + private Boolean isEmailConfigured; + } } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java index b9dbf49c10..7e4439ec0c 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/json/WxOpenAuthorizerInfoGsonAdapter.java @@ -16,6 +16,7 @@ public class WxOpenAuthorizerInfoGsonAdapter implements JsonDeserializer(){ + }.getType())); + } Map businessInfo = WxOpenGsonBuilder.create().fromJson(jsonObject.get("business_info"), new TypeToken>() { }.getType()); diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java new file mode 100644 index 0000000000..63c4533355 --- /dev/null +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java @@ -0,0 +1,131 @@ +package me.chanjar.weixin.open.bean.result; + +import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder; +import org.testng.annotations.Test; + +/** + * @title: 获取授权帐号详情 信息反序列化测试 + * @author: trifolium + * @date: 2022/6/7 + * @modified : + */ +public class WxOpenAuthorizerInfoResultTest { + + @Test + public void testDeserialization() { + + String json = "{\n" + + " \"authorizer_info\": {\n" + + " \"nick_name\": \"美妆饰品\",\n" + + " \"head_img\": \"http:\\/\\/wx.qlogo.cn\\/mmopen\\/jJSbu4Te5iuiaM0dFnKVUEE83n2yH5cQStb\\/0\",\n" + + " \"service_type_info\": {\n" + + " \"id\": 0\n" + + " },\n" + + " \"verify_type_info\": {\n" + + " \"id\": -1\n" + + " },\n" + + " \"user_name\": \"gh_c43395cb652e\",\n" + + " \"alias\": \"\",\n" + + " \"qrcode_url\": \"http:\\/\\/mmbiz.qpic.cn\\/mmbiz_jpg\\/kPmmhe6g\\/0\",\n" + + " \"business_info\": {\n" + + " \"open_pay\": 0,\n" + + " \"open_shake\": 0,\n" + + " \"open_scan\": 0,\n" + + " \"open_card\": 0,\n" + + " \"open_store\": 0\n" + + " },\n" + + " \"idc\": 1,\n" + + " \"principal_name\": \"个人\",\n" + + " \"signature\": \"做美装,精美饰品等搭配教学\",\n" + + " \"MiniProgramInfo\": {\n" + + " \"network\": {\n" + + " \"RequestDomain\": [\"https:\\/\\/weixin.qq.com\"],\n" + + " \"WsRequestDomain\": [\"wss:\\/\\/weixin.qq.com\"],\n" + + " \"UploadDomain\": [\"https:\\/\\/weixin.qq.com\"],\n" + + " \"DownloadDomain\": [\"https:\\/\\/weixin.qq.com\"],\n" + + " \"BizDomain\": [],\n" + + " \"UDPDomain\": [],\n" + + " \"TCPDomain\": [],\n" + + " \"PrefetchDNSDomain\": [],\n" + + " \"NewRequestDomain\": [],\n" + + " \"NewWsRequestDomain\": [],\n" + + " \"NewUploadDomain\": [],\n" + + " \"NewDownloadDomain\": [],\n" + + " \"NewBizDomain\": [],\n" + + " \"NewUDPDomain\": [],\n" + + " \"NewTCPDomain\": [],\n" + + " \"NewPrefetchDNSDomain\": []\n" + + " },\n" + + " \"categories\": [{\n" + + " \"first\": \"生活服务\",\n" + + " \"second\": \"丽人服务\"\n" + + " }, {\n" + + " \"first\": \"旅游服务\",\n" + + " \"second\": \"旅游资讯\"\n" + + " }, {\n" + + " \"first\": \"物流服务\",\n" + + " \"second\": \"查件\"\n" + + " }],\n" + + " \"visit_status\": 0\n" + + " },\n" + + " \"register_type\": 0,\n" + + " \"account_status\": 1,\n" + + " \"basic_config\": {\n" + + " \"is_phone_configured\": true,\n" + + " \"is_email_configured\": true\n" + + " }\n" + + " },\n" + + " \"authorization_info\": {\n" + + " \"authorizer_appid\": \"wx326eecacf7370d4e\",\n" + + " \"authorizer_refresh_token\": \"refreshtoken@@@RU0Sgi7bD6apS7frS9gj8Sbws7OoDejK9Z-cm0EnCzg\",\n" + + " \"func_info\": [{\n" + + " \"funcscope_category\": {\n" + + " \"id\": 3\n" + + " },\n" + + " \"confirm_info\": {\n" + + " \"need_confirm\": 0,\n" + + " \"already_confirm\": 0,\n" + + " \"can_confirm\": 0\n" + + " }\n" + + " }, {\n" + + " \"funcscope_category\": {\n" + + " \"id\": 7\n" + + " }\n" + + " }, {\n" + + " \"funcscope_category\": {\n" + + " \"id\": 17\n" + + " }\n" + + " }, {\n" + + " \"funcscope_category\": {\n" + + " \"id\": 18\n" + + " },\n" + + " \"confirm_info\": {\n" + + " \"need_confirm\": 0,\n" + + " \"already_confirm\": 0,\n" + + " \"can_confirm\": 0\n" + + " }\n" + + " }, {\n" + + " \"funcscope_category\": {\n" + + " \"id\": 19\n" + + " }\n" + + " }, {\n" + + " \"funcscope_category\": {\n" + + " \"id\": 30\n" + + " },\n" + + " \"confirm_info\": {\n" + + " \"need_confirm\": 0,\n" + + " \"already_confirm\": 0,\n" + + " \"can_confirm\": 0\n" + + " }\n" + + " }, {\n" + + " \"funcscope_category\": {\n" + + " \"id\": 115\n" + + " }\n" + + " }]\n" + + " }\n" + + "}\n"; + + System.out.println(WxOpenGsonBuilder.create().fromJson(json, WxOpenAuthorizerInfoResult.class)); + } + +} From bb8c82d25c6a6d2ea006b46848771c79663ba175 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Fri, 10 Jun 2022 14:38:25 +0800 Subject: [PATCH 260/622] =?UTF-8?q?:new:=20#2689=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E5=A1=AB=E5=86=99=E7=AD=94=E6=A1=88?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpSchoolHealthService.java | 17 ++++ .../api/impl/WxCpSchoolHealthServiceImpl.java | 17 ++++ .../school/health/WxCpGetReportAnswer.java | 96 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + .../weixin/cp/api/WxCpSchoolHealthTest.java | 13 +++ 5 files changed, 144 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java index 0d852e74b1..76233046d3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java @@ -3,6 +3,7 @@ import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.school.health.WxCpGetHealthReportStat; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportAnswer; import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobIds; import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobInfo; @@ -54,4 +55,20 @@ public interface WxCpSchoolHealthService { */ WxCpGetReportJobInfo getReportJobInfo(@NonNull String jobId, @NonNull String date) throws WxErrorException; + /** + * 获取用户填写答案 + * 通过此接口可以获取指定的健康上报任务详情。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/health/get_report_answer?access_token=ACCESS_TOKEN + * + * @param jobId + * @param date + * @param offset + * @param limit + * @return + * @throws WxErrorException + */ + WxCpGetReportAnswer getReportAnswer(@NonNull String jobId, @NonNull String date, Integer offset, Integer limit) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java index bee4bf0306..ff1119cc1a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java @@ -8,6 +8,7 @@ import me.chanjar.weixin.cp.api.WxCpSchoolHealthService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.school.health.WxCpGetHealthReportStat; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportAnswer; import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobIds; import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobInfo; @@ -56,4 +57,20 @@ public WxCpGetReportJobInfo getReportJobInfo(@NonNull String jobId, @NonNull Str return WxCpGetReportJobInfo.fromJson(responseContent); } + @Override + public WxCpGetReportAnswer getReportAnswer(@NonNull String jobId, @NonNull String date, Integer offset, Integer limit) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_REPORT_ANSWER); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("jobid", jobId); + jsonObject.addProperty("date", date); + if (offset != null) { + jsonObject.addProperty("offset", offset); + } + if (limit != null) { + jsonObject.addProperty("limit", limit); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpGetReportAnswer.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java new file mode 100644 index 0000000000..a016ad1ef4 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java @@ -0,0 +1,96 @@ +package me.chanjar.weixin.cp.bean.school.health; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取用户填写答案. + * + * @author Wang_Wong + */ +@Data +public class WxCpGetReportAnswer extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("answers") + private List answers; + + @Getter + @Setter + public static class Answer implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("userid") + private String userId; + + @SerializedName("id_type") + private Integer idType; + + @SerializedName("report_time") + private Long reportTime; + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("report_values") + private List reportValues; + + public static Answer fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Answer.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ReportValue implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("question_id") + private Integer questionId; + + @SerializedName("single_chose") + private Integer singleChose; + + @SerializedName("multi_choice") + private List multiChoice; + + @SerializedName("text") + private String text; + + @SerializedName("fileid") + private List fileId; + + public static ReportValue fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ReportValue.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpGetReportAnswer fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpGetReportAnswer.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index a9528929fd..8ea37c36a8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -177,6 +177,7 @@ interface School { String GET_HEALTH_REPORT_STAT = "/cgi-bin/health/get_health_report_stat"; String GET_REPORT_JOBIDS = "/cgi-bin/health/get_report_jobids"; String GET_REPORT_JOB_INFO = "/cgi-bin/health/get_report_job_info"; + String GET_REPORT_ANSWER = "/cgi-bin/health/get_report_answer"; String GET_TEACHER_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_teacher_customize_health_info"; String GET_STUDENT_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_student_customize_health_info"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java index 2ed24719bd..5e7469ddf8 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java @@ -4,6 +4,7 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.school.health.WxCpGetHealthReportStat; +import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportAnswer; import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobIds; import me.chanjar.weixin.cp.bean.school.health.WxCpGetReportJobInfo; import me.chanjar.weixin.cp.config.WxCpConfigStorage; @@ -39,6 +40,18 @@ public void test() throws WxErrorException { String currDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + // Test + String reportAnswerStr = "{\"errcode\":0,\"errmsg\":\"ok\",\"answers\":[{\"id_type\":1,\"userid\":\"userid2\",\"report_time\":123456789,\"report_values\":[{\"question_id\":1,\"single_choice\":2},{\"question_id\":2,\"text\":\"广东省广州市\"},{\"question_id\":3,\"multi_choice\":[1,3]},{\"question_id\":4,\"fileid\":[\"XXXXXXX\"]}]},{\"id_type\":2,\"student_userid\":\"student_userid1\",\"parent_userid\":\"parent_userid1\",\"report_time\":123456789,\"report_values\":[{\"question_id\":1,\"single_choice\":1},{\"question_id\":2,\"text\":\"广东省深圳市\"},{\"question_id\":3,\"multi_choice\":[1,2,3]},{\"question_id\":4,\"fileid\":[\"XXXXXXX\"]}]}]}"; + WxCpGetReportAnswer getReportAnswer = WxCpGetReportAnswer.fromJson(reportAnswerStr); + log.info("获取对应的getReportAnswer:{}", getReportAnswer.toJson()); + + /** + * 获取用户填写答案 + * https://developer.work.weixin.qq.com/document/path/93679 + */ + WxCpGetReportAnswer reportAnswer = cpService.getSchoolHealthService().getReportAnswer("xxxx", currDate, null, null); + log.info("返回的reportAnswer为:{}", reportAnswer.toJson()); + /** * 获取健康上报任务ID列表 * https://developer.work.weixin.qq.com/document/path/93677 From d390c5d9fecdac50b48938f269a6db3d41496f59 Mon Sep 17 00:00:00 2001 From: Will Date: Tue, 14 Jun 2022 09:39:28 +0800 Subject: [PATCH 261/622] =?UTF-8?q?:bug:=20#2693=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E5=A4=8D=E5=8F=91?= =?UTF-8?q?=E9=80=81=E4=BC=81=E4=B8=9A=E7=BA=A2=E5=8C=85=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java index 762499e693..7f78e66b25 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java @@ -148,6 +148,11 @@ protected boolean isWxWorkSign() { return true; } + @Override + protected String[] getIgnoredParamsForSign() { + return new String[]{"sign_type"}; + } + @Override protected void storeMap(Map map) { map.put("mch_billno", mchBillNo); From a9fe0b29d4359055d65a9f55ae5d32e2845a5a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=87=AF=E6=97=8B?= <42696884+azouever@users.noreply.github.com> Date: Tue, 14 Jun 2022 09:42:32 +0800 Subject: [PATCH 262/622] =?UTF-8?q?:art:=20#2687=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E7=9B=B4=E6=92=AD=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=E5=AD=97=E6=AE=B5thirdPartyAppid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../miniapp/bean/live/WxMaLiveGoodInfo.java | 6 ++++ .../wx/miniapp/bean/live/WxMaLiveResult.java | 5 +++ .../wxpay/bean/ecommerce/RefundsResult.java | 2 +- .../bean/ecommerce/ReturnOrdersResult.java | 2 +- .../service/impl/EcommerceServiceImpl.java | 32 +++++++++++-------- 5 files changed, 32 insertions(+), 15 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java index 3ef043495a..7db60d215c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java @@ -27,4 +27,10 @@ public class WxMaLiveGoodInfo implements Serializable { * https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/pendant.html */ private List goodsKey; + + + /** + * 当商品为第三方小程序的商品则填写为对应第三方小程序的appid,自身小程序商品则为'' + */ + private String thirdPartyAppid; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java index dfb7b1e48f..40e649dc32 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveResult.java @@ -74,6 +74,11 @@ public static class Goods implements Serializable { */ @SerializedName("third_party_tag") private String thirdPartyTag; + + /** + * 当商品为第三方小程序的商品则填写为对应第三方小程序的appid,自身小程序商品则为'' + */ + private String thirdPartyAppid; } /** diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java index c83fdf4a5a..b1139be565 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java @@ -66,7 +66,7 @@ public class RefundsResult implements Serializable { *

*/ @SerializedName(value = "create_time") - private Date createTime; + private String createTime; /** *
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java
index 5655139d0f..c833b17337 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java
@@ -163,6 +163,6 @@ public class ReturnOrdersResult implements Serializable {
    * 
*/ @SerializedName(value = "finish_time") - private Date finishTime; + private String finishTime; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java index 91ab368306..23f1cbd8c2 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java @@ -12,15 +12,15 @@ import com.google.common.base.CaseFormat; import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import org.apache.commons.lang3.StringUtils; import lombok.RequiredArgsConstructor; import org.apache.commons.beanutils.BeanMap; +import org.apache.commons.lang3.StringUtils; import java.io.IOException; import java.io.InputStream; -import java.net.URI; import java.nio.charset.StandardCharsets; import java.security.GeneralSecurityException; +import java.text.DateFormat; import java.util.Iterator; import java.util.Map; import java.util.Objects; @@ -30,6 +30,11 @@ public class EcommerceServiceImpl implements EcommerceService { private static final Gson GSON = new GsonBuilder().create(); + + // https://stackoverflow.com/questions/6873020/gson-date-format + // gson default date format not match, so custom DateFormat + // detail DateFormat: FULL,LONG,SHORT,MEDIUM + private static final Gson GSON_CUSTOM = new GsonBuilder().setDateFormat(DateFormat.FULL, DateFormat.FULL).create(); private final WxPayService payService; @Override @@ -71,7 +76,7 @@ public T combineTransactions(TradeTypeEnum tradeType, CombineTransactionsReq @Override public CombineTransactionsNotifyResult parseCombineNotifyResult(String notifyData, SignatureHeader header) throws WxPayException { - if(Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)){ + if (Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)) { throw new WxPayException("非法请求,头部信息验证失败"); } NotifyResponse response = GSON.fromJson(notifyData, NotifyResponse.class); @@ -81,7 +86,7 @@ public CombineTransactionsNotifyResult parseCombineNotifyResult(String notifyDat String nonce = resource.getNonce(); String apiV3Key = this.payService.getConfig().getApiV3Key(); try { - String result = AesUtils.decryptToString(associatedData, nonce,cipherText, apiV3Key); + String result = AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key); CombineTransactionsResult transactionsResult = GSON.fromJson(result, CombineTransactionsResult.class); CombineTransactionsNotifyResult notifyResult = new CombineTransactionsNotifyResult(); @@ -117,7 +122,7 @@ public T partnerTransactions(TradeTypeEnum tradeType, PartnerTransactionsReq @Override public PartnerTransactionsNotifyResult parsePartnerNotifyResult(String notifyData, SignatureHeader header) throws WxPayException { - if(Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)){ + if (Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)) { throw new WxPayException("非法请求,头部信息验证失败"); } NotifyResponse response = GSON.fromJson(notifyData, NotifyResponse.class); @@ -127,7 +132,7 @@ public PartnerTransactionsNotifyResult parsePartnerNotifyResult(String notifyDat String nonce = resource.getNonce(); String apiV3Key = this.payService.getConfig().getApiV3Key(); try { - String result = AesUtils.decryptToString(associatedData, nonce,cipherText, apiV3Key); + String result = AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key); PartnerTransactionsResult transactionsResult = GSON.fromJson(result, PartnerTransactionsResult.class); PartnerTransactionsNotifyResult notifyResult = new PartnerTransactionsNotifyResult(); @@ -277,7 +282,7 @@ public RefundQueryResult queryRefundByOutRefundNo(String subMchid, String outRef @Override public RefundNotifyResult parseRefundNotifyResult(String notifyData, SignatureHeader header) throws WxPayException { - if(Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)){ + if (Objects.nonNull(header) && !this.verifyNotifySign(header, notifyData)) { throw new WxPayException("非法请求,头部信息验证失败"); } NotifyResponse response = GSON.fromJson(notifyData, NotifyResponse.class); @@ -287,7 +292,7 @@ public RefundNotifyResult parseRefundNotifyResult(String notifyData, SignatureHe String nonce = resource.getNonce(); String apiV3Key = this.payService.getConfig().getApiV3Key(); try { - String result = AesUtils.decryptToString(associatedData, nonce,cipherText, apiV3Key); + String result = AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key); RefundNotifyResult notifyResult = GSON.fromJson(result, RefundNotifyResult.class); notifyResult.setRawData(response); return notifyResult; @@ -359,8 +364,9 @@ public InputStream downloadBill(String url) throws WxPayException { /** * 校验通知签名 + * * @param header 通知头信息 - * @param data 通知数据 + * @param data 通知数据 * @return true:校验通过 false:校验不通过 */ private boolean verifyNotifySign(SignatureHeader header, String data) { @@ -374,8 +380,9 @@ private boolean verifyNotifySign(SignatureHeader header, String data) { /** * 对象拼接到url + * * @param o 转换对象 - * @return 拼接好的string + * @return 拼接好的string */ private String parseURLPair(Object o) { Map map = new BeanMap(o); @@ -384,7 +391,7 @@ private String parseURLPair(Object o) { StringBuilder sb = new StringBuilder(); while (it.hasNext()) { Map.Entry e = it.next(); - if ( !"class".equals(e.getKey()) && e.getValue() != null) { + if (!"class".equals(e.getKey()) && e.getValue() != null) { sb.append(CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, String.valueOf(e.getKey()))) .append("=").append(e.getValue()).append("&"); } @@ -392,5 +399,4 @@ private String parseURLPair(Object o) { return sb.deleteCharAt(sb.length() - 1).toString(); } - - } +} From 1f3f133772e3cb1b2a2023373ce366386323bd41 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 14 Jun 2022 09:48:27 +0800 Subject: [PATCH 263/622] =?UTF-8?q?:new:=20#2692=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E5=BA=94=E7=94=A8-=E7=8F=AD=E7=BA=A7=E6=94=B6?= =?UTF-8?q?=E6=AC=BE=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...MediaInputStreamUploadRequestExecutor.java | 2 +- .../weixin/cp/api/WxCpSchoolService.java | 25 +++++++ .../cp/api/impl/WxCpSchoolServiceImpl.java | 21 ++++++ .../cp/bean/school/WxCpPaymentResult.java | 65 +++++++++++++++++++ .../weixin/cp/bean/school/WxCpTrade.java | 39 +++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 3 + .../chanjar/weixin/cp/api/WxCpSchoolTest.java | 30 +++++++++ 7 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpPaymentResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpTrade.java diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java index d0591aee9b..479844e42a 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java @@ -4,7 +4,7 @@ import jodd.http.HttpRequest; import jodd.http.HttpResponse; import jodd.http.ProxyInfo; -import jodd.http.up.ByteArrayUploadable; +import jodd.http.upload.ByteArrayUploadable; import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java index 2e97bf0755..1a43664911 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java @@ -2,7 +2,9 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; +import me.chanjar.weixin.cp.bean.school.WxCpPaymentResult; import me.chanjar.weixin.cp.bean.school.WxCpResultList; +import me.chanjar.weixin.cp.bean.school.WxCpTrade; import javax.validation.constraints.NotNull; import java.util.List; @@ -57,4 +59,27 @@ public interface WxCpSchoolService { */ WxCpResultList getHealthQrCode(@NotNull List userIds, @NotNull Integer type) throws WxErrorException; + /** + * 获取学生付款结果 + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/get_payment_result?access_token=ACCESS_TOKEN + * + * @param paymentId + * @return + * @throws WxErrorException + */ + WxCpPaymentResult getPaymentResult(@NotNull String paymentId) throws WxErrorException; + + /** + * 获取订单详情 + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/get_trade?access_token=ACCESS_TOKEN + * + * @param paymentId + * @param tradeNo + * @return + * @throws WxErrorException + */ + WxCpTrade getTrade(@NotNull String paymentId, @NotNull String tradeNo) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java index 329c924069..023ee60566 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java @@ -7,7 +7,9 @@ import me.chanjar.weixin.cp.api.WxCpSchoolService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; +import me.chanjar.weixin.cp.bean.school.WxCpPaymentResult; import me.chanjar.weixin.cp.bean.school.WxCpResultList; +import me.chanjar.weixin.cp.bean.school.WxCpTrade; import javax.validation.constraints.NotNull; import java.util.List; @@ -64,4 +66,23 @@ public WxCpResultList getHealthQrCode(@NotNull List userIds, @NotNull In return WxCpResultList.fromJson(responseContent); } + @Override + public WxCpPaymentResult getPaymentResult(@NotNull String paymentId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_PAYMENT_RESULT); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("payment_id", paymentId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpPaymentResult.fromJson(responseContent); + } + + @Override + public WxCpTrade getTrade(@NotNull String paymentId, @NotNull String tradeNo) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_TRADE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("payment_id", paymentId); + jsonObject.addProperty("trade_no", tradeNo); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpTrade.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpPaymentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpPaymentResult.java new file mode 100644 index 0000000000..e707ba9183 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpPaymentResult.java @@ -0,0 +1,65 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取学生付款结果. + * + * @author Wang_Wong + */ +@Data +public class WxCpPaymentResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + @SerializedName("project_name") + private String projectName; + + @SerializedName("amount") + private Integer amount; + + @SerializedName("payment_result") + private List paymentResult; + + @Setter + @Getter + public static class PaymentResult{ + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("trade_no") + private String tradeNo; + + @SerializedName("payer_parent_userid") + private String payerParentUserId; + + @SerializedName("trade_state") + private Integer tradeState; + + public static PaymentResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, PaymentResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpPaymentResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpPaymentResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpTrade.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpTrade.java new file mode 100644 index 0000000000..8283174b26 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpTrade.java @@ -0,0 +1,39 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 获取订单详情. + * + * @author Wang_Wong + */ +@Data +public class WxCpTrade extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625142879581L; + + /** + * 微信交易单号 + */ + @SerializedName("transaction_id") + private String transactionId; + + /** + * 交易时间 + */ + @SerializedName("pay_time") + private Long payTime; + + public static WxCpTrade fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpTrade.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 8ea37c36a8..d2b5ccaaf1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -182,6 +182,9 @@ interface School { String GET_TEACHER_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_teacher_customize_health_info"; String GET_STUDENT_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_student_customize_health_info"; String GET_HEALTH_QRCODE = "/cgi-bin/school/user/get_health_qrcode"; + + String GET_PAYMENT_RESULT = "/cgi-bin/school/get_payment_result"; + String GET_TRADE = "/cgi-bin/school/get_trade"; } interface Living { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java index ddb1d47c09..5f2896d7a6 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java @@ -5,7 +5,9 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; +import me.chanjar.weixin.cp.bean.school.WxCpPaymentResult; import me.chanjar.weixin.cp.bean.school.WxCpResultList; +import me.chanjar.weixin.cp.bean.school.WxCpTrade; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; @@ -44,6 +46,34 @@ public void test() throws WxErrorException { String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + /** + * 获取学生付款结果 + * https://developer.work.weixin.qq.com/document/path/94553 + */ + String paymentResultStr = "{\"errcode\":0,\"errmsg\":\"ok\",\"project_name\":\"学费\",\"amount\":998,\"payment_result\":[{\"student_userid\":\"xxxx\",\"trade_state\":1,\"trade_no\":\"xxxxx\",\"payer_parent_userid\":\"zhangshan\"}]}"; + WxCpPaymentResult cpPaymentResult = WxCpPaymentResult.fromJson(paymentResultStr); + log.info("cpPaymentResult:{}", cpPaymentResult.toJson()); + + WxCpPaymentResult paymentResult = cpService.getSchoolService().getPaymentResult(""); + log.info("paymentResult:{}", paymentResult.toJson()); + + /** + * 获取订单详情 + * https://developer.work.weixin.qq.com/document/path/94554 + */ + String tradeStr = "{\n" + + "\t\"errcode\":0,\n" + + "\t\"errmsg\":\"ok\",\n" + + "\t\"transaction_id\":\"xxxxx\", \t \n" + + "\t\"pay_time\":12345\n" + + "}"; + WxCpTrade wxCpTrade = WxCpTrade.fromJson(tradeStr); + log.info("wxCpTrade:{}", wxCpTrade.toJson()); + + WxCpTrade trade = cpService.getSchoolService().getTrade("", ""); + log.info("trade:{}", trade.toJson()); + + /** * 获取老师健康信息 * https://developer.work.weixin.qq.com/document/path/93744 From a21a622936c97801ef20a6c5866adea83cdecfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=B1=E7=8B=90?= Date: Tue, 14 Jun 2022 02:30:33 +0000 Subject: [PATCH 264/622] =?UTF-8?q?:new:=20#2696=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E9=93=B6=E8=A1=8C=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=B7=BB=E5=8A=A0=E7=9C=81=E5=B8=82=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8F=8A=E6=94=AF=E8=A1=8C=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/bean/bank/BankBranchesResult.java | 176 ++++ .../wxpay/bean/bank/CitiesResult.java | 80 ++ .../binarywang/wxpay/bean/bank/PageLink.java | 62 ++ .../wxpay/bean/bank/ProvincesResult.java | 81 ++ .../bean/ecommerce/ApplymentsRequest.java | 778 ++++++++++++++---- .../binarywang/wxpay/service/BankService.java | 58 +- .../wxpay/service/EcommerceService.java | 2 +- .../wxpay/service/impl/BankServiceImpl.java | 26 +- 8 files changed, 1108 insertions(+), 155 deletions(-) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankBranchesResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/CitiesResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/PageLink.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/ProvincesResult.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankBranchesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankBranchesResult.java new file mode 100644 index 0000000000..72cc4f6a76 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankBranchesResult.java @@ -0,0 +1,176 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.List; + +/** + * 支行列表 + * + * @author hupeng + **/ +@Data +public class BankBranchesResult implements Serializable { + + private static final long serialVersionUID = -3500020131951579476L; + + /** + *
+   * 字段名:查询数据总条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  经过条件筛选,查询到的支行总数
+   *  示例值:10
+   * 
+ */ + @SerializedName("total_count") + private Integer totalCount; + + /** + *
+   * 字段名:本次查询条数
+   * 变量名:count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  本次查询到的支行数据条数
+   *  示例值:10
+   * 
+ */ + @SerializedName("count") + private Integer count; + + /** + *
+   * 字段名:支行列表
+   * 变量名:data
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  单次查询返回的支行列表结果数组
+   * 
+ */ + @SerializedName("data") + private List data; + + /** + *
+   * 字段名:本次查询偏移量
+   * 变量名:offset
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0
+   *  示例值:0
+   * 
+ */ + @SerializedName("offset") + private Integer offset; + + /** + *
+   * 字段名:分页链接
+   * 变量名:offset
+   * 是否必填:是
+   * 类型:object
+   * 描述:
+   *  返回前后页和当前页面的访问链接
+   * 
+ */ + @SerializedName("links") + private PageLink links; + + /** + *
+   * 字段名:开户银行
+   * 变量名:account_bank
+   * 是否必填:是
+   * 类型:string[1, 128]
+   * 描述:
+   *  查询到的支行所属开户银行的名称,非直连银行统一为其他银行
+   *  示例值:招商银行其他银行
+   * 
+ */ + @SerializedName("account_bank") + private String accountBank; + + /** + *
+   * 字段名:开户银行编码
+   * 变量名:account_bank_code
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  查询到的支行所属开户银行的开户银行编码,可用于付款到银行卡等场景中指定银行卡的开户银行
+   *  示例值:1001
+   * 
+ */ + @SerializedName("account_bank_code") + private Integer accountBankCode; + + /** + *
+   * 字段名:银行别名
+   * 变量名:bank_alias
+   * 是否必填:是
+   * 类型:string[1, 128]
+   * 描述:
+   *  查询到的支行所属银行的银行别名
+   *  示例值:工商银行深圳前海微众银行
+   * 
+ */ + @SerializedName("bank_alias") + private String bankAlias; + + /** + *
+   * 字段名:银行别名编码
+   * 变量名:bank_alias_code
+   * 是否必填:是
+   * 类型:string[1, 32]
+   * 描述:
+   *  查询到的支行所属银行的银行别名编码,用于校验回包
+   *  示例值:1000006247
+   * 
+ */ + @SerializedName("bank_alias_code") + private String bankAliasCode; + + @Getter + @Setter + public static class BankBranch { + /** + *
+     * 字段名:开户银行支行名称
+     * 变量名:bank_branch_name
+     * 是否必填:是
+     * 类型:string[1, 128]
+     * 描述:
+     *  开户银行支行名称,用于开户银行为其他银行的情况下,在入驻、修改结算银行卡、企业付款等场景下填写结算银行卡信息。
+     *  示例值:中国工商银行上海市周浦支行
+     * 
+ */ + @SerializedName("bank_branch_name") + private String bankBranchName; + + /** + *
+     * 字段名:开户银行支行联行号
+     * 变量名:bank_branch_id
+     * 是否必填:是
+     * 类型:string[1, 64]
+     * 描述:
+     *  开户银行支行的联行号,用于开户银行为其他银行的情况下,在入驻、修改结算银行卡、企业付款等场景下填写结算银行卡信息。
+     *  示例值:102290072311
+     * 
+ */ + @SerializedName("bank_branch_id") + private String bankBranchId; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/CitiesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/CitiesResult.java new file mode 100644 index 0000000000..b5bf87c816 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/CitiesResult.java @@ -0,0 +1,80 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.List; + +/** + * 城市列表 + * + * @author hupeng + **/ +@Data +public class CitiesResult implements Serializable { + + private static final long serialVersionUID = -6089905695087974693L; + + /** + *
+   * 字段名:查询数据总条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  查询到的省份数据总条数
+   *  示例值:10
+   * 
+ */ + @SerializedName("total_count") + private Integer totalCount; + + /** + *
+   * 字段名:城市列表
+   * 变量名:data
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  查询返回的城市列表结果
+   * 
+ */ + @SerializedName("data") + private List data; + + @Getter + @Setter + public static class CityInfo { + /** + *
+     * 字段名:城市名称
+     * 变量名:city_name
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  城市名称
+     *  示例值:北京市
+     * 
+ */ + @SerializedName("city_name") + private String cityName; + + /** + *
+     * 字段名:城市编码
+     * 变量名:city_code
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  城市编码,唯一标识一座城市,用于结合银行别名编码查询支行列表
+     *  示例值:10
+     * 
+ */ + @SerializedName("city_code") + private Integer cityCode; + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/PageLink.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/PageLink.java new file mode 100644 index 0000000000..419cdc3c94 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/PageLink.java @@ -0,0 +1,62 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.List; + +/** + * 支行列表 + * + * @author hupeng + **/ +@Data +public class PageLink implements Serializable { + + private static final long serialVersionUID = -2624233403271204837L; + + /** + *
+   * 字段名:下一页链接
+   * 变量名:next
+   * 是否必填:否
+   * 类型:string[1, 2048]
+   * 描述:
+   *  使用同样的limit进行下一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果已经到最后时,为空
+   *  示例值:/v3/capital/capitallhh/banks/1001/branches?offset=10&limit=5
+   * 
+ */ + @SerializedName("next") + private String next; + + /** + *
+   * 字段名:上一页链接
+   * 变量名:prev
+   * 是否必填:否
+   * 类型:string[1, 2048]
+   * 描述:
+   *  使用同样的limit进行上一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果是第一页,为空
+   *  示例值:/v3/capital/capitallhh/banks/1001/branchesoffset=0&limit=5
+   * 
+ */ + @SerializedName("prev") + private String prev; + + /** + *
+   * 字段名:当前链接
+   * 变量名:self
+   * 是否必填:否
+   * 类型:string[1, 2048]
+   * 描述:
+   *  当前的相对请求链接,使用方需要自行根据当前域名进行拼接
+   *  示例值:/v3/capital/capitallhh/banks/1001/branches?offset=5&limit=5
+   * 
+ */ + @SerializedName("self") + private String self; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/ProvincesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/ProvincesResult.java new file mode 100644 index 0000000000..6525fc1c91 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/ProvincesResult.java @@ -0,0 +1,81 @@ +package com.github.binarywang.wxpay.bean.bank; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.util.List; + +/** + * 省份列表 + * + * @author hupeng + **/ +@Data +public class ProvincesResult implements Serializable { + + private static final long serialVersionUID = -4118613374545722650L; + + /** + *
+   * 字段名:查询数据总条数
+   * 变量名:total_count
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  查询到的省份数据总条数
+   *  示例值:10
+   * 
+ */ + @SerializedName("total_count") + private Integer totalCount; + + /** + *
+   * 字段名:省份列表
+   * 变量名:data
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  查询到的省份列表数组
+   * 
+ */ + @SerializedName("data") + private List data; + + @Getter + @Setter + public static class ProvinceInfo { + + /** + *
+     * 字段名:省份名称
+     * 变量名:province_name
+     * 是否必填:是
+     * 类型:string[1, 256]
+     * 描述:
+     *  省份名称
+     *  示例值:广东省
+     * 
+ */ + @SerializedName("province_name") + private String provinceName; + + /** + *
+     * 字段名:省份编码
+     * 变量名:province_code
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  省份编码,唯一标识一个省份,用于根据省份编码查询省份下的城市列表数据
+     *  示例值:22
+     * 
+ */ + @SerializedName("province_code") + private Integer provinceCode; + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java index 87ce9b5b21..9b0c6b6604 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java @@ -6,12 +6,13 @@ import lombok.NoArgsConstructor; import java.io.Serializable; +import java.util.List; /** *
  * 电商平台,可使用该接口,帮助其二级商户进件成为微信支付商户。
- * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_1.shtml
+ * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_8.shtml
  * 
*/ @Data @@ -41,18 +42,37 @@ public class ApplymentsRequest implements Serializable { * 是否必填:是 * 类型:string(4) * 描述: - * 枚举值: - * 2401:小微商户,指无营业执照的商户。 + * 非小微的主体类型需与营业执照/登记证书上一致,可参考选择主体指引,枚举值如下。 + * 2401:小微商户,指无营业执照的个人商家。 + * 2500:个人卖家,指无营业执照,已持续从事电子商务经营活动满6个月,且期间经营收入累计超过20万元的个人商家。(若选择该主体,请在“补充说明”填写相关描述)。 * 4:个体工商户,营业执照上的主体类型一般为个体户、个体工商户、个体经营。 * 2:企业,营业执照上的主体类型一般为有限公司、有限责任公司。 - * 3:党政、机关及事业单位,包括国内各级、各类政府机构、事业单位等(如:公安、党团、司法、交通、旅游、工商税务、市政、医疗、教育、学校等机构)。 - * 1708:其他组织,不属于企业、政府/事业单位的组织机构(如社会团体、民办非企业、基金会),要求机构已办理组织机构代码证。 - * 示例值:2401 + * 3:事业单位,包括国内各类事业单位,如:医疗、教育、学校等单位。 + * 2502:政府机关,包括各级、各类政府机关,如机关党委、税务、民政、人社、工商、商务、市监等。 + * 1708:社会组织,包括社会团体、民办非企业、基金会、基层群众性自治组织、农村集体经济组织等组织。 + * 示例值:2 *
*/ @SerializedName(value = "organization_type") private String organizationType; + /** + *
+   * 字段名:是否金融机构
+   * 变量名:finance_institution
+   * 是否必填:条件选填
+   * 类型:bool
+   * 描述:
+   *  选填,请根据申请主体的实际情况填写,可参考选择金融机构指引:
+   *  1、若商户主体是金融机构,则填写:true。
+   *  2、若商户主体不是金融机构,则填写:false。
+   *  若未传入将默认填写:false。
+   *  示例值:true
+   * 
+ */ + @SerializedName(value = "finance_institution") + private Boolean financeInstitution; + /** *
    * 字段名:+营业执照/登记证书信息
@@ -60,9 +80,9 @@ public class ApplymentsRequest implements Serializable {
    * 是否必填:条件选填
    * 类型:object
    * 描述:
-   *  1、主体为“小微”时,不填。
+   *  1、主体为“小微/个人卖家”时,不填。
    *  2、主体为“个体工商户/企业”时,请上传营业执照。
-   *  3、主体为“党政、机关及事业单位/其他组织”时,请上传登记证书。
+   *  3、主体为“政府机关/事业单位/社会组织”时,请上传登记证书。
    * 
*/ @SerializedName(value = "business_license_info") @@ -70,38 +90,75 @@ public class ApplymentsRequest implements Serializable { /** *
-   * 字段名:+组织机构代码证信息
-   * 变量名:organization_cert_info
+   * 字段名:+金融机构许可证信息
+   * 变量名:finance_institution_info
    * 是否必填:条件选填
    * 类型:object
-   * 描述:主体为企业/党政、机关及事业单位/其他组织,且证件号码不是18位时必填。
+   * 描述:当主体是金融机构时,必填
    * 
*/ - @SerializedName(value = "organization_cert_info") - private OrganizationCertInfo organizationCertInfo; + @SerializedName(value = "finance_institution_info") + private FinanceInstitutionInfo financeInstitutionInfo; + + /** + * 字段名:证件持有人类型 + * 变量名:id_holder_type + * 是否必填:条件选填 + * 类型:string + * 描述: + * 1. 主体类型为政府机关/事业单位时选传: + * (1)若上传的是法人证件,则不需要上传该字段。 + * (2)若因特殊情况,无法提供法人证件时,可上传经办人。 (经办人:经商户授权办理微信支付业务的人员,授权范围包括但不限于签约,入驻过程需完成账户验证)。 + * 2. 主体类型为企业/个体户/社会组织时,默认为经营者/法人,不需要上传该字段。 + * LEGAL:法人 + * SUPER:经办人 + * 示例值:LEGAL + */ + @SerializedName(value = "id_holder_type") + private String idHolderType; /** *
    * 字段名:经营者/法人证件类型
    * 变量名:id_doc_type
-   * 是否必填:否
+   * 是否必填:条件选填
    * 类型:string(64)
    * 描述:
-   *  1、主体为“小微”,只可选择:身份证。
-   *  2、主体为“个体户/企业/党政、机关及事业单位/其他组织”,可选择:任一证件类型。
-   *  3、若没有填写,系统默认选择:身份证。
-   *  枚举值:
+   *  1、当证件持有人类型为经营者/法人时,需要填写。其他情况,无需上传。
+   *  2、主体为“小微/个人卖家”,可选择:身份证。
+   *  3、主体为“个体户/企业/事业单位/社会组织”:可选择任一证件类型,主体为“政府机关”仅支持中国大陆居民-身份证类型。
+   *  4、若没有填写,系统默认选择:身份证。
+   *  枚举值:
    *  IDENTIFICATION_TYPE_MAINLAND_IDCARD:中国大陆居民-身份证
    *  IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照
-   *  IDENTIFICATION_TYPE_HONGKONG:中国香港居民–来往内地通行证
-   *  IDENTIFICATION_TYPE_MACAO:中国澳门居民–来往内地通行证
-   *  IDENTIFICATION_TYPE_TAIWAN:中国台湾居民–来往大陆通行证
-   *  示例值:IDENTIFICATION_TYPE_MACAO
+   *  IDENTIFICATION_TYPE_HONGKONG:中国香港居民--来往内地通行证
+   *  IDENTIFICATION_TYPE_MACAO:中国澳门居民--来往内地通行证
+   *  IDENTIFICATION_TYPE_TAIWAN:中国台湾居民--来往大陆通行证
+   *  IDENTIFICATION_TYPE_FOREIGN_RESIDENT:外国人居留证
+   *  IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT:港澳居民证
+   *  IDENTIFICATION_TYPE_TAIWAN_RESIDENT:台湾居民证
+   *  示例值:IDENTIFICATION_TYPE_MAINLAND_IDCARD
    * 
*/ @SerializedName(value = "id_doc_type") private String idDocType; + /** + *
+   * 字段名:法定代表人说明函
+   * 变量名:authorize_letter_copy
+   * 是否必填:条件选填
+   * 类型:string(256)
+   * 描述:
+   *  1、当证件持有人类型为经办人时,必须上传。其他情况,无需上传。
+   *  2、若因特殊情况,无法提供法定代表人证件时,请参照示例图打印法定代表人说明函,全部信息需打印,不支持手写商户信息,并加盖公章。
+   *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+   *  示例值:47ZC6GC-vnrbEny_Ie_An5-tCpqxucuxi-vByf3Gjm7KEIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+   * 
+ */ + @SerializedName(value = "authorize_letter_copy") + private String authorizeLetterCopy; + /** *
    * 字段名:+经营者/法人身份证信息
@@ -109,8 +166,7 @@ public class ApplymentsRequest implements Serializable {
    * 是否必填:条件选填
    * 类型:object
    * 描述:
-   *  请填写经营者/法人的身份证信息
-   *  证件类型为“身份证”时填写。
+   *  当证件持有人类型为经营者/法人且证件类型为“身份证”时填写。
    *
    * 
*/ @@ -124,7 +180,7 @@ public class ApplymentsRequest implements Serializable { * 变量名:id_doc_info * 是否必填:条件选填 * 类型:object - * 描述:证件类型为“来往内地通行证、来往大陆通行证、护照”时填写。 + * 描述:当证件持有人类型为经营者/法人且证件类型不为“身份证”时填写。 *
*/ @SerializedName(value = "id_doc_info") @@ -146,27 +202,31 @@ public class ApplymentsRequest implements Serializable { /** *
-   * 字段名:是否填写结算账户信息
-   * 变量名:need_account_info
-   * 是否必填:是
+   * 字段名:最终受益人信息列表
+   * 变量名:ubo_info_list
+   * 是否必填:条件选填
    * 类型:bool
    * 描述:
-   *  可根据实际情况,填写“true”或“false”。
-   *  1、若为“true”,则需填写结算账户信息。
-   *  2、若为“false”,则无需填写结算账户信息。
-   *  示例值:true
+   *  仅企业需要填写。
+   *  若经营者/法人不是最终受益所有人,则需提填写受益所有人信息,最多上传4个。
+   *  若经营者/法人是最终受益所有人之一,可在此填写其他受益所有人信息,最多上传3个。
+   *  根据国家相关法律法规,需要提供公司受益所有人信息,受益所有人需符合至少以下条件之一:
+   *  1、直接或者间接拥有超过25%公司股权或者表决权的自然人。
+   *  2、通过人事、财务等其他方式对公司进行控制的自然人。
+   *  3、公司的高级管理人员,包括公司的经理、副经理、财务负责人、上市公司董事会秘书和公司章程规定的其他人员。
    * 
*/ - @SerializedName(value = "need_account_info") - private Boolean needAccountInfo; + @SerializedName(value = "ubo_info_list") + @SpecEncrypt + private List uboInfoList; /** *
    * 字段名:+结算账户信息
    * 变量名:account_info
-   * 是否必填:条件选填
+   * 是否必填:是
    * 类型:object
-   * 描述:若"是否填写结算账户信息"填写为“true”, 则必填,填写为“false”不填 。
+   * 描述:请填写商家提现收款的银行账户信息
    * 
*/ @SerializedName(value = "account_info") @@ -219,7 +279,7 @@ public class ApplymentsRequest implements Serializable { * 是否必填:是 * 类型:string(64) * 描述: - * UTF-8格式,中文占3个字节,即最多16个汉字长度。将在支付完成页向买家展示,需与商家的实际售卖商品相符 。 + * UTF-8格式,中文占3个字节,即最多21个汉字长度。将在支付完成页向买家展示,需与商家的实际售卖商品相符 。 * 示例值:腾讯 *
*/ @@ -233,9 +293,10 @@ public class ApplymentsRequest implements Serializable { * 是否必填:否 * 类型:string(1024) * 描述: - * 1、若店铺业务包含互联网售药,则需上传特殊资质-《互联网药品交易服务证》。 - * 2、最多可上传5张照片,请填写通过图片上传接口预先上传图片生成好的MediaID 。 - * 示例值:[\"jTpGmxUX3FBWVQ5NJInE4d2I6_H7I4\"] + * 1、根据商户经营业务要求提供相关资质,详情查看《行业对应特殊资质》。 + * 2、请提供为“申请商家主体”所属的特殊资质,可授权使用总公司/分公司的特殊资 质; + * 3、最多可上传5张照片,请填写通过图片上传接口预先上传图片生成好的MediaID 。 + * 示例值:jTpGmxUX3FBWVQ5NJInE4d2I6_H7I4 *
*/ @SerializedName(value = "qualifications") @@ -248,8 +309,8 @@ public class ApplymentsRequest implements Serializable { * 是否必填:否 * 类型:string(1024) * 描述: - * 最多可上传5张照片,请填写通过图片上传接口预先上传图片生成好的MediaID 。 - * 示例值:[\"jTpGmg05InE4d2I6_H7I4\"] + * 根据实际审核情况,额外要求提供。最多可上传5张照片,请填写通过图片上传接口预先上传图片生成好的MediaID 。 + * 示例值:jTpGmg05InE4d2I6_H7I4 *
*/ @SerializedName(value = "business_addition_pics") @@ -260,9 +321,9 @@ public class ApplymentsRequest implements Serializable { * 字段名:补充说明 * 变量名:business_addition_desc * 是否必填:否 - * 类型:string(256) + * 类型:string(512) * 描述: - * 可填写512字以内 。 + * 1、若主体为“个人卖家”,该字段必传,则需填写描述“ 该商户已持续从事电子商务经营活动满6个月,且期间经营收入累计超过20万元。” * 示例值:特殊情况,说明原因 *
*/ @@ -274,20 +335,52 @@ public class ApplymentsRequest implements Serializable { public static class BusinessLicenseInfo implements Serializable { /** *
-     * 字段名:证件扫描件
+     * 字段名:证书类型
+     * 变量名:cert_type
+     * 是否必填:条件选填
+     * 类型:string
+     * 描述:
+     *  1、主体为“政府机关/事业单位/社会组织”时,请上传登记证书类型。
+     *  2、主体为“个体工商户/企业”时,不填。
+     *
+     *  当主体为事业单位时,选择此枚举值:
+     *  CERTIFICATE_TYPE_2388:事业单位法人证书
+     *
+     *  当主体为政府机关,选择此枚举值:
+     *  CERTIFICATE_TYPE_2389:统一社会信用代码证书
+     *
+     *  当主体为社会组织,选择以下枚举值之一:
+     *  CERTIFICATE_TYPE_2389:统一社会信用代码证书
+     *  CERTIFICATE_TYPE_2394:社会团体法人登记证书
+     *  CERTIFICATE_TYPE_2395:民办非企业单位登记证书
+     *  CERTIFICATE_TYPE_2396:基金会法人登记证书
+     *  CERTIFICATE_TYPE_2399:宗教活动场所登记证
+     *  CERTIFICATE_TYPE_2400:政府部门下发的其他有效证明文件
+     *  CERTIFICATE_TYPE_2520:执业许可证/执业证
+     *  CERTIFICATE_TYPE_2521:基层群众性自治组织特别法人统一社会信用代码证
+     *  CERTIFICATE_TYPE_2522:农村集体经济组织登记证
+     *  示例值:CERTIFICATE_TYPE_2388
+     * 
+ */ + @SerializedName(value = "cert_type") + private String certType; + + /** + *
+     * 字段名:营业执照扫描件
      * 变量名:business_license_copy
      * 是否必填:是
      * 类型:string(256)
      * 描述:
      *  1、主体为“个体工商户/企业”时,请上传营业执照的证件图片。
-     *  2、主体为“党政、机关及事业单位/其他组织”时,请上传登记证书的证件图片。
-     *  3、可上传1张图片,请填写通过图片上传接口预先上传图片生成好的MediaID 。
+     *  2、主体为“政府机关/事业单位/社会组织”时,请上传登记证书的证件图片。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID 。
      *  4、图片要求:
      *  (1)请上传证件的彩色扫描件或彩色数码拍摄件,黑白复印件需加盖公章(公章信息需完整) 。
      *  (2)不得添加无关水印(非微信支付商户申请用途的其他水印)。
      *  (3)需提供证件的正面拍摄件,完整、照面信息清晰可见。信息不清晰、扭曲、压缩变形、反光、不完整均不接受。
      *  (4)不接受二次剪裁、翻拍、PS的证件照片。
-     *  示例值: 47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+     *  示例值:47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
      * 
*/ @SerializedName(value = "business_license_copy") @@ -295,15 +388,14 @@ public static class BusinessLicenseInfo implements Serializable { /** *
-     * 字段名:证件注册号
+     * 字段名:营业执照注册号
      * 变量名:business_license_number
      * 是否必填:是
      * 类型:string(18)
      * 描述:
-     *  1、主体为“个体工商户/企业”时,请填写营业执照上的注册号/统一社会信用代码,须为15位数字或 18位数字|大写字母。
-     *  2、主体为“党政、机关及事业单位/其他组织”时,请填写登记证书的证书编号。
+     *  1、主体为“个体工商户/企业”时,请填写营业执照上的注册号/统一社会信用代码,须为18位数字|大写字母。
+     *  2、主体为“政府机关/事业单位/社会组织”时,请填写登记证书的证书编号。
      *  示例值:123456789012345678
-     *  特殊规则:长度最小15个字节
      * 
*/ @SerializedName(value = "business_license_number") @@ -317,7 +409,7 @@ public static class BusinessLicenseInfo implements Serializable { * 类型:string(128) * 描述: * 1、请填写营业执照/登记证书的商家名称,2~110个字符,支持括号 。 - * 2、个体工商户/党政、机关及事业单位,不能以“公司”结尾。 + * 2、个体工商户/政府机关/事业单位/社会组织,不能以“公司”结尾。 * 3、个体工商户,若营业执照上商户名称为空或为“无”,请填写"个体户+经营者姓名",如“个体户张三” 。 * 示例值:腾讯科技有限公司 *
@@ -346,7 +438,7 @@ public static class BusinessLicenseInfo implements Serializable { * 是否必填:条件选填 * 类型:string(128) * 描述: - * 主体为“党政、机关及事业单位/其他组织”时必填,请填写登记证书的注册地址。 + * 主体为“政府机关/事业单位/社会组织”时必填,请填写登记证书的注册地址。 * 示例值:深圳南山区科苑路 *
*/ @@ -360,11 +452,10 @@ public static class BusinessLicenseInfo implements Serializable { * 是否必填:条件选填 * 类型:string(256) * 描述: - * 1、主体为“党政、机关及事业单位/其他组织”时必填,请填写证件有效期。 + * 1、主体为“政府机关/事业单位/社会组织”时必填,请填写证件有效期。 * 2、若证件有效期为长期,请填写:长期。 * 3、结束时间需大于开始时间。 - * 4、有效期必须大于60天,即结束时间距当前时间需超过60天。 - * 示例值:[\"2014-01-01\",\"长期\"] + * 示例值:["2014-01-01","长期"] *
*/ @SerializedName(value = "business_time") @@ -374,52 +465,41 @@ public static class BusinessLicenseInfo implements Serializable { @Data @NoArgsConstructor - public static class OrganizationCertInfo implements Serializable { - /** - *
-     * 字段名:组织机构代码证照片
-     * 变量名:organization_copy
-     * 是否必填:是
-     * 类型:string(256)
-     * 描述:
-     *  可上传1张图片,请填写通过图片上传接口预先上传图片生成好的MediaID。
-     *  示例值:vByf3Gjm7KE53JXv\prrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
-     * 
- */ - @SerializedName(value = "organization_copy") - private String organizationCopy; - + public static class FinanceInstitutionInfo implements Serializable { /** *
-     * 字段名:组织机构代码
-     * 变量名:organization_number
+     * 字段名:金融机构类型
+     * 变量名:finance_type
      * 是否必填:是
-     * 类型:string(256)
+     * 类型:string
      * 描述:
-     *  1、请填写组织机构代码证上的组织机构代码。
-     *  2、可填写9或10位 数字|字母|连字符。
-     *  示例值:12345679-A
+     *  金融机构类型需与营业执照/登记证书上一致,可参考选择金融机构指引。
+     *  BANK_AGENT:银行业, 适用于商业银行、政策性银行、农村合作银行、村镇银行、开发性金融机构等
+     *  PAYMENT_AGENT:支付机构, 适用于非银行类支付机构
+     *  INSURANCE:保险业, 适用于保险、保险中介、保险代理、保险经纪等保险类业务
+     *  TRADE_AND_SETTLE:交易及结算类金融机构, 适用于交易所、登记结算类机构、银行卡清算机构、资金清算中心等
+     *  OTHER:其他金融机构, 适用于财务公司、信托公司、金融资产管理公司、金融租赁公司、汽车金融公司、贷款公司、货币经纪公司、消费金融公司、证券业、金融控股公司、股票、期货、货币兑换、小额贷款公司、金融资产管理、担保公司、商业保理公司、典当行、融资租赁公司、财经咨询等其他金融业务
+     *  示例值:BANK_AGENT
      * 
*/ - @SerializedName(value = "organization_number") - private String organizationNumber; + @SerializedName(value = "finance_type") + private String financeType; /** *
-     * 字段名:组织机构代码有效期限
-     * 变量名:organization_time
+     * 字段名:金融机构许可证图片
+     * 变量名:finance_license_pics
      * 是否必填:是
-     * 类型:string(256)
+     * 类型:array
      * 描述:
-     *  1、请填写组织机构代码证的有效期限,注意参照示例中的格式。
-     *  2、若证件有效期为长期,请填写:长期。
-     *  3、结束时间需大于开始时间。
-     *  4、有效期必须大于60天,即结束时间距当前时间需超过60天。
-     *  示例值:[\"2014-01-01\",\"长期\"]
+     *  1、根据所属金融机构类型的许可证要求提供,详情查看金融机构指引。
+     *  2、请提供为“申请商家主体”所属的许可证,可授权使用总公司/分公司的特殊资质。
+     *  3、最多可上传5张照片,请填写通过图片上传API预先上传图片生成好的MediaID。
+     *  示例值:47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
      * 
*/ - @SerializedName(value = "organization_time") - private String organizationTime; + @SerializedName(value = "finance_license_pics") + private String financeLicensePics; } @@ -433,9 +513,10 @@ public static class IdCardInfo implements Serializable { * 是否必填:是 * 类型:string(256) * 描述: - * 1、请上传经营者/法定代表人的身份证人像面照片。 - * 2、可上传1张图片,请填写通过图片上传接口预先上传图片生成好的MediaID。 - * 示例值:xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ + * 1、证件类型为“身份证”时,上传身份证人像面照片。 + * 2、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。 + * 3、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。 + * 示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ *
*/ @SerializedName(value = "id_card_copy") @@ -448,9 +529,10 @@ public static class IdCardInfo implements Serializable { * 是否必填:是 * 类型:string(256) * 描述: - * 1、请上传经营者/法定代表人的身份证国徽面照片。 - * 2、可上传1张图片,请填写通过图片上传接口预先上传图片生成好的MediaID 。 - * 示例值:vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4 + * 1、证件类型为“身份证”时,上传身份证国徽面照片。 + * 2、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID 。 + * 3、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。 + * 示例值:47ZC6GC-vnrbEny__Ie_An5-tCpqxuZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4 *
*/ @SerializedName(value = "id_card_national") @@ -464,9 +546,8 @@ public static class IdCardInfo implements Serializable { * 类型:string(256) * 描述: * 1、请填写经营者/法定代表人对应身份证的姓名,2~30个中文字符、英文字符、符号。 - * 2、该字段需进行加密处理,加密方法详见敏感信息加密说明。 - * 示例值:pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg== - * 字段加密:使用APIv3定义的方式加密 + * 2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) + * 示例值:pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjC4EL5Kz4jBHLiCyOb+tI0m2qhZ9evAM+Jv1z0NVa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg== *
*/ @SerializedName(value = "id_card_name") @@ -478,12 +559,11 @@ public static class IdCardInfo implements Serializable { * 字段名:身份证号码 * 变量名:id_card_number * 是否必填:是 - * 类型:string(18) + * 类型:string(256) * 描述: * 1、请填写经营者/法定代表人对应身份证的号码。 - * 2、15位数字或17位数字+1位数字|X ,该字段需进行加密处理,加密方法详见敏感信息加密说明。 - * 示例值:zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4 - * 特殊规则:长度最小15个字节 + * 2、15位数字或17位数字+1位数字|X ,该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) + * 示例值:AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CT3JZKGZjduGdtkRJJp0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw== *
*/ @SerializedName(value = "id_card_number") @@ -492,15 +572,46 @@ public static class IdCardInfo implements Serializable { /** *
-     * 字段名:身份证有效期限
+     * 字段名:身份证居住地址
+     * 变量名:id_card_address
+     * 是否必填:条件选填
+     * 类型:string(512)
+     * 描述:
+     *  1、主体类型为企业时,需要填写。其他主体类型,无需上传。
+     *  2、请按照身份证住址填写,如广东省深圳市南山区xx路xx号xx室
+     *  3、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CTdo+D/m9MrPg+V4p0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==
+     * 
+ */ + @SerializedName(value = "id_card_address") + @SpecEncrypt + private String idCardAddress; + + /** + *
+     * 字段名:身份证开始时间
+     * 变量名:id_card_valid_time_begin
+     * 是否必填:是
+     * 类型:string(128)
+     * 描述:
+     *  1、请按照示例值填写。
+     *  2、结束时间大于开始时间。
+     *  示例值:2019-06-06
+     * 
+ */ + @SerializedName(value = "id_card_valid_time_begin") + private String idCardValidTimeBegin; + + /** + *
+     * 字段名:身份证结束时间
      * 变量名:id_card_valid_time
      * 是否必填:是
      * 类型:string(128)
      * 描述:
-     *  1、请填写身份证有效期的结束时间,注意参照示例中的格式。
-     *  2、若证件有效期为长期,请填写:长期。
-     *  3、证件有效期需大于60天。
-     *  示例值:2026-06-06,长期
+     *  1、请按照示例值填写,若证件有效期为长期,请填写:长期。
+     *  2、结束时间大于开始时间。
+     *  示例值:2026-06-06
      * 
*/ @SerializedName(value = "id_card_valid_time") @@ -511,6 +622,39 @@ public static class IdCardInfo implements Serializable { @Data @NoArgsConstructor public static class IdDocInfo implements Serializable { + /** + *
+     * 字段名:证件正面照片
+     * 变量名:id_doc_copy
+     * 是否必填:是
+     * 类型:string(256)
+     * 描述:
+     *  1、证件类型不为“身份证”时,上传证件正面照片。
+     *  2、可上传1张图片,请填写通过图片图片上传API预先上传图片生成好的MediaID。
+     *  3、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ
+     * 
+ */ + @SerializedName(value = "id_doc_copy") + private String idDocCopy; + + /** + *
+     * 字段名:证件反面照片
+     * 变量名:id_doc_copy_back
+     * 是否必填:条件选填
+     * 类型:string(256)
+     * 描述:
+     *  1、若证件类型为来往通行证、外国人居留证、港澳居住证、台湾居住证时,上传证件反面照片。
+     *  2、若证件类型为护照,无需上传反面照片。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID 。
+     *  4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。
+     *  示例值:47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+     * 
+ */ + @SerializedName(value = "id_doc_copy_back") + private String idDocCopyBack; + /** *
      * 字段名:证件姓名
@@ -518,8 +662,9 @@ public static class IdDocInfo implements Serializable {
      * 是否必填:是
      * 类型:string(128)
      * 描述:
-     *  请填写经营者/法人姓名。
-     *  示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ
+     *  1、请填写经营者/法人姓名。
+     *  2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ
      * 
*/ @SerializedName(value = "id_doc_name") @@ -531,10 +676,11 @@ public static class IdDocInfo implements Serializable { * 字段名:证件号码 * 变量名:id_doc_number * 是否必填:是 - * 类型:string(128) + * 类型:string(256) * 描述: * 7~11位 数字|字母|连字符 。 - * 示例值:jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ + * 该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) + * 示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ *
*/ @SerializedName(value = "id_doc_number") @@ -543,29 +689,45 @@ public static class IdDocInfo implements Serializable { /** *
-     * 字段名:证件照片
-     * 变量名:id_doc_copy
+     * 字段名:证件居住地址
+     * 变量名:id_doc_address
+     * 是否必填:条件选填
+     * 类型:string(512)
+     * 描述:
+     *  1、主体类型为企业时,需要填写。其他主体类型,无需上传。
+     *  2、请按照证件上住址填写,若证件上无住址则按照实际住址填写,如广东省深圳市南山区xx路xx号xx室。
+     *  3、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ
+     * 
+ */ + @SerializedName(value = "id_doc_address") + @SpecEncrypt + private String idDocAddress; + + /** + *
+     * 字段名:证件有效期开始时间
+     * 变量名:doc_period_begin
      * 是否必填:是
-     * 类型:string(256)
+     * 类型:string(128)
      * 描述:
-     *  1、可上传1张图片,请填写通过图片上传接口预先上传图片生成好的MediaID。
-     *  2、2M内的彩色图片,格式可为bmp、png、jpeg、jpg或gif 。
-     *  示例值:xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+     *  1、请按照示例值填写
+     *  2、结束时间大于开始时间
+     *  示例值:2019-06-06
      * 
*/ - @SerializedName(value = "id_doc_copy") - private String idDocCopy; + @SerializedName(value = "doc_period_begin") + private String docPeriodBegin; /** *
-     * 字段名:证件结束日期
+     * 字段名:证件有效期结束时间
      * 变量名:doc_period_end
      * 是否必填:是
      * 类型:string(128)
      * 描述:
-     *  1、请按照示例值填写。
-     *  2、若证件有效期为长期,请填写:长期。
-     *  3、证件有效期需大于60天 。
+     *  1、请按照示例值填写,若证件有效期为长期,请填写:长期。
+     *  2、结束时间大于开始时间。
      *  示例值:2020-01-02
      * 
*/ @@ -574,6 +736,144 @@ public static class IdDocInfo implements Serializable { } + @Data + @NoArgsConstructor + public static class UboInfo implements Serializable { + /** + *
+     * 字段名:证件类型
+     * 变量名:ubo_id_doc_type
+     * 是否必填:是
+     * 类型:string
+     * 描述:
+     *  请填写受益人的证件类型。
+     *  枚举值:
+     *  IDENTIFICATION_TYPE_MAINLAND_IDCARD:中国大陆居民-身份证
+     *  IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照
+     *  IDENTIFICATION_TYPE_HONGKONG:中国香港居民--来往内地通行证
+     *  IDENTIFICATION_TYPE_MACAO:中国澳门居民--来往内地通行证
+     *  IDENTIFICATION_TYPE_TAIWAN:中国台湾居民--来往大陆通行证
+     *  IDENTIFICATION_TYPE_FOREIGN_RESIDENT:外国人居留证
+     *  IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT:港澳居民证
+     *  IDENTIFICATION_TYPE_TAIWAN_RESIDENT:台湾居民证
+     *  示例值:IDENTIFICATION_TYPE_MAINLAND_IDCARD
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_type") + private String uboIdDocType; + + /** + *
+     * 字段名:证件正面照片
+     * 变量名:ubo_id_doc_copy
+     * 是否必填:是
+     * 类型:string(256)
+     * 描述:
+     *  1、请上传受益人证件的正面照片。
+     *  2、若证件类型为身份证,请上传人像面照片。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+     *  4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。
+     *  示例值:jTpGmxUXqRTvDujqhThn4ReFxikqJ5YW6zFQ
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_copy") + private String uboIdDocCopy; + + /** + *
+     * 字段名:证件反面照片
+     * 变量名:ubo_id_doc_copy_back
+     * 是否必填:条件选填
+     * 类型:string(256)
+     * 描述:
+     *  1、请上传受益人证件的反面照片。
+     *  2、若证件类型为护照,无需上传反面照片。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+     *  4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvvDujqhThn4ReFxikqJ5YW6zFQ
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_copy_back") + private String uboIdDocCopyBack; + + /** + *
+     * 字段名:证件姓名
+     * 变量名:ubo_id_doc_name
+     * 是否必填:是
+     * 类型:string(128)
+     * 描述:
+     *  该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:AOZdYGISxo4y44/Ug4P4TG5xzchG/5IL9DBd+Z0zZXkw==
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_name") + @SpecEncrypt + private String uboIdDocName; + + /** + *
+     * 字段名:证件号码
+     * 变量名:ubo_id_doc_number
+     * 是否必填:是
+     * 类型:string(256)
+     * 描述:
+     *  该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:AOZdYGISxo4y44/Ug4P4TG5xzchG/5IL9DBd+Z0zZXkw==
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_number") + @SpecEncrypt + private String uboIdDocNumber; + + /** + *
+     * 字段名:证件居住地址
+     * 变量名:ubo_id_doc_address
+     * 是否必填:条件选填
+     * 类型:string(512)
+     * 描述:
+     *  1、请按照证件上住址填写,若证件上无住址则按照实际住址填写,如广东省深圳市南山区xx路xx号xx室。
+     *  2、 该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfDa4SzfeespQO/0kjiwfqdfg==
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_address") + @SpecEncrypt + private String uboIdDocAddress; + + /** + *
+     * 字段名:证件有效期开始时间
+     * 变量名:ubo_id_doc_period_begin
+     * 是否必填:是
+     * 类型:string(128)
+     * 描述:
+     *  1、请按照示例值填写。
+     *  2、结束时间大于开始时间。
+     *  示例值:2019-06-06
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_period_begin") + private String uboIdDocPeriodBegin; + + /** + *
+     * 字段名:证件有效期结束时间
+     * 变量名:ubo_id_doc_period_end
+     * 是否必填:是
+     * 类型:string(128)
+     * 描述:
+     *  1、请按照示例值填写,若证件有效期为长期,请填写:长期。
+     *  2、结束时间大于开始时间。
+     *  示例值:2026-06-06
+     * 
+ */ + @SerializedName(value = "ubo_id_doc_period_end") + private String uboIdDocPeriodEnd; + + } + @Data @NoArgsConstructor public static class AccountInfo implements Serializable { @@ -584,9 +884,9 @@ public static class AccountInfo implements Serializable { * 是否必填:是 * 类型:string(2) * 描述: - * 1、若主体为企业/党政、机关及事业单位/其他组织,可填写:74-对公账户。 - * 2、若主体为小微,可填写:75-对私账户。 - * 3、若主体为个体工商户,可填写:74-对公账户或75-对私账户。 + * 1、若主体为企业/政府机关/事业单位/社会组织,可填写:74-对公账户。 + * 2、主体为小微/个人卖家,可选择:75-对私账户。 + * 3、若主体为个体工商户,可填写:74-对公账户、75-对私账户。 * 示例值:75 *
*/ @@ -600,7 +900,8 @@ public static class AccountInfo implements Serializable { * 是否必填:是 * 类型:string(10) * 描述: - * 详细参见开户银行对照表。 + * 对私银行调用:查询支持个人业务的银行列表API + * 对公银行调用:查询支持对公业务的银行列表API。 * 示例值:工商银行 *
*/ @@ -616,8 +917,8 @@ public static class AccountInfo implements Serializable { * 描述: * 1、选择经营者个人银行卡时,开户名称必须与身份证姓名一致。 * 2、选择对公账户时,开户名称必须与营业执照上的“商户名称”一致。 - * 3、该字段需进行加密处理,加密方法详见敏感信息加密说明。 - * 示例值:AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw== + * 3、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) + * 示例值:AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CTdo+D/m9MrPg+V4sm73oxqdQu/hj7aWyDl4GQtPXVdaztB9jVbVZh3QFzV+BEmytMNQp9dt1uWJktlfdDdLR3AMWyMB377xd+m9bSr/ioDTzagEcGe+vLYiKrzcroQv3OR0p3ppFYoQ3IfYeU/04S4t9rNFL+kyblK2FCCqQ11NdbbHoCrJc7NV4oASq6ZFonjTtgjjgKsadIKHXtb3JZKGZjduGdtkRJJp0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw== *
*/ @SerializedName(value = "account_name") @@ -632,6 +933,8 @@ public static class AccountInfo implements Serializable { * 类型:string(12) * 描述: * 至少精确到市,详细参见省市区编号对照表。 + * 注: + * 仅当省市区编号对照表中无对应的省市区编号时,可向上取该银行对应市级编号或省级编号。 * 示例值:110000 *
*/ @@ -645,8 +948,8 @@ public static class AccountInfo implements Serializable { * 是否必填:条件选填 * 类型:string(64) * 描述: - * 1、17家直连银行无需填写,如为其他银行,开户银行全称(含支行)和开户银行联行号二选一。 - * 2、详细参见开户银行全称(含支行)对照表。 + * 1、根据开户银行查询接口中的“是否需要填写支行”判断是否需要填写。如为其他银行,开户银行全称(含支行)和开户银行联行号二选一。 + * 2、详细需调用查询支行列表API查看查询结果。 * 示例值:402713354941 *
*/ @@ -660,10 +963,9 @@ public static class AccountInfo implements Serializable { * 是否必填:条件选填 * 类型:string(128) * 描述: - * 1、17家直连银行无需填写,如为其他银行,开户银行全称(含支行)和开户银行联行号二选一。 - * 2、需填写银行全称,如"深圳农村商业银行XXX支行" 。 - * 3、详细参见开户银行全称(含支行)对照表。 - * 示例值:施秉县农村信用合作联社城关信用社 + * 1、根据开户银行查询接口中的“是否需要填写支行”判断是否需要填写。如为其他银行,开户银行全称(含支行)和开户银行联行号二选一。 + * 2、详细需调用查询支行列表API查看查询结果。 + * 示例值:中国工商银行股份有限公司北京市分行营业部 *
*/ @SerializedName(value = "bank_name") @@ -677,7 +979,7 @@ public static class AccountInfo implements Serializable { * 类型:string(128) * 描述: * 1、数字,长度遵循系统支持的对公/对私卡号长度要求表。 - * 2、该字段需进行加密处理,加密方法详见敏感信息加密说明。 + * 2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) * 示例值: d+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w== *
*/ @@ -685,6 +987,70 @@ public static class AccountInfo implements Serializable { @SpecEncrypt private String accountNumber; + /** + *
+     * 字段名:+银行帐户证明材料
+     * 变量名:account_cert_info
+     * 是否必填:否
+     * 类型:string(128)
+     * 描述:
+     *  1. 当主体类型是“政府机关/事业单位”时或所属行业为“党费”时,支持在有合法资金管理关系的情况下结算账户设置为非同名。
+     *  2. 若结算账户设置为非同名,则需填写非同名证明材料,若结算账户为同名,则无需填写。
+     * 
+ */ + @SerializedName(value = "account_cert_info") + private AccountCertInfo accountCertInfo; + + @Data + @NoArgsConstructor + public static class AccountCertInfo implements Serializable { + /** + *
+       * 字段名:结算证明函
+       * 变量名:settlement_cert_pic
+       * 是否必填:是
+       * 类型:string(256)
+       * 描述:
+       *  1. 请参照示例图打印结算证明函。
+       *  2、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+       *  示例值:47ZC6GC-vnrbEny_Ie_An5-tCpqxucuxi-vByf3Gjm7KEIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+       * 
+ */ + @SerializedName(value = "settlement_cert_pic") + private String settlementCertPic; + + /** + *
+       * 字段名:关系证明函
+       * 变量名:relation_cert_pic
+       * 是否必填:是
+       * 类型:string(256)
+       * 描述:
+       *  1. 请参照示例图打印关系证明函。
+       *  2、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+       *  示例值:47ZC6GC-vnrbEny_Ie_An5-tCpqxucuxi-vByf3Gjm7KEIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+       * 
+ */ + @SerializedName(value = "relation_cert_pic") + private String relationCertPic; + + /** + *
+       * 字段名:其他补充证明
+       * 变量名:other_cert_pics
+       * 是否必填:是
+       * 类型:array
+       * 描述:
+       *  1. 请提供非同名结算的法律法规、政策通知、政府或上级部门公文等证明文件,以作上述材料的补充证明。
+       *  2、可上传1-3张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+       *  示例值:47ZC6GC-vnrbEny_Ie_An5-tCpqxucuxi-vByf3Gjm7KEIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+       * 
+ */ + @SerializedName(value = "other_cert_pics") + private String otherCertPics; + + } + } @Data @@ -697,8 +1063,8 @@ public static class ContactInfo implements Serializable { * 是否必填:是 * 类型:string(2) * 描述: - * 1、小微商户,选择:65-法人/经营者。 - * 2、个体工商户/企业/党政、机关及事业单位/其他组织,可选择:65-法人/经营者、66- 负责人。 (负责人:经商户授权办理微信支付业务的人员,授权范围包括但不限于签约,入驻过程需完成账户验证)。 + * 1、主体为“小微/个人卖家 ”,可选择:65-经营者/法人。 + * 2、主体为“个体工商户/企业/政府机关/事业单位/社会组织”,可选择:65-经营者/法人、66- 经办人。 (经办人:经商户授权办理微信支付业务的人员)。 * 示例值:65 *
*/ @@ -713,8 +1079,8 @@ public static class ContactInfo implements Serializable { * 类型:string(256) * 描述: * 1、若管理员类型为“法人”,则该姓名需与法人身份证姓名一致。 - * 2、若管理员类型为“经办人”,则可填写实际经办人的姓名。 - * 3、该字段需进行加密处理,加密方法详见敏感信息加密说明。 + * 2、若管理员类型为“经办人”,则可填写实际负责人的姓名。 + * 3、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) * (后续该管理员需使用实名微信号完成签约) * 示例值: pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg== *
@@ -723,24 +1089,128 @@ public static class ContactInfo implements Serializable { @SpecEncrypt private String contactName; + /** + *
+     * 字段名:超级管理员证件类型
+     * 变量名:contact_id_doc_type
+     * 是否必填:条件选填
+     * 类型:string
+     * 描述:
+     *  当超级管理员类型是经办人时,请上传超级管理员证件类型。
+     *  IDENTIFICATION_TYPE_MAINLAND_IDCARD:中国大陆居民-身份证
+     *  IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照
+     *  IDENTIFICATION_TYPE_HONGKONG:中国香港居民--来往内地通行证
+     *  IDENTIFICATION_TYPE_MACAO:中国澳门居民--来往内地通行证
+     *  IDENTIFICATION_TYPE_TAIWAN:中国台湾居民--来往大陆通行证
+     *  IDENTIFICATION_TYPE_FOREIGN_RESIDENT:外国人居留证
+     *  IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT:港澳居民证
+     *  IDENTIFICATION_TYPE_TAIWAN_RESIDENT:台湾居民证
+     *  示例值:IDENTIFICATION_TYPE_MAINLAND_IDCARD
+     * 
+ */ + @SerializedName(value = "contact_id_doc_type") + private String contactIdDocType; + /** *
      * 字段名:超级管理员身份证件号码
      * 变量名:contact_id_card_number
-     * 是否必填:是
+     * 是否必填:条件选填
      * 类型:string(256)
      * 描述:
-     *  1、若管理员类型为法人,则该身份证号码需与法人身份证号码一致。若管理员类型为经办人,则可填写实际经办人的身份证号码。
+     *  1、若超级管理员类型为法人,则该身份证号码需与法人身份证号码一致。若超级管理员类型为经办人,则可填写实际经办人的身份证号码。
      *  2、可传身份证、来往内地通行证、来往大陆通行证、护照等证件号码。
      *  3、超级管理员签约时,校验微信号绑定的银行卡实名信息,是否与该证件号码一致。
-     *  4、该字段需进行加密处理,加密方法详见敏感信息加密说明。
-     *  示例值:pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==
+     *  4、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     *  示例值:pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHDnuC4EL5Kz4jBHLiCyOb+tI0m2qhZ9evAM+Jv1z0NVa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==
      * 
*/ @SerializedName(value = "contact_id_card_number") @SpecEncrypt private String contactIdCardNumber; + /** + *
+     * 字段名:超级管理员证件正面照片
+     * 变量名:contact_id_doc_copy
+     * 是否必填:条件选填
+     * 类型:string(256)
+     * 描述:
+     *  1、当超级管理员类型是经办人时,请上传超级管理员证件的正面照片。
+     *  2、若证件类型为身份证,请上传人像面照片。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+     *  4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvvDujqhThn4ReFxikqJ5YW6zFQ
+     * 
+ */ + @SerializedName(value = "contact_id_doc_copy") + private String contactIdDocCopy; + + /** + *
+     * 字段名:超级管理员证件反面照片
+     * 变量名:contact_id_doc_copy_back
+     * 是否必填:条件选填
+     * 类型:string(256)
+     * 描述:
+     *  1、当超级管理员类型是经办人时,请上传超级管理员证件的反面照片。
+     *  2、若证件类型为护照,无需上传反面照片。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+     *  4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvvDujqhThn4ReFxikqJ5YW6zFQ
+     * 
+ */ + @SerializedName(value = "contact_id_doc_copy_back") + private String contactIdDocCopyBack; + + /** + *
+     * 字段名:超级管理员证件有效期开始时间
+     * 变量名:contact_id_doc_period_begin
+     * 是否必填:条件选填
+     * 类型:string(128)
+     * 描述:
+     *  1、当超级管理员类型是经办人时,请上传证件有效期开始时间。
+     *  2、请按照示例值填写。
+     *  3、结束时间大于开始时间。
+     *  示例值:2019-06-06
+     * 
+ */ + @SerializedName(value = "contact_id_doc_period_begin") + private String contactIdDocPeriodBegin; + + /** + *
+     * 字段名:超级管理员证件有效期结束时间
+     * 变量名:contact_id_doc_period_end
+     * 是否必填:条件选填
+     * 类型:string(128)
+     * 描述:
+     *  1、当超级管理员类型是经办人时,请上传证件有效期结束时间。
+     *  2、请按照示例值填写,若证件有效期为长期,请填写:长期。
+     *  3、结束时间大于开始时间。
+     *  示例值:2026-06-06
+     * 
+ */ + @SerializedName(value = "contact_id_doc_period_end") + private String contactIdDocPeriodEnd; + + /** + *
+     * 字段名:业务办理授权函
+     * 变量名:business_authorization_letter
+     * 是否必填:条件选填
+     * 类型:string(256)
+     * 描述:
+     *  1、当超级管理员类型是经办人时,请上传业务办理授权函。
+     *  2、请参照示例图打印业务办理授权函,全部信息需打印,不支持手写商户信息,并加盖公章。
+     *  3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。
+     *  示例值:47ZC6GC-vnrbEny_Ie_An5-tCpqxucuxi-vByf3Gjm7KEIUv0OF4wFNIO4kqg05InE4d2I6_H7I4
+     * 
+ */ + @SerializedName(value = "business_authorization_letter") + private String businessAuthorizationLetter; + /** *
      * 字段名:超级管理员手机
@@ -749,7 +1219,7 @@ public static class ContactInfo implements Serializable {
      * 类型:string(256)
      * 描述:
      *  1、请填写管理员的手机号,11位数字, 用于接收微信支付的重要管理信息及日常操作验证码 。
-     *  2、该字段需进行加密处理,加密方法详见敏感信息加密说明。
+     *  2、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
      *  示例值:pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==
      * 
*/ @@ -764,9 +1234,10 @@ public static class ContactInfo implements Serializable { * 是否必填:是 * 类型:string(256) * 描述: - * 1、用于接收微信支付的开户邮件及日常业务通知。 - * 2、需要带@,遵循邮箱格式校验 。 - * 3、该字段需进行加密处理,加密方法详见敏感信息加密说明。 + * 1、主体类型为“小微商户/个人卖家”可选填,其他主体需必填。 + * 2、用于接收微信支付的开户邮件及日常业务通知。 + * 3、需要带@,遵循邮箱格式校验 。 + * 4、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) * 示例值:pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+FWWNUlw/wDa4SzfeespQO/0kjiwfqdfg== *
*/ @@ -812,9 +1283,13 @@ public static class SalesSceneInfo implements Serializable { *
      * 字段名:店铺二维码
      * 变量名:store_qr_code
-     * 是否必填:1、店铺二维码 or 店铺链接二选一必填。 2、若为电商小程序,可上传店铺页面的小程序二维码。 3、请填写通过图片上传接口预先上传图片生成好的MediaID,仅能上传1张图片 。 示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO1D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ
+     * 是否必填:二选一
      * 类型:string(256)
      * 描述:
+     *  1、店铺二维码 or 店铺链接二选一必填。
+     *  2、若为电商小程序,可上传店铺页面的小程序二维码。
+     *  3、请填写通过图片上传API预先上传图片生成好的MediaID,仅能上传1张图片 。
+     *  示例值:jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ
      * 
*/ @SerializedName(value = "store_qr_code") @@ -827,6 +1302,9 @@ public static class SalesSceneInfo implements Serializable { * 是否必填:否 * 类型:string(256) * 描述: + * 1、商户自定义字段,可填写已认证的小程序AppID,认证主体需与二级商户主体一致; + * 2、完成入驻后, 系统发起二级商户号与该AppID的绑定(即配置为sub_appid,可在发起支付时传入) + * 示例值:wxa123344545577 *
*/ @SerializedName(value = "mini_program_sub_appid") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java index e08b9fb524..095510d4f4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/BankService.java @@ -1,7 +1,6 @@ package com.github.binarywang.wxpay.service; -import com.github.binarywang.wxpay.bean.bank.BankAccountResult; -import com.github.binarywang.wxpay.bean.bank.BankingResult; +import com.github.binarywang.wxpay.bean.bank.*; import com.github.binarywang.wxpay.exception.WxPayException; /** @@ -64,4 +63,59 @@ public interface BankService { * @throws WxPayException . */ BankingResult corporateBanking(Integer offset, Integer limit) throws WxPayException; + + /** + *
+   *
+   * 查询省份列表API
+   * 通过本接口获取省份列表数据(不包含中国港澳台地区),可用于省份下的城市数据查询
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://api.mch.weixin.qq.com/v3/capital/capitallhh/areas/provinces
+   *
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter11_2_4.shtml
+   * 
+ * + * @return ProvincesResult 省份列表信息 + * @throws WxPayException . + */ + ProvincesResult areasProvinces() throws WxPayException; + + /** + *
+   *
+   * 查询城市列表API
+   * 通过本接口根据省份编码获取省份下的城市列表信息,不包含中国港澳台地区城市信息,可用于支行数据过滤查询
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://api.mch.weixin.qq.com/v3/capital/capitallhh/areas/provinces/{province_code}/cities
+   *
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter11_2_5.shtml
+   * 
+ * + * @return CitiesResult 城市列表信息 + * @throws WxPayException . + */ + CitiesResult areasCities(Integer provinceCode) throws WxPayException; + + /** + *
+   *
+   * 查询支行列表API
+   * 本接口可以用于根据银行别名编码(仅支持需要填写支行的银行别名编码)和城市编码过滤查询支行列表数据
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:https://api.mch.weixin.qq.com/v3/capital/capitallhh/banks/{bank_alias_code}/branches
+   *
+   * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter11_2_5.shtml
+   * 
+ * + * @param bankAliasCode 银行别名的编码,查询支行接口仅支持需要填写支行的银行别名编码。示例值:1000006247 + * @param cityCode 城市编码,唯一标识一座城市,用于结合银行别名编码查询支行列表。示例值:536 + * @param offset 非负整数,表示该次请求资源的起始位置,从0开始计数。调用方选填,默认为0。offset为20,limit为100时,查询第21-120条数据 + * @param limit 非0非负的整数,该次请求可返回的最大资源条数。示例值:200 + * @return BankBranchesResult 城市列表信息 + * @throws WxPayException . + */ + BankBranchesResult bankBranches(String bankAliasCode, Integer cityCode, Integer offset, Integer limit) throws WxPayException; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java index b3dbdee014..044ae39361 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java @@ -22,7 +22,7 @@ public interface EcommerceService { *
    * 二级商户进件API
    * 接口地址: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_1.shtml
+   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_8.shtml
    *
    * 
* diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java index 58739b5fd2..623a787d93 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BankServiceImpl.java @@ -1,7 +1,6 @@ package com.github.binarywang.wxpay.service.impl; -import com.github.binarywang.wxpay.bean.bank.BankAccountResult; -import com.github.binarywang.wxpay.bean.bank.BankingResult; +import com.github.binarywang.wxpay.bean.bank.*; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.BankService; import com.github.binarywang.wxpay.service.WxPayService; @@ -43,4 +42,27 @@ public BankingResult corporateBanking(Integer offset, Integer limit) throws WxPa String response = payService.getV3(url); return GSON.fromJson(response, BankingResult.class); } + + @Override + public ProvincesResult areasProvinces() throws WxPayException { + String url = String.format("%s/v3/capital/capitallhh/areas/provinces", this.payService.getPayBaseUrl()); + String response = payService.getV3WithWechatPaySerial(url); + return GSON.fromJson(response, ProvincesResult.class); + } + + @Override + public CitiesResult areasCities(Integer provinceCode) throws WxPayException { + String url = String.format("%s/v3/capital/capitallhh/areas/provinces/%s/cities", this.payService.getPayBaseUrl(), provinceCode); + String response = payService.getV3WithWechatPaySerial(url); + return GSON.fromJson(response, CitiesResult.class); + } + + @Override + public BankBranchesResult bankBranches(String bankAliasCode, Integer cityCode, Integer offset, Integer limit) throws WxPayException { + offset = offset == null ? 0 : offset; + limit = limit == null ? 200 : limit; + String url = String.format("%s/v3/capital/capitallhh/banks/%s/branches?city_code=%s&offset=%s&limit=%s", this.payService.getPayBaseUrl(), bankAliasCode, cityCode, offset, limit); + String response = payService.getV3(url); + return GSON.fromJson(response, BankBranchesResult.class); + } } From 5ac2e690c099e4a1f2b87f1344ee07a70f20e583 Mon Sep 17 00:00:00 2001 From: fangyaoxia Date: Tue, 14 Jun 2022 02:36:25 +0000 Subject: [PATCH 265/622] =?UTF-8?q?:bug:=20=E3=80=90=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E3=80=91=E4=BF=AE=E5=A4=8D=E5=A4=9A=E5=95=86?= =?UTF-8?q?=E6=88=B7=E6=83=85=E5=86=B5=E4=B8=8B=E5=BE=AE=E4=BF=A1=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E7=AD=BE=E5=90=8D=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/impl/BaseWxPayServiceImpl.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index ecce6c62f6..27fe2bfa27 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -345,9 +345,10 @@ public WxPayOrderNotifyResult parseOrderNotifyResult(String xmlData, String sign if (result.getSignType() != null) { // 如果解析的通知对象中signType有值,则使用它进行验签 signType = result.getSignType(); - } else if (this.getConfig().getSignType() != null) { + } else if (configMap.get(result.getMchId()).getSignType() != null) { // 如果配置中signType有值,则使用它进行验签 - signType = this.getConfig().getSignType(); + signType = configMap.get(result.getMchId()).getSignType(); + this.switchover(result.getMchId()); } } @@ -430,6 +431,7 @@ public WxPayRefundNotifyResult parseRefundNotifyResult(String xmlData) throws Wx WxPayRefundNotifyResult result; if (XmlConfig.fastMode) { result = BaseWxPayResult.fromXML(xmlData, WxPayRefundNotifyResult.class); + this.switchover(result.getMchId()); result.decryptReqInfo(this.getConfig().getMchKey()); } else { result = WxPayRefundNotifyResult.fromXML(xmlData, this.getConfig().getMchKey()); @@ -465,12 +467,13 @@ public WxPayRefundNotifyV3Result parseRefundNotifyV3Result(String notifyData, Si } @Override - public WxScanPayNotifyResult parseScanPayNotifyResult(String xmlData, String signType) throws WxPayException { + public WxScanPayNotifyResult parseScanPayNotifyResult(String xmlData, @Deprecated String signType) throws WxPayException { try { log.debug("扫码支付回调通知请求参数:{}", xmlData); WxScanPayNotifyResult result = BaseWxPayResult.fromXML(xmlData, WxScanPayNotifyResult.class); + this.switchover(result.getMchId()); log.debug("扫码支付回调通知解析后的对象:{}", result); - result.checkResult(this, signType, false); + result.checkResult(this, this.getConfig().getSignType(), false); return result; } catch (WxPayException e) { throw e; @@ -481,8 +484,8 @@ public WxScanPayNotifyResult parseScanPayNotifyResult(String xmlData, String sig @Override public WxScanPayNotifyResult parseScanPayNotifyResult(String xmlData) throws WxPayException { - final String signType = this.getConfig().getSignType(); - return this.parseScanPayNotifyResult(xmlData, signType); +// final String signType = this.getConfig().getSignType(); + return this.parseScanPayNotifyResult(xmlData, null); } @Override From d5c6803260d6046edaa14332dbef5efb693172fe Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Mon, 20 Jun 2022 16:25:10 +0800 Subject: [PATCH 266/622] =?UTF-8?q?:new:=20#2698=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E5=BA=94=E7=94=A8-=E4=B8=8A=E8=AF=BE=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpLivingService.java | 2 +- .../weixin/cp/api/WxCpSchoolService.java | 71 +++++++++++- .../cp/api/impl/WxCpLivingServiceImpl.java | 10 +- .../cp/api/impl/WxCpSchoolServiceImpl.java | 49 ++++++++- .../weixin/cp/bean/living/WxCpLivingInfo.java | 2 +- .../cp/bean/living/WxCpLivingResult.java | 2 +- .../cp/bean/school/WxCpSchoolLivingInfo.java | 94 ++++++++++++++++ .../cp/bean/school/WxCpSchoolUnwatchStat.java | 65 +++++++++++ .../cp/bean/school/WxCpSchoolWatchStat.java | 102 ++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 7 ++ .../chanjar/weixin/cp/api/WxCpLivingTest.java | 2 +- .../chanjar/weixin/cp/api/WxCpSchoolTest.java | 60 ++++++++++- 12 files changed, 446 insertions(+), 20 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolLivingInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolUnwatchStat.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolWatchStat.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java index 380c3bfc50..cb30cea1fb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java @@ -48,7 +48,7 @@ public interface WxCpLivingService { * @return * @throws WxErrorException */ - WxCpWatchStat getWatchStat(@NonNull String livingId, Integer nextKey) throws WxErrorException; + WxCpWatchStat getWatchStat(@NonNull String livingId, String nextKey) throws WxErrorException; /** * 获取成员直播ID列表 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java index 1a43664911..5f05ae0c10 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java @@ -1,10 +1,9 @@ package me.chanjar.weixin.cp.api; +import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; -import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; -import me.chanjar.weixin.cp.bean.school.WxCpPaymentResult; -import me.chanjar.weixin.cp.bean.school.WxCpResultList; -import me.chanjar.weixin.cp.bean.school.WxCpTrade; +import me.chanjar.weixin.cp.bean.living.WxCpLivingResult; +import me.chanjar.weixin.cp.bean.school.*; import javax.validation.constraints.NotNull; import java.util.List; @@ -82,4 +81,68 @@ public interface WxCpSchoolService { */ WxCpTrade getTrade(@NotNull String paymentId, @NotNull String tradeNo) throws WxErrorException; + /** + * 获取直播详情 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_living_info?access_token=ACCESS_TOKEN&livingid=LIVINGID + * + * @param livingId + * @return + */ + WxCpSchoolLivingInfo getLivingInfo(@NotNull String livingId) throws WxErrorException; + + /** + * 获取老师直播ID列表 + * 通过此接口可以获取指定老师的所有直播ID + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?access_token=ACCESS_TOKEN + * + * @param userId + * @param cursor + * @param limit + * @return + * @throws WxErrorException + */ + WxCpLivingResult.LivingIdResult getUserAllLivingId(@NonNull String userId, String cursor, Integer limit) throws WxErrorException; + + /** + * 获取观看直播统计 + * 通过该接口可以获取所有观看直播的人员统计 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_watch_stat?access_token=ACCESS_TOKEN + * + * @param livingId + * @param nextKey + * @return + * @throws WxErrorException + */ + WxCpSchoolWatchStat getWatchStat(@NonNull String livingId, String nextKey) throws WxErrorException; + + /** + * 获取未观看直播统计 + * 通过该接口可以获取未观看直播的学生统计,学生的家长必须是已经关注「学校通知」才会纳入统计范围。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_unwatch_stat?access_token=ACCESS_TOKEN + * + * @param livingId + * @param nextKey + * @return + * @throws WxErrorException + */ + WxCpSchoolUnwatchStat getUnwatchStat(@NonNull String livingId, String nextKey) throws WxErrorException; + + /** + * 删除直播回放 + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/delete_replay_data?access_token=ACCESS_TOKEN + * + * @param livingId + * @return + * @throws WxErrorException + */ + WxCpLivingResult deleteReplayData(@NonNull String livingId) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java index 5fdf18cf88..03ad270e6b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java @@ -12,13 +12,15 @@ import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.living.*; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import org.apache.commons.lang3.StringUtils; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Living.*; /** * 企业微信直播接口实现类. + * https://developer.work.weixin.qq.com/document/path/93633 * - * @author Wang_Wong + * @author Wang_Wong * @date 2021-12-21 */ @Slf4j @@ -48,11 +50,11 @@ public WxCpLivingInfo getLivingInfo(String livingId) throws WxErrorException { } @Override - public WxCpWatchStat getWatchStat(String livingId, Integer nextKey) throws WxErrorException { + public WxCpWatchStat getWatchStat(String livingId, String nextKey) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_WATCH_STAT); JsonObject jsonObject = new JsonObject(); - if (nextKey != null) { - jsonObject.addProperty("next_key", String.valueOf(nextKey)); + if (StringUtils.isNotBlank(nextKey)) { + jsonObject.addProperty("next_key", nextKey); } jsonObject.addProperty("livingid", livingId); String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java index 023ee60566..30500a2059 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java @@ -1,15 +1,15 @@ package me.chanjar.weixin.cp.api.impl; import com.google.gson.JsonObject; +import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.WxCpSchoolService; import me.chanjar.weixin.cp.api.WxCpService; -import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; -import me.chanjar.weixin.cp.bean.school.WxCpPaymentResult; -import me.chanjar.weixin.cp.bean.school.WxCpResultList; -import me.chanjar.weixin.cp.bean.school.WxCpTrade; +import me.chanjar.weixin.cp.bean.living.WxCpLivingResult; +import me.chanjar.weixin.cp.bean.school.*; +import org.apache.commons.lang3.StringUtils; import javax.validation.constraints.NotNull; import java.util.List; @@ -85,4 +85,45 @@ public WxCpTrade getTrade(@NotNull String paymentId, @NotNull String tradeNo) th return WxCpTrade.fromJson(responseContent); } + @Override + public WxCpSchoolLivingInfo getLivingInfo(@NotNull String livingId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_LIVING_INFO) + livingId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpSchoolLivingInfo.fromJson(responseContent); + } + + @Override + public WxCpLivingResult.LivingIdResult getUserAllLivingId(@NonNull String userId, String cursor, Integer limit) throws WxErrorException { + return this.cpService.getLivingService().getUserAllLivingId(userId, cursor, limit); + } + + @Override + public WxCpSchoolWatchStat getWatchStat(@NonNull String livingId, String nextKey) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_WATCH_STAT); + JsonObject jsonObject = new JsonObject(); + if (StringUtils.isNotBlank(nextKey)) { + jsonObject.addProperty("next_key", nextKey); + } + jsonObject.addProperty("livingid", livingId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpSchoolWatchStat.fromJson(responseContent); + } + + @Override + public WxCpSchoolUnwatchStat getUnwatchStat(@NonNull String livingId, String nextKey) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_UNWATCH_STAT); + JsonObject jsonObject = new JsonObject(); + if (StringUtils.isNotBlank(nextKey)) { + jsonObject.addProperty("next_key", nextKey); + } + jsonObject.addProperty("livingid", livingId); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpSchoolUnwatchStat.fromJson(responseContent); + } + + @Override + public WxCpLivingResult deleteReplayData(@NonNull String livingId) throws WxErrorException { + return cpService.getLivingService().deleteReplayData(livingId); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java index b7010e57e1..59ba35cd17 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java @@ -22,7 +22,7 @@ public class WxCpLivingInfo implements Serializable { private Long livingStart; @SerializedName("living_duration") - private Long livingDurationme; + private Long livingDuration; @SerializedName("status") private Integer status; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java index 3312eec779..09c912ad83 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java @@ -32,7 +32,7 @@ public static class LivingIdResult implements Serializable { private String nextCursor; @SerializedName("livingid_list") - private String[] livingidList; + private String[] livingIdList; public static LivingIdResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, LivingIdResult.class); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolLivingInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolLivingInfo.java new file mode 100644 index 0000000000..2206cfcc2d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolLivingInfo.java @@ -0,0 +1,94 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取直播详情. + * + * @author Wang_Wong + */ +@Data +public class WxCpSchoolLivingInfo extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("living_info") + private LivingInfo livingInfo; + + @Getter + @Setter + public static class LivingInfo implements Serializable { + + @SerializedName("theme") + private String theme; + + @SerializedName("living_start") + private Long livingStart; + + @SerializedName("living_duration") + private Long livingDuration; + + @SerializedName("anchor_userid") + private String anchorUserId; + + @SerializedName("living_range") + private LivingRange livingRange; + + @SerializedName("viewer_num") + private Integer viewerNum; + + @SerializedName("comment_num") + private Integer commentNum; + + @SerializedName("open_replay") + private Integer openReplay; + + @SerializedName("push_stream_url") + private String pushStreamUrl; + + public static LivingInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, LivingInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class LivingRange implements Serializable { + + @SerializedName("partyids") + private List partyIds; + + @SerializedName("group_names") + private List groupNames; + + public static LivingRange fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, LivingRange.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpSchoolLivingInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolLivingInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolUnwatchStat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolUnwatchStat.java new file mode 100644 index 0000000000..964fca869e --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolUnwatchStat.java @@ -0,0 +1,65 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取未观看直播统计 + * + * @author Wang_Wong + */ +@Data +public class WxCpSchoolUnwatchStat extends WxCpBaseResp { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("ending") + private Integer ending; + + @SerializedName("next_key") + private String nextKey; + + @SerializedName("stat_info") + private StatInfo statInfo; + + @Getter + @Setter + public static class StatInfo implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("students") + private List students; + + } + + @Getter + @Setter + public static class Student implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("partyids") + private List partyIds; + + } + + public static WxCpSchoolUnwatchStat fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolUnwatchStat.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolWatchStat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolWatchStat.java new file mode 100644 index 0000000000..4dd1ebb393 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolWatchStat.java @@ -0,0 +1,102 @@ +package me.chanjar.weixin.cp.bean.school; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取观看直播统计. + * + * @author Wang_Wong + */ +@Data +public class WxCpSchoolWatchStat extends WxCpBaseResp{ + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("ending") + private Integer ending; + + @SerializedName("next_key") + private String nextKey; + + @SerializedName("stat_infoes") + private StatInfo statInfoes; + + @Getter + @Setter + public static class StatInfo implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("students") + private List students; + + @SerializedName("visitors") + private List visitors; + + } + + @Getter + @Setter + public static class Student implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("watch_time") + private Integer watchTime; + + @SerializedName("is_comment") + private Integer isComment; + + @SerializedName("enter_time") + private Long enterTime; + + @SerializedName("leave_time") + private Long leaveTime; + + @SerializedName("partyids") + private List partyIds; + + } + + @Getter + @Setter + public static class Visitor implements Serializable { + private static final long serialVersionUID = -5696099236344075582L; + + @SerializedName("nickname") + private String nickname; + + @SerializedName("watch_time") + private Integer watchTime; + + @SerializedName("is_comment") + private Integer isComment; + + @SerializedName("enter_time") + private Long enterTime; + + @SerializedName("leave_time") + private Long leaveTime; + + } + + public static WxCpSchoolWatchStat fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolWatchStat.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index d2b5ccaaf1..dc308feb45 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -185,6 +185,13 @@ interface School { String GET_PAYMENT_RESULT = "/cgi-bin/school/get_payment_result"; String GET_TRADE = "/cgi-bin/school/get_trade"; + + /** + * 上课直播 + */ + String GET_LIVING_INFO = "/cgi-bin/school/living/get_living_info?livingid="; + String GET_WATCH_STAT = "/cgi-bin/school/living/get_watch_stat"; + String GET_UNWATCH_STAT = "/cgi-bin/school/living/get_unwatch_stat"; } interface Living { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java index 4305c26c94..b67324e711 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java @@ -84,7 +84,7 @@ public void test() throws WxErrorException { log.info(livingInfo.toJson()); // 直播观看明细 - WxCpWatchStat watchStat = wxCpService.getLivingService().getWatchStat("lvOQpTDwAAcP9wNOSSxTwpbni-TMPNSg", 0); + WxCpWatchStat watchStat = wxCpService.getLivingService().getWatchStat("lvOQpTDwAAcP9wNOSSxTwpbni-TMPNSg", "0"); log.info(watchStat.toJson()); final String watchStateJson = "{\"errcode\":0,\"errmsg\":\"ok\",\"ending\":1,\"next_key\":\"NEXT_KEY\",\"stat_info\":{\"users\":[{\"userid\":\"userid\",\"watch_time\":30,\"is_comment\":1,\"is_mic\":1}],\"external_users\":[{\"external_userid\":\"external_userid1\",\"type\":1,\"name\":\"user name\",\"watch_time\":30,\"is_comment\":1,\"is_mic\":1},{\"external_userid\":\"external_userid2\",\"type\":2,\"name\":\"user_name\",\"watch_time\":30,\"is_comment\":1,\"is_mic\":1}]}}"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java index 5f2896d7a6..c042a55a69 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java @@ -4,10 +4,8 @@ import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; -import me.chanjar.weixin.cp.bean.school.WxCpCustomizeHealthInfo; -import me.chanjar.weixin.cp.bean.school.WxCpPaymentResult; -import me.chanjar.weixin.cp.bean.school.WxCpResultList; -import me.chanjar.weixin.cp.bean.school.WxCpTrade; +import me.chanjar.weixin.cp.bean.living.WxCpLivingResult; +import me.chanjar.weixin.cp.bean.school.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; @@ -46,6 +44,60 @@ public void test() throws WxErrorException { String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + /** + * 上课直播 + */ + String livingId = "lvOQpTDwAAh0hxHsSeSwTQcmH0nWUC_Q"; + + + /** + * 获取老师直播ID列表 + * https://developer.work.weixin.qq.com/document/path/93739 + */ + WxCpLivingResult.LivingIdResult result = cpService.getSchoolService().getUserAllLivingId("WangKai", null, 20); + log.info("result:{}", result.toJson()); + + /** + * 删除直播回放 + * https://developer.work.weixin.qq.com/document/path/93743 + */ + WxCpLivingResult livingResult = cpService.getSchoolService().deleteReplayData(livingId); + log.info("livingResult:{}", livingResult.toJson()); + + /** + * 获取未观看直播统计 + * https://developer.work.weixin.qq.com/document/path/93742 + */ + String str3 = "{\"errcode\":0,\"errmsg\":\"ok\",\"ending\":1,\"next_key\":\"NEXT_KEY\",\"stat_info\":{\"students\":[{\"student_userid\":\"zhansan_child\",\"parent_userid\":\"zhangsan\",\"partyids\":[10,11]},{\"student_userid\":\"lisi_child\",\"parent_userid\":\"lisi\",\"partyids\":[5]}]}}"; + WxCpSchoolUnwatchStat schoolUnwatchStat = WxCpSchoolUnwatchStat.fromJson(str3); + log.info("unwatchStat:{}", schoolUnwatchStat.toJson()); + + WxCpSchoolUnwatchStat unwatchStat = cpService.getSchoolService().getUnwatchStat(livingId, "0"); + log.info("unwatchStat:{}", unwatchStat.toJson()); + + /** + * 获取观看直播统计 + * https://developer.work.weixin.qq.com/document/path/93741 + */ + String str2 = "{\"errcode\":0,\"errmsg\":\"ok\",\"ending\":1,\"next_key\":\"NEXT_KEY\",\"stat_infoes\":{\"students\":[{\"student_userid\":\"zhansan_child\",\"parent_userid\":\"zhangsan\",\"partyids\":[10,11],\"watch_time\":30,\"enter_time\":1586433904,\"leave_time\":1586434000,\"is_comment\":1},{\"student_userid\":\"lisi_child\",\"parent_userid\":\"lisi\",\"partyids\":[10,11],\"watch_time\":30,\"enter_time\":1586433904,\"leave_time\":1586434000,\"is_comment\":0}],\"visitors\":[{\"nickname\":\"wx_nickname1\",\"watch_time\":30,\"enter_time\":1586433904,\"leave_time\":1586434000,\"is_comment\":1},{\"nickname\":\"wx_nickname2\",\"watch_time\":30,\"enter_time\":1586433904,\"leave_time\":1586434000,\"is_comment\":0}]}}"; + WxCpSchoolWatchStat wxCpSchoolWatchStat = WxCpSchoolWatchStat.fromJson(str2); + log.info("wxCpSchoolWatchStat:{}", wxCpSchoolWatchStat.toJson()); + + WxCpSchoolWatchStat watchStat = cpService.getSchoolService().getWatchStat(livingId, "0"); + log.info("watchStat:{}", watchStat.toJson()); + + String str1 = "{\"errcode\":0,\"errmsg\":\"ok\",\"living_info\":{\"theme\":\"直角三角形讲解\",\"living_start\":1586405229,\"living_duration\":1800,\"anchor_userid\":\"zhangsan\",\"living_range\":{\"partyids\":[1,4,9],\"group_names\":[\"group_name1\",\"group_name2\"]},\"viewer_num\":100,\"comment_num\":110,\"open_replay\":1,\"push_stream_url\":\"https://www.qq.test.com\"}}"; + WxCpSchoolLivingInfo wxCpSchoolLivingInfo = WxCpSchoolLivingInfo.fromJson(str1); + log.info("str1:{}", wxCpSchoolLivingInfo.toJson()); + + /** + * 获取直播详情 + * https://developer.work.weixin.qq.com/document/path/93740 + */ + WxCpSchoolLivingInfo schoolLivingInfo = cpService.getSchoolService().getLivingInfo(livingId); + log.info("schoolLivingInfo:{}", schoolLivingInfo.toJson()); + + /** * 获取学生付款结果 * https://developer.work.weixin.qq.com/document/path/94553 From 4590c9c333662dfc1f8a34ff690e42c88d2c2efc Mon Sep 17 00:00:00 2001 From: zhongjun Date: Mon, 20 Jun 2022 16:27:53 +0800 Subject: [PATCH 267/622] =?UTF-8?q?:new:=20#2672=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=96=B0=E5=A2=9E=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E8=BD=AC=E8=B4=A6=E7=9A=84=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../transfer/QueryTransferBatchesRequest.java | 50 +++++++++ .../transfer/QueryTransferBatchesResult.java | 101 +++++++++++++++++ .../transfer/TransferBatchDetailResult.java | 60 ++++++++++ .../bean/transfer/TransferBatchesRequest.java | 106 ++++++++++++++++++ .../bean/transfer/TransferBatchesResult.java | 37 ++++++ .../wxpay/service/TransferService.java | 102 +++++++++++++++++ .../wxpay/service/WxPayService.java | 10 +- .../service/impl/BaseWxPayServiceImpl.java | 6 + .../service/impl/TransferServiceImpl.java | 61 ++++++++++ .../service/impl/TransferServiceImplTest.java | 76 +++++++++++++ 10 files changed, 608 insertions(+), 1 deletion(-) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchDetailResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java new file mode 100644 index 0000000000..48401ce9c8 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java @@ -0,0 +1,50 @@ +package com.github.binarywang.wxpay.bean.transfer; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 查询微信批次单号查询批次单API参数 + * + * @author zhongjun + * @date 2022/6/17 + **/ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class QueryTransferBatchesRequest implements Serializable { + private static final long serialVersionUID = -2175582517588397426L; + + /** + * 微信批次单号 + */ + private String batchId; + + /** + * 是否查询转账明细单 + */ + private Boolean needQueryDetail; + + private Integer offset; + + private Integer limit; + + /** + * 明细状态 + * 查询指定状态的转账明细单,当need_query_detail为true时,该字段必填 + * ALL:全部。需要同时查询转账成功和转账失败的明细单 + * SUCCESS:转账成功。只查询转账成功的明细单 + * FAIL:转账失败。只查询转账失败的明细单 + */ + private String detailStatus; + + /** + * 商家批次单号 + */ + private String outBatchNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java new file mode 100644 index 0000000000..59a2f30fc4 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java @@ -0,0 +1,101 @@ +package com.github.binarywang.wxpay.bean.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * 查询微信批次单号查询批次单API响应 + * + * @author zhongjun + * @date 2022/6/17 + **/ +@Data +@NoArgsConstructor +public class QueryTransferBatchesResult implements Serializable { + private static final long serialVersionUID = -2175582517588397426L; + + @SerializedName("offset") + private Integer offset; + + @SerializedName("limit") + private Integer limit; + + @SerializedName("transfer_batch") + private TransferBatch transferBatch; + + @SerializedName("transfer_detail_list") + private List transferDetailList; + + @NoArgsConstructor + @Data + public static class TransferBatch { + @SerializedName("mchid") + private String mchid; + + @SerializedName("out_batch_no") + private String outBatchNo; + + @SerializedName("batch_id") + private String batchId; + + @SerializedName("appid") + private String appid; + + @SerializedName("batch_status") + private String batchStatus; + + @SerializedName("batch_type") + private String batchType; + + @SerializedName("batch_name") + private String batchName; + + @SerializedName("batch_remark") + private String batchRemark; + + @SerializedName("close_reason") + private String closeReason; + + @SerializedName("total_amount") + private Integer totalAmount; + + @SerializedName("total_num") + private Integer totalNum; + + @SerializedName("create_time") + private String createTime; + + @SerializedName("update_time") + private String updateTime; + + @SerializedName("success_amount") + private Integer successAmount; + + @SerializedName("success_num") + private Integer successNum; + + @SerializedName("fail_amount") + private Integer failAmount; + + @SerializedName("fail_num") + private Integer failNum; + } + + @NoArgsConstructor + @Data + public static class TransferDetail { + + @SerializedName("detail_id") + private String detailId; + + @SerializedName("out_detail_no") + private String outDetailNo; + + @SerializedName("detail_status") + private String detailStatus; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchDetailResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchDetailResult.java new file mode 100644 index 0000000000..8b76e445ed --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchDetailResult.java @@ -0,0 +1,60 @@ +package com.github.binarywang.wxpay.bean.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 微信明细单号查询明细单API + * + * @author zhongjun + */ +@NoArgsConstructor +@Data +public class TransferBatchDetailResult implements Serializable { + private static final long serialVersionUID = -2175582517588397426L; + + @SerializedName("mchid") + private String mchid; + + @SerializedName("out_batch_no") + private String outBatchNo; + + @SerializedName("batch_id") + private String batchId; + + @SerializedName("appid") + private String appid; + + @SerializedName("out_detail_no") + private String outDetailNo; + + @SerializedName("detail_id") + private String detailId; + + @SerializedName("detail_status") + private String detailStatus; + + @SerializedName("transfer_amount") + private Integer transferAmount; + + @SerializedName("transfer_remark") + private String transferRemark; + + @SerializedName("fail_reason") + private String failReason; + + @SerializedName("openid") + private String openid; + + @SerializedName("user_name") + private String userName; + + @SerializedName("initiate_time") + private String initiateTime; + + @SerializedName("update_time") + private String updateTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java new file mode 100644 index 0000000000..56f358494d --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java @@ -0,0 +1,106 @@ +package com.github.binarywang.wxpay.bean.transfer; + +import com.github.binarywang.wxpay.v3.SpecEncrypt; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * 发起商家转账API参数 + * + * @author zhongjun + * @date 2022/6/17 + **/ +@Data +@Builder(builderMethodName = "newBuilder") +@NoArgsConstructor +@AllArgsConstructor +public class TransferBatchesRequest implements Serializable { + private static final long serialVersionUID = -2175582517588397426L; + + /** + * 直连商户的appid + */ + @SerializedName("appid") + private String appid; + + /** + * 商家批次单号 + */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + * 批次名称 + */ + @SerializedName("batch_name") + private String batchName; + + /** + * 批次备注 + */ + @SerializedName("batch_remark") + private String batchRemark; + + /** + * 转账总金额 + */ + @SerializedName("total_amount") + private Integer totalAmount; + + /** + * 转账总笔数 + */ + @SerializedName("total_num") + private Integer totalNum; + + /** + * 转账明细列表 + */ + @SerializedName("transfer_detail_list") + private List transferDetailList; + + + @Data + @Builder(builderMethodName = "newBuilder") + @AllArgsConstructor + @NoArgsConstructor + public static class TransferDetail { + + /** + * 商家明细单号 + */ + @SerializedName("out_detail_no") + private String outDetailNo; + + /** + * 转账金额 + */ + @SerializedName("transfer_amount") + private Integer transferAmount; + + /** + * 转账备注 + */ + @SerializedName("transfer_remark") + private String transferRemark; + + /** + * 用户在直连商户应用下的用户标示 + */ + @SerializedName("openid") + private String openid; + + /** + * 收款用户姓名 + */ + @SpecEncrypt + @SerializedName("user_name") + private String userName; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java new file mode 100644 index 0000000000..70b9a279d1 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java @@ -0,0 +1,37 @@ +package com.github.binarywang.wxpay.bean.transfer; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 商家转账结果 + * + * @author zhongjun + * @date 2022/6/17 + **/ +@Data +@NoArgsConstructor +public class TransferBatchesResult implements Serializable { + private static final long serialVersionUID = -2175582517588397426L; + + /** + * 商家批次单号 + */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + * 微信批次单号 + */ + @SerializedName("batch_id") + private String batchId; + + /** + * 批次创建时间 + */ + @SerializedName("create_time") + private String createTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java new file mode 100644 index 0000000000..b2516ebe61 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java @@ -0,0 +1,102 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.transfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; + +/** + * 商家转账到零钱 + * + * @author zhongjun + * @date 2022/6/17 + **/ +public interface TransferService { + + /** + *

+   *
+   * 发起商家转账API
+   *
+   * 请求方式:POST(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:发起商家转账API
+   * 
+ * + * @param request 转账请求参数 + * @return TransferBatchesResult 转账结果 + * @throws WxPayException . + */ + TransferBatchesResult transferBatches(TransferBatchesRequest request) throws WxPayException; + + /** + *
+   *
+   * 微信批次单号查询批次单API
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:微信批次单号查询批次单API
+   * 
+ * + * @param request 查询请求参数 + * @return TransferBatchesResult 查询结果 + * @throws WxPayException . + */ + QueryTransferBatchesResult transferBatchesBatchId(QueryTransferBatchesRequest request) throws WxPayException; + + /** + *
+   *
+   * 微信明细单号查询明细单API
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:微信明细单号查询明细单API
+   * 
+ * + * @param batchId 微信批次单号 + * @param detailId 微信明细单号 + * @return TransferBatchDetailResult 查询结果 + * @throws WxPayException . + */ + TransferBatchDetailResult transferBatchesBatchIdDetail(String batchId, String detailId) throws WxPayException; + + /** + *
+   *
+   * 商家批次单号查询批次单API
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:商家批次单号查询批次单API
+   * 
+ * + * @param request 查询请求参数 + * @return TransferBatchesResult 查询结果 + * @throws WxPayException . + * @throws WxPayException . + */ + QueryTransferBatchesResult transferBatchesOutBatchNo(QueryTransferBatchesRequest request) throws WxPayException; + + /** + *
+   *
+   * 商家明细单号查询明细单API
+   *
+   * 请求方式:GET(HTTPS)
+   * 请求地址:请求地址
+   *
+   * 文档地址:商家明细单号查询明细单API
+   * 
+ * + * @param outBatchNo 商家明细单号 + * @param outDetailNo 商家批次单号 + * @return TransferBatchDetailResult 查询结果 + * @throws WxPayException . + */ + TransferBatchDetailResult transferBatchesOutBatchNoDetail(String outBatchNo, String outDetailNo) throws WxPayException; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 74f353e838..29735a00c4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -1352,7 +1352,15 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri /** * 获取银行组件服务 - * @return 银行组件服务 + * + * @return 银行组件服务 */ BankService getBankService(); + + /** + * 获取商家转账到零钱服务类. + * + * @return the transfers service + */ + TransferService getTransferService(); } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index 27fe2bfa27..6753f6d1f6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -79,6 +79,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { private final PayrollService payrollService = new PayrollServiceImpl(this); private final ComplaintService complaintsService = new ComplaintServiceImpl(this); private final BankService bankService = new BankServiceImpl(this); + private final TransferService transferService = new TransferServiceImpl(this); protected Map configMap; @@ -1269,4 +1270,9 @@ public ComplaintService getComplaintsService() { public BankService getBankService() { return bankService; } + + @Override + public TransferService getTransferService() { + return transferService; + } } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java new file mode 100644 index 0000000000..c0a8f76184 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java @@ -0,0 +1,61 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.transfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.TransferService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; + +/** + * 商家转账到零钱 + * + * @author zhongjun + * @date 2022/6/17 + **/ +@RequiredArgsConstructor +public class TransferServiceImpl implements TransferService { + + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService; + + @Override + public TransferBatchesResult transferBatches(TransferBatchesRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches", this.payService.getPayBaseUrl()); + RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate()); + String result = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); + return GSON.fromJson(result, TransferBatchesResult.class); + } + + @Override + public QueryTransferBatchesResult transferBatchesBatchId(QueryTransferBatchesRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/batch-id/%s?need_query_detail=%s&offset=%s&limit=%s&detail_status=%s", + this.payService.getPayBaseUrl(), request.getBatchId(), request.getNeedQueryDetail(), request.getOffset(), request.getLimit(), request.getDetailStatus()); + String result = this.payService.getV3(url); + return GSON.fromJson(result, QueryTransferBatchesResult.class); + } + + @Override + public TransferBatchDetailResult transferBatchesBatchIdDetail(String batchId, String detailId) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/batch-id/%s/details/detail-id/%s", this.payService.getPayBaseUrl(), batchId, detailId); + String result = this.payService.getV3(url); + return GSON.fromJson(result, TransferBatchDetailResult.class); + } + + @Override + public QueryTransferBatchesResult transferBatchesOutBatchNo(QueryTransferBatchesRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/out-batch-no/%s?need_query_detail=%s&offset=%s&limit=%s&detail_status=%s", + this.payService.getPayBaseUrl(), request.getOutBatchNo(), request.getNeedQueryDetail(), request.getOffset(), request.getLimit(), request.getDetailStatus()); + String result = this.payService.getV3(url); + return GSON.fromJson(result, QueryTransferBatchesResult.class); + } + + @Override + public TransferBatchDetailResult transferBatchesOutBatchNoDetail(String outBatchNo, String outDetailNo) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/out-batch-no/%s/details/out-detail-no/%s", this.payService.getPayBaseUrl(), outBatchNo, outDetailNo); + String result = this.payService.getV3(url); + return GSON.fromJson(result, TransferBatchDetailResult.class); + } +} diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java new file mode 100644 index 0000000000..654276a278 --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java @@ -0,0 +1,76 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.transfer.QueryTransferBatchesRequest; +import com.github.binarywang.wxpay.bean.transfer.TransferBatchesRequest; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.util.ArrayList; +import java.util.List; + +/** + * 获取商家转账到零钱服务类API测试 + * + * @author zhongjun + * @date 2022/6/17 + **/ +@Slf4j +@Test +@Guice(modules = ApiTestModule.class) +public class TransferServiceImplTest { + + @Inject + private WxPayService payService; + + @Test + public void testTransferBatches() throws WxPayException { + List transferDetailList = new ArrayList<>(); + transferDetailList.add(TransferBatchesRequest.TransferDetail.newBuilder() + .outDetailNo("1655447989156") + .transferAmount(100) + .transferRemark("测试转账") + .openid("oX_7Jzr9gSZz4X_Xc9-_7HGf8XzI") + .userName("测试用户").build()); + TransferBatchesRequest batchesRequest = TransferBatchesRequest.newBuilder() + .appid("wxf636efh5xxxxx") + .outBatchNo("1655447999520") + .batchName("测试批次") + .batchRemark("测试批次备注") + .totalAmount(100) + .totalNum(1) + .transferDetailList(transferDetailList).build(); + log.info("发起商家转账:{}", this.payService.getTransferService().transferBatches(batchesRequest)); + } + + @Test + public void testTransferBatchesBatchId() throws WxPayException { + log.info("微信批次单号查询批次单:{}", this.payService.getTransferService().transferBatchesBatchId(QueryTransferBatchesRequest.newBuilder() + .batchId("1655448154148") + .needQueryDetail(true) + .build())); + + } + + @Test + public void testTransferBatchesBatchIdDetail() throws WxPayException { + log.info("微信明细单号查询明细单:{}", this.payService.getTransferService().transferBatchesBatchIdDetail("1030000071100999991182020050700019480001", "1040000071100999991182020050700019500100")); + } + + @Test + public void testTransferBatchesOutBatchNo() throws WxPayException { + log.info("商家批次单号查询批次单:{}", this.payService.getTransferService().transferBatchesOutBatchNo(QueryTransferBatchesRequest.newBuilder() + .outBatchNo("1655447999520") + .needQueryDetail(true) + .build())); + } + + @Test + public void testTransferBatchesOutBatchNoDetail() throws WxPayException { + log.info("商家明细单号查询明细单:{}", this.payService.getTransferService().transferBatchesOutBatchNoDetail("1655447999520", "1655447989156")); + } +} From 2ed1a5f03a6776ede8f23c70182a22db88d7270f Mon Sep 17 00:00:00 2001 From: zhongjun Date: Mon, 20 Jun 2022 16:29:19 +0800 Subject: [PATCH 268/622] =?UTF-8?q?:art:=20=E9=83=A8=E5=88=86=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :bug: #2487 【企业微信】第三方服务商获取企业永久授权码接口返回的管理员信息没有 open_userid 字段 * :bug: #2699 WxMaUserInfo去除openId字段。 --- .../me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java | 6 ++++++ .../java/cn/binarywang/wx/miniapp/bean/WxMaUserInfo.java | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index 44d7a76b90..833ca85438 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -271,6 +271,12 @@ public static class AuthUserInfo implements Serializable { @SerializedName("avatar") private String avatar; + + /** + * 授权管理员的open_userid,可能为空 + */ + @SerializedName("open_userid") + private String openUserid; } /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUserInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUserInfo.java index e2f67a7718..da1126fd04 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUserInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUserInfo.java @@ -12,7 +12,6 @@ public class WxMaUserInfo implements Serializable { private static final long serialVersionUID = 6719822331555402137L; - private String openId; private String nickName; private String gender; private String language; From 867f8e454d28fb98920c29fd735759b3f65e9b7d Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 21 Jun 2022 16:24:14 +0800 Subject: [PATCH 269/622] =?UTF-8?q?:new:=20#2707=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=AE=B6=E6=A0=A1=E6=B2=9F?= =?UTF-8?q?=E9=80=9A-=E5=A2=9E=E5=8A=A0=E5=AD=A6=E7=94=9F=E4=B8=8E?= =?UTF-8?q?=E5=AE=B6=E9=95=BF=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpSchoolUserService.java | 104 ++++++++++++++ .../me/chanjar/weixin/cp/api/WxCpService.java | 7 + .../cp/api/impl/BaseWxCpServiceImpl.java | 6 + .../api/impl/WxCpSchoolUserServiceImpl.java | 108 +++++++++++++++ .../school/user/WxCpCreateParentRequest.java | 65 +++++++++ .../school/user/WxCpUpdateParentRequest.java | 65 +++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 8 ++ .../weixin/cp/api/WxCpSchoolUserTest.java | 130 ++++++++++++++++++ 8 files changed, 493 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java new file mode 100644 index 0000000000..7a97914a1f --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java @@ -0,0 +1,104 @@ +package me.chanjar.weixin.cp.api; + +import lombok.NonNull; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.school.user.WxCpCreateParentRequest; +import me.chanjar.weixin.cp.bean.school.user.WxCpUpdateParentRequest; + +import java.util.List; + +/** + * 企业微信家校沟通相关接口. + * https://developer.work.weixin.qq.com/document/path/91638 + * + * @author Wang_Wong + * @date: 2022/6/18 9:10 + */ +public interface WxCpSchoolUserService { + + /** + * 创建学生 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_student?access_token=ACCESS_TOKEN + * + * @param studentUserId + * @param name + * @param departments + * @return + * @throws WxErrorException + */ + WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, @NonNull List departments) throws WxErrorException; + + /** + * 删除学生 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_student?access_token=ACCESS_TOKEN&userid=USERID + * + * @param studentUserId + * @return + * @throws WxErrorException + */ + WxCpBaseResp deleteStudent(@NonNull String studentUserId) throws WxErrorException; + + /** + * 更新学生 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_student?access_token=ACCESS_TOKEN + * + * @param studentUserId + * @param newStudentUserId + * @param name + * @param departments + * @return + * @throws WxErrorException + */ + WxCpBaseResp updateStudent(@NonNull String studentUserId, String newStudentUserId, String name, List departments) throws WxErrorException; + + /** + * 创建家长 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_parent?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBaseResp createParent(@NonNull WxCpCreateParentRequest request) throws WxErrorException; + + /** + * 更新家长 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_parent?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBaseResp updateParent(@NonNull WxCpUpdateParentRequest request) throws WxErrorException; + + /** + * 删除家长 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_parent?access_token=ACCESS_TOKEN&userid=USERID + * + * @param userId + * @return + * @throws WxErrorException + */ + WxCpBaseResp deleteParent(@NonNull String userId) throws WxErrorException; + + /** + * 设置家校通讯录自动同步模式 + * 企业和第三方可通过此接口修改家校通讯录与班级标签之间的自动同步模式,注意,一旦设置禁止自动同步,将无法再次开启。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/set_arch_sync_mode?access_token=ACCESS_TOKEN + * + * @param archSyncMode 家校通讯录同步模式:1-禁止将标签同步至家校通讯录,2-禁止将家校通讯录同步至标签,3-禁止家校通讯录和标签相互同步 + * @return + * @throws WxErrorException + */ + WxCpBaseResp setArchSyncMode(@NonNull Integer archSyncMode) throws WxErrorException; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 32606b205d..60cfda149d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -407,6 +407,13 @@ public interface WxCpService extends WxService { */ WxCpSchoolService getSchoolService(); + /** + * 获取家校沟通相关接口的服务类对象 + * + * @return + */ + WxCpSchoolUserService getSchoolUserService(); + /** * 获取家校应用健康上报的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index fbfdbf3834..b72f0f0fb9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -50,6 +50,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpAgentService agentService = new WxCpAgentServiceImpl(this); private WxCpOaService oaService = new WxCpOaServiceImpl(this); private WxCpSchoolService schoolService = new WxCpSchoolServiceImpl(this); + private WxCpSchoolUserService schoolUserService = new WxCpSchoolUserServiceImpl(this); private WxCpSchoolHealthService schoolHealthService = new WxCpSchoolHealthServiceImpl(this); private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); private WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); @@ -500,6 +501,11 @@ public WxCpSchoolService getSchoolService() { return schoolService; } + @Override + public WxCpSchoolUserService getSchoolUserService() { + return schoolUserService; + } + @Override public WxCpSchoolHealthService getSchoolHealthService() { return schoolHealthService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java new file mode 100644 index 0000000000..404797f2ce --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -0,0 +1,108 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.JsonPrimitive; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.WxCpSchoolUserService; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.school.user.WxCpCreateParentRequest; +import me.chanjar.weixin.cp.bean.school.user.WxCpUpdateParentRequest; +import org.apache.commons.lang3.StringUtils; + +import java.util.List; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.School.*; + +/** + * 企业微信家校沟通相关接口. + * https://developer.work.weixin.qq.com/document/path/91638 + * + * @author Wang_Wong + * @date: 2022/6/18 9:10 + */ +@Slf4j +@RequiredArgsConstructor +public class WxCpSchoolUserServiceImpl implements WxCpSchoolUserService { + + private final WxCpService cpService; + + @Override + public WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, @NonNull List departments) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CREATE_STUDENT); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("student_userid", studentUserId); + jsonObject.addProperty("name", name); + JsonArray jsonArray = new JsonArray(); + for (Integer depart : departments) { + jsonArray.add(new JsonPrimitive(depart)); + } + jsonObject.add("department", jsonArray); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp deleteStudent(@NonNull String studentUserId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DELETE_STUDENT) + studentUserId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp updateStudent(@NonNull String studentUserId, String newStudentUserId, String name, List departments) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(UPDATE_STUDENT); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("student_userid", studentUserId); + if (StringUtils.isNotEmpty(newStudentUserId)) { + jsonObject.addProperty("new_student_userid", newStudentUserId); + } + if (StringUtils.isNotEmpty(name)) { + jsonObject.addProperty("name", name); + } + if (departments != null && departments.size() > 0) { + JsonArray jsonArray = new JsonArray(); + for (Integer depart : departments) { + jsonArray.add(new JsonPrimitive(depart)); + } + jsonObject.add("department", jsonArray); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp createParent(@NonNull WxCpCreateParentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CREATE_PARENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp updateParent(@NonNull WxCpUpdateParentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(UPDATE_PARENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp deleteParent(@NonNull String userId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DELETE_PARENT) + userId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp setArchSyncMode(@NonNull Integer archSyncMode) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SET_ARCH_SYNC_MODE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("arch_sync_mode", archSyncMode); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpBaseResp.fromJson(responseContent); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java new file mode 100644 index 0000000000..f97a3c48b1 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java @@ -0,0 +1,65 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 创建家长请求. + * + * @author Wang_Wong + * @date 2022-06-20 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpCreateParentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("to_invite") + private Boolean toInvite; + + @SerializedName("children") + private List children; + + @Setter + @Getter + public static class Children implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("relation") + private String relation; + + public static Children fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Children.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpCreateParentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpCreateParentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java new file mode 100644 index 0000000000..23f404f4dd --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java @@ -0,0 +1,65 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 更新家长请求. + * + * @author Wang_Wong + * @date 2022-06-20 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpUpdateParentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("new_parent_userid") + private String newParentUserId; + + @SerializedName("children") + private List children; + + @Setter + @Getter + public static class Children implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("relation") + private String relation; + + public static Children fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Children.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpUpdateParentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpUpdateParentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index dc308feb45..476f827adf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -183,6 +183,14 @@ interface School { String GET_STUDENT_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_student_customize_health_info"; String GET_HEALTH_QRCODE = "/cgi-bin/school/user/get_health_qrcode"; + String CREATE_STUDENT = "/cgi-bin/school/user/create_student"; + String DELETE_STUDENT = "/cgi-bin/school/user/delete_student?userid="; + String UPDATE_STUDENT = "/cgi-bin/school/user/update_student"; + String CREATE_PARENT = "/cgi-bin/school/user/create_parent"; + String UPDATE_PARENT = "/cgi-bin/school/user/update_parent"; + String DELETE_PARENT = "/cgi-bin/school/user/delete_parent?userid="; + String SET_ARCH_SYNC_MODE = "/cgi-bin/school/set_arch_sync_mode"; + String GET_PAYMENT_RESULT = "/cgi-bin/school/get_payment_result"; String GET_TRADE = "/cgi-bin/school/get_trade"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java new file mode 100644 index 0000000000..a201da2836 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -0,0 +1,130 @@ +package me.chanjar.weixin.cp.api; + +import com.google.common.collect.Lists; +import lombok.extern.slf4j.Slf4j; +import lombok.var; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.school.user.WxCpCreateParentRequest; +import me.chanjar.weixin.cp.bean.school.user.WxCpUpdateParentRequest; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import org.testng.annotations.Test; + +import java.io.InputStream; +import java.util.List; + +/** + * 企业微信家校沟通相关接口. + * https://developer.work.weixin.qq.com/document/path/91638 + * + * @author Wang_Wong + * @date: 2022/6/18 9:10 + */ +@Slf4j +public class WxCpSchoolUserTest { + + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + @Test + public void test() throws WxErrorException { + + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + + List list = Lists.newArrayList(); + list.add(1); + list.add(2); + list.add(3); + log.info("list:{}", list.toString()); + + + /** + * 更新家长 + * https://developer.work.weixin.qq.com/document/path/92333 + */ + String str2 = "{\"parent_userid\":\"zhangsan_parent_userid\",\"new_parent_userid\":\"NEW_ID\",\"mobile\":\"18000000000\",\"children\":[{\"student_userid\":\"zhangsan\",\"relation\":\"爸爸\"},{\"student_userid\":\"lisi\",\"relation\":\"伯父\"}]}"; + WxCpUpdateParentRequest updateParentRequest1 = WxCpUpdateParentRequest.fromJson(str2); + log.info("updateParentRequest1:{}", updateParentRequest1.toJson()); + + WxCpUpdateParentRequest updateParentRequest = new WxCpUpdateParentRequest(); + updateParentRequest.setParentUserId("zhangsan"); + updateParentRequest.setMobile("17324399999"); + updateParentRequest.setNewParentUserId("wangkai"); + + var child = new WxCpUpdateParentRequest.Children(); + child.setStudentUserId("zhangguiyuan"); + child.setRelation("伯父"); + + List childList = Lists.newArrayList(); + childList.add(child); + updateParentRequest.setChildren(childList); + + WxCpBaseResp updateParent = cpService.getSchoolUserService().updateParent(updateParentRequest); + log.info("updateParent:{}", updateParent.toJson()); + + /** + * 删除家长 + * https://developer.work.weixin.qq.com/document/path/92332 + */ + WxCpBaseResp deleteParent = cpService.getSchoolUserService().deleteParent("zhangsan"); + log.info("deleteParent:{}", deleteParent.toJson()); + + /** + * 创建家长 + * https://developer.work.weixin.qq.com/document/path/92331 + */ + String str1 = "{\"parent_userid\":\"zhangsan_parent_userid\",\"mobile\":\"10000000000\",\"to_invite\":false,\"children\":[{\"student_userid\":\"zhangsan\",\"relation\":\"爸爸\"},{\"student_userid\":\"lisi\",\"relation\":\"伯父\"}]}"; + WxCpCreateParentRequest createParentRequest1 = WxCpCreateParentRequest.fromJson(str1); + log.info("createParentRequest1:{}", createParentRequest1.toJson()); + + WxCpCreateParentRequest createParentRequest = new WxCpCreateParentRequest(); + createParentRequest.setParentUserId("wangkai"); + createParentRequest.setMobile("17324398888"); + createParentRequest.setToInvite(false); + + var children1 = new WxCpCreateParentRequest.Children(); + children1.setStudentUserId("zhangguiyuan"); + children1.setRelation("伯父"); + + List children = Lists.newArrayList(); + children.add(children1); + createParentRequest.setChildren(children); + + WxCpBaseResp createParent = cpService.getSchoolUserService().createParent(createParentRequest); + log.info("createParent:{}", createParent.toJson()); + + /** + * 设置家校通讯录自动同步模式 + * 企业和第三方可通过此接口修改家校通讯录与班级标签之间的自动同步模式,注意,一旦设置禁止自动同步,将无法再次开启。 + */ + WxCpBaseResp setArchSyncMode = cpService.getSchoolUserService().setArchSyncMode(2); + log.info("setArchSyncMode:{}", setArchSyncMode.toJson()); + + /** + * 更新学生 + */ + WxCpBaseResp updateStudent = cpService.getSchoolUserService().updateStudent("WangKai", "wangkai", "王", list); + log.info("updateStudent:{}", updateStudent.toJson()); + + /** + * 删除学生 + */ + WxCpBaseResp deleteStudent = cpService.getSchoolUserService().deleteStudent("WangKai"); + log.info("deleteStudent:{}", deleteStudent.toJson()); + + /** + * 创建学生 + */ + WxCpBaseResp student = cpService.getSchoolUserService().createStudent("WangKai", "王", list); + log.info("student:{}", student.toJson()); + + } + +} From 541589be59197c5238258be48a1abbec69b0bd79 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 21 Jun 2022 16:25:21 +0800 Subject: [PATCH 270/622] =?UTF-8?q?:art:=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java index e12e304939..2430f91f2e 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java @@ -87,7 +87,7 @@ public abstract class BaseWxMpServiceImpl implements WxMpService, RequestH private WxMpTemplateMsgService templateMsgService = new WxMpTemplateMsgServiceImpl(this); @Getter @Setter - private final WxMpSubscribeMsgService subscribeMsgService = new WxMpSubscribeMsgServiceImpl(this); + private WxMpSubscribeMsgService subscribeMsgService = new WxMpSubscribeMsgServiceImpl(this); @Getter @Setter private WxMpDeviceService deviceService = new WxMpDeviceServiceImpl(this); @@ -105,7 +105,7 @@ public abstract class BaseWxMpServiceImpl implements WxMpService, RequestH private WxMpAiOpenService aiOpenService = new WxMpAiOpenServiceImpl(this); @Getter @Setter - private final WxMpWifiService wifiService = new WxMpWifiServiceImpl(this); + private WxMpWifiService wifiService = new WxMpWifiServiceImpl(this); @Getter @Setter private WxMpMarketingService marketingService = new WxMpMarketingServiceImpl(this); From 1ccb94fd4ec2be0399358aaf279dd4ffb176b5ac Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 21 Jun 2022 16:49:54 +0800 Subject: [PATCH 271/622] =?UTF-8?q?:new:=20#2672=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E8=BD=AC=E8=B4=A6=E7=9A=84=E6=9B=B4=E5=A4=9A=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../merchanttransfer/BatchesQueryResult.java | 384 ++++++++++++++++++ .../DetailElectronicBillRequest.java | 71 ++++ .../DetailElectronicBillResult.java | 143 +++++++ .../merchanttransfer/DetailsQueryResult.java | 242 +++++++++++ .../ElectronicBillApplyRequest.java | 38 ++ .../ElectronicBillResult.java | 138 +++++++ .../MerchantBatchesQueryRequest.java | 99 +++++ .../MerchantDetailsQueryRequest.java | 52 +++ .../TransferCreateRequest.java | 208 ++++++++++ .../TransferCreateResult.java | 66 +++ .../WxBatchesQueryRequest.java | 99 +++++ .../WxDetailsQueryRequest.java | 53 +++ .../service/MerchantTransferService.java | 150 +++++++ .../wxpay/service/WxPayService.java | 7 + .../service/impl/BaseWxPayServiceImpl.java | 115 ++---- .../impl/MerchantTransferServiceImpl.java | 118 ++++++ .../impl/MerchantTransferServiceImplTest.java | 110 +++++ 17 files changed, 2018 insertions(+), 75 deletions(-) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java new file mode 100644 index 0000000000..d547471b8f --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java @@ -0,0 +1,384 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * The type Batches query result. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class BatchesQueryResult implements Serializable { + private static final long serialVersionUID = -4160610913430904527L; + /** + *

+   * 字段名:最大资源条数
+   * 变量名:limit
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求可返回的最大资源(转账明细单)条数,最小20条,最大100条,不传则默认20条。不足20条按实际条数返回
+   * 示例值:20
+   * 
+ */ + @SerializedName("limit") + private Integer limit; + + /** + *
+   * 字段名:请求资源起始位置
+   * 变量名:transfer_batch
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求资源(转账明细单)的起始位置,从0开始,转账明细单列表为空时不返回
+   * 示例值:1
+   * 
+ */ + @SerializedName("offset") + private Integer offset; + /** + *
+   * 字段名:转账批次单
+   * 变量名:transfer_batch
+   * 是否必填:是
+   * 类型:object
+   * 描述:
+   *  转账批次单基本信息
+   * 
+ */ + @SerializedName("transfer_batch") + private TransferBatch transferBatch; + + /** + *
+   * 字段名:转账明细单列表
+   * 变量名:transfer_detail_list
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  body发起批量转账的明细列表,最多三千笔
+   * 
+ */ + @SerializedName("transfer_detail_list") + private List transferDetailList; + + /** + * The type Transfer batch. + */ + @Data + @Accessors(chain = true) + public class TransferBatch implements Serializable { + /** + *
+     * 字段名:商户号
+     * 变量名:mchid
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  微信支付分配的商户号
+     * 示例值:1900001109
+     * 
+ */ + @SerializedName("mchid") + private String mchid; + + /** + *
+     * 字段名:商家批次单号
+     * 变量名:out_batch_no
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  商户系统内部的商家批次单号,在商户系统内部唯一
+     * 示例值:plfk2020042013
+     * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+     * 字段名:微信批次单号
+     * 变量名:batch_id
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  微信批次单号,微信商家转账系统返回的唯一标识
+     * 示例值:1030000071100999991182020050700019480001
+     * 
+ */ + @SerializedName("batch_id") + private String batchId; + + /** + *
+     * 字段名:直连商户的appid
+     * 变量名:appid
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  申请商户号的appid或商户号绑定的appid(企业号corpid即为此appid)
+     * 示例值:wxf636efh567hg4356
+     * 
+ */ + @SerializedName("appid") + private String appid; + + /** + *
+     * 字段名:批次状态
+     * 变量名:batch_status
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  枚举值:
+     * WAIT_PAY:待付款,商户员工确认付款阶段
+     * ACCEPTED:已受理。批次已受理成功,若发起批量转账的30分钟后,转账批次单仍处于该状态,可能原因是商户账户余额不足等。商户可查询账户资金流水,若该笔转账批次单的扣款已经发生,则表示批次已经进入转账中,请再次查单确认
+     * PROCESSING:转账中。已开始处理批次内的转账明细单
+     * FINISHED:已完成。批次内的所有转账明细单都已处理完成
+     * CLOSED:已关闭。可查询具体的批次关闭原因确认
+     * 示例值:ACCEPTED
+     * 
+ */ + @SerializedName("batch_status") + private String batchStatus; + + /** + *
+     * 字段名:批次类型
+     * 变量名:batch_type
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  枚举值:
+     * API:API方式发起
+     * WEB:页面方式发起
+     * 示例值:API
+     * 
+ */ + @SerializedName("batch_type") + private String batchType; + + /** + *
+     * 字段名:批次名称
+     * 变量名:batch_name
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  该笔批量转账的名称
+     * 示例值:2019年1月深圳分部报销单
+     * 
+ */ + @SerializedName("batch_name") + private String batchName; + + /** + *
+     * 字段名:批次备注
+     * 变量名:batch_remark
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  转账说明,UTF8编码,最多允许32个字符
+     * 示例值:2019年1月深圳分部报销单
+     * 
+ */ + @SerializedName("batch_remark") + private String batchRemark; + + /** + *
+     * 字段名:批次关闭原因
+     * 变量名:close_reason
+     * 是否必填:否
+     * 类型:string[1,64]
+     * 描述:
+     *  如果批次单状态为“CLOSED”(已关闭),则有关闭原因
+     * MERCHANT_REVOCATION:商户主动撤销
+     * OVERDUE_CLOSE:系统超时关闭
+     * 示例值:OVERDUE_CLOSE
+     * 
+ */ + @SerializedName("close_reason") + private String closeReason; + + /** + *
+     * 字段名:转账总金额
+     * 变量名:total_amount
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  转账金额单位为分
+     * 示例值:4000000
+     * 
+ */ + @SerializedName("total_amount") + private Integer totalAmount; + + /** + *
+     * 字段名:转账总笔数
+     * 变量名:total_num
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  一个转账批次单最多发起三千笔转账
+     * 示例值:200
+     * 
+ */ + @SerializedName("total_num") + private Integer totalNum; + + /** + *
+     * 字段名:批次创建时间
+     * 变量名:create_time
+     * 是否必填:否
+     * 类型:string[1,32]
+     * 描述:
+     *  批次受理成功时返回,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+     * 示例值:2015-05-20T13:29:35.120+08:00
+     * 
+ */ + @SerializedName("create_time") + private String createTime; + + /** + *
+     * 字段名:批次更新时间
+     * 变量名:update_time
+     * 是否必填:否
+     * 类型:string[1,32]
+     * 描述:
+     *  批次最近一次状态变更的时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+     * 示例值:2015-05-20T13:29:35.120+08:00
+     * 
+ */ + @SerializedName("update_time") + private String updateTime; + + /** + *
+     * 字段名:转账成功金额
+     * 变量名:success_amount
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  转账成功的金额,单位为分。当批次状态为“PROCESSING”(转账中)时,转账成功金额随时可能变化
+     * 示例值:3900000
+     * 
+ */ + @SerializedName("success_amount") + private Integer successAmount; + + /** + *
+     * 字段名:转账成功笔数
+     * 变量名:success_num
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  转账成功的笔数。当批次状态为“PROCESSING”(转账中)时,转账成功笔数随时可能变化
+     * 示例值:199
+     * 
+ */ + @SerializedName("success_num") + private Integer successNum; + + /** + *
+     * 字段名:转账失败金额
+     * 变量名:fail_amount
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  转账失败的金额,单位为分
+     * 示例值:100000
+     * 
+ */ + @SerializedName("fail_amount") + private Integer failAmount; + + /** + *
+     * 字段名:转账失败笔数
+     * 变量名:fail_num
+     * 是否必填:否
+     * 类型:int
+     * 描述:
+     *  转账失败的笔数
+     * 示例值:1
+     * 
+ */ + @SerializedName("fail_num") + private Integer failNum; + } + + /** + * The type Transfer detail. + */ + @Data + @Accessors(chain = true) + public class TransferDetail implements Serializable { + /** + *
+     * 字段名:微信明细单号
+     * 变量名:detail_id
+     * 是否必填:是
+     * 类型:string[1,64]
+     * 描述:
+     *  微信支付系统内部区分转账批次单下不同转账明细单的唯一标识
+     * 示例值:1040000071100999991182020050700019500100
+     * 
+ */ + @SerializedName("detail_id") + private String detailId; + + /** + *
+     * 字段名:商家明细单号
+     * 变量名:out_detail_no
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  商户系统内部区分转账批次单下不同转账明细单的唯一标识
+     * 示例值:x23zy545Bd5436
+     * 
+ */ + @SerializedName("out_detail_no") + private String outDetailNo; + + /** + *
+     * 字段名:明细状态
+     * 变量名:detail_status
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  枚举值:
+     * PROCESSING:转账中。正在处理中,转账结果尚未明确
+     * SUCCESS:转账成功
+     * FAIL:转账失败。需要确认失败原因后,再决定是否重新发起对该笔明细单的转账(并非整个转账批次单)
+     * 示例值:SUCCESS
+     * 
+ */ + @SerializedName("detail_status") + private String detailStatus; + } +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java new file mode 100644 index 0000000000..adfc8585fc --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java @@ -0,0 +1,71 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Detail electronic bill request. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DetailElectronicBillRequest implements Serializable { + private static final long serialVersionUID = 716155129313310192L; + /** + *
+   * 字段名:受理类型
+   * 变量名:accept_type
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   * query电子回单受理类型:
+   * BATCH_TRANSFER:批量转账明细电子回单
+   * TRANSFER_TO_POCKET:企业付款至零钱电子回单
+   * TRANSFER_TO_BANK:企业付款至银行卡电子回单
+   * 示例值:BATCH_TRANSFER
+   * 
+ */ + @SerializedName("accept_type") + private String acceptType; + + /** + *
+   * 字段名:商家转账批次单号
+   * 变量名:out_batch_no
+   * 是否必填:否
+   * 类型:string[5,32]
+   * 描述:
+   * query需要电子回单的批量转账明细单所在的转账批次单号,该单号为商户申请转账时生成的商户单号。受理类型为BATCH_TRANSFER时该单号必填,否则该单号留空。
+   * 示例值:GD2021011610162610BBdkkIwcu3
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:商家转账明细单号
+   * 变量名:out_detail_no
+   * 是否必填:是
+   * 类型:string[5,32]
+   * 描述:
+   * query该单号为商户申请转账时生成的商家转账明细单号。
+   * 1.受理类型为BATCH_TRANSFER时填写商家批量转账明细单号。
+   * 2. 受理类型为TRANSFER_TO_POCKET或TRANSFER_TO_BANK时填写商家转账单号。
+   * 示例值:mx0911231610162610v4CNkO4HAf
+   * 
+ */ + @SerializedName("out_detail_no") + private String outDetailNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java new file mode 100644 index 0000000000..3199a3ed06 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java @@ -0,0 +1,143 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 查询转账明细电子回单受理结果响应实体 + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DetailElectronicBillResult implements Serializable { + private static final long serialVersionUID = -6544648835213399159L; + /** + *
+   * 字段名:受理类型
+   * 变量名:accept_type
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  电子回单受理类型:
+   * BATCH_TRANSFER:批量转账明细电子回单
+   * TRANSFER_TO_POCKET:企业付款至零钱电子回单
+   * TRANSFER_TO_BANK:企业付款至银行卡电子回单
+   * 示例值:BATCH_TRANSFER
+   * 
+ */ + @SerializedName("accept_type") + private String acceptType; + + /** + *
+   * 字段名:商家转账批次单号
+   * 变量名:out_batch_no
+   * 是否必填:否
+   * 类型:string[5,32]
+   * 描述:
+   *  需要电子回单的批量转账明细单所在的转账批次单号,该单号为商户申请转账时生成的商户单号。受理类型为BATCH_TRANSFER时该单号必填,否则该单号留空。
+   * 示例值:GD2021011610162610BBdkkIwcu3
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:商家转账明细单号
+   * 变量名:out_detail_no
+   * 是否必填:是
+   * 类型:string[5,32]
+   * 描述:
+   *  该单号为商户申请转账时生成的商家转账明细单号。
+   * 1.受理类型为BATCH_TRANSFER时填写商家批量转账明细单号。
+   * 2. 受理类型为TRANSFER_TO_POCKET或TRANSFER_TO_BANK时填写商家转账单号。
+   * 示例值:mx0911231610162610v4CNkO4HAf
+   * 
+ */ + @SerializedName("out_detail_no") + private String outDetailNo; + + /** + *
+   * 字段名:电子回单受理单号
+   * 变量名:signature_no
+   * 是否必填:是
+   * 类型:string[3,256]
+   * 描述:
+   *  电子回单受理单号,受理单据的唯一标识
+   * 示例值:1050000010509999485212020110200058820001
+   * 
+ */ + @SerializedName("signature_no") + private String signatureNo; + + /** + *
+   * 字段名:电子回单状态
+   * 变量名:signature_status
+   * 是否必填:否
+   * 类型:string[1,10]
+   * 描述:
+   *  枚举值:
+   * ACCEPTED:已受理,电子签章已受理成功
+   * FINISHED:已完成。电子签章已处理完成
+   * 示例值:ACCEPTED
+   * 
+ */ + @SerializedName("signature_status") + private String signatureStatus; + + /** + *
+   * 字段名:电子回单文件的hash方法
+   * 变量名:hash_type
+   * 是否必填:否
+   * 类型:string[1,20]
+   * 描述:
+   *  电子回单文件的hash方法,回单状态为:FINISHED时返回
+   * 示例值:SHA256
+   * 
+ */ + @SerializedName("hash_type") + private String hashType; + + /** + *
+   * 字段名:电子回单文件的hash值
+   * 变量名:hash_value
+   * 是否必填:否
+   * 类型:string[3,1000]
+   * 描述:
+   *  电子回单文件的hash值,用于下载之后验证文件的完整、正确性,回单状态为:FINISHED时返回
+   * 示例值:DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529
+   * 
+ */ + @SerializedName("hash_value") + private String hashValue; + + /** + *
+   * 字段名:电子回单文件的下载地址
+   * 变量名:download_url
+   * 是否必填:否
+   * 类型:string[10,3000]
+   * 描述:
+   *  电子回单文件的下载地址,回单状态为:FINISHED时返回。URL有效时长为10分钟,10分钟后需要重新去获取下载地址(但不需要走受理)
+   * 示例值:https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx
+   * 
+ */ + @SerializedName("download_url") + private String downloadUrl; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java new file mode 100644 index 0000000000..b7bca954cf --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java @@ -0,0 +1,242 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * 微信明细单号查询明细单 响应实体、 + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class DetailsQueryResult implements Serializable { + private static final long serialVersionUID = -6900642921137234815L; + /** + *
+   * 字段名:商户号
+   * 变量名:mchid
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  微信支付分配的商户号
+   * 示例值:1900001109
+   * 
+ */ + @SerializedName("mchid") + private String mchid; + + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  商户系统内部的商家批次单号,在商户系统内部唯一
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:微信批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[1,64]
+   * 描述:
+   *  微信批次单号,微信商家转账系统返回的唯一标识
+   * 示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName("batch_id") + private String batchId; + + /** + *
+   * 字段名:直连商户的appid
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  申请商户号的appid或商户号绑定的appid(企业号corpid即为此appid)
+   * 示例值:wxf636efh567hg4356
+   * 
+ */ + @SerializedName("appid") + private String appid; + + /** + *
+   * 字段名:商家明细单号
+   * 变量名:out_detail_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  商户系统内部区分转账批次单下不同转账明细单的唯一标识
+   * 示例值:x23zy545Bd5436
+   * 
+ */ + @SerializedName("out_detail_no") + private String outDetailNo; + + /** + *
+   * 字段名:微信明细单号
+   * 变量名:detail_id
+   * 是否必填:是
+   * 类型:string[1,64]
+   * 描述:
+   *  微信支付系统内部区分转账批次单下不同转账明细单的唯一标识
+   * 示例值:1040000071100999991182020050700019500100
+   * 
+ */ + @SerializedName("detail_id") + private String detailId; + + /** + *
+   * 字段名:明细状态
+   * 变量名:detail_status
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  枚举值:
+   * PROCESSING:转账中。正在处理中,转账结果尚未明确
+   * SUCCESS:转账成功
+   * FAIL:转账失败。需要确认失败原因后,再决定是否重新发起对该笔明细单的转账(并非整个转账批次单)
+   * 示例值:SUCCESS
+   * 
+ */ + @SerializedName("detail_status") + private String detailStatus; + + /** + *
+   * 字段名:转账金额
+   * 变量名:transfer_amount
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  转账金额单位为分
+   * 示例值:200000
+   * 
+ */ + @SerializedName("transfer_amount") + private Integer transferAmount; + + /** + *
+   * 字段名:转账备注
+   * 变量名:transfer_remark
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符
+   * 示例值:2020年4月报销
+   * 
+ */ + @SerializedName("transfer_remark") + private String transferRemark; + + /** + *
+   * 字段名:明细失败原因
+   * 变量名:fail_reason
+   * 是否必填:否
+   * 类型:string[1,64]
+   * 描述:
+   *  如果转账失败则有失败原因
+   * ACCOUNT_FROZEN:账户冻结
+   * REAL_NAME_CHECK_FAIL:用户未实名
+   * NAME_NOT_CORRECT:用户姓名校验失败
+   * OPENID_INVALID:Openid校验失败
+   * TRANSFER_QUOTA_EXCEED:超过用户单笔收款额度
+   * DAY_RECEIVED_QUOTA_EXCEED:超过用户单日收款额度
+   * MONTH_RECEIVED_QUOTA_EXCEED:超过用户单月收款额度
+   * DAY_RECEIVED_COUNT_EXCEED:超过用户单日收款次数
+   * PRODUCT_AUTH_CHECK_FAIL:产品权限校验失败
+   * OVERDUE_CLOSE:转账关闭
+   * ID_CARD_NOT_CORRECT:用户身份证校验失败
+   * ACCOUNT_NOT_EXIST:用户账户不存在
+   * TRANSFER_RISK:转账存在风险
+   * REALNAME_ACCOUNT_RECEIVED_QUOTA_EXCEED:用户账户收款受限,请引导用户在微信支付查看详情
+   * RECEIVE_ACCOUNT_NOT_PERMMIT:未配置该用户为转账收款人
+   * PAYER_ACCOUNT_ABNORMAL:商户账户付款受限,可前往商户平台-违约记录获取解除功能限制指引
+   * PAYEE_ACCOUNT_ABNORMAL:用户账户收款异常,请引导用户完善其在微信支付的身份信息以继续收款
+   * 示例值:ACCOUNT_FROZEN
+   * 
+ */ + @SerializedName("fail_reason") + private String failReason; + + /** + *
+   * 字段名:用户在直连商户应用下的用户标示
+   * 变量名:openid
+   * 是否必填:是
+   * 类型:string[1,128]
+   * 描述:
+   *  用户在直连商户appid下的唯一标识
+   * 示例值:o-MYE42l80oelYMDE34nYD456Xoy
+   * 
+ */ + @SerializedName("openid") + private String openid; + + /** + *
+   * 字段名:收款用户姓名
+   * 变量名:user_name
+   * 是否必填:否
+   * 类型:string[1,1024]
+   * 描述:
+   *  1、商户转账时传入了收款用户姓名、查询时会返回收款用户姓名;
+   * 2、收款方姓名采用标准RSA算法,公钥由微信侧提供
+   * 3、 该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+   * 示例值:757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45
+   * 
+ */ + @SerializedName("user_name") + private String userName; + + /** + *
+   * 字段名:转账发起时间
+   * 变量名:initiate_time
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  转账发起的时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName("initiate_time") + private String initiateTime; + + /** + *
+   * 字段名:明细更新时间
+   * 变量名:update_time
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  明细最后一次状态变更的时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName("update_time") + private String updateTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java new file mode 100644 index 0000000000..66ca59e4bc --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java @@ -0,0 +1,38 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Electronic bill apply request. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class ElectronicBillApplyRequest implements Serializable { + private static final long serialVersionUID = -2121536206019844928L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5,32]
+   * 描述:
+   *  body商户系统内部的商家批次单号,在商户系统内部唯一。需要电子回单的批次单号
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java new file mode 100644 index 0000000000..699f66c3c7 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java @@ -0,0 +1,138 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Electronic bill result. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class ElectronicBillResult implements Serializable { + private static final long serialVersionUID = 7528245102572829190L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[5,32]
+   * 描述:
+   *  body商户系统内部的商家批次单号,在商户系统内部唯一。需要电子回单的批次单号
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:电子回单申请单号
+   * 变量名:signature_no
+   * 是否必填:是
+   * 类型:string[3,45]
+   * 描述:
+   *  电子回单申请单号,申请单据的唯一标识
+   * 示例值:1050000010509999485212020110200058820001
+   * 
+ */ + @SerializedName("signature_no") + private String signatureNo; + + /** + *
+   * 字段名:电子回单状态
+   * 变量名:signature_status
+   * 是否必填:否
+   * 类型:string[1,10]
+   * 描述:
+   *  枚举值:
+   * ACCEPTED:已受理,电子签章已受理成功
+   * FINISHED:已完成。电子签章已处理完成
+   * 示例值:ACCEPTED
+   * 
+ */ + @SerializedName("signature_status") + private String signatureStatus; + + /** + *
+   * 字段名:电子回单文件的hash方法
+   * 变量名:hash_type
+   * 是否必填:否
+   * 类型:string[1,20]
+   * 描述:
+   *  电子回单文件的hash方法,回单状态为:FINISHED时返回。
+   * 示例值:SHA256
+   * 
+ */ + @SerializedName("hash_type") + private String hashType; + + /** + *
+   * 字段名:电子回单文件的hash值
+   * 变量名:hash_value
+   * 是否必填:否
+   * 类型:string[3,1000]
+   * 描述:
+   *  电子回单文件的hash值,用于下载之后验证文件的完整、正确性,回单状态为:FINISHED时返回。
+   * 示例值:DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529
+   * 
+ */ + @SerializedName("hash_value") + private String hashValue; + + /** + *
+   * 字段名:电子回单文件的下载地址
+   * 变量名:download_url
+   * 是否必填:否
+   * 类型:string[10,3000]
+   * 描述:
+   *  电子回单文件的下载地址,回单状态为:FINISHED时返回。URL有效时长为10分钟,10分钟后需要重新去获取下载地址(但不需要走受理)
+   * 示例值:https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx
+   * 
+ */ + @SerializedName("download_url") + private String downloadUrl; + + /** + *
+   * 字段名:创建时间
+   * 变量名:create_time
+   * 是否必填:否
+   * 类型:string[1,32]
+   * 描述:
+   *  电子签章单创建时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2020-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName("create_time") + private String createTime; + + /** + *
+   * 字段名:更新时间
+   * 变量名:update_time
+   * 是否必填:否
+   * 类型:string[1,32]
+   * 描述:
+   *  电子签章单最近一次状态变更的时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2020-05-21T13:29:35.120+08:00
+   * 
+ */ + @SerializedName("update_time") + private String updateTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java new file mode 100644 index 0000000000..a123db2305 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java @@ -0,0 +1,99 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Merchant batches query request. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class MerchantBatchesQueryRequest implements Serializable { + private static final long serialVersionUID = 7074459219428697275L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  path商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:是否查询转账明细单
+   * 变量名:need_query_detail
+   * 是否必填:是
+   * 类型:boolean
+   * 描述:
+   *  query枚举值:
+   * true:是;
+   * false:否,默认否。
+   * 商户可选择是否查询指定状态的转账明细单,当转账批次单状态为“FINISHED”(已完成)时,才会返回满足条件的转账明细单
+   * 示例值:true
+   * 
+ */ + @SerializedName("need_query_detail") + private Boolean needQueryDetail; + + /** + *
+   * 字段名:请求资源起始位置
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求资源的起始位置,从0开始,默认值为0
+   * 
+ */ + @SerializedName("offset") + private Integer offset; + + /** + *
+   * 字段名:最大资源条数
+   * 变量名:limit
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求可返回的最大明细条数,最小20条,最大100条,不传则默认20条。不足20条按实际条数返回
+   * 示例值:20
+   * 
+ */ + @SerializedName("limit") + private Integer limit; + + /** + *
+   * 字段名:明细状态
+   * 变量名:detail_status
+   * 是否必填:否
+   * 类型:string[1,32]
+   * 描述:
+   *  query查询指定状态的转账明细单,当need_query_detail为true时,该字段必填
+   * ALL:全部。需要同时查询转账成功和转账失败的明细单
+   * SUCCESS:转账成功。只查询转账成功的明细单
+   * FAIL:转账失败。只查询转账失败的明细单
+   * 示例值:FAIL
+   * 
+ */ + @SerializedName("detail_status") + private String detailStatus; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java new file mode 100644 index 0000000000..d9ae599c33 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java @@ -0,0 +1,52 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Merchant details query request. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class MerchantDetailsQueryRequest implements Serializable { + private static final long serialVersionUID = 3167548999175561804L; + /** + *
+   * 字段名:商家明细单号
+   * 变量名:out_detail_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   * path商户系统内部区分转账批次单下不同转账明细单的唯一标识,要求此参数只能由数字、大小写字母组成
+   * 示例值:x23zy545Bd5436
+   * 
+ */ + @SerializedName("out_detail_no") + private String outDetailNo; + + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  path商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java new file mode 100644 index 0000000000..946f0d67df --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java @@ -0,0 +1,208 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.github.binarywang.wxpay.v3.SpecEncrypt; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * The type Transfer create request. + * + * @author glz + * @date 2022-5-26 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class TransferCreateRequest implements Serializable { + private static final long serialVersionUID = -6865437704112740902L; + /** + *
+   * 字段名:直连商户的appid
+   * 变量名:appid
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  申请商户号的appid或商户号绑定的appid(企业号corpid即为此appid)
+   * 示例值:wxf636efh567hg4356
+   * 
+ */ + @SerializedName("appid") + private String appid; + + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  path商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:批次名称
+   * 变量名:batch_name
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  该笔批量转账的名称
+   * 示例值:2019年1月深圳分部报销单
+   * 
+ */ + @SerializedName("batch_name") + private String batchName; + + /** + *
+   * 字段名:批次备注
+   * 变量名:batch_remark
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  转账说明,UTF8编码,最多允许32个字符
+   * 示例值:2019年1月深圳分部报销单
+   * 
+ */ + @SerializedName("batch_remark") + private String batchRemark; + + /** + *
+   * 字段名:转账总金额
+   * 变量名:total_amount
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  转账金额单位为分
+   * 示例值:4000000
+   * 
+ */ + @SerializedName("total_amount") + private Integer totalAmount; + + /** + *
+   * 字段名:转账总笔数
+   * 变量名:total_num
+   * 是否必填:是
+   * 类型:int
+   * 描述:
+   *  一个转账批次单最多发起三千笔转账
+   * 示例值:200
+   * 
+ */ + @SerializedName("total_num") + private Integer totalNum; + + /** + *
+   * 字段名:转账明细单列表
+   * 变量名:transfer_detail_list
+   * 是否必填:否
+   * 类型:array
+   * 描述:
+   *  body发起批量转账的明细列表,最多三千笔
+   * 
+ */ + @SerializedName("transfer_detail_list") + @SpecEncrypt + private List transferDetailList; + + + /** + * The type Transfer detail list. + */ + @Data + @Accessors(chain = true) + public static class TransferDetailList implements Serializable { + + /** + *
+     * 字段名:商家明细单号
+     * 变量名:out_detail_no
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  商户系统内部区分转账批次单下不同转账明细单的唯一标识
+     * 示例值:x23zy545Bd5436
+     * 
+ */ + @SerializedName("out_detail_no") + private String outDetailNo; + + /** + *
+     * 字段名:转账金额
+     * 变量名:transfer_amount
+     * 是否必填:是
+     * 类型:int
+     * 描述:
+     *  转账金额单位为分
+     * 示例值:200000
+     * 
+ */ + @SerializedName("transfer_amount") + private Integer transferAmount; + + /** + *
+     * 字段名:转账备注
+     * 变量名:transfer_remark
+     * 是否必填:是
+     * 类型:string[1,32]
+     * 描述:
+     *  单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符
+     * 示例值:2020年4月报销
+     * 
+ */ + @SerializedName("transfer_remark") + private String transferRemark; + + /** + *
+     * 字段名:用户在直连商户应用下的用户标示
+     * 变量名:openid
+     * 是否必填:是
+     * 类型:string[1,128]
+     * 描述:
+     *  用户在直连商户appid下的唯一标识
+     * 示例值:o-MYE42l80oelYMDE34nYD456Xoy
+     * 
+ */ + @SerializedName("openid") + private String openid; + + /** + *
+     * 字段名:收款用户姓名
+     * 变量名:user_name
+     * 是否必填:否
+     * 类型:string[1,1024]
+     * 描述:
+     *  1、商户转账时传入了收款用户姓名、查询时会返回收款用户姓名;
+     * 2、收款方姓名采用标准RSA算法,公钥由微信侧提供
+     * 3、 该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
+     * 示例值:757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45
+     * 
+ */ + @SerializedName("user_name") + @SpecEncrypt + private String userName; + } +} + + diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java new file mode 100644 index 0000000000..e5b057a797 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java @@ -0,0 +1,66 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Transfer create result. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class TransferCreateResult implements Serializable { + private static final long serialVersionUID = 586974090302358983L; + /** + *
+   * 字段名:商家批次单号
+   * 变量名:out_batch_no
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  商户系统内部的商家批次单号,在商户系统内部唯一
+   * 示例值:plfk2020042013
+   * 
+ */ + @SerializedName("out_batch_no") + private String outBatchNo; + + /** + *
+   * 字段名:微信批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[1,32]
+   * 描述:
+   *  微信批次单号,微信商家转账系统返回的唯一标识
+   * 示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName("batch_id") + private String batchId; + + /** + *
+   * 字段名:批次创建时间
+   * 变量名:create_time
+   * 是否必填:否
+   * 类型:string[1,32]
+   * 描述:
+   *  批次受理成功时返回,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
+   * 示例值:2015-05-20T13:29:35.120+08:00
+   * 
+ */ + @SerializedName("create_time") + private String createTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java new file mode 100644 index 0000000000..1cf4697f47 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java @@ -0,0 +1,99 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Wx batches query request. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxBatchesQueryRequest implements Serializable { + private static final long serialVersionUID = 1030840820271586649L; + /** + *
+   * 字段名:微信批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[1,64]
+   * 描述:
+   *  path微信批次单号,微信商家转账系统返回的唯一标识
+   * 示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName("batch_id") + private String batchId; + + /** + *
+   * 字段名:是否查询转账明细单
+   * 变量名:need_query_detail
+   * 是否必填:是
+   * 类型:boolean
+   * 描述:
+   *  query枚举值:
+   * true:是;
+   * false:否,默认否。
+   * 商户可选择是否查询指定状态的转账明细单,当转账批次单状态为“FINISHED”(已完成)时,才会返回满足条件的转账明细单
+   * 示例值:true
+   * 
+ */ + @SerializedName("need_query_detail") + private Boolean needQueryDetail; + + /** + *
+   * 字段名:请求资源起始位置
+   * 变量名:offset
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求资源的起始位置,从0开始,默认值为0
+   * 
+ */ + @SerializedName("offset") + private Integer offset; + + /** + *
+   * 字段名:最大资源条数
+   * 变量名:limit
+   * 是否必填:否
+   * 类型:int
+   * 描述:
+   *  query该次请求可返回的最大明细条数,最小20条,最大100条,不传则默认20条。不足20条按实际条数返回
+   * 示例值:20
+   * 
+ */ + @SerializedName("limit") + private Integer limit; + + /** + *
+   * 字段名:明细状态
+   * 变量名:detail_status
+   * 是否必填:否
+   * 类型:string[1,32]
+   * 描述:
+   *  query查询指定状态的转账明细单,当need_query_detail为true时,该字段必填
+   * ALL:全部。需要同时查询转账成功和转账失败的明细单
+   * SUCCESS:转账成功。只查询转账成功的明细单
+   * FAIL:转账失败。只查询转账失败的明细单
+   * 示例值:FAIL
+   * 
+ */ + @SerializedName("detail_status") + private String detailStatus; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java new file mode 100644 index 0000000000..6216bed53e --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java @@ -0,0 +1,53 @@ +package com.github.binarywang.wxpay.bean.merchanttransfer; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * The type Wx details query request. + * + * @author glz + * @date 2022-6-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxDetailsQueryRequest implements Serializable { + private static final long serialVersionUID = 4869511970509348272L; + + /** + *
+   * 字段名:微信批次单号
+   * 变量名:batch_id
+   * 是否必填:是
+   * 类型:string[1,64]
+   * 描述:
+   *  path微信批次单号,微信商家转账系统返回的唯一标识
+   * 示例值:1030000071100999991182020050700019480001
+   * 
+ */ + @SerializedName("batch_id") + private String batchId; + + /** + *
+   * 字段名:微信明细单号
+   * 变量名:detail_id
+   * 是否必填:是
+   * 类型:string[1,64]
+   * 描述:
+   *  path微信支付系统内部区分转账批次单下不同转账明细单的唯一标识
+   * 示例值:1040000071100999991182020050700019500100
+   * 
+ */ + @SerializedName("detail_id") + private String detailId; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java new file mode 100644 index 0000000000..049253acac --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java @@ -0,0 +1,150 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.merchanttransfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; + +/** + * 商家转账到零钱(直联商户) + * + * @author glz + * @date 2022-6-11 + */ +public interface MerchantTransferService { + + /** + * 发起商家转账API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_1.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches + * 请求方式:POST + * 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * 是否需要证书:是 + * + * @param request the request + * @return transfer create result + * @throws WxPayException the wx pay exception + */ + TransferCreateResult createTransfer(TransferCreateRequest request) throws WxPayException; + + /** + * 微信批次单号查询批次单API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_2.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{batch_id} + * 请求方式:GET + * 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request the request + * @return batches query result + * @throws WxPayException the wx pay exception + */ + BatchesQueryResult queryWxBatches(WxBatchesQueryRequest request) throws WxPayException; + + /** + * 微信明细单号查询明细单API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_3.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id} + * 请求方式:GET + * 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request the request + * @return details query result + * @throws WxPayException the wx pay exception + */ + DetailsQueryResult queryWxDetails(WxDetailsQueryRequest request) throws WxPayException; + + /** + * 商家批次单号查询批次单API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_5.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{out_batch_no} + * 请求方式:GET + * 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request the request + * @return batches query result + * @throws WxPayException the wx pay exception + */ + BatchesQueryResult queryMerchantBatches(MerchantBatchesQueryRequest request) throws WxPayException; + + /** + * 商家明细单号查询明细单API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_6.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no} + * 请求方式:GET + * 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request the request + * @return details query result + * @throws WxPayException the wx pay exception + */ + DetailsQueryResult queryMerchantDetails(MerchantDetailsQueryRequest request) throws WxPayException; + + /** + * 转账电子回单申请受理API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_7.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt + * 请求方式:POST + * 接口限频: 单个商户 20QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * + * @param request the request + * @return electronic bill result + * @throws WxPayException the wx pay exception + */ + ElectronicBillResult applyElectronicBill(ElectronicBillApplyRequest request) throws WxPayException; + + /** + * 查询转账电子回单API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_8.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer/bill-receipt/{out_batch_no} + * 请求方式:GET + * + * @param outBatchNo the out batch no + * @return electronic bill result + * @throws WxPayException the wx pay exception + */ + ElectronicBillResult queryElectronicBill(String outBatchNo) throws WxPayException; + + /** + * 转账明细电子回单受理API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_9.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:POST + * 接口限频: 单个商户 20QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 + * 前置条件:只支持受理最近30天内的转账明细单 + * + * @param request the request + * @return detail electronic bill result + * @throws WxPayException the wx pay exception + */ + DetailElectronicBillResult applyDetailElectronicBill(DetailElectronicBillRequest request) throws WxPayException; + + + /** + * 查询转账明细电子回单受理结果API + *

+ * 适用对象:直连商户 + * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_10.shtml + * 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts + * 请求方式:GET + * 前置条件:只支持查询最近90天内的转账明细单 + * + * @param request the request + * @return detail electronic bill result + * @throws WxPayException the wx pay exception + */ + DetailElectronicBillResult queryDetailElectronicBill(DetailElectronicBillRequest request) throws WxPayException; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 29735a00c4..bf95d5593b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -304,6 +304,13 @@ public interface WxPayService { */ MarketingBusiFavorService getMarketingBusiFavorService(); + /** + * 获取商家转账到零钱服务类 + * + * @return the merchant transfer service + */ + MerchantTransferService getMerchantTransferService(); + /** * 设置企业付款服务类,允许开发者自定义实现类. * diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index 6753f6d1f6..f88165c721 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -27,6 +27,8 @@ import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.GsonBuilder; +import lombok.Getter; +import lombok.Setter; import me.chanjar.weixin.common.error.WxRuntimeException; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -63,100 +65,63 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { static ThreadLocal wxApiData = new ThreadLocal<>(); + + @Setter + @Getter private EntPayService entPayService = new EntPayServiceImpl(this); + + @Getter private final ProfitSharingService profitSharingService = new ProfitSharingServiceImpl(this); + + @Getter private final ProfitSharingV3Service profitSharingV3Service = new ProfitSharingV3ServiceImpl(this); - private final RedpackService redpackService = new RedpackServiceImpl(this); - private final PayScoreService payScoreService = new PayScoreServiceImpl(this); - private final EcommerceService ecommerceService = new EcommerceServiceImpl(this); - private final BusinessCircleService businessCircleService = new BusinessCircleServiceImpl(this); - private final MerchantMediaService merchantMediaService = new MerchantMediaServiceImpl(this); - private final MarketingMediaService marketingMediaService = new MarketingMediaServiceImpl(this); - private final MarketingFavorService marketingFavorService = new MarketingFavorServiceImpl(this); - private final MarketingBusiFavorService marketingBusiFavorService = new MarketingBusiFavorServiceImpl(this); - private final WxEntrustPapService wxEntrustPapService = new WxEntrustPapServiceImpl(this); - private final PartnerTransferService partnerTransferService = new PartnerTransferServiceImpl(this); - private final PayrollService payrollService = new PayrollServiceImpl(this); - private final ComplaintService complaintsService = new ComplaintServiceImpl(this); - private final BankService bankService = new BankServiceImpl(this); - private final TransferService transferService = new TransferServiceImpl(this); - protected Map configMap; + @Getter + private final RedpackService redpackService = new RedpackServiceImpl(this); - @Override - public EntPayService getEntPayService() { - return entPayService; - } + @Getter + private final PayScoreService payScoreService = new PayScoreServiceImpl(this); - @Override - public ProfitSharingService getProfitSharingService() { - return profitSharingService; - } + @Getter + private final EcommerceService ecommerceService = new EcommerceServiceImpl(this); - @Override - public ProfitSharingV3Service getProfitSharingV3Service() { - return profitSharingV3Service; - } + @Getter + private final BusinessCircleService businessCircleService = new BusinessCircleServiceImpl(this); - @Override - public PayScoreService getPayScoreService() { - return payScoreService; - } + @Getter + private final MerchantMediaService merchantMediaService = new MerchantMediaServiceImpl(this); - @Override - public RedpackService getRedpackService() { - return this.redpackService; - } + @Getter + private final MarketingMediaService marketingMediaService = new MarketingMediaServiceImpl(this); - @Override - public EcommerceService getEcommerceService() { - return ecommerceService; - } + @Getter + private final MarketingFavorService marketingFavorService = new MarketingFavorServiceImpl(this); - @Override - public BusinessCircleService getBusinessCircleService() { - return this.businessCircleService; - } + @Getter + private final MarketingBusiFavorService marketingBusiFavorService = new MarketingBusiFavorServiceImpl(this); - @Override - public MerchantMediaService getMerchantMediaService() { - return this.merchantMediaService; - } + @Getter + private final WxEntrustPapService wxEntrustPapService = new WxEntrustPapServiceImpl(this); - @Override - public MarketingMediaService getMarketingMediaService() { - return this.marketingMediaService; - } + @Getter + private final PartnerTransferService partnerTransferService = new PartnerTransferServiceImpl(this); - @Override - public MarketingFavorService getMarketingFavorService() { - return this.marketingFavorService; - } + @Getter + private final PayrollService payrollService = new PayrollServiceImpl(this); - @Override - public MarketingBusiFavorService getMarketingBusiFavorService() { - return this.marketingBusiFavorService; - } + @Getter + private final ComplaintService complaintsService = new ComplaintServiceImpl(this); - @Override - public void setEntPayService(EntPayService entPayService) { - this.entPayService = entPayService; - } + @Getter + private final BankService bankService = new BankServiceImpl(this); - @Override - public WxEntrustPapService getWxEntrustPapService() { - return wxEntrustPapService; - } + @Getter + private final TransferService transferService = new TransferServiceImpl(this); - @Override - public PartnerTransferService getPartnerTransferService() { - return partnerTransferService; - } + @Getter + private final MerchantTransferService merchantTransferService = new MerchantTransferServiceImpl(this); - @Override - public PayrollService getPayrollService() { - return payrollService; - } + protected Map configMap; @Override public WxPayConfig getConfig() { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java new file mode 100644 index 0000000000..0a6317e3a3 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java @@ -0,0 +1,118 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.merchanttransfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.MerchantTransferService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +/** + * @author glz + * @date 2022/6/11 + */ +@Slf4j +@RequiredArgsConstructor +public class MerchantTransferServiceImpl implements MerchantTransferService { + private static final Gson GSON = (new GsonBuilder()).create(); + + private final WxPayService wxPayService; + + + @Override + public TransferCreateResult createTransfer(TransferCreateRequest request) throws WxPayException { + request.setAppid(this.wxPayService.getConfig().getAppId()); + String url = String.format("%s/v3/transfer/batches", this.wxPayService.getPayBaseUrl()); + RsaCryptoUtil.encryptFields(request, this.wxPayService.getConfig().getVerifier().getValidCertificate()); + + String response = wxPayService.postV3WithWechatpaySerial(url,GSON.toJson(request)); + return GSON.fromJson(response, TransferCreateResult.class); + } + + @Override + public BatchesQueryResult queryWxBatches(WxBatchesQueryRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/batch-id/%s?need_query_detail=%b", this.wxPayService.getPayBaseUrl(), request.getBatchId(), request.getNeedQueryDetail()); + + if(request.getOffset()!=null){ + url = String.format("%s&offset=%d",url,request.getOffset()); + } + if(request.getLimit()!=null){ + url = String.format("%s&limit=%d",url,request.getLimit()); + } + if(request.getDetailStatus()!=null && request.getDetailStatus().length()!=0){ + url = String.format("%s&detail_status=%s",url,request.getDetailStatus()); + } + + String response = wxPayService.getV3(url); + return GSON.fromJson(response, BatchesQueryResult.class); + } + + @Override + public DetailsQueryResult queryWxDetails(WxDetailsQueryRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/batch-id/%s/details/detail-id/%s",this.wxPayService.getPayBaseUrl(),request.getBatchId(),request.getDetailId()); + String response = wxPayService.getV3(url); + return GSON.fromJson(response, DetailsQueryResult.class); + } + + @Override + public BatchesQueryResult queryMerchantBatches(MerchantBatchesQueryRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/out-batch-no/%s?need_query_detail=%b", this.wxPayService.getPayBaseUrl(), request.getOutBatchNo(),request.getNeedQueryDetail()); + + if(request.getOffset()!=null){ + url = String.format("%s&offset=%d",url,request.getOffset()); + } + if(request.getLimit()!=null){ + url = String.format("%s&limit=%d",url,request.getLimit()); + } + if(request.getDetailStatus()!=null && request.getDetailStatus().length()!=0){ + url = String.format("%s&detail_status=%s",url,request.getDetailStatus()); + } + + String response = wxPayService.getV3(url); + return GSON.fromJson(response, BatchesQueryResult.class); + } + + @Override + public DetailsQueryResult queryMerchantDetails(MerchantDetailsQueryRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/batches/out-batch-no/%s/details/out-detail-no/%s",this.wxPayService.getPayBaseUrl(),request.getOutBatchNo(),request.getOutDetailNo()); + String response = wxPayService.getV3(url); + return GSON.fromJson(response, DetailsQueryResult.class); + } + + @Override + public ElectronicBillResult applyElectronicBill(ElectronicBillApplyRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer/bill-receipt",this.wxPayService.getPayBaseUrl()); + String response = wxPayService.postV3(url,GSON.toJson(request)); + return GSON.fromJson(response, ElectronicBillResult.class); + } + + @Override + public ElectronicBillResult queryElectronicBill(String outBatchNo) throws WxPayException { + String url = String.format("%s/v3/transfer/bill-receipt/%s",this.wxPayService.getPayBaseUrl(),outBatchNo); + String response = wxPayService.getV3(url); + return GSON.fromJson(response, ElectronicBillResult.class); + } + + @Override + public DetailElectronicBillResult applyDetailElectronicBill(DetailElectronicBillRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer-detail/electronic-receipts",this.wxPayService.getPayBaseUrl()); + String response = wxPayService.postV3(url,GSON.toJson(request)); + return GSON.fromJson(response, DetailElectronicBillResult.class); + } + + @Override + public DetailElectronicBillResult queryDetailElectronicBill(DetailElectronicBillRequest request) throws WxPayException { + String url = String.format("%s/v3/transfer-detail/electronic-receipts?accept_type=%s&out_detail_no=%s", this.wxPayService.getPayBaseUrl(), request.getAcceptType(),request.getOutDetailNo()); + + if(request.getOutBatchNo()!=null && request.getOutBatchNo().length()!=0){ + url = String.format("%s&out_batch_no=%s",url,request.getOutBatchNo()); + } + + String response = wxPayService.getV3(url); + return GSON.fromJson(response, DetailElectronicBillResult.class); + } + +} diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java new file mode 100644 index 0000000000..fd7eb66c95 --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java @@ -0,0 +1,110 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.merchanttransfer.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +/** + * 商家转账到零钱(直连商户) + * @author glz + * @date 2022/6/11 + */ +@Slf4j +@Test +@Guice(modules = ApiTestModule.class) +public class MerchantTransferServiceImplTest { + + @Inject + private WxPayService wxPayService; + + private static final Gson GSON = new GsonBuilder().create(); + + @Test + public void createTransfer() throws WxPayException { + String requestParamStr = "{\"out_batch_no\":\"p11lfk2020042013\",\"batch_name\":\"xxx\",\"batch_remark\":\"xxx\",\"total_amount\":30,\"total_num\":1,\"transfer_detail_list\":[{\"out_detail_no\":\"x23zy545Bd5436\",\"transfer_amount\":30,\"transfer_remark\":\"5586提款\",\"openid\":\"or1b65DLMUir7F-_vLwKlutmm3qw\",\"user_name\":\"xxx\"}]}"; + + TransferCreateRequest request = GSON.fromJson(requestParamStr, TransferCreateRequest.class); + TransferCreateResult result = wxPayService.getMerchantTransferService().createTransfer(request); + log.info(result.toString()); + } + + @Test + public void queryWxBatches() throws WxPayException { + String requestParamStr = "{\"batch_id\":\"xxx\",\"need_query_detail\":true,\"offset\":0,\"limit\":20,\"detail_status\":\"ALL\"}"; + + WxBatchesQueryRequest request = GSON.fromJson(requestParamStr, WxBatchesQueryRequest.class); + log.info("request:{}",request); + BatchesQueryResult result = wxPayService.getMerchantTransferService().queryWxBatches(request); + log.info(result.toString()); + } + + @Test + public void queryWxDetails() throws WxPayException { + String requestParamStr = "{\"batch_id\":\"xxx\",\"detail_id\":\"xxx\"}"; + + WxDetailsQueryRequest request = GSON.fromJson(requestParamStr, WxDetailsQueryRequest.class); + DetailsQueryResult result = wxPayService.getMerchantTransferService().queryWxDetails(request); + log.info(result.toString()); + } + + @Test + public void queryMerchantBatches() throws WxPayException { + String requestParamStr = "{\"out_batch_no\":\"p11lfk2020042013\",\"need_query_detail\":true,\"offset\":0,\"limit\":20,\"detail_status\":\"ALL\"}"; + + MerchantBatchesQueryRequest request = GSON.fromJson(requestParamStr, MerchantBatchesQueryRequest.class); + BatchesQueryResult result = wxPayService.getMerchantTransferService().queryMerchantBatches(request); + log.info(result.toString()); + } + + @Test + public void queryMerchantDetails() throws WxPayException { + String requestParamStr = "{\"out_detail_no\":\"x23zy545Bd5436\",\"out_batch_no\":\"p11lfk2020042013\"}"; + + MerchantDetailsQueryRequest request = GSON.fromJson(requestParamStr, MerchantDetailsQueryRequest.class); + DetailsQueryResult result = wxPayService.getMerchantTransferService().queryMerchantDetails(request); + log.info(result.toString()); + } + + @Test + public void applyElectronicBill() throws WxPayException { + String requestParamStr = "{\"out_batch_no\":\"p11lfk2020042013\"}"; + + ElectronicBillApplyRequest request = GSON.fromJson(requestParamStr, ElectronicBillApplyRequest.class); + ElectronicBillResult result = wxPayService.getMerchantTransferService().applyElectronicBill(request); + log.info(result.toString()); + } + + @Test + public void queryElectronicBill() throws WxPayException { + String outBatchNo = "p11lfk2020042013"; + + ElectronicBillResult result = wxPayService.getMerchantTransferService().queryElectronicBill(outBatchNo); + log.info(result.toString()); + } + + @Test + public void applyDetailElectronicBill() throws WxPayException { + String requestParamStr = "{\"accept_type\":\"BATCH_TRANSFER\",\"out_batch_no\":\"p11lfk2020042013\",\"out_detail_no\":\"x23zy545Bd5436\"}"; + + DetailElectronicBillRequest request = GSON.fromJson(requestParamStr, DetailElectronicBillRequest.class); + DetailElectronicBillResult result = wxPayService.getMerchantTransferService().applyDetailElectronicBill(request); + log.info(result.toString()); + } + + @Test + public void queryDetailElectronicBill() throws WxPayException { + String requestParamStr = "{\"accept_type\":\"BATCH_TRANSFER\",\"out_batch_no\":\"p11lfk2020042013\",\"out_detail_no\":\"x23zy545Bd5436\"}"; + + DetailElectronicBillRequest request = GSON.fromJson(requestParamStr, DetailElectronicBillRequest.class); + DetailElectronicBillResult result = wxPayService.getMerchantTransferService().queryDetailElectronicBill(request); + log.info(result.toString()); + } + +} From 3ee7d0d3918a5c1a6b7c47bb58d5a2b816ec82bf Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 21 Jun 2022 17:20:29 +0800 Subject: [PATCH 272/622] =?UTF-8?q?:art:=20#2705=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=BC=82=E6=AD=A5=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=BA=8B=E4=BB=B6=E4=B8=AD=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=88=A4=E6=96=AD=E4=BB=A3=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/common/api/WxConsts.java | 4 ++++ .../cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java index 35a201edb0..27b12a9258 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java @@ -287,6 +287,10 @@ public static class EventType { */ public static final String CARD_USER_GIFTING_CARD = "user_gifting_card"; + /** + * 异步安全校验事件 + */ + public static final String WXA_MEDIA_CHECK = "wxa_media_check"; /** * 卡券事件:用户核销卡券 diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java index a5f714edd0..a73f26af7c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java @@ -183,6 +183,10 @@ private boolean isMsgDuplicated(WxMaMessage wxMessage) { messageId.append("-").append(wxMessage.getToUser()); } + if (StringUtils.isNotEmpty(wxMessage.getTraceId())) { + messageId.append("-").append(wxMessage.getTraceId()); + } + return this.messageDuplicateChecker.isDuplicate(messageId.toString()); } From f00d21d188b17c59881c6c75b5abab29220c258b Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 21 Jun 2022 21:11:33 +0800 Subject: [PATCH 273/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.6?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 3c29f696eb..42b3f63813 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 5cc05c5476..45bd7c3f57 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 846e4b5dd0..1aa2a7db6e 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 8d8a926e66..9b8abc4936 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 13cdad4f77..0ceac547f1 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 2207529187..6cebd0df6d 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 6064983a88..7222a46da3 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index ba6b40c8c7..35a6548e77 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 9fbad1bc31..486b842086 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 8325117b50..ce059d1d71 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 831cf912a3..28bb8aed2d 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index a464571f04..ec6c55e3ec 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 0178cecdcf..5965f75d98 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 81ac622d80..07f3e2728a 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 8f620ed34b..90236b1770 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 92f289f7f8..9f8962adf6 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.5.B + 4.3.6.B weixin-java-qidian From 1fbd22efaccb4ff61ecd304fbdc63f3a49e635cc Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 21 Jun 2022 22:13:35 +0800 Subject: [PATCH 274/622] =?UTF-8?q?:wrench:=20=E6=9B=B4=E6=96=B0=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=96=87=E6=A1=A3=E5=92=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .travis.yml | 3 +-- CONTRIBUTING.md | 4 ++-- LICENSE | 2 +- README.md | 4 ++-- demo.md | 16 ++++++++-------- images/banners/vultr.jpg | Bin 24485 -> 0 bytes 7 files changed, 15 insertions(+), 16 deletions(-) delete mode 100644 images/banners/vultr.jpg diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c15adca964..ced7d6de0c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -12,7 +12,7 @@ assignees: '' ## 另外如果确认属于bug,而且已明确如何修复,请参考贡献指南直接提交PR,省的浪费时间在这里描述问题,非常感谢配合 ### 简要描述 -__简单概括描述下你所遇到的问题。__ +__请简单概括描述下你所遇到的问题。__ ### 模块版本情况 * WxJava 模块名: diff --git a/.travis.yml b/.travis.yml index 2b128c8a08..99850df729 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: java - jdk: - openjdk8 script: "mvn clean package -DskipTests=true -Dcheckstyle.skip=true" @@ -15,4 +14,4 @@ cache: notifications: email: - - binarywang@vip.qq.com + - a@binarywang.com diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ba8e495afb..c703964824 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ # 代码贡献指南 -1. 首先非常欢迎和感谢对本项目发起`Pull Request`的同学。 +1. 首先非常欢迎和感谢对本项目发起 `Pull Request` 的热心小伙伴们。 1. **特别提示:请务必在 `develop` 分支提交 `PR`,`release` 分支目前仅是正式版的代码,即发布正式版本后才会从 `develop` 分支进行合并。** 1. 本项目代码风格为使用2个空格代表一个Tab,因此在提交代码时请注意一下,否则很容易在IDE格式化代码后与原代码产生大量diff,这样会给其他人阅读代码带来极大的困扰。 1. 为了便于设置,本项目引入`editorconfig`支持,请使用Eclipse的同学在贡献代码前安装相关插件,而`IntelliJ IDEA`新版本自带支持,如果没有可自行安装插件。 @@ -24,7 +24,7 @@ $ #do some change on the content $ git commit -am "Fix issue #1: change something" $ git push ``` -* 在 GitHub 网站上提交 Pull Request。 +* 在 `GitHub` 或 `Gitee` 网站上提交 `Pull Request`。 * 定期使用项目仓库内容更新自己仓库内容。 ```bash diff --git a/LICENSE b/LICENSE index 0c8a80022e..7783de532a 100644 --- a/LICENSE +++ b/LICENSE @@ -37,7 +37,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. diff --git a/README.md b/README.md index 27801731e3..bf3ec86e2d 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![Github](https://img.shields.io/github/stars/Wechat-Group/WxJava?logo=github&style=flat)](https://github.com/Wechat-Group/WxJava) [![GitHub release](https://img.shields.io/github/release/Wechat-Group/WxJava.svg)](https://github.com/Wechat-Group/WxJava/releases) [![Maven Central](https://img.shields.io/maven-central/v/com.github.binarywang/wx-java.svg)](http://mvnrepository.com/artifact/com.github.binarywang/wx-java) -[![Build Status](https://travis-ci.com/Wechat-Group/WxJava.svg?branch=develop)](https://travis-ci.com/Wechat-Group/WxJava) -[![使用IntelliJ IDEA开发维护](https://img.shields.io/badge/IntelliJ%20IDEA-提供支持-blue.svg)](https://www.jetbrains.com/?from=WxJava-weixin-java-tools) +[![Build Status](https://app.travis-ci.com/Wechat-Group/WxJava.svg?branch=develop)](https://app.travis-ci.com/github/Wechat-Group/WxJava) +[![使用IntelliJ IDEA开发维护](https://img.shields.io/badge/IntelliJ%20IDEA-支持-blue.svg)](https://www.jetbrains.com/?from=WxJava-weixin-java-tools) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) #### 微信`Java`开发工具包,支持包括微信支付、开放平台、公众号、企业微信/企业号、小程序等微信功能模块的后端开发。 diff --git a/demo.md b/demo.md index de5e462099..d6b55b89e2 100644 --- a/demo.md +++ b/demo.md @@ -14,12 +14,12 @@ - [使用该 `starter` 实现的小程序 `Demo`](https://github.com/binarywang/wx-java-miniapp-demo) ### Demo 列表 -1. 微信支付 Demo:[GitHub](http://github.com/binarywang/weixin-java-pay-demo)、[码云](http://gitee.com/binary/weixin-java-pay-demo) [![Build Status](https://travis-ci.org/binarywang/weixin-java-pay-demo.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-pay-demo) -1. 企业号/企业微信 Demo:[GitHub](http://github.com/binarywang/weixin-java-cp-demo)、[码云](http://gitee.com/binary/weixin-java-cp-demo) [![Build Status](https://travis-ci.org/binarywang/weixin-java-cp-demo.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-cp-demo) -1. 微信小程序 Demo:[GitHub](http://github.com/binarywang/weixin-java-miniapp-demo)、[码云](http://gitee.com/binary/weixin-java-miniapp-demo) [![Build Status](https://travis-ci.org/binarywang/weixin-java-miniapp-demo.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-miniapp-demo) -1. 开放平台 Demo:[GitHub](http://github.com/Wechat-Group/weixin-java-open-demo)、[码云](http://gitee.com/binary/weixin-java-open-demo) [![Build Status](https://travis-ci.org/Wechat-Group/weixin-java-open-demo.svg?branch=master)](https://travis-ci.org/Wechat-Group/weixin-java-open-demo) -1. 公众号 Demo: - - 使用 `Spring MVC` 实现的公众号 Demo:[GitHub](http://github.com/binarywang/weixin-java-mp-demo-springmvc)、[码云](https://gitee.com/binary/weixin-java-mp-demo) [![Build Status](https://travis-ci.org/binarywang/weixin-java-mp-demo-springmvc.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-mp-demo-springmvc) - - 使用 `Spring Boot` 实现的公众号 Demo(支持多公众号):[GitHub](http://github.com/binarywang/weixin-java-mp-demo)、[码云](http://gitee.com/binary/weixin-java-mp-demo-springboot) [![Build Status](https://travis-ci.org/binarywang/weixin-java-mp-demo.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-mp-demo) - - 含公众号和部分微信支付代码的 Demo:[GitHub](http://github.com/Wechat-Group/weixin-java-demo-springmvc)、[码云](http://gitee.com/binary/weixin-java-tools-springmvc) [![Build Status](https://travis-ci.org/Wechat-Group/weixin-java-demo-springmvc.svg?branch=master)](https://travis-ci.org/Wechat-Group/weixin-java-demo-springmvc) +1. 微信支付 Demo:[GitHub](http://github.com/binarywang/weixin-java-pay-demo)、[码云](http://gitee.com/binary/weixin-java-pay-demo) [![Build Status](https://app.travis-ci.com/binarywang/weixin-java-pay-demo.svg?branch=master)](https://app.travis-ci.com/binarywang/weixin-java-pay-demo) +1. 企业号/企业微信 Demo:[GitHub](http://github.com/binarywang/weixin-java-cp-demo)、[码云](http://gitee.com/binary/weixin-java-cp-demo) [![Build Status](https://app.travis-ci.com/binarywang/weixin-java-cp-demo.svg?branch=master)](https://app.travis-ci.com/binarywang/weixin-java-cp-demo) +1. 微信小程序 Demo:[GitHub](http://github.com/binarywang/weixin-java-miniapp-demo)、[码云](http://gitee.com/binary/weixin-java-miniapp-demo) [![Build Status](https://app.travis-ci.com/binarywang/weixin-java-miniapp-demo.svg?branch=master)](https://app.travis-ci.com/binarywang/weixin-java-miniapp-demo) +1. 开放平台 Demo:[GitHub](http://github.com/Wechat-Group/weixin-java-open-demo)、[码云](http://gitee.com/binary/weixin-java-open-demo) [![Build Status](https://app.travis-ci.com/Wechat-Group/weixin-java-open-demo.svg?branch=master)](https://app.travis-ci.com/Wechat-Group/weixin-java-open-demo) +1. 微信公众号 Demo: + - 使用 `Spring MVC` 实现的公众号 Demo:[GitHub](http://github.com/binarywang/weixin-java-mp-demo-springmvc)、[码云](https://gitee.com/binary/weixin-java-mp-demo) [![Build Status](https://app.travis-ci.com/binarywang/weixin-java-mp-demo-springmvc.svg?branch=master)](https://app.travis-ci.com/binarywang/weixin-java-mp-demo-springmvc) + - 使用 `Spring Boot` 实现的公众号 Demo(支持多公众号):[GitHub](http://github.com/binarywang/weixin-java-mp-demo)、[码云](http://gitee.com/binary/weixin-java-mp-demo-springboot) [![Build Status](https://app.travis-ci.com/binarywang/weixin-java-mp-demo.svg?branch=master)](https://app.travis-ci.com/binarywang/weixin-java-mp-demo) + - 含公众号和部分微信支付代码的 Demo:[GitHub](http://github.com/Wechat-Group/weixin-java-demo-springmvc)、[码云](http://gitee.com/binary/weixin-java-tools-springmvc) [![Build Status](https://app.travis-ci.com/Wechat-Group/weixin-java-demo-springmvc.svg?branch=master)](https://app.travis-ci.com/Wechat-Group/weixin-java-demo-springmvc) diff --git a/images/banners/vultr.jpg b/images/banners/vultr.jpg deleted file mode 100644 index 80cf3c2b5e0ce7f70e51de6f5d230f6798b2c4bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24485 zcmcG#1ytR?(kQwq?(XieVdL)Z?oM%chtdMYt+>0pyE{dTyA&^OMO)zR_MHE@-+k+Q zcfIx2y&?Q|GLuX)NhXttysf-_2cXGG$w~nrAOHXe@E_o92QpRC+r|>b_syag%# z66XVl|A3h($o?jAw-clg{ZlHLj-m>gxRa{|87C7L$c&Yphm4z-iItO=hmC`gjE#kr zi?!pg_O%g4e>_HRc4F3r{4l21)S>fdF7V}ca_X3ERUi^+?f$;s7{zE~+!p+Rp#@XG*$&u_2MH5pe4|hQda83W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: Mon, 27 Jun 2022 14:48:19 +0800 Subject: [PATCH 275/622] =?UTF-8?q?:new:=20#2708=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E6=B2=9F=E9=80=9A-=E9=83=A8=E9=97=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + pom.xml | 5 + .../weixin/cp/api/WxCpSchoolUserService.java | 61 ++++++++++- .../api/impl/WxCpSchoolUserServiceImpl.java | 45 +++++++- .../school/user/WxCpCreateDepartment.java | 30 ++++++ .../user/WxCpCreateDepartmentRequest.java | 80 ++++++++++++++ .../bean/school/user/WxCpDepartmentList.java | 102 ++++++++++++++++++ .../bean/school/user/WxCpSetUpgradeInfo.java | 30 ++++++ .../user/WxCpUpdateDepartmentRequest.java | 86 +++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 6 ++ .../weixin/cp/api/WxCpSchoolUserTest.java | 69 +++++++++++- 11 files changed, 509 insertions(+), 6 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartment.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpDepartmentList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSetUpgradeInfo.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java diff --git a/README.md b/README.md index bf3ec86e2d..b55ee50ef5 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ 1. [007gzs](https://github.com/007gzs) 1. [Silloy](https://github.com/silloy) 1. [mgcnrx11](https://github.com/mgcnrx11) +1. [0katekate0 (Wang_Wong)](https://github.com/0katekate0) 1. [yuanqixun](https://github.com/yuanqixun) 1. [kakotor](https://github.com/kakotor) 1. [aimilin6688 (Jonk)](https://github.com/aimilin6688) diff --git a/pom.xml b/pom.xml index 42b3f63813..3f8f739780 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,11 @@ xiaohe@53jy.net https://github.com/xiaohe-53 + + Wang_Wong + wangkaikate@163.com + https://github.com/0katekate0 + diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java index 7a97914a1f..4256352282 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java @@ -3,8 +3,7 @@ import lombok.NonNull; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.school.user.WxCpCreateParentRequest; -import me.chanjar.weixin.cp.bean.school.user.WxCpUpdateParentRequest; +import me.chanjar.weixin.cp.bean.school.user.*; import java.util.List; @@ -101,4 +100,62 @@ public interface WxCpSchoolUserService { */ WxCpBaseResp setArchSyncMode(@NonNull Integer archSyncMode) throws WxErrorException; + /** + * 创建部门 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/create?access_token=ACCESS_TOKEN + * + * @param request 请求参数对象 + * @return + * @throws WxErrorException + */ + WxCpCreateDepartment createDepartment(@NonNull WxCpCreateDepartmentRequest request) throws WxErrorException; + + /** + * 更新部门 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/update?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBaseResp updateDepartment(@NonNull WxCpUpdateDepartmentRequest request) throws WxErrorException; + + /** + * 删除部门 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/delete?access_token=ACCESS_TOKEN&id=ID + * + * @param id + * @return + * @throws WxErrorException + */ + WxCpBaseResp deleteDepartment(Integer id) throws WxErrorException; + + /** + * 获取部门列表 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/list?access_token=ACCESS_TOKEN&id=ID + * + * @param id + * @return + * @throws WxErrorException + */ + WxCpDepartmentList listDepartment(Integer id) throws WxErrorException; + + /** + * 修改自动升年级的配置 + * 请求方式: POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/set_upgrade_info?access_token=ACCESS_TOKEN + * + * @param upgradeTime + * @param upgradeSwitch + * @return + * @throws WxErrorException + */ + WxCpSetUpgradeInfo setUpgradeInfo(Long upgradeTime, Integer upgradeSwitch) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index 404797f2ce..c8204c5f5d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -10,8 +10,7 @@ import me.chanjar.weixin.cp.api.WxCpSchoolUserService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.school.user.WxCpCreateParentRequest; -import me.chanjar.weixin.cp.bean.school.user.WxCpUpdateParentRequest; +import me.chanjar.weixin.cp.bean.school.user.*; import org.apache.commons.lang3.StringUtils; import java.util.List; @@ -105,4 +104,46 @@ public WxCpBaseResp setArchSyncMode(@NonNull Integer archSyncMode) throws WxErro return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpCreateDepartment createDepartment(@NonNull WxCpCreateDepartmentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_CREATE); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpCreateDepartment.fromJson(responseContent); + } + + @Override + public WxCpBaseResp updateDepartment(@NonNull WxCpUpdateDepartmentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_UPDATE); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpBaseResp deleteDepartment(Integer id) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_DELETE) + id; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public WxCpDepartmentList listDepartment(Integer id) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_LIST) + id; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpDepartmentList.fromJson(responseContent); + } + + @Override + public WxCpSetUpgradeInfo setUpgradeInfo(Long upgradeTime, Integer upgradeSwitch) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SET_UPGRADE_INFO); + JsonObject jsonObject = new JsonObject(); + if (upgradeTime != null) { + jsonObject.addProperty("upgrade_time", upgradeTime); + } + if (upgradeSwitch != null) { + jsonObject.addProperty("upgrade_switch", upgradeSwitch); + } + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpSetUpgradeInfo.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartment.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartment.java new file mode 100644 index 0000000000..75d34b2e8c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartment.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 创建部门返回结果. + * + * @author Wang_Wong + */ +@Data +public class WxCpCreateDepartment extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("id") + private Integer id; + + public static WxCpCreateDepartment fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpCreateDepartment.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java new file mode 100644 index 0000000000..a851aacc94 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java @@ -0,0 +1,80 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 创建部门请求. + * + * @author Wang_Wong + * @date 2022-06-22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpCreateDepartmentRequest implements Serializable { + private static final long serialVersionUID = -4960239394895754138L; + + @SerializedName("parentid") + private Integer parentId; + + @SerializedName("name") + private String name; + + @SerializedName("id") + private Integer id; + + @SerializedName("type") + private Integer type; + + @SerializedName("register_year") + private Integer registerYear; + + @SerializedName("standard_grade") + private Integer standardGrade; + + @SerializedName("order") + private Integer order; + + @SerializedName("department_admins") + private List departmentAdmins; + + @Setter + @Getter + public static class DepartmentAdmin implements Serializable { + + @SerializedName("userid") + private String userId; + + @SerializedName("type") + private Integer type; + + @SerializedName("subject") + private String subject; + + public static DepartmentAdmin fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, DepartmentAdmin.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpCreateDepartmentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpCreateDepartmentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpDepartmentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpDepartmentList.java new file mode 100644 index 0000000000..5e1c031847 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpDepartmentList.java @@ -0,0 +1,102 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取部门列表返回结果. + * + * @author Wang_Wong + */ +@Data +public class WxCpDepartmentList extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("departments") + private List departments; + + @Setter + @Getter + public static class Department implements Serializable{ + @SerializedName("parentid") + private Integer parentId; + + @SerializedName("name") + private String name; + + @SerializedName("id") + private Integer id; + + @SerializedName("type") + private Integer type; + + @SerializedName("register_year") + private Integer registerYear; + + @SerializedName("standard_grade") + private Integer standardGrade; + + @SerializedName("order") + private Integer order; + + @SerializedName("is_graduated") + private Integer isGraduated; + + @SerializedName("open_group_chat") + private Integer openGroupChat; + + @SerializedName("group_chat_id") + private String groupChatId; + + @SerializedName("department_admins") + private List departmentAdmins; + + public static Department fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Department.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + public static class DepartmentAdmin implements Serializable { + + @SerializedName("userid") + private String userId; + + @SerializedName("type") + private Integer type; + + @SerializedName("subject") + private String subject; + + public static DepartmentAdmin fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, DepartmentAdmin.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpDepartmentList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpDepartmentList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSetUpgradeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSetUpgradeInfo.java new file mode 100644 index 0000000000..7a1b3ee276 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSetUpgradeInfo.java @@ -0,0 +1,30 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 修改自动升年级的配置 返回结果. + * + * @author Wang_Wong + */ +@Data +public class WxCpSetUpgradeInfo extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("next_upgrade_time") + private Long nextUpgradeTime; + + public static WxCpSetUpgradeInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSetUpgradeInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java new file mode 100644 index 0000000000..e1dff520e7 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java @@ -0,0 +1,86 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 更新部门请求. + * + * @author Wang_Wong + * @date 2022-06-22 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpUpdateDepartmentRequest implements Serializable { + private static final long serialVersionUID = -4960239394895754138L; + + @SerializedName("parentid") + private Integer parentId; + + @SerializedName("name") + private String name; + + @SerializedName("id") + private Integer id; + + @SerializedName("new_id") + private Integer newId; + + @SerializedName("type") + private Integer type; + + @SerializedName("register_year") + private Integer registerYear; + + @SerializedName("standard_grade") + private Integer standardGrade; + + @SerializedName("order") + private Integer order; + + @SerializedName("department_admins") + private List departmentAdmins; + + @Setter + @Getter + public static class DepartmentAdmin implements Serializable { + + @SerializedName("userid") + private String userId; + + @SerializedName("op") + private Integer op; + + @SerializedName("type") + private Integer type; + + @SerializedName("subject") + private String subject; + + public static DepartmentAdmin fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, DepartmentAdmin.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpUpdateDepartmentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpUpdateDepartmentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 476f827adf..8165f6a307 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -190,6 +190,12 @@ interface School { String UPDATE_PARENT = "/cgi-bin/school/user/update_parent"; String DELETE_PARENT = "/cgi-bin/school/user/delete_parent?userid="; String SET_ARCH_SYNC_MODE = "/cgi-bin/school/set_arch_sync_mode"; + String SET_UPGRADE_INFO = "/cgi-bin/school/set_upgrade_info"; + + String DEPARTMENT_CREATE = "/cgi-bin/school/department/create"; + String DEPARTMENT_UPDATE = "/cgi-bin/school/department/update"; + String DEPARTMENT_DELETE = "/cgi-bin/school/department/delete?id="; + String DEPARTMENT_LIST = "/cgi-bin/school/department/list?id="; String GET_PAYMENT_RESULT = "/cgi-bin/school/get_payment_result"; String GET_TRADE = "/cgi-bin/school/get_trade"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index a201da2836..fbf2e97b40 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -6,8 +6,7 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.school.user.WxCpCreateParentRequest; -import me.chanjar.weixin.cp.bean.school.user.WxCpUpdateParentRequest; +import me.chanjar.weixin.cp.bean.school.user.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; @@ -44,6 +43,72 @@ public void test() throws WxErrorException { list.add(3); log.info("list:{}", list.toString()); + final String userId = "WangKai"; + + + /** + * 修改自动升年级的配置 + * https://developer.work.weixin.qq.com/document/path/92949 + */ + WxCpSetUpgradeInfo wxCpSetUpgradeInfo = cpService.getSchoolUserService().setUpgradeInfo(1594090969L, 2); + log.info("wxCpSetUpgradeInfo:{}", wxCpSetUpgradeInfo.toJson()); + + /** + * 获取部门列表 + * https://developer.work.weixin.qq.com/document/path/92343 + */ + String str5 = "{\"errcode\":0,\"errmsg\":\"ok\",\"departments\":[{\"name\":\"一年级\",\"parentid\":1,\"id\":2,\"type\":2,\"register_year\":2018,\"standard_grade\":1,\"order\":1,\"department_admins\":[{\"userid\":\"zhangsan\",\"type\":1},{\"userid\":\"lisi\",\"type\":2}],\"is_graduated\":0},{\"name\":\"一年级一班\",\"parentid\":1,\"id\":3,\"type\":1,\"department_admins\":[{\"userid\":\"zhangsan\",\"type\":3,\"subject\":\"语文\"},{\"userid\":\"lisi\",\"type\":4,\"subject\":\"数学\"}],\"open_group_chat\":1,\"group_chat_id\":\"group_chat_id\"}]}"; + WxCpDepartmentList wxCpDepartmentList = WxCpDepartmentList.fromJson(str5); + log.info("wxCpDepartmentList:{}", wxCpDepartmentList.toJson()); + + WxCpDepartmentList departmentList = cpService.getSchoolUserService().listDepartment(7); + log.info("departmentList:{}", departmentList.toJson()); + + /** + * 删除部门 + * https://developer.work.weixin.qq.com/document/path/92342 + */ + WxCpBaseResp deleteDepartment = cpService.getSchoolUserService().deleteDepartment(7); + log.info("deleteDepartment:{}", deleteDepartment.toJson()); + + /** + * 更新部门 + * https://developer.work.weixin.qq.com/document/path/92341 + */ + String str4 = "{\"name\":\"一年级\",\"parentid\":5,\"id\":2,\"register_year\":2018,\"standard_grade\":1,\"order\":1,\"new_id\":100,\"department_admins\":[{\"op\":0,\"userid\":\"zhangsan\",\"type\":3,\"subject\":\"语文\"},{\"op\":1,\"userid\":\"lisi\",\"type\":4,\"subject\":\"数学\"}]}"; + WxCpUpdateDepartmentRequest wxCpUpdateDepartmentRequest = WxCpUpdateDepartmentRequest.fromJson(str4); + log.info("wxCpUpdateParentRequest:{}", wxCpUpdateDepartmentRequest.toJson()); + + WxCpBaseResp updateDepartment = cpService.getSchoolUserService().updateDepartment(wxCpUpdateDepartmentRequest); + log.info("updateDepartment:{}", updateDepartment.toJson()); + + /** + * 创建部门 + * https://developer.work.weixin.qq.com/document/path/92340 + */ + String str3 = "{\"name\":\"一年级\",\"parentid\":5,\"id\":2,\"type\":1,\"register_year\":2018,\"standard_grade\":1,\"order\":1,\"department_admins\":[{\"userid\":\"zhangsan\",\"type\":4,\"subject\":\"语文\"},{\"userid\":\"lisi\",\"type\":3,\"subject\":\"数学\"}]}"; + WxCpCreateDepartmentRequest wxCpCreateDepartmentRequest = WxCpCreateDepartmentRequest.fromJson(str3); + log.info("wxCpCreateDepartmentRequest:{}", wxCpCreateDepartmentRequest.toJson()); + + WxCpCreateDepartmentRequest createDepartmentRequest = new WxCpCreateDepartmentRequest(); + createDepartmentRequest.setParentId(5); + createDepartmentRequest.setName("一年级"); + createDepartmentRequest.setId(2); + createDepartmentRequest.setType(1); + createDepartmentRequest.setRegisterYear(2018); + createDepartmentRequest.setStandardGrade(1); + createDepartmentRequest.setOrder(1); + + var departmentAdmin = new WxCpCreateDepartmentRequest.DepartmentAdmin(); + departmentAdmin.setUserId(userId); + departmentAdmin.setType(4); + departmentAdmin.setSubject("英语"); + List createDepartList = Lists.newArrayList(); + createDepartList.add(departmentAdmin); + + createDepartmentRequest.setDepartmentAdmins(createDepartList); + WxCpCreateDepartment createDepartment = cpService.getSchoolUserService().createDepartment(createDepartmentRequest); + log.info("createDepartment:{}", createDepartment.toJson()); /** * 更新家长 From 4fd6693c5645f5e1f6178d7ef9c210a2319e77de Mon Sep 17 00:00:00 2001 From: Boris Date: Mon, 27 Jun 2022 14:50:39 +0800 Subject: [PATCH 276/622] =?UTF-8?q?:art:=20#2715=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1&=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E3=80=91=E5=BE=AE=E4=BF=A1=E5=AE=A2=E6=9C=8D=E3=80=81=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=89=A9=E6=B5=81=E6=9C=8D=E5=8A=A1=E5=92=8C?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E7=BB=84=E4=BB=B6=20=E7=AD=89=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/WxCpKfService.java | 58 ++++ .../weixin/cp/api/impl/WxCpKfServiceImpl.java | 73 +++++ ...WxCpUserExternalGroupChatTransferResp.java | 1 + .../kf/WxCpKfServiceUpgradeConfigResp.java | 48 +++ .../weixin/cp/constant/WxCpApiPathConsts.java | 3 + .../api/WxMaImmediateDeliveryService.java | 34 ++ .../wx/miniapp/api/WxMaProductService.java | 119 +++++++ .../wx/miniapp/api/WxMaService.java | 11 + .../wx/miniapp/api/WxMaShopSharerService.java | 83 +++++ .../miniapp/api/impl/BaseWxMaServiceImpl.java | 8 + .../WxMaImmediateDeliveryServiceImpl.java | 26 ++ .../api/impl/WxMaProductServiceImpl.java | 298 ++++++++++++++++++ .../api/impl/WxMaShopSharerServiceImpl.java | 113 +++++++ .../bean/delivery/FollowWaybillRequest.java | 103 ++++++ .../bean/delivery/FollowWaybillResponse.java | 34 ++ .../delivery/QueryFollowTraceRequest.java | 46 +++ .../delivery/QueryFollowTraceResponse.java | 123 ++++++++ .../miniapp/bean/product/MinishopShopCat.java | 23 ++ .../bean/product/WxMiniAfterSaleDetail.java | 24 ++ .../product/WxMinishopAddGoodsSkuData.java | 16 + .../product/WxMinishopAddGoodsSpuData.java | 16 + .../bean/product/WxMinishopAddressInfo.java | 28 ++ .../product/WxMinishopDeliveryCompany.java | 12 + .../bean/product/WxMinishopDeliveryInfo.java | 62 ++++ .../bean/product/WxMinishopGoodsSkuAttr.java | 25 ++ .../bean/product/WxMinishopOrderDetail.java | 48 +++ .../product/WxMinishopOrderListResponse.java | 17 + .../bean/product/WxMinishopOrderResult.java | 61 ++++ .../bean/product/WxMinishopPayInfo.java | 54 ++++ .../bean/product/WxMinishopPriceInfo.java | 44 +++ .../bean/product/WxMinishopProductInfo.java | 65 ++++ .../bean/product/WxMinishopResult.java | 14 + .../miniapp/bean/product/WxMinishopSku.java | 41 +++ .../miniapp/bean/product/WxMinishopSpu.java | 51 +++ .../bean/product/WxMinishopSpuGet.java | 16 + .../product/WxMinishopSpuGetResponse.java | 12 + .../product/WxMinishopSpuListResponse.java | 17 + .../product/WxMinishopUpdateGoodsSkuData.java | 16 + .../miniapp/bean/shop/WxMaPromotionInfo.java | 24 ++ .../bean/shop/WxMaShopOrderDetail.java | 1 + .../wx/miniapp/bean/shop/WxMaShopPayInfo.java | 3 + .../bean/shop/WxMaShopProductInfo.java | 3 + .../request/WxMaShopDeliverySendRequest.java | 5 + .../WxMaShopSearchSharerResponse.java | 24 ++ .../response/WxMaShopSharerBindResponse.java | 40 +++ .../WxMaShopSharerDataSummaryResponse.java | 21 ++ .../response/WxMaShopSharerListResponse.java | 30 ++ .../WxMaShopSharerLiveOrderListResponse.java | 34 ++ ...WxMaShopSharerLiveSummaryListResponse.java | 41 +++ .../WxMaShopSharerUnbindResponse.java | 25 ++ .../miniapp/constant/WxMaApiUrlConstants.java | 47 +++ 51 files changed, 2141 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/MinishopShopCat.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSkuData.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSpuData.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryCompany.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGoodsSkuAttr.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopResult.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpu.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopUpdateGoodsSkuData.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java index ed8e00dc54..b829592e64 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java @@ -2,6 +2,22 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd; +import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceUpgradeConfigResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp; import me.chanjar.weixin.cp.bean.kf.*; import java.util.List; @@ -189,4 +205,46 @@ WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdList) * @return 客户数据统计-企业汇总数据 */ WxCpKfGetCorpStatisticResp getCorpStatistic(WxCpKfGetCorpStatisticRequest request) throws WxErrorException; + + // 「升级服务」配置 + /** + * 获取配置的专员与客户群 + * @return + * @throws WxErrorException + */ + WxCpKfServiceUpgradeConfigResp getUpgradeServiceConfig() throws WxErrorException; + + /** + * 升级专员服务 + * @param openKfid 客服帐号ID + * @param externalUserId 微信客户的external_userid + * @param userid 服务专员的userid + * @param wording 推荐语 + * @return + * @throws WxErrorException + */ + WxCpBaseResp upgradeMemberService(String openKfid, String externalUserId, + String userid, String wording) throws WxErrorException; + + /** + * 升级客户群服务 + * @param openKfid 客服帐号ID + * @param externalUserId 微信客户的external_userid + * @param chatId 客户群id + * @param wording 推荐语 + * @return + * @throws WxErrorException + */ + WxCpBaseResp upgradeGroupchatService(String openKfid, String externalUserId, + String chatId, String wording) throws WxErrorException; + + /** + * 为客户取消推荐 + * @param openKfid 客服帐号ID + * @param externalUserId 微信客户的external_userid + * @return + * @throws WxErrorException + */ + WxCpBaseResp cancelUpgradeService(String openKfid, String externalUserId) + throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java index 8598afc524..238b9c3278 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java @@ -10,6 +10,22 @@ import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.kf.*; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd; +import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest; +import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceUpgradeConfigResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp; +import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.util.List; @@ -182,6 +198,63 @@ public WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdLi return WxCpKfCustomerBatchGetResp.fromJson(responseContent); } + @Override + public WxCpKfServiceUpgradeConfigResp getUpgradeServiceConfig() throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_GET_UPGRADE_SERVICE_CONFIG); + + String response = cpService.get(url, null); + return WxCpKfServiceUpgradeConfigResp.fromJson(response); + } + + @Override + public WxCpBaseResp upgradeMemberService(String openKfid, String externalUserId, + String userid, String wording) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_UPGRADE_SERVICE); + + JsonObject json = new JsonObject(); + json.addProperty("open_kfid", openKfid); + json.addProperty("external_userid", externalUserId); + json.addProperty("type", 1); + + JsonObject memberJson = new JsonObject(); + memberJson.addProperty("userid", userid); + memberJson.addProperty("wording", wording); + json.add("member", memberJson); + + String response = cpService.post(url, json); + return WxCpBaseResp.fromJson(response); + } + + @Override + public WxCpBaseResp upgradeGroupchatService(String openKfid, String externalUserId, + String chatId, String wording) throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_UPGRADE_SERVICE); + + JsonObject json = new JsonObject(); + json.addProperty("open_kfid", openKfid); + json.addProperty("external_userid", externalUserId); + json.addProperty("type", 2); + + JsonObject groupchatJson = new JsonObject(); + groupchatJson.addProperty("chat_id", chatId); + groupchatJson.addProperty("wording", wording); + json.add("groupchat", groupchatJson); + + String response = cpService.post(url, json); + return WxCpBaseResp.fromJson(response); + } + + @Override + public WxCpBaseResp cancelUpgradeService(String openKfid, String externalUserId) + throws WxErrorException { + String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_CANCEL_UPGRADE_SERVICE); + + JsonObject json = new JsonObject(); + json.addProperty("open_kfid", openKfid); + json.addProperty("external_userid", externalUserId); + String response = cpService.post(url, json); + return WxCpBaseResp.fromJson(response); + } @Override public WxCpKfGetCorpStatisticResp getCorpStatistic(WxCpKfGetCorpStatisticRequest request) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(GET_CORP_STATISTIC); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java index 4f4ee7ef1c..ed40f8acfa 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java @@ -39,6 +39,7 @@ public static class GroupChatFailedTransfer extends WxCpBaseResp { /** * 没能成功继承的群ID */ + @SerializedName("chat_id") private String chatId; public static WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer fromJson(String json) { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java new file mode 100644 index 0000000000..2e9d36d715 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java @@ -0,0 +1,48 @@ +package me.chanjar.weixin.cp.bean.kf; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * @author leiin + * @date 2022/4/26 5:21 下午 + */ +@EqualsAndHashCode(callSuper = true) +@NoArgsConstructor +@Data +public class WxCpKfServiceUpgradeConfigResp extends WxCpBaseResp { + + private static final long serialVersionUID = -3212550906238196617L; + + @SerializedName("member_range") + private MemberRange memberRange; + + @SerializedName("groupchat_range") + private GroupchatRange groupchatRange; + + public static WxCpKfServiceUpgradeConfigResp fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceUpgradeConfigResp.class); + } + + @Data + @NoArgsConstructor + public static class MemberRange { + @SerializedName("userid_list") + private List useridList; + + @SerializedName("department_id_list") + private List departmentIdList; + } + + @Data + @NoArgsConstructor + public static class GroupchatRange { + @SerializedName("chat_id_list") + private List chatIdList; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 8165f6a307..2215e1096a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -390,6 +390,9 @@ interface Kf { String SEND_MSG_ON_EVENT = "/cgi-bin/kf/send_msg_on_event"; String CUSTOMER_BATCH_GET = "/cgi-bin/kf/customer/batchget"; String GET_CORP_STATISTIC = "/cgi-bin/kf/get_corp_statistic"; + String CUSTOMER_GET_UPGRADE_SERVICE_CONFIG = "/cgi-bin/kf/customer/get_upgrade_service_config"; + String CUSTOMER_UPGRADE_SERVICE = "/cgi-bin/kf/customer/upgrade_service"; + String CUSTOMER_CANCEL_UPGRADE_SERVICE = "/cgi-bin/kf/customer/cancel_upgrade_service"; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java index f08f510e39..aeef617235 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java @@ -7,10 +7,14 @@ import cn.binarywang.wx.miniapp.bean.delivery.BindAccountResponse; import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.FollowWaybillRequest; +import cn.binarywang.wx.miniapp.bean.delivery.FollowWaybillResponse; import cn.binarywang.wx.miniapp.bean.delivery.GetOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.QueryFollowTraceRequest; +import cn.binarywang.wx.miniapp.bean.delivery.QueryFollowTraceResponse; import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceRequest; import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceResponse; import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillRequest; @@ -129,4 +133,34 @@ QueryWaybillTraceResponse queryWaybillTrace(QueryWaybillTraceRequest request) throws WxErrorException; + /** + * 传运单接口 follow_waybill 订阅微信后台会跟踪运单的状态变化 + *

+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/express_open_msg.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + FollowWaybillResponse followWaybill(FollowWaybillRequest request) + throws WxErrorException; + + + /** + * 查运单接口 query_follow_trace + * + *
+   * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/express_open_msg.html
+   * 
+ * + * @param request request + * @return 响应 + * @throws WxErrorException 异常 + */ + QueryFollowTraceResponse queryFollowTrace(QueryFollowTraceRequest request) + throws WxErrorException ; + + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java new file mode 100644 index 0000000000..b496470749 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java @@ -0,0 +1,119 @@ +package cn.binarywang.wx.miniapp.api; + +import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSkuData; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSpuData; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopResult; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSku; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpu; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGet; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGetResponse; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuListResponse; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopUpdateGoodsSkuData; +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopSpuPageRequest; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopGetSpuListResponse; +import java.util.List; +import me.chanjar.weixin.common.error.WxErrorException; + +/** + * 小程序交易组件-商品服务 + * + * @author boris + */ +public interface WxMaProductService { + WxMinishopResult addSpu(WxMinishopSpu spuInfo) throws WxErrorException; + + WxMaShopBaseResponse deleteSpu(Integer productId, String outProductId) throws WxErrorException; + + WxMinishopSpuGetResponse getSpu(Integer productId, String outProductId, Integer needEditSpu) + throws WxErrorException; + + WxMinishopSpuListResponse getSpuList(WxMaShopSpuPageRequest request) + throws WxErrorException; + + WxMinishopResult updateSpu(WxMinishopSpu spuInfo) throws WxErrorException; + + WxMaShopBaseResponse listingSpu(Integer productId, String outProductId) + throws WxErrorException; + + WxMaShopBaseResponse delistingSpu(Integer productId, String outProductId) + throws WxErrorException; + + /** + * 小商店新增sku信息 + * + * @param sku + * @return + * @throws WxErrorException + */ + WxMinishopResult minishiopGoodsAddSku(WxMinishopSku sku) throws WxErrorException; + + + /** + * 小商店批量新增sku信息 + * + * @param skuList + * @return + * @throws WxErrorException + */ + WxMinishopResult> minishopGoodsBatchAddSku(List skuList) throws WxErrorException; + + + /** + * 小商店删除sku消息 + * + * @param productId + * @param outProductId + * @param outSkuId + * @param skuId + * @return + * @throws WxErrorException + */ + WxMaShopBaseResponse minishopGoodsDelSku(Long productId, Long outProductId, String outSkuId, Long skuId) throws WxErrorException; + + + /** + * 小商店更新sku + * + * @param sku + * @return + * @throws WxErrorException + */ + WxMinishopResult minishopGoodsUpdateSku(WxMinishopSku sku) throws WxErrorException; + + + /** + * 小商店更新sku价格 + * + * @param productId + * @param outProductId + * @param outSkuId + * @param skuId + * @param salePrice + * @param marketPrice + * @return + * @throws WxErrorException + */ + WxMinishopResult minishopGoodsUpdateSkuPrice(Long productId, + Long outProductId, String outSkuId, Long skuId, Long salePrice, Long marketPrice) throws WxErrorException; + + + /** + * 小商店更新sku库存 + * + * @param productId + * @param outProductId + * @param outSkuId + * @param skuId + * @param type + * @param stockNum + * @return + * @throws WxErrorException + */ + WxMinishopResult minishopGoodsUpdateSkuStock(Long productId, + Long outProductId, String outSkuId, Long skuId, Integer type, Integer stockNum) throws WxErrorException; + + WxMinishopOrderListResponse minishopOrderGetList(String startCreateTime, String endCreateTime, + Integer status, Integer page, Integer pageSize, Integer source) throws WxErrorException; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index 8b357a8476..f424ed4552 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -492,4 +492,15 @@ public interface WxMaService extends WxService { */ WxMaSafetyRiskControlService getSafetyRiskControlService(); + /** + * 分享人接口 + * @return + */ + WxMaShopSharerService getShopSharerService(); + + /** + * 标准交易组件接口 + * @return + */ + WxMaProductService getProductService(); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java new file mode 100644 index 0000000000..76a4e95485 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java @@ -0,0 +1,83 @@ +package cn.binarywang.wx.miniapp.api; + +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSearchSharerResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerBindResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerDataSummaryResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerListResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerLiveOrderListResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerLiveSummaryListResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerUnbindResponse; +import me.chanjar.weixin.common.error.WxErrorException; + +/** + * 分享员 + * @author leiin + * @date 2022/6/18 2:48 下午 + */ +public interface WxMaShopSharerService { + + /** + * 绑定分享员 + * 用来批量邀请分享员 + * @param openids + * @return + * @throws WxErrorException + */ + WxMaShopSharerBindResponse bindSharer(String[] openids) throws WxErrorException; + + /** + * 获取分享员的总带货数据 + * @param openid + * @return + * @throws WxErrorException + */ + WxMaShopSharerDataSummaryResponse getSharerDataSummary(String openid) throws WxErrorException; + + /** + * 获取已经绑定的分享员列表 + * @param page + * @param pageSize + * @return + * @throws WxErrorException + */ + WxMaShopSharerListResponse getSharerList(Integer page, Integer pageSize) throws WxErrorException; + + /** + * 获取分享员的直播间订单汇总 + * @param openid + * @param liveExportId + * @param page + * @param pageSize + * @return + * @throws WxErrorException + */ + WxMaShopSharerLiveOrderListResponse getSharerLiveOrderList(String openid, String liveExportId, + Integer page, Integer pageSize) throws WxErrorException; + + /** + * 获取分享员的直播间带货数据汇总 + * @param openid + * @param page + * @param pageSize + * @return + * @throws WxErrorException + */ + WxMaShopSharerLiveSummaryListResponse getSharerLiveSummaryList(String openid, + Integer page, Integer pageSize) throws WxErrorException; + + /** + * 查看分享员 + * @param openid + * @return + * @throws WxErrorException + */ + WxMaShopSearchSharerResponse searchSharer(String openid) throws WxErrorException; + + /** + * 解绑分享员 + * @param openids + * @return + * @throws WxErrorException + */ + WxMaShopSharerUnbindResponse unbindSharer(String[] openids) throws WxErrorException; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index 62ca188d53..8151af88b0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -79,6 +79,8 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaMarketingService marketingService = new WxMaMarketingServiceImpl(this); private final WxMaImmediateDeliveryService immediateDeliveryService = new WxMaImmediateDeliveryServiceImpl(this); private final WxMaSafetyRiskControlService safetyRiskControlService = new WxMaSafetyRiskControlServiceImpl(this); + private final WxMaShopSharerService shopSharerService = new WxMaShopSharerServiceImpl(this); + private final WxMaProductService productService = new WxMaProductServiceImpl(this); private Map configMap; private int retrySleepMillis = 1000; private int maxRetryTimes = 5; @@ -592,4 +594,10 @@ public WxMaImmediateDeliveryService getWxMaImmediateDeliveryService() { @Override public WxMaSafetyRiskControlService getSafetyRiskControlService(){ return this.safetyRiskControlService; } + @Override + public WxMaShopSharerService getShopSharerService() {return this.shopSharerService; } + + @Override + public WxMaProductService getProductService() { return this.productService; } + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java index 18f99a8600..ba774d3326 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -9,10 +9,14 @@ import cn.binarywang.wx.miniapp.bean.delivery.BindAccountResponse; import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.FollowWaybillRequest; +import cn.binarywang.wx.miniapp.bean.delivery.FollowWaybillResponse; import cn.binarywang.wx.miniapp.bean.delivery.GetOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; +import cn.binarywang.wx.miniapp.bean.delivery.QueryFollowTraceRequest; +import cn.binarywang.wx.miniapp.bean.delivery.QueryFollowTraceResponse; import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceRequest; import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceResponse; import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillRequest; @@ -186,6 +190,28 @@ public QueryWaybillTraceResponse queryWaybillTrace( return response; } + @Override + public FollowWaybillResponse followWaybill( + FollowWaybillRequest request) throws WxErrorException { + String responseContent = this.wxMaService.post(InstantDelivery.FOLLOW_WAYBILL_URL, request); + FollowWaybillResponse response = FollowWaybillResponse.fromJson(responseContent); + if (response.getErrcode() == -1) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return response; + } + + @Override + public QueryFollowTraceResponse queryFollowTrace( + QueryFollowTraceRequest request) throws WxErrorException { + String responseContent = this.wxMaService.post(InstantDelivery.QUERY_FOLLOW_TRACE_URL, request); + QueryFollowTraceResponse response = QueryFollowTraceResponse.fromJson(responseContent); + if (response.getErrcode() == -1) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return response; + } + /** * 解析响应. * diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java new file mode 100644 index 0000000000..6652cd3b0d --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java @@ -0,0 +1,298 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.PRODUCT_ORDER_GET_LIST; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_ADD_SKU_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_BATCH_ADD_SKU_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_DEL_SKU_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_UPDATE_SKU_PRICE_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_UPDATE_SKU_STOCK_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_UPDATE_SKU_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_ADD_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_DELISTING_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_DEL_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_GET_LIST_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_GET_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_LISTING_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Spu.PRODUCT_SPU_UPDATE_URL; + +import cn.binarywang.wx.miniapp.api.WxMaProductService; +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSkuData; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSpuData; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopResult; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSku; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpu; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGetResponse; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuListResponse; +import cn.binarywang.wx.miniapp.bean.product.WxMinishopUpdateGoodsSkuData; +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopSpuPageRequest; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import java.util.ArrayList; +import java.util.List; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonHelper; +import me.chanjar.weixin.common.util.json.GsonParser; + +/** + * @author boris + */ +@RequiredArgsConstructor +@Slf4j +public class WxMaProductServiceImpl implements WxMaProductService { + + private static final String ERR_CODE = "errcode"; + private final WxMaService wxMaService; + + @Override + public WxMinishopResult addSpu(WxMinishopSpu spu) throws WxErrorException { + + String response = this.wxMaService.post(PRODUCT_SPU_ADD_URL, spu); + + JsonObject respObj = GsonParser.parse(response); + + if (respObj.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(respObj.get("errcode").getAsInt()); + JsonObject dataObj = respObj.get("data").getAsJsonObject(); + WxMinishopAddGoodsSpuData resultData = new WxMinishopAddGoodsSpuData(); + resultData.setProductId(dataObj.get("product_id").getAsLong()); + resultData.setOutProductId(dataObj.get("out_product_id").getAsString()); + resultData.setCreateTime(dataObj.get("create_time").getAsString()); + result.setData(resultData); + return result; + } + + @Override + public WxMaShopBaseResponse deleteSpu(Integer productId, String outProductId) + throws WxErrorException { + String responseContent = this.wxMaService + .post(PRODUCT_SPU_DEL_URL, GsonHelper.buildJsonObject("product_id", productId, + "out_product_id", outProductId)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class); + } + + @Override + public WxMinishopSpuGetResponse getSpu(Integer productId, String outProductId, Integer needEditSpu) + throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_SPU_GET_URL, GsonHelper.buildJsonObject("product_id", productId, + "out_product_id", outProductId, "need_edit_spu", needEditSpu)); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + + return WxMaGsonBuilder.create().fromJson(response, WxMinishopSpuGetResponse.class); + } + + @Override + public WxMinishopSpuListResponse getSpuList(WxMaShopSpuPageRequest request) + throws WxErrorException { + String responseContent = this.wxMaService.post(PRODUCT_SPU_GET_LIST_URL, request); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMinishopSpuListResponse.class); + } + + @Override + public WxMinishopResult updateSpu(WxMinishopSpu spu) throws WxErrorException { + String response = this.wxMaService.post(PRODUCT_SPU_UPDATE_URL, spu); + + JsonObject respObj = GsonParser.parse(response); + + if (respObj.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(respObj.get("errcode").getAsInt()); + JsonObject dataObj = respObj.get("data").getAsJsonObject(); + WxMinishopAddGoodsSpuData resultData = new WxMinishopAddGoodsSpuData(); + resultData.setProductId(dataObj.get("product_id").getAsLong()); + resultData.setOutProductId(dataObj.get("out_product_id").getAsString()); + resultData.setUpdateTime(dataObj.get("update_time").getAsString()); + result.setData(resultData); + return result; + } + + @Override + public WxMaShopBaseResponse listingSpu(Integer productId, String outProductId) + throws WxErrorException { + String responseContent = this.wxMaService + .post(PRODUCT_SPU_LISTING_URL, GsonHelper.buildJsonObject("product_id", productId, + "out_product_id", outProductId)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class); + } + + @Override + public WxMaShopBaseResponse delistingSpu(Integer productId, String outProductId) + throws WxErrorException { + String responseContent = this.wxMaService + .post(PRODUCT_SPU_DELISTING_URL, GsonHelper.buildJsonObject("product_id", productId, + "out_product_id", outProductId)); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class); + } + + @Override + public WxMinishopResult minishiopGoodsAddSku( + WxMinishopSku sku) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_ADD_SKU_URL, sku); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(jsonObject.get("errcode").getAsInt()); + JsonObject dataObj = jsonObject.get("data").getAsJsonObject(); + WxMinishopAddGoodsSkuData resultData = new WxMinishopAddGoodsSkuData(); + resultData.setSkuId(dataObj.get("sku_id").getAsLong()); + resultData.setCreateTime(dataObj.get("create_time").getAsString()); + result.setData(resultData); + return result; + } + + @Override + public WxMinishopResult> minishopGoodsBatchAddSku( + List skuList) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_BATCH_ADD_SKU_URL, GsonHelper.buildJsonObject("skus", skuList)); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(jsonObject.get("errcode").getAsInt()); + JsonArray jsonArray = jsonObject.get("data").getAsJsonArray(); + List skuData = new ArrayList<>(); + for (JsonElement jsonElement : jsonArray) { + JsonObject element = jsonElement.getAsJsonObject(); + WxMinishopAddGoodsSkuData resultData = new WxMinishopAddGoodsSkuData(); + resultData.setSkuId(element.get("sku_id").getAsLong()); + resultData.setOutSkuId(element.get("out_sku_id").getAsString()); + resultData.setCreateTime(element.get("create_time").getAsString()); + skuData.add(resultData); + } + result.setData(skuData); + return result; + } + + @Override + public WxMaShopBaseResponse minishopGoodsDelSku(Long productId, Long outProductId, + String outSkuId, Long skuId) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_DEL_SKU_URL, GsonHelper.buildJsonObject("product_id", productId, + "out_product_id", outProductId, "out_sku_id", outSkuId, "sku_id", skuId)); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(response, WxMaShopBaseResponse.class); + } + + @Override + public WxMinishopResult minishopGoodsUpdateSku( + WxMinishopSku sku) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_UPDATE_SKU_URL, sku); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(jsonObject.get("errcode").getAsInt()); + JsonObject dataObj = jsonObject.get("data").getAsJsonObject(); + WxMinishopUpdateGoodsSkuData resultData = new WxMinishopUpdateGoodsSkuData(); + resultData.setSkuId(dataObj.get("sku_id").getAsLong()); + resultData.setUpdateTime(dataObj.get("update_time").getAsString()); + result.setData(resultData); + return result; + } + + @Override + public WxMinishopResult minishopGoodsUpdateSkuPrice( + Long productId, Long outProductId, String outSkuId, Long skuId, Long salePrice, + Long marketPrice) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_UPDATE_SKU_PRICE_URL, GsonHelper.buildJsonObject( + "product_id", productId, "out_product_id", outProductId, + "sku_id", skuId, "out_sku_id", outSkuId, "sale_price", salePrice, "market_price", marketPrice)); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(jsonObject.get("errcode").getAsInt()); + JsonObject dataObj = jsonObject.get("data").getAsJsonObject(); + WxMinishopUpdateGoodsSkuData resultData = new WxMinishopUpdateGoodsSkuData(); + resultData.setSkuId(dataObj.get("sku_id").getAsLong()); + resultData.setUpdateTime(dataObj.get("update_time").getAsString()); + result.setData(resultData); + return result; + } + + @Override + public WxMinishopResult minishopGoodsUpdateSkuStock( + Long productId, Long outProductId, String outSkuId, Long skuId, Integer type, + Integer stockNum) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_UPDATE_SKU_STOCK_URL, GsonHelper.buildJsonObject( + "product_id", productId, "out_product_id", outProductId, + "sku_id", skuId, "out_sku_id", outSkuId, "type", type, "stock_num", stockNum)); + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + + WxMinishopResult result = new WxMinishopResult(); + result.setErrcode(jsonObject.get("errcode").getAsInt()); + JsonObject dataObj = jsonObject.get("data").getAsJsonObject(); + WxMinishopUpdateGoodsSkuData resultData = new WxMinishopUpdateGoodsSkuData(); + resultData.setUpdateTime(dataObj.get("update_time").getAsString()); + result.setData(resultData); + return result; + } + + @Override + public WxMinishopOrderListResponse minishopOrderGetList(String startCreateTime, String endCreateTime, + Integer status, Integer page, Integer pageSize, Integer source) throws WxErrorException { + String response = this.wxMaService + .post(PRODUCT_ORDER_GET_LIST, GsonHelper.buildJsonObject( + "start_create_time", startCreateTime, "end_create_time", endCreateTime, + "status", status, "page", page, "page_size", pageSize, "source", source)); + + JsonObject jsonObject = GsonParser.parse(response); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp)); + } + + return WxMaGsonBuilder.create().fromJson(response, WxMinishopOrderListResponse.class); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java new file mode 100644 index 0000000000..af8abe50b5 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java @@ -0,0 +1,113 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Sharer; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.api.WxMaShopSharerService; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSearchSharerResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerBindResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerDataSummaryResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerListResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerLiveOrderListResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerLiveSummaryListResponse; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopSharerUnbindResponse; +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonHelper; +import me.chanjar.weixin.common.util.json.GsonParser; + +/** + * @author leiin + * @date 2022/6/18 3:38 下午 + */ +@RequiredArgsConstructor +@Slf4j +public class WxMaShopSharerServiceImpl implements WxMaShopSharerService { + private static final String ERR_CODE = "errcode"; + private final WxMaService wxMaService; + + @Override + public WxMaShopSharerBindResponse bindSharer(String[] openids) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("openids", openids); + String responseContent = this.wxMaService.post(Sharer.BIND, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSharerBindResponse.class); + } + + @Override + public WxMaShopSharerDataSummaryResponse getSharerDataSummary(String openid) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("openid", openid); + String responseContent = this.wxMaService.post(Sharer.GET_SHARER_DATA_SUMMARY, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSharerDataSummaryResponse.class); + } + + @Override + public WxMaShopSharerListResponse getSharerList(Integer page, Integer pageSize) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("page", page, "page_size", pageSize); + String responseContent = this.wxMaService.post(Sharer.GET_SHARER_LIST, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSharerListResponse.class); + } + + @Override + public WxMaShopSharerLiveOrderListResponse getSharerLiveOrderList(String openid, String liveExportId, + Integer page, Integer pageSize) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("openid", openid, "live_export_id", liveExportId, + "page", page, "page_size", pageSize); + String responseContent = this.wxMaService.post(Sharer.GET_SHARER_LIVE_ORDER_LIST, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSharerLiveOrderListResponse.class); + } + + @Override + public WxMaShopSharerLiveSummaryListResponse getSharerLiveSummaryList(String openid, + Integer page, Integer pageSize) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("openid", openid, "page", page, "page_size", pageSize); + String responseContent = this.wxMaService.post(Sharer.GET_SHARER_LIVE_SUMMARY_LIST, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSharerLiveSummaryListResponse.class); + } + + @Override + public WxMaShopSearchSharerResponse searchSharer(String openid) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("openid", openid); + String responseContent = this.wxMaService.post(Sharer.SEARCH_SHARER, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSearchSharerResponse.class); + } + + @Override + public WxMaShopSharerUnbindResponse unbindSharer(String[] openids) throws WxErrorException { + JsonObject json = GsonHelper.buildJsonObject("openids", openids); + String responseContent = this.wxMaService.post(Sharer.UNBIND, json); + JsonObject jsonObject = GsonParser.parse(responseContent); + if (jsonObject.get(ERR_CODE).getAsInt() != 0) { + throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); + } + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopSharerUnbindResponse.class); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillRequest.java new file mode 100644 index 0000000000..92add53aa2 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillRequest.java @@ -0,0 +1,103 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + *
+ * 传运单接口 follow_waybil
+ *
+ * 商户使用此接口向微信提供某交易单号对应的运单号。微信后台会跟踪运单的状态变化,在关键物流节点给下单用户推送消息通知。
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class FollowWaybillRequest implements Serializable { + + private static final long serialVersionUID = -7538739003766268386L; + + + /** + * 用户openid + *
+   * 是否必填: 是
+   * 描述: 用户openid
+   * 
+ */ + @SerializedName("openid") + private String openid; + + /** + * 寄件人手机号 + *
+   * 是否必填: 否
+   * 描述:
+   * 
+ */ + @SerializedName("sender_phone") + private String senderPhone; + + /** + * 收件人手机号 + *
+   * 是否必填: 否
+   * 描述:部分运力需要用户手机号作为查单依据
+   * 
+ */ + @SerializedName("receiver_phone") + private String receiverPhone; + + /** + * 运单ID + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * 交易单号(微信支付生成的交易单号,一般以420开头) + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("trans_id") + private String transId; + + + /** + * 点击落地页商品卡片跳转路径(建议为订单详情页path),不传默认跳转小程序首页。 + *
+   * 是否必填: 否
+   * 
+ */ + @SerializedName("order_detail_path") + private String orderDetailPath; + + /** + * 商品信息 + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("goods_info") + private WaybillGoodsInfo goodsInfo; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillResponse.java new file mode 100644 index 0000000000..748f9465aa --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/FollowWaybillResponse.java @@ -0,0 +1,34 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + *
+ * 查运单接口 query_follow_trace 响应参数
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Accessors(chain = true) +public class FollowWaybillResponse extends WxMaBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 查询id. + */ + @SerializedName("waybill_token") + private String waybillToken; + + + public static FollowWaybillResponse fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, FollowWaybillResponse.class); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceRequest.java new file mode 100644 index 0000000000..600ea0f14c --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceRequest.java @@ -0,0 +1,46 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + *
+ * 消息组件-查运单接口 query_follow_trace
+ *
+ * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class QueryFollowTraceRequest implements Serializable { + + private static final long serialVersionUID = -7538739003766268386L; + + + /** + * 查询id + *
+   * 是否必填: 是
+   * 描述: 可以从 传运单接口 follow_waybill 取数据
+   * 
+ */ + @SerializedName("waybill_token") + private String waybillToken; + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceResponse.java new file mode 100644 index 0000000000..a6e698d0df --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/QueryFollowTraceResponse.java @@ -0,0 +1,123 @@ +package cn.binarywang.wx.miniapp.bean.delivery; + +import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + *
+ * 消息组件-查运单接口 query_follow_trace 响应参数
+ *
+ * 商户在调用完follow_waybill/trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+ * 
+ * + * @author boris + * @since 2022-04-01 + */ +@Data +@Accessors(chain = true) +public class QueryFollowTraceResponse extends WxMaBaseResponse implements Serializable { + + private static final long serialVersionUID = 3773007367000633663L; + + /** + * 运单信息. + */ + @SerializedName("waybill_info") + private WaybillInfo waybillInfo; + + /** + * 商品信息 + */ + @SerializedName("shop_info") + private ShopInfo shopInfo; + + /** + * 运力信息. + */ + @SerializedName("delivery_info") + private DeliveryInfo deliveryInfo; + + + public static QueryFollowTraceResponse fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, QueryFollowTraceResponse.class); + } + + /** + * 运单信息. + */ + @Data + @Accessors(chain = true) + public static class WaybillInfo implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 运单状态 释义 + *
+     *
+     * 0	运单不存在或者未揽收
+     * 1	已揽件
+     * 2	运输中
+     * 3	派件中
+     * 4	已签收
+     * 5	异常
+     * 6	代签收
+     *
+     * 
+ */ + @SerializedName("status") + private Integer status; + + /** + * 查询id. + */ + @SerializedName("waybill_token") + private String waybillToken; + } + + /** + * 商品信息. + */ + @Data + @Accessors(chain = true) + public static class ShopInfo implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 配送公司Id. + */ + @SerializedName("goods_info") + private WaybillGoodsInfo goodsInfo; + + + } + + + /** + * 运力信息. + */ + @Data + @Accessors(chain = true) + public static class DeliveryInfo implements Serializable { + + private static final long serialVersionUID = -3759074878713856529L; + + /** + * 配送公司Id. + */ + @SerializedName("delivery_id") + private String deliveryId; + + /** + * 运力公司名称. + */ + @SerializedName("delivery_name") + private String deliveryName; + + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/MinishopShopCat.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/MinishopShopCat.java new file mode 100644 index 0000000000..54015f2ed1 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/MinishopShopCat.java @@ -0,0 +1,23 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * 店铺的商品分类 + */ +@Data +public class MinishopShopCat implements Serializable { + private static final long serialVersionUID = 4179473856929659641L; + + @SerializedName("cat_id") + private Integer shopCatId; + + private String shopCatName; + + private Integer fShopCatId; + + @SerializedName("level") + private Integer catLevel; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java new file mode 100644 index 0000000000..edf074b4fc --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java @@ -0,0 +1,24 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 7:16 下午 + */ +@Data +public class WxMiniAfterSaleDetail { + @SerializedName("aftersale_order_list") + private List aftersaleOrderList; + @SerializedName("on_aftersale_order_cnt") + private Integer onAftersaleOrderCnt; + + @Data + public static class AfterSaleOrder { + @SerializedName("aftersale_order_id") + private Long aftersaleOrderId; + private Integer status; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSkuData.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSkuData.java new file mode 100644 index 0000000000..6645140787 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSkuData.java @@ -0,0 +1,16 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +@Data +public class WxMinishopAddGoodsSkuData implements Serializable { + private static final long serialVersionUID = -2596988603027040989L; + @SerializedName("sku_id") + private Long skuId; + @SerializedName("out_sku_id") + private String outSkuId; + @SerializedName("create_time") + private String createTime; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSpuData.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSpuData.java new file mode 100644 index 0000000000..bf9bb5c757 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddGoodsSpuData.java @@ -0,0 +1,16 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import java.io.Serializable; +import lombok.Data; + +@Data +public class WxMinishopAddGoodsSpuData implements Serializable { + private static final long serialVersionUID = 2023708625713948192L; + private Long productId; + + private String outProductId; + + private String createTime; + + private String updateTime; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java new file mode 100644 index 0000000000..0e140883eb --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java @@ -0,0 +1,28 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 7:32 下午 + */ +@Data +public class WxMinishopAddressInfo { + @SerializedName("user_name") + private String userName; + @SerializedName("postal_code") + private String postalCode; + @SerializedName("province_name") + private String provinceName; + @SerializedName("city_name") + private String cityame; + @SerializedName("county_name") + private String countyName; + @SerializedName("detail_info") + private String detailInfo; + @SerializedName("national_code") + private String nationalCode; + @SerializedName("tel_number") + private String telNumber; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryCompany.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryCompany.java new file mode 100644 index 0000000000..7534a94553 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryCompany.java @@ -0,0 +1,12 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import java.io.Serializable; +import lombok.Data; + +@Data +public class WxMinishopDeliveryCompany implements Serializable { + private static final long serialVersionUID = 3736970376549639779L; + private String deliveryId; + + private String deliveryName; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java new file mode 100644 index 0000000000..b8098edb30 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java @@ -0,0 +1,62 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 7:28 下午 + */ +@Data +public class WxMinishopDeliveryInfo { + @SerializedName("address_info") + private WxMinishopAddressInfo addressInfo; + @SerializedName("delivery_method") + private String deliveryMethod; + @SerializedName("delivery_product_info") + private List deliveryProductInfo; + @SerializedName("ship_done_time") + private Long ship_done_time; + @SerializedName("insurance_info") + private InsuranceInfo insuranceInfo; + @SerializedName("deliver_type") + private String deliverType; + @SerializedName("offline_delivery_time") + private Long offlineDeliveryTime; + @SerializedName("offline_pickup_time") + private Long offlinePickupTime; + + @Data + public static class DeliveryProductInfo { + @SerializedName("waybill_id") + private String waybillId; + @SerializedName("delivery_id") + private String deliveryId; + @SerializedName("delivery_time") + private String deliveryTime; + @SerializedName("deliver_type") + private String deliverType; + @SerializedName("delivery_address") + private WxMinishopAddressInfo deliveryAddress; + @SerializedName("product_infos") + private List productInfos; + } + + @Data + public static class InsuranceInfo { + private String type; + @SerializedName("insurance_price") + private Long insurancePrice; + } + + @Data + public static class ProductInfo { + @SerializedName("product_id") + private Long product_id; + @SerializedName("sku_id") + private Long sku_id; + @SerializedName("product_cnt") + private Long product_cnt; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGoodsSkuAttr.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGoodsSkuAttr.java new file mode 100644 index 0000000000..5b0b2735e4 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGoodsSkuAttr.java @@ -0,0 +1,25 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +@Data +public class WxMinishopGoodsSkuAttr implements Serializable { + private static final long serialVersionUID = -7274443170526394680L; + + @SerializedName("attr_key") + private String attrKey; + + @SerializedName("attr_value") + private String attrValue; + + public JsonObject toJsonObject() { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("attr_key", attrKey); + jsonObject.addProperty("attr_value", attrValue); + + return jsonObject; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java new file mode 100644 index 0000000000..09da6dd583 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java @@ -0,0 +1,48 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2021/3/23 + */ +@Data +public class WxMinishopOrderDetail implements Serializable { + private static final long serialVersionUID = 3325843289672341160L; + + /** + * 下单商品信息 + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("product_infos") + private List productInfos; + + /** + * 支付信息 (当作为返回结果,payorder时action_type!=6时存在) + *
+   * 是否必填:
+   * 
+ */ + @SerializedName("pay_info") + private WxMinishopPayInfo payInfo; + + /** + * 价格信息 + *
+   * 是否必填:
+   * 
+ */ + @SerializedName("price_info") + private WxMinishopPriceInfo priceInfo; + + /** + * 必须调过发货接口才会存在这个字段 + */ + @SerializedName("delivery_info") + private WxMinishopDeliveryInfo deliveryInfo; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java new file mode 100644 index 0000000000..bca2a7be42 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java @@ -0,0 +1,17 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 7:09 下午 + */ +@Data +public class WxMinishopOrderListResponse extends WxMaShopBaseResponse { + private List orders; + @SerializedName("total_num") + private Long totalNum; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java new file mode 100644 index 0000000000..ed3d02cd92 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java @@ -0,0 +1,61 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderDetail; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * @author leiin + * @date 2021/3/23 + */ +@Data +public class WxMinishopOrderResult implements Serializable { + private static final long serialVersionUID = -2665426592693969921L; + + /** + * 交易组件平台订单ID + */ + @SerializedName("order_id") + private Long orderId; + + /** + * 订单状态 + */ + @SerializedName("status") + private Integer status; + + @SerializedName("create_time") + private String createTime; + + @SerializedName("update_time") + private String updateTime; + /** + * 订单详情 + */ + @SerializedName("order_detail") + private WxMinishopOrderDetail orderDetail; + + @SerializedName("aftersale_detail") + private WxMiniAfterSaleDetail afterSaleDetail; + + /** + * 商家小程序该订单的用户id + */ + @SerializedName("openid") + private String openid; + + @SerializedName("ext_info") + private ExtInfo extInfo; + + @SerializedName("order_type") + private Integer orderType; + + @Data + public static class ExtInfo { + @SerializedName("customer_notes") + private String customerNotes; + @SerializedName("merchant_notes") + private String merchantNotes; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java new file mode 100644 index 0000000000..5acb048a64 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java @@ -0,0 +1,54 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * @author leiin + * @date 2021/3/23 + */ +@Data +public class WxMinishopPayInfo implements Serializable { + private static final long serialVersionUID = 687488209024968647L; + + @SerializedName("pay_method") + private String payMethod; + + /** + * 预支付ID + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("prepay_id") + private String prepayId; + + /** + * 预付款时间(拿到prepay_id的时间) + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("prepay_time") + private String prepayTime; + + // 以下字段仅作为返回数据 + /** + * 支付ID,调过同步订单支付结果且action_type=1时才存在 + *
+   * 是否必填:
+   * 
+ */ + @SerializedName("transaction_id") + private String transactionId; + + /** + * 付款时间(拿到transaction_id的时间) + *
+   * 是否必填:
+   * 
+ */ + @SerializedName("pay_time") + private String payTime; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java new file mode 100644 index 0000000000..ba146e8e1c --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java @@ -0,0 +1,44 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * @author leiin + * @date 2021/3/23 + */ +@Data +public class WxMinishopPriceInfo implements Serializable { + private static final long serialVersionUID = 1588840927992523263L; + + @SerializedName("product_price") + private Integer productPrice; + /** + * 该订单最终的金额(单位:分) + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("order_price") + private Integer orderPrice; + /** + * 运费(单位:分) + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("freight") + private Integer freight; + /** + * 优惠金额(单位:分) + *
+   * 是否必填:否
+   * 
+ */ + @SerializedName("discounted_price") + private Integer discountedPrice; + + @SerializedName("is_discounted") + private Boolean isDiscounted; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java new file mode 100644 index 0000000000..5e709120e8 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java @@ -0,0 +1,65 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2021/3/23 + */ +@Data +public class WxMinishopProductInfo implements Serializable { + private static final long serialVersionUID = 8979181840150112093L; + /** + * 交易组件平台内部商品ID + */ + @SerializedName("product_id") + private Integer productId; + + /** + * 交易组件平台内部skuID,可填0(如果这个product_id下没有sku) + */ + @SerializedName("sku_id") + private Integer skuId; + /** + * 购买的数量 + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("sku_cnt") + private Integer skuCnt; + + @SerializedName("on_aftersale_sku_cnt") + private Integer onAftersaleSkuCnt; + + @SerializedName("finish_aftersale_sku_cnt") + private Integer finishAftersaleSkuCnt; + /** + * 生成订单时商品的标题 + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("title") + private String title; + @SerializedName("thumb_img") + private String thumbImg; + + @SerializedName("sku_attrs") + private List skuAttrs; + /** + * 生成订单时商品的售卖价(单位:分) + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("sale_price") + private Integer salePrice; + + @SerializedName("market_price") + private Integer marketPrice; +} + diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopResult.java new file mode 100644 index 0000000000..c47fcddd99 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopResult.java @@ -0,0 +1,14 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import java.io.Serializable; +import lombok.Data; + +@Data +public class WxMinishopResult implements Serializable { + private static final long serialVersionUID = 4323118714581265968L; + private Integer errcode; + + private String errmsg; + + private T data; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java new file mode 100644 index 0000000000..8fa8712e25 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java @@ -0,0 +1,41 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Data; + +@Data +public class WxMinishopSku implements Serializable { + private static final long serialVersionUID = 12373392723136246L; + + @SerializedName("product_id") + private Long productId; + + @SerializedName("out_product_id") + private String outProductId; + + @SerializedName("out_sku_id") + private String outSkuId; + + @SerializedName("thumb_img") + private String thumbImg; + + @SerializedName("sale_price") + private Integer salePrice; + + @SerializedName("market_price") + private Integer marketPrice; + + @SerializedName("stock_num") + private Integer stockNum; + + @SerializedName("sku_code") + private String skuCode; + + @SerializedName("barcode") + private String barCode; + + @SerializedName("sku_attrs") + private List skuAttrs; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpu.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpu.java new file mode 100644 index 0000000000..b6fe852849 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpu.java @@ -0,0 +1,51 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Data; + +@Data +public class WxMinishopSpu implements Serializable { + private static final long serialVersionUID = 6689040014027161007L; + + @SerializedName("out_product_id") + private String outProductId; + + private String title; + + @SerializedName("sub_title") + private String subTitle; + + @SerializedName("head_img") + private List headImgs; + + @SerializedName("desc_info") + private DescInfo descInfo; + + @SerializedName("brand_id") + private Long brandId; + + @SerializedName("cats") + private List shopCats; + + private List attrs; + + private String model; + + @SerializedName("express_info") + private ExpressInfo expressInfo; + + private List skus; + + @Data + public static class DescInfo { + private List imgs; + } + + @Data + public static class ExpressInfo { + @SerializedName("template_id") + private Long templateId; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java new file mode 100644 index 0000000000..f40adc0944 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java @@ -0,0 +1,16 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import java.io.Serializable; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 4:36 下午 + */ +@Data +public class WxMinishopSpuGet implements Serializable { + + private static final long serialVersionUID = -957810527714924409L; + + private WxMinishopSpu spu; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java new file mode 100644 index 0000000000..94dff9b4e1 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java @@ -0,0 +1,12 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 4:46 下午 + */ +@Data +public class WxMinishopSpuGetResponse extends WxMinishopResult { + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java new file mode 100644 index 0000000000..a60d630007 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java @@ -0,0 +1,17 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/20 4:46 下午 + */ +@Data +public class WxMinishopSpuListResponse extends WxMinishopResult { + @SerializedName("total_num") + private Long totalNum; + + private List spus; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopUpdateGoodsSkuData.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopUpdateGoodsSkuData.java new file mode 100644 index 0000000000..446404e4a4 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopUpdateGoodsSkuData.java @@ -0,0 +1,16 @@ +package cn.binarywang.wx.miniapp.bean.product; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +@Data +public class WxMinishopUpdateGoodsSkuData implements Serializable { + private static final long serialVersionUID = -2596988603027040989L; + @SerializedName("sku_id") + private Long skuId; + @SerializedName("out_sku_id") + private String outSkuId; + @SerializedName("update_time") + private String updateTime; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java new file mode 100644 index 0000000000..332e187206 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java @@ -0,0 +1,24 @@ +package cn.binarywang.wx.miniapp.bean.shop; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/18 3:14 下午 + */ +@Data +public class WxMaPromotionInfo implements Serializable { + + private static final long serialVersionUID = 2090629980847386450L; + + @SerializedName("finder_username") + private String finderUsername; + @SerializedName("finder_nickname") + private String finderNickname; + @SerializedName("sharer_openid") + private String sharerOpenid; + @SerializedName("live_start_time") + private String liveStartTime; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java index c3cc219d2f..c977d48f9f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java @@ -14,6 +14,7 @@ public class WxMaShopOrderDetail implements Serializable { private static final long serialVersionUID = 3325843289672341160L; + /** * 推广员、分享员信息 */ diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java index 7ea749e197..24d772c236 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java @@ -21,6 +21,9 @@ public class WxMaShopPayInfo implements Serializable { @SerializedName("pay_method_type") private Integer payMethodType; + @SerializedName("pay_method") + private String payMethod; + /** * 预支付ID *
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java
index b381b18f66..37898b243d 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java
@@ -88,5 +88,8 @@ public class WxMaShopProductInfo implements Serializable {
    */
   @SerializedName("real_price")
   private Integer realPrice;
+
+  @SerializedName("sku_real_price")
+  private Integer skuRealPrice;
 }
 
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java
index bf8acced5e..47615c5e52 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java
@@ -1,5 +1,6 @@
 package cn.binarywang.wx.miniapp.bean.shop.request;
 
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest.ProductInfosBean;
 import com.google.gson.annotations.SerializedName;
 import lombok.AllArgsConstructor;
 import lombok.Builder;
@@ -38,6 +39,8 @@ public class WxMaShopDeliverySendRequest implements Serializable {
   private Integer finishAllDelivery;
   @SerializedName("delivery_list")
   private List deliveryList;
+  @SerializedName("ship_done_time")
+  private String shipDoneTme;
 
   @Data
   @Builder
@@ -53,5 +56,7 @@ public static class DeliveryListBean implements Serializable {
     private String deliveryId;
     @SerializedName("waybill_id")
     private String waybillId;
+    @SerializedName("product_info_list")
+    private List productInfoList;
   }
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java
new file mode 100644
index 0000000000..9366a50146
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java
@@ -0,0 +1,24 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 2:58 下午
+ */
+@Data
+public class WxMaShopSearchSharerResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = 2049214239752832818L;
+
+  @SerializedName("invited_time")
+  private Long invitedTime;
+  @SerializedName("bind_time")
+  private Long bindTime;
+  @SerializedName("nickname")
+  private String nickname;
+  @SerializedName("bind_status")
+  private Integer bindStatus;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java
new file mode 100644
index 0000000000..d88a482987
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java
@@ -0,0 +1,40 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 2:51 下午
+ */
+@Data
+public class WxMaShopSharerBindResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = 5648529892711033276L;
+
+  @SerializedName("success_list")
+  private List successList;
+
+  @SerializedName("fail_list")
+  private List failList;
+
+  @SerializedName("refuse_list")
+  private List refuseList;
+
+  @SerializedName("result_list")
+  private List resultList;
+
+  @Getter
+  @Setter
+  public static class ResultListItem {
+    private String openid;
+    @SerializedName("result_code")
+    private Integer resultCode;
+    @SerializedName("reason_code")
+    private Integer reasonCode;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java
new file mode 100644
index 0000000000..304bf3d18d
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java
@@ -0,0 +1,21 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 2:53 下午
+ */
+@Data
+public class WxMaShopSharerDataSummaryResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = 3985829585979186778L;
+
+  private Long gmv;
+  @SerializedName("order_cnt")
+  private Long orderCnt;
+  @SerializedName("user_cnt")
+  private Long userCnt;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java
new file mode 100644
index 0000000000..c49c0c5f0f
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java
@@ -0,0 +1,30 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 2:55 下午
+ */
+@Data
+public class WxMaShopSharerListResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = -8533731677643022825L;
+
+  private List sharers;
+  @SerializedName("total_num")
+  private Integer totalNum;
+
+  @Data
+  public static class SharerInfo {
+    private String openid;
+    @SerializedName("invited_time")
+    private Long invitedTime;
+    @SerializedName("bind_time")
+    private Long bindTime;
+    private String nickname;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java
new file mode 100644
index 0000000000..319b726683
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java
@@ -0,0 +1,34 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderDetail;
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 2:56 下午
+ */
+@Data
+public class WxMaShopSharerLiveOrderListResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = -4190199778148290127L;
+
+  private List orders;
+
+  @SerializedName("total_num")
+  private Integer totalNum;
+
+  @Data
+  public static class WxMaShopOrderItem {
+    @SerializedName("order_id")
+    private Long orderId;
+    @SerializedName("out_order_id")
+    private String outOrderId;
+    private Integer status;
+    private String path;
+    @SerializedName("order_detail")
+    private WxMaShopOrderDetail orderDetail;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java
new file mode 100644
index 0000000000..bb3fa927b8
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java
@@ -0,0 +1,41 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 2:57 下午
+ */
+@Data
+public class WxMaShopSharerLiveSummaryListResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = -2085366863029618067L;
+
+  private List lives;
+
+  @SerializedName("total_num")
+  private Integer totalNum;
+
+  @Data
+  public static class LiveSummaryItem {
+    @SerializedName("live_export_id")
+    private String liveExportId;
+    @SerializedName("live_nickname")
+    private String liveNickname;
+    @SerializedName("live_start_time")
+    private Long liveStartTime;
+    @SerializedName("live_end_time")
+    private Long liveEndTime;
+    @SerializedName("live_status")
+    private Long liveStatus;
+    @SerializedName("gmv")
+    private Long gmv;
+    @SerializedName("order_cnt")
+    private Long orderCnt;
+    @SerializedName("user_cnt")
+    private Long userCnt;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java
new file mode 100644
index 0000000000..6ce228a8ce
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java
@@ -0,0 +1,25 @@
+package cn.binarywang.wx.miniapp.bean.shop.response;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/18 3:00 下午
+ */
+@Data
+public class WxMaShopSharerUnbindResponse extends WxMaShopBaseResponse implements Serializable {
+
+  private static final long serialVersionUID = -9015680115600175408L;
+
+  @SerializedName("success_list")
+  private List successList;
+
+  @SerializedName("fail_list")
+  private List failList;
+
+  @SerializedName("refuse_list")
+  private List refuseList;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
index 132ee8927f..fbe7c36cb0 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
@@ -400,6 +400,31 @@ public interface Ocr {
     String FILE_COMM = "https://api.weixin.qq.com/cv/ocr/comm";
   }
 
+  public interface Product {
+    interface Spu {
+      String PRODUCT_SPU_ADD_URL = "https://api.weixin.qq.com/product/spu/add";
+      String PRODUCT_SPU_DEL_URL = "https://api.weixin.qq.com/product/spu/del";
+      String PRODUCT_SPU_GET_URL = "https://api.weixin.qq.com/product/spu/get";
+      String PRODUCT_SPU_GET_LIST_URL = "https://api.weixin.qq.com/product/spu/get_list";
+      String PRODUCT_SPU_UPDATE_URL = "https://api.weixin.qq.com/product/spu/update";
+      String PRODUCT_SPU_LISTING_URL = "https://api.weixin.qq.com/product/spu/listing";
+      String PRODUCT_SPU_DELISTING_URL = "https://api.weixin.qq.com/product/spu/delisting";
+    }
+
+    interface Sku {
+      String PRODUCT_ADD_SKU_URL = "https://api.weixin.qq.com/product/sku/add";
+      String PRODUCT_BATCH_ADD_SKU_URL = "https://api.weixin.qq.com/product/sku/batch_add";
+      String PRODUCT_DEL_SKU_URL = "https://api.weixin.qq.com/product/sku/del";
+      String PRODUCT_UPDATE_SKU_URL = "https://api.weixin.qq.com/product/sku/update";
+      String PRODUCT_UPDATE_SKU_PRICE_URL = "https://api.weixin.qq.com/product/sku/update_price";
+      String PRODUCT_UPDATE_SKU_STOCK_URL = "https://api.weixin.qq.com/product/stock/update";
+    }
+
+    interface Order {
+      String PRODUCT_ORDER_GET_LIST = "https://api.weixin.qq.com/product/order/get_list";
+    }
+  }
+
   public interface Shop {
     interface Spu {
       String SPU_ADD_URL = "https://api.weixin.qq.com/shop/spu/add";
@@ -462,6 +487,16 @@ interface Aftersale {
       String AFTERSALE_GET = "https://api.weixin.qq.com/shop/aftersale/get";
       String AFTERSALE_UPDATE = "https://api.weixin.qq.com/shop/aftersale/update";
     }
+
+    interface Sharer {
+      String BIND = "https://api.weixin.qq.com/shop/sharer/bind";
+      String GET_SHARER_DATA_SUMMARY = "https://api.weixin.qq.com/shop/sharer/get_sharer_data_summary";
+      String GET_SHARER_LIST = "https://api.weixin.qq.com/shop/sharer/get_sharer_list";
+      String GET_SHARER_LIVE_ORDER_LIST = "https://api.weixin.qq.com/shop/sharer/get_sharer_live_order_list";
+      String GET_SHARER_LIVE_SUMMARY_LIST = "https://api.weixin.qq.com/shop/sharer/get_sharer_live_summary_list";
+      String SEARCH_SHARER = "https://api.weixin.qq.com/shop/sharer/search_sharer";
+      String UNBIND = "https://api.weixin.qq.com/shop/sharer/unbind";
+    }
   }
 
   /**
@@ -553,6 +588,18 @@ public interface InstantDelivery {
      */
     String QUERY_WAYBILL_TRACE_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/query_trace";
 
+    /**
+     * 物流服务-消息组件-传运单接口(订阅消息) follow_waybill
+     * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+     */
+    String FOLLOW_WAYBILL_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/follow_waybill";
+
+    /**
+     * 物流服务-消息组件-查运单接口(订阅消息) query_follow_trace
+     * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息
+     */
+    String QUERY_FOLLOW_TRACE_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/open_msg/query_follow_trace";
+
 
     /**
      * 下单接口.

From a12fa556012d18eceb94a749abcb047b1305ccdb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BE=8D=E8=B2=93?= <1219974319@qq.com>
Date: Tue, 28 Jun 2022 11:21:23 +0800
Subject: [PATCH 277/622] =?UTF-8?q?:new:=20#2718=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3=E8=B0=83=E7=94=A8=E8=AE=B8=E5=8F=AF=E7=9B=B8=E5=85=B3?=
 =?UTF-8?q?=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../cp/bean/license/WxCpTpLicenseAccount.java |  32 ++
 .../license/WxCpTpLicenseAccountCount.java    |  31 ++
 .../license/WxCpTpLicenseAccountDuration.java |  24 +
 .../license/WxCpTpLicenseActiveAccount.java   |  39 ++
 .../license/WxCpTpLicenseActiveCodeInfo.java  |  39 ++
 .../license/WxCpTpLicenseBaseAccount.java     |  38 ++
 .../license/WxCpTpLicenseCorpAccount.java     |  30 ++
 .../license/WxCpTpLicenseInvalidAccount.java  |  28 ++
 .../cp/bean/license/WxCpTpLicenseOrder.java   |  52 ++
 .../license/WxCpTpLicenseSimpleOrder.java     |  33 ++
 .../bean/license/WxCpTpLicenseTransfer.java   |  46 ++
 .../WxCpTpLicenseActiveInfoByUserResp.java    |  35 ++
 .../WxCpTpLicenseBatchActiveResultResp.java   |  34 ++
 .../WxCpTpLicenseBatchCodeInfoResp.java       |  34 ++
 .../WxCpTpLicenseBatchTransferResp.java       |  32 ++
 .../account/WxCpTpLicenseCodeInfoResp.java    |  29 ++
 .../WxCpTpLicenseCorpAccountListResp.java     |  37 ++
 .../order/WxCpTpLicenseCreateOrderResp.java   |  31 ++
 .../order/WxCpTpLicenseNewOrderRequest.java   |  60 +++
 .../WxCpTpLicenseOrderAccountListResp.java    |  39 ++
 .../order/WxCpTpLicenseOrderInfoResp.java     |  30 ++
 .../order/WxCpTpLicenseOrderListResp.java     |  39 ++
 .../WxCpTpLicenseRenewOrderJobRequest.java    |  49 ++
 .../order/WxCpTpLicenseRenewOrderJobResp.java |  43 ++
 .../order/WxCpTpLicenseRenewOrderRequest.java |  38 ++
 .../weixin/cp/constant/WxCpApiPathConsts.java |  16 +
 .../weixin/cp/constant/WxCpTpConsts.java      |  17 +
 .../cp/tp/service/WxCpTpLicenseService.java   | 212 ++++++++
 .../weixin/cp/tp/service/WxCpTpService.java   |  15 +
 .../service/impl/BaseWxCpTpServiceImpl.java   |  13 +
 .../impl/WxCpTpLicenseServiceImpl.java        | 193 ++++++++
 .../impl/WxCpTpLicenseServiceImplTest.java    | 457 ++++++++++++++++++
 32 files changed, 1845 insertions(+)
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java
 create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java
 create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java
new file mode 100644
index 0000000000..41d5564ad4
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java
@@ -0,0 +1,32 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+
+/**
+ * 订单账号信息
+ * @author Totoro
+ * @date 2022/6/27 14:04
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseAccount extends WxCpTpLicenseBaseAccount {
+  private static final long serialVersionUID = 8225061160406054730L;
+
+  /**
+   * 激活码
+   */
+  @SerializedName("active_code")
+  private String activeCode;
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java
new file mode 100644
index 0000000000..ba16e4da90
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java
@@ -0,0 +1,31 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * @author Totoro
+ * @date 2022/6/27 11:54
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseAccountCount implements Serializable {
+  private static final long serialVersionUID = 8521389670723004989L;
+
+  @SerializedName("base_count")
+  private Integer baseCount;
+  @SerializedName("external_contact_count")
+  private Integer externalContactCount;
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java
new file mode 100644
index 0000000000..0da8c50d16
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java
@@ -0,0 +1,24 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ *
+ * @author Totoro
+ * @date 2022-6-27 11:22:53
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseAccountDuration implements Serializable {
+  private static final long serialVersionUID = 7960912263908286975L;
+
+  private Integer months;
+
+  }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java
new file mode 100644
index 0000000000..d65e3473c3
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java
@@ -0,0 +1,39 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * @author Totoro
+ * @date 2022-6-27 16:26:35
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseActiveAccount implements Serializable {
+  private static final long serialVersionUID = -2382681430861137803L;
+
+  /**
+   * 用户ID
+   */
+  private String userid;
+
+  /**
+   * 激活码
+   */
+  @SerializedName("active_code")
+  private String activeCode;
+
+  /**
+   * 激活状态 0为成功
+   * 此值在请求激活时无需传入
+   */
+  @SerializedName("errcode")
+  private Integer errCode;
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java
new file mode 100644
index 0000000000..26e107ccf7
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java
@@ -0,0 +1,39 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * 激活码信息
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95553
+ * @author Totoro
+ * @date 2022/6/27 14:34
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseActiveCodeInfo extends WxCpTpLicenseBaseAccount {
+  private static final long serialVersionUID = 7696395903786956694L;
+
+  @SerializedName("active_code")
+  private String activeCode;
+
+  private Integer status;
+
+  @SerializedName("create_time")
+  private Long createTime;
+
+  @SerializedName("active_time")
+  private Long activeTime;
+
+  @SerializedName("expire_time")
+  private Long expireTime;
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java
new file mode 100644
index 0000000000..4d02f6d324
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java
@@ -0,0 +1,38 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 许可证账号基础类
+ * @author Totoro
+ * @date 2022/6/27 14:39
+ */
+@Data
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseBaseAccount implements Serializable {
+  private static final long serialVersionUID = 7075253491688740047L;
+
+
+  /**
+   * 用户ID
+   */
+  private String userid;
+
+  /**
+   * 类型
+   */
+  private Integer type;
+
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java
new file mode 100644
index 0000000000..246253bdd8
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java
@@ -0,0 +1,30 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Totoro
+ * @date 2022/6/27 15:21
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseCorpAccount extends WxCpTpLicenseBaseAccount {
+
+  private static final long serialVersionUID = -5856054486686123753L;
+
+  @SerializedName("active_time")
+  private Long activeTime;
+
+  @SerializedName("expire_time")
+  private Long expireTime;
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java
new file mode 100644
index 0000000000..3fba253bfd
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java
@@ -0,0 +1,28 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Totoro
+ * @date 2022-6-27 15:35:30
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@SuperBuilder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseInvalidAccount extends WxCpTpLicenseBaseAccount {
+  private static final long serialVersionUID = -3706481243147500720L;
+
+  @SerializedName("errcode")
+  private Integer errorCode;
+  @SerializedName("errmsg")
+  private String errMsg;
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java
new file mode 100644
index 0000000000..a7ac6186fd
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java
@@ -0,0 +1,52 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 详细的订单信息
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95648
+ * @author Totoro
+ * @date 2022/6/27 11:38
+ */
+@Data
+public class WxCpTpLicenseOrder implements Serializable {
+
+  private static final long serialVersionUID = -4094302825442292644L;
+
+  @SerializedName("order_id")
+  private String orderId;
+
+  @SerializedName("order_type")
+  private Integer orderType;
+
+  @SerializedName("order_status")
+  private Integer orderStatus;
+
+  @SerializedName("corpid")
+  private String corpId;
+
+  @SerializedName("price")
+  private Long price;
+
+  @SerializedName("account_count")
+  private WxCpTpLicenseAccountCount accountCount;
+
+  @SerializedName("account_duration")
+  private WxCpTpLicenseAccountDuration accountDuration;
+
+  @SerializedName("create_time")
+  private Long createTime;
+
+  @SerializedName("pay_time")
+  private Long payTime;
+
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java
new file mode 100644
index 0000000000..54e1f0c01f
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java
@@ -0,0 +1,33 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * @author Totoro
+ * @date 2022/6/27 11:38
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseSimpleOrder implements Serializable {
+
+  private static final long serialVersionUID = -4094302825442292644L;
+
+  @SerializedName("order_id")
+  private String orderId;
+  @SerializedName("order_type")
+  private Integer orderType;
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java
new file mode 100644
index 0000000000..f50c3cb5f6
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java
@@ -0,0 +1,46 @@
+package me.chanjar.weixin.cp.bean.license;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 基础的信息
+ * @author Totoro
+ * @date 2022/6/27 15:50
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseTransfer implements Serializable {
+  private static final long serialVersionUID = -5194757640985570778L;
+
+
+  /**
+   * 转移成员加密的userid
+   */
+  @SerializedName("handover_userid")
+  private String handoverUserId;
+
+  /**
+   * 接收成员加密的userid
+   */
+  @SerializedName("takeover_userid")
+  private String takeoverUserId;
+
+  /**
+   * 基础成功标识符,在请求继承的时候无需传入该参数,参数为企业微信返回
+   * 0为成功
+   */
+  @SerializedName("errcode")
+  private Integer errCode;
+
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java
new file mode 100644
index 0000000000..c9e42650d3
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java
@@ -0,0 +1,35 @@
+package me.chanjar.weixin.cp.bean.license.account;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveCodeInfo;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 某个企业成员的激活情况
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95555
+ * @author Totoro
+ * @date 2022-6-27 14:51:19
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseActiveInfoByUserResp extends WxCpBaseResp {
+  private static final long serialVersionUID = -5172901191911873330L;
+
+
+  @SerializedName("active_status")
+  private Integer activeStatus;
+
+  @SerializedName("active_info_list")
+  private List activeInfoList;
+
+
+  public static WxCpTpLicenseActiveInfoByUserResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseActiveInfoByUserResp.class);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java
new file mode 100644
index 0000000000..4f394af621
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java
@@ -0,0 +1,34 @@
+package me.chanjar.weixin.cp.bean.license.account;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveAccount;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 批量激活帐号结果
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95553
+ * @author Totoro
+ * @date 2022-6-27 16:19:21
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseBatchActiveResultResp extends WxCpBaseResp {
+
+  private static final long serialVersionUID = 8799524570217687659L;
+
+  @SerializedName("active_result")
+  private List activeResults;
+
+
+
+
+  public static WxCpTpLicenseBatchActiveResultResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchActiveResultResp.class);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java
new file mode 100644
index 0000000000..08a12d1785
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java
@@ -0,0 +1,34 @@
+package me.chanjar.weixin.cp.bean.license.account;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveCodeInfo;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 批量查询的激活码详情
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95553
+ * @author Totoro
+ * @date 2022-6-27 14:51:19
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseBatchCodeInfoResp extends WxCpBaseResp {
+  private static final long serialVersionUID = 1327038464020790843L;
+
+  @SerializedName("active_info_list")
+  private List activeCodeInfoList;
+
+  @SerializedName("invalid_active_code_list")
+  private List invalidActiveCodeList;
+
+
+  public static WxCpTpLicenseBatchCodeInfoResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchCodeInfoResp.class);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java
new file mode 100644
index 0000000000..737f891e47
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java
@@ -0,0 +1,32 @@
+package me.chanjar.weixin.cp.bean.license.account;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseTransfer;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 基础结果返回信息
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95673
+ * @author Totoro
+ * @date 2022/6/27 15:49
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseBatchTransferResp extends WxCpBaseResp {
+  private static final long serialVersionUID = 5443977430756597486L;
+
+  @SerializedName("transfer_result")
+  private List transferResult;
+
+  public static WxCpTpLicenseBatchTransferResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchTransferResp.class);
+  }
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java
new file mode 100644
index 0000000000..9c1c72402d
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java
@@ -0,0 +1,29 @@
+package me.chanjar.weixin.cp.bean.license.account;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveCodeInfo;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 查询的激活码详情
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95553
+ * @author Totoro
+ * @date 2022/6/27 14:28
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseCodeInfoResp extends WxCpBaseResp {
+  private static final long serialVersionUID = 8058798194938243361L;
+
+  @SerializedName("active_info")
+  private WxCpTpLicenseActiveCodeInfo activeCodeInfo;
+
+
+  public static WxCpTpLicenseCodeInfoResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCodeInfoResp.class);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java
new file mode 100644
index 0000000000..623a8e1945
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java
@@ -0,0 +1,37 @@
+package me.chanjar.weixin.cp.bean.license.account;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseCorpAccount;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 企业的帐号列表(已激活)
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95544
+ * @author Totoro
+ * @date 2022/6/27 15:15
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseCorpAccountListResp extends WxCpBaseResp {
+  private static final long serialVersionUID = -7976008813041959375L;
+
+  @SerializedName("next_cursor")
+  private String nextCursor;
+
+  @SerializedName("has_more")
+  private Integer hasMore;
+
+  @SerializedName("account_list")
+  private List orderList;
+
+
+  public static WxCpTpLicenseCorpAccountListResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCorpAccountListResp.class);
+  }
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java
new file mode 100644
index 0000000000..d5d0d14e0c
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java
@@ -0,0 +1,31 @@
+package me.chanjar.weixin.cp.bean.license.order;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 订单创建结果
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95644
+ * @author Totoro
+ * @date 2022-6-27 11:26:36
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseCreateOrderResp extends WxCpBaseResp {
+  private static final long serialVersionUID = 6644560301282598903L;
+
+  @SerializedName("order_id")
+  private String orderId;
+
+
+  public static WxCpTpLicenseCreateOrderResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCreateOrderResp.class);
+  }
+
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java
new file mode 100644
index 0000000000..447fefd105
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java
@@ -0,0 +1,60 @@
+package me.chanjar.weixin.cp.bean.license.order;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccountCount;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccountDuration;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 下单购买帐号
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95644
+ * @author Totoro
+ * @date 2022/6/27 10:52
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseNewOrderRequest implements Serializable {
+  private static final long serialVersionUID = 6644560301282598903L;
+
+  /**
+   * 企业ID
+   */
+  @SerializedName("corpid")
+  private String corpId;
+
+  /**
+   * 购买者ID
+   */
+  @SerializedName("buyer_userid")
+  private String buyerUserId;
+
+  /**
+   * 账号个数
+   */
+  @SerializedName("account_count")
+  private WxCpTpLicenseAccountCount accountCount;
+
+  /**
+   * 购买市场
+   */
+  @SerializedName("account_duration")
+  private WxCpTpLicenseAccountDuration accountDuration;
+
+
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java
new file mode 100644
index 0000000000..bab3aeab47
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java
@@ -0,0 +1,39 @@
+package me.chanjar.weixin.cp.bean.license.order;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccount;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 获取订单中的帐号列表
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95649
+ * @author Totoro
+ * @date 2022-6-27 14:14:40
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxCpTpLicenseOrderAccountListResp extends WxCpBaseResp {
+  private static final long serialVersionUID = 470154227651487230L;
+
+  @SerializedName("next_cursor")
+  private String nextCursor;
+
+  @SerializedName("has_more")
+  private Integer hasMore;
+
+  @SerializedName("account_list")
+  private List accountList;
+
+
+  public static WxCpTpLicenseOrderAccountListResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderAccountListResp.class);
+  }
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java
new file mode 100644
index 0000000000..2d570896f0
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java
@@ -0,0 +1,30 @@
+package me.chanjar.weixin.cp.bean.license.order;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseOrder;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+/**
+ * 订单详情结果
+ * 文档:https://developer.work.weixin.qq.com/document/path/95648
+ * @author Totoro
+ * @date 2022/06/27 11:56:03
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseOrderInfoResp extends WxCpBaseResp {
+
+  private static final long serialVersionUID = 7000171280773370910L;
+
+  private WxCpTpLicenseOrder order;
+
+
+  public static WxCpTpLicenseOrderInfoResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderInfoResp.class);
+  }
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java
new file mode 100644
index 0000000000..51dc7d8da1
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java
@@ -0,0 +1,39 @@
+package me.chanjar.weixin.cp.bean.license.order;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseSimpleOrder;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 获取订单列表详情
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95647
+ * @author Totoro
+ * @date 2022/6/27 11:39
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxCpTpLicenseOrderListResp extends WxCpBaseResp {
+  private static final long serialVersionUID = 1878909432164961275L;
+
+  @SerializedName("next_cursor")
+  private String nextCursor;
+
+  @SerializedName("has_more")
+  private Integer hasMore;
+
+  @SerializedName("order_list")
+  private List orderList;
+
+
+  public static WxCpTpLicenseOrderListResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderListResp.class);
+  }
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java
new file mode 100644
index 0000000000..c50c35f772
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java
@@ -0,0 +1,49 @@
+package me.chanjar.weixin.cp.bean.license.order;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseBaseAccount;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 创建下单续期帐号任务
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95646
+ * @author Totoro
+ * @date 2022/6/27 11:12
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseRenewOrderJobRequest implements Serializable {
+
+  private static final long serialVersionUID = 8074896339359557034L;
+  /**
+   * 对应的企业ID
+   */
+  @SerializedName("corpid")
+  private String corpId;
+  /**
+   * 续费的用户UserId
+   */
+  @SerializedName("account_list")
+  private List accountList;
+  /**
+   * 任务id,若不传则默认创建一个新任务。若指定第一次调用后拿到jobid,可以通过该接口将jobid关联多个userid
+   */
+  @SerializedName("jobid")
+  private String jobId;
+
+
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java
new file mode 100644
index 0000000000..4ec63ec46e
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java
@@ -0,0 +1,43 @@
+package me.chanjar.weixin.cp.bean.license.order;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseInvalidAccount;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.util.List;
+
+/**
+ * 创建下单购买帐号任务返回结果
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95646
+ * @author Totoro
+ * @date 2022-6-27 11:15:20
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WxCpTpLicenseRenewOrderJobResp extends WxCpBaseResp {
+
+  private static final long serialVersionUID = -4469875729545594102L;
+  /**
+   * 任务ID
+   */
+  @SerializedName("jobid")
+  private String jobId;
+  /**
+   * 有效的续费账号列表
+   */
+  @SerializedName("invalid_account_list")
+  private List invalidAccountList;
+
+
+
+  public static WxCpTpLicenseRenewOrderJobResp fromJson(String json) {
+    return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseRenewOrderJobResp.class);
+  }
+
+
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java
new file mode 100644
index 0000000000..a4607f5689
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java
@@ -0,0 +1,38 @@
+package me.chanjar.weixin.cp.bean.license.order;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccountDuration;
+import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
+
+import java.io.Serializable;
+
+/**
+ * 续期帐号订单
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95646
+ * @author Totoro
+ * @date 2022-6-27 11:21:51
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxCpTpLicenseRenewOrderRequest implements Serializable {
+  private static final long serialVersionUID = 8709132346969663049L;
+
+  @SerializedName("buyer_userid")
+  private String buyerUserId;
+  @SerializedName("jobid")
+  private String jobId;
+  @SerializedName("account_duration")
+  private WxCpTpLicenseAccountDuration accountDuration;
+
+
+  public String toJson() {
+    return WxCpGsonBuilder.create().toJson(this);
+  }
+
+
+}
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
index 2215e1096a..26f9edaf31 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java
@@ -271,6 +271,22 @@ interface Tp {
 
   }
 
+  interface License {
+    String CREATE_NEW_ORDER = "/cgi-bin/license/create_new_order";
+    String CREATE_RENEW_ORDER_JOB = "/cgi-bin/license/create_renew_order_job";
+    String SUBMIT_ORDER_JOB = "/cgi-bin/license/submit_order_job";
+    String LIST_ORDER = "/cgi-bin/license/list_order";
+    String GET_ORDER = "/cgi-bin/license/get_order";
+    String LIST_ORDER_ACCOUNT = "/cgi-bin/license/list_order_account";
+    String ACTIVE_ACCOUNT = "/cgi-bin/license/active_account";
+    String BATCH_ACTIVE_ACCOUNT = "/cgi-bin/license/batch_active_account";
+    String GET_ACTIVE_INFO_BY_CODE = "/cgi-bin/license/get_active_info_by_code";
+    String BATCH_GET_ACTIVE_INFO_BY_CODE = "/cgi-bin/license/batch_get_active_info_by_code";
+    String LIST_ACTIVED_ACCOUNT = "/cgi-bin/license/list_actived_account";
+    String GET_ACTIVE_INFO_BY_USER = "/cgi-bin/license/get_active_info_by_user";
+    String BATCH_TRANSFER_LICENSE = "/cgi-bin/license/batch_transfer_license";
+  }
+
   interface User {
     String USER_AUTHENTICATE = "/cgi-bin/user/authsucc?userid=";
     String USER_CREATE = "/cgi-bin/user/create";
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java
index aed02d92f0..e050c21155 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpTpConsts.java
@@ -72,6 +72,23 @@ public static class InfoType {
      */
     public static final String CHANGE_EDITION = "change_editon";
 
+
+    /**
+     * 接口许可失效通知
+     */
+    public static final String UNLICENSED_NOTIFY = "unlicensed_notify";
+
+    /**
+     * 支付成功通知
+     */
+    public static final String LICENSE_PAY_SUCCESS = "license_pay_success";
+
+    /**
+     * 退款结果通知
+     */
+    public static final String LICENSE_REFUND = "license_refund";
+
+
   }
 
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java
new file mode 100644
index 0000000000..8f25e5e5e8
--- /dev/null
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java
@@ -0,0 +1,212 @@
+package me.chanjar.weixin.cp.tp.service;
+
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveAccount;
+import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseTransfer;
+import me.chanjar.weixin.cp.bean.license.account.*;
+import me.chanjar.weixin.cp.bean.license.order.*;
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 
+ * 服务商接口调用许可相关接口
+ * 文档地址:https://developer.work.weixin.qq.com/document/path/95652
+ * 
+ * @author Totoro + * @date 2022/6/27 10:57 + */ +public interface WxCpTpLicenseService { + + + /** + * 下单购买帐号 + * 服务商下单为企业购买新的帐号,可以同时购买基础帐号与互通帐号。 + * 下单之后,需要到服务商管理端发起支付,支付完成之后,订单才能生效。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95644 + * @param licenseNewOrderRequest 订单信息 + * @return 订单ID + * @throws WxErrorException; + */ + WxCpTpLicenseCreateOrderResp createNewOrder(WxCpTpLicenseNewOrderRequest licenseNewOrderRequest) throws WxErrorException; + + + /** + * 创建下单续期帐号任务 + *
+   *  可以下单为一批已激活帐号的成员续期,续期下单分为两个步骤:
+   * 传入userid列表创建一个任务,创建之后,可以往同一个任务继续追加待续期的userid列表;
+   * 根据步骤1得到的jobid提交订单。
+   * 
+ * @param licenseRenewOrderJobRequest 续费订单信息 + * @return 返回JobId + * @throws WxErrorException; + */ + WxCpTpLicenseRenewOrderJobResp createRenewOrderJob(WxCpTpLicenseRenewOrderJobRequest licenseRenewOrderJobRequest) throws WxErrorException; + + + + /** + * 提交续期订单 + * 创建续期任务之后,需要调用该接口,以提交订单任务。 + * 注意,提交之后,需要到服务商管理端发起支付,支付完成之后,订单才能生效。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 + * @param licenseRenewOrderRequest 订单信息 + * @return 订单ID + * @throws WxErrorException; + */ + WxCpTpLicenseCreateOrderResp submitRenewOrder(WxCpTpLicenseRenewOrderRequest licenseRenewOrderRequest) throws WxErrorException; + + + /** + * 获取订单列表 + * 服务商查询自己某段时间内的平台能力服务订单列表 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95647 + * @param corpId 企业ID + * @param startTime 开始时间,下单时间。可不填。但是不能单独指定该字段,start_time跟end_time必须同时指定。 + * @param endTime 结束时间,下单时间。起始时间跟结束时间不能超过31天。可不填。但是不能单独指定该字段,start_time跟end_time必须同时指定。 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500 + * @return 订单列表 + * @throws WxErrorException; + */ + WxCpTpLicenseOrderListResp getOrderList(String corpId, Date startTime, Date endTime, String cursor, int limit) throws WxErrorException; + + + /** + * 获取订单详情 + * 查询某个订单的详情,包括订单的状态、基础帐号个数、互通帐号个数、帐号购买时长等。 + * 注意,该接口不返回订单中的帐号激活码列表或者续期的帐号成员列表,请调用获取订单中的帐号列表接口以获取帐号列表。 + * @param orderId 订单ID + * @return 单条订单信息 + * @throws WxErrorException; + */ + WxCpTpLicenseOrderInfoResp getOrderInfo(String orderId) throws WxErrorException; + + + /** + * 查询指定订单下的平台能力服务帐号列表。 + * 若为购买帐号的订单或者存量企业的版本付费迁移订单,则返回帐号激活码列表; + * 若为续期帐号的订单,则返回续期帐号的成员列表。注意,若是购买帐号的订单, + * 则仅订单支付完成时,系统才会生成帐号,故支付完成之前,该接口不会返回帐号激活码。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95649 + * @param orderId 订单ID + * @param limit 大小 + * @param cursor 分页游标 + * @return 订单账号列表 + * @throws WxErrorException; + */ + WxCpTpLicenseOrderAccountListResp getOrderAccountList(String orderId, int limit, String cursor) throws WxErrorException; + + + /** + * 激活帐号 + * 下单购买帐号并支付完成之后,先调用获取订单中的帐号列表接口获取到帐号激活码, + * 然后可以调用该接口将激活码绑定到某个企业员工,以对其激活相应的平台服务能力。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 + * @param code 激活码 + * @param corpId 企业ID + * @param userId 用户ID + * @return 激活结果 + * @throws WxErrorException; + */ + WxCpBaseResp activeCode(String code, String corpId, String userId) throws WxErrorException; + + + /** + * 批量激活帐号 + * 可在一次请求里为一个企业的多个成员激活许可帐号,便于服务商批量化处理。 + * 一个userid允许激活一个基础帐号以及一个互通帐号。 + * 单次激活的员工数量不超过1000 + * @param corpId 企业ID + * @param activeAccountList 激活列表 + * @return 激活结果 + * @throws WxErrorException; + */ + WxCpTpLicenseBatchActiveResultResp batchActiveCode(String corpId, List activeAccountList) throws WxErrorException; + + + /** + * 获取激活码详情 + * 查询某个帐号激活码的状态以及激活绑定情况。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95552 + * @param code 激活码 + * @param corpId 企业ID + * @return 激活码信息 + * @throws WxErrorException; + */ + WxCpTpLicenseCodeInfoResp getActiveInfoByCode(String code, String corpId) throws WxErrorException; + + + /** + * 获取激活码详情 + * 查询某个帐号激活码的状态以及激活绑定情况。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95552 + * @param codes 激活码 + * @param corpId 企业ID + * @return 激活码信息 + * @throws WxErrorException; + */ + WxCpTpLicenseBatchCodeInfoResp batchGetActiveInfoByCode(Collection codes, String corpId) throws WxErrorException; + + + /** + * 获取企业的帐号列表 + * 查询指定企业下的平台能力服务帐号列表。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95544 + * @param corpId 企业ID + * @param limit 大小 + * @param cursor 游标 + * @return 已激活列表 + * @throws WxErrorException + */ + WxCpTpLicenseCorpAccountListResp getCorpAccountList(String corpId, int limit, String cursor) throws WxErrorException; + + + /** + * 获取成员的激活详情 + * 查询某个企业成员的激活情况。 + * 文档地址:https://developer.work.weixin.qq.com/document/path/95555 + * @param corpId 企业ID + * @param userId 用户ID + * @return 激活情况 + * @throws WxErrorException; + */ + WxCpTpLicenseActiveInfoByUserResp getActiveInfoByUser(String corpId, String userId) throws WxErrorException; + + + /** + * 帐号继承 + * 在企业员工离职或者工作范围的有变更时,允许将其许可帐号继承给其他员工。 + * @param corpId 企业ID + * @param transferList 转移列表 + * @return 转移结果 + * @throws WxErrorException; + */ + WxCpTpLicenseBatchTransferResp batchTransferLicense(String corpId, List transferList) throws WxErrorException; + + + + + + + + + + + + + + + + + + + + + + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java index 37405b2e92..8c7615d8d5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java @@ -474,6 +474,21 @@ public interface WxCpTpService { */ void setWxCpTpUserService(WxCpTpUserService wxCpTpUserService); + /** + * set license service + * + * @param wxCpTpLicenseService the oa service + */ + void setWxCpTpLicenseService(WxCpTpLicenseService wxCpTpLicenseService); + + + /** + * get license service + * + * @return getCpTPLicenseService wx cp tp license service + */ + WxCpTpLicenseService getWxCpTpLicenseService(); + /** * 获取应用的管理员列表 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java index a4dbd12480..768164096f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java @@ -50,6 +50,7 @@ public abstract class BaseWxCpTpServiceImpl implements WxCpTpService, Requ private WxCpTpUserService wxCpTpUserService = new WxCpTpUserServiceImpl(this); private WxCpTpOrderService wxCpTpOrderService = new WxCpTpOrderServiceImpl(this); private WxCpTpEditionService wxCpTpEditionService = new WxCpTpEditionServiceImpl(this); + private WxCpTpLicenseService wxCpTpLicenseService = new WxCpTpLicenseServiceImpl(this); /** * 全局的是否正在刷新access token的锁. @@ -547,6 +548,18 @@ public void setWxCpTpOAService(WxCpTpOAService wxCpTpOAService) { this.wxCpTpOAService = wxCpTpOAService; } + + @Override + public WxCpTpLicenseService getWxCpTpLicenseService() { + return wxCpTpLicenseService; + } + + + @Override + public void setWxCpTpLicenseService(WxCpTpLicenseService wxCpTpLicenseService) { + this.wxCpTpLicenseService = wxCpTpLicenseService; + } + @Override public void setWxCpTpUserService(WxCpTpUserService wxCpTpUserService) { this.wxCpTpUserService = wxCpTpUserService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java new file mode 100644 index 0000000000..ea4d3d9c8a --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java @@ -0,0 +1,193 @@ +package me.chanjar.weixin.cp.tp.service.impl; + +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.JsonPrimitive; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveAccount; +import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseTransfer; +import me.chanjar.weixin.cp.bean.license.account.*; +import me.chanjar.weixin.cp.bean.license.order.*; +import me.chanjar.weixin.cp.config.WxCpTpConfigStorage; +import me.chanjar.weixin.cp.tp.service.WxCpTpLicenseService; +import me.chanjar.weixin.cp.tp.service.WxCpTpService; + +import java.util.*; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.License.*; + +/** + * @author Totoro + * @date 2022/6/27 11:03 + */ +@RequiredArgsConstructor +public class WxCpTpLicenseServiceImpl implements WxCpTpLicenseService { + + private final WxCpTpService mainService; + + @Override + public WxCpTpLicenseCreateOrderResp createNewOrder(WxCpTpLicenseNewOrderRequest licenseNewOrderRequest) throws WxErrorException { + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(CREATE_NEW_ORDER) + + getProviderAccessToken(), licenseNewOrderRequest.toJson()); + return WxCpTpLicenseCreateOrderResp.fromJson(resultText); + } + + + @Override + public WxCpTpLicenseRenewOrderJobResp createRenewOrderJob(WxCpTpLicenseRenewOrderJobRequest licenseRenewOrderJobRequest) throws WxErrorException { + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(CREATE_RENEW_ORDER_JOB) + + getProviderAccessToken(), licenseRenewOrderJobRequest.toJson()); + return WxCpTpLicenseRenewOrderJobResp.fromJson(resultText); + } + + + @Override + public WxCpTpLicenseCreateOrderResp submitRenewOrder(WxCpTpLicenseRenewOrderRequest licenseRenewOrderRequest) throws WxErrorException { + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(SUBMIT_ORDER_JOB) + + getProviderAccessToken(), licenseRenewOrderRequest.toJson()); + return WxCpTpLicenseCreateOrderResp.fromJson(resultText); + } + + + @Override + public WxCpTpLicenseOrderListResp getOrderList(String corpId, Date startTime, Date endTime, String cursor, int limit) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("corpid", corpId); + jsonObject.addProperty("cursor", cursor); + jsonObject.addProperty("limit", limit); + if(startTime != null) { + jsonObject.addProperty("start_time", startTime.getTime() / 1000); + } + if(endTime != null) { + jsonObject.addProperty("end_time", endTime.getTime() / 1000); + } + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(LIST_ORDER) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseOrderListResp.fromJson(resultText); + } + + + @Override + public WxCpTpLicenseOrderInfoResp getOrderInfo(String orderId) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("order_id", orderId); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(GET_ORDER) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseOrderInfoResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseOrderAccountListResp getOrderAccountList(String orderId, int limit, String cursor) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("order_id", orderId); + jsonObject.addProperty("cursor", cursor); + jsonObject.addProperty("limit", limit); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(LIST_ORDER_ACCOUNT) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseOrderAccountListResp.fromJson(resultText); + } + + @Override + public WxCpBaseResp activeCode(String code, String corpId, String userId) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("active_code", code); + jsonObject.addProperty("corpid", corpId); + jsonObject.addProperty("userid", userId); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(ACTIVE_ACCOUNT) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpBaseResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseBatchActiveResultResp batchActiveCode(String corpId, List activeAccountList) throws WxErrorException { + Map map = new HashMap<>(2); + map.put("corpid", corpId); + map.put("active_list", activeAccountList); + GsonBuilder gsonBuilder = new GsonBuilder(); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(BATCH_ACTIVE_ACCOUNT) + + getProviderAccessToken(), gsonBuilder.create().toJson(map)); + return WxCpTpLicenseBatchActiveResultResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseCodeInfoResp getActiveInfoByCode(String code, String corpId) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("active_code", code); + jsonObject.addProperty("corpid", corpId); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(GET_ACTIVE_INFO_BY_CODE) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseCodeInfoResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseBatchCodeInfoResp batchGetActiveInfoByCode(Collection codes, String corpId) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + JsonArray list = new JsonArray(); + for (String code : codes) { + list.add(new JsonPrimitive(code)); + } + jsonObject.add("active_code_list", list); + jsonObject.addProperty("corpid", corpId); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(BATCH_GET_ACTIVE_INFO_BY_CODE) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseBatchCodeInfoResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseCorpAccountListResp getCorpAccountList(String corpId, int limit, String cursor) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("corpid", corpId); + jsonObject.addProperty("cursor", cursor); + jsonObject.addProperty("limit", limit); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(LIST_ACTIVED_ACCOUNT) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseCorpAccountListResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseActiveInfoByUserResp getActiveInfoByUser(String corpId, String userId) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("corpid", corpId); + jsonObject.addProperty("userid", userId); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(GET_ACTIVE_INFO_BY_USER) + + getProviderAccessToken(), jsonObject.toString()); + return WxCpTpLicenseActiveInfoByUserResp.fromJson(resultText); + } + + @Override + public WxCpTpLicenseBatchTransferResp batchTransferLicense(String corpId, List transferList) throws WxErrorException { + Map map = new HashMap<>(2); + map.put("corpid", corpId); + map.put("transfer_list", transferList); + GsonBuilder gsonBuilder = new GsonBuilder(); + String resultText = mainService.post(getWxCpTpConfigStorage().getApiUrl(BATCH_TRANSFER_LICENSE) + + getProviderAccessToken(), gsonBuilder.create().toJson(map)); + return WxCpTpLicenseBatchTransferResp.fromJson(resultText); + } + + + /** + * 获取服务商token的拼接参数 + * @return url + * @throws WxErrorException / + */ + private String getProviderAccessToken() throws WxErrorException { + return "?provider_access_token=" + mainService.getWxCpProviderToken(); + } + + + /** + * 获取tp参数配置 + * @return config + */ + private WxCpTpConfigStorage getWxCpTpConfigStorage() { + return mainService.getWxCpTpConfigStorage(); + } + + + + +} diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java new file mode 100644 index 0000000000..00772ad6bb --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java @@ -0,0 +1,457 @@ +package me.chanjar.weixin.cp.tp.service.impl; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.license.*; +import me.chanjar.weixin.cp.bean.license.account.*; +import me.chanjar.weixin.cp.bean.license.order.*; +import me.chanjar.weixin.cp.config.WxCpTpConfigStorage; +import me.chanjar.weixin.cp.config.impl.WxCpTpDefaultConfigImpl; +import me.chanjar.weixin.cp.tp.service.WxCpTpLicenseService; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.*; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.License.*; +import static org.mockito.Matchers.any; +import static org.mockito.Matchers.eq; +import static org.mockito.Mockito.when; +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; + +/** + * 许可证账号服务测试 + * @author Totoro + * @date 2022/6/27 16:34 + */ +public class WxCpTpLicenseServiceImplTest { + + @Mock + private WxCpTpServiceApacheHttpClientImpl wxCpTpService; + + private WxCpTpConfigStorage configStorage; + + private WxCpTpLicenseService wxCpTpLicenseService; + + @BeforeClass + public void setUp() { + MockitoAnnotations.initMocks(this); + configStorage = new WxCpTpDefaultConfigImpl(); + when(wxCpTpService.getWxCpTpConfigStorage()).thenReturn(configStorage); + wxCpTpLicenseService = new WxCpTpLicenseServiceImpl(wxCpTpService); + } + + + @Test + public void testCrateNewOrder() throws WxErrorException { + String orderId = "OASFNAISFASFA252462"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"order_id\": \"OASFNAISFASFA252462\"\n" + + "}"; + String url = configStorage.getApiUrl(CREATE_NEW_ORDER) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseNewOrderRequest orderRequest = WxCpTpLicenseNewOrderRequest.builder() + .accountCount(WxCpTpLicenseAccountCount.builder().baseCount(5).externalContactCount(6).build()) + .buyerUserId("test") + .corpId("test") + .accountDuration(WxCpTpLicenseAccountDuration.builder().months(5).build()) + .build(); + final WxCpTpLicenseCreateOrderResp newOrder = wxCpTpLicenseService.createNewOrder(orderRequest); + assertNotNull(newOrder); + assertEquals(newOrder.getOrderId(), orderId); + } + + + @Test + public void testCreateRenewOrderJob() throws WxErrorException { + String jobId = "test123456"; + String result = "{\n" + + " \"errcode\":0,\n" + + " \"errmsg\":\"ok\",\n" + + " \"jobid\":\"test123456\",\n" + + " \"invalid_account_list\":[\n" + + " {\n" + + " \"errcode\":1,\n" + + " \"errmsg\":\"error\",\n" + + " \"userid\":\"userid1\",\n" + + " \"type\":1\n" + + " },\n" + + " {\n" + + " \"errcode\":0,\n" + + " \"errmsg\":\"ok\",\n" + + " \"userid\":\"userid2\",\n" + + " \"type\":1\n" + + " }\n" + + " ]\n" + + "}"; + String url = configStorage.getApiUrl(CREATE_RENEW_ORDER_JOB) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + List accountList = new ArrayList<>(); + accountList.add(WxCpTpLicenseBaseAccount.builder().type(1).userid("userid1").build()); + accountList.add(WxCpTpLicenseBaseAccount.builder().type(1).userid("userid2").build()); + WxCpTpLicenseRenewOrderJobRequest orderJobRequest = WxCpTpLicenseRenewOrderJobRequest.builder() + .jobId("test123456") + .accountList(accountList).build(); + final WxCpTpLicenseRenewOrderJobResp renewOrderJob = wxCpTpLicenseService.createRenewOrderJob(orderJobRequest); + assertNotNull(renewOrderJob); + + assertEquals(renewOrderJob.getJobId(), jobId); + + assertEquals(renewOrderJob.getInvalidAccountList().size(), accountList.size()); + } + + @Test + public void testSubmitRenewOrderJob() throws WxErrorException { + String orderId = "test5915231"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"order_id\": \"test5915231\"\n" + + "}"; + String url = configStorage.getApiUrl(SUBMIT_ORDER_JOB) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseRenewOrderRequest renewOrderRequest = WxCpTpLicenseRenewOrderRequest.builder() + .jobId("test123456") + .accountDuration(WxCpTpLicenseAccountDuration.builder().months(5).build()) + .buyerUserId("test") + .build(); + WxCpTpLicenseCreateOrderResp createOrderResp = wxCpTpLicenseService.submitRenewOrder(renewOrderRequest); + assertNotNull(createOrderResp); + + assertEquals(createOrderResp.getOrderId(), orderId); + } + + @Test + public void testGetOrderList() throws WxErrorException { + String nextCursor = "DSGAKAFA4524"; + String orderId = "test123"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"next_cursor\":\"DSGAKAFA4524\",\n" + + "\t\"has_more\":1,\n" + + "\t\"order_list\":[\n" + + "\t\t{\n" + + "\t\t\t\"order_id\":\"test123\",\n" + + "\t\t\t\"order_type\":1\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + + String url = configStorage.getApiUrl(LIST_ORDER) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseOrderListResp orderList = wxCpTpLicenseService.getOrderList("test", new Date(), new Date(), null, 10); + assertNotNull(orderList); + + assertEquals(orderList.getNextCursor(), nextCursor); + + assertEquals(orderList.getOrderList().get(0).getOrderId(), orderId); + + } + @Test + public void testGetOrder() throws WxErrorException { + String corpId = "ASFASF4254"; + String orderId = "FASASIFJ9W125234"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"order\":{\n" + + "\t\t\"order_id\":\"FASASIFJ9W125234\",\n" + + "\t\t\"order_type\":1,\n" + + "\t\t\"order_status\":1,\n" + + "\t\t\"corpid\":\"ASFASF4254\",\n" + + "\t\t\"price\":10000,\n" + + "\t\t\"account_count\":{\n" + + "\t \t \"base_count\":100,\n" + + " \t \"external_contact_count\":100\n" + + "\t },\n" + + "\t\t \"account_duration\":\n" + + " \t\t {\n" + + "\t \t \t\"months\":2\n" + + " \t \t \t},\n" + + "\t\t\"create_time\":150000000,\n" + + "\t \"pay_time\":1550000000\n" + + "\t}\n" + + "}"; + String url = configStorage.getApiUrl(GET_ORDER) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseOrderInfoResp orderInfo = wxCpTpLicenseService.getOrderInfo(orderId); + assertNotNull(orderInfo); + + assertNotNull(orderInfo.getOrder()); + + assertEquals(orderInfo.getOrder().getOrderId(), orderId); + + assertEquals(orderInfo.getOrder().getCorpId(), corpId); + + + } + + + @Test + public void testGetOrderAccount() throws WxErrorException { + String orderId = "ASFASF4254"; + String activeCode = "FASASIFJ9W125234"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"next_cursor\": \"ASFASF4254\",\n" + + "\t\"has_more\":1,\n" + + "\t\"account_list\":[\n" + + "\t\t{\n" + + "\t\t\t\"active_code\": \"FASASIFJ9W125234\",\n" + + "\t\t\t\"userid\":\"XXX\",\n" + + "\t\t\t\"type\": 1\n" + + "\t\t},\n" + + "\t\t{\n" + + "\t\t\t\"active_code\": \"code2\",\n" + + "\t\t\t\"userid\":\"XXX\",\n" + + "\t\t\t\"type\": 2\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + + String url = configStorage.getApiUrl(LIST_ORDER_ACCOUNT) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseOrderAccountListResp orderAccountList = wxCpTpLicenseService.getOrderAccountList(orderId, 10, null); + assertNotNull(orderAccountList); + + assertNotNull(orderAccountList.getAccountList()); + + assertEquals(orderAccountList.getAccountList().get(0).getActiveCode(), activeCode); + + + } + + + @Test + public void testActiveAccount() throws WxErrorException { + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\"\n" + + "}"; + + String url = configStorage.getApiUrl(ACTIVE_ACCOUNT) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpBaseResp wxCpBaseResp = wxCpTpLicenseService.activeCode("123456", "123456", "123456"); + assertNotNull(wxCpBaseResp); + } + + @Test + public void testBatchActiveAccount() throws WxErrorException { + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"active_result\":[\n" + + "\t{\n" + + "\t\t\"active_code\" : \"aASFINAJOFASF\",\n" + + "\t\t\"userid\": \"SAGASGSD\",\n" + + "\t\t\"errcode\":0\n" + + "\t},\n" + + "\t{\n" + + "\t\t\"active_code\" : \"ASDEGAFAd\",\n" + + "\t\t\"userid\": \"dsfafD\",\n" + + "\t\t\"errcode\":0\n" + + "\t}]\n" + + "}"; + String url = configStorage.getApiUrl(BATCH_ACTIVE_ACCOUNT) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + List accountList = new ArrayList<>(); + accountList.add(WxCpTpLicenseActiveAccount.builder().userid("SAGASGSD").activeCode("aASFINAJOFASF").build()); + accountList.add(WxCpTpLicenseActiveAccount.builder().userid("dsfafD").activeCode("ASDEGAFAd").build()); + WxCpTpLicenseBatchActiveResultResp wxCpTpLicenseBatchActiveResultResp = wxCpTpLicenseService.batchActiveCode("123456", accountList); + assertNotNull(wxCpTpLicenseBatchActiveResultResp); + + assertEquals(wxCpTpLicenseBatchActiveResultResp.getActiveResults().size(), accountList.size()); + + assertEquals(wxCpTpLicenseBatchActiveResultResp.getActiveResults().get(0).getActiveCode(), "aASFINAJOFASF"); + } + + + @Test + public void testGetActiveInfoByCode() throws WxErrorException { + String activeCode = "asgasfasfa"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"active_info\": {\n" + + "\t\t\"active_code\": \"asgasfasfa\",\n" + + "\t\t\"type\": 1,\n" + + "\t\t\"status\": 1,\n" + + "\t\t\"userid\": \"asfasgasg\",\n" + + "\t\t\"create_time\":1640966400,\n" + + "\t\t\"active_time\": 1640966400,\n" + + "\t\t\"expire_time\":1640966400\n" + + "\t}\n" + + "}"; + + String url = configStorage.getApiUrl(GET_ACTIVE_INFO_BY_CODE) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseCodeInfoResp activeInfoByCode = wxCpTpLicenseService.getActiveInfoByCode("123456", "safasg"); + assertNotNull(activeInfoByCode); + + assertEquals(activeInfoByCode.getActiveCodeInfo().getActiveCode(), activeCode); + + + } + + + @Test + public void testGetActiveInfoByUser() throws WxErrorException { + String activeCode = "asfaisfhiuaw"; + String userid = "asfasgasga"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"active_status\": 1,\n" + + "\t\"active_info_list\": \n" + + "\t[\n" + + "\t\t {\n" + + "\t\t\t\"active_code\": \"asfaisfhiuaw\",\n" + + "\t\t\t\"type\": 1,\n" + + "\t\t\t\"userid\": \"asfasgasga\",\n" + + "\t\t\t\"active_time\": 1640966400,\n" + + "\t\t\t\"expire_time\":1640966400\n" + + " \t \t },\n" + + " {\n" + + "\t\t\t\"active_code\": \"gasdawsd\",\n" + + "\t\t\t\"type\": 2,\n" + + "\t\t\t\"userid\": \"asdfasfasf\",\n" + + "\t\t\t\"active_time\":1640966400,\n" + + "\t\t\t\"expire_time\":1640966400\n" + + "\t\t }\n" + + " ]\n" + + "}"; + + String url = configStorage.getApiUrl(GET_ACTIVE_INFO_BY_USER) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseActiveInfoByUserResp activeInfoByUser = wxCpTpLicenseService.getActiveInfoByUser("123456", userid); + assertNotNull(activeInfoByUser); + + assertEquals(activeInfoByUser.getActiveStatus().intValue(), 1); + + assertEquals(activeInfoByUser.getActiveInfoList().get(0).getActiveCode(), activeCode); + } + + @Test + public void testBatchGetActiveInfoByUser() throws WxErrorException { + String activeCode = "asgasgasgas"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"active_info_list\": [\n" + + "\t\t{\n" + + "\t\t\t\"active_code\": \"asgasgasgas\",\n" + + "\t\t\t\"type\": 1,\n" + + "\t\t\t\"status\": 1,\n" + + "\t\t\t\"userid\": \"gadfFDF\",\n" + + "\t\t\t\"create_time\":1640966400,\n" + + "\t\t\t\"active_time\": 1640966400,\n" + + "\t\t\t\"expire_time\":1640966400\n" + + "\t\t},\n" + + "\t\t{\n" + + "\t\t\t\"active_code\": \"awsgdgasdasd\",\n" + + "\t\t\t\"type\": 2,\n" + + "\t\t\t\"status\": 1,\n" + + "\t\t\t\"userid\": \"SGASRDASGAQ\",\n" + + "\t\t\t\"create_time\":1640966400,\n" + + "\t\t\t\"active_time\": 1640966400,\n" + + "\t\t\t\"expire_time\":1640966400\n" + + "\t\t}\n" + + "\t],\n" + + "\t\"invalid_active_code_list\":[\"fasgasga\"]\n" + + "}"; + + + String url = configStorage.getApiUrl(BATCH_GET_ACTIVE_INFO_BY_CODE) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + Set codes = new HashSet<>(); + codes.add("asgasgasgas"); + codes.add("awsgdgasdasd"); + codes.add("fasgasga"); + WxCpTpLicenseBatchCodeInfoResp codeInfoResp = wxCpTpLicenseService.batchGetActiveInfoByCode(codes, "asfasfas"); + assertNotNull(codeInfoResp); + + assertEquals(codeInfoResp.getActiveCodeInfoList().size() , codes.size() - 1); + + assertNotNull(codeInfoResp.getInvalidActiveCodeList()); + + + } + + + @Test + public void testGetCorpAccountList() throws WxErrorException { + String nextCursor = "asfasdfas"; + String userid = "asdasdasd"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"next_cursor\":\"asfasdfas\",\n" + + "\t\"has_more\":1,\n" + + "\t\"account_list\":[\n" + + "\t\t{\n" + + "\t\t\t\"userid\": \"asdasdasd\",\n" + + "\t\t\t\"type\": 1,\n" + + "\t\t\t\"expire_time\":1500000000,\n" + + "\t\t\t\"active_time\":1500000000\n" + + "\t\t},\n" + + "\t\t{\n" + + "\t\t\t\"userid\": \"asgasgasdasd\",\n" + + "\t\t\t\"type\": 1,\n" + + "\t\t\t\"expire_time\":1500000000,\n" + + "\t\t\t\"active_time\":1500000000\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + + String url = configStorage.getApiUrl(LIST_ACTIVED_ACCOUNT) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + WxCpTpLicenseCorpAccountListResp accountList = wxCpTpLicenseService.getCorpAccountList("123456", 10, null); + assertNotNull(accountList); + + assertNotNull(accountList.getOrderList()); + + assertEquals(accountList.getNextCursor(), nextCursor); + + assertEquals(accountList.getOrderList().get(0).getUserid(), userid); + } + + + @Test + public void testBatchTransferLicense() throws WxErrorException { + String handoverUserid = "dazdasfasf"; + String takeoverUserid = "asfasfasf"; + String result = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"transfer_result\":[\n" + + "\t{\n" + + "\t\t\"handover_userid\":\"dazdasfasf\",\n" + + "\t\t\"takeover_userid\":\"asfasfasf\",\n" + + "\t\t\"errcode\":0\n" + + "\t}]\n" + + "}"; + + String url = configStorage.getApiUrl(BATCH_TRANSFER_LICENSE) + "?provider_access_token=" + wxCpTpService.getWxCpProviderToken(); + when(wxCpTpService.post(eq(url), any(String.class))).thenReturn(result); + List transferList = new ArrayList<>(); + transferList.add(WxCpTpLicenseTransfer.builder().handoverUserId(handoverUserid).takeoverUserId(takeoverUserid).build()); + WxCpTpLicenseBatchTransferResp licenseBatchTransferResp = wxCpTpLicenseService.batchTransferLicense("123456", transferList); + assertNotNull(licenseBatchTransferResp); + + assertNotNull(licenseBatchTransferResp.getTransferResult()); + + assertEquals(licenseBatchTransferResp.getTransferResult().size(), transferList.size()); + + } + + + + +} From 4b3d59645e0e31ef70f1904fd212f3818893b3a6 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 28 Jun 2022 11:21:57 +0800 Subject: [PATCH 278/622] =?UTF-8?q?:new:=20#2719=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E6=B2=9F=E9=80=9A-=E5=9F=BA=E7=A1=80=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpSchoolUserService.java | 75 ++++++ .../api/impl/WxCpSchoolUserServiceImpl.java | 44 +++ .../cp/bean/school/user/WxCpAllowScope.java | 62 +++++ .../bean/school/user/WxCpExternalContact.java | 250 ++++++++++++++++++ .../bean/school/user/WxCpSubscribeQrCode.java | 36 +++ .../weixin/cp/constant/WxCpApiPathConsts.java | 5 + .../weixin/cp/api/WxCpSchoolUserTest.java | 75 ++++++ 7 files changed, 547 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSubscribeQrCode.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java index 4256352282..031b17ee7c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java @@ -135,6 +135,70 @@ public interface WxCpSchoolUserService { */ WxCpBaseResp deleteDepartment(Integer id) throws WxErrorException; + /** + * 设置关注「学校通知」的模式 + * 可通过此接口修改家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入” + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/set_subscribe_mode?access_token=ACCESS_TOKEN + * + * @param subscribeMode 关注模式, 1:可扫码填写资料加入, 2:禁止扫码填写资料加入 + * @return + * @throws WxErrorException + */ + WxCpBaseResp setSubscribeMode(@NonNull Integer subscribeMode) throws WxErrorException; + + /** + * 获取关注「学校通知」的模式 + * 可通过此接口获取家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入” + *

+ * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_mode?access_token=ACCESS_TOKEN + * + * @return + * @throws WxErrorException + */ + Integer getSubscribeMode() throws WxErrorException; + + /** + * 获取外部联系人详情 + * 学校可通过此接口,根据外部联系人的userid(如何获取?),拉取外部联系人详情。 + *

+ * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=ACCESS_TOKEN&external_userid=EXTERNAL_USERID + * + * @param externalUserId 外部联系人的userid,注意不是学校成员的帐号 + * @return + * @throws WxErrorException + */ + WxCpExternalContact getExternalContact(@NonNull String externalUserId) throws WxErrorException; + + /** + * 获取可使用的家长范围 + * 获取可在微信「学校通知-学校应用」使用该应用的家长范围,以学生或部门列表的形式返回。应用只能给该列表下的家长发送「学校通知」。注意该范围只能由学校的系统管理员在「管理端-家校沟通-配置」配置。 + *

+ * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/agent/get_allow_scope?access_token=ACCESS_TOKEN&agentid=AGENTID + * + * @param agentId + * @return + * @throws WxErrorException + */ + WxCpAllowScope getAllowScope(@NonNull Integer agentId) throws WxErrorException; + + /** + * 外部联系人openid转换 + * 企业和服务商可通过此接口,将微信外部联系人的userid(如何获取?)转为微信openid,用于调用支付相关接口。暂不支持企业微信外部联系人(ExternalUserid为wo开头)的userid转openid。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/convert_to_openid?access_token=ACCESS_TOKEN + * + * @param externalUserId + * @return + * @throws WxErrorException + */ + String convertToOpenId(@NonNull String externalUserId) throws WxErrorException; + /** * 获取部门列表 * 请求方式:GET(HTTPS) @@ -146,6 +210,17 @@ public interface WxCpSchoolUserService { */ WxCpDepartmentList listDepartment(Integer id) throws WxErrorException; + /** + * 获取「学校通知」二维码 + * 学校可通过此接口获取「学校通知」二维码,家长可通过扫描此二维码关注「学校通知」并接收学校推送的消息。 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_qr_code?access_token=ACCESS_TOKEN + * + * @return + * @throws WxErrorException + */ + WxCpSubscribeQrCode getSubscribeQrCode() throws WxErrorException; + /** * 修改自动升年级的配置 * 请求方式: POST(HTTPS) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index c8204c5f5d..3143e592e2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -7,6 +7,7 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.WxCpSchoolUserService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; @@ -15,6 +16,7 @@ import java.util.List; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.ExternalContact.*; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.School.*; /** @@ -125,6 +127,41 @@ public WxCpBaseResp deleteDepartment(Integer id) throws WxErrorException { return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpBaseResp setSubscribeMode(@NonNull Integer subscribeMode) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SET_SUBSCRIBE_MODE); + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("subscribe_mode", subscribeMode); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpBaseResp.fromJson(responseContent); + } + + @Override + public Integer getSubscribeMode() throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_SUBSCRIBE_MODE); + String responseContent = this.cpService.get(apiUrl, null); + return GsonParser.parse(responseContent).get("subscribe_mode").getAsInt(); + } + + @Override + public WxCpExternalContact getExternalContact(@NonNull String externalUserId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(EXTERNAL_CONTACT_GET) + externalUserId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpExternalContact.fromJson(responseContent); + } + + @Override + public WxCpAllowScope getAllowScope(@NonNull Integer agentId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_ALLOW_SCOPE) + agentId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpAllowScope.fromJson(responseContent); + } + + @Override + public String convertToOpenId(@NonNull String externalUserId) throws WxErrorException { + return cpService.getExternalContactService().convertToOpenid(externalUserId); + } + @Override public WxCpDepartmentList listDepartment(Integer id) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DEPARTMENT_LIST) + id; @@ -132,6 +169,13 @@ public WxCpDepartmentList listDepartment(Integer id) throws WxErrorException { return WxCpDepartmentList.fromJson(responseContent); } + @Override + public WxCpSubscribeQrCode getSubscribeQrCode() throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_SUBSCRIBE_QR_CODE); + String responseContent = this.cpService.get(apiUrl, null); + return WxCpSubscribeQrCode.fromJson(responseContent); + } + @Override public WxCpSetUpgradeInfo setUpgradeInfo(Long upgradeTime, Integer upgradeSwitch) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(SET_UPGRADE_INFO); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java new file mode 100644 index 0000000000..b5a594e19c --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java @@ -0,0 +1,62 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取可使用的家长范围 返回结果. + * + * @author Wang_Wong + */ +@Data +public class WxCpAllowScope extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("allow_scope") + private AllowScope allowScope; + + @Setter + @Getter + public static class AllowScope implements Serializable { + + @SerializedName("students") + private List students; + + @SerializedName("departments") + private List departments; + + public static AllowScope fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, AllowScope.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + public static class Student implements Serializable { + + @SerializedName("userid") + private String userId; + + } + + public static WxCpAllowScope fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpAllowScope.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java new file mode 100644 index 0000000000..d36ba92a33 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java @@ -0,0 +1,250 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取外部联系人详情 + * https://developer.work.weixin.qq.com/document/path/91670 + * + * @author Wang_Wong + * @date: 2022/6/27 9:10 + */ +@Data +public class WxCpExternalContact extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = 4311777322534499260L; + + @SerializedName("external_contact") + private ExternalContact externalContact; + + @SerializedName("follow_user") + private List followedUsers; + + @Getter + @Setter + public static class WxCpFollowUser implements Serializable { + private static final long serialVersionUID = -4301684507150486556L; + + @SerializedName("userid") + private String userId; + + private String remark; + + private String description; + + @SerializedName("createtime") + private Long createTime; + + private String state; + + @SerializedName("remark_mobiles") + private String[] remarkMobiles; + + @SerializedName("remark_corp_name") + private String remarkCorpName; + + private Tag[] tags; + + public static WxCpFollowUser fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpFollowUser.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class Tag implements Serializable { + private static final long serialVersionUID = -7556237053703295482L; + + /** + * 该成员添加此外部联系人所打标签的分组名称(标签功能需要企业微信升级到2.7.5及以上版本) + */ + @SerializedName("group_name") + private String groupName; + + /** + * 该成员添加此外部联系人所打标签名称 + */ + @SerializedName("tag_name") + private String tagName; + + /** + * 该成员添加此外部联系人所打标签类型, 1-企业设置, 2-用户自定义 + */ + private int type; + + public static Tag fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Tag.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ExternalContact implements Serializable { + private static final long serialVersionUID = -1049085217436072418L; + + @SerializedName("external_userid") + private String externalUserId; + + @SerializedName("position") + private String position; + + @SerializedName("name") + private String name; + + @SerializedName("avatar") + private String avatar; + + @SerializedName("corp_name") + private String corpName; + + @SerializedName("corp_full_name") + private String corpFullName; + + @SerializedName("type") + private Integer type; + + @SerializedName("gender") + private Integer gender; + + @SerializedName("unionid") + private String unionId; + + @SerializedName("is_subscribe") + private Integer isSubscribe; + + @SerializedName("subscriber_info") + private SubscriberInfo subscriberInfo; + + @SerializedName("external_profile") + private ExternalProfile externalProfile; + + public static ExternalContact fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ExternalContact.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class SubscriberInfo implements Serializable { + private static final long serialVersionUID = -2899906589789022765L; + + @SerializedName("tag_id") + private List tagId; + + @SerializedName("remark_mobiles") + private List remarkMobiles; + + @SerializedName("remark") + private String remark; + + public static SubscriberInfo fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, SubscriberInfo.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class ExternalProfile implements Serializable { + private static final long serialVersionUID = -2899906589789022765L; + + @SerializedName("external_attr") + private List externalAttrs; + + } + + @Getter + @Setter + public static class ExternalAttribute implements Serializable { + private static final long serialVersionUID = -1262278808286421085L; + + private int type; + + private String name; + + private Text text; + + private Web web; + + @SerializedName("miniprogram") + private MiniProgram miniProgram; + + public static ExternalAttribute fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ExternalAttribute.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Getter + @Setter + public static class Text implements Serializable { + private static final long serialVersionUID = -8161579335600269094L; + + private String value; + + } + + @Getter + @Setter + public static class Web implements Serializable { + private static final long serialVersionUID = 3664557135411521862L; + + private String title; + + private String url; + + } + + @Getter + @Setter + public static class MiniProgram implements Serializable { + private static final long serialVersionUID = -5329210594501835796L; + + @SerializedName("pagepath") + private String pagePath; + + private String appid; + + private String title; + + } + + public static WxCpExternalContact fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpExternalContact.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSubscribeQrCode.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSubscribeQrCode.java new file mode 100644 index 0000000000..26879266b6 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpSubscribeQrCode.java @@ -0,0 +1,36 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * 获取「学校通知」二维码 返回结果. + * + * @author Wang_Wong + */ +@Data +public class WxCpSubscribeQrCode extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("qrcode_big") + private String qrCodeBig; + + @SerializedName("qrcode_middle") + private String qrCodeMiddle; + + @SerializedName("qrcode_thumb") + private String qrCodeThumb; + + public static WxCpSubscribeQrCode fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSubscribeQrCode.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 26f9edaf31..04f67f2c60 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -199,6 +199,7 @@ interface School { String GET_PAYMENT_RESULT = "/cgi-bin/school/get_payment_result"; String GET_TRADE = "/cgi-bin/school/get_trade"; + String GET_ALLOW_SCOPE = "/cgi-bin/school/agent/get_allow_scope?agentid="; /** * 上课直播 @@ -379,6 +380,10 @@ interface ExternalContact { String UPLOAD_ATTACHMENT = "/cgi-bin/media/upload_attachment"; + String GET_SUBSCRIBE_QR_CODE = "/cgi-bin/externalcontact/get_subscribe_qr_code"; + String SET_SUBSCRIBE_MODE = "/cgi-bin/externalcontact/set_subscribe_mode"; + String GET_SUBSCRIBE_MODE = "/cgi-bin/externalcontact/get_subscribe_mode"; + String EXTERNAL_CONTACT_GET = "/cgi-bin/externalcontact/get?external_userid="; String ADD_INTERCEPT_RULE = "/cgi-bin/externalcontact/add_intercept_rule"; String UPDATE_INTERCEPT_RULE = "/cgi-bin/externalcontact/update_intercept_rule"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index fbf2e97b40..92bf2adf34 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -44,8 +44,83 @@ public void test() throws WxErrorException { log.info("list:{}", list.toString()); final String userId = "WangKai"; + final String exUserId = "wmOQpTDwAAJFHrryZ8I8ALLEZuLHIUKA"; + /** + * 获取可使用的家长范围 + * https://developer.work.weixin.qq.com/document/path/94895 + */ + String str8 = "{\n" + + " \"errcode\": 0,\n" + + " \"errmsg\": \"ok\",\n" + + " \"allow_scope\": {\n" + + " \"students\": [\n" + + " {\"userid\": \"student1\"},\n" + + " {\"userid\": \"student2\"}\n" + + " ],\n" + + "\t \"departments\": [1, 2]\n" + + " }\n" + + "}"; + WxCpAllowScope cpAllowScope = WxCpAllowScope.fromJson(str8); + log.info("cpAllowScope:{}", cpAllowScope.toJson()); + + WxCpAllowScope allowScope = cpService.getSchoolUserService().getAllowScope(100000); + log.info("allowScope:{}", allowScope); + + /** + * 外部联系人openid转换 + * https://developer.work.weixin.qq.com/document/path/92323 + */ + String openId = cpService.getSchoolUserService().convertToOpenId("wmOQpTDwAAh_sKvmJBJ4FQ0iYAcbppFA"); + log.info("openId:{}", openId); + + /** + * 家校沟通 获取外部联系人详情 + * https://developer.work.weixin.qq.com/document/path/92322 + */ + String str7 = "{\"errcode\":0,\"errmsg\":\"ok\",\"external_contact\":{\"external_userid\":\"woAAAA\",\"name\":\"李四\",\"position\":\"Mangaer\",\"avatar\":\"http://p.qlogo.cn/bizmail/IcsdgagqefergqerhewSdage/0\",\"corp_name\":\"腾讯\",\"corp_full_name\":\"腾讯科技有限公司\",\"type\":2,\"gender\":1,\"unionid\":\"unAAAAA\",\"is_subscribe\":1,\"subscriber_info\":{\"tag_id\":[\"TAG_ID1\",\"TAG_ID2\"],\"remark_mobiles\":[\"10000000000\",\"10000000001\"],\"remark\":\"李小明-爸爸\"},\"external_profile\":{\"external_attr\":[{\"type\":0,\"name\":\"文本名称\",\"text\":{\"value\":\"文本\"}},{\"type\":1,\"name\":\"网页名称\",\"web\":{\"url\":\"http://www.test.com\",\"title\":\"标题\"}},{\"type\":2,\"name\":\"测试app\",\"miniprogram\":{\"appid\":\"wxAAAAA\",\"pagepath\":\"/index\",\"title\":\"my miniprogram\"}}]}},\"follow_user\":[{\"userid\":\"rocky\",\"remark\":\"李部长\",\"description\":\"对接采购事物\",\"createtime\":1525779812,\"tags\":[{\"group_name\":\"标签分组名称\",\"tag_name\":\"标签名称\",\"type\":1}],\"remark_corp_name\":\"腾讯科技\",\"remark_mobiles\":[10000000003,10000000004]},{\"userid\":\"tommy\",\"remark\":\"李总\",\"description\":\"采购问题咨询\",\"createtime\":1525881637,\"state\":\"外联二维码1\"}]}"; + WxCpExternalContact wxCpExternalContact = WxCpExternalContact.fromJson(str7); + log.info("wxCpExternalContact:{}", wxCpExternalContact.toJson()); + +// cpService.getExternalContactService().getExternalContact(); + WxCpExternalContact externalContact = cpService.getSchoolUserService().getExternalContact(exUserId); + log.info("externalContact:{}", externalContact.toJson()); + + /** + * 获取关注「学校通知」的模式 + * 可通过此接口获取家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入” + * https://developer.work.weixin.qq.com/document/path/92290 + */ + Integer subscribeMode = cpService.getSchoolUserService().getSubscribeMode(); + log.info("subscribeMode:{}", subscribeMode); + + /** + * 管理「学校通知」的关注模式 + * 设置关注「学校通知」的模式 + * https://developer.work.weixin.qq.com/document/path/92290 + */ + WxCpBaseResp setSubscribeMode = cpService.getSchoolUserService().setSubscribeMode(1); + log.info("setSubscribeMode:{}", setSubscribeMode.toJson()); + + /** + * 获取「学校通知」二维码 + * https://developer.work.weixin.qq.com/document/path/92320 + */ + String str6 = "{\n" + + " \"errcode\": 0,\n" + + " \"errmsg\": \"ok\",\n" + + " \"qrcode_big\":\"http://p.qpic.cn/wwhead/XXXX\",\n" + + " \"qrcode_middle\":\"http://p.qpic.cn/wwhead/XXXX\",\n" + + " \"qrcode_thumb\":\"http://p.qpic.cn/wwhead/XXXX\"\n" + + "}"; + + WxCpSubscribeQrCode cpSubscribeQrCode = WxCpSubscribeQrCode.fromJson(str6); + log.info("cpSubscribeQrCode:{}", cpSubscribeQrCode.toJson()); + + WxCpSubscribeQrCode subscribeQrCode = cpService.getSchoolUserService().getSubscribeQrCode(); + log.info("subscribeQrCode:{}", subscribeQrCode.toJson()); + /** * 修改自动升年级的配置 * https://developer.work.weixin.qq.com/document/path/92949 From 5f34a8811e8f82b444c4b569657b367758ae80ff Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 28 Jun 2022 11:41:27 +0800 Subject: [PATCH 279/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=94=99=E8=AF=AF=E7=9A=84=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/customs/DeclarationRequest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java index 89b1b79654..64cf86b036 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/customs/DeclarationRequest.java @@ -116,7 +116,7 @@ public class DeclarationRequest implements Serializable { *

*/ @SerializedName(value = "duty") - private String duty; + private Integer duty; /** *
@@ -159,7 +159,7 @@ public class DeclarationRequest implements Serializable {
    * 
*/ @SerializedName(value = "order_fee") - private String orderFee; + private Integer orderFee; /** *
@@ -173,7 +173,7 @@ public class DeclarationRequest implements Serializable {
    * 
*/ @SerializedName(value = "transport_fee") - private String transportFee; + private Integer transportFee; /** *
@@ -187,5 +187,5 @@ public class DeclarationRequest implements Serializable {
    * 
*/ @SerializedName(value = "product_fee") - private String productFee; + private Integer productFee; } From 1b6275afb3d03c4984bc5d6d009d2c26de5743ed Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 28 Jun 2022 11:42:03 +0800 Subject: [PATCH 280/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E8=BE=93=E5=87=BA=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/impl/BaseWxCpServiceImpl.java | 4 +-- .../miniapp/api/impl/BaseWxMaServiceImpl.java | 4 +-- .../mp/api/impl/BaseWxMpServiceImpl.java | 4 +-- .../api/impl/WxOpenServiceAbstractImpl.java | 9 ++++--- .../service/CustomDeclarationService.java | 25 +++++++++++-------- 5 files changed, 25 insertions(+), 21 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index b72f0f0fb9..3f12961dd8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -333,12 +333,12 @@ protected T executeInternal(RequestExecutor executor, String uri, E } if (error.getErrorCode() != 0) { - log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error); throw new WxErrorException(error, e); } return null; } catch (IOException e) { - log.error("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uriWithAccessToken, dataForLog, e.getMessage()); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uriWithAccessToken, dataForLog, e.getMessage()); throw new WxRuntimeException(e); } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index 8151af88b0..314f20de7c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -296,12 +296,12 @@ private T executeInternal(RequestExecutor executor, String uri, E d } if (error.getErrorCode() != 0) { - log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error); throw new WxErrorException(error, e); } return null; } catch (IOException e) { - log.error("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uriWithAccessToken, dataForLog, e.getMessage()); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uriWithAccessToken, dataForLog, e.getMessage()); throw new WxRuntimeException(e); } } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java index 2430f91f2e..b8d1792c24 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java @@ -435,12 +435,12 @@ protected T executeInternal(RequestExecutor executor, String uri, E } if (error.getErrorCode() != 0) { - log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error); throw new WxErrorException(error, e); } return null; } catch (IOException e) { - log.error("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uriWithAccessToken, dataForLog, e.getMessage()); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uriWithAccessToken, dataForLog, e.getMessage()); throw new WxErrorException(e); } } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceAbstractImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceAbstractImpl.java index fa89d09377..845441c2d6 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceAbstractImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceAbstractImpl.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.open.api.impl; +import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; @@ -17,8 +18,8 @@ /** * @author 007 */ +@Slf4j public abstract class WxOpenServiceAbstractImpl implements WxOpenService, RequestHttp { - private final Logger log = LoggerFactory.getLogger(this.getClass()); private WxOpenComponentService wxOpenComponentService = new WxOpenComponentServiceImpl(this); private WxOpenConfigStorage wxOpenConfigStorage; @@ -46,17 +47,17 @@ public void setWxOpenConfigStorage(WxOpenConfigStorage wxOpenConfigStorage) { protected T execute(RequestExecutor executor, String uri, E data) throws WxErrorException { try { T result = executor.execute(uri, data, WxType.Open); - this.log.debug("\n【请求地址】: {}\n【请求参数】:{}\n【响应数据】:{}", uri, data, result); + log.debug("\n【请求地址】: {}\n【请求参数】:{}\n【响应数据】:{}", uri, data, result); return result; } catch (WxErrorException e) { WxError error = e.getError(); if (error.getErrorCode() != 0) { - this.log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uri, data, error); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uri, data, error); throw new WxErrorException(error, e); } return null; } catch (IOException e) { - this.log.error("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uri, data, e.getMessage()); + log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【异常信息】:{}", uri, data, e.getMessage()); throw new WxRuntimeException(e); } } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java index f2980fed43..98f55d51dd 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/CustomDeclarationService.java @@ -13,15 +13,18 @@ */ public interface CustomDeclarationService { - static String DECLARATION_BASE_URL = "https://apihk.mch.weixin.qq.com/global/v3/customs"; + /** + * The constant DECLARATION_BASE_URL. + */ + String DECLARATION_BASE_URL = "https://apihk.mch.weixin.qq.com/global/v3/customs"; /** *
    * 报关API
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_1.shtml
+   * 文档地址: ...
    * 
* - * @param request + * @param request the request * @return 返回数据 declaration result * @throws WxPayException the wx pay exception */ @@ -30,10 +33,10 @@ public interface CustomDeclarationService { /** *
    * 报关查询API
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_3.shtml
+   * 文档地址: ...
    * 
* - * @param request + * @param request the request * @return 返回数据 declaration query result * @throws WxPayException the wx pay exception */ @@ -42,10 +45,10 @@ public interface CustomDeclarationService { /** *
    * 身份信息校验API
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_2.shtml
+   * 文档地址: ...
    * 
* - * @param request + * @param request the request * @return 返回数据 verify certification result * @throws WxPayException the wx pay exception */ @@ -54,10 +57,10 @@ public interface CustomDeclarationService { /** *
    * 报关信息修改API
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_5.shtml
+   * 文档地址: ...
    * 
* - * @param request + * @param request the request * @return 返回数据 declaration result * @throws WxPayException the wx pay exception */ @@ -66,10 +69,10 @@ public interface CustomDeclarationService { /** *
    * 报关重推API
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/declarecustom_ch/chapter3_4.shtml
+   * 文档地址: ...
    * 
* - * @param request + * @param request the request * @return 返回数据 redeclaration result * @throws WxPayException the wx pay exception */ From 9f69e69090dcf845d69fde26e4525bb0fd1024fd Mon Sep 17 00:00:00 2001 From: liucb Date: Tue, 28 Jun 2022 03:46:24 +0000 Subject: [PATCH 281/622] =?UTF-8?q?:art:=20=E5=85=A5=E7=BE=A4=E6=AC=A2?= =?UTF-8?q?=E8=BF=8E=E8=AF=AD=E7=B4=A0=E6=9D=90=E7=AE=A1=E7=90=86=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E4=B8=A4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../external/WxCpGroupWelcomeTemplateResult.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java index 631d6be261..03aadb8db9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.cp.bean.external; +import com.google.gson.annotations.SerializedName; import lombok.*; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.external.msg.*; @@ -33,6 +34,18 @@ public class WxCpGroupWelcomeTemplateResult extends WxCpBaseResp implements Seri private Video video; + /** + * 欢迎语素材id + * https://developer.work.weixin.qq.com/document/path/92366 + */ + @SerializedName("template_id") + private String templateId; + + /** + * 是否通知成员将这条入群欢迎语应用到客户群中,0-不通知,1-通知, 不填则通知 + */ + private Integer notify; + public static WxCpGroupWelcomeTemplateResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupWelcomeTemplateResult.class); } From ba13eef7501ee14b1834b9ac65db6266c877691d Mon Sep 17 00:00:00 2001 From: zainzzz <22514970+zainzzz@users.noreply.github.com> Date: Thu, 30 Jun 2022 11:07:25 +0800 Subject: [PATCH 282/622] =?UTF-8?q?:bug:=E3=80=90=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E5=A4=8Dext=5Fjson=E4=B8=AD=E7=9A=84extAppid?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java index e70daf65ca..73c2356dbb 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitStandardExt.java @@ -40,7 +40,7 @@ public class WxMaOpenCommitStandardExt implements Serializable { /** * 授权小程序Appid,可填入商户小程序AppID,以区分不同商户 */ - @SerializedName("extAppId") + @SerializedName("extAppid") private String extAppId; /** From a17d8ae5a22cd6a4a219837db96bf88c80b6652b Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Thu, 30 Jun 2022 14:18:23 +0800 Subject: [PATCH 283/622] =?UTF-8?q?:new:=20#2721=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E9=80=9A=E8=AE=AF=E5=BD=95-=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/tencent/wework/Finance.java | 6 +- .../weixin/cp/constant/WxCpConsts.java | 52 ++++++++++- .../weixin/cp/api/WxCpMsgAuditTest.java | 55 +++++++++++ .../weixin/cp/api/WxCpSchoolUserTest.java | 92 +++++++++++++++++++ 4 files changed, 201 insertions(+), 4 deletions(-) diff --git a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java index 8571894758..a2bd0175a2 100644 --- a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java +++ b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java @@ -5,9 +5,9 @@ import java.util.List; /** + * 企业微信会话内容存档Finance类 * 注意: - * 此类必须配置在com.tencent.wework路径底下,否则会报错: - * java.lang.UnsatisfiedLinkError: com.xxx.Finance.NewSdk() + * 此类必须配置在com.tencent.wework路径底下,否则会报错:java.lang.UnsatisfiedLinkError: com.xxx.Finance.NewSdk() *

* Q:JAVA版本的sdk报错UnsatisfiedLinkError? * A:请检查是否修改了sdk的包名。 @@ -15,7 +15,7 @@ * 官方文档: * https://developer.work.weixin.qq.com/document/path/91552 * - * @author Wang_Wong + * @author Wang_Wong * @date 2022-01-17 */ @Slf4j diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java index d6c506a695..51219328a9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java @@ -94,7 +94,7 @@ public static class EventType { public static final String TASKCARD_CLICK = "taskcard_click"; /** - * 企业成员添加外部联系人事件推送 + * 企业成员添加外部联系人事件推送 & 会话存档客户同意进行聊天内容存档事件回调事件 */ public static final String CHANGE_EXTERNAL_CONTACT = "change_external_contact"; @@ -143,6 +143,56 @@ public static class EventType { */ public static final String DELETE_SCHEDULE = "delete_schedule"; + /** + * 家校通讯录事件 + */ + public static final String CHANGE_SCHOOL_CONTACT = "change_school_contact"; + + /** + * 产生会话回调事件 + */ + public static final String MSGAUDIT_NOTIFY = "msgaudit_notify"; + + } + + /** + * 会话存档事件CHANGE_TYPE + * https://developer.work.weixin.qq.com/document/path/92005 + */ + @UtilityClass + public static class MsgAuditChangeType { + + public static final String MSG_AUDIT_APPROVED = "msg_audit_approved"; + + } + + /** + * 家校通讯录变更事件CHANGE_TYPE + */ + @UtilityClass + public static class SchoolContactChangeType { + + /** + * 部门变更事件 + * https://developer.work.weixin.qq.com/document/path/92052 + */ + public static final String CREATE_DEPARTMENT = "create_department"; + public static final String UPDATE_DEPARTMENT = "update_department"; + public static final String DELETE_DEPARTMENT = "delete_department"; + + /** + * 成员变更事件 + * https://developer.work.weixin.qq.com/document/path/92032 + */ + public static final String CREATE_STUDENT = "create_student"; + public static final String UPDATE_STUDENT = "update_student"; + public static final String DELETE_STUDENT = "delete_student"; + public static final String CREATE_PARENT = "create_parent"; + public static final String UPDATE_PARENT = "update_parent"; + public static final String DELETE_PARENT = "delete_parent"; + public static final String SUBSCRIBE = "subscribe"; + public static final String UNSUBSCRIBE = "unsubscribe"; + } /** diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java index a07db2edf4..cdd2647c93 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -1,10 +1,16 @@ package me.chanjar.weixin.cp.api; + import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.util.XmlUtils; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.message.WxCpXmlMessage; import me.chanjar.weixin.cp.bean.msgaudit.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.constant.WxCpConsts; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import me.chanjar.weixin.cp.util.xml.XStreamTransformer; +import org.eclipse.jetty.util.ajax.JSON; import org.testng.annotations.Test; import java.io.InputStream; @@ -38,6 +44,55 @@ public void test() throws Exception { cpService = new WxCpServiceImpl(); cpService.setWxCpConfigStorage(config); + + /** + * 客户同意进行聊天内容存档事件回调 + * 配置了客户联系功能的成员添加外部联系人同意进行聊天内容存档时,回调该事件。 + * + * https://developer.work.weixin.qq.com/document/path/92005 + */ + String msgAuditApprovedXml = "\n" + + "\t\n" + + "\t \n" + + "\t1403610513\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + ""; + + final WxCpXmlMessage msgAuditApprovedXmlMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, msgAuditApprovedXml); + msgAuditApprovedXmlMsg.setAllFieldsMap(XmlUtils.xml2Map(msgAuditApprovedXml)); + log.info("msgAuditApprovedXmlMsg:{}", JSON.toString(msgAuditApprovedXmlMsg)); + + /** + * 产生会话回调事件 + * 为了提升企业会话存档的使用性能,降低无效的轮询次数。 + * 当企业收到或发送新消息时,企业微信可以以事件的形式推送到企业指定的url。回调间隔为15秒,在15秒内若有消息则触发回调,若无消息则不会触发回调。 + * + * https://developer.work.weixin.qq.com/document/path/95039 + */ + String msgAuditNotifyXml = "\n" + + " \n" + + " \n" + + " 1629101687\n" + + " \n" + + " 2000004\n" + + " \n" + + ""; + + final WxCpXmlMessage msgAuditNotifyXmlMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, msgAuditNotifyXml); + msgAuditNotifyXmlMsg.setAllFieldsMap(XmlUtils.xml2Map(msgAuditNotifyXml)); + log.info("msgAuditNotifyXmlMsg:{}", JSON.toString(msgAuditNotifyXmlMsg)); + + /** + * 增加变更事件类型:产生会话回调事件 + */ + String msgauditNotify = WxCpConsts.EventType.MSGAUDIT_NOTIFY; + + /** * 仔细配置: * diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index 92bf2adf34..d77d24cbaa 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -4,15 +4,20 @@ import lombok.extern.slf4j.Slf4j; import lombok.var; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.XmlUtils; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.message.WxCpXmlMessage; import me.chanjar.weixin.cp.bean.school.user.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import me.chanjar.weixin.cp.util.xml.XStreamTransformer; +import org.eclipse.jetty.util.ajax.JSON; import org.testng.annotations.Test; import java.io.InputStream; import java.util.List; +import java.util.Map; /** * 企业微信家校沟通相关接口. @@ -47,6 +52,93 @@ public void test() throws WxErrorException { final String exUserId = "wmOQpTDwAAJFHrryZ8I8ALLEZuLHIUKA"; +// String changeContact = WxCpConsts.EventType.CHANGE_CONTACT; + /** + * 增加变更事件类型: + */ +// WxCpConsts.EventType.CHANGE_SCHOOL_CONTACT; +// WxCpConsts.SchoolContactChangeType.DELETE_STUDENT; +// WxCpConsts.SchoolContactChangeType.CREATE_DEPARTMENT; + + /** + * 测试家校通讯录变更回调 + * https://developer.work.weixin.qq.com/document/path/92052 + * + * 新增学生事件 + * 当学校在家校通讯录中新增学生时,回调此事件。 + */ + String createStudentXml = "\n" + + "\t\n" + + "\t \n" + + "\t1403610513\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + ""; + + /** + * 家长取消关注事件 + * 当家长取消关注家校通知时,回调此事件。 + */ + String unSubscribeXml = "\n" + + "\t\n" + + "\t \n" + + "\t1403610513\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + ""; + + /** + * 创建部门事件 + * 当学校在家校通讯录中创建部门时,回调此事件。 + */ + String createDepartmentXml = "\n" + + "\t\n" + + "\t \n" + + "\t1403610513\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + ""; + + /** + * 删除部门事件 + * 当学校删除家校通讯录部门时,回调此事件。 + */ + String deleteDepartmentXml = "\n" + + "\t\n" + + "\t \n" + + "\t1403610513\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + ""; + +// WxCpXmlMessage.fromXml(createStudentXml); + final WxCpXmlMessage createStudentMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, createStudentXml); + Map map1 = XmlUtils.xml2Map(createStudentXml); + createStudentMsg.setAllFieldsMap(map1); + log.info("createStudentMsg:{}", JSON.toString(createStudentMsg)); + + final WxCpXmlMessage unSubscribeMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, unSubscribeXml); + Map map2 = XmlUtils.xml2Map(unSubscribeXml); + unSubscribeMsg.setAllFieldsMap(map2); + log.info("unSubscribeMsg:{}", JSON.toString(unSubscribeMsg)); + + final WxCpXmlMessage createDepartmentMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, createDepartmentXml); + createDepartmentMsg.setAllFieldsMap(XmlUtils.xml2Map(createDepartmentXml)); + log.info("createDepartmentMsg:{}", JSON.toString(createDepartmentMsg)); + + final WxCpXmlMessage deleteDepartmentMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, deleteDepartmentXml); + deleteDepartmentMsg.setAllFieldsMap(XmlUtils.xml2Map(deleteDepartmentXml)); + log.info("deleteDepartmentMsg:{}", JSON.toString(deleteDepartmentMsg)); + + /** * 获取可使用的家长范围 * https://developer.work.weixin.qq.com/document/path/94895 From f19ef3b0976a7ff1fa353a2208e679fc16853f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE=E6=9E=97?= Date: Tue, 5 Jul 2022 02:08:18 +0000 Subject: [PATCH 284/622] =?UTF-8?q?:art:=20=E3=80=90=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E3=80=91=E7=89=B9=E7=BA=A6=E5=95=86=E6=88=B7?= =?UTF-8?q?=E8=BF=9B=E4=BB=B6=E6=8E=A5=E5=8F=A3=E6=A0=B9=E6=8D=AE=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=96=87=E6=A1=A3=E8=B0=83=E6=95=B4=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applyment/ModifySettlementRequest.java | 6 + .../WxPayApplyment4SubCreateRequest.java | 185 +++++++++++++++--- .../bean/applyment/enums/CertTypeEnum.java | 20 +- .../bean/applyment/enums/IdTypeEnum.java | 12 ++ 4 files changed, 187 insertions(+), 36 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/ModifySettlementRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/ModifySettlementRequest.java index 8623b5cd67..e374d952a6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/ModifySettlementRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/ModifySettlementRequest.java @@ -26,6 +26,12 @@ public class ModifySettlementRequest implements Serializable { */ @SerializedName("account_type") private AccountTypeEnum accountType; + /** + * 开户名称 + */ + @SpecEncrypt + @SerializedName("account_name") + private String accountName; /** * 开户银行 */ diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java index fe956af236..481ff1bb38 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java @@ -64,7 +64,7 @@ public class WxPayApplyment4SubCreateRequest implements Serializable { private BankAccountInfo bankAccountInfo; /** - * 结算银行账户 + * 补充材料 */ @SerializedName("addition_info") private AdditionInfo additionInfo; @@ -80,6 +80,17 @@ public class WxPayApplyment4SubCreateRequest implements Serializable { public static class ContactInfo implements Serializable { private static final long serialVersionUID = 1L; + /** + * 超级管理员类型 + * 1、主体为“个体工商户/企业/政府机关/事业单位/社会组织”,可选择:LEGAL:经营者/法人,SUPER:经办人 。(经办人:经商户授权办理微信支付业务的人员)。 + * 枚举值: + * LEGAL:经营者/法人 + * SUPER:经办人 + * 示例值:LEGAL + */ + @SerializedName("contact_type") + private String contactType; + /** * 超级管理员姓名 */ @@ -87,6 +98,22 @@ public static class ContactInfo implements Serializable { @SpecEncrypt private String contactName; + /** + * 超级管理员证件类型 + * 当超级管理员类型是经办人时,请上传超级管理员证件类型。 + * IDENTIFICATION_TYPE_IDCARD:中国大陆居民-身份证 + * IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照 + * IDENTIFICATION_TYPE_HONGKONG_PASSPORT:中国香港居民-来往内地通行证 + * IDENTIFICATION_TYPE_MACAO_PASSPORT:中国澳门居民-来往内地通行证 + * IDENTIFICATION_TYPE_TAIWAN_PASSPORT:中国台湾居民-来往大陆通行证 + * IDENTIFICATION_TYPE_FOREIGN_RESIDENT:外国人居留证 + * IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT:港澳居民证 + * IDENTIFICATION_TYPE_TAIWAN_RESIDENT:台湾居民证 + * 示例值:IDENTIFICATION_TYPE_IDCARD + */ + @SerializedName("contact_id_doc_type") + private String contactIdDocType; + /** * 超级管理员身份证件号码 * 1、“超级管理员身份证号码”与“超级管理员微信openid”,二选一必填。 @@ -97,6 +124,58 @@ public static class ContactInfo implements Serializable { @SpecEncrypt private String contactIdNumber; + /** + * 超级管理员证件正面照片 + * 1、当超级管理员类型是经办人时,请上传超级管理员证件的正面照片。 + * 2、若证件类型为身份证,请上传人像面照片。 + * 3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。 + * 4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。 + * 示例值:jTpGmxUXqRTvDujqhThn4ReFxikqJ5YW6zFQ + */ + @SerializedName("contact_id_doc_copy") + private String contactIdDocCopy; + + /** + * 超级管理员证件反面照片 + * 1、当超级管理员类型是经办人时,请上传超级管理员证件的反面照片。 + * 2、若证件类型为护照,无需上传反面照片。 + * 3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。 + * 4、请上传彩色照片or彩色扫描件or复印件(需加盖公章鲜章),可添加“微信支付”相关水印(如微信支付认证)。 + * 示例值:jTpGmxUX3FBWVQ5NJTZvvDujqhThn4ReFxikqJ5YW6zFQ + */ + @SerializedName("contact_id_doc_copy_back") + private String contactIdDocCopyBack; + + /** + * 超级管理员证件有效期开始时间 + * 1、当超级管理员类型是经办人时,请上传证件有效期开始时间。 + * 2、请按照示例值填写。 + * 3、结束时间大于开始时间。 + * 示例值:2019-06-06 + */ + @SerializedName("contact_period_begin") + private String contactPeriodBegin; + + /** + * 超级管理员证件有效期结束时间 + * 1、当超级管理员类型是经办人时,请上传证件有效期结束时间。 + * 2、请按照示例值填写,若证件有效期为长期,请填写:长期。 + * 3、结束时间大于开始时间。 + * 示例值:2026-06-06 + */ + @SerializedName("contact_period_end") + private String contactPeriodEnd; + + /** + * 业务办理授权函 + * 1、当超级管理员类型是经办人时,请上传业务办理授权函。 + * 2、请参照[示例图]打印业务办理授权函,全部信息需打印,不支持手写商户信息,并加盖公章。 + * 3、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。 + * 示例值:47ZC6GC-vnrbEny_Ie_An5-tCpqxucuxi-vByf3Gjm7KEIUv0OF4wFNIO4kqg05InE4d2I6_H7I4 + */ + @SerializedName("business_authorization_letter") + private String businessAuthorizationLetter; + /** * 超级管理员微信openid * 1、“超级管理员身份证件号码”与“超级管理员微信openid”,二选一必填。 @@ -140,6 +219,12 @@ public static class SubjectInfo implements Serializable { @SerializedName("subject_type") private SubjectTypeEnum subjectType; + /** + * 是否是金融机构 + */ + @SerializedName("finance_institution") + private boolean financeInstitution; + /** * 营业执照 */ @@ -171,11 +256,11 @@ public static class SubjectInfo implements Serializable { private IdentityInfo identityInfo; /** - * 最终受益人信息(UBO] + * 最终受益人信息列表(UBO) */ - @SerializedName("ubo_info") + @SerializedName("ubo_info_list") @SpecEncrypt - private UboInfo uboInfo; + private List uboInfoList; /** * 小微辅助证明材料(subjectType为小微商户时必填) @@ -210,6 +295,21 @@ public static class BusinessLicenseInfo implements Serializable { */ @SerializedName("legal_person") private String legalPerson; + /** + * 注册地址 + */ + @SerializedName("license_address") + private String licenseAddress; + /** + * 有效期限开始日期 + */ + @SerializedName("period_begin") + private String periodBegin; + /** + * 有效期限结束日期 + */ + @SerializedName("period_end") + private String periodEnd; } @Data @@ -255,7 +355,7 @@ public static class CertificateInfo implements Serializable { /** - * 法人姓名 + * 法定代表人 */ @SerializedName("legal_person") private String legalPerson; @@ -314,12 +414,24 @@ public static class OrganizationInfo implements Serializable { public static class IdentityInfo implements Serializable { private static final long serialVersionUID = 1683704338370383827L; + /** + * 证件持有人类型 + */ + @SerializedName("id_holder_type") + private IdTypeEnum idHolderType; + /** * 证件类型 */ @SerializedName("id_doc_type") private IdTypeEnum idDocType; + /** + * 法定代表人说明函 + */ + @SerializedName("authorize_letter_copy") + private IdTypeEnum authorizeLetterCopy; + /** * 身份证信息 */ @@ -357,7 +469,6 @@ public static class IdCardInfo implements Serializable { */ @SerializedName("id_card_national") private String idCardNational; - /** * 身份证姓名 */ @@ -370,6 +481,12 @@ public static class IdCardInfo implements Serializable { @SerializedName("id_card_number") @SpecEncrypt private String idCardNumber; + /** + * 身份证居住地址 + */ + @SerializedName("id_card_address") + @SpecEncrypt + private String idCardAddress; /** * 身份证有效期开始时间 */ @@ -391,10 +508,15 @@ public static class IdCardInfo implements Serializable { public static class IdDocInfo implements Serializable { private static final long serialVersionUID = 7335589815924447719L; /** - * 证件照片 + * 证件正面照片 */ @SerializedName("id_doc_copy") private String idDocCopy; + /** + * 证件反面照片 + */ + @SerializedName("id_doc_copy_back") + private String idDocCopyBack; /** * 证件姓名 @@ -409,6 +531,12 @@ public static class IdDocInfo implements Serializable { @SerializedName("id_doc_number") @SpecEncrypt private String idDocNumber; + /** + * 身份证居住地址 + */ + @SerializedName("id_card_address") + @SpecEncrypt + private String idCardAddress; /** * 证件有效期开始时间 */ @@ -432,45 +560,46 @@ public static class UboInfo implements Serializable { /** * 证件类型 */ - @SerializedName("id_type") - private IdTypeEnum idType; + @SerializedName("ubo_id_doc_type") + private IdTypeEnum uboIdDocType; /** - * 身份证人像面照片 + * 证件正面照片 */ - @SerializedName("id_card_copy") - private String idCardCopy; + @SerializedName("ubo_id_doc_copy") + private String uboIdDocCopy; /** - * 身份证国徽面照片 + * 证件反面照片 */ - @SerializedName("id_card_national") - private String idCardNational; + @SerializedName("ubo_id_doc_copy_back") + private String uboIdDocCopyBack; /** - * 证件照片 + * 证件姓名 */ - @SerializedName("id_doc_copy") - private String idDocCopy; + @SerializedName("ubo_id_doc_name") + @SpecEncrypt + private String uboIdDocName; /** - * 受益人姓名 + * 证件号码 */ - @SerializedName("name") + @SerializedName("ubo_id_doc_number") @SpecEncrypt - private String name; + private String uboIdDocNumber; /** - * 证件号码 + * 证件居住地址 */ - @SerializedName("id_number") + @SerializedName("ubo_id_doc_address") @SpecEncrypt - private String idNumber; + private String uboIdDocAddress; /** * 证件有效期开始时间 */ - @SerializedName("id_period_begin") - private String idPeriodBegin; + @SerializedName("ubo_period_begin") + private String uboPeriodBegin; /** * 证件有效期结束时间 */ - @SerializedName("id_period_end") - private String idPeriodEnd; + @SerializedName("ubo_period_end") + private String uboPeriodEnd; } @Data diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/CertTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/CertTypeEnum.java index f7415fdc3f..91d0c53704 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/CertTypeEnum.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/CertTypeEnum.java @@ -40,14 +40,6 @@ public enum CertTypeEnum { * 基金会法人登记证书 */ CERTIFICATE_TYPE_2396, - /** - * 慈善组织公开募捐资格证书 - */ - CERTIFICATE_TYPE_2397, - /** - * 农民专业合作社法人营业执照 - */ - CERTIFICATE_TYPE_2398, /** * 宗教活动场所登记证 */ @@ -56,5 +48,17 @@ public enum CertTypeEnum { * 其他证书/批文/证明 */ CERTIFICATE_TYPE_2400, + /** + * 执业许可证/执业证 + */ + CERTIFICATE_TYPE_2520, + /** + * 基层群众性自治组织特别法人统一社会信用代码证 + */ + CERTIFICATE_TYPE_2521, + /** + * 农村集体经济组织登记证 + */ + CERTIFICATE_TYPE_2522, ; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/IdTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/IdTypeEnum.java index d65c502b89..a46cc84560 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/IdTypeEnum.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/IdTypeEnum.java @@ -25,5 +25,17 @@ public enum IdTypeEnum { * 中国台湾居民-来往大陆通行证 */ IDENTIFICATION_TYPE_TAIWAN_PASSPORT, + /** + * 外国人居留证 + */ + IDENTIFICATION_TYPE_FOREIGN_RESIDENT, + /** + * 港澳居民证 + */ + IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT, + /** + * 台湾居民证 + */ + IDENTIFICATION_TYPE_TAIWAN_RESIDENT, ; } From 31a18b28a41b2d2c9eaca27f0577583d4c1bbb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=AA=E8=B4=B5=E8=8D=A3?= Date: Wed, 6 Jul 2022 23:45:05 +0800 Subject: [PATCH 285/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java | 3 +++ .../me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java index a950e0c3f4..438ef79fde 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java @@ -30,6 +30,9 @@ public static class Admin extends WxCpBaseResp { @SerializedName("userid") private String userId; + + @SerializedName("open_userid") + private String openUserId; @SerializedName("auth_type") private Integer authType; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index 833ca85438..108fd27e21 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -229,7 +229,7 @@ public static class Agent implements Serializable { * */ @SerializedName("user_limit") - private Integer userLimit; + private Long userLimit; /** * 版本到期时间, 秒级时间戳, 根据需要自行乘以1000(根据购买版本,可能是试用到期时间或付费使用到期时间)。 From 2b93f91af68893a65f6737626a739e4e62f66e2e Mon Sep 17 00:00:00 2001 From: Kiyan Date: Wed, 6 Jul 2022 23:45:53 +0800 Subject: [PATCH 286/622] :art: fix Cannot find the class file for okhttp3.OkHttpClient --- .../wx-java-miniapp-spring-boot-starter/pom.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 9b8abc4936..2959519fe6 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -1,7 +1,5 @@ - + wx-java-spring-boot-starters com.github.binarywang @@ -35,6 +33,16 @@ ${spring.boot.version} provided + + org.jodd + jodd-http + provided + + + com.squareup.okhttp3 + okhttp + provided + @@ -60,4 +68,4 @@ - + \ No newline at end of file From 918daa2a553a77cdce18d0590c55499236386382 Mon Sep 17 00:00:00 2001 From: jianlajideYU <34366905+jianlajideYU@users.noreply.github.com> Date: Wed, 6 Jul 2022 23:48:35 +0800 Subject: [PATCH 287/622] =?UTF-8?q?:art:=20#2726=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=B1=BB=E5=A2=9E=E5=8A=A0=E8=AE=BE=E7=BD=AE=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=9A=84=E8=8E=B7=E5=8F=96accessToken?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/impl/WxMaServiceHttpClientImpl.java | 6 ++++-- .../miniapp/api/impl/WxMaServiceJoddHttpImpl.java | 3 ++- .../miniapp/api/impl/WxMaServiceOkHttpImpl.java | 3 ++- .../binarywang/wx/miniapp/config/WxMaConfig.java | 15 +++++++++++++++ .../config/impl/WxMaDefaultConfigImpl.java | 6 ++++++ .../api/impl/WxOpenInMemoryConfigStorage.java | 1 + 6 files changed, 30 insertions(+), 4 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceHttpClientImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceHttpClientImpl.java index 6914977861..f0816fc85a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceHttpClientImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceHttpClientImpl.java @@ -62,10 +62,12 @@ public HttpType getRequestType() { @Override protected String doGetAccessTokenRequest() throws IOException { - String url = StringUtils.isNotEmpty(this.getWxMaConfig().getApiHostUrl()) ? + String url = StringUtils.isNotEmpty(this.getWxMaConfig().getAccessTokenUrl()) ? + this.getWxMaConfig().getAccessTokenUrl() : StringUtils.isNotEmpty(this.getWxMaConfig().getApiHostUrl()) ? WxMaService.GET_ACCESS_TOKEN_URL.replace("https://api.weixin.qq.com", this.getWxMaConfig().getApiHostUrl()) : WxMaService.GET_ACCESS_TOKEN_URL; - + + url = String.format(url, this.getWxMaConfig().getAppid(), this.getWxMaConfig().getSecret()); HttpGet httpGet = null; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceJoddHttpImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceJoddHttpImpl.java index 90ee6516ae..f14d8cd6dd 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceJoddHttpImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceJoddHttpImpl.java @@ -46,7 +46,8 @@ public HttpType getRequestType() { @Override protected String doGetAccessTokenRequest() throws IOException { - String url = StringUtils.isNotEmpty(this.getWxMaConfig().getApiHostUrl()) ? + String url = StringUtils.isNotEmpty(this.getWxMaConfig().getAccessTokenUrl()) ? + this.getWxMaConfig().getAccessTokenUrl() : StringUtils.isNotEmpty(this.getWxMaConfig().getApiHostUrl()) ? WxMaService.GET_ACCESS_TOKEN_URL.replace("https://api.weixin.qq.com", this.getWxMaConfig().getApiHostUrl()) : WxMaService.GET_ACCESS_TOKEN_URL; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceOkHttpImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceOkHttpImpl.java index 0fa49d9d07..6f1fdbfd9a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceOkHttpImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceOkHttpImpl.java @@ -64,7 +64,8 @@ public HttpType getRequestType() { @Override protected String doGetAccessTokenRequest() throws IOException { - String url = StringUtils.isNotEmpty(this.getWxMaConfig().getApiHostUrl()) ? + String url = StringUtils.isNotEmpty(this.getWxMaConfig().getAccessTokenUrl()) ? + this.getWxMaConfig().getAccessTokenUrl() : StringUtils.isNotEmpty(this.getWxMaConfig().getApiHostUrl()) ? WxMaService.GET_ACCESS_TOKEN_URL.replace("https://api.weixin.qq.com", this.getWxMaConfig().getApiHostUrl()) : WxMaService.GET_ACCESS_TOKEN_URL; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/WxMaConfig.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/WxMaConfig.java index b8ba1e188b..208710b75f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/WxMaConfig.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/WxMaConfig.java @@ -250,4 +250,19 @@ public interface WxMaConfig { * @return 自定义的api域名地址 */ String getApiHostUrl(); + + /** + * 获取自定义的获取accessToken地址,用于向自定义统一服务获取accessToken + * + * @return 自定义的获取accessToken地址 + */ + String getAccessTokenUrl(); + + /** + * 设置自定义的获取accessToken地址 + * 可用于设置获取accessToken的自定义服务 + * + * @param accessTokenUrl 自定义的获取accessToken地址 + */ + void setAccessTokenUrl(String accessTokenUrl); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaDefaultConfigImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaDefaultConfigImpl.java index c05d6f1aa2..074603091c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaDefaultConfigImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaDefaultConfigImpl.java @@ -56,6 +56,7 @@ public class WxMaDefaultConfigImpl implements WxMaConfig { protected volatile Lock cardApiTicketLock = new ReentrantLock(); private volatile ApacheHttpClientBuilder apacheHttpClientBuilder; private String apiHostUrl; + private String accessTokenUrl; /** * 会过期的数据提前过期时间,默认预留200秒的时间 @@ -303,6 +304,11 @@ public void setApiHostUrl(String apiHostUrl) { this.apiHostUrl = apiHostUrl; } + @Override + public void setAccessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + } + @Override public String getAppid() { return appid; diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInMemoryConfigStorage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInMemoryConfigStorage.java index 4a01dd4ec2..f8dd345ee7 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInMemoryConfigStorage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInMemoryConfigStorage.java @@ -257,6 +257,7 @@ private static class WxOpenInnerConfigStorage implements WxMpConfigStorage, WxMa private final String appId; private WxMpHostConfig hostConfig; private String apiHostUrl; + private String accessTokenUrl; /** * 小程序原始ID From f30ac6be6c6f11605d5bc2f8fa9b3e850a9a387b Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Wed, 6 Jul 2022 23:50:32 +0800 Subject: [PATCH 288/622] =?UTF-8?q?:new:=20#2725=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=A2=9E=E5=8A=A0=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E6=B2=9F=E9=80=9A-=E5=8F=91=E9=80=81=E3=80=8C?= =?UTF-8?q?=E5=AD=A6=E6=A0=A1=E9=80=9A=E7=9F=A5=E3=80=8D=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/api/WxConsts.java | 50 ++- .../weixin/cp/api/WxCpMessageService.java | 16 + .../weixin/cp/api/WxCpSchoolUserService.java | 33 ++ .../cp/api/impl/WxCpMessageServiceImpl.java | 11 + .../api/impl/WxCpSchoolUserServiceImpl.java | 21 + .../weixin/cp/bean/article/NewArticle.java | 13 +- .../bean/message/WxCpLinkedCorpMessage.java | 1 + .../message/WxCpSchoolContactMessage.java | 311 ++++++++++++++ .../WxCpSchoolContactMessageSendResult.java | 36 ++ .../user/WxCpBatchCreateStudentRequest.java | 59 +++ .../user/WxCpBatchDeleteStudentRequest.java | 36 ++ .../bean/school/user/WxCpBatchResultList.java | 54 +++ .../user/WxCpBatchUpdateStudentRequest.java | 62 +++ .../weixin/cp/constant/WxCpApiPathConsts.java | 13 + .../weixin/cp/api/WxCpSchoolUserTest.java | 80 ++++ .../api/impl/WxCpMessageServiceImplTest.java | 1 - .../message/WxCpSchoolContactMessageTest.java | 395 ++++++++++++++++++ 17 files changed, 1188 insertions(+), 4 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java index 27b12a9258..5bef9f28a9 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java @@ -10,7 +10,7 @@ /** * 微信开发所使用到的常量类. * - * @author Daniel Qian & binarywang + * @author Daniel Qian & binarywang & Wang_Wong */ public class WxConsts { /** @@ -133,6 +133,54 @@ public static class KefuMsgType { public static final String MP_NEWS_ARTICLE = "mpnewsarticle"; } + /** + * 发送「学校通知」类型 + * https://developer.work.weixin.qq.com/document/path/92321 + */ + public static class SchoolContactMsgType { + + /** + * 文本消息. + */ + public static final String TEXT = "text"; + + /** + * 图片消息. + */ + public static final String IMAGE = "image"; + + /** + * 语音消息. + */ + public static final String VOICE = "voice"; + + /** + * 视频消息. + */ + public static final String VIDEO = "video"; + + /** + * 文件消息 + */ + public static final String FILE = "file"; + + /** + * 图文消息 + */ + public static final String NEWS = "news"; + + /** + * 图文消息(mpnews) + */ + public static final String MPNEWS = "mpnews"; + + /** + * 小程序消息 + */ + public static final String MINIPROGRAM = "miniprogram"; + + } + /** * 企业微信模板卡片消息的卡片类型 */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java index 1b66d00c07..ff71ea0c49 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java @@ -50,4 +50,20 @@ public interface WxCpMessageService { * @throws WxErrorException the wx error exception */ WxCpLinkedCorpMessageSendResult sendLinkedCorpMessage(WxCpLinkedCorpMessage message) throws WxErrorException; + + /** + * 发送「学校通知」 + * https://developer.work.weixin.qq.com/document/path/92321 + *

+ * 学校可以通过此接口来给家长发送不同类型的学校通知,来满足多种场景下的学校通知需求。目前支持的消息类型为文本、图片、语音、视频、文件、图文。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/externalcontact/message/send?access_token=ACCESS_TOKEN + * + * @param message 要发送的消息对象 + * @return + * @throws WxErrorException + */ + WxCpSchoolContactMessageSendResult sendSchoolContactMessage(WxCpSchoolContactMessage message) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java index 031b17ee7c..b12ba0a14a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java @@ -29,6 +29,39 @@ public interface WxCpSchoolUserService { */ WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, @NonNull List departments) throws WxErrorException; + /** + * 批量创建学生 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_student?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBatchResultList batchCreateStudent(@NonNull WxCpBatchCreateStudentRequest request) throws WxErrorException; + + /** + * 批量删除学生 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_student?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBatchResultList batchDeleteStudent(@NonNull WxCpBatchDeleteStudentRequest request) throws WxErrorException; + + /** + * 批量更新学生 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_student?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBatchResultList batchUpdateStudent(@NonNull WxCpBatchUpdateStudentRequest request) throws WxErrorException; + /** * 删除学生 * 请求方式:GET(HTTPS) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java index 9be2f60dfe..37b1d1821c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java @@ -46,4 +46,15 @@ public WxCpLinkedCorpMessageSendResult sendLinkedCorpMessage(WxCpLinkedCorpMessa return WxCpLinkedCorpMessageSendResult.fromJson(this.cpService.post(this.cpService.getWxCpConfigStorage() .getApiUrl(Message.LINKEDCORP_MESSAGE_SEND), message.toJson())); } + + @Override + public WxCpSchoolContactMessageSendResult sendSchoolContactMessage(WxCpSchoolContactMessage message) throws WxErrorException { + if (null == message.getAgentId()) { + message.setAgentId(this.cpService.getWxCpConfigStorage().getAgentId()); + } + + return WxCpSchoolContactMessageSendResult.fromJson(this.cpService.post(this.cpService.getWxCpConfigStorage() + .getApiUrl(Message.EXTERNAL_CONTACT_MESSAGE_SEND), message.toJson())); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index 3143e592e2..cbf0498617 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -47,6 +47,27 @@ public WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpBatchResultList batchCreateStudent(@NonNull WxCpBatchCreateStudentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(BATCH_CREATE_STUDENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBatchResultList.fromJson(responseContent); + } + + @Override + public WxCpBatchResultList batchDeleteStudent(@NonNull WxCpBatchDeleteStudentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(BATCH_DELETE_STUDENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBatchResultList.fromJson(responseContent); + } + + @Override + public WxCpBatchResultList batchUpdateStudent(@NonNull WxCpBatchUpdateStudentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(BATCH_UPDATE_STUDENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBatchResultList.fromJson(responseContent); + } + @Override public WxCpBaseResp deleteStudent(@NonNull String studentUserId) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(DELETE_STUDENT) + studentUserId; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java index 9dd4a40280..f1e199939c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java @@ -20,18 +20,22 @@ @NoArgsConstructor public class NewArticle implements Serializable { private static final long serialVersionUID = 4087852055781140659L; + /** * 标题,不超过128个字节,超过会自动截断 */ private String title; + /** * 描述,不超过512个字节,超过会自动截断 */ private String description; + /** * 点击后跳转的链接。 */ private String url; + /** * 图文消息的图片链接,支持JPG、PNG格式,较好的效果为大图1068*455,小图150*150。 */ @@ -42,9 +46,14 @@ public class NewArticle implements Serializable { */ private String btnText; - /**小程序appid,必须是与当前应用关联的小程序,appid和pagepath必须同时填写,填写后会忽略url字段**/ + /** + * 小程序appid,必须是与当前应用关联的小程序,appid和pagepath必须同时填写,填写后会忽略url字段 + */ private String appid; - /**点击消息卡片后的小程序页面,仅限本小程序内的页面。appid和pagepath必须同时填写,填写后会忽略url字段**/ + /** + * 点击消息卡片后的小程序页面,仅限本小程序内的页面。appid和pagepath必须同时填写,填写后会忽略url字段 + */ private String pagepath; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java index 0e3f670874..042d955bb4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java @@ -21,6 +21,7 @@ /** * 互联企业消息. + * https://developer.work.weixin.qq.com/document/path/90250 * * @author Binary Wang * @date 2020-08-30 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java new file mode 100644 index 0000000000..77ba45de72 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java @@ -0,0 +1,311 @@ +package me.chanjar.weixin.cp.bean.message; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.api.WxConsts.SchoolContactMsgType; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; +import me.chanjar.weixin.cp.bean.article.MpnewsArticle; +import me.chanjar.weixin.cp.bean.article.NewArticle; +import org.apache.commons.lang3.ArrayUtils; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +import static me.chanjar.weixin.common.api.WxConsts.SchoolContactMsgType.*; + +/** + * 发送「学校通知」 + * https://developer.work.weixin.qq.com/document/path/92321 + * + * @author Wang_Wong + * @date 2022-06-29 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpSchoolContactMessage implements Serializable { + private static final long serialVersionUID = 8833792280163704238L; + + /** + * 指定发送对象,0表示发送给家长,1表示发送给学生,2表示发送给家长和学生,默认为0。 + */ + @SerializedName("recv_scope") + private Integer recvScope = 0; + + /** + * 家校通讯录家长列表,recv_scope为0或2表示发送给对应的家长,recv_scope为1忽略,(最多支持1000个) + */ + @SerializedName("to_parent_userid") + private String[] toParentUserId; + + /** + * 家校通讯录学生列表,recv_scope为0表示发送给学生的所有家长,recv_scope为1表示发送给学生,recv_scope为2表示发送给学生和学生的所有家长(最多支持1000个) + */ + @SerializedName("to_student_userid") + private String[] toStudentUserId; + + /** + * 家校通讯录部门列表,recv_scope为0表示发送给班级的所有家长,recv_scope为1表示发送给班级的所有学生,recv_scope为2表示发送给班级的所有学生和家长(最多支持100个) + */ + @SerializedName("to_party") + private String[] toParty; + + /** + * 1表示字段生效,0表示字段无效。recv_scope为0表示发送给学校的所有家长,recv_scope为1表示发送给学校的所有学生,recv_scope为2表示发送给学校的所有学生和家长,默认为0 + */ + @SerializedName("toall") + private Boolean toAll = false; + + /** + * 消息类型 + */ + @SerializedName("msgtype") + private String msgType; + + /** + * 企业应用的id,整型。可在应用的设置页面查看 + */ + @SerializedName("agentid") + private Integer agentId; + + /** + * 消息内容,最长不超过2048个字节(支持id转译) + */ + @SerializedName("content") + private String content; + + /** + * enable_id_trans + * 表示是否开启id转译,0表示否,1表示是,默认0 + */ + @SerializedName("enable_id_trans") + private Boolean enableIdTrans = false; + + /** + * enable_duplicate_check + * 表示是否开启重复消息检查,0表示否,1表示是,默认0 + */ + @SerializedName("enable_duplicate_check") + private Boolean enableDuplicateCheck = false; + + /** + * duplicate_check_interval + * 表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时 + */ + @SerializedName("duplicate_check_interval") + private Integer duplicateCheckInterval; + + /** + * 图片媒体文件id,可以调用上传临时素材接口获取 + */ + @SerializedName("media_id") + private String mediaId; + + /** + * 视频消息的标题,不超过128个字节,超过会自动截断 + */ + @SerializedName("title") + private String title; + + /** + * 视频消息的描述,不超过512个字节,超过会自动截断 + */ + @SerializedName("description") + private String description; + + /** + * 小程序消息封面的mediaid,封面图建议尺寸为520*416 + */ + @SerializedName("thumb_media_id") + private String thumbMediaId; + + /** + * 小程序appid,必须是关联到企业的小程序应用 + */ + @SerializedName("appid") + private String appId; + + /** + * 点击消息卡片后进入的小程序页面路径 + */ + @SerializedName("pagepath") + private String pagePath; + + /** + * 图文消息 + * https://developer.work.weixin.qq.com/document/path/92321#%E5%9B%BE%E6%96%87%E6%B6%88%E6%81%AF + */ + private List articles = new ArrayList<>(); + + /** + * 图文消息(mpnews) + * https://developer.work.weixin.qq.com/document/path/92321#%E5%9B%BE%E6%96%87%E6%B6%88%E6%81%AF%EF%BC%88mpnews%EF%BC%89 + *

+ * mpnews类型的图文消息,跟普通的图文消息一致,唯一的差异是图文内容存储在企业微信。 + * 多次发送mpnews,会被认为是不同的图文,阅读、点赞的统计会被分开计算。 + */ + private List mpNewsArticles = new ArrayList<>(); + + /** + *

+   * 请使用.
+   * {@link SchoolContactMsgType#TEXT}
+   * {@link SchoolContactMsgType#IMAGE}
+   * {@link SchoolContactMsgType#VOICE}
+   * {@link SchoolContactMsgType#VIDEO}
+   * {@link SchoolContactMsgType#NEWS}
+   * {@link SchoolContactMsgType#MPNEWS}
+   * {@link SchoolContactMsgType#MINIPROGRAM}
+   * 
+ * + * @param msgType 消息类型 + */ + public void setMsgType(String msgType) { + this.msgType = msgType; + } + + public String toJson() { + JsonObject messageJson = new JsonObject(); + + if (this.getRecvScope() != null) { + messageJson.addProperty("recv_scope", this.getRecvScope()); + } + + if (ArrayUtils.isNotEmpty(this.getToParentUserId())) { + messageJson.add("to_parent_userid", WxGsonBuilder.create().toJsonTree(this.getToParentUserId())); + } + + if (ArrayUtils.isNotEmpty(this.getToStudentUserId())) { + messageJson.add("to_student_userid", WxGsonBuilder.create().toJsonTree(this.getToStudentUserId())); + } + + if (ArrayUtils.isNotEmpty(this.getToParty())) { + messageJson.add("to_party", WxGsonBuilder.create().toJsonTree(this.getToParty())); + } + + if (this.getToAll() != null) { + messageJson.addProperty("toall", this.getToAll() ? 1 : 0); + } + + messageJson.addProperty("msgtype", this.getMsgType()); + + if (this.getAgentId() != null) { + messageJson.addProperty("agentid", this.getAgentId()); + } + + if (this.getEnableIdTrans() != null && this.getEnableIdTrans()) { + messageJson.addProperty("enable_id_trans", 1); + } + + if (this.getEnableDuplicateCheck() != null && this.getEnableDuplicateCheck()) { + messageJson.addProperty("enable_duplicate_check", 1); + } + + if (this.getDuplicateCheckInterval() != null) { + messageJson.addProperty("duplicate_check_interval", this.getDuplicateCheckInterval()); + } + + this.handleMsgType(messageJson); + + return messageJson.toString(); + } + + /** + * 封装消息类型 + * + * @param messageJson + */ + private void handleMsgType(JsonObject messageJson) { + switch (this.getMsgType()) { + case TEXT: { + JsonObject text = new JsonObject(); + text.addProperty("content", this.getContent()); + messageJson.add("text", text); + break; + } + case IMAGE: { + JsonObject image = new JsonObject(); + image.addProperty("media_id", this.getMediaId()); + messageJson.add("image", image); + break; + } + case FILE: { + JsonObject image = new JsonObject(); + image.addProperty("media_id", this.getMediaId()); + messageJson.add("file", image); + break; + } + case VOICE: { + JsonObject voice = new JsonObject(); + voice.addProperty("media_id", this.getMediaId()); + messageJson.add("voice", voice); + break; + } + case VIDEO: { + JsonObject video = new JsonObject(); + video.addProperty("media_id", this.getMediaId()); + video.addProperty("title", this.getTitle()); + video.addProperty("description", this.getDescription()); + messageJson.add("video", video); + break; + } + case NEWS: { + JsonObject newsJsonObject = new JsonObject(); + JsonArray articleJsonArray = new JsonArray(); + for (NewArticle article : this.getArticles()) { + JsonObject articleJson = new JsonObject(); + articleJson.addProperty("title", article.getTitle()); + articleJson.addProperty("description", article.getDescription()); + articleJson.addProperty("url", article.getUrl()); + articleJson.addProperty("picurl", article.getPicUrl()); + articleJsonArray.add(articleJson); + } + newsJsonObject.add("articles", articleJsonArray); + messageJson.add("news", newsJsonObject); + break; + } + case MPNEWS: { + JsonObject newsJsonObject = new JsonObject(); + JsonArray articleJsonArray = new JsonArray(); + for (MpnewsArticle article : this.getMpNewsArticles()) { + JsonObject articleJson = new JsonObject(); + articleJson.addProperty("title", article.getTitle()); + articleJson.addProperty("thumb_media_id", article.getThumbMediaId()); + articleJson.addProperty("author", article.getAuthor()); + articleJson.addProperty("content_source_url", article.getContentSourceUrl()); + articleJson.addProperty("content", article.getContent()); + articleJson.addProperty("digest", article.getDigest()); + articleJsonArray.add(articleJson); + } + newsJsonObject.add("articles", articleJsonArray); + messageJson.add("mpnews", newsJsonObject); + break; + } + case MINIPROGRAM: { + JsonObject miniprogram = new JsonObject(); + miniprogram.addProperty("appid", this.getAppId()); + miniprogram.addProperty("pagepath", this.getPagePath()); + miniprogram.addProperty("title", this.getTitle()); + miniprogram.addProperty("thumb_media_id", this.getThumbMediaId()); + + messageJson.add("miniprogram", miniprogram); + break; + } + default: { + // do nothing + } + + } + + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java new file mode 100644 index 0000000000..b65e8352d0 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java @@ -0,0 +1,36 @@ +package me.chanjar.weixin.cp.bean.message; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +/** + * 发送「学校通知」返回实体 + * https://developer.work.weixin.qq.com/document/path/92321 + * + * @author Wang_Wong + * @date 2022-06-29 + */ +@Data +public class WxCpSchoolContactMessageSendResult extends WxCpBaseResp { + private static final long serialVersionUID = 3990693822996824333L; + + @SerializedName("invalid_parent_userid") + private String[] invalidParentUserId; + + @SerializedName("invalid_student_userid") + private String[] invalidStudentUserId; + + @SerializedName("invalid_party") + private String[] invalidParty; + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + public static WxCpSchoolContactMessageSendResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolContactMessageSendResult.class); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java new file mode 100644 index 0000000000..60c208895d --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java @@ -0,0 +1,59 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 批量创建学生请求. + * + * @author Wang_Wong + * @date 2022-07-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpBatchCreateStudentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("students") + private List students; + + @Setter + @Getter + public static class Student implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("name") + private String name; + + @SerializedName("department") + private List department; + + public static Student fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Student.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpBatchCreateStudentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpBatchCreateStudentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java new file mode 100644 index 0000000000..801832cb1a --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java @@ -0,0 +1,36 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 批量删除学生请求. + * + * @author Wang_Wong + * @date 2022-07-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpBatchDeleteStudentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("useridlist") + private List userIdList; + + public static WxCpBatchDeleteStudentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpBatchDeleteStudentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java new file mode 100644 index 0000000000..a3cf805db6 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java @@ -0,0 +1,54 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 批量返回结果. + * + * @author Wang_Wong + * @date 2022-07-01 + */ +@Data +public class WxCpBatchResultList extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + @SerializedName("result_list") + private List resultList; + + @Setter + @Getter + public static class ResultList extends WxCpBaseResp{ + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("student_userid") + private String studentUserId; + + public static ResultList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, ResultList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpBatchResultList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpBatchResultList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java new file mode 100644 index 0000000000..1064506724 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java @@ -0,0 +1,62 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 批量更新学生请求. + * + * @author Wang_Wong + * @date 2022-07-01 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpBatchUpdateStudentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("students") + private List students; + + @Setter + @Getter + public static class Student implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("new_student_userid") + private String newStudentUserId; + + @SerializedName("name") + private String name; + + @SerializedName("department") + private List department; + + public static Student fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Student.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpBatchUpdateStudentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpBatchUpdateStudentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 04f67f2c60..042d13485b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -28,6 +28,7 @@ public interface WxCpApiPathConsts { * https://work.weixin.qq.com/api/doc/90000/90135/90235 */ interface Message { + /** * 发送应用消息 */ @@ -40,8 +41,16 @@ interface Message { /** * 互联企业发送应用消息 + * https://developer.work.weixin.qq.com/document/path/90250 */ String LINKEDCORP_MESSAGE_SEND = "/cgi-bin/linkedcorp/message/send"; + + /** + * 发送「学校通知」 + * https://developer.work.weixin.qq.com/document/path/92321 + */ + String EXTERNAL_CONTACT_MESSAGE_SEND = "/cgi-bin/externalcontact/message/send"; + } interface Agent { @@ -183,6 +192,10 @@ interface School { String GET_STUDENT_CUSTOMIZE_HEALTH_INFO = "/cgi-bin/school/user/get_student_customize_health_info"; String GET_HEALTH_QRCODE = "/cgi-bin/school/user/get_health_qrcode"; + String BATCH_CREATE_STUDENT = "/cgi-bin/school/user/batch_create_student"; + String BATCH_DELETE_STUDENT = "/cgi-bin/school/user/batch_delete_student"; + String BATCH_UPDATE_STUDENT = "/cgi-bin/school/user/batch_update_student"; + String CREATE_STUDENT = "/cgi-bin/school/user/create_student"; String DELETE_STUDENT = "/cgi-bin/school/user/delete_student?userid="; String UPDATE_STUDENT = "/cgi-bin/school/user/update_student"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index d77d24cbaa..dca1c04c45 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -52,6 +52,86 @@ public void test() throws WxErrorException { final String exUserId = "wmOQpTDwAAJFHrryZ8I8ALLEZuLHIUKA"; + // 返回值 + String batchResult = "{\n" + + "\t\"errcode\": 1,\n" + + "\t\"errmsg\": \"invalid student_userid: zhangsan\",\n" + + "\t\"result_list\": [\n" + + "\t\t{\n" + + "\t\t\t\"student_userid\": \"zhangsan\",\n" + + "\t\t\t\"errcode\": 1,\n" + + "\t\t\t\"errmsg\": \"invalid student_userid: zhangsan\"\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + + WxCpBatchResultList batchResultList = WxCpBatchResultList.fromJson(batchResult); + log.info("batchResultList: {}", batchResultList.toJson()); + + + /** + * 批量更新学生 + * https://developer.work.weixin.qq.com/document/path/92330 + * + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_student?access_token=ACCESS_TOKEN + */ + String batchUpdateStudent = "{\n" + + "\t\"students\":[\n" + + " {\n" + + "\t\t\t\"student_userid\": \"zhangsan\",\n" + + "\t\t\t\"new_student_userid\":\"zhangsan_new\",\n" + + "\t\t\t\"name\": \"张三\",\n" + + "\t\t\t\"department\": [1, 2]\n" + + "\t\t},\n" + + " {\n" + + "\t\t\t\"student_userid\": \"lisi\",\n" + + "\t\t\t\"name\": \"李四\",\n" + + "\t\t\t\"department\": [3, 4]\n" + + "\t\t}\n" + + " ]\n" + + "}"; + WxCpBatchUpdateStudentRequest batchUpdateStudentRequest = WxCpBatchUpdateStudentRequest.fromJson(batchUpdateStudent); + WxCpBatchResultList list3 = cpService.getSchoolUserService().batchUpdateStudent(batchUpdateStudentRequest); + log.info("list3: {}", list3.toJson()); + + /** + * 批量删除学生 + * https://developer.work.weixin.qq.com/document/path/92329 + * + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_student?access_token=ACCESS_TOKEN + */ + String batchDeleteStudent = "{\n" + + "\t\"useridlist\": [\"zhangsan\", \"lisi\"]\n" + + "}\n"; + WxCpBatchDeleteStudentRequest batchDeleteStudentRequest = WxCpBatchDeleteStudentRequest.fromJson(batchDeleteStudent); + WxCpBatchResultList list2 = cpService.getSchoolUserService().batchDeleteStudent(batchDeleteStudentRequest); + log.info("list2: {}", list2.toJson()); + + /** + * 批量创建学生 + * https://developer.work.weixin.qq.com/document/path/92328 + */ + String batchCreateStudent = "{\n" + + "\t\"students\":[\n" + + " {\n" + + "\t\t\t\"student_userid\": \"zhangsan\",\n" + + "\t\t\t\"name\": \"张三\",\n" + + "\t\t\t\"department\": [1, 2]\n" + + "\t\t},\n" + + " {\n" + + "\t\t\t\"student_userid\": \"lisi\",\n" + + "\t\t\t\"name\": \"李四\",\n" + + "\t\t\t\"department\": [3, 4]\n" + + "\t\t}\n" + + " ]\n" + + "}"; + WxCpBatchCreateStudentRequest batchCreateStudentRequest = WxCpBatchCreateStudentRequest.fromJson(batchCreateStudent); + WxCpBatchResultList list1 = cpService.getSchoolUserService().batchCreateStudent(batchCreateStudentRequest); + log.info("list1: {}", list1.toJson()); + + // String changeContact = WxCpConsts.EventType.CHANGE_CONTACT; /** * 增加变更事件类型: diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java index 3a1e5460fa..d8ba80d996 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java @@ -7,7 +7,6 @@ import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.ApiTestModule; -import me.chanjar.weixin.cp.api.ApiTestModuleWithMockServer; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.message.WxCpLinkedCorpMessage; import me.chanjar.weixin.cp.bean.message.WxCpMessage; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java new file mode 100644 index 0000000000..aa1236c58b --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java @@ -0,0 +1,395 @@ +package me.chanjar.weixin.cp.bean.message; + +import com.google.common.collect.Lists; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.api.WxConsts; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.article.MpnewsArticle; +import me.chanjar.weixin.cp.bean.article.NewArticle; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import org.testng.annotations.Test; + +import java.io.InputStream; + +import static org.assertj.core.api.Assertions.assertThat; + +/** + * 发送「学校通知」消息测试类 + * https://developer.work.weixin.qq.com/document/path/92321 + * + * @author Wang_Wong + * @date 2022-06-29 + */ +@Slf4j +public class WxCpSchoolContactMessageTest { + + private static WxCpConfigStorage wxCpConfigStorage; + private static WxCpService cpService; + + + /** + * 发送「学校通知」 + * 学校可以通过此接口来给家长发送不同类型的学校通知,来满足多种场景下的学校通知需求。目前支持的消息类型为文本、图片、语音、视频、文件、图文。 + * + * https://developer.work.weixin.qq.com/document/path/92321 + * + * 消息体类型请参考测试类 + * WxCpSchoolContactMessageTest + * {@link WxCpSchoolContactMessageTest} + * @throws WxErrorException + */ + @Test + public void testSendSchoolContactMessage() throws WxErrorException { + + InputStream inputStream = ClassLoader.getSystemResourceAsStream("test-config.xml"); + WxCpDemoInMemoryConfigStorage config = WxCpDemoInMemoryConfigStorage.fromXml(inputStream); + + wxCpConfigStorage = config; + cpService = new WxCpServiceImpl(); + cpService.setWxCpConfigStorage(config); + + WxCpSchoolContactMessageSendResult sendResult = this.cpService.getMessageService().sendSchoolContactMessage( + + WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.TEXT) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .content("你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看邮件中心视频实况,聪明避开排队。") + .enableIdTrans(false) + .enableDuplicateCheck(false) + .duplicateCheckInterval(1800) + .build() + + ); + + log.info("sendResult: {}", sendResult.toJson()); + + } + + // WxCpConsts.SchoolContactChangeType + @Test + public void testToJson_text() { + + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.TEXT) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .content("你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看邮件中心视频实况,聪明避开排队。") + .enableIdTrans(false) + .enableDuplicateCheck(false) + .duplicateCheckInterval(1800) + .build(); + + WxCpSchoolContactMessage schoolContactMessage1 = new WxCpSchoolContactMessage(); + schoolContactMessage1.setMsgType(WxConsts.SchoolContactMsgType.TEXT); + schoolContactMessage1.setRecvScope(0); + schoolContactMessage1.setToParentUserId(new String[]{"parent_userid1", "parent_userid2"}); + schoolContactMessage1.setToStudentUserId(new String[]{"student_userid1", "student_userid2"}); + schoolContactMessage1.setToParty(new String[]{"partyid1", "partyid2"}); + schoolContactMessage1.setToAll(false); + schoolContactMessage1.setAgentId(1); + schoolContactMessage1.setContent("你的快递已到,请携带工卡前往邮件中心领取"); + schoolContactMessage1.setEnableIdTrans(false); + schoolContactMessage1.setEnableDuplicateCheck(false); + schoolContactMessage1.setDuplicateCheckInterval(1800); + final String jsonMsg = schoolContactMessage1.toJson(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + "\t\"recv_scope\" : 0,\n" + + "\t\"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + "\t\"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + "\t\"to_party\": [\"partyid1\", \"partyid2\"],\n" + + "\t\"toall\" : 0,\n" + + "\t\"msgtype\" : \"text\",\n" + + "\t\"agentid\" : 1,\n" + + "\t\"text\" : {\n" + + "\t\t\"content\" : \"你的快递已到,请携带工卡前往邮件中心领取。\\n出发前可查看邮件中心视频实况,聪明避开排队。\"\n" + + "\t},\n" + + "\t\"enable_id_trans\": 0,\n" + + "\t\"enable_duplicate_check\": 0,\n" + + "\t\"duplicate_check_interval\": 1800\n" + + "}"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + @Test + public void testToJson_image() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.IMAGE) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .mediaId("MEDIA_ID") + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + "\t\"recv_scope\" : 0,\n" + + "\t\"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + "\t\"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + "\t\"to_party\": [\"partyid1\", \"partyid2\"],\n" + + "\t\"toall\" : 0,\n" + + "\t\"msgtype\" : \"image\",\n" + + "\t\"agentid\" : 1,\n" + + "\t\"image\" : {\n" + + "\t\t\"media_id\" : \"MEDIA_ID\"\n" + + "\t},\n" + + "\t\"enable_duplicate_check\": 0,\n" + + "\t\"duplicate_check_interval\": 1800\n" + + "}"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + @Test + public void testToJson_voice() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.VOICE) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .mediaId("MEDIA_ID") + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + "\t\"recv_scope\" : 0,\n" + + "\t\"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + "\t\"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + "\t\"to_party\": [\"partyid1\", \"partyid2\"],\n" + + "\t\"toall\" : 0,\n" + + "\t\"msgtype\" : \"voice\",\n" + + "\t\"agentid\" : 1,\n" + + "\t\"voice\" : {\n" + + "\t\t\"media_id\" : \"MEDIA_ID\"\n" + + "\t},\n" + + "\t\"enable_duplicate_check\": 0,\n" + + "\t\"duplicate_check_interval\": 1800\n" + + "}"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + @Test + public void testToJson_video() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.VIDEO) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .mediaId("MEDIA_ID") + .title("Title") + .description("Description") + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + "\t\"recv_scope\" : 0,\n" + + "\t\"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + "\t\"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + "\t\"to_party\": [\"partyid1\", \"partyid2\"],\n" + + "\t\"toall\" : 0,\n" + + "\t\"msgtype\" : \"video\",\n" + + "\t\"agentid\" : 1,\n" + + "\t\"video\" : {\n" + + " \"media_id\" : \"MEDIA_ID\",\n" + + " \"title\" : \"Title\",\n" + + " \"description\" : \"Description\"\n" + + "\t},\n" + + "\t\"enable_duplicate_check\": 0,\n" + + "\t\"duplicate_check_interval\": 1800\n" + + "}"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + @Test + public void testToJson_file() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.FILE) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .mediaId("1Yv-zXfHjSjU-7LH-GwtYqDGS-zz6w22KmWAT5COgP7o") + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + "\t\"recv_scope\" : 0,\n" + + "\t\"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + "\t\"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + "\t\"to_party\": [\"partyid1\", \"partyid2\"],\n" + + "\t\"toall\" : 0,\n" + + "\t\"msgtype\" : \"file\",\n" + + "\t\"agentid\" : 1,\n" + + "\t\"file\" : {\n" + + " \"media_id\" : \"1Yv-zXfHjSjU-7LH-GwtYqDGS-zz6w22KmWAT5COgP7o\"\n" + + "\t},\n" + + "\t\"enable_duplicate_check\": 0,\n" + + "\t\"duplicate_check_interval\": 1800\n" + + "}"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + @Test + public void testToJson_news() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.NEWS) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .articles(Lists.newArrayList(NewArticle.builder() + .title("中秋节礼品领取") + .description("今年中秋节公司有豪礼相送") + .url("URL") + .picUrl("http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png") + .build())) + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + " \"recv_scope\" : 0,\n" + + " \"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + " \"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + " \"to_party\": [\"partyid1\", \"partyid2\"],\n" + + " \"toall\" : 0,\n" + + " \"msgtype\" : \"news\",\n" + + " \"agentid\" : 1,\n" + + " \"news\" : {\n" + + " \"articles\" : [\n" + + " {\n" + + " \"title\" : \"中秋节礼品领取\",\n" + + " \"description\" : \"今年中秋节公司有豪礼相送\",\n" + + " \"url\" : \"URL\",\n" + + " \"picurl\" : \"http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png\"\n" + + " }\n" + + "\t\t]\n" + + " },\n" + + " \"enable_id_trans\": 0,\n" + + " \"enable_duplicate_check\": 0,\n" + + " \"duplicate_check_interval\": 1800\n" + + "}"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + + @Test + public void testToJson_mpnews() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.MPNEWS) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .mpNewsArticles(Lists.newArrayList(MpnewsArticle.newBuilder() + .title("Title") + .thumbMediaId("MEDIA_ID") + .author("Author") + .contentSourceUrl("URL") + .content("Content") + .digest("Digest description") + .build())) + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + " \"recv_scope\" : 0,\n" + + " \"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + " \"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + " \"to_party\": [\"partyid1\", \"partyid2\"],\n" + + " \"toall\" : 0,\n" + + " \"msgtype\" : \"mpnews\",\n" + + " \"agentid\" : 1,\n" + + " \"mpnews\" : {\n" + + " \"articles\":[\n" + + " {\n" + + " \"title\": \"Title\", \n" + + " \"thumb_media_id\": \"MEDIA_ID\",\n" + + " \"author\": \"Author\",\n" + + " \"content_source_url\": \"URL\",\n" + + " \"content\": \"Content\",\n" + + " \"digest\": \"Digest description\"\n" + + " }\n" + + " ]\n" + + " },\n" + + " \"enable_id_trans\": 0,\n" + + " \"enable_duplicate_check\": 0,\n" + + " \"duplicate_check_interval\": 1800\n" + + "}\n"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + + @Test + public void testToJson_miniProgram() { + WxCpSchoolContactMessage message = WxCpSchoolContactMessage.builder() + .recvScope(0) + .msgType(WxConsts.SchoolContactMsgType.MINIPROGRAM) + .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) + .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) + .toParty(new String[]{"partyid1", "partyid2"}) + .toAll(false) + .agentId(1) + .appId("APPID") + .title("欢迎报名夏令营") + .thumbMediaId("MEDIA_ID") + .pagePath("PAGE_PATH") + .build(); + + final String json = message.toJson(); + String expectedJson = "{\n" + + " \"recv_scope\" : 0,\n" + + " \"to_parent_userid\": [\"parent_userid1\", \"parent_userid2\"],\n" + + " \"to_student_userid\": [\"student_userid1\", \"student_userid2\"],\n" + + " \"to_party\": [\"partyid1\", \"partyid2\"],\n" + + " \"toall\" : 0,\n" + + " \"agentid\" : 1,\n" + + " \"msgtype\" : \"miniprogram\",\n" + + " \"miniprogram\" : {\n" + + " \"appid\": \"APPID\",\n" + + " \"title\": \"欢迎报名夏令营\",\n" + + " \"thumb_media_id\": \"MEDIA_ID\",\n" + + " \"pagepath\": \"PAGE_PATH\"\n" + + " },\n" + + " \"enable_id_trans\": 0,\n" + + " \"enable_duplicate_check\": 0,\n" + + " \"duplicate_check_interval\": 1800\n" + + "}\n"; + + assertThat(json).isEqualTo(GsonParser.parse(expectedJson).toString()); + } + +} From 188d1e186b7fb4624ac87724f22d4966d90eaeea Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 7 Jul 2022 10:01:04 +0800 Subject: [PATCH 289/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.7?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 3f8f739780..c1a6d6ff42 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 45bd7c3f57..e67a44bb5b 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 1aa2a7db6e..7cc0a6d923 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 2959519fe6..b0bd2bd2a3 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 0ceac547f1..7188f07a5e 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 6cebd0df6d..6554d6d99e 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 7222a46da3..c2821fc9d4 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 35a6548e77..5472b6fcc5 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 486b842086..917a27a05d 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index ce059d1d71..5522250340 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 28bb8aed2d..084ea2dac3 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index ec6c55e3ec..8f1767130d 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 5965f75d98..64466db79c 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 07f3e2728a..851bd16f6b 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 90236b1770..fcd6a92c4c 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 9f8962adf6..cdd01e6fa6 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.6.B + 4.3.7.B weixin-java-qidian From 27bccb3a7e48999d93df8d2d8bbd2664089edd5f Mon Sep 17 00:00:00 2001 From: NaccOll Date: Tue, 12 Jul 2022 16:32:34 +0800 Subject: [PATCH 290/622] :art: remove commons-beanutils dependency --- weixin-java-pay/pom.xml | 5 --- .../service/impl/EcommerceServiceImpl.java | 33 +++++++++++++++++-- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index fcd6a92c4c..5109e93c80 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -35,11 +35,6 @@ commons-lang3 - - commons-beanutils - commons-beanutils - 1.9.4 - org.bouncycastle bcpkix-jdk15on diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java index 23f1cbd8c2..27a34a9e28 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EcommerceServiceImpl.java @@ -13,16 +13,22 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import lombok.RequiredArgsConstructor; -import org.apache.commons.beanutils.BeanMap; import org.apache.commons.lang3.StringUtils; +import java.beans.BeanInfo; +import java.beans.IntrospectionException; +import java.beans.Introspector; +import java.beans.PropertyDescriptor; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.nio.charset.StandardCharsets; import java.security.GeneralSecurityException; import java.text.DateFormat; import java.util.Iterator; import java.util.Map; +import java.util.LinkedHashMap; import java.util.Objects; import java.util.Set; @@ -385,7 +391,7 @@ private boolean verifyNotifySign(SignatureHeader header, String data) { * @return 拼接好的string */ private String parseURLPair(Object o) { - Map map = new BeanMap(o); + Map map = getObjectToMap(o); Set> set = map.entrySet(); Iterator> it = set.iterator(); StringBuilder sb = new StringBuilder(); @@ -399,4 +405,27 @@ private String parseURLPair(Object o) { return sb.deleteCharAt(sb.length() - 1).toString(); } + public static Map getObjectToMap(Object obj) { + try { + Map result = new LinkedHashMap<>(); + final Class beanClass = obj.getClass(); + final BeanInfo beanInfo = Introspector.getBeanInfo(beanClass); + final PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors(); + if (propertyDescriptors != null) { + for (final PropertyDescriptor propertyDescriptor : propertyDescriptors) { + if (propertyDescriptor != null) { + final String name = propertyDescriptor.getName(); + final Method readMethod = propertyDescriptor.getReadMethod(); + if (readMethod != null) { + result.put(name, readMethod.invoke(obj)); + } + } + } + } + return result; + } catch (IllegalAccessException | IntrospectionException | InvocationTargetException ignored) { + return null; + } + } + } From c68f2d2f360101a62ee6869b3273f649d1d9ef62 Mon Sep 17 00:00:00 2001 From: zhongjun Date: Tue, 12 Jul 2022 16:33:34 +0800 Subject: [PATCH 291/622] =?UTF-8?q?:bug:=20#2734=20=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=95=86=E5=AE=B6=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E8=BD=AC=E8=B4=A6=E5=8F=82=E6=95=B0=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/impl/TransferServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java index c0a8f76184..82882b42f6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java @@ -9,6 +9,9 @@ import com.google.gson.GsonBuilder; import lombok.RequiredArgsConstructor; +import java.security.cert.X509Certificate; +import java.util.List; + /** * 商家转账到零钱 * @@ -24,7 +27,11 @@ public class TransferServiceImpl implements TransferService { @Override public TransferBatchesResult transferBatches(TransferBatchesRequest request) throws WxPayException { String url = String.format("%s/v3/transfer/batches", this.payService.getPayBaseUrl()); - RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate()); + List transferDetailList = request.getTransferDetailList(); + X509Certificate validCertificate = this.payService.getConfig().getVerifier().getValidCertificate(); + for (TransferBatchesRequest.TransferDetail detail : transferDetailList) { + RsaCryptoUtil.encryptFields(detail, validCertificate); + } String result = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); return GSON.fromJson(result, TransferBatchesResult.class); } From d166c27fad221e3c12618cded5b65b2801da64eb Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 12 Jul 2022 16:34:23 +0800 Subject: [PATCH 292/622] =?UTF-8?q?:new:=20#2742=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=20=E5=AE=B6=E6=A0=A1?= =?UTF-8?q?=E6=B2=9F=E9=80=9A-=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=B6=E9=95=BF=E6=8E=A5=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpOAuth2Service.java | 15 ++ .../weixin/cp/api/WxCpSchoolUserService.java | 60 +++++++ .../cp/api/impl/WxCpOAuth2ServiceImpl.java | 14 ++ .../api/impl/WxCpSchoolUserServiceImpl.java | 38 ++++ .../weixin/cp/bean/WxCpOauth2UserInfo.java | 5 + .../user/WxCpBatchCreateParentRequest.java | 88 ++++++++++ .../user/WxCpBatchUpdateParentRequest.java | 88 ++++++++++ .../school/user/WxCpCreateParentRequest.java | 3 + .../weixin/cp/constant/WxCpApiPathConsts.java | 4 + .../weixin/cp/api/WxCpSchoolUserTest.java | 163 ++++++++++++++++++ .../bean/WxMaJscode2SessionResult.java | 3 +- 11 files changed, 480 insertions(+), 1 deletion(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java index 7c42ea63fc..f524ac94bb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java @@ -9,6 +9,8 @@ * OAuth2相关管理接口. * Created by BinaryWang on 2017/6/24. *
+ *

+ * 文档1:https://developer.work.weixin.qq.com/document/path/91856 * * @author Binary Wang */ @@ -84,6 +86,19 @@ public interface WxCpOAuth2Service { */ WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErrorException; + /** + * 获取家校访问用户身份 + * 该接口用于根据code获取家长或者学生信息 + *

+ * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo?access_token=ACCESS_TOKEN&code=CODE + * + * @param code + * @return + * @throws WxErrorException + */ + WxCpOauth2UserInfo getSchoolUserInfo(String code) throws WxErrorException; + /** *

    * 使用user_ticket获取成员详情.
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java
index b12ba0a14a..3c64d72bb7 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java
@@ -3,6 +3,7 @@
 import lombok.NonNull;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
+import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo;
 import me.chanjar.weixin.cp.bean.school.user.*;
 
 import java.util.List;
@@ -16,6 +17,32 @@
  */
 public interface WxCpSchoolUserService {
 
+  /**
+   * 获取访问用户身份
+   * 该接口用于根据code获取成员信息
+   * 

+ * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE + * + * @param code + * @return + * @throws WxErrorException + */ + WxCpOauth2UserInfo getUserInfo(@NonNull String code) throws WxErrorException; + + /** + * 获取家校访问用户身份 + * 该接口用于根据code获取家长或者学生信息 + *

+ * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo?access_token=ACCESS_TOKEN&code=CODE + * + * @param code + * @return + * @throws WxErrorException + */ + WxCpOauth2UserInfo getSchoolUserInfo(@NonNull String code) throws WxErrorException; + /** * 创建学生 * 请求方式:POST(HTTPS) @@ -98,6 +125,39 @@ public interface WxCpSchoolUserService { */ WxCpBaseResp createParent(@NonNull WxCpCreateParentRequest request) throws WxErrorException; + /** + * 批量创建家长 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_parent?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBatchResultList batchCreateParent(@NonNull WxCpBatchCreateParentRequest request) throws WxErrorException; + + /** + * 批量删除家长 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_parent?access_token=ACCESS_TOKEN + * + * @param userIdList + * @return + * @throws WxErrorException + */ + WxCpBatchResultList batchDeleteParent(@NonNull String... userIdList) throws WxErrorException; + + /** + * 批量更新家长 + * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_parent?access_token=ACCESS_TOKEN + * + * @param request + * @return + * @throws WxErrorException + */ + WxCpBatchResultList batchUpdateParent(@NonNull WxCpBatchUpdateParentRequest request) throws WxErrorException; + /** * 更新家长 * 请求方式:POST(HTTPS) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java index 8f989f23d8..aac6e01a45 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java @@ -77,6 +77,20 @@ public WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErr .userTicket(GsonHelper.getString(jo, "user_ticket")) .expiresIn(GsonHelper.getString(jo, "expires_in")) .externalUserId(GsonHelper.getString(jo, "external_userid")) + .parentUserId(GsonHelper.getString(jo, "parent_userid")) + .studentUserId(GsonHelper.getString(jo, "student_userid")) + .build(); + } + + @Override + public WxCpOauth2UserInfo getSchoolUserInfo(String code) throws WxErrorException { + String responseText = this.mainService.get(String.format(this.mainService.getWxCpConfigStorage().getApiUrl(GET_SCHOOL_USER_INFO), code), null); + JsonObject jo = GsonParser.parse(responseText); + + return WxCpOauth2UserInfo.builder() + .deviceId(GsonHelper.getString(jo, "DeviceId")) + .parentUserId(GsonHelper.getString(jo, "parent_userid")) + .studentUserId(GsonHelper.getString(jo, "student_userid")) .build(); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index cbf0498617..dc46ee7301 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -11,6 +11,7 @@ import me.chanjar.weixin.cp.api.WxCpSchoolUserService; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo; import me.chanjar.weixin.cp.bean.school.user.*; import org.apache.commons.lang3.StringUtils; @@ -32,6 +33,16 @@ public class WxCpSchoolUserServiceImpl implements WxCpSchoolUserService { private final WxCpService cpService; + @Override + public WxCpOauth2UserInfo getUserInfo(@NonNull String code) throws WxErrorException { + return cpService.getOauth2Service().getUserInfo(code); + } + + @Override + public WxCpOauth2UserInfo getSchoolUserInfo(@NonNull String code) throws WxErrorException { + return cpService.getOauth2Service().getSchoolUserInfo(code); + } + @Override public WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, @NonNull List departments) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CREATE_STUDENT); @@ -104,6 +115,33 @@ public WxCpBaseResp createParent(@NonNull WxCpCreateParentRequest request) throw return WxCpBaseResp.fromJson(responseContent); } + @Override + public WxCpBatchResultList batchCreateParent(@NonNull WxCpBatchCreateParentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(BATCH_CREATE_PARENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBatchResultList.fromJson(responseContent); + } + + @Override + public WxCpBatchResultList batchDeleteParent(@NonNull String... userIdList) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(BATCH_DELETE_PARENT); + JsonObject jsonObject = new JsonObject(); + JsonArray jsonArray = new JsonArray(); + for (String userId : userIdList) { + jsonArray.add(new JsonPrimitive(userId)); + } + jsonObject.add("useridlist", jsonArray); + String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); + return WxCpBatchResultList.fromJson(responseContent); + } + + @Override + public WxCpBatchResultList batchUpdateParent(@NonNull WxCpBatchUpdateParentRequest request) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(BATCH_UPDATE_PARENT); + String responseContent = this.cpService.post(apiUrl, request.toJson()); + return WxCpBatchResultList.fromJson(responseContent); + } + @Override public WxCpBaseResp updateParent(@NonNull WxCpUpdateParentRequest request) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(UPDATE_PARENT); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java index 0e10737bf6..a35a37c05c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java @@ -14,6 +14,8 @@ * Created by BinaryWang on 2019/5/26. *

* + * 文档1:https://developer.work.weixin.qq.com/document/path/91707 + * * @author Binary Wang */ @Data @@ -30,4 +32,7 @@ public class WxCpOauth2UserInfo implements Serializable { private String userTicket; private String expiresIn; private String externalUserId; + private String parentUserId; + private String studentUserId; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java new file mode 100644 index 0000000000..388ce91697 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java @@ -0,0 +1,88 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 批量创建家长. + * + * @author Wang_Wong + * @date 2022-07-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpBatchCreateParentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("parents") + private List parents; + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Parent implements Serializable { + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("to_invite") + private Boolean toInvite; + + @SerializedName("children") + private List children; + + public static Parent fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Parent.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Children implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("relation") + private String relation; + + public static Children fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Children.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpBatchCreateParentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpBatchCreateParentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java new file mode 100644 index 0000000000..18a659d7d4 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java @@ -0,0 +1,88 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 批量更新家长. + * + * @author Wang_Wong + * @date 2022-07-11 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpBatchUpdateParentRequest implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("parents") + private List parents; + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Parent implements Serializable { + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("new_parent_userid") + private String newParentUserId; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("children") + private List children; + + public static Parent fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Parent.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Children implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("relation") + private String relation; + + public static Children fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Children.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpBatchUpdateParentRequest fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpBatchUpdateParentRequest.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java index f97a3c48b1..21de39b8cd 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java @@ -36,6 +36,9 @@ public class WxCpCreateParentRequest implements Serializable { @Setter @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor public static class Children implements Serializable { @SerializedName("student_userid") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 042d13485b..1d8f3a537e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -67,6 +67,7 @@ interface WorkBench { interface OAuth2 { String GET_USER_INFO = "/cgi-bin/user/getuserinfo?code=%s&agentid=%d"; + String GET_SCHOOL_USER_INFO = "/cgi-bin/school/getuserinfo?code=%s"; String GET_USER_DETAIL = "/cgi-bin/user/getuserdetail"; String URL_OAUTH2_AUTHORIZE = "https://open.weixin.qq.com/connect/oauth2/authorize"; } @@ -195,6 +196,9 @@ interface School { String BATCH_CREATE_STUDENT = "/cgi-bin/school/user/batch_create_student"; String BATCH_DELETE_STUDENT = "/cgi-bin/school/user/batch_delete_student"; String BATCH_UPDATE_STUDENT = "/cgi-bin/school/user/batch_update_student"; + String BATCH_CREATE_PARENT = "/cgi-bin/school/user/batch_create_parent"; + String BATCH_DELETE_PARENT = "/cgi-bin/school/user/batch_delete_parent"; + String BATCH_UPDATE_PARENT = "/cgi-bin/school/user/batch_update_parent"; String CREATE_STUDENT = "/cgi-bin/school/user/create_student"; String DELETE_STUDENT = "/cgi-bin/school/user/delete_student?userid="; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index dca1c04c45..f881724ac1 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -5,8 +5,10 @@ import lombok.var; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.XmlUtils; +import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo; import me.chanjar.weixin.cp.bean.message.WxCpXmlMessage; import me.chanjar.weixin.cp.bean.school.user.*; import me.chanjar.weixin.cp.config.WxCpConfigStorage; @@ -19,6 +21,8 @@ import java.util.List; import java.util.Map; +import static org.assertj.core.api.Assertions.assertThat; + /** * 企业微信家校沟通相关接口. * https://developer.work.weixin.qq.com/document/path/91638 @@ -52,6 +56,165 @@ public void test() throws WxErrorException { final String exUserId = "wmOQpTDwAAJFHrryZ8I8ALLEZuLHIUKA"; + /** + * 批量更新家长 + * + * https://developer.work.weixin.qq.com/document/path/92336 + */ + String batchUpdateParentRequestParam = "{\n" + + " \"parents\":[\n" + + " { \n" + + " \"parent_userid\": \"zhangsan_baba\",\n" + + "\t\t\t\"new_parent_userid\":\"zhangsan_baba_new\",\n" + + " \"mobile\": \"10000000000\",\n" + + " \"children\":[\n" + + " { \n" + + " \"student_userid\": \"zhangsan\",\n" + + " \"relation\": \"爸爸\"\n" + + " } \n" + + " ] \n" + + " }, \n" + + " { \n" + + " \"parent_userid\": \"lisi_mama\",\n" + + " \"mobile\": \"10000000001\",\n" + + " \"children\":[\n" + + " {\n" + + " \"student_userid\": \"lisi\",\n" + + " \"relation\": \"妈妈\"\n" + + " } \n" + + " ] \n" + + " } \n" + + " ] \n" + + "}"; + WxCpBatchUpdateParentRequest batchUpdateParentRequest = WxCpBatchUpdateParentRequest.fromJson(batchUpdateParentRequestParam); + WxCpBatchResultList batchUpdateParentResult = cpService.getSchoolUserService().batchUpdateParent(batchUpdateParentRequest); + + + /** + * 批量删除家长 + * + * https://developer.work.weixin.qq.com/document/path/92335 + */ + WxCpBatchResultList batchDeleteParentResult = cpService.getSchoolUserService().batchDeleteParent(new String[]{"abc", userId}); + + + /** + * 批量创建家长 封装请求参数 + * + * https://developer.work.weixin.qq.com/document/path/92334 + */ + var child1 = WxCpBatchCreateParentRequest.Children.builder() + .relation("爸爸") + .studentUserId("zhangsan") + .build(); + var child2 = WxCpBatchCreateParentRequest.Children.builder() + .relation("伯父") + .studentUserId("lisi") + .build(); + var child3 = WxCpBatchCreateParentRequest.Children.builder() + .relation("爸爸") + .studentUserId("lisi") + .build(); + var child4 = WxCpBatchCreateParentRequest.Children.builder() + .relation("伯父") + .studentUserId("zhangsan") + .build(); + + List childrenList1 = Lists.newArrayList(); + childrenList1.add(child1); + childrenList1.add(child2); + + List childrenList2 = Lists.newArrayList(); + childrenList2.add(child3); + childrenList2.add(child4); + + var zhangsanParent = WxCpBatchCreateParentRequest.Parent.builder() + .parentUserId("zhangsan_parent_userid") + .mobile("18000000000") + .toInvite(false) + .children(childrenList1) + .build(); + var lisiParent = WxCpBatchCreateParentRequest.Parent.builder() + .parentUserId("lisi_parent_userid") + .mobile("18000000001") + .children(childrenList2) + .build(); + + List batchCreateParent = Lists.newArrayList(); + batchCreateParent.add(zhangsanParent); + batchCreateParent.add(lisiParent); + WxCpBatchCreateParentRequest wxCpBatchCreateParentRequest = WxCpBatchCreateParentRequest.builder() + .parents(batchCreateParent) + .build(); + + // 请求参数json + String batchCreateParentRequestParam = "{\n" + + "\t\"parents\":[\n" + + "\t\t{\n" + + "\t\t\t\"parent_userid\": \"zhangsan_parent_userid\",\n" + + " \t\t\"mobile\": \"18000000000\",\n" + + "\t\t\t\"to_invite\": false,\n" + + "\t\t\t\"children\":[\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"student_userid\": \"zhangsan\",\n" + + " \t\t \"relation\": \"爸爸\"\n" + + " \t\t },\n" + + " \t\t {\n" + + "\t\t\t\t\t\"student_userid\": \"lisi\",\n" + + " \t\t \"relation\": \"伯父\"\n" + + " \t\t }\n" + + " \t\t]\n" + + "\t\t},\n" + + "\t\t{\n" + + "\t\t\t\"parent_userid\": \"lisi_parent_userid\",\n" + + " \t\t\"mobile\": \"18000000001\",\n" + + "\t\t\t\"children\":[\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"student_userid\": \"lisi\",\n" + + " \t\t \"relation\": \"爸爸\"\n" + + " \t\t },\n" + + " \t\t {\n" + + "\t\t\t\t\t\"student_userid\": \"zhangsan\",\n" + + " \t\t \"relation\": \"伯父\"\n" + + " \t\t }\n" + + " \t\t]\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + assertThat(wxCpBatchCreateParentRequest.toJson()).isEqualTo(GsonParser.parse(batchCreateParentRequestParam).toString()); + + WxCpBatchResultList batchCreateParentResult = cpService.getSchoolUserService().batchCreateParent(wxCpBatchCreateParentRequest); + + // 返回结果 + String batchResultStr = "{\n" + + "\t\"errcode\": 1,\n" + + "\t\"errmsg\": \"invalid parent_userid: lisi_parent_userid\",\n" + + "\t\"result_list\": [\n" + + "\t\t{\n" + + "\t\t\t\"parent_userid\": \"lisi_parent_userid\",\n" + + "\t\t\t\"errcode\": 1,\n" + + "\t\t\t\"errmsg\": \"invalid parent_userid: lisi_parent_userid\",\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + assertThat(batchCreateParentResult.toJson()).isEqualTo(GsonParser.parse(batchResultStr).toString()); + + + /** + * 获取家校访问用户身份 + * + * https://developer.work.weixin.qq.com/document/path/95791 + */ + WxCpOauth2UserInfo schoolUserInfo = cpService.getSchoolUserService().getSchoolUserInfo("abc"); + assertThat(schoolUserInfo).isNotNull(); + + WxCpOauth2UserInfo oauth2UserInfo = cpService.getSchoolUserService().getUserInfo("abc"); + assertThat(oauth2UserInfo).isNotNull(); + + WxCpOauth2UserInfo userInfo = cpService.getOauth2Service().getUserInfo("abc"); + assertThat(userInfo).isNotNull(); + + // 返回值 String batchResult = "{\n" + "\t\"errcode\": 1,\n" + diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaJscode2SessionResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaJscode2SessionResult.java index af113e4ec5..1b0f6f28a1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaJscode2SessionResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaJscode2SessionResult.java @@ -10,7 +10,8 @@ /** *
  * code换取session_key接口的响应
- * 文档地址:https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-login.html#wxloginobject
+ * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html
+ *
  * 微信返回报文:{"session_key":"nzoqhc3OnwHzeTxJs+inbQ==","openid":"oVBkZ0aYgDMDIywRdgPW8-joxXc4"}
  * 
* @author Binary Wang From e0f3c76ceae55a081d752bf9c8b07469fb3586bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=AA=E8=B4=B5=E8=8D=A3?= Date: Tue, 12 Jul 2022 16:35:31 +0800 Subject: [PATCH 293/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java | 2 +- .../wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java index 27f12dac5b..1f089e7629 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java @@ -232,7 +232,7 @@ public static class Agent implements Serializable { * */ @SerializedName("user_limit") - private Integer userLimit; + private Long userLimit; /** * 版本到期时间, 秒级时间戳, 根据需要自行乘以1000(根据购买版本,可能是试用到期时间或付费使用到期时间)。 diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java index 481ff1bb38..2bfd5be41a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java @@ -223,7 +223,7 @@ public static class SubjectInfo implements Serializable { * 是否是金融机构 */ @SerializedName("finance_institution") - private boolean financeInstitution; + private Boolean financeInstitution; /** * 营业执照 @@ -450,7 +450,7 @@ public static class IdentityInfo implements Serializable { * 经营者/法人是否为受益人 */ @SerializedName("owner") - private boolean owner; + private Boolean owner; @Data @Builder From bac18534dc2a853bf07693ef72813b5f17a82ab3 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Thu, 14 Jul 2022 09:15:54 +0800 Subject: [PATCH 294/622] =?UTF-8?q?:new:=20#2746=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E5=AD=A6=E7=94=9F=E6=88=96=E5=AE=B6=E9=95=BF?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpSchoolUserService.java | 34 ++++ .../api/impl/WxCpSchoolUserServiceImpl.java | 21 +++ .../weixin/cp/bean/WxCpUserDetail.java | 1 + .../school/user/WxCpListParentResult.java | 95 +++++++++++ .../bean/school/user/WxCpUserListResult.java | 98 +++++++++++ .../cp/bean/school/user/WxCpUserResult.java | 130 +++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 3 + .../weixin/cp/api/WxCpSchoolUserTest.java | 154 ++++++++++++++++++ 8 files changed, 536 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java index 3c64d72bb7..706c005db8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java @@ -158,6 +158,40 @@ public interface WxCpSchoolUserService { */ WxCpBatchResultList batchUpdateParent(@NonNull WxCpBatchUpdateParentRequest request) throws WxErrorException; + /** + * 读取学生或家长 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/get?access_token=ACCESS_TOKEN&userid=USERID + * + * @param userId + * @return + * @throws WxErrorException + */ + WxCpUserResult getUser(@NonNull String userId) throws WxErrorException; + + /** + * 获取部门成员详情 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD + * + * @param departmentId 获取的部门id + * @param fetchChild 1/0:是否递归获取子部门下面的成员 + * @return + * @throws WxErrorException + */ + WxCpUserListResult getUserList(@NonNull Integer departmentId, Integer fetchChild) throws WxErrorException; + + /** + * 获取部门家长详情 + * 请求方式:GET(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list_parent?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID + * + * @param departmentId 获取的部门id + * @return + * @throws WxErrorException + */ + WxCpListParentResult getUserListParent(@NonNull Integer departmentId) throws WxErrorException; + /** * 更新家长 * 请求方式:POST(HTTPS) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index dc46ee7301..c042d305f9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -142,6 +142,27 @@ public WxCpBatchResultList batchUpdateParent(@NonNull WxCpBatchUpdateParentReque return WxCpBatchResultList.fromJson(responseContent); } + @Override + public WxCpUserResult getUser(@NonNull String userId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_USER) + userId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpUserResult.fromJson(responseContent); + } + + @Override + public WxCpUserListResult getUserList(@NonNull Integer departmentId, Integer fetchChild) throws WxErrorException { + String apiUrl = String.format(this.cpService.getWxCpConfigStorage().getApiUrl(GET_USER_LIST), departmentId, fetchChild); + String responseContent = this.cpService.get(apiUrl, null); + return WxCpUserListResult.fromJson(responseContent); + } + + @Override + public WxCpListParentResult getUserListParent(@NonNull Integer departmentId) throws WxErrorException { + String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_USER_LIST_PARENT) + departmentId; + String responseContent = this.cpService.get(apiUrl, null); + return WxCpListParentResult.fromJson(responseContent); + } + @Override public WxCpBaseResp updateParent(@NonNull WxCpUpdateParentRequest request) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(UPDATE_PARENT); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java index 295acfdbce..5f952acfe7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserDetail.java @@ -9,6 +9,7 @@ *
  *  使用user_ticket获取成员详情接口返回类.
  *  Created by BinaryWang on 2018/4/22.
+ *  官方文档:https://developer.work.weixin.qq.com/document/path/91122
  * 
* * @author Binary Wang diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java new file mode 100644 index 0000000000..1edc3fda83 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java @@ -0,0 +1,95 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取部门家长详情返回结果. + * + * @author Wang_Wong + * @date 2022-07-13 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpListParentResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("parents") + private List parents; + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Parent implements Serializable { + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("external_userid") + private String externalUserId; + + @SerializedName("is_subscribe") + private Integer isSubscribe; + + @SerializedName("children") + private List children; + + public static Parent fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Parent.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Children implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("relation") + private String relation; + + @SerializedName("name") + private String name; + + public static Children fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Children.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpListParentResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpListParentResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java new file mode 100644 index 0000000000..7913b986e4 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java @@ -0,0 +1,98 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取部门成员详情返回结果. + * + * @author Wang_Wong + * @date 2022-07-13 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpUserListResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("students") + private List students; + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Parent implements Serializable { + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("relation") + private String relation; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("external_userid") + private String externalUserId; + + @SerializedName("is_subscribe") + private Integer isSubscribe; + + public static Parent fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Parent.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Student implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("name") + private String name; + + @SerializedName("department") + private List department; + + @SerializedName("parents") + private List parents; + + public static Student fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Student.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpUserListResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpUserListResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java new file mode 100644 index 0000000000..ad0cfb53da --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java @@ -0,0 +1,130 @@ +package me.chanjar.weixin.cp.bean.school.user; + +import com.google.gson.annotations.SerializedName; +import lombok.*; +import lombok.experimental.Accessors; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 读取学生或家长返回结果. + * + * @author Wang_Wong + * @date 2022-07-13 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpUserResult extends WxCpBaseResp implements Serializable { + private static final long serialVersionUID = -4960239393895754138L; + + @SerializedName("student") + private Student student; + + @SerializedName("parent") + private Parent parent; + + @SerializedName("user_type") + private Integer userType; + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Parent implements Serializable { + + @SerializedName("parent_userid") + private String parentUserId; + + @SerializedName("relation") + private String relation; + + @SerializedName("mobile") + private String mobile; + + @SerializedName("external_userid") + private String externalUserId; + + @SerializedName("is_subscribe") + private Integer isSubscribe; + + @SerializedName("children") + private List children; + + public static Parent fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Parent.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Student implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("department") + private List department; + + @SerializedName("parents") + private List parents; + + @SerializedName("name") + private String name; + + public static Student fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Student.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + @Setter + @Getter + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Children implements Serializable { + + @SerializedName("student_userid") + private String studentUserId; + + @SerializedName("relation") + private String relation; + + public static Children fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Children.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpUserResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpUserResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 1d8f3a537e..5e4c134c01 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -206,6 +206,9 @@ interface School { String CREATE_PARENT = "/cgi-bin/school/user/create_parent"; String UPDATE_PARENT = "/cgi-bin/school/user/update_parent"; String DELETE_PARENT = "/cgi-bin/school/user/delete_parent?userid="; + String GET_USER = "/cgi-bin/school/user/get?userid="; + String GET_USER_LIST = "/cgi-bin/school/user/list?department_id=%s&fetch_child=%d"; + String GET_USER_LIST_PARENT = "/cgi-bin/school/user/list_parent?department_id="; String SET_ARCH_SYNC_MODE = "/cgi-bin/school/set_arch_sync_mode"; String SET_UPGRADE_INFO = "/cgi-bin/school/set_upgrade_info"; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index f881724ac1..670f2c7198 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -56,6 +56,160 @@ public void test() throws WxErrorException { final String exUserId = "wmOQpTDwAAJFHrryZ8I8ALLEZuLHIUKA"; + /** + * 获取部门家长详情 + * + * https://developer.work.weixin.qq.com/document/path/92446 + */ + WxCpListParentResult userListParent = cpService.getSchoolUserService().getUserListParent(1); + + String jsonUserListParentResult = "{\n" + + " \"errcode\": 0,\n" + + " \"errmsg\": \"ok\",\n" + + " \"parents\": [\n" + + " {\n" + + " \"parent_userid\": \"zhangsan_parent\",\n" + + " \"mobile\": \"18900000000\",\n" + + " \"is_subscribe\": 1,\n" + + "\t\t\t\"external_userid\":\"xxx\",\n" + + " \"children\": [\n" + + " {\n" + + " \"student_userid\": \"zhangsan\",\n" + + " \"relation\": \"爸爸\",\n" + + " \"name\": \"张三\"\n" + + " }\n" + + " ]\n" + + " },\n" + + "\t\t{\n" + + " \"parent_userid\": \"lisi_parent\",\n" + + " \"mobile\": \"18900000001\",\n" + + " \"is_subscribe\": 0,\n" + + " \"children\": [\n" + + " {\n" + + " \"student_userid\": \"lisi\",\n" + + " \"relation\": \"妈妈\",\n" + + " \"name\": \"李四\"\n" + + " }\n" + + " ]\n" + + " }\n" + + " ]\n" + + "}"; + + WxCpListParentResult wxCpListParentResult = WxCpListParentResult.fromJson(jsonUserListParentResult); + assertThat(wxCpListParentResult.toJson()).isEqualTo(GsonParser.parse(jsonUserListParentResult).toString()); + + + /** + * 获取部门成员详情 + * + * https://developer.work.weixin.qq.com/document/path/92043 + */ + WxCpUserListResult userList = cpService.getSchoolUserService().getUserList(1, 0); + + String jsonUserListResult = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"students\":[\n" + + "\t\t{\n" + + "\t\t\t\"student_userid\": \"zhangsan\",\n" + + "\t\t\t\"name\": \"张三\",\n" + + "\t\t\t\"department\": [1, 2],\n" + + "\t\t\t\"parents\": [\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"parent_userid\": \"zhangsan_parent1\",\n" + + "\t\t\t\t\t\"relation\": \"爸爸\",\n" + + "\t\t\t\t\t\"mobile\": \"18000000001\",\n" + + "\t\t\t\t\t\"is_subscribe\": 1,\n" + + "\t\t\t\t\t\"external_userid\":\"xxx\"\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"parent_userid\": \"zhangsan_parent2\",\n" + + "\t\t\t\t\t\"relation\": \"妈妈\",\n" + + "\t\t\t\t\t\"mobile\": \"18000000002\",\n" + + "\t\t\t\t\t\"is_subscribe\": 0\n" + + "\t\t\t\t}\n" + + "\t\t\t]\n" + + "\t\t},\n" + + "\t\t{\n" + + "\t\t\t\"student_userid\": \"lisi\",\n" + + "\t\t\t\"name\": \"李四\",\n" + + "\t\t\t\"department\": [4, 5],\n" + + "\t\t\t\"parents\": [\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"parent_userid\": \"lisi_parent1\",\n" + + "\t\t\t\t\t\"relation\": \"爷爷\",\n" + + "\t\t\t\t\t\"mobile\": \"18000000003\",\n" + + "\t\t\t\t\t\"is_subscribe\": 1,\n" + + "\t\t\t\t\t\"external_userid\":\"xxx\"\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"parent_userid\": \"lisi_parent2\",\n" + + "\t\t\t\t\t\"relation\": \"妈妈\",\n" + + "\t\t\t\t\t\"mobile\": \"18000000004\",\n" + + "\t\t\t\t\t\"is_subscribe\": 1,\n" + + "\t\t\t\t\t\"external_userid\":\"xxx\"\n" + + "\t\t\t\t}\n" + + "\t\t\t]\n" + + "\t\t}\n" + + "\t]\n" + + "}"; + + WxCpUserListResult wxCpUserListResult = WxCpUserListResult.fromJson(jsonUserListResult); + assertThat(wxCpUserListResult.toJson()).isEqualTo(GsonParser.parse(jsonUserListResult).toString()); + + /** + * 读取学生或家长 + * + * https://developer.work.weixin.qq.com/document/path/92337 + */ + WxCpUserResult userResult = cpService.getSchoolUserService().getUser(userId); + + String jsonUserResult = "{\n" + + "\t\"errcode\": 0,\n" + + "\t\"errmsg\": \"ok\",\n" + + "\t\"user_type\": 1,\n" + + "\t\"student\":{\n" + + "\t\t\"student_userid\": \"zhangsan\",\n" + + "\t\t\"name\": \"张三\",\n" + + "\t\t\"department\": [1, 2],\n" + + "\t\t\"parents\":[\n" + + "\t\t\t{\n" + + "\t\t\t\t\"parent_userid\": \"zhangsan_parent1\",\n" + + "\t\t\t\t\"relation\": \"爸爸\",\n" + + "\t\t\t\t\"mobile\":\"18000000000\",\n" + + "\t\t\t\t\"is_subscribe\": 1,\n" + + "\t\t\t\t\"external_userid\":\"xxxxx\"\n" + + "\t\t\t},\n" + + "\t\t\t{\n" + + "\t\t\t\t\"parent_userid\": \"zhangsan_parent2\",\n" + + "\t\t\t\t\"relation\": \"妈妈\",\n" + + "\t\t\t\t\"mobile\": \"18000000001\",\n" + + "\t\t\t\t\"is_subscribe\": 0\n" + + "\t\t\t}\n" + + "\t\t]\n" + + " },\n" + + "\t\"parent\":{\n" + + "\t\t\"parent_userid\": \"zhangsan_parent2\",\n" + + "\t\t\"mobile\": \"18000000003\",\n" + + "\t\t\"is_subscribe\": 1,\n" + + "\t\t\"external_userid\":\"xxxxx\",\n" + + "\t\t\"children\":[\n" + + "\t\t\t{\n" + + "\t\t\t\t\"student_userid\": \"zhangsan\",\n" + + "\t\t\t\t\"relation\": \"妈妈\"\n" + + "\t\t\t},\n" + + "\t\t\t{\n" + + "\t\t\t\t\"student_userid\": \"lisi\",\n" + + "\t\t\t\t\"relation\": \"伯母\"\n" + + "\t\t\t}\n" + + "\t\t]\n" + + "\t}\n" + + "}"; + + WxCpUserResult wxCpUserResult = WxCpUserResult.fromJson(jsonUserResult); + assertThat(wxCpUserResult.toJson()).isEqualTo(GsonParser.parse(jsonUserResult).toString()); + + /** * 批量更新家长 * From 8f301500efb06e8b44267811370bd43e76fb6609 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Thu, 21 Jul 2022 15:29:01 +0800 Subject: [PATCH 295/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E5=AE=B6?= =?UTF-8?q?=E6=A0=A1=E6=B2=9F=E9=80=9A=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/message/WxCpXmlApprovalInfo.java | 214 ++++++++++++++++++ .../cp/bean/message/WxCpXmlMessage.java | 9 + .../cp/bean/school/user/WxCpAllowScope.java | 19 +- .../weixin/cp/constant/WxCpConsts.java | 1 + .../cp/util/xml/XStreamTransformer.java | 10 +- .../weixin/cp/api/WxCpOaAgentTest.java | 148 ++++++++++++ .../message/WxCpSchoolContactMessageTest.java | 39 +++- 7 files changed, 425 insertions(+), 15 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java index 5035390db6..33d1375b12 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java @@ -12,6 +12,12 @@ /** * 审批信息 * + * 审批申请状态变化回调通知 + * https://developer.work.weixin.qq.com/document/path/91815 + * + * 自建应用审批状态变化通知回调 + * https://developer.work.weixin.qq.com/document/path/90269 + * * @author Gyv12345 */ @XStreamAlias("ApprovalInfo") @@ -19,6 +25,212 @@ public class WxCpXmlApprovalInfo implements Serializable { private static final long serialVersionUID = 8136329462880646091L; + + // 自建应用审批状态变化通知回调 + /** + * 审批单编号,由开发者在发起申请时自定义 + */ + @XStreamAlias("ThirdNo") + @XStreamConverter(value = XStreamCDataConverter.class) + private String thirdNo; + + /** + * 审批模板名称 + */ + @XStreamAlias("OpenSpName") + @XStreamConverter(value = XStreamCDataConverter.class) + private String openSpName; + + /** + * 审批模板id + */ + @XStreamAlias("OpenTemplateId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String openTemplateId; + + /** + * 申请单当前审批状态:1-审批中;2-已通过;3-已驳回;4-已撤销 + */ + @XStreamAlias("OpenSpStatus") + private Integer openSpStatus; + + /** + * 提交者姓名 + */ + @XStreamAlias("ApplyUserName") + @XStreamConverter(value = XStreamCDataConverter.class) + private String applyUserName; + + /** + * 提交者userid + */ + @XStreamAlias("ApplyUserId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String applyUserId; + + /** + * 提交者所在部门 + */ + @XStreamAlias("ApplyUserParty") + @XStreamConverter(value = XStreamCDataConverter.class) + private String applyUserParty; + + /** + * 提交者头像 + */ + @XStreamAlias("ApplyUserImage") + @XStreamConverter(value = XStreamCDataConverter.class) + private String applyUserImage; + + /** + * 当前审批节点:0-第一个审批节点;1-第二个审批节点…以此类推 + */ + @XStreamAlias("ApproverStep") + private Integer approverStep; + + /** + * 审批流程信息 + */ + @XStreamImplicit(itemFieldName = "ApprovalNodes") + private List approvalNodes; + + /** + * 抄送信息,可能有多个抄送人 + */ + @XStreamImplicit(itemFieldName = "NotifyNodes") + private List notifyNodes; + + /** + * 抄送人信息 + */ + @XStreamAlias("NotifyNodes") + @Data + public static class NotifyNode implements Serializable { + private static final long serialVersionUID = -979255011922209018L; + + /** + * 抄送人姓名 + */ + @XStreamAlias("ItemName") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemName; + + /** + * 抄送人userid + */ + @XStreamAlias("ItemUserid") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemUserId; + + /** + * 抄送人所在部门 + */ + @XStreamAlias("ItemParty") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemParty; + + /** + * 抄送人头像 + */ + @XStreamAlias("ItemImage") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemImage; + + } + + /** + * 审批流程信息,可以有多个审批节点 + */ + @XStreamAlias("ApprovalNodes") + @Data + public static class ApprovalNode implements Serializable { + private static final long serialVersionUID = -979255011922209018L; + + /** + * 节点审批操作状态:1-审批中;2-已同意;3-已驳回;4-已转审 + */ + @XStreamAlias("NodeStatus") + private Integer nodeStatus; + + /** + * 审批节点属性:1-或签;2-会签 + */ + @XStreamAlias("NodeAttr") + private Integer nodeAttr; + + /** + * 审批节点类型:1-固定成员;2-标签;3-上级 + */ + @XStreamAlias("NodeType") + private Integer nodeType; + + /** + * 审批节点信息,当节点为标签或上级时,一个节点可能有多个分支 + */ + @XStreamImplicit(itemFieldName = "Items") + private List items; + + } + + /** + * 审批节点分支,当节点为标签或上级时,一个节点可能有多个分支 + */ + @XStreamAlias("Items") + @Data + public static class Item implements Serializable { + private static final long serialVersionUID = -979255011922209018L; + + /** + * 分支审批人姓名 + */ + @XStreamAlias("ItemName") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemName; + + /** + * 分支审批人userid + */ + @XStreamAlias("ItemUserid") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemUserId; + + /** + * 分支审批人所在部门 + */ + @XStreamAlias("ItemParty") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemParty; + + /** + * 分支审批人头像 + */ + @XStreamAlias("ItemImage") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemImage; + + /** + * 分支审批人审批意见 + */ + @XStreamAlias("ItemSpeech") + @XStreamConverter(value = XStreamCDataConverter.class) + private String itemSpeech; + + /** + * 分支审批审批操作状态:1-审批中;2-已同意;3-已驳回;4-已转审 + */ + @XStreamAlias("ItemStatus") + private Integer itemStatus; + + /** + * 分支审批人操作时间 + */ + @XStreamAlias("ItemOpTime") + private Long itemOpTime; + + } + + + // 审批申请状态变化回调通知 /** * 审批编号 */ @@ -44,6 +256,7 @@ public class WxCpXmlApprovalInfo implements Serializable { @XStreamAlias("TemplateId") @XStreamConverter(value = XStreamCDataConverter.class) private String templateId; + /** * 审批申请提交时间,Unix时间戳 */ @@ -249,4 +462,5 @@ private static class CommentUserInfo implements Serializable { @XStreamAlias("UserId") private String userId; } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index bb7025edfc..68dbc69878 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -474,6 +474,15 @@ public class WxCpXmlMessage implements Serializable { private SendLocationInfo sendLocationInfo = new SendLocationInfo(); + /** + * 审批消息 + * + * 审批申请状态变化回调通知 + * https://developer.work.weixin.qq.com/document/path/91815 + * + * 自建应用审批状态变化通知回调 + * https://developer.work.weixin.qq.com/document/path/90269 + */ @XStreamAlias("ApprovalInfo") private WxCpXmlApprovalInfo approvalInfo = new WxCpXmlApprovalInfo(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java index b5a594e19c..902cc4adcb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpAllowScope.java @@ -30,7 +30,7 @@ public static class AllowScope implements Serializable { private List students; @SerializedName("departments") - private List departments; + private Department departments; public static AllowScope fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, AllowScope.class); @@ -42,6 +42,23 @@ public String toJson() { } + @Setter + @Getter + public static class Department implements Serializable { + + @SerializedName("partyid") + private List partyId; + + public static Department fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, Department.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + @Setter @Getter public static class Student implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java index 51219328a9..b422c9d23d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java @@ -110,6 +110,7 @@ public static class EventType { /** * 企业微信审批事件推送(自建应用审批) + * https://developer.work.weixin.qq.com/document/path/90269 */ public static final String OPEN_APPROVAL_CHANGE = "open_approval_change"; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java index 62ea5072ee..2fb09ce4c8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/xml/XStreamTransformer.java @@ -1,13 +1,13 @@ package me.chanjar.weixin.cp.util.xml; -import java.io.InputStream; -import java.util.HashMap; -import java.util.Map; - import com.thoughtworks.xstream.XStream; import me.chanjar.weixin.common.util.xml.XStreamInitializer; -import me.chanjar.weixin.cp.bean.message.*; import me.chanjar.weixin.cp.bean.WxCpTpXmlPackage; +import me.chanjar.weixin.cp.bean.message.*; + +import java.io.InputStream; +import java.util.HashMap; +import java.util.Map; public class XStreamTransformer { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java index 88d990e4f7..94169e4164 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java @@ -3,12 +3,17 @@ import com.google.gson.reflect.TypeToken; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.XmlUtils; import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.bean.message.WxCpXmlMessage; import me.chanjar.weixin.cp.bean.oa.selfagent.WxCpOpenApprovalData; import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.constant.WxCpConsts; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import me.chanjar.weixin.cp.util.xml.XStreamTransformer; +import org.eclipse.jetty.util.ajax.JSON; import org.testng.annotations.Test; import java.io.InputStream; @@ -16,6 +21,7 @@ /** * 企业微信自建应用接口测试类. * https://developer.work.weixin.qq.com/document/path/90269 + * https://developer.work.weixin.qq.com/document/path/90240#%E5%AE%A1%E6%89%B9%E7%8A%B6%E6%80%81%E9%80%9A%E7%9F%A5%E4%BA%8B%E4%BB%B6 * * @author Wang_Wong * @date 2022-04-06 @@ -37,6 +43,148 @@ public void test() throws WxErrorException { cpService = new WxCpServiceImpl(); cpService.setWxCpConfigStorage(config); + + /** + * 测试 审批状态通知事件 + */ + String testXml2 = "\n" + + " \n" + + " \n" + + " 1527838022\n" + + " \n" + + " \n" + + " 1\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " 1\n" + + " 1527837645\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " 1\n" + + " 1\n" + + " 1\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " 1\n" + + " \n" + + " 0\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " 0\n" + + " \n" + + "\n"; + final WxCpXmlMessage mess2 = XStreamTransformer.fromXml(WxCpXmlMessage.class, testXml2); + mess2.setAllFieldsMap(XmlUtils.xml2Map(testXml2)); + log.info("xmlJson: {}", JSON.toString(mess2)); + + + /** + * 测试 弹出微信相册发图器的事件推送 + * + * https://developer.work.weixin.qq.com/document/path/90240 + */ + String testXml = "\n" + + "\t\n" + + "\t\n" + + "\t1408090816\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t1\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t\n" + + "\t1\n" + + "\n"; + + final WxCpXmlMessage mess = XStreamTransformer.fromXml(WxCpXmlMessage.class, testXml); + mess.setAllFieldsMap(XmlUtils.xml2Map(testXml)); + log.info("xmlJson: {}", JSON.toString(mess)); + + + /** + * 审批流程引擎 + * 自建应用审批状态变化通知回调 + * + * https://developer.work.weixin.qq.com/document/path/90269 + */ + String approvalInfoXml = "\n" + + " wwd08c8e7c775abaaa \n" + + " sys \n" + + " 1527838022 \n" + + " event \n" + + " open_approval_change\n" + + " 1\n" + + " \n" + + " thirdNoxxx \n" + + " 付款 \n" + + " 1234567111 \n" + + " 1 \n" + + " 1527837645 \n" + + " jackiejjwu \n" + + " WuJunJie \n" + + " 产品部 \n" + + " http://www.qq.com/xxx.png \n" + + " \n" + + " \n" + + " 1 \n" + + " 1 \n" + + " 1 \n" + + " \n" + + " \n" + + " chauvetxiao \n" + + " XiaoWen \n" + + " 产品部 \n" + + " http://www.qq.com/xxx.png \n" + + " 1 \n" + + " \n" + + " 0 \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " jinhuiguo \n" + + " GuoJinHui \n" + + " 行政部 \n" + + " http://www.qq.com/xxx.png \n" + + " \n" + + " \n" + + " 0 \n" + + " \n" + + "\n"; + + final WxCpXmlMessage msg = XStreamTransformer.fromXml(WxCpXmlMessage.class, approvalInfoXml); + msg.setAllFieldsMap(XmlUtils.xml2Map(approvalInfoXml)); + log.info("xmlJson: {}", JSON.toString(msg)); + + /** + * 增加 + * 自建应用审批状态变化通知回调类型 + */ + String openApprovalChange = WxCpConsts.EventType.OPEN_APPROVAL_CHANGE; + + /** * Test */ diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java index aa1236c58b..85b734034a 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java @@ -9,11 +9,16 @@ import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.article.MpnewsArticle; import me.chanjar.weixin.cp.bean.article.NewArticle; +import me.chanjar.weixin.cp.bean.school.user.WxCpAllowScope; +import me.chanjar.weixin.cp.bean.school.user.WxCpListParentResult; +import me.chanjar.weixin.cp.bean.school.user.WxCpUserListResult; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import org.testng.annotations.Test; import java.io.InputStream; +import java.util.List; +import java.util.stream.Collectors; import static org.assertj.core.api.Assertions.assertThat; @@ -52,20 +57,36 @@ public void testSendSchoolContactMessage() throws WxErrorException { cpService = new WxCpServiceImpl(); cpService.setWxCpConfigStorage(config); + // 获取可使用的家长范围 返回的数据 + WxCpAllowScope allowScope = cpService.getSchoolUserService().getAllowScope(1000002); + + WxCpUserListResult userList = cpService.getSchoolUserService().getUserList(1, 1); + + // 测试发送给家长 [学校通知] + WxCpListParentResult userListParent = cpService.getSchoolUserService().getUserListParent(1); + List collect = userListParent.getParents() + .stream() + .filter(parent -> parent.getMobile().equals("13079226621")) + .collect(Collectors.toList()); + + String[] parentsId = {"ab0b1691d0204d4900f6b7a7e5a6aa8f", collect.get(0).getParentUserId()}; + WxCpSchoolContactMessageSendResult sendResult = this.cpService.getMessageService().sendSchoolContactMessage( WxCpSchoolContactMessage.builder() .recvScope(0) - .msgType(WxConsts.SchoolContactMsgType.TEXT) - .toParentUserId(new String[]{"parent_userid1", "parent_userid2"}) - .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) - .toParty(new String[]{"partyid1", "partyid2"}) + .msgType(WxConsts.SchoolContactMsgType.NEWS) + .toParentUserId(parentsId) +// .toStudentUserId(new String[]{"student_userid1", "student_userid2"}) +// .toParty(new String[]{"partyid1", "partyid2"}) .toAll(false) - .agentId(1) - .content("你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看邮件中心视频实况,聪明避开排队。") - .enableIdTrans(false) - .enableDuplicateCheck(false) - .duplicateCheckInterval(1800) + .agentId(cpService.getWxCpConfigStorage().getAgentId()) + .articles(Lists.newArrayList(NewArticle.builder() + .title("这是接口测试标题") + .description("今年中秋节公司有豪礼相送哦") + .url("https://www.baidu.com/") + .picUrl("http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png") + .build())) .build() ); From 8b7225325d1913f1b3c181419a094031f5b64ec0 Mon Sep 17 00:00:00 2001 From: zhongjun Date: Thu, 21 Jul 2022 15:30:28 +0800 Subject: [PATCH 296/622] =?UTF-8?q?:art:=20#2747=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=9C=8D=E5=8A=A1=E5=95=86?= =?UTF-8?q?=E5=88=86=E8=B4=A6=E8=A7=A3=E5=86=BB=E5=89=A9=E4=BD=99=E8=B5=84?= =?UTF-8?q?=E9=87=91=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?sub=5Fmchid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/profitsharingV3/ProfitSharingReceiver.java | 11 +++++++++++ .../bean/profitsharingV3/ProfitSharingRequest.java | 10 ++++++++++ .../bean/profitsharingV3/ProfitSharingResult.java | 10 ++++++++++ .../profitsharingV3/ProfitSharingReturnRequest.java | 10 ++++++++++ .../profitsharingV3/ProfitSharingReturnResult.java | 10 ++++++++++ .../profitsharingV3/ProfitSharingUnfreezeRequest.java | 10 ++++++++++ 6 files changed, 61 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java index cbdeeba285..01017a8ee1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java @@ -23,6 +23,17 @@ public class ProfitSharingReceiver implements Serializable { private static final long serialVersionUID = -4391888575149767840L; + + /** + *
+   * 字段名:子商户号
+   * 是否必填:是
+   * 描述:微信支付分配的子商户号,即分账的出资商户号。
+   * 
+ */ + @SerializedName("sub_mchid") + private String subMchId; + /** *
    * 字段名:应用ID
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java
index 78122bfbf0..da3b1b2bd3 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java
@@ -23,6 +23,16 @@
 public class ProfitSharingRequest implements Serializable {
   private static final long serialVersionUID = 3644929701624280800L;
 
+  /**
+   * 
+   * 字段名:子商户号
+   * 是否必填:是
+   * 描述:微信支付分配的子商户号,即分账的出资商户号。
+   * 
+ */ + @SerializedName("sub_mchid") + private String subMchId; + /** *
    * 字段名:应用ID
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java
index 892d317733..536ddd3c6e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java
@@ -18,6 +18,16 @@
 public class ProfitSharingResult implements Serializable {
   private static final long serialVersionUID = -6201692412535987502L;
 
+  /**
+   * 
+   * 字段名:子商户号
+   * 是否必填:是
+   * 描述:微信支付分配的子商户号,即分账的出资商户号。
+   * 
+ */ + @SerializedName("sub_mchid") + private String subMchId; + /** *
    * 字段名:微信订单号
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java
index 31e26775fb..a880e7c7b4 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java
@@ -22,6 +22,16 @@
 public class ProfitSharingReturnRequest implements Serializable {
   private static final long serialVersionUID = -2175582517588397426L;
 
+  /**
+   * 
+   * 字段名:子商户号
+   * 是否必填:是
+   * 描述:分账回退的接收商户,对应原分账出资的分账方商户,填写微信支付分配的商户号
+   * 
+ */ + @SerializedName("sub_mchid") + private String subMchId; + /** *
    * 字段名:微信分账单号
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java
index 6e08a9a418..756dba6726 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java
@@ -16,6 +16,16 @@
 public class ProfitSharingReturnResult implements Serializable {
   private static final long serialVersionUID = -2175582517588397426L;
 
+  /**
+   * 
+   * 字段名:子商户号
+   * 是否必填:是
+   * 描述:分账回退的接收商户,对应原分账出资的分账方商户,填写微信支付分配的商户号
+   * 
+ */ + @SerializedName("sub_mchid") + private String subMchId; + /** *
    * 字段名:微信分账单号
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java
index c79b9b6389..0005c69334 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java
@@ -22,6 +22,16 @@
 public class ProfitSharingUnfreezeRequest implements Serializable {
   private static final long serialVersionUID = 6835471990040104843L;
 
+  /**
+   * 
+   * 字段名:子商户号
+   * 是否必填:是
+   * 描述:微信支付分配的子商户号,即分账的出资商户号。
+   * 
+ */ + @SerializedName("sub_mchid") + private String subMchId; + /** *
    * 字段名:微信订单号

From 6cbfe0a3a3f560cc71e7b4570bb85c0b1ec24c45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E5=B1=B1=E4=BB=94?=
 <42242257+luomin0601@users.noreply.github.com>
Date: Thu, 21 Jul 2022 15:32:32 +0800
Subject: [PATCH 297/622] =?UTF-8?q?:art:=20#2745=20=E3=80=90=E5=85=AC?=
 =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91OCR=E6=8E=A5=E5=8F=A3=E5=A2=9E?=
 =?UTF-8?q?=E5=8A=A0=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java
index 0b1e0ff838..93367a445a 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java
@@ -22,6 +22,12 @@ public class WxOcrIdCardResult implements Serializable {
   private String name;
   @SerializedName("id")
   private String id;
+  @SerializedName("addr")
+  private String addr;
+  @SerializedName("gender")
+  private String gender;
+  @SerializedName("nationality")
+  private String nationality;
   @SerializedName("valid_date")
   private String validDate;
 

From c9803879f512bcd6a5bf28362e46df13dcaa54d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BC=AA=E8=B4=B5=E8=8D=A3?= 
Date: Thu, 21 Jul 2022 15:33:49 +0800
Subject: [PATCH 298/622] =?UTF-8?q?:art:=20#2744=20=E3=80=90=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E4=BC=81?=
 =?UTF-8?q?=E4=B8=9A=E6=B0=B8=E4=B9=85=E6=8E=88=E6=9D=83=E7=A0=81=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3=E8=A1=A5=E5=85=85=E6=8E=A8=E5=B9=BF=E7=A0=81=E4=BF=A1?=
 =?UTF-8?q?=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../cp/bean/WxCpTpPermanentCodeInfo.java      | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java
index 108fd27e21..eaf10feae0 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java
@@ -45,6 +45,12 @@ public class WxCpTpPermanentCodeInfo extends WxCpBaseResp {
    */
   @SerializedName("auth_user_info")
   private AuthUserInfo authUserInfo;
+  
+  /**
+   * 推广二维码安装相关信息
+   */
+  @SerializedName("register_code_info")
+  private RegisterCodeInfo registerCodeInfo;
 
   /**
    * 企业当前生效的版本信息
@@ -278,6 +284,34 @@ public static class AuthUserInfo implements Serializable {
     @SerializedName("open_userid")
     private String openUserid;
   }
+  
+  /**
+   * 推广二维码安装相关信息
+   */
+  @Getter
+  @Setter
+  public static class RegisterCodeInfo implements Serializable {
+    private static final long serialVersionUID = -5028321625140879571L;
+
+    /**
+     * 注册码
+     */
+    @SerializedName("register_code")
+    private String registerCode;
+
+    /**
+     * 推广包ID
+     */
+    @SerializedName("template_id")
+    private String templateId;
+
+    /**
+     * 仅当获取注册码指定该字段时才返回
+     */
+    @SerializedName("state")
+    private String state;
+
+  }
 
   /**
    * 应用对应的权限

From b6130d938abcc404a81311e225089eb00013b50b Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Tue, 12 Jul 2022 23:14:19 +0800
Subject: [PATCH 299/622] =?UTF-8?q?:art:=20=E5=8E=BB=E6=8E=89=E9=87=8D?=
 =?UTF-8?q?=E5=A4=8D=E7=9A=84=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wxpay/bean/payscore/WxPayScoreResult.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java
index 1cd4eef539..713e5d3149 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java
@@ -86,7 +86,7 @@ public static WxPayScoreResult fromJson(String json) {
   private Map payScoreSignInfo;
 
   @SerializedName("openid")
-  private String openId;
+  private String openid;
 
   @SerializedName("apply_permissions_token")
   private String applyPermissionsToken;
@@ -103,9 +103,6 @@ public static WxPayScoreResult fromJson(String json) {
   @SerializedName("authorization_success_time")
   private String authorizationSuccessTime;
 
-  @SerializedName("openid")
-  private String openid;
-
   /**
    * 收款信息
    */

From cfa842fa443821044bd3a0da5b795cec00b2fe7e Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Thu, 21 Jul 2022 21:43:50 +0800
Subject: [PATCH 300/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E6=88=96?=
 =?UTF-8?q?=E8=80=85=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/bean/product/WxMinishopOrderListResponse.java    | 2 +-
 .../weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java  | 2 +-
 .../binarywang/wxpay/bean/transfer/TransferBatchesRequest.java  | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java
index bca2a7be42..ecb4dfd70a 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java
@@ -11,7 +11,7 @@
  */
 @Data
 public class WxMinishopOrderListResponse extends WxMaShopBaseResponse {
-  private List orders;
+  private List orders;
   @SerializedName("total_num")
   private Long totalNum;
 }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java
index 39707b5ef1..d016536c20 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.java
@@ -80,7 +80,7 @@ public static class Interface {
     /**
      * api文档链接
      */
-    @SerializedName("fail_reapi_linkason")
+    @SerializedName("api_link")
     private String apiLink;
 
     /**
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java
index 56f358494d..c2188c611e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java
@@ -62,6 +62,7 @@ public class TransferBatchesRequest implements Serializable {
   /**
    * 转账明细列表
    */
+  @SpecEncrypt
   @SerializedName("transfer_detail_list")
   private List transferDetailList;
 

From 7cd213da659942e294ef52048b6da59887df9321 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 24 Jul 2022 22:11:47 +0800
Subject: [PATCH 301/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.8?=
 =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                         | 2 +-
 spring-boot-starters/pom.xml                                    | 2 +-
 spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml     | 2 +-
 .../wx-java-miniapp-spring-boot-starter/pom.xml                 | 2 +-
 spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml     | 2 +-
 spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml   | 2 +-
 spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml    | 2 +-
 spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +-
 weixin-graal/pom.xml                                            | 2 +-
 weixin-java-common/pom.xml                                      | 2 +-
 weixin-java-cp/pom.xml                                          | 2 +-
 weixin-java-miniapp/pom.xml                                     | 2 +-
 weixin-java-mp/pom.xml                                          | 2 +-
 weixin-java-open/pom.xml                                        | 2 +-
 weixin-java-pay/pom.xml                                         | 2 +-
 weixin-java-qidian/pom.xml                                      | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index c1a6d6ff42..3cc02436f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.github.binarywang
   wx-java
-  4.3.7.B
+  4.3.8.B
   pom
   WxJava - Weixin/Wechat Java SDK
   微信开发Java SDK
diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml
index e67a44bb5b..0e852987ec 100644
--- a/spring-boot-starters/pom.xml
+++ b/spring-boot-starters/pom.xml
@@ -4,7 +4,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
   pom
   wx-java-spring-boot-starters
diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
index 7cc0a6d923..65c997c53a 100644
--- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml
@@ -4,7 +4,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
index b0bd2bd2a3..2bf28f7ca9 100644
--- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
index 7188f07a5e..5231ed78fe 100644
--- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
index 6554d6d99e..b5832472f8 100644
--- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
index c2821fc9d4..b2912681fb 100644
--- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
index 5472b6fcc5..4074165a54 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml
@@ -3,7 +3,7 @@
   
     wx-java-spring-boot-starters
     com.github.binarywang
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml
index 917a27a05d..31b89ec8c9 100644
--- a/weixin-graal/pom.xml
+++ b/weixin-graal/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-graal
diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml
index 5522250340..7d48bf1cb9 100644
--- a/weixin-java-common/pom.xml
+++ b/weixin-java-common/pom.xml
@@ -6,7 +6,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-java-common
diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml
index 084ea2dac3..645cb7343e 100644
--- a/weixin-java-cp/pom.xml
+++ b/weixin-java-cp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-java-cp
diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml
index 8f1767130d..0c191887f9 100644
--- a/weixin-java-miniapp/pom.xml
+++ b/weixin-java-miniapp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-java-miniapp
diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml
index 64466db79c..9e52e88597 100644
--- a/weixin-java-mp/pom.xml
+++ b/weixin-java-mp/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-java-mp
diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml
index 851bd16f6b..3130f207a4 100644
--- a/weixin-java-open/pom.xml
+++ b/weixin-java-open/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-java-open
diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml
index 5109e93c80..f242daa1a8 100644
--- a/weixin-java-pay/pom.xml
+++ b/weixin-java-pay/pom.xml
@@ -5,7 +5,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
   4.0.0
 
diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml
index cdd01e6fa6..b8d558609d 100644
--- a/weixin-java-qidian/pom.xml
+++ b/weixin-java-qidian/pom.xml
@@ -7,7 +7,7 @@
   
     com.github.binarywang
     wx-java
-    4.3.7.B
+    4.3.8.B
   
 
   weixin-java-qidian

From 0cfcc8d4a0aaf5b9c888e71817d38246ef70dc44 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Sun, 24 Jul 2022 21:59:47 +0800
Subject: [PATCH 302/622] =?UTF-8?q?:art:=20=E9=81=BF=E5=85=8D=E5=AF=B9?=
 =?UTF-8?q?=E6=9B=BE=E5=8F=98=E5=8C=96=E7=9A=84guava=E6=96=B9=E6=B3=95?=
 =?UTF-8?q?=E7=9A=84=E4=BE=9D=E8=B5=96=EF=BC=8C=E4=BB=A5=E5=85=8D=E5=AF=B9?=
 =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B8=8D=E5=90=8C=E7=89=88=E6=9C=ACguava?=
 =?UTF-8?q?=E7=9A=84=E7=94=A8=E6=88=B7=E9=80=A0=E6=88=90=E5=9B=B0=E6=83=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../weixin/common/util/crypto/WxCryptUtil.java    |  3 ++-
 .../weixin/cp/util/crypto/WxCpCryptUtil.java      |  4 ++--
 .../weixin/cp/util/crypto/WxCpTpCryptUtil.java    |  5 ++++-
 .../weixin/cp/util/crypto/WxCpCryptUtilTest.java  |  7 +++----
 .../wx/miniapp/util/crypt/WxMaCryptUtils.java     |  3 ++-
 .../weixin/mp/util/crypto/WxMpCryptUtil.java      |  5 ++++-
 .../chanjar/weixin/open/util/WxOpenCryptUtil.java |  5 ++++-
 .../github/binarywang/wxpay/v3/util/AesUtils.java | 15 +++++++--------
 8 files changed, 28 insertions(+), 19 deletions(-)

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java
index d44791eb18..f02d087b7d 100755
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java
@@ -5,6 +5,7 @@
 import lombok.Data;
 import me.chanjar.weixin.common.error.WxRuntimeException;
 import org.apache.commons.codec.binary.Base64;
+import org.apache.commons.lang3.StringUtils;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.xml.sax.InputSource;
@@ -65,7 +66,7 @@ public WxCryptUtil() {
   public WxCryptUtil(String token, String encodingAesKey, String appidOrCorpid) {
     this.token = token;
     this.appidOrCorpid = appidOrCorpid;
-    this.aesKey = Base64.decodeBase64(CharMatcher.whitespace().removeFrom(encodingAesKey));
+    this.aesKey = Base64.decodeBase64(StringUtils.remove(encodingAesKey, " "));
   }
 
   private static String extractEncryptPart(String xml) {
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java
index 7b09bf4ad1..35b5946edb 100755
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java
@@ -1,10 +1,10 @@
 package me.chanjar.weixin.cp.util.crypto;
 
-import com.google.common.base.CharMatcher;
 import com.google.common.io.BaseEncoding;
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.common.util.crypto.WxCryptUtil;
 import me.chanjar.weixin.cp.config.WxCpConfigStorage;
+import org.apache.commons.lang3.StringUtils;
 import sun.security.util.DerInputStream;
 import sun.security.util.DerValue;
 
@@ -28,7 +28,7 @@ public WxCpCryptUtil(WxCpConfigStorage wxCpConfigStorage) {
 
     this.token = token;
     this.appidOrCorpid = corpId;
-    this.aesKey = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey));
+    this.aesKey = Base64.getDecoder().decode(StringUtils.remove(encodingAesKey, " "));
   }
 
   /**
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpTpCryptUtil.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpTpCryptUtil.java
index 900f7ea8aa..b9c5f2a6db 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpTpCryptUtil.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpTpCryptUtil.java
@@ -4,6 +4,9 @@
 import com.google.common.io.BaseEncoding;
 import me.chanjar.weixin.common.util.crypto.WxCryptUtil;
 import me.chanjar.weixin.cp.config.WxCpTpConfigStorage;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Base64;
 
 /**
  * @author someone
@@ -24,7 +27,7 @@ public WxCpTpCryptUtil(WxCpTpConfigStorage wxCpTpConfigStorage) {
 
     this.token = token;
     this.appidOrCorpid = corpId;
-    this.aesKey = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey));
+    this.aesKey = Base64.getDecoder().decode(StringUtils.remove(encodingAesKey, " "));
   }
 
 
diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java
index 62fbce13b8..7ec2477b4b 100644
--- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java
+++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java
@@ -1,8 +1,7 @@
 package me.chanjar.weixin.cp.util.crypto;
 
-import com.google.common.base.CharMatcher;
-import com.google.common.io.BaseEncoding;
 import org.apache.commons.codec.binary.Base64;
+import org.apache.commons.lang3.StringUtils;
 import org.testng.annotations.Test;
 
 import static org.testng.Assert.assertEquals;
@@ -16,8 +15,8 @@ public class WxCpCryptUtilTest {
   public void test() {
     String encodingAesKey = "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C";
     final byte[] commonsCodec = Base64.decodeBase64(encodingAesKey + "=");
-    final byte[] guava = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey));
-    final byte[] guava1 = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey + "="));
+    final byte[] guava = java.util.Base64.getDecoder().decode(StringUtils.remove(encodingAesKey, " "));
+    final byte[] guava1 = java.util.Base64.getDecoder().decode(StringUtils.remove(encodingAesKey + "=", " "));
     assertEquals(commonsCodec, guava);
     assertEquals(guava1, guava);
   }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/crypt/WxMaCryptUtils.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/crypt/WxMaCryptUtils.java
index f1a05d001a..0222265e44 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/crypt/WxMaCryptUtils.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/crypt/WxMaCryptUtils.java
@@ -14,6 +14,7 @@
 import com.google.common.io.BaseEncoding;
 import me.chanjar.weixin.common.error.WxRuntimeException;
 import org.apache.commons.codec.binary.Base64;
+import org.apache.commons.lang3.StringUtils;
 import org.bouncycastle.jce.provider.BouncyCastleProvider;
 
 import cn.binarywang.wx.miniapp.config.WxMaConfig;
@@ -28,7 +29,7 @@ public class WxMaCryptUtils extends me.chanjar.weixin.common.util.crypto.WxCrypt
   public WxMaCryptUtils(WxMaConfig config) {
     this.appidOrCorpid = config.getAppid();
     this.token = config.getToken();
-    this.aesKey = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(config.getAesKey()));
+    this.aesKey = java.util.Base64.getDecoder().decode(StringUtils.remove(config.getAesKey(), " "));
   }
 
   /**
diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/crypto/WxMpCryptUtil.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/crypto/WxMpCryptUtil.java
index 9f22dbed3e..b14023ef91 100755
--- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/crypto/WxMpCryptUtil.java
+++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/crypto/WxMpCryptUtil.java
@@ -20,6 +20,9 @@
 import com.google.common.base.CharMatcher;
 import com.google.common.io.BaseEncoding;
 import me.chanjar.weixin.mp.config.WxMpConfigStorage;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Base64;
 
 public class WxMpCryptUtil extends me.chanjar.weixin.common.util.crypto.WxCryptUtil {
 
@@ -40,7 +43,7 @@ public WxMpCryptUtil(WxMpConfigStorage wxMpConfigStorage) {
 
     this.token = token;
     this.appidOrCorpid = appId;
-    this.aesKey = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey));
+    this.aesKey = Base64.getDecoder().decode(StringUtils.remove(encodingAesKey, " "));
   }
 
 }
diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/WxOpenCryptUtil.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/WxOpenCryptUtil.java
index b507e0daa4..e6c8ce992d 100644
--- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/WxOpenCryptUtil.java
+++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/util/WxOpenCryptUtil.java
@@ -3,6 +3,9 @@
 import com.google.common.base.CharMatcher;
 import com.google.common.io.BaseEncoding;
 import me.chanjar.weixin.open.api.WxOpenConfigStorage;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Base64;
 
 /**
  * @author 007
@@ -25,6 +28,6 @@ public WxOpenCryptUtil(WxOpenConfigStorage wxOpenConfigStorage) {
 
     this.token = token;
     this.appidOrCorpid = appId;
-    this.aesKey = BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(encodingAesKey));
+    this.aesKey = Base64.getDecoder().decode(StringUtils.remove(encodingAesKey, " "));
   }
 }
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/AesUtils.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/AesUtils.java
index 2c8c40252f..b4a97ba88f 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/AesUtils.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/AesUtils.java
@@ -1,7 +1,5 @@
 package com.github.binarywang.wxpay.v3.util;
 
-import com.google.common.base.CharMatcher;
-import com.google.common.io.BaseEncoding;
 import org.apache.commons.lang3.StringUtils;
 
 import javax.crypto.Cipher;
@@ -10,6 +8,7 @@
 import javax.crypto.spec.GCMParameterSpec;
 import javax.crypto.spec.SecretKeySpec;
 import java.io.IOException;
+import java.nio.charset.StandardCharsets;
 import java.security.GeneralSecurityException;
 import java.security.InvalidAlgorithmParameterException;
 import java.security.InvalidKeyException;
@@ -58,7 +57,7 @@ public static byte[] decryptToByte(byte[] associatedData, byte[] nonce, byte[] c
   }
 
   public String decryptToString(byte[] associatedData, byte[] nonce, String ciphertext)
-      throws GeneralSecurityException, IOException {
+    throws GeneralSecurityException, IOException {
     try {
       Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
 
@@ -68,7 +67,7 @@ public String decryptToString(byte[] associatedData, byte[] nonce, String cipher
       cipher.init(Cipher.DECRYPT_MODE, key, spec);
       cipher.updateAAD(associatedData);
 
-      return new String(cipher.doFinal(BaseEncoding.base64().decode(CharMatcher.whitespace().removeFrom(ciphertext))), "utf-8");
+      return new String(cipher.doFinal(Base64.getDecoder().decode(StringUtils.remove(ciphertext, " "))), StandardCharsets.UTF_8);
     } catch (NoSuchAlgorithmException | NoSuchPaddingException e) {
       throw new IllegalStateException(e);
     } catch (InvalidKeyException | InvalidAlgorithmParameterException e) {
@@ -76,7 +75,7 @@ public String decryptToString(byte[] associatedData, byte[] nonce, String cipher
     }
   }
 
-  public static String decryptToString(String associatedData, String nonce, String ciphertext,String apiV3Key)
+  public static String decryptToString(String associatedData, String nonce, String ciphertext, String apiV3Key)
     throws GeneralSecurityException, IOException {
     try {
       Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
@@ -87,7 +86,7 @@ public static String decryptToString(String associatedData, String nonce, String
       cipher.init(Cipher.DECRYPT_MODE, key, spec);
       cipher.updateAAD(associatedData.getBytes());
 
-      return new String(cipher.doFinal(Base64.getDecoder().decode(ciphertext)), "utf-8");
+      return new String(cipher.doFinal(Base64.getDecoder().decode(ciphertext)), StandardCharsets.UTF_8);
     } catch (NoSuchAlgorithmException | NoSuchPaddingException e) {
       throw new IllegalStateException(e);
     } catch (InvalidKeyException | InvalidAlgorithmParameterException e) {
@@ -116,9 +115,9 @@ public static String createSign(Map map, String mchKey) {
   public static String HMACSHA256(String data, String key) {
     try {
       Mac sha256_HMAC = Mac.getInstance("HmacSHA256");
-      SecretKeySpec secret_key = new SecretKeySpec(key.getBytes("UTF-8"), "HmacSHA256");
+      SecretKeySpec secret_key = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), "HmacSHA256");
       sha256_HMAC.init(secret_key);
-      byte[] array = sha256_HMAC.doFinal(data.getBytes("UTF-8"));
+      byte[] array = sha256_HMAC.doFinal(data.getBytes(StandardCharsets.UTF_8));
       StringBuilder sb = new StringBuilder();
       for (byte item : array) {
         sb.append(Integer.toHexString((item & 0xFF) | 0x100).substring(1, 3));

From 5a2607787fe8a0601ce1d6f4901d211686e8881e Mon Sep 17 00:00:00 2001
From: sanjun <593721042@qq.com>
Date: Tue, 26 Jul 2022 11:46:12 +0800
Subject: [PATCH 303/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dx509=E4=BB=A3?=
 =?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../main/java/com/github/binarywang/wxpay/v3/util/PemUtils.java | 2 +-
 .../java/com/github/binarywang/wxpay/v3/util/RsaCryptoUtil.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/PemUtils.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/PemUtils.java
index c039ccb636..1983fb3387 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/PemUtils.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/PemUtils.java
@@ -47,7 +47,7 @@ public static PrivateKey loadPrivateKey(InputStream inputStream) {
 
   public static X509Certificate loadCertificate(InputStream inputStream) {
     try {
-      CertificateFactory cf = CertificateFactory.getInstance("X509");
+      CertificateFactory cf = CertificateFactory.getInstance("X.509");
       X509Certificate cert = (X509Certificate) cf.generateCertificate(inputStream);
       cert.checkValidity();
       return cert;
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/RsaCryptoUtil.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/RsaCryptoUtil.java
index 2953037403..d8fe3b35ba 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/RsaCryptoUtil.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/util/RsaCryptoUtil.java
@@ -47,7 +47,7 @@ private static void encryptField(Object encryptObject, X509Certificate certifica
           Object oldValue = field.get(encryptObject);
           if (oldValue != null) {
             String oldStr = (String) oldValue;
-            if (!oldStr.trim().equals("'")) {
+            if (!"".equals(oldStr.trim())) {
               field.set(encryptObject, encryptOAEP(oldStr, certificate));
             }
           }

From b550806956520f1b45a2b1c0ee37a6f932475b06 Mon Sep 17 00:00:00 2001
From: liming1019 
Date: Tue, 26 Jul 2022 21:40:49 +0800
Subject: [PATCH 304/622] =?UTF-8?q?:new:=20#2755=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E5=B0=8F=E7=A8=8B?=
 =?UTF-8?q?=E5=BA=8F=E4=BA=91=E5=BC=80=E5=8F=91=E7=9F=AD=E4=BF=A1=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/api/WxMaCloudService.java      | 12 +++++
 .../api/impl/WxMaCloudServiceImpl.java        | 12 +++++
 .../bean/cloud/WxCloudSendSmsV2Result.java    | 44 +++++++++++++++++++
 .../request/WxCloudSendSmsV2Request.java      | 41 +++++++++++++++++
 .../miniapp/constant/WxMaApiUrlConstants.java |  1 +
 .../api/impl/WxMaCloudServiceImplTest.java    | 14 ++++++
 6 files changed, 124 insertions(+)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java
index 02c363a3a0..03fe5a4741 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java
@@ -1,6 +1,7 @@
 package cn.binarywang.wx.miniapp.api;
 
 import cn.binarywang.wx.miniapp.bean.cloud.*;
+import cn.binarywang.wx.miniapp.bean.cloud.request.WxCloudSendSmsV2Request;
 import com.google.gson.JsonArray;
 import me.chanjar.weixin.common.error.WxErrorException;
 
@@ -539,4 +540,15 @@ Long databaseMigrateImport(String env, String collectionName, String filePath, i
    * @throws WxErrorException .
    */
   WxCloudDatabaseCollectionGetResult databaseCollectionGet(String env, Long limit, Long offset) throws WxErrorException;
+
+  /**
+   * 发送携带 URL Link 的短信
+   *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.sendSmsV2.html
+   * @param request
+   * @return WxCloudSendSmsV2Result
+   * @throws WxErrorException
+   */
+  WxCloudSendSmsV2Result sendSmsV2(WxCloudSendSmsV2Request request) throws WxErrorException;
+
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java
index d2ed6e2de2..0ef033d2ba 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java
@@ -3,6 +3,7 @@
 import cn.binarywang.wx.miniapp.api.WxMaCloudService;
 import cn.binarywang.wx.miniapp.api.WxMaService;
 import cn.binarywang.wx.miniapp.bean.cloud.*;
+import cn.binarywang.wx.miniapp.bean.cloud.request.WxCloudSendSmsV2Request;
 import cn.binarywang.wx.miniapp.constant.WxMaConstants;
 import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
 import cn.binarywang.wx.miniapp.util.JoinerUtils;
@@ -410,4 +411,15 @@ public WxCloudDatabaseCollectionGetResult databaseCollectionGet(String env, Long
     String response = this.wxMaService.post(DATABASE_COLLECTION_GET_URL, params);
     return WxGsonBuilder.create().fromJson(response, WxCloudDatabaseCollectionGetResult.class);
   }
+
+  @Override
+  public WxCloudSendSmsV2Result sendSmsV2(WxCloudSendSmsV2Request request) throws WxErrorException {
+    // 如果没有指定云环境ID,取默认云环境ID
+    if (request.getEnv() == null){
+      String cloudEnv = this.wxMaService.getWxMaConfig().getCloudEnv();
+      request.setEnv(cloudEnv);
+    }
+    String response = this.wxMaService.post(SEND_SMS_V2_URL, request);
+    return WxGsonBuilder.create().fromJson(response, WxCloudSendSmsV2Result.class);
+  }
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java
new file mode 100644
index 0000000000..eacee01b24
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java
@@ -0,0 +1,44 @@
+package cn.binarywang.wx.miniapp.bean.cloud;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 发送携带 URL Link 的短信结果
+ *
+ * @author liming1019
+ * @date 2022-07-26
+ */
+@Data
+public class WxCloudSendSmsV2Result extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 4273038291300329985L;
+
+  @SerializedName("send_status_list")
+  private List sendStatusList;
+
+  @NoArgsConstructor
+  @Data
+  public static class SendStatus implements Serializable {
+    private static final long serialVersionUID = 5765836923681051366L;
+
+    @SerializedName("serial_no")
+    private String serialNo;
+
+    @SerializedName("phone_number")
+    private String phoneNumber;
+
+    @SerializedName("code")
+    private String code;
+
+    @SerializedName("message")
+    private String message;
+
+    @SerializedName("iso_code")
+    private String isoCode;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java
new file mode 100644
index 0000000000..67f926c1f8
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java
@@ -0,0 +1,41 @@
+package cn.binarywang.wx.miniapp.bean.cloud.request;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Builder;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 发送携带 URL Link 的短信请求
+ *
+ * @author liming1019
+ * @date 2022-07-26
+ */
+@Data
+@Builder
+public class WxCloudSendSmsV2Request implements Serializable {
+  private static final long serialVersionUID = 8917033507660980594L;
+
+  @SerializedName("env")
+  private String env;
+
+  @SerializedName("url_link")
+  private String urlLink;
+
+  @SerializedName("template_id")
+  private String templateId;
+
+  @SerializedName("template_param_list")
+  private List templateParamList;
+
+  @SerializedName("phone_number_list")
+  private List phoneNumberList;
+
+  @SerializedName("use_short_name")
+  private Boolean useShortName;
+
+  @SerializedName("resource_appid")
+  private String resourceAppid;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
index fbe7c36cb0..896c59549c 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
@@ -42,6 +42,7 @@ public interface Cloud {
     String DATABASE_UPDATE_URL = "https://api.weixin.qq.com/tcb/databaseupdate";
     String DATABASE_DELETE_URL = "https://api.weixin.qq.com/tcb/databasedelete";
     String DATABASE_ADD_URL = "https://api.weixin.qq.com/tcb/databaseadd";
+    String SEND_SMS_V2_URL = "https://api.weixin.qq.com/tcb/sendsmsv2";
   }
 
   public interface Msg {
diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java
index 69d6cc990e..4b7235ba91 100644
--- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java
+++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java
@@ -2,6 +2,7 @@
 
 import cn.binarywang.wx.miniapp.api.WxMaService;
 import cn.binarywang.wx.miniapp.bean.cloud.*;
+import cn.binarywang.wx.miniapp.bean.cloud.request.WxCloudSendSmsV2Request;
 import cn.binarywang.wx.miniapp.test.ApiTestModule;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Lists;
@@ -394,4 +395,17 @@ public void testDatabaseCollectionGet() throws WxErrorException {
     assertThat(result.getCollections()[0].getIndexCount()).isGreaterThan(0);
     assertThat(result.getCollections()[0].getIndexSize()).isGreaterThan(0);
   }
+
+  @Test
+  public void testSendSmsV2() throws WxErrorException {
+    WxCloudSendSmsV2Request request = WxCloudSendSmsV2Request.builder()
+      .urlLink("https://wxaurl.cn/xxxxxx")
+      .templateId("844110")
+      .templateParamList(Arrays.asList(new String[]{"能力上新"}))
+      .phoneNumberList(Arrays.asList("+8612345678910"))
+      .build();
+
+    final WxCloudSendSmsV2Result result = this.wxMaService.getCloudService().sendSmsV2(request);
+    assertThat(result).isNotNull();
+  }
 }

From 17471906749c78558c0f90fa8b644d47186e1da5 Mon Sep 17 00:00:00 2001
From: Boris 
Date: Tue, 26 Jul 2022 21:45:32 +0800
Subject: [PATCH 305/622] =?UTF-8?q?:new:=20#2758=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1?=
 =?UTF-8?q?=E5=B0=8F=E5=95=86=E5=BA=97=E6=A0=87=E5=87=86=E7=89=88=E7=9B=B8?=
 =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../result/WxMinishopImageUploadResult.java   |   9 +-
 .../bean/result/WxMinishopPicFileResult.java  |   1 +
 .../miniapp/api/WxMaProductOrderService.java  |  76 +++++
 .../wx/miniapp/api/WxMaProductService.java    |  28 +-
 .../wx/miniapp/api/WxMaService.java           |  16 +-
 .../miniapp/api/WxMaShopAfterSaleService.java |  85 ++++-
 .../wx/miniapp/api/WxMaShopCouponService.java |  40 +++
 .../miniapp/api/impl/BaseWxMaServiceImpl.java |  12 +
 .../api/impl/WxMaProductOrderServiceImpl.java | 167 +++++++++
 .../api/impl/WxMaProductServiceImpl.java      | 113 ++++++-
 .../impl/WxMaShopAfterSaleServiceImpl.java    | 161 ++++++++-
 .../api/impl/WxMaShopCouponServiceImpl.java   | 165 +++++++++
 .../bean/product/WxMiniAfterSaleOrder.java    |  95 ++++++
 .../WxMiniBatchGetAfterSaleOrderResponse.java |  16 +
 .../WxMiniGetAfterSaleOrderResponse.java      |  15 +
 .../product/WxMiniOrderAfterSaleDetail.java   |  24 ++
 .../product/WxMiniOrderDeliveryRequest.java   |  41 +++
 .../bean/product/WxMinishopAddressInfo.java   |   2 +-
 .../bean/product/WxMinishopDeliveryInfo.java  |   8 +-
 .../product/WxMinishopGetBrandResponse.java   |  35 ++
 .../WxMinishopGetCategoryResponse.java        |  30 ++
 .../WxMinishopGetFrightTemplateResponse.java  |  26 ++
 .../WxMinishopOrderDetailResponse.java        |  19 ++
 .../bean/product/WxMinishopOrderResult.java   |   3 +-
 .../bean/product/WxMinishopProductInfo.java   |   6 +
 .../miniapp/bean/product/WxMinishopSku.java   |   3 +
 .../product/WxMinishopSkuListResponse.java    |  14 +
 .../miniapp/bean/shop/WxMaShopCouponInfo.java | 319 ++++++++++++++++++
 .../miniapp/bean/shop/WxMaShopOrderInfo.java  |  49 +++
 .../request/WxMaShopAcceptReturnRequest.java  |  43 +++
 .../request/WxMaShopAfterSaleAddRequest.java  |  24 +-
 .../request/WxMaShopAfterSaleListRequest.java |  36 ++
 .../WxMaShopAfterSaleUpdateRequest.java       |  11 +
 ...aShopAfterSaleUploadReturnInfoRequest.java |  31 ++
 .../WxMaShopUploadCerficatesRequest.java      |  28 ++
 .../WxMaShopAfterSaleAddResponse.java         |  15 +
 .../WxMaShopAfterSaleGetResponse.java         |  66 +++-
 .../WxMaShopAfterSaleListResponse.java        |  25 ++
 .../shop/response/WxMaShopBaseResponse.java   |   4 +-
 .../response/WxMaShopCouponListResponse.java  |  23 ++
 .../shop/response/WxMaShopCouponResponse.java |  18 +
 .../WxMaShopUserCouponListResponse.java       |  76 +++++
 .../miniapp/constant/WxMaApiUrlConstants.java |  44 ++-
 .../WxMaShopAfterSaleServiceImplTest.java     |   3 +-
 44 files changed, 1965 insertions(+), 60 deletions(-)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductOrderService.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductOrderServiceImpl.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java

diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopImageUploadResult.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopImageUploadResult.java
index 9aa7a81e2f..e476de7881 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopImageUploadResult.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopImageUploadResult.java
@@ -1,5 +1,6 @@
 package me.chanjar.weixin.common.bean.result;
 
+import com.google.gson.JsonElement;
 import com.google.gson.JsonObject;
 import com.google.gson.JsonParser;
 import lombok.Data;
@@ -25,8 +26,12 @@ public static WxMinishopImageUploadResult fromJson(String json) {
     if (result.getErrcode().equals("0")) {
       WxMinishopPicFileResult picFileResult = new WxMinishopPicFileResult();
       JsonObject picObject = jsonObject.get("pic_file").getAsJsonObject();
-      picFileResult.setMediaId(picObject.get("media_id").getAsString());
-      picFileResult.setPayMediaId(picObject.get("pay_media_id").getAsString());
+      JsonElement mediaId = picObject.get("media_id");
+      picFileResult.setMediaId(mediaId==null ? "" : mediaId.getAsString());
+      JsonElement payMediaId = picObject.get("pay_media_id");
+      picFileResult.setPayMediaId(payMediaId==null ? "" : payMediaId.getAsString());
+      JsonElement tempImgUrl = picObject.get("temp_img_url");
+      picFileResult.setTempImgUrl(tempImgUrl==null ? "" : tempImgUrl.getAsString());
       result.setPicFile(picFileResult);
 
     }
diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopPicFileResult.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopPicFileResult.java
index 1f77a1e6ab..2ae2e2320b 100644
--- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopPicFileResult.java
+++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/result/WxMinishopPicFileResult.java
@@ -8,4 +8,5 @@
 public class WxMinishopPicFileResult implements Serializable {
   private String mediaId;
   private String payMediaId;
+  private String tempImgUrl;
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductOrderService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductOrderService.java
new file mode 100644
index 0000000000..793df60a27
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductOrderService.java
@@ -0,0 +1,76 @@
+package cn.binarywang.wx.miniapp.api;
+
+import cn.binarywang.wx.miniapp.bean.product.WxMiniBatchGetAfterSaleOrderResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMiniGetAfterSaleOrderResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMiniOrderDeliveryRequest;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderDetailResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import java.util.List;
+import me.chanjar.weixin.common.error.WxErrorException;
+
+/**
+ * 小程序交易组件-标准版-商品服务
+ *
+ * @author boris
+ */
+public interface WxMaProductOrderService {
+
+
+  /**
+   * 获取订单列表
+   *
+   * @param startCreateTime 否(未填更新时间范围时必填)
+   * @param endCreateTime   否(未填更新时间范围时必填)
+   * @param startUpdateTime 否(未填创建时间范围时必填)
+   * @param endUpdateTime   否(未填创建时间范围时必填)
+   * @param status          订单状态,枚举值见RequestOrderStatus
+   * @param page            第几页(最小填1)
+   * @param pageSize        每页数量(不超过10,000)
+   * @param source          1:小商店,2:CPS带货
+   * @return
+   * @throws WxErrorException
+   */
+  WxMinishopOrderListResponse getOrderList(
+    String startCreateTime,
+    String endCreateTime,
+    String startUpdateTime,
+    String endUpdateTime,
+    Integer status,
+    Integer page,
+    Integer pageSize,
+    Integer source
+  ) throws WxErrorException;
+
+
+  /**
+   * 获取订单详情
+   *
+   * @param orderId 订单ID,可从获取订单列表中获得
+   * @return
+   */
+  WxMinishopOrderDetailResponse getOrderDetail(Long orderId) throws WxErrorException;
+
+
+  /**
+   * 修改订单备注
+   * @param orderId  订单id
+   * @param merchantNotes 备注内容
+   */
+  void changeMerchantNotes(Long orderId,String merchantNotes) throws WxErrorException;
+
+  WxMaShopBaseResponse deliverySend(WxMiniOrderDeliveryRequest request)
+    throws WxErrorException;
+
+  WxMiniGetAfterSaleOrderResponse getAfterSaleOrder(Long afterSaleOrderId)
+    throws WxErrorException;
+
+  WxMiniBatchGetAfterSaleOrderResponse batchGetAfterSaleOrder(List afterSaleOrderIdList)
+    throws WxErrorException;
+
+  WxMaShopBaseResponse afterSaleAccept(Long orderId, Long addressId)
+    throws WxErrorException;
+
+  WxMaShopBaseResponse afterSaleReject(Long afterSaleOrderId, String rejectReason)
+    throws WxErrorException;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java
index b496470749..b629772a27 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaProductService.java
@@ -2,9 +2,13 @@
 
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSkuData;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopAddGoodsSpuData;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopGetBrandResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopGetCategoryResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopGetFrightTemplateResponse;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopResult;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSku;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopSkuListResponse;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpu;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGet;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGetResponse;
@@ -13,7 +17,9 @@
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopSpuPageRequest;
 import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
 import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopGetSpuListResponse;
+import java.io.File;
 import java.util.List;
+import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadResult;
 import me.chanjar.weixin.common.error.WxErrorException;
 
 /**
@@ -22,7 +28,18 @@
  * @author boris
  */
 public interface WxMaProductService {
-  WxMinishopResult addSpu(WxMinishopSpu spuInfo) throws WxErrorException;
+
+  WxMinishopImageUploadResult uploadImg(File file, Integer respType, Integer width, Integer height) throws WxErrorException;
+
+  WxMinishopImageUploadResult uploadImg(String imgUrl, Integer respType) throws WxErrorException;
+
+  WxMinishopGetCategoryResponse getCategory(Integer fCatId) throws WxErrorException;
+
+  WxMinishopGetBrandResponse getBrand() throws WxErrorException;
+
+  WxMinishopGetFrightTemplateResponse getFreightTemplate() throws WxErrorException;
+
+  WxMinishopResult addSpu(WxMinishopSpu spuInfo) throws WxErrorException;
 
   WxMaShopBaseResponse deleteSpu(Integer productId, String outProductId) throws WxErrorException;
 
@@ -40,6 +57,9 @@ WxMaShopBaseResponse listingSpu(Integer productId, String outProductId)
   WxMaShopBaseResponse delistingSpu(Integer productId, String outProductId)
     throws WxErrorException;
 
+  WxMinishopSkuListResponse getSkuList(Long productId, Integer needRealStock, Integer needEditSku)
+    throws WxErrorException;
+
   /**
    * 小商店新增sku信息
    *
@@ -96,7 +116,7 @@ WxMaShopBaseResponse delistingSpu(Integer productId, String outProductId)
    * @throws WxErrorException
    */
   WxMinishopResult minishopGoodsUpdateSkuPrice(Long productId,
-    Long outProductId, String outSkuId, Long skuId, Long salePrice, Long marketPrice) throws WxErrorException;
+    String outProductId, String outSkuId, Long skuId, Long salePrice, Long marketPrice) throws WxErrorException;
 
 
   /**
@@ -112,8 +132,6 @@ WxMinishopResult minishopGoodsUpdateSkuPrice(Long
    * @throws WxErrorException
    */
   WxMinishopResult minishopGoodsUpdateSkuStock(Long productId,
-    Long outProductId, String outSkuId, Long skuId, Integer type, Integer stockNum) throws WxErrorException;
+    String outProductId, String outSkuId, Long skuId, Integer type, Integer stockNum) throws WxErrorException;
 
-  WxMinishopOrderListResponse minishopOrderGetList(String startCreateTime, String endCreateTime,
-    Integer status, Integer page, Integer pageSize, Integer source) throws WxErrorException;
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java
index f424ed4552..72e8aad1e6 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java
@@ -494,13 +494,25 @@ public interface WxMaService extends WxService {
 
   /**
    * 分享人接口
-   * @return
+   * @return WxMaShopSharerService
    */
   WxMaShopSharerService getShopSharerService();
 
   /**
    * 标准交易组件接口
-   * @return
+   * @return WxMaProductService
    */
   WxMaProductService getProductService();
+
+  /**
+   * 小商店-标准交易组件-订单服务
+   * @return getProductOrderService
+   */
+  WxMaProductOrderService getProductOrderService();
+
+  /**
+   * 小商店-标准交易组件-优惠券
+   * @return getWxMaShopCouponService
+   */
+  WxMaShopCouponService getWxMaShopCouponService();
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAfterSaleService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAfterSaleService.java
index 97b8aa56d7..4f5a3f18d2 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAfterSaleService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAfterSaleService.java
@@ -1,9 +1,15 @@
 package cn.binarywang.wx.miniapp.api;
 
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAcceptReturnRequest;
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest;
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleGetRequest;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleListRequest;
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleUpdateRequest;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleUploadReturnInfoRequest;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopUploadCerficatesRequest;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleAddResponse;
 import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleGetResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleListResponse;
 import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
 import me.chanjar.weixin.common.error.WxErrorException;
 
@@ -21,7 +27,7 @@ public interface WxMaShopAfterSaleService {
    * @return WxMaShopBaseResponse
    * @throws WxErrorException
    */
-  WxMaShopBaseResponse add(WxMaShopAfterSaleAddRequest request) throws WxErrorException;
+  WxMaShopAfterSaleAddResponse add(WxMaShopAfterSaleAddRequest request) throws WxErrorException;
 
   /**
    * 获取订单下售后单
@@ -41,4 +47,81 @@ public interface WxMaShopAfterSaleService {
    */
   WxMaShopBaseResponse update(WxMaShopAfterSaleUpdateRequest request) throws WxErrorException;
 
+  /**
+   * 用户取消售后申请
+   * @param outAfterSaleId 商家自定义订单ID
+   * @param afterSaleId 与out_aftersale_id二选一
+   * @param openId 用户openid
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse cancel(String outAfterSaleId, Long afterSaleId, String openId)
+    throws WxErrorException;
+
+  /**
+   * 用户上传退货物流
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse uploadReturnInfo(WxMaShopAfterSaleUploadReturnInfoRequest request)
+    throws WxErrorException;
+
+  /**
+   * 商家同意退款
+   * @param outAfterSaleId
+   * @param afterSaleId
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse acceptRefund(String outAfterSaleId, Long afterSaleId)
+    throws WxErrorException;
+
+  /**
+   * 商家同意退货
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse acceptReturn(WxMaShopAcceptReturnRequest request)
+    throws WxErrorException;
+
+  /**
+   * 商家拒绝售后
+   * @param outAfterSaleId
+   * @param afterSaleId
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse reject(String outAfterSaleId, Long afterSaleId)
+    throws WxErrorException;
+
+  /**
+   * 商家上传退款凭证
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse uploadCertificates(WxMaShopUploadCerficatesRequest request)
+    throws WxErrorException;
+
+  /**
+   * 商家更新订单售后期
+   * @param outOrderId
+   * @param orderId
+   * @param openid
+   * @param afterSaleDeadline
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopBaseResponse updateDeadline(String outOrderId, Long orderId, String openid,
+    Long afterSaleDeadline) throws WxErrorException;
+
+  /**
+   * 获取售后单详情
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  WxMaShopAfterSaleListResponse list(WxMaShopAfterSaleListRequest request) throws WxErrorException;
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java
new file mode 100644
index 0000000000..bee5a0ec52
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java
@@ -0,0 +1,40 @@
+package cn.binarywang.wx.miniapp.api;
+
+import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopCouponListResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopCouponResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopUserCouponListResponse;
+import me.chanjar.weixin.common.error.WxErrorException;
+
+/**
+ * @author leiin
+ * @date 2022/7/1 2:49 下午
+ */
+public interface WxMaShopCouponService {
+
+  WxMaShopBaseResponse addCoupon(WxMaShopCouponInfo couponInfo) throws WxErrorException;
+
+  WxMaShopCouponResponse getCoupon(String outCouponId) throws WxErrorException;
+
+  WxMaShopCouponListResponse getCouponList(Integer pageSize,
+    Integer offset) throws WxErrorException;
+
+  WxMaShopBaseResponse updateCoupon(WxMaShopCouponInfo couponInfo) throws WxErrorException;
+
+  WxMaShopBaseResponse updateCouponStatus(String outCouponId,
+    Integer status) throws WxErrorException;
+
+  WxMaShopBaseResponse updateCouponStock(String outCouponId, Integer isUsedNum, Integer receiveNum) throws WxErrorException;
+
+  WxMaShopBaseResponse addUserCoupon(String openid, String outUserCouponId,
+    String outCouponId, Integer status, Long recvTime) throws WxErrorException;
+
+  WxMaShopUserCouponListResponse getUserCouponList(Integer pageSize, Integer offset, String openid) throws WxErrorException;
+
+  WxMaShopBaseResponse updateUserCoupon(String openid, String outUserCouponId,
+    String outCouponId, Long useTime, Long recvTime) throws WxErrorException;
+
+  WxMaShopBaseResponse updateUserCouponStatus(String openid, String outUserCouponId,
+    String outCouponId, Integer status) throws WxErrorException;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
index 314f20de7c..b1d3db0d7b 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
@@ -81,6 +81,8 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH
   private final WxMaSafetyRiskControlService safetyRiskControlService = new WxMaSafetyRiskControlServiceImpl(this);
   private final WxMaShopSharerService shopSharerService = new WxMaShopSharerServiceImpl(this);
   private final WxMaProductService productService = new WxMaProductServiceImpl(this);
+  private final WxMaProductOrderService productOrderService = new WxMaProductOrderServiceImpl(this);
+  private final WxMaShopCouponService wxMaShopCouponService = new WxMaShopCouponServiceImpl(this);
   private Map configMap;
   private int retrySleepMillis = 1000;
   private int maxRetryTimes = 5;
@@ -600,4 +602,14 @@ public WxMaImmediateDeliveryService getWxMaImmediateDeliveryService() {
   @Override
   public WxMaProductService getProductService() { return this.productService; }
 
+  @Override
+  public WxMaProductOrderService getProductOrderService() {
+    return this.productOrderService;
+  }
+
+  @Override
+  public WxMaShopCouponService getWxMaShopCouponService() {
+    return this.wxMaShopCouponService;
+  }
+
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductOrderServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductOrderServiceImpl.java
new file mode 100644
index 0000000000..15ed07a945
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductOrderServiceImpl.java
@@ -0,0 +1,167 @@
+package cn.binarywang.wx.miniapp.api.impl;
+
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.AFTER_SALE_ACCEPT_APPLY;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.AFTER_SALE_REJECT_APPLY;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.BATCH_GET_AFTER_SALE_ORDER;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.GET_AFTER_SALE_ORDER;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.PRODUCT_DELIVERY_SEND;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.PRODUCT_ORDER_CHANGE_MERCHANT_NOTES_URL;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.PRODUCT_ORDER_DETAIL_URL;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.PRODUCT_ORDER_GET_LIST;
+
+import cn.binarywang.wx.miniapp.api.WxMaProductOrderService;
+import cn.binarywang.wx.miniapp.api.WxMaService;
+import cn.binarywang.wx.miniapp.bean.product.WxMiniBatchGetAfterSaleOrderResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMiniGetAfterSaleOrderResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMiniOrderDeliveryRequest;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderDetailResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import java.util.List;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import me.chanjar.weixin.common.error.WxError;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.common.util.json.GsonHelper;
+import me.chanjar.weixin.common.util.json.WxGsonBuilder;
+
+/**
+ * 小程序交易组件-标准版-订单服务
+ *
+ * @author boris 详情请见 : https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent/API/order/get_order_list.html
+ */
+@RequiredArgsConstructor
+@Slf4j
+public class WxMaProductOrderServiceImpl implements WxMaProductOrderService {
+
+  private final WxMaService wxMaService;
+
+
+  @Override
+  public WxMinishopOrderListResponse getOrderList(
+    String startCreateTime, String endCreateTime, String startUpdateTime,
+    String endUpdateTime, Integer status, Integer page, Integer pageSize, Integer source)
+    throws WxErrorException {
+    String responseContent = this.wxMaService
+      .post(PRODUCT_ORDER_GET_LIST, GsonHelper.buildJsonObject(
+        "start_create_time", startCreateTime, "end_create_time", endCreateTime,
+        "start_update_time", startUpdateTime, "end_update_time", endUpdateTime,
+        "status", status, "page", page, "page_size", pageSize, "source", source));
+
+    WxMinishopOrderListResponse response = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMinishopOrderListResponse.class);
+
+    if (response.getErrCode() != 0) {
+      throw new WxErrorException(new WxError(response.getErrCode(), response.getErrMsg()));
+    }
+
+    return response;
+
+  }
+
+  @Override
+  public WxMinishopOrderDetailResponse getOrderDetail(
+    Long orderId) throws WxErrorException {
+    String responseContent = this.wxMaService
+      .post(PRODUCT_ORDER_DETAIL_URL, GsonHelper.buildJsonObject(
+        "order_id", orderId));
+
+    WxMinishopOrderDetailResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMinishopOrderDetailResponse.class);
+
+    if (getDetailResponse.getErrCode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrCode(), getDetailResponse.getErrMsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public void changeMerchantNotes(Long orderId, String merchantNotes) throws WxErrorException {
+    String responseContent = this.wxMaService
+      .post(PRODUCT_ORDER_CHANGE_MERCHANT_NOTES_URL, GsonHelper.buildJsonObject(
+        "order_id", orderId,"merchant_notes",merchantNotes));
+
+    WxMaShopBaseResponse changeResult = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaShopBaseResponse.class);
+
+    if (changeResult.getErrCode() != 0) {
+      throw new WxErrorException(
+        new WxError(changeResult.getErrCode(), changeResult.getErrMsg()));
+    }
+  }
+
+  @Override
+  public WxMaShopBaseResponse deliverySend(WxMiniOrderDeliveryRequest request)
+    throws WxErrorException {
+    String response = this.wxMaService.post(PRODUCT_DELIVERY_SEND, request);
+    WxMaShopBaseResponse baseResponse = WxMaGsonBuilder.create()
+      .fromJson(response, WxMaShopBaseResponse.class);
+    if (baseResponse.getErrCode() != 0) {
+      throw new WxErrorException(
+        new WxError(baseResponse.getErrCode(), baseResponse.getErrMsg()));
+    }
+    return baseResponse;
+  }
+
+  @Override
+  public WxMiniGetAfterSaleOrderResponse getAfterSaleOrder(Long afterSaleOrderId)
+    throws WxErrorException {
+    String response = this.wxMaService.post(GET_AFTER_SALE_ORDER,
+      GsonHelper.buildJsonObject("after_sale_order_id", afterSaleOrderId));
+
+    WxMiniGetAfterSaleOrderResponse orderResponse = WxMaGsonBuilder.create()
+      .fromJson(response, WxMiniGetAfterSaleOrderResponse.class);
+    if (orderResponse.getErrCode() != 0) {
+      throw new WxErrorException(
+        new WxError(orderResponse.getErrCode(), orderResponse.getErrMsg()));
+    }
+    return orderResponse;
+  }
+
+  @Override
+  public WxMiniBatchGetAfterSaleOrderResponse batchGetAfterSaleOrder(
+    List afterSaleOrderIdList)
+    throws WxErrorException {
+    String response = this.wxMaService.post(BATCH_GET_AFTER_SALE_ORDER,
+      GsonHelper.buildJsonObject("after_sale_order_id_list", afterSaleOrderIdList));
+
+    WxMiniBatchGetAfterSaleOrderResponse orderResponse = WxMaGsonBuilder.create()
+      .fromJson(response, WxMiniBatchGetAfterSaleOrderResponse.class);
+    if (orderResponse.getAfterSaleOrderList() == null) {
+      throw new WxErrorException(
+        new WxError(orderResponse.getErrCode(), "售后查询不存在"));
+    }
+    return orderResponse;
+  }
+
+  @Override
+  public WxMaShopBaseResponse afterSaleAccept(Long orderId, Long addressId)
+    throws WxErrorException {
+    String response = this.wxMaService.post(AFTER_SALE_ACCEPT_APPLY,
+      GsonHelper.buildJsonObject("order_id", orderId, "address_id", addressId));
+    WxMaShopBaseResponse baseResponse = WxGsonBuilder.create()
+      .fromJson(response, WxMaShopBaseResponse.class);
+    if (baseResponse.getErrCode() != 0) {
+      throw new WxErrorException(
+        new WxError(baseResponse.getErrCode(), baseResponse.getErrMsg()));
+    }
+    return baseResponse;
+  }
+
+  @Override
+  public WxMaShopBaseResponse afterSaleReject(Long afterSaleOrderId, String rejectReason)
+    throws WxErrorException {
+    String response = this.wxMaService.post(AFTER_SALE_REJECT_APPLY,
+      GsonHelper.buildJsonObject("order_id", afterSaleOrderId, "reject_reason", rejectReason));
+    WxMaShopBaseResponse baseResponse = WxGsonBuilder.create()
+      .fromJson(response, WxMaShopBaseResponse.class);
+    if (baseResponse.getErrCode() != 0) {
+      throw new WxErrorException(
+        new WxError(baseResponse.getErrCode(), baseResponse.getErrMsg()));
+    }
+    return baseResponse;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java
index 6652cd3b0d..9825cfa5d5 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaProductServiceImpl.java
@@ -1,5 +1,13 @@
 package cn.binarywang.wx.miniapp.api.impl;
 
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.OTHER.GET_BRAND;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.OTHER.GET_CATEGORY;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.OTHER.GET_FREIGHT_TEMPLATE;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.OTHER.IMG_UPLOAD;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_ADD_SKU_URL;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_BATCH_ADD_SKU_URL;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_DEL_SKU_URL;
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_SKU_LIST;
 import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Order.PRODUCT_ORDER_GET_LIST;
 import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_ADD_SKU_URL;
 import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Product.Sku.PRODUCT_BATCH_ADD_SKU_URL;
@@ -22,6 +30,12 @@
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopOrderListResponse;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopResult;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSku;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopGetBrandResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopGetCategoryResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopGetFrightTemplateResponse;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopResult;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopSku;
+import cn.binarywang.wx.miniapp.bean.product.WxMinishopSkuListResponse;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpu;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuGetResponse;
 import cn.binarywang.wx.miniapp.bean.product.WxMinishopSpuListResponse;
@@ -32,10 +46,16 @@
 import com.google.gson.JsonArray;
 import com.google.gson.JsonElement;
 import com.google.gson.JsonObject;
+import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
+import me.chanjar.weixin.common.bean.result.WxMinishopImageUploadResult;
+import me.chanjar.weixin.common.enums.WxType;
+import me.chanjar.weixin.common.error.WxError;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.common.util.http.MinishopUploadRequestExecutor;
 import me.chanjar.weixin.common.enums.WxType;
 import me.chanjar.weixin.common.error.WxError;
 import me.chanjar.weixin.common.error.WxErrorException;
@@ -52,6 +72,66 @@ public class WxMaProductServiceImpl implements WxMaProductService {
   private static final String ERR_CODE = "errcode";
   private final WxMaService wxMaService;
 
+  @Override
+  public WxMinishopImageUploadResult uploadImg(File file, Integer respType, Integer width,
+    Integer height) throws WxErrorException {
+    String url = IMG_UPLOAD + "?upload_type=0" + "&height=" + height + "&width=" + width + "&resp_type=" + respType;
+    WxMinishopImageUploadResult result = this.wxMaService.execute(
+      MinishopUploadRequestExecutor.create(this.wxMaService.getRequestHttp()), url, file);
+    return result;
+  }
+
+  @Override
+  public WxMinishopImageUploadResult uploadImg(String imgUrl, Integer respType) throws WxErrorException {
+    JsonObject jsonObject = GsonHelper.buildJsonObject("img_url", imgUrl);
+    String url = IMG_UPLOAD + "?upload_type=1" + "&resp_type=" + respType;
+    String response = this.wxMaService.post(url, jsonObject);
+    JsonObject respObj = GsonParser.parse(response);
+
+    if (respObj.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp));
+    }
+
+    return WxMinishopImageUploadResult.fromJson(response);
+  }
+
+  @Override
+  public WxMinishopGetCategoryResponse getCategory(Integer fCatId) throws WxErrorException {
+    JsonObject jsonObject = GsonHelper.buildJsonObject("f_cat_id", fCatId);
+    String response = this.wxMaService.post(GET_CATEGORY, jsonObject);
+    JsonObject respObj = GsonParser.parse(response);
+
+    if (respObj.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp));
+    }
+
+    return WxMaGsonBuilder.create().fromJson(response, WxMinishopGetCategoryResponse.class);
+  }
+
+  @Override
+  public WxMinishopGetBrandResponse getBrand() throws WxErrorException {
+    String response = this.wxMaService.post(GET_BRAND, new Object());
+    JsonObject respObj = GsonParser.parse(response);
+
+    if (respObj.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp));
+    }
+
+    return WxMaGsonBuilder.create().fromJson(response, WxMinishopGetBrandResponse.class);
+  }
+
+  @Override
+  public WxMinishopGetFrightTemplateResponse getFreightTemplate() throws WxErrorException {
+    String response = this.wxMaService.post(GET_FREIGHT_TEMPLATE, new Object());
+    JsonObject respObj = GsonParser.parse(response);
+
+    if (respObj.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp));
+    }
+
+    return WxMaGsonBuilder.create().fromJson(response, WxMinishopGetFrightTemplateResponse.class);
+  }
+
   @Override
   public WxMinishopResult addSpu(WxMinishopSpu spu) throws WxErrorException {
 
@@ -157,6 +237,19 @@ public WxMaShopBaseResponse delistingSpu(Integer productId, String outProductId)
     return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
   }
 
+  @Override
+  public WxMinishopSkuListResponse getSkuList(Long productId, Integer needRealStock, Integer needEditSku)
+    throws WxErrorException {
+    String responseContent = this.wxMaService
+      .post(PRODUCT_SKU_LIST, GsonHelper.buildJsonObject("product_id", productId,
+        "need_edit_sku", needEditSku, "need_real_stock", needRealStock));
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMinishopSkuListResponse.class);
+  }
+
   @Override
   public WxMinishopResult minishiopGoodsAddSku(
     WxMinishopSku sku) throws WxErrorException {
@@ -228,7 +321,6 @@ public WxMinishopResult minishopGoodsUpdateSku(
     result.setErrcode(jsonObject.get("errcode").getAsInt());
     JsonObject dataObj = jsonObject.get("data").getAsJsonObject();
     WxMinishopUpdateGoodsSkuData resultData = new WxMinishopUpdateGoodsSkuData();
-    resultData.setSkuId(dataObj.get("sku_id").getAsLong());
     resultData.setUpdateTime(dataObj.get("update_time").getAsString());
     result.setData(resultData);
     return result;
@@ -236,7 +328,7 @@ public WxMinishopResult minishopGoodsUpdateSku(
 
   @Override
   public WxMinishopResult minishopGoodsUpdateSkuPrice(
-    Long productId, Long outProductId, String outSkuId, Long skuId, Long salePrice,
+    Long productId, String outProductId, String outSkuId, Long skuId, Long salePrice,
     Long marketPrice) throws WxErrorException {
     String response = this.wxMaService
       .post(PRODUCT_UPDATE_SKU_PRICE_URL, GsonHelper.buildJsonObject(
@@ -251,7 +343,6 @@ public WxMinishopResult minishopGoodsUpdateSkuPric
     result.setErrcode(jsonObject.get("errcode").getAsInt());
     JsonObject dataObj = jsonObject.get("data").getAsJsonObject();
     WxMinishopUpdateGoodsSkuData resultData = new WxMinishopUpdateGoodsSkuData();
-    resultData.setSkuId(dataObj.get("sku_id").getAsLong());
     resultData.setUpdateTime(dataObj.get("update_time").getAsString());
     result.setData(resultData);
     return result;
@@ -259,7 +350,7 @@ public WxMinishopResult minishopGoodsUpdateSkuPric
 
   @Override
   public WxMinishopResult minishopGoodsUpdateSkuStock(
-    Long productId, Long outProductId, String outSkuId, Long skuId, Integer type,
+    Long productId, String outProductId, String outSkuId, Long skuId, Integer type,
     Integer stockNum) throws WxErrorException {
     String response = this.wxMaService
       .post(PRODUCT_UPDATE_SKU_STOCK_URL, GsonHelper.buildJsonObject(
@@ -279,20 +370,6 @@ public WxMinishopResult minishopGoodsUpdateSkuStoc
     return result;
   }
 
-  @Override
-  public WxMinishopOrderListResponse minishopOrderGetList(String startCreateTime, String endCreateTime,
-    Integer status, Integer page, Integer pageSize, Integer source) throws WxErrorException {
-    String response = this.wxMaService
-      .post(PRODUCT_ORDER_GET_LIST, GsonHelper.buildJsonObject(
-        "start_create_time", startCreateTime, "end_create_time", endCreateTime,
-        "status", status, "page", page, "page_size", pageSize, "source", source));
-
-    JsonObject jsonObject = GsonParser.parse(response);
-    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
-      throw new WxErrorException(WxError.fromJson(response, WxType.MiniApp));
-    }
 
-    return WxMaGsonBuilder.create().fromJson(response, WxMinishopOrderListResponse.class);
-  }
 
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImpl.java
index 9fd24350a5..5641489b4c 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImpl.java
@@ -2,10 +2,16 @@
 
 import cn.binarywang.wx.miniapp.api.WxMaService;
 import cn.binarywang.wx.miniapp.api.WxMaShopAfterSaleService;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAcceptReturnRequest;
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest;
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleGetRequest;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleListRequest;
 import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleUpdateRequest;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleUploadReturnInfoRequest;
+import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopUploadCerficatesRequest;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleAddResponse;
 import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleGetResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleListResponse;
 import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
 import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
 import com.google.gson.JsonObject;
@@ -14,6 +20,7 @@
 import me.chanjar.weixin.common.enums.WxType;
 import me.chanjar.weixin.common.error.WxError;
 import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.common.util.json.GsonHelper;
 import me.chanjar.weixin.common.util.json.GsonParser;
 
 import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Aftersale.*;
@@ -37,13 +44,13 @@ public class WxMaShopAfterSaleServiceImpl implements WxMaShopAfterSaleService {
    * @throws WxErrorException
    */
   @Override
-  public WxMaShopBaseResponse add(WxMaShopAfterSaleAddRequest request) throws WxErrorException {
+  public WxMaShopAfterSaleAddResponse add(WxMaShopAfterSaleAddRequest request) throws WxErrorException {
     String responseContent = this.wxMaService.post(AFTERSALE_ADD, request);
     JsonObject jsonObject = GsonParser.parse(responseContent);
     if (jsonObject.get(ERRCODE).getAsInt() != 0) {
       throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
     }
-    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopAfterSaleAddResponse.class);
   }
 
   /**
@@ -79,4 +86,154 @@ public WxMaShopBaseResponse update(WxMaShopAfterSaleUpdateRequest request) throw
     }
     return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
   }
+
+  /**
+   * 用户取消售后申请
+   * @param outAfterSaleId 商家自定义订单ID
+   * @param afterSaleId 与out_aftersale_id二选一
+   * @param openId 用户openid
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse cancel(String outAfterSaleId, Long afterSaleId, String openId)
+    throws WxErrorException {
+    JsonObject request = GsonHelper.buildJsonObject("out_aftersale_id", outAfterSaleId,
+      "aftersale_id", afterSaleId, "openid", openId);
+    String resp = this.wxMaService.post(AFTERSALE_CANCEL, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 用户上传退货物流
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse uploadReturnInfo(WxMaShopAfterSaleUploadReturnInfoRequest request)
+    throws WxErrorException {
+    String resp = this.wxMaService.post(AFTERSALE_UPLOAD_RETURN_INFO, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 商家同意退款
+   * @param outAfterSaleId
+   * @param afterSaleId
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse acceptRefund(String outAfterSaleId, Long afterSaleId)
+    throws WxErrorException {
+    JsonObject request = GsonHelper.buildJsonObject("out_aftersale_id", outAfterSaleId,
+      "aftersale_id", afterSaleId);
+    String resp = this.wxMaService.post(AFTERSALE_ACCEPT_REFUND, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 商家同意退货
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse acceptReturn(WxMaShopAcceptReturnRequest request)
+    throws WxErrorException {
+    String resp = this.wxMaService.post(AFTERSALE_ACCEPT_RETURN, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 商家拒绝售后
+   * @param outAfterSaleId
+   * @param afterSaleId
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse reject(String outAfterSaleId, Long afterSaleId)
+    throws WxErrorException {
+    JsonObject request = GsonHelper.buildJsonObject("out_aftersale_id", outAfterSaleId,
+      "aftersale_id", afterSaleId);
+    String resp = this.wxMaService.post(AFTERSALE_REJECT, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 商家上传退款凭证
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse uploadCertificates(WxMaShopUploadCerficatesRequest request)
+    throws WxErrorException {
+    String resp = this.wxMaService.post(AFTERSALE_UPLOAD_CERTIFICATES, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 商家更新订单售后期
+   * @param outOrderId
+   * @param orderId
+   * @param openid
+   * @param afterSaleDeadline
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopBaseResponse updateDeadline(String outOrderId, Long orderId, String openid,
+    Long afterSaleDeadline) throws WxErrorException {
+    JsonObject request = GsonHelper.buildJsonObject("out_order_id", outOrderId,
+      "order_id", orderId, "openid", openid, "after_sale_deadline", afterSaleDeadline);
+    String resp = this.wxMaService.post(AFTERSALE_UPLOAD_DEADLINE, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopBaseResponse.class);
+  }
+
+  /**
+   * 获取售后单详情
+   * @param request
+   * @return
+   * @throws WxErrorException
+   */
+  @Override
+  public WxMaShopAfterSaleListResponse list(WxMaShopAfterSaleListRequest request) throws WxErrorException {
+    String resp = this.wxMaService.post(AFTERSALE_GET_LIST, request);
+    JsonObject jsonObject = GsonParser.parse(resp);
+    if (jsonObject.get(ERRCODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(resp, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(resp, WxMaShopAfterSaleListResponse.class);
+  }
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java
new file mode 100644
index 0000000000..fecca734bd
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java
@@ -0,0 +1,165 @@
+package cn.binarywang.wx.miniapp.api.impl;
+
+import static cn.binarywang.wx.miniapp.api.impl.WxMaImmediateDeliveryServiceImpl.ERR_CODE;
+
+import cn.binarywang.wx.miniapp.api.WxMaService;
+import cn.binarywang.wx.miniapp.api.WxMaShopCouponService;
+import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopCouponListResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopCouponResponse;
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopUserCouponListResponse;
+import cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Coupon;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.JsonObject;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import me.chanjar.weixin.common.enums.WxType;
+import me.chanjar.weixin.common.error.WxError;
+import me.chanjar.weixin.common.error.WxErrorException;
+import me.chanjar.weixin.common.util.json.GsonHelper;
+import me.chanjar.weixin.common.util.json.GsonParser;
+
+/**
+ * @author leiin
+ * @date 2022/7/1 2:49 下午
+ */
+@RequiredArgsConstructor
+@Slf4j
+public class WxMaShopCouponServiceImpl implements WxMaShopCouponService {
+  private final WxMaService wxMaService;
+
+  @Override
+  public WxMaShopBaseResponse addCoupon(WxMaShopCouponInfo couponInfo) throws WxErrorException {
+    JsonObject json = GsonHelper.buildJsonObject("coupon", couponInfo);
+    String responseContent = this.wxMaService.post(Coupon.ADD_COUPON, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+
+  @Override
+  public WxMaShopCouponResponse getCoupon(String outCouponId) throws WxErrorException {
+    JsonObject json = GsonHelper.buildJsonObject("out_coupon_id", outCouponId);
+    String responseContent = this.wxMaService.post(Coupon.GET_COUPON, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopCouponResponse.class);
+  }
+
+  @Override
+  public WxMaShopCouponListResponse getCouponList(Integer pageSize, Integer offset) throws WxErrorException {
+    JsonObject json = GsonHelper.buildJsonObject("page_size", pageSize, "offset", offset);
+    String responseContent = this.wxMaService.post(Coupon.GET_COUPON_LIST, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopCouponListResponse.class);
+  }
+
+  @Override
+  public WxMaShopBaseResponse updateCoupon(WxMaShopCouponInfo couponInfo) throws WxErrorException {
+    JsonObject json = GsonHelper.buildJsonObject("coupon", couponInfo);
+    String responseContent = this.wxMaService.post(Coupon.UPDATE_COUPON, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+
+  @Override
+  public WxMaShopBaseResponse updateCouponStatus(String outCouponId, Integer status) throws WxErrorException {
+    JsonObject json = GsonHelper.buildJsonObject("out_coupon_id", outCouponId, "status", status);
+    String responseContent = this.wxMaService.post(Coupon.UPDATE_COUPON_STATUS, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+
+  @Override
+  public WxMaShopBaseResponse updateCouponStock(String outCouponId, Integer isUsedNum, Integer receiveNum) throws WxErrorException {
+    JsonObject stockInfo = GsonHelper.buildJsonObject("issued_num", isUsedNum, "receive_num", receiveNum);
+    JsonObject stock = GsonHelper.buildJsonObject("out_coupon_id", outCouponId, "stock_info", stockInfo);
+    JsonObject json = GsonHelper.buildJsonObject("coupon_stock", stock);
+
+    String responseContent = this.wxMaService.post(Coupon.UPDATE_COUPON_STOCK, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+
+  @Override
+  public WxMaShopBaseResponse addUserCoupon(String openid, String outUserCouponId,
+    String outCouponId, Integer status, Long recvTime) throws WxErrorException {
+    JsonObject userCoupon = GsonHelper.buildJsonObject("out_user_coupon_id", outUserCouponId,
+      "out_coupon_id", outCouponId,
+      "status", status);
+    JsonObject json = GsonHelper.buildJsonObject("openid", openid, "user_coupon", userCoupon,
+      "recv_time", recvTime);
+
+    String responseContent = this.wxMaService.post(Coupon.ADD_USER_COUPON, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+
+  @Override
+  public WxMaShopUserCouponListResponse getUserCouponList(Integer pageSize, Integer offset, String openid) throws WxErrorException {
+    JsonObject json = GsonHelper.buildJsonObject("page_size", pageSize, "offset", offset,
+      "openid", openid);
+    String responseContent = this.wxMaService.post(Coupon.GET_USER_COUPON_LIST, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopUserCouponListResponse.class);
+  }
+
+  @Override
+  public WxMaShopBaseResponse updateUserCoupon(String openid, String outUserCouponId,
+    String outCouponId, Long useTime, Long recvTime) throws WxErrorException {
+    JsonObject extInfo = GsonHelper.buildJsonObject("use_time", useTime);
+
+    JsonObject userCoupon = GsonHelper.buildJsonObject("out_user_coupon_id", outUserCouponId,
+      "out_coupon_id", outCouponId, "ext_info", extInfo);
+
+    JsonObject json = GsonHelper.buildJsonObject("openid", openid, "user_coupon", userCoupon,
+      "recv_time", recvTime);
+
+    String responseContent = this.wxMaService.post(Coupon.UPDATE_USER_COUPON, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+
+  @Override
+  public WxMaShopBaseResponse updateUserCouponStatus(String openid, String outUserCouponId,
+    String outCouponId, Integer status) throws WxErrorException {
+
+    JsonObject json = GsonHelper.buildJsonObject("openid", openid,
+      "out_user_coupon_id", outUserCouponId,
+      "out_coupon_id", outCouponId,
+      "status", status);
+
+    String responseContent = this.wxMaService.post(Coupon.UPDATE_USER_COUPON_STATUS, json);
+    JsonObject jsonObject = GsonParser.parse(responseContent);
+    if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return WxMaGsonBuilder.create().fromJson(responseContent, WxMaShopBaseResponse.class);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java
new file mode 100644
index 0000000000..c58e41bae4
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java
@@ -0,0 +1,95 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/11 20:33
+ */
+@Data
+public class WxMiniAfterSaleOrder {
+  @SerializedName("order_id")
+  private Long orderId;
+  @SerializedName("status")
+  private String status;
+  @SerializedName("openid")
+  private String openid;
+  @SerializedName("original_order_id")
+  private Long originalOrderId;
+  @SerializedName("product_info")
+  private AfterSaleProductInfo productInfo;
+
+  private AfterSaleDetails details;
+  @SerializedName("refund_info")
+  private RefundInfo refundInfo;
+  @SerializedName("return_info")
+  private ReturnInfo returnInfo;
+  @SerializedName("merchant_upload_info")
+  private MerchantUploadInfo merchantUploadInfo;
+  @SerializedName("create_time")
+  private Long createTime;
+  @SerializedName("update_time")
+  private Long updateTime;
+  @SerializedName("reason")
+  private String reason;
+  @SerializedName("refund_resp")
+  private RefundResp refundResp;
+  private String type;
+
+  @Data
+  public static class AfterSaleProductInfo {
+    @SerializedName("product_id")
+    private Long productId;
+    @SerializedName("sku_id")
+    private Long skuId;
+    @SerializedName("count")
+    private Integer count;
+  }
+
+  @Data
+  public static class AfterSaleDetails {
+
+    @SerializedName("num")
+    private Integer num;
+    @SerializedName("desc")
+    private String desc;
+    @SerializedName("cancel_time")
+    private Long cancelTime;
+    @SerializedName("prove_imgs")
+    private List proveImgs;
+    @SerializedName("tel_number")
+    private String telNumber;
+  }
+
+  @Data
+  public static class RefundInfo {
+    private Long amount;
+  }
+
+  @Data
+  public static class ReturnInfo {
+    @SerializedName("delivery_id")
+    private String deliveryId;
+    @SerializedName("waybill_id")
+    private String waybillId;
+    @SerializedName("delivery_name")
+    private String deliveryName;
+  }
+
+  @Data
+  public static class MerchantUploadInfo {
+    @SerializedName("reject_reason")
+    private String rejectReason;
+    @SerializedName("refund_certificates")
+    private List refundCertificates;
+  }
+
+  @Data
+  public static class RefundResp {
+    private String code;
+    private Integer ret;
+    private String message;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java
new file mode 100644
index 0000000000..5043366784
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java
@@ -0,0 +1,16 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/11 20:59
+ */
+@Data
+public class WxMiniBatchGetAfterSaleOrderResponse extends WxMaShopBaseResponse {
+  @SerializedName("after_sale_order_list")
+  private List afterSaleOrderList;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java
new file mode 100644
index 0000000000..06586176e6
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java
@@ -0,0 +1,15 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/11 20:58
+ */
+@Data
+public class WxMiniGetAfterSaleOrderResponse extends WxMaShopBaseResponse {
+  @SerializedName("after_sale_order")
+  private WxMiniAfterSaleOrder afterSaleOrder;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java
new file mode 100644
index 0000000000..b5bfbe7950
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java
@@ -0,0 +1,24 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/6/20 7:16 下午
+ */
+@Data
+public class WxMiniOrderAfterSaleDetail {
+  @SerializedName("aftersale_order_list")
+  private List aftersaleOrderList;
+  @SerializedName("on_aftersale_order_cnt")
+  private Integer onAftersaleOrderCnt;
+
+  @Data
+  public static class AfterSaleOrder {
+    @SerializedName("aftersale_order_id")
+    private Long aftersaleOrderId;
+    private Integer status;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java
new file mode 100644
index 0000000000..3307a11611
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java
@@ -0,0 +1,41 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/14 19:05
+ */
+@Data
+public class WxMiniOrderDeliveryRequest {
+  @SerializedName("order_id")
+  private Long orderId;
+  @SerializedName("delivery_list")
+  private List deliveryList;
+
+  @Data
+  public static class DeliveryListBean implements Serializable {
+    @SerializedName("delivery_id")
+    private String deliveryId;
+    @SerializedName("is_all_product")
+    private Boolean isAllProduct;
+    @SerializedName("waybill_id")
+    private String waybillId;
+    @SerializedName("product_infos")
+    private List productInfoList;
+  }
+
+  @Data
+  public static class ProductInfosBean implements Serializable {
+
+    @SerializedName("product_id")
+    private String productId;
+    @SerializedName("sku_id")
+    private String skuId;
+    @SerializedName("product_cnt")
+    private Integer productCnt;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java
index 0e140883eb..b5dd9e872a 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java
@@ -16,7 +16,7 @@ public class WxMinishopAddressInfo {
   @SerializedName("province_name")
   private String provinceName;
   @SerializedName("city_name")
-  private String cityame;
+  private String cityName;
   @SerializedName("county_name")
   private String countyName;
   @SerializedName("detail_info")
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java
index b8098edb30..1a9f844c12 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java
@@ -17,7 +17,7 @@ public class WxMinishopDeliveryInfo {
   @SerializedName("delivery_product_info")
   private List deliveryProductInfo;
   @SerializedName("ship_done_time")
-  private Long ship_done_time;
+  private Long shipDoneTime;
   @SerializedName("insurance_info")
   private InsuranceInfo insuranceInfo;
   @SerializedName("deliver_type")
@@ -53,10 +53,10 @@ public static class InsuranceInfo {
   @Data
   public static class ProductInfo {
     @SerializedName("product_id")
-    private Long product_id;
+    private Long productId;
     @SerializedName("sku_id")
-    private Long sku_id;
+    private Long skuId;
     @SerializedName("product_cnt")
-    private Long product_cnt;
+    private Long productCnt;
   }
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java
new file mode 100644
index 0000000000..1e9e4862e2
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java
@@ -0,0 +1,35 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/8 3:46 下午
+ */
+@Data
+public class WxMinishopGetBrandResponse extends WxMaShopBaseResponse {
+  private List brands;
+
+  @Data
+  public static class MinishopBrandItem {
+    @SerializedName("first_cat_id")
+    private Integer firstCatId;
+    @SerializedName("second_cat_id")
+    private Integer secondCatId;
+    @SerializedName("third_cat_id")
+    private Integer thirdCatId;
+    @SerializedName("brand_info")
+    private MinishopBrandInfo brandInfo;
+  }
+
+  @Data
+  public static class MinishopBrandInfo {
+    @SerializedName("brand_id")
+    private Long brandId;
+    @SerializedName("brand_name")
+    private String brandName;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java
new file mode 100644
index 0000000000..55954d8b32
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java
@@ -0,0 +1,30 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @author leiin
+ * @date 2022/7/8 3:39 下午
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class WxMinishopGetCategoryResponse extends WxMaShopBaseResponse {
+  @SerializedName("cat_list")
+  private List catList;
+
+  @Data
+  public static class MinishopCatItem {
+
+    @SerializedName("cat_id")
+    private Integer catId;
+
+    @SerializedName("f_cat_id")
+    private Integer fCatId;
+
+    private String name;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java
new file mode 100644
index 0000000000..9b79c1e3f1
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java
@@ -0,0 +1,26 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/8 3:46 下午
+ */
+@Data
+public class WxMinishopGetFrightTemplateResponse extends WxMaShopBaseResponse {
+  @SerializedName("template_list")
+  private List templateList;
+
+  @Data
+  public static class MinishopFeightTemplateItem {
+    @SerializedName("template_id")
+    private Long templateId;
+    private String name;
+    @SerializedName("valuation_type")
+    private Integer valuationType;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java
new file mode 100644
index 0000000000..aa2996ca64
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java
@@ -0,0 +1,19 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import lombok.Data;
+
+/**
+ * 获取订单详情 回包结构
+ *
+ * @author leiin
+ * @date 2022/6/20 7:09 下午
+ */
+@Data
+public class WxMinishopOrderDetailResponse extends WxMaShopBaseResponse {
+
+  /**
+   * 订单结构
+   */
+  private WxMinishopOrderResult order;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java
index ed3d02cd92..9fb817a6eb 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java
@@ -1,6 +1,5 @@
 package cn.binarywang.wx.miniapp.bean.product;
 
-import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderDetail;
 import com.google.gson.annotations.SerializedName;
 import java.io.Serializable;
 import lombok.Data;
@@ -37,7 +36,7 @@ public class WxMinishopOrderResult implements Serializable {
   private WxMinishopOrderDetail orderDetail;
 
   @SerializedName("aftersale_detail")
-  private WxMiniAfterSaleDetail afterSaleDetail;
+  private WxMiniOrderAfterSaleDetail afterSaleDetail;
 
   /**
    * 商家小程序该订单的用户id
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java
index 5e709120e8..7342a2c29e 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java
@@ -18,11 +18,17 @@ public class WxMinishopProductInfo implements Serializable {
   @SerializedName("product_id")
   private Integer productId;
 
+  @SerializedName("out_product_id")
+  private String outProductId;
+
   /**
    * 交易组件平台内部skuID,可填0(如果这个product_id下没有sku)
    */
   @SerializedName("sku_id")
   private Integer skuId;
+
+  @SerializedName("out_sku_id")
+  private String outSkuId;
   /**
    * 购买的数量
    * 
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java
index 8fa8712e25..9ac5636156 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSku.java
@@ -18,6 +18,9 @@ public class WxMinishopSku implements Serializable {
   @SerializedName("out_sku_id")
   private String outSkuId;
 
+  @SerializedName("sku_id")
+  private Long skuId;
+
   @SerializedName("thumb_img")
   private String thumbImg;
 
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java
new file mode 100644
index 0000000000..a1713709e9
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java
@@ -0,0 +1,14 @@
+package cn.binarywang.wx.miniapp.bean.product;
+
+import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * @author leiin
+ * @date 2022/7/13 20:00
+ */
+@Data
+public class WxMinishopSkuListResponse extends WxMaShopBaseResponse {
+  private List skus;
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java
new file mode 100644
index 0000000000..e04c362f39
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java
@@ -0,0 +1,319 @@
+package cn.binarywang.wx.miniapp.bean.shop;
+
+import com.google.gson.annotations.SerializedName;
+import java.io.Serializable;
+import java.util.List;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * @author leiin
+ * @date 2022/7/1 2:57 下午
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaShopCouponInfo implements Serializable {
+
+  private static final long serialVersionUID = 5807154725645642700L;
+
+  /**
+   * 是否必填:是
+   * 说明:商家侧优惠券ID
+   */
+  @SerializedName("out_coupon_id")
+  private String outCouponId;
+  /**
+   * 是否必填:是
+   * 说明:优惠券类型
+   */
+  @SerializedName("type")
+  private Integer type;
+  /**
+   * 是否必填:是
+   * 说明:优惠券推广类型
+   */
+  @SerializedName("promote_type")
+  private Integer promoteType;
+
+  @SerializedName("coupon_info")
+  private CouponInfo couponInfo;
+
+  // 返回参数
+  /**
+   * 优惠券状态
+   */
+  @SerializedName("status")
+  private Integer status;
+  /**
+   * 创建时间
+   */
+  @SerializedName("create_time")
+  private Long createTime;
+  /**
+   * 更新时间
+   */
+  @SerializedName("update_time")
+  private Long updateTime;
+
+  @SerializedName("coupon_stock")
+  private CouponStock couponStock;
+
+  @Data
+  @Builder
+  @NoArgsConstructor
+  @AllArgsConstructor
+  public static class CouponInfo implements Serializable {
+
+    private static final long serialVersionUID = -7913225774910831745L;
+
+    /**
+     * 是否必填:是
+     * 说明:优惠券名
+     */
+    private String name;
+
+    @SerializedName("promote_info")
+    private PromoteInfo promoteInfo;
+
+    @SerializedName("discount_info")
+    private DiscountInfo discountInfo;
+
+    @SerializedName("receive_info")
+    private ReceiveInfo receiveInfo;
+
+    @SerializedName("valid_info")
+    private ValidInfo validInfo;
+  }
+
+  @Data
+  @Builder
+  @NoArgsConstructor
+  @AllArgsConstructor
+  public static class PromoteInfo {
+    @SerializedName("promote_type")
+    private Integer promoteType;
+    private PromoteFinder finder;
+
+    @Data
+    public static class PromoteFinder {
+      private String nickname;
+    }
+  }
+
+  @Data
+  @Builder
+  @NoArgsConstructor
+  @AllArgsConstructor
+  public static class DiscountInfo {
+
+    /**
+     * 是否必填:	否
+     * 说明:折扣数,比如5.1折,则填5100,折扣券必需
+     */
+    @SerializedName("discount_num")
+    private Integer discountNum;
+    /**
+     * 是否必填:	否
+     * 说明:减金额,单位为分,直减券、满减券必需
+     */
+    @SerializedName("discount_fee")
+    private Long discountFee;
+
+    @SerializedName("discount_condition")
+    private DiscountCondition discountCondition;
+
+    @Data
+    @Builder
+    @NoArgsConstructor
+    @AllArgsConstructor
+    public static class DiscountCondition {
+
+      /**
+       * 是否必填:	否
+       * 说明:优惠条件所需的商品数
+       */
+      @SerializedName("product_cnt")
+      private Integer productCnt;
+      /**
+       * 是否必填:	否
+       * 说明:优惠条件所需满足的金额
+       */
+      @SerializedName("product_price")
+      private Long productPrice;
+      /**
+       * 是否必填: 否
+       * 说明:指定商品商家侧ID,商品券必需,最多128个
+       */
+      @SerializedName("out_product_ids")
+      private List outProductIds;
+
+      @SerializedName("tradein_info")
+      private TradeinInfo tradeinInfo;
+
+      @SerializedName("buyget_info")
+      private BuygetInfo buyget_info;
+
+      @Data
+      @Builder
+      @NoArgsConstructor
+      @AllArgsConstructor
+      public static class TradeinInfo {
+
+        /**
+         * 是否必填:否
+         * 说明:换购商品商家侧ID,换购券必需
+         */
+        @SerializedName("out_product_id")
+        private String outProductId;
+        /**
+         * 是否必填:否
+         * 说明:需要支付的金额,单位分,换购券必需
+         */
+        @SerializedName("price")
+        private Long price;
+      }
+
+      @Data
+      @Builder
+      @NoArgsConstructor
+      @AllArgsConstructor
+      public static class BuygetInfo {
+        /**
+         * 是否必填:否
+         * 说明:购买商品商家侧ID,买赠券必需
+         */
+        @SerializedName("buy_out_product_id")
+        private String buyOutProductId;
+        /**
+         * 是否必填:否
+         * 说明:购买商品数,买赠券必需
+         */
+        @SerializedName("buy_product_cnt")
+        private Integer buyProductCnt;
+        /**
+         * 是否必填:否
+         * 说明:赠送商品商家侧ID,买赠券必需
+         */
+        @SerializedName("get_out_product_id")
+        private String getOutProductId;
+        /**
+         * 是否必填:否
+         * 说明:赠送商品数,买赠券必需
+         */
+        @SerializedName("get_product_cnt")
+        private Integer getProductCnt;
+      }
+    }
+  }
+
+  @Data
+  @Builder
+  @NoArgsConstructor
+  @AllArgsConstructor
+  public static class ReceiveInfo {
+
+    /**
+     * 是否必填:是
+     * 说明:领取开始时间 (秒级时间戳)
+     */
+    @SerializedName("start_time")
+    private Long startTime;
+    /**
+     * 是否必填:是
+     * 说明:领取结束时间 (秒级时间戳)
+     */
+    @SerializedName("end_time")
+    private Long endTime;
+    /**
+     * 是否必填:是
+     * 说明:个人限领张数,只做展示,领券回调时接入方判断有无超领。
+     */
+    @SerializedName("limit_num_one_person")
+    private Integer limitNumOnePerson;
+    /**
+     * 是否必填:是
+     * 说明:总发放量,即初始库存数,只做展示,领券回调时接入方判断有无超领。
+     */
+    @SerializedName("total_num")
+    private Integer totalNum;
+  }
+
+  @Data
+  @Builder
+  @NoArgsConstructor
+  @AllArgsConstructor
+  public static class ValidInfo {
+
+    /**
+     * 是否必填:是
+     * 说明:有效期类型,1:商品指定时间区间,2:生效天数,3:生效秒数
+     */
+    @SerializedName("valid_type")
+    private Integer validType;
+    /**
+     * 是否必填:否
+     * 说明:生效天数,有效期类型为2时必需
+     */
+    @SerializedName("valid_day_num")
+    private Integer validDayNum;
+    /**
+     * 是否必填:否
+     * 说明:生效秒数,有效期类型为3时必需
+     */
+    @SerializedName("valid_second")
+    private Long validSecond;
+    /**
+     * 是否必填:否
+     * 说明:生效开始时间,有效期类型为1时必需
+     */
+    @SerializedName("start_time")
+    private Long startTime;
+    /**
+     * 是否必填:否
+     * 说明:生效结束时间,有效期类型为1时必需
+     */
+    @SerializedName("end_time")
+    private Long endTime;
+  }
+
+  @Data
+  public static class CouponStock {
+
+    /**
+     * 商家侧优惠券ID
+     */
+    @SerializedName("out_coupon_id")
+    private String outCouponId;
+    /**
+     * 创建时间
+     */
+    @SerializedName("create_time")
+    private Long createTime;
+    /**
+     * 更新时间
+     */
+    @SerializedName("update_time")
+    private Long updateTime;
+
+    @SerializedName("stock_info")
+    private StockInfo stockInfo;
+
+    @Data
+    public static class StockInfo {
+      /**
+       * 优惠券库存剩余量
+       */
+      @SerializedName("issued_num")
+      private Integer issuedNum;
+      /**
+       * 优惠卷发放量
+       */
+      @SerializedName("receive_num")
+      private Integer receiveNum;
+    }
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java
index b942bb6b55..006f41266c 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java
@@ -84,4 +84,53 @@ public class WxMaShopOrderInfo implements Serializable {
   @SerializedName("address_info")
   private WxMaShopAddressInfo addressInfo;
 
+  /**
+   * 订单类型:0,普通单,1,二级商户单
+   * 
+   * 是否必填:是
+   * 
+ */ + @SerializedName("fund_type") + private Integer fundType; // 订单类型:0,普通单,1,二级商户单 + /** + * unix秒级时间戳,订单超时时间,取值:[15min, 1d] + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("expire_time") + private Long expireTime; // unix秒级时间戳,订单超时时间,取值:[15min, 1d] + /** + * 取值范围,[7,3 * 365],单位:天 + *
+   * 是否必填:选填
+   * 
+ */ + @SerializedName("aftersale_duration") + private Integer aftersaleDuration; // 取值范围,[7,3 * 365],单位:天 + /** + * 会影响主播归因、分享员归因等,从下单前置检查获取 + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("trace_id") + private String traceId; // 会影响主播归因、分享员归因等,从下单前置检查获取 + /** + * 默认退货地址,退货售后超时时,会让用户将货物寄往此地址 + *
+   * 是否必填:选填
+   * 
œ + */ + @SerializedName("default_receiving_address") + private WxMaShopAddressInfo defaultReceivingAddress; // 默认退货地址,退货售后超时时,会让用户将货物寄往此地址 + /** + * 生成的order_id以字符串形式返回 + *
+   * 是否必填:选填
+   * 
+ */ + @SerializedName("stringify_64bits_number") + private Boolean stringify64bitsNumber; // 生成的order_id以字符串形式返回 + } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java new file mode 100644 index 0000000000..58d08b4b41 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java @@ -0,0 +1,43 @@ +package cn.binarywang.wx.miniapp.bean.shop.request; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/6/28 11:39 上午 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopAcceptReturnRequest implements Serializable { + @SerializedName("out_aftersale_id") + private String outAftersaleId; + @SerializedName("aftersale_id") + private Long aftersaleId; + @SerializedName("address_info") + private RefundAddressInfo addressInfo; + + @Data + public static class RefundAddressInfo { + @SerializedName("receiver_name") + private String receiverName; + @SerializedName("detailed_address") + private String detailedAddress; + @SerializedName("tel_number") + private String telNumber; + @SerializedName("country") + private String country; + @SerializedName("province") + private String province; + @SerializedName("city") + private String city; + @SerializedName("town") + private String town; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java index 47c33f1ae7..f5a00aeb58 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java @@ -33,6 +33,8 @@ public class WxMaShopAfterSaleAddRequest implements Serializable { * product_infos : [{"out_product_id":"234245","out_sku_id":"23424","product_cnt":5}] */ + @SerializedName("order_id") + private Long orderId; @SerializedName("out_order_id") private String outOrderId; @SerializedName("out_aftersale_id") @@ -41,8 +43,14 @@ public class WxMaShopAfterSaleAddRequest implements Serializable { private String openid; @SerializedName("type") private Integer type; - @SerializedName("create_time") - private String createTime; + @SerializedName("product_info") + private ProductInfosBean productInfo; + @SerializedName("orderamt") + private Long orderamt; + @SerializedName("refund_reason") + private String refundReason; + @SerializedName("refund_reason_type") + private Integer refundReasonType; @SerializedName("status") private Integer status; @SerializedName("finish_all_aftersale") @@ -51,8 +59,8 @@ public class WxMaShopAfterSaleAddRequest implements Serializable { private String path; @SerializedName("refund") private Long refund; - @SerializedName("product_infos") - private List productInfos; + @SerializedName("media_list") + private UploadMediaList mediaList; @Data @Builder @@ -72,4 +80,12 @@ public static class ProductInfosBean implements Serializable { @SerializedName("product_cnt") private Integer productCnt; } + + @Data + public static class UploadMediaList { + private Integer type; + private String url; + @SerializedName("thumb_url") + private String thumbUrl; + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java new file mode 100644 index 0000000000..a0c01e8c81 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java @@ -0,0 +1,36 @@ +package cn.binarywang.wx.miniapp.bean.shop.request; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/6/28 11:39 上午 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopAfterSaleListRequest implements Serializable { + @SerializedName("status") + private Integer status; //售后单状态,见 AfterSalesState + @SerializedName("out_order_id") + private String outOrderId; //售后单关联的外部订单号 + @SerializedName("order_id") + private Long orderId; //售后单关联的微信侧订单号 + @SerializedName("openid") + private String openid; //买家openid + @SerializedName("begin_create_time") + private Long beginCreateTime; //申请时间(单位毫秒)起始 + @SerializedName("end_create_time") + private Long endCreateTime; //申请时间(单位毫秒)结束 + @SerializedName("offset") + private Long offset; //本次拉取的起始位置(从0开始) + @SerializedName("limit") + private Integer limit; //本次拉取的大小(最大50) +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java index d208b239e2..f5679aeb3e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java @@ -1,5 +1,6 @@ package cn.binarywang.wx.miniapp.bean.shop.request; +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest.UploadMediaList; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -33,6 +34,16 @@ public class WxMaShopAfterSaleUpdateRequest implements Serializable { private String openid; @SerializedName("out_aftersale_id") private String outAftersaleId; + @SerializedName("type") + private Integer type; + @SerializedName("orderamt") + private Long orderamt; + @SerializedName("refund_reason") + private String refundReason; + @SerializedName("refund_reason_type") + private Integer refundReasonType; + @SerializedName("media_list") + private UploadMediaList mediaList; @SerializedName("status") private Integer status; @SerializedName("finish_all_aftersale") diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java new file mode 100644 index 0000000000..aa7f713922 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java @@ -0,0 +1,31 @@ +package cn.binarywang.wx.miniapp.bean.shop.request; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/6/28 11:39 上午 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopAfterSaleUploadReturnInfoRequest implements Serializable { + @SerializedName("out_aftersale_id") + private String outAftersaleId; + @SerializedName("aftersale_id") + private Long aftersaleId; + @SerializedName("openid") + private String openid; + @SerializedName("delivery_id") + private String deliveryId; + @SerializedName("waybill_id") + private String waybillId; + @SerializedName("delivery_name") + private String deliveryName; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java new file mode 100644 index 0000000000..4e4aae4dbe --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java @@ -0,0 +1,28 @@ +package cn.binarywang.wx.miniapp.bean.shop.request; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/6/28 11:39 上午 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopUploadCerficatesRequest implements Serializable { + @SerializedName("out_aftersale_id") + private String outAftersaleId; + @SerializedName("aftersale_id") + private Long aftersaleId; + @SerializedName("refund_desc") + private String refundDesc; + @SerializedName("certificates") + private List certificates; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java new file mode 100644 index 0000000000..c376d3bcbd --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java @@ -0,0 +1,15 @@ +package cn.binarywang.wx.miniapp.bean.shop.response; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import lombok.Data; + +/** + * @author leiin + * @date 2022/6/28 11:29 上午 + */ +@Data +public class WxMaShopAfterSaleAddResponse extends WxMaShopBaseResponse implements Serializable { + @SerializedName("aftersale_id") + private String aftersaleId; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleGetResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleGetResponse.java index ac8f68db66..2261ad3dda 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleGetResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleGetResponse.java @@ -1,5 +1,6 @@ package cn.binarywang.wx.miniapp.bean.shop.response; +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest.UploadMediaList; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.EqualsAndHashCode; @@ -29,24 +30,43 @@ public static class AftersaleInfosBean implements Serializable { * product_infos : [{"out_product_id":"234245","out_sku_id":"23424","product_cnt":5}] */ - @SerializedName("out_order_id") - private String outOrderId; + @SerializedName("aftersale_id") + private Long aftersaleId; @SerializedName("out_aftersale_id") private String outAftersaleId; - @SerializedName("openid") - private String openid; + @SerializedName("out_order_id") + private String outOrderId; + @SerializedName("order_id") + private Long orderId; + @SerializedName("product_info") + private List productInfo; @SerializedName("type") private Integer type; - @SerializedName("create_time") - private String createTime; - @SerializedName("path") - private String path; + @SerializedName("return_info") + private ReturnInfo returnInfo; + @SerializedName("orderamt") + private Long orderamt; + @SerializedName("refund_reason") + private String refundReason; + @SerializedName("refund_reason_type") + private Integer refundReasonType; + @SerializedName("media_list") + private UploadMediaList mediaList; @SerializedName("status") private Integer status; - @SerializedName("refund") - private Long refund; - @SerializedName("product_infos") - private List productInfos; + @SerializedName("create_time") + private String createTime; + @SerializedName("update_time") + private String updateTime; + @SerializedName("openid") + private String openid; + @SerializedName("refund_pay_detail") + private RefundPayDetail refund_pay_detail; + @SerializedName("return_id") + private String returnId; + @SerializedName("complaint_order_id_list") + private List complaintOrderIdList; + @Data public static class ProductInfosBean implements Serializable { @@ -58,10 +78,32 @@ public static class ProductInfosBean implements Serializable { @SerializedName("out_product_id") private String outProductId; + @SerializedName("product_id") + private Long productId; @SerializedName("out_sku_id") private String outSkuId; + @SerializedName("sku_id") + private Long skuId; @SerializedName("product_cnt") private Integer productCnt; } + + @Data + public static class ReturnInfo { + @SerializedName("order_return_time") + private Long orderReturnTime; + @SerializedName("delivery_id") + private String deliveryId; + @SerializedName("waybill_id") + private String waybillId; + @SerializedName("delivery_name") + private String deliveryName; + } + + @Data + public static class RefundPayDetail { + @SerializedName("refund_id") + private String refundId; + } } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java new file mode 100644 index 0000000000..1e4fb93ad1 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java @@ -0,0 +1,25 @@ +package cn.binarywang.wx.miniapp.bean.shop.response; + +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleGetResponse.AftersaleInfosBean; +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author leiin + * @date 2022/6/28 11:39 上午 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopAfterSaleListResponse extends WxMaShopBaseResponse implements Serializable { + @SerializedName("has_more") + private Boolean hasMore; + @SerializedName("after_sales_orders") + private List afterSalesOrders; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java index 4332c130c4..2156be2297 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java @@ -21,7 +21,7 @@ public class WxMaShopBaseResponse implements Serializable { *
*/ @SerializedName("errcode") - private Integer errcode; + private Integer errCode; /** * 错误信息 @@ -30,5 +30,5 @@ public class WxMaShopBaseResponse implements Serializable { *
*/ @SerializedName("errmsg") - private String errmsg; + private String errMsg; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java new file mode 100644 index 0000000000..5d77c360fd --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java @@ -0,0 +1,23 @@ +package cn.binarywang.wx.miniapp.bean.shop.response; + +import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo; +import com.google.gson.annotations.SerializedName; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2022/7/1 3:34 下午 + */ +@Data +public class WxMaShopCouponListResponse extends WxMaShopBaseResponse { + @SerializedName("total_num") + private Long totalNum; + @SerializedName("result_list") + private List resultList; + + @Data + public static class ResponseCouponResult { + private WxMaShopCouponInfo coupon; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java new file mode 100644 index 0000000000..f83c159d1b --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java @@ -0,0 +1,18 @@ +package cn.binarywang.wx.miniapp.bean.shop.response; + +import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo; +import lombok.Data; + +/** + * @author leiin + * @date 2022/7/1 3:34 下午 + */ +@Data +public class WxMaShopCouponResponse extends WxMaShopBaseResponse { + private ResponseCouponResult result; + + @Data + public static class ResponseCouponResult { + private WxMaShopCouponInfo coupon; + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java new file mode 100644 index 0000000000..6f615554bc --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java @@ -0,0 +1,76 @@ +package cn.binarywang.wx.miniapp.bean.shop.response; + +import com.google.gson.annotations.SerializedName; +import java.io.Serializable; +import java.util.List; +import lombok.Data; + +/** + * @author leiin + * @date 2022/7/1 3:59 下午 + */ +@Data +public class WxMaShopUserCouponListResponse extends WxMaShopBaseResponse implements Serializable { + + private static final long serialVersionUID = 3264119403757388410L; + + @SerializedName("total_num") + private Long totalNum; + @SerializedName("result_list") + private List resultList; + + @Data + public static class UserCouponResultItem { + + /** + * 商家侧用户优惠券ID + */ + @SerializedName("out_user_coupon_id") + private String outUserCouponId; + /** + * openid + */ + @SerializedName("openid") + private String openid; + /** + * 商家侧优惠券ID + */ + @SerializedName("out_coupon_id") + private String outCouponId; + /** + * 用户优惠券状态 + */ + @SerializedName("status") + private Integer status; + /** + * 用户优惠券创建时间 + */ + @SerializedName("create_time") + private Long createTime; + /** + * 用户优惠券更新时间 + */ + @SerializedName("update_time") + private Long updateTime; + /** + * 用户优惠券有效开始时间 + */ + @SerializedName("start_time") + private Long startTime; + /** + * 用户优惠券有效结束时间 + */ + @SerializedName("end_time") + private Long endTime; + + @SerializedName("ext_info") + private UserCouponExtInfo extInfo; + + @Data + public static class UserCouponExtInfo { + @SerializedName("use_time") + private Long useTime; + } + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 896c59549c..c7c02f8b2d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -419,10 +419,27 @@ interface Sku { String PRODUCT_UPDATE_SKU_URL = "https://api.weixin.qq.com/product/sku/update"; String PRODUCT_UPDATE_SKU_PRICE_URL = "https://api.weixin.qq.com/product/sku/update_price"; String PRODUCT_UPDATE_SKU_STOCK_URL = "https://api.weixin.qq.com/product/stock/update"; + String PRODUCT_SKU_LIST = "https://api.weixin.qq.com/product/sku/get_list"; } interface Order { String PRODUCT_ORDER_GET_LIST = "https://api.weixin.qq.com/product/order/get_list"; + String PRODUCT_ORDER_DETAIL_URL = "https://api.weixin.qq.com/product/order/get"; + String PRODUCT_ORDER_CHANGE_MERCHANT_NOTES_URL = "https://api.weixin.qq.com/product/order/change_merchant_notes"; + + String PRODUCT_DELIVERY_SEND = "https://api.weixin.qq.com/product/delivery/send"; + + String GET_AFTER_SALE_ORDER = "https://api.weixin.qq.com/product/order/getaftersaleorder"; + String BATCH_GET_AFTER_SALE_ORDER = "https://api.weixin.qq.com/product/order/batchgetaftersaleorder"; + String AFTER_SALE_ACCEPT_APPLY = "https://api.weixin.qq.com/product/order/acceptapply"; + String AFTER_SALE_REJECT_APPLY = "https://api.weixin.qq.com/product/order/rejectrefund"; + } + + interface OTHER { + String GET_CATEGORY = "https://api.weixin.qq.com/product/category/get"; + String GET_BRAND = "https://api.weixin.qq.com/product/brand/get"; + String GET_FREIGHT_TEMPLATE = "https://api.weixin.qq.com/product/delivery/get_freight_template"; + String IMG_UPLOAD = "https://api.weixin.qq.com/product/img/upload"; } } @@ -484,9 +501,17 @@ interface Delivery { } interface Aftersale { - String AFTERSALE_ADD = "https://api.weixin.qq.com/shop/aftersale/add"; - String AFTERSALE_GET = "https://api.weixin.qq.com/shop/aftersale/get"; - String AFTERSALE_UPDATE = "https://api.weixin.qq.com/shop/aftersale/update"; + String AFTERSALE_ADD = "https://api.weixin.qq.com/shop/ecaftersale/add"; + String AFTERSALE_CANCEL = "https://api.weixin.qq.com/shop/ecaftersale/cancel"; + String AFTERSALE_UPDATE = "https://api.weixin.qq.com/shop/ecaftersale/update"; + String AFTERSALE_UPLOAD_RETURN_INFO = "https://api.weixin.qq.com/shop/ecaftersale/uploadreturninfo"; + String AFTERSALE_ACCEPT_REFUND = "https://api.weixin.qq.com/shop/ecaftersale/acceptrefund"; + String AFTERSALE_ACCEPT_RETURN = "https://api.weixin.qq.com/shop/ecaftersale/acceptreturn"; + String AFTERSALE_REJECT = "https://api.weixin.qq.com/shop/ecaftersale/reject"; + String AFTERSALE_UPLOAD_CERTIFICATES = "https://api.weixin.qq.com/shop/ecaftersale/upload_certificates"; + String AFTERSALE_UPLOAD_DEADLINE = "https://api.weixin.qq.com/shop/aftersale/update_deadline"; + String AFTERSALE_GET_LIST = "https://api.weixin.qq.com/shop/ecaftersale/get_list"; + String AFTERSALE_GET = "https://api.weixin.qq.com/shop/ecaftersale/get"; } interface Sharer { @@ -498,6 +523,19 @@ interface Sharer { String SEARCH_SHARER = "https://api.weixin.qq.com/shop/sharer/search_sharer"; String UNBIND = "https://api.weixin.qq.com/shop/sharer/unbind"; } + + interface Coupon { + String ADD_COUPON = "https://api.weixin.qq.com/shop/coupon/add"; + String GET_COUPON = "https://api.weixin.qq.com/shop/coupon/get"; + String GET_COUPON_LIST = "https://api.weixin.qq.com/shop/coupon/get_list"; + String UPDATE_COUPON = "https://api.weixin.qq.com/shop/coupon/update"; + String UPDATE_COUPON_STATUS = "https://api.weixin.qq.com/shop/coupon/update_status"; + String UPDATE_COUPON_STOCK = "https://api.weixin.qq.com/shop/coupon/update_coupon_stock"; + String ADD_USER_COUPON = "https://api.weixin.qq.com/shop/coupon/add_user_coupon"; + String GET_USER_COUPON_LIST = "https://api.weixin.qq.com/shop/coupon/get_usercoupon_list"; + String UPDATE_USER_COUPON = "https://api.weixin.qq.com/shop/coupon/update_user_coupon"; + String UPDATE_USER_COUPON_STATUS = "https://api.weixin.qq.com/shop/coupon/update_usercoupon_status"; + } } /** diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImplTest.java index 75538a1510..9839cbf4c1 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAfterSaleServiceImplTest.java @@ -38,12 +38,11 @@ public void testAdd() throws WxErrorException { .outAftersaleId("318092069606883328X") .openid("odIi15CuQ0IQviqsnUMy6CKNetrMX") .type(1) - .createTime("2021-08-20 00:00:00") .status(1) .finishAllAftersale(0) .path("/pages/aftersale.html?out_aftersale_id=318092069606883328X") .refund(100L) - .productInfos(new ArrayList<>(Arrays.asList(productInfosBean))) + .productInfo(productInfosBean) .build(); WxMaShopBaseResponse response = wxService.getShopAfterSaleService().add(request); assertThat(response).isNotNull(); From d056cc8abe43b3526011f21ffbdf6090a7e614fc Mon Sep 17 00:00:00 2001 From: gxh0797 <110033355+gxh0797@users.noreply.github.com> Date: Tue, 26 Jul 2022 21:47:39 +0800 Subject: [PATCH 306/622] =?UTF-8?q?:new:=20#2752=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E4=BB=A5=E5=8F=8A=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9userid=5Fto=5Fopenuserid=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpUserService.java | 12 ++++++ .../cp/api/impl/WxCpUserServiceImpl.java | 17 ++++++++ .../cp/bean/WxCpUseridToOpenUserid.java | 35 ++++++++++++++++ .../cp/bean/WxCpUseridToOpenUseridResult.java | 42 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 1 + .../weixin/open/api/WxOpenMaService.java | 13 ++++++ .../open/api/impl/WxOpenMaServiceImpl.java | 8 ++++ 7 files changed, 128 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java index e5a51eea1f..569f9172ea 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java @@ -3,8 +3,10 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.bean.WxCpInviteResult; import me.chanjar.weixin.cp.bean.WxCpUser; +import me.chanjar.weixin.cp.bean.WxCpUseridToOpenUseridResult; import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; +import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; @@ -217,4 +219,14 @@ public interface WxCpUserService { * @throws WxErrorException . */ Integer getActiveStat(Date date) throws WxErrorException; + + /** + * userid转换为open_userid + * 将自建应用或代开发应用获取的userid转换为第三方应用的userid + * https://developer.work.weixin.qq.com/document/path/95603 + * @param useridList + * @return the WxCpUseridToOpenUseridResult + * @throws WxErrorException + */ + WxCpUseridToOpenUseridResult useridToOpenUserid(ArrayList useridList) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java index b789fc1b63..219a07eb42 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java @@ -12,11 +12,14 @@ import me.chanjar.weixin.cp.api.WxCpUserService; import me.chanjar.weixin.cp.bean.WxCpInviteResult; import me.chanjar.weixin.cp.bean.WxCpUser; +import me.chanjar.weixin.cp.bean.WxCpUseridToOpenUseridResult; import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; +import me.chanjar.weixin.cp.constant.WxCpApiPathConsts; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import org.apache.commons.lang3.time.FastDateFormat; import java.text.Format; +import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; @@ -223,4 +226,18 @@ public Integer getActiveStat(Date date) throws WxErrorException { JsonObject tmpJson = GsonParser.parse(responseContent); return tmpJson.get("active_cnt").getAsInt(); } + + @Override + public WxCpUseridToOpenUseridResult useridToOpenUserid(ArrayList useridList) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + JsonArray jsonArray = new JsonArray(); + for(String userid:useridList){ + jsonArray.add(userid); + } + jsonObject.add("userid_list", jsonArray); + String url = this.mainService.getWxCpConfigStorage().getApiUrl(USERID_TO_OPEN_USERID); + String responseContent = this.mainService.post(url, jsonObject.toString()); + return WxCpUseridToOpenUseridResult.fromJson(responseContent); + } + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java new file mode 100644 index 0000000000..2b5cfd4351 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java @@ -0,0 +1,35 @@ +package me.chanjar.weixin.cp.bean; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; + +/** + * userid转换为open_userid + * 将自建应用或代开发应用获取的userid转换为第三方应用的userid + * 中间对象 + * Created by gxh0797 on 2022.07.26. + * + */ +@Data +public class WxCpUseridToOpenUserid implements Serializable { + private static final long serialVersionUID = 1420065684270213578L; + + @Override + public String toString() { + return WxCpGsonBuilder.create().toJson(this); + } + + public static WxCpUseridToOpenUserid fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpUseridToOpenUserid.class); + } + + @SerializedName("userid") + private String userid; + + @SerializedName("open_userid") + private String openUserid; + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java new file mode 100644 index 0000000000..90d002f174 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java @@ -0,0 +1,42 @@ +package me.chanjar.weixin.cp.bean; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * userid转换为open_userid + * 将自建应用或代开发应用获取的userid转换为第三方应用的userid + * Created by gxh0797 on 2022.07.26. + * + */ +@Data +public class WxCpUseridToOpenUseridResult implements Serializable { + private static final long serialVersionUID = 1420065684270213578L; + + @Override + public String toString() { + return WxCpGsonBuilder.create().toJson(this); + } + + public static WxCpUseridToOpenUseridResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpUseridToOpenUseridResult.class); + } + + @SerializedName("errcode") + private Integer errCode; + + @SerializedName("errmsg") + private String errMsg; + + @SerializedName("open_userid_list") + private List openUseridList; + + @SerializedName("invalid_userid_list") + private List invalidUseridList; + + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index 5e4c134c01..cb05320837 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -324,6 +324,7 @@ interface User { String GET_EXTERNAL_CONTACT = "/cgi-bin/crm/get_external_contact?external_userid="; String GET_JOIN_QR_CODE = "/cgi-bin/corp/get_join_qrcode?size_type="; String GET_ACTIVE_STAT = "/cgi-bin/user/get_active_stat"; + String USERID_TO_OPEN_USERID = "/cgi-bin/batch/userid_to_openuserid"; } interface ExternalContact { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java index 16e9532e64..e58fe4f6bd 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java @@ -251,6 +251,11 @@ public interface WxOpenMaService extends WxMaService { */ String API_WX_AMP_LINK_UN = "https://api.weixin.qq.com/cgi-bin/wxopen/wxampunlink"; + /** + * 小程序管理-查询小程序版本信息 + */ + String API_GET_VERSION_INFO = "https://api.weixin.qq.com/wxa/getversioninfo"; + /** * 获得小程序的域名配置信息 * @@ -702,4 +707,12 @@ WxOpenMaDomainResult modifyDomain(String action, List requestDomains, Li */ WxOpenResult wxAmpUnLink(String appid) throws WxErrorException; + /** + * 查询小程序版本信息 + * + * @return the wx open result + * @throws WxErrorException the wx error exception + */ + WxOpenResult getVersionInfo() throws WxErrorException; + } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java index 8933d2a124..1febfadba0 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java @@ -439,4 +439,12 @@ private JsonArray toJsonArray(List strList) { } return jsonArray; } + + @Override + public WxOpenResult getVersionInfo() throws WxErrorException { + JsonObject params = new JsonObject(); + String response = post(API_GET_VERSION_INFO, GSON.toJson(params)); + WxOpenResult result = WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); + return result; + } } From 18a79b5b6c4a69d9b684390a02c4f253086e9765 Mon Sep 17 00:00:00 2001 From: cocoa Date: Wed, 27 Jul 2022 19:58:53 +0800 Subject: [PATCH 307/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/open/api/WxOpenMaService.java | 2 +- .../open/api/impl/WxOpenMaServiceImpl.java | 5 +- .../bean/result/WxOpenVersioninfoResult.java | 74 +++++++++++++++++++ 3 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java index e58fe4f6bd..c79c1cc295 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java @@ -713,6 +713,6 @@ WxOpenMaDomainResult modifyDomain(String action, List requestDomains, Li * @return the wx open result * @throws WxErrorException the wx error exception */ - WxOpenResult getVersionInfo() throws WxErrorException; + WxOpenVersioninfoResult getVersionInfo() throws WxErrorException; } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java index 1febfadba0..9bca8b5e95 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java @@ -441,10 +441,9 @@ private JsonArray toJsonArray(List strList) { } @Override - public WxOpenResult getVersionInfo() throws WxErrorException { + public WxOpenVersioninfoResult getVersionInfo() throws WxErrorException { JsonObject params = new JsonObject(); String response = post(API_GET_VERSION_INFO, GSON.toJson(params)); - WxOpenResult result = WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); - return result; + return WxMaGsonBuilder.create().fromJson(response, WxOpenVersioninfoResult.class); } } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java new file mode 100644 index 0000000000..f2ed02f251 --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java @@ -0,0 +1,74 @@ +package me.chanjar.weixin.open.bean.result; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 小程序版本信息 + * + * @author cocoa + * @date 20220727 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class WxOpenVersioninfoResult extends WxOpenResult { + + private static final long serialVersionUID = -1042219138582803275L; + + @SerializedName("exp_info") + ExpInfo expInfo; + + @SerializedName("release_info") + ReleaseInfo releaseInfo; + + @Override + public String toString() { + return WxOpenGsonBuilder.create().toJson(this); + } + + @Data + public static class ReleaseInfo { + /** + * 发布线上版的时间 + */ + @SerializedName("release_time") + private Long releaseTime; + /** + * 线上版版本信息 + */ + @SerializedName("release_version") + private String releaseVersion; + /** + * 线上版本描述 + */ + @SerializedName("release_desc") + private String releaseDesc; + } + + + @Data + public static class ExpInfo { + /** + * 提交体验版的时间 + */ + @SerializedName("exp_time") + private Long expTime; + /** + * 头像已使用修改次数(本月) + */ + @SerializedName("exp_version") + private String expVersion; + /** + * 头像修改次数总额度(本月) + */ + @SerializedName("exp_desc") + private String expDesc; + } + + +} From 44ce1e9fbcac7f74ec766ba639ca35d60ad6ec52 Mon Sep 17 00:00:00 2001 From: Xianhui Guo <110033355+gxh0797@users.noreply.github.com> Date: Wed, 27 Jul 2022 20:04:56 +0800 Subject: [PATCH 308/622] =?UTF-8?q?:art:=20#2729=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=8F=91=E9=80=81=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E6=B6=88=E6=81=AF=E6=97=B6=E5=AE=8C=E5=96=84=E5=AF=B9?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=BA=A4=E4=BA=92=E5=9E=8B=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/message/WxCpMessageSendResult.java | 6 ++++++ .../cp/bean/templatecard/TemplateCardButton.java | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java index 6b02941dd7..fdb72c7a74 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java @@ -47,6 +47,12 @@ public static WxCpMessageSendResult fromJson(String json) { @SerializedName("msgid") private String msgId; + /** + * 仅消息类型为“按钮交互型”,“投票选择型”和“多项选择型”的模板卡片消息返回,应用可使用response_code调用更新模版卡片消息接口,24小时内有效,且只能使用一次 + */ + @SerializedName("response_code") + private String responseCode; + public List getInvalidUserList() { return this.content2List(this.invalidUser); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java index 28722c8d75..df7812fd15 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java @@ -34,6 +34,18 @@ public class TemplateCardButton implements Serializable { */ private String key; + /** + * 按钮点击事件类型,0 或不填代表回调点击事件,1 代表跳转url + */ + private int type; + + /** + * 跳转事件的url,button_list.type是1时必填 + */ + private String url; + + + public JsonObject toJson() { JsonObject btnObject = new JsonObject(); @@ -44,6 +56,10 @@ public JsonObject toJson() { btnObject.addProperty("style", this.getStyle()); } btnObject.addProperty("key", this.getKey()); + btnObject.addProperty("type", this.getType()); + if (null != this.getUrl()) { + btnObject.addProperty("url", this.getUrl()); + } return btnObject; } } From 873a0218e756fe72bd9db8bd033818ac1ede4022 Mon Sep 17 00:00:00 2001 From: chenblue23 Date: Thu, 28 Jul 2022 03:23:06 +0000 Subject: [PATCH 309/622] =?UTF-8?q?:bug:=20=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=B9=B3=E5=8F=B0=E8=AF=81=E4=B9=A6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=A4=E6=96=AD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/v3/auth/AutoUpdateCertificatesVerifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java index ca8b30bc80..f5219e5006 100755 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java @@ -123,7 +123,7 @@ public boolean verify(String serialNumber, byte[] message, String signature) { * 检查证书是否在有效期内,如果不在有效期内则进行更新 */ private void checkAndAutoUpdateCert() { - if (instant == null || instant.plus(minutesInterval, ChronoUnit.MINUTES).compareTo(Instant.now()) >= 0) { + if (instant == null || instant.plus(minutesInterval, ChronoUnit.MINUTES).compareTo(Instant.now()) <= 0) { if (lock.tryLock()) { try { autoUpdateCert(); From 4e06dd60393eef57399fa0180aa2d36693745a64 Mon Sep 17 00:00:00 2001 From: Xianhui Guo <110033355+gxh0797@users.noreply.github.com> Date: Tue, 2 Aug 2022 13:37:51 +0800 Subject: [PATCH 310/622] =?UTF-8?q?:bug:=20#2714=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E4=BF=AE=E5=A4=8D=E5=8D=B3=E6=97=B6?= =?UTF-8?q?=E9=85=8D=E9=80=81=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E6=8A=A5?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=AD=BE=E5=90=8D=E9=AA=8C=E8=AF=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WxMaImmediateDeliveryServiceImpl.java | 4 ++++ .../base/WxMaDeliveryBaseRequest.java | 3 ++- .../wx/miniapp/test/AddOrderJsonTest.java | 20 +++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/AddOrderJsonTest.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java index ba774d3326..2bf98d9571 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -98,6 +98,7 @@ public BindAccountResponse getBindAccount() throws WxErrorException { */ @Override public AddOrderResponse addOrder(final AddOrderRequest request) throws WxErrorException { + request.getDeliverySign(); return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.PlaceAnOrder.ADD_ORDER, request), AddOrderResponse.class); } @@ -115,6 +116,7 @@ public AddOrderResponse addOrder(final AddOrderRequest request) throws WxErrorEx */ @Override public GetOrderResponse getOrder(final GetOrderRequest request) throws WxErrorException { + request.getDeliverySign(); return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.GET_ORDER, request), GetOrderResponse.class); } @@ -131,6 +133,7 @@ public GetOrderResponse getOrder(final GetOrderRequest request) throws WxErrorEx */ @Override public CancelOrderResponse cancelOrder(final CancelOrderRequest request) throws WxErrorException { + request.getDeliverySign(); return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.Cancel.CANCEL_ORDER, request), CancelOrderResponse.class); } @@ -147,6 +150,7 @@ public CancelOrderResponse cancelOrder(final CancelOrderRequest request) throws */ @Override public AbnormalConfirmResponse abnormalConfirm(final AbnormalConfirmRequest request) throws WxErrorException { + request.getDeliverySign(); return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.Cancel.ABNORMAL_CONFIRM, request), AbnormalConfirmResponse.class); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java index a139ea9076..b01b04e76f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java @@ -113,7 +113,8 @@ public String getDeliverySign() { str = str.concat(getShopOrderId()); } str = str.concat(getAppSecret()); - return DigestUtils.sha1Hex(str); + this.deliverySign = DigestUtils.sha1Hex(str); + return this.deliverySign; } } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/AddOrderJsonTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/AddOrderJsonTest.java new file mode 100644 index 0000000000..b072eff189 --- /dev/null +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/AddOrderJsonTest.java @@ -0,0 +1,20 @@ +package cn.binarywang.wx.miniapp.test; + +import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; +import org.testng.annotations.Test; + +public class AddOrderJsonTest { + + /** + * 验证转化Json时是否有deliverySign + */ + @Test + public void test(){ + AddOrderRequest request = new AddOrderRequest(); + request.setShopId("1"); + request.setAppSecret("2"); + request.getDeliverySign(); + System.out.printf(WxGsonBuilder.create().toJson(request)); + } +} From 3f57b346e01aaa66b27682cbaa49853af3f5e446 Mon Sep 17 00:00:00 2001 From: Yang Bingdong Date: Thu, 4 Aug 2022 17:35:45 +0800 Subject: [PATCH 311/622] =?UTF-8?q?:art:=20WxMpXmlMessage=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=BE=A4=E5=8F=91=E6=B6=88=E6=81=AFid=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java index 6a1d6c1697..1e5e8eb32d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java @@ -189,6 +189,12 @@ public class WxMpXmlMessage implements Serializable { /////////////////////////////////////// // 群发消息返回的结果 /////////////////////////////////////// + /** + * 群发的消息ID + */ + @XStreamAlias("MsgID") + @JacksonXmlProperty(localName = "MsgID") + private Long massMsgId; /** * 群发的结果. */ From 20585808666a2db3f61554fdc5b8816970915b97 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 4 Aug 2022 22:13:16 +0800 Subject: [PATCH 312/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/impl/PartnerTransferServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java index 1a8a28f84b..8e2a372a58 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java @@ -78,7 +78,7 @@ public BatchNumberResult queryBatchByBatchId(BatchNumberRequest request) throws if (request.getLimit() == null || request.getLimit() <= 0) { request.setLimit(20); } - String query = String.format("?need_query_detail=true&detail_status=ALL&offset=%s&limit=%s", request.getNeedQueryDetail(), request.getOffset(), request.getLimit()); + String query = String.format("?need_query_detail=%s&detail_status=ALL&offset=%s&limit=%s", request.getNeedQueryDetail(), request.getOffset(), request.getLimit()); if (StringUtil.isNotBlank(request.getDetailStatus())){ query += "&detail_status="+request.getDetailStatus(); } @@ -107,7 +107,7 @@ public BatchNumberResult queryBatchByOutBatchNo(MerchantBatchRequest request) th if (request.getLimit() == null || request.getLimit() <= 0) { request.setLimit(20); } - String query = String.format("?need_query_detail=true&offset=%s&limit=%s", request.getNeedQueryDetail(), request.getOffset(), request.getLimit()); + String query = String.format("?need_query_detail=%s&offset=%s&limit=%s", request.getNeedQueryDetail(), request.getOffset(), request.getLimit()); if (StringUtil.isNotBlank(request.getDetailStatus())){ query += "&detail_status="+request.getDetailStatus(); } From 05f0fa2ac385d4e54bbc75a69a810f08e7057e3c Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 4 Aug 2022 22:58:43 +0800 Subject: [PATCH 313/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.3.9?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 3cc02436f2..de675a194c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 0e852987ec..1c059ea55a 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 65c997c53a..7c697330be 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 2bf28f7ca9..ad59972f02 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index 5231ed78fe..d8f75c20aa 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index b5832472f8..e812a154f2 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index b2912681fb..c1614e5b4d 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 4074165a54..c7a46dda4a 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 31b89ec8c9..19d8a0a557 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 7d48bf1cb9..87ed70258a 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 645cb7343e..166fc8e8ac 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 0c191887f9..edb3ce22cb 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 9e52e88597..14b47082fe 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 3130f207a4..687ba97027 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index f242daa1a8..19579aeb56 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index b8d558609d..45395dfaff 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.8.B + 4.3.9.B weixin-java-qidian From 52471fce89ab00cffd599b733e100fc75679a3e1 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Wed, 10 Aug 2022 15:52:23 +0800 Subject: [PATCH 314/622] =?UTF-8?q?:art:=20=E5=AE=8C=E5=96=84=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E9=83=A8=E5=88=86=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx-java-pay-spring-boot-starter/README.md | 12 ++++ .../weixin/cp/api/WxCpUserService.java | 17 ++++++ .../cp/api/impl/WxCpUserServiceImpl.java | 19 +++++- .../cp/bean/user/WxCpDeptUserResult.java | 58 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 2 + .../impl/WxCpDepartmentServiceImplTest.java | 7 +++ .../cp/api/impl/WxCpUserServiceImplTest.java | 38 +++++++++--- .../src/test/resources/test-config.sample.xml | 25 ++++---- 8 files changed, 155 insertions(+), 23 deletions(-) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/README.md b/spring-boot-starters/wx-java-pay-spring-boot-starter/README.md index a4d91fade0..8d96901f24 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/README.md +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/README.md @@ -8,6 +8,7 @@ ``` 2. 添加配置(application.yml) +###### 1)V2版本 ```yml wx: pay: @@ -18,6 +19,17 @@ wx: subMchId: keyPath: ``` +###### 2)V3版本 +```yml +wx: + pay: + appId: xxxxxxxxxxx + mchId: 15xxxxxxxxx #商户id + apiV3Key: Dc1DBwSc094jACxxxxxxxxxxxxxxx #V3密钥 + certSerialNo: 62C6CEAA360BCxxxxxxxxxxxxxxx + privateKeyPath: classpath:cert/apiclient_key.pem #apiclient_key.pem证书文件的绝对路径或者以classpath:开头的类路径 + privateCertPath: classpath:cert/apiclient_cert.pem #apiclient_cert.pem证书文件的绝对路径或者以classpath:开头的类路径 +``` diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java index 569f9172ea..d5bd6702ca 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java @@ -5,6 +5,7 @@ import me.chanjar.weixin.cp.bean.WxCpUser; import me.chanjar.weixin.cp.bean.WxCpUseridToOpenUseridResult; import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; +import me.chanjar.weixin.cp.bean.user.WxCpDeptUserResult; import java.util.ArrayList; import java.util.Date; @@ -224,9 +225,25 @@ public interface WxCpUserService { * userid转换为open_userid * 将自建应用或代开发应用获取的userid转换为第三方应用的userid * https://developer.work.weixin.qq.com/document/path/95603 + * * @param useridList * @return the WxCpUseridToOpenUseridResult * @throws WxErrorException */ WxCpUseridToOpenUseridResult useridToOpenUserid(ArrayList useridList) throws WxErrorException; + + /** + * 获取成员ID列表 + * 获取企业成员的userid与对应的部门ID列表,预计于2022年8月8号发布。若需要获取其他字段,参见「适配建议」。 + *

+ * 请求方式:POST(HTTPS) + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/list_id?access_token=ACCESS_TOKEN + * + * @param cursor + * @param limit + * @return + * @throws WxErrorException + */ + WxCpDeptUserResult getUserListId(String cursor, Integer limit) throws WxErrorException; + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java index 219a07eb42..f7ff0f57b8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java @@ -14,7 +14,7 @@ import me.chanjar.weixin.cp.bean.WxCpUser; import me.chanjar.weixin.cp.bean.WxCpUseridToOpenUseridResult; import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo; -import me.chanjar.weixin.cp.constant.WxCpApiPathConsts; +import me.chanjar.weixin.cp.bean.user.WxCpDeptUserResult; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import org.apache.commons.lang3.time.FastDateFormat; @@ -231,7 +231,7 @@ public Integer getActiveStat(Date date) throws WxErrorException { public WxCpUseridToOpenUseridResult useridToOpenUserid(ArrayList useridList) throws WxErrorException { JsonObject jsonObject = new JsonObject(); JsonArray jsonArray = new JsonArray(); - for(String userid:useridList){ + for (String userid : useridList) { jsonArray.add(userid); } jsonObject.add("userid_list", jsonArray); @@ -240,4 +240,19 @@ public WxCpUseridToOpenUseridResult useridToOpenUserid(ArrayList useridL return WxCpUseridToOpenUseridResult.fromJson(responseContent); } + @Override + public WxCpDeptUserResult getUserListId(String cursor, Integer limit) throws WxErrorException { + String apiUrl = this.mainService.getWxCpConfigStorage().getApiUrl(USER_LIST_ID); + JsonObject jsonObject = new JsonObject(); + if (cursor != null) { + jsonObject.addProperty("cursor", cursor); + } + if (limit != null) { + jsonObject.addProperty("limit", limit); + } + String responseContent = this.mainService.post(apiUrl, jsonObject.toString()); + return WxCpDeptUserResult.fromJson(responseContent); + } + + } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java new file mode 100644 index 0000000000..287476f836 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java @@ -0,0 +1,58 @@ +package me.chanjar.weixin.cp.bean.user; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import me.chanjar.weixin.cp.bean.WxCpBaseResp; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * 获取成员ID列表返回参数 + * + * @author Wang_Wong + * @date 2022/08/09 + */ +@Data +public class WxCpDeptUserResult extends WxCpBaseResp { + private static final long serialVersionUID = 1420065684270213578L; + + @SerializedName("next_cursor") + private String nextCursor; + + @SerializedName("dept_user") + private List deptUser; + + @Getter + @Setter + public static class DeptUserList implements Serializable { + private static final long serialVersionUID = 1420065684270213578L; + + @SerializedName("userid") + private String userId; + + @SerializedName("department") + private Long department; + + public static DeptUserList fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, DeptUserList.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + } + + public static WxCpDeptUserResult fromJson(String json) { + return WxCpGsonBuilder.create().fromJson(json, WxCpDeptUserResult.class); + } + + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index cb05320837..c8ee12c1b7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -325,6 +325,8 @@ interface User { String GET_JOIN_QR_CODE = "/cgi-bin/corp/get_join_qrcode?size_type="; String GET_ACTIVE_STAT = "/cgi-bin/user/get_active_stat"; String USERID_TO_OPEN_USERID = "/cgi-bin/batch/userid_to_openuserid"; + + String USER_LIST_ID = "/cgi-bin/user/list_id"; } interface ExternalContact { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java index 7417f8055a..d08dee4982 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java @@ -72,6 +72,13 @@ public void testDelete() throws Exception { this.wxCpService.getDepartmentService().delete(this.depart.getId()); } + /** + * 获取子部门ID列表 + * https://developer.work.weixin.qq.com/document/path/95350 + * + * @param id + * @throws WxErrorException + */ @Test(dataProvider = "departIds") public void testSimpleList(Long id) throws WxErrorException { System.out.println("=================获取子部门ID列表"); diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java index 0fb494ff34..a09bf6f70e 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImplTest.java @@ -1,23 +1,26 @@ package me.chanjar.weixin.cp.api.impl; -import java.util.Date; -import java.util.List; -import java.util.Map; - -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; -import org.testng.annotations.*; - import com.google.common.collect.Lists; import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.ApiTestModule; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.Gender; import me.chanjar.weixin.cp.bean.WxCpInviteResult; import me.chanjar.weixin.cp.bean.WxCpUser; +import me.chanjar.weixin.cp.bean.user.WxCpDeptUserResult; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; -import static org.testng.Assert.*; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import static org.testng.Assert.assertNotEquals; +import static org.testng.Assert.assertNotNull; /** *

@@ -26,6 +29,7 @@
  *
  * @author Binary Wang
  */
+@Slf4j
 @Guice(modules = ApiTestModule.class)
 public class WxCpUserServiceImplTest {
   @Inject
@@ -129,4 +133,20 @@ public void testGetActiveStat() throws WxErrorException {
     System.out.printf("active stat: %d", activeStat);
     assertNotNull(activeStat);
   }
+
+  /**
+   * 获取成员ID列表
+   * 获取企业成员的userid与对应的部门ID列表,预计于2022年8月8号发布。若需要获取其他字段,参见「适配建议」。
+   * 

+ * https://developer.work.weixin.qq.com/document/40856 + * + * @throws WxErrorException + */ + @Test + public void testGetUserListId() throws WxErrorException { + WxCpDeptUserResult result = this.wxCpService.getUserService().getUserListId(null, 10); + log.info("返回结果为:{}", result.toJson()); + assertNotNull(result); + } + } diff --git a/weixin-java-pay/src/test/resources/test-config.sample.xml b/weixin-java-pay/src/test/resources/test-config.sample.xml index 25ec4be056..9a299b8acc 100644 --- a/weixin-java-pay/src/test/resources/test-config.sample.xml +++ b/weixin-java-pay/src/test/resources/test-config.sample.xml @@ -1,21 +1,22 @@ 公众号appid 微信商户平台ID - 商户平台设置的API密钥 + 以下为官网文档所提供样例参数,仅供部分接口测试使用 + wxd930ea5d5a258f4f + 10000100 + 192006250b4c09247ec02edce69f6a2d +--> + + 商户平台设置的API密钥 商户平台的证书文件地址 - 某个openId - apiV3 秘钥值. apiV3 证书序列号值 - --> + apiclient_key.pem证书文件的绝对路径或者以classpath:开头的类路径. + apiclient_cert.pem证书文件的绝对路径或者以classpath:开头的类路径. + + + 某个openId From ab26565377378b7147ff98d4bdf2a90db328173b Mon Sep 17 00:00:00 2001 From: nadirvishun Date: Wed, 10 Aug 2022 15:53:14 +0800 Subject: [PATCH 315/622] =?UTF-8?q?:art:=20=E4=BF=AE=E6=94=B9=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=B7=AF=E7=94=B1route=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=B8=BApublic=EF=BC=8C=E6=96=B9=E4=BE=BF=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java index a73f26af7c..026babdd39 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouter.java @@ -107,7 +107,7 @@ public WxMaMessageRouterRule rule() { /** * 处理微信消息. */ - private WxMaXmlOutMessage route(final WxMaMessage wxMessage, final Map context) { + public WxMaXmlOutMessage route(final WxMaMessage wxMessage, final Map context) { if (isMsgDuplicated(wxMessage)) { // 如果是重复消息,那么就不做处理 return null; From cfa92390f21714601c02e8f626940203c68e8b3b Mon Sep 17 00:00:00 2001 From: liming1019 Date: Wed, 10 Aug 2022 22:44:43 +0800 Subject: [PATCH 316/622] =?UTF-8?q?:new:=20#2772=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E6=94=AF=E4=BB=98=E7=AE=A1=E7=90=86=E4=B9=8B=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E8=AE=A2=E5=8D=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaService.java | 6 +++ .../wx/miniapp/api/WxMaShopPayService.java | 24 ++++++++++ .../miniapp/api/impl/BaseWxMaServiceImpl.java | 5 ++ .../api/impl/WxMaShopPayServiceImpl.java | 29 ++++++++++++ .../WxMaShopPayCreateOrderRequest.java | 47 +++++++++++++++++++ .../WxMaShopPayCreateOrderResponse.java | 40 ++++++++++++++++ .../miniapp/constant/WxMaApiUrlConstants.java | 4 ++ .../api/impl/WxMaShopPayServiceImplTest.java | 40 ++++++++++++++++ 8 files changed, 195 insertions(+) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopPayService.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImpl.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java create mode 100644 weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImplTest.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index 72e8aad1e6..fb2ef3b9b7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -515,4 +515,10 @@ public interface WxMaService extends WxService { * @return getWxMaShopCouponService */ WxMaShopCouponService getWxMaShopCouponService(); + + /** + * 小程序支付管理-订单支付 + * @return getWxMaShopPayService + */ + WxMaShopPayService getWxMaShopPayService(); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopPayService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopPayService.java new file mode 100644 index 0000000000..b1c3da4356 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopPayService.java @@ -0,0 +1,24 @@ +package cn.binarywang.wx.miniapp.api; + +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopPayCreateOrderRequest; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopPayCreateOrderResponse; +import me.chanjar.weixin.common.error.WxErrorException; + +/** + * 小程序支付管理订单相关接口 + * + * @author liming1019 + */ +public interface WxMaShopPayService { + + /** + * 创建订单 + * 文档地址:文档地址 + * + * @param request 创建订单参数 + * @return 创建订单结果 + * @throws WxErrorException . + */ + WxMaShopPayCreateOrderResponse createOrder(WxMaShopPayCreateOrderRequest request) + throws WxErrorException; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index b1d3db0d7b..4cff1bf16b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -83,6 +83,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaProductService productService = new WxMaProductServiceImpl(this); private final WxMaProductOrderService productOrderService = new WxMaProductOrderServiceImpl(this); private final WxMaShopCouponService wxMaShopCouponService = new WxMaShopCouponServiceImpl(this); + private final WxMaShopPayService wxMaShopPayService = new WxMaShopPayServiceImpl(this); private Map configMap; private int retrySleepMillis = 1000; private int maxRetryTimes = 5; @@ -612,4 +613,8 @@ public WxMaShopCouponService getWxMaShopCouponService() { return this.wxMaShopCouponService; } + @Override + public WxMaShopPayService getWxMaShopPayService() { + return this.wxMaShopPayService; + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImpl.java new file mode 100644 index 0000000000..1a1c45f291 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImpl.java @@ -0,0 +1,29 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.api.WxMaShopPayService; +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopPayCreateOrderRequest; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopPayCreateOrderResponse; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Shop.Pay.CREATE_ORDER; + +/** + * 小程序支付管理订单相关接口 + * + * @author liming1019 + */ +@RequiredArgsConstructor +@Slf4j +public class WxMaShopPayServiceImpl implements WxMaShopPayService { + private final WxMaService wxMaService; + + @Override + public WxMaShopPayCreateOrderResponse createOrder(WxMaShopPayCreateOrderRequest request) throws WxErrorException { + String response = this.wxMaService.post(CREATE_ORDER, request); + return WxGsonBuilder.create().fromJson(response, WxMaShopPayCreateOrderResponse.class); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java new file mode 100644 index 0000000000..085a70eecf --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java @@ -0,0 +1,47 @@ +package cn.binarywang.wx.miniapp.bean.shop.request; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * @author liming1019 + * @date 2022/8/10 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopPayCreateOrderRequest implements Serializable { + private static final long serialVersionUID = -5597409427574429095L; + + @SerializedName("openid") + private String openid; + @SerializedName("combine_trade_no") + private String combineTradeNo; + @SerializedName("expire_time") + private Long expireTime; + @SerializedName("sub_orders") + private List subOrders; + + @NoArgsConstructor + @AllArgsConstructor + @Data + @Builder + public static class SubOrdersDTO { + @SerializedName("mchid") + private String mchid; + @SerializedName("amount") + private Integer amount; + @SerializedName("trade_no") + private String tradeNo; + @SerializedName("description") + private String description; + } +} + diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java new file mode 100644 index 0000000000..85cd3e3909 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java @@ -0,0 +1,40 @@ +package cn.binarywang.wx.miniapp.bean.shop.response; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author liming1019 + * @date 2022/8/10 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxMaShopPayCreateOrderResponse extends WxMaShopBaseResponse implements Serializable { + private static final long serialVersionUID = -375471325664721192L; + + @SerializedName("payment_params") + private PaymentParamsDTO paymentParams; + + @NoArgsConstructor + @Data + public static class PaymentParamsDTO { + @SerializedName("timeStamp") + private Integer timeStamp; + @SerializedName("nonceStr") + private String nonceStr; + @SerializedName("package") + private String packageX; + @SerializedName("paySign") + private String paySign; + @SerializedName("signType") + private String signType; + } +} + diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index c7c02f8b2d..e6c8535b91 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -536,6 +536,10 @@ interface Coupon { String UPDATE_USER_COUPON = "https://api.weixin.qq.com/shop/coupon/update_user_coupon"; String UPDATE_USER_COUPON_STATUS = "https://api.weixin.qq.com/shop/coupon/update_usercoupon_status"; } + + interface Pay { + String CREATE_ORDER = "https://api.weixin.qq.com/shop/pay/createorder"; + } } /** diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImplTest.java new file mode 100644 index 0000000000..bf509b8b3a --- /dev/null +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopPayServiceImplTest.java @@ -0,0 +1,40 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopPayCreateOrderRequest; +import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopPayCreateOrderResponse; +import cn.binarywang.wx.miniapp.test.ApiTestModule; +import com.google.inject.Inject; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.util.Arrays; + +import static org.assertj.core.api.Assertions.assertThat; + +@Test +@Guice(modules = ApiTestModule.class) +public class WxMaShopPayServiceImplTest { + + @Inject + private WxMaService wxService; + + @Test + public void testCreateOrder() throws Exception { + WxMaShopPayCreateOrderRequest request = + WxMaShopPayCreateOrderRequest.builder() + .openid("") + .combineTradeNo("") + .expireTime(1234L) + .subOrders(Arrays.asList(WxMaShopPayCreateOrderRequest.SubOrdersDTO.builder() + .mchid("") + .amount(0) + .tradeNo("") + .description("") + .build() + )) + .build(); + WxMaShopPayCreateOrderResponse response = wxService.getWxMaShopPayService().createOrder(request); + assertThat(response).isNotNull(); + } +} From cc8901598d7da8c91b553031c0f1975db2e8ce5b Mon Sep 17 00:00:00 2001 From: Xianhui Guo <110033355+gxh0797@users.noreply.github.com> Date: Wed, 10 Aug 2022 22:45:48 +0800 Subject: [PATCH 317/622] =?UTF-8?q?:art:=20#2762=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=AE=A1=E6=89=B9=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=A2=9E=E5=8A=A0=E7=BC=BA=E5=B0=91=E7=9A=84=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/oa/applydata/ContentValue.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java index e2d4761bd3..1c97ce90e4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java @@ -45,6 +45,9 @@ public class ContentValue implements Serializable { @SerializedName("date_range") private Attendance.DataRange dateRange; + @SerializedName("punch_correction") + private PunchCorrection punchCorrection; + @Data public static class Date implements Serializable { private static final long serialVersionUID = -6181554080062231138L; @@ -169,4 +172,11 @@ public static class TemplateName implements Serializable { private String lang; } + @Data + public static class PunchCorrection implements Serializable { + private static final long serialVersionUID = 2120523160034749170L; + private String state; + private Long time; + } + } From 53d332190cf56509fce8e41289bae1eab41d60d4 Mon Sep 17 00:00:00 2001 From: cocoa Date: Fri, 12 Aug 2022 11:40:29 +0800 Subject: [PATCH 318/622] =?UTF-8?q?:art:=20=E6=8F=90=E4=BA=A4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=AE=A1=E6=A0=B8=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E5=85=A5=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/bean/message/WxOpenMaSubmitAuditMessage.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java index d74f3d8d5a..202a422533 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java @@ -47,4 +47,10 @@ public class WxOpenMaSubmitAuditMessage implements Serializable { */ @SerializedName("feedback_stuff") private String feedbackStuff; + + /** + * 用于声明是否不使用“代码中检测出但是未配置的隐私相关接口” + */ + @SerializedName("privacy_api_not_use") + private Boolean privacyApiNotUse; } From fe49e5af1180b19ab6a14ae39e0082490c4980b3 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Fri, 12 Aug 2022 11:42:43 +0800 Subject: [PATCH 319/622] =?UTF-8?q?:art:=20#2773=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BC=98=E5=8C=96=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=AD=98=E6=A1=A3=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=AD=98=E6=A1=A3=E7=9A=84=E5=A4=9A=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/api/WxCpMsgAuditService.java | 9 ++++-- .../cp/api/impl/WxCpMsgAuditServiceImpl.java | 28 ++++++++--------- .../cp/bean/message/WxCpXmlMessage.java | 9 ++++++ .../cp/bean/msgaudit/WxCpChatDatas.java | 6 +++- .../weixin/cp/util/crypto/WxCpCryptUtil.java | 5 ++- .../chanjar/weixin/cp/api/WxCpLivingTest.java | 31 ++++++++++++++++++- .../weixin/cp/api/WxCpMsgAuditTest.java | 31 +++++++++++++++---- 7 files changed, 91 insertions(+), 28 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java index 95f484675f..72f637040f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java @@ -33,22 +33,24 @@ public interface WxCpMsgAuditService { /** * 获取解密的聊天数据Model * + * @param sdk getChatDatas()获取到的sdk * @param chatData getChatDatas()获取到的聊天数据 * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... * @return 解密后的聊天数据 * @throws Exception */ - WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; + WxCpChatModel getDecryptData(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; /** * 获取解密的聊天数据明文 * + * @param sdk getChatDatas()获取到的sdk * @param chatData getChatDatas()获取到的聊天数据 * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... * @return 解密后的明文 * @throws Exception */ - String getChatPlainText(@NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; + String getChatPlainText(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; /** * 获取媒体文件 @@ -58,6 +60,7 @@ public interface WxCpMsgAuditService { * 根据上面返回的文件类型,拼接好存放文件的绝对路径即可。此时绝对路径写入文件流,来达到获取媒体文件的目的。 * 详情可以看官方文档,亦可阅读此接口源码。 * + * @param sdk getChatDatas()获取到的sdk,注意,每次获取的sdk会不一样 * @param sdkfileid 消息体内容中的sdkfileid信息 * @param proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081,如果没有传null * @param passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123,如果没有传null @@ -65,7 +68,7 @@ public interface WxCpMsgAuditService { * @param targetFilePath 目标文件绝对路径+实际文件名,比如:/usr/local/file/20220114/474f866b39d10718810d55262af82662.gif * @throws WxErrorException */ - void getMediaFile(@NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException; + void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException; /** * 获取会话内容存档开启成员列表 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java index fa802a1c68..5f670f483e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java @@ -76,11 +76,11 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S osLib.addAll(fileLib); Finance.loadingLibraries(osLib, prefixPath); - long sdk = Finance.SingletonSDK(); + long sdk = Finance.NewSdk(); long ret = Finance.Init(sdk, cpService.getWxCpConfigStorage().getCorpId(), cpService.getWxCpConfigStorage().getCorpSecret()); if (ret != 0) { - Finance.DestroySingletonSDK(sdk); + Finance.DestroySdk(sdk); throw new WxErrorException("init sdk err ret " + ret); } @@ -88,7 +88,7 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S ret = Finance.GetChatData(sdk, seq, limit, proxy, passwd, timeout, slice); if (ret != 0) { Finance.FreeSlice(slice); - Finance.DestroySingletonSDK(sdk); + Finance.DestroySdk(sdk); throw new WxErrorException("getchatdata err ret " + ret); } @@ -97,20 +97,21 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S Finance.FreeSlice(slice); WxCpChatDatas chatDatas = WxCpChatDatas.fromJson(content); if (chatDatas.getErrCode().intValue() != 0) { - Finance.DestroySingletonSDK(sdk); + Finance.DestroySdk(sdk); throw new WxErrorException(chatDatas.toJson()); } + chatDatas.setSdk(sdk); return chatDatas; } @Override - public WxCpChatModel getDecryptData(@NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { - String plainText = this.decryptChatData(chatData, pkcs1); + public WxCpChatModel getDecryptData(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { + String plainText = this.decryptChatData(sdk, chatData, pkcs1); return WxCpChatModel.fromJson(plainText); } - public String decryptChatData(WxCpChatDatas.WxCpChatData chatData, Integer pkcs1) throws Exception { + public String decryptChatData(long sdk, WxCpChatDatas.WxCpChatData chatData, Integer pkcs1) throws Exception { /** * 企业获取的会话内容,使用企业自行配置的消息加密公钥进行加密,企业可用自行保存的私钥解开会话内容数据。 * msgAuditPriKey 会话存档私钥不能为空 @@ -124,7 +125,6 @@ public String decryptChatData(WxCpChatDatas.WxCpChatData chatData, Integer pkcs1 /** * 每次使用DecryptData解密会话存档前需要调用NewSlice获取一个slice,在使用完slice中数据后,还需要调用FreeSlice释放。 */ - long sdk = Finance.SingletonSDK(); long msg = Finance.NewSlice(); /** @@ -135,7 +135,7 @@ public String decryptChatData(WxCpChatDatas.WxCpChatData chatData, Integer pkcs1 int ret = Finance.DecryptData(sdk, decryptByPriKey, chatData.getEncryptChatMsg(), msg); if (ret != 0) { Finance.FreeSlice(msg); - Finance.DestroySingletonSDK(sdk); + Finance.DestroySdk(sdk); throw new WxErrorException("msg err ret " + ret); } @@ -148,12 +148,12 @@ public String decryptChatData(WxCpChatDatas.WxCpChatData chatData, Integer pkcs1 } @Override - public String getChatPlainText(WxCpChatDatas.@NonNull WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { - return this.decryptChatData(chatData, pkcs1); + public String getChatPlainText(@NonNull long sdk, WxCpChatDatas.@NonNull WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { + return this.decryptChatData(sdk, chatData, pkcs1); } @Override - public void getMediaFile(@NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException { + public void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException { /** * 1、媒体文件每次拉取的最大size为512k,因此超过512k的文件需要分片拉取。 * 2、若该文件未拉取完整,sdk的IsMediaDataFinish接口会返回0,同时通过GetOutIndexBuf接口返回下次拉取需要传入GetMediaData的indexbuf。 @@ -166,13 +166,13 @@ public void getMediaFile(@NonNull String sdkfileid, String proxy, String passwd, String indexbuf = ""; int ret, data_len = 0; + log.debug("正在分片拉取媒体文件 sdkFileId为{}", sdkfileid); while (true) { long mediaData = Finance.NewMediaData(); - long sdk = Finance.SingletonSDK(); ret = Finance.GetMediaData(sdk, indexbuf, sdkfileid, proxy, passwd, timeout, mediaData); if (ret != 0) { Finance.FreeMediaData(mediaData); - Finance.DestroySingletonSDK(sdk); + Finance.DestroySdk(sdk); throw new WxErrorException("getmediadata err ret " + ret); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index 68dbc69878..6a81a7b50c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -434,11 +434,20 @@ public class WxCpXmlMessage implements Serializable { * 1. 群发的结果. * 2. 通讯录变更事件 * 激活状态:1=已激活 2=已禁用 4=未激活 已激活代表已激活企业微信或已关注微工作台(原企业号). + * 3. 直播回调事件 + * 直播状态 ,0:预约中,1:直播中,2:已结束,4:已取消 (已过期状态目前没有回调) */ @XStreamAlias("Status") @XStreamConverter(value = XStreamCDataConverter.class) private String status; + /** + * 直播ID + */ + @XStreamAlias("LivingId") + @XStreamConverter(value = XStreamCDataConverter.class) + private String livingId; + /** * group_id下粉丝数;或者openid_list中的粉丝数. */ diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java index 8359bc087d..212cb8b200 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java @@ -12,7 +12,8 @@ /** * 聊天记录数据内容. * - * @author Wang_Wong + * @author Wang_Wong + * @date 2022-01-17 */ @Data public class WxCpChatDatas implements Serializable { @@ -24,6 +25,9 @@ public class WxCpChatDatas implements Serializable { @SerializedName("errmsg") private String errMsg; + @SerializedName("sdk") + private long sdk; + @SerializedName("chatdata") private List chatData; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java index 35b5946edb..8d6a682569 100755 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtil.java @@ -1,6 +1,5 @@ package me.chanjar.weixin.cp.util.crypto; -import com.google.common.io.BaseEncoding; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.crypto.WxCryptUtil; import me.chanjar.weixin.cp.config.WxCpConfigStorage; @@ -61,7 +60,7 @@ public static String decryptPriKey(String encryptRandomKey, String msgAuditPriKe * @throws Exception */ public static String decryptPriKeyByPKCS8(String encryptRandomKey, String msgAuditPriKey) throws Exception { - String privateKey = msgAuditPriKey.replaceAll("\\n", "") + String privateKey = msgAuditPriKey.replaceAll("(\r\n|\r|\n|\n\r)", "") .replace("-----BEGIN PRIVATE KEY-----", "") .replace("-----END PRIVATE KEY-----", "") .replaceAll(" ", ""); @@ -87,7 +86,7 @@ public static String decryptPriKeyByPKCS8(String encryptRandomKey, String msgAud * @throws Exception */ public static String decryptPriKeyByPKCS1(String encryptRandomKey, String msgAuditPriKey) throws Exception { - String privateKey = msgAuditPriKey.replaceAll("\\n", "") + String privateKey = msgAuditPriKey.replaceAll("(\r\n|\r|\n|\n\r)", "") .replace("-----BEGIN RSA PRIVATE KEY-----", "") .replace("-----END RSA PRIVATE KEY-----", "") .replaceAll(" ", ""); diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java index b67324e711..5ee990f9b7 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java @@ -3,10 +3,13 @@ import lombok.extern.slf4j.Slf4j; import lombok.val; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.XmlUtils; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.bean.living.*; +import me.chanjar.weixin.cp.bean.message.WxCpXmlMessage; import me.chanjar.weixin.cp.config.WxCpConfigStorage; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; +import me.chanjar.weixin.cp.util.xml.XStreamTransformer; import org.eclipse.jetty.util.ajax.JSON; import org.testng.annotations.Test; @@ -18,7 +21,8 @@ * 企业微信直播测试类. * 官方文档:https://open.work.weixin.qq.com/api/doc/90000/90135/93632 * - * @author Wang_Wong + * @author Wang_Wong + * @date 2021-12-23 */ @Slf4j public class WxCpLivingTest { @@ -36,6 +40,31 @@ public void test() throws WxErrorException { wxCpService = new WxCpServiceImpl(); wxCpService.setWxCpConfigStorage(config); + + /** + * 直播回调事件 + * 一场完整的直播,会经历 预约直播/开始直播/结束直播 等一系列状态变更。 + * 为了让企业实时获取直播的动态,当直播状态变更后,企业微信会将该变更推送到开发者配置的回调URL。 + * 只有通过接口创建的预约/立即直播才会回调。 + * + * 请注意,只有用企业微信api创建的直播才能收到回调,且调用创建直播接口的应用,要配置好回调url。 + */ + String livingXml = "\n" + + " \n" + + " \n" + + " 1348831860\n" + + " \n" + + " \n" + + " \n" + + " 1\n" + + " 1\n" + + ""; + + final WxCpXmlMessage livingXmlMsg = XStreamTransformer.fromXml(WxCpXmlMessage.class, livingXml); + livingXmlMsg.setAllFieldsMap(XmlUtils.xml2Map(livingXml)); + log.info("livingXmlMsg:{}", JSON.toString(livingXmlMsg)); + + /** * 测试创建直播 */ diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java index cdd2647c93..7c3c4c9a80 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -1,6 +1,7 @@ package me.chanjar.weixin.cp.api; import com.google.common.collect.Lists; +import com.tencent.wework.Finance; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.util.XmlUtils; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; @@ -114,7 +115,23 @@ public void test() throws Exception { * D:/WorkSpace/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so * Linux: * /www/osfile/work_msg_storage/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so - */ + * + * + * yml配置(支持多个corpId): + * wx: + * cp: + * appConfigs: + * - agentId: 10001 #客户联系 + * corpId: xxxxxxxxxxx + * secret: T5fTj1n-sBAT4rKNW5c9IYNfPdXZxxxxxxxxxxx + * token: 2bSNqTcLtxxxxxxxxxxx + * aesKey: AXazu2Xyw44SNY1x8go2phn9p9B2xxxxxxxxxxx + * - agentId: 10002 #会话内容存档 + * corpId: xxxxxxxxxxx + * secret: xIpum7Yt4NMXcyxdzcQ2l_46BG4Qxxxxxxxxxxx + * token: + * aesKey: + * / /** * 建议放到redis,本次请求获取消息记录开始的seq值。首次访问填写0,非首次使用上次企业微信返回的最大seq。允许从任意seq重入拉取。 @@ -145,13 +162,13 @@ public void test() throws Exception { // Integer publickeyVer = chatData.getPublickeyVer(); // 获取明文数据 - final String chatPlainText = cpService.getMsgAuditService().getChatPlainText(chatData, 2); + final String chatPlainText = cpService.getMsgAuditService().getChatPlainText(chatDatas.getSdk(), chatData, 2); final WxCpChatModel wxCpChatModel = WxCpChatModel.fromJson(chatPlainText); log.info("明文数据为:{}", wxCpChatModel.toJson()); // 获取消息数据 // https://developer.work.weixin.qq.com/document/path/91774 - final WxCpChatModel decryptData = cpService.getMsgAuditService().getDecryptData(chatData, 2); + final WxCpChatModel decryptData = cpService.getMsgAuditService().getDecryptData(chatDatas.getSdk(), chatData, 2); log.info("获取消息数据为:{}", decryptData.toJson()); /** @@ -239,13 +256,15 @@ public void test() throws Exception { * 3、比如可以上传到阿里云oss或者腾讯云cos */ String targetPath = path + md5Sum + suffix; - cpService.getMsgAuditService().getMediaFile(sdkFileId, null, null, 1000L, targetPath); + cpService.getMsgAuditService().getMediaFile(chatDatas.getSdk(), sdkFileId, null, null, 1000L, targetPath); } - } - } + // 注意: + // 当此批次数据拉取完毕后,可以释放此次sdk + log.info("释放sdk {}", chatDatas.getSdk()); + Finance.DestroySdk(chatDatas.getSdk()); } From c84b46a55bd39d5e740de86bbc3147220336d97e Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Fri, 12 Aug 2022 17:10:00 +0800 Subject: [PATCH 320/622] =?UTF-8?q?:art:=20#2777=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=9B=9E=E8=B0=83=E4=BA=8B=E4=BB=B6=E5=B8=B8?= =?UTF-8?q?=E9=87=8F=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/constant/WxCpConsts.java | 5 +++++ .../me/chanjar/weixin/cp/api/WxCpLivingTest.java | 7 +++++++ .../chanjar/weixin/cp/api/WxCpMsgAuditTest.java | 15 +++++++++++++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java index b422c9d23d..8d8f09271a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpConsts.java @@ -154,6 +154,11 @@ public static class EventType { */ public static final String MSGAUDIT_NOTIFY = "msgaudit_notify"; + /** + * 直播回调事件 + */ + public static final String LIVING_STATUS_CHANGE = "living_status_change"; + } /** diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java index 5ee990f9b7..43724e5a0b 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java @@ -8,6 +8,7 @@ import me.chanjar.weixin.cp.bean.living.*; import me.chanjar.weixin.cp.bean.message.WxCpXmlMessage; import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.constant.WxCpConsts; import me.chanjar.weixin.cp.demo.WxCpDemoInMemoryConfigStorage; import me.chanjar.weixin.cp.util.xml.XStreamTransformer; import org.eclipse.jetty.util.ajax.JSON; @@ -64,6 +65,12 @@ public void test() throws WxErrorException { livingXmlMsg.setAllFieldsMap(XmlUtils.xml2Map(livingXml)); log.info("livingXmlMsg:{}", JSON.toString(livingXmlMsg)); + /** + * 直播回调事件常量 + * https://developer.work.weixin.qq.com/document/path/94145 + */ + String livingStatusChange = WxCpConsts.EventType.LIVING_STATUS_CHANGE; + /** * 测试创建直播 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java index 7c3c4c9a80..27fd2b2156 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -104,7 +104,7 @@ public void test() throws Exception { * // 回调配置的EncodingAESKey * * // 企业微信会话存档 - * // 1、会话存档私钥,一定要加上前缀!! + * // 1、会话存档私钥,最好去除前缀和换行,如下所示! * // 2、仔细配置windows以及linux环境sdk路径 * MIxxx893B2pggd1r95T8k2QxxxxbD6xxxxmXsskn+5XunyR1WJlJGqgi0OMVGYvSfkNb9kD50fM21CGLcN1y4miL9fVNBIsvJmIUeJCNS8TioAVGFvh2EgzjqTR1gH * /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so @@ -131,6 +131,17 @@ public void test() throws Exception { * secret: xIpum7Yt4NMXcyxdzcQ2l_46BG4Qxxxxxxxxxxx * token: * aesKey: + * msgAuditPriKey: MIxxx893B2pggd1r95T8k2QxxxxbD6xxxxmXsskn+5XunyR1WJlJGqgi0OMVGYvSfkNb9kD50fM21CGLcN1y4miL9fVNBIsvJmIUeJCNS8TioAVGFvh2EgzjqTR1gHxxx + * msgAuditLibPath: /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + * + * + * 在线生成非对称加密公钥私钥对: + * http://web.chacuo.net/netrsakeypair + * + * + * 或者可以在linux上使用如下命令生成公钥私钥对: + * openssl genrsa -out private_key.pem 2048 + * openssl rsa -in private_key.pem -pubout -out public_key.pem * / /** @@ -262,7 +273,7 @@ public void test() throws Exception { } } // 注意: - // 当此批次数据拉取完毕后,可以释放此次sdk + // 当此批次数据拉取完毕后,应释放此次sdk log.info("释放sdk {}", chatDatas.getSdk()); Finance.DestroySdk(chatDatas.getSdk()); From 6472484b32d8bb6b0e1a9738af24e043594bc1f1 Mon Sep 17 00:00:00 2001 From: 0katekate0 <32161300+0katekate0@users.noreply.github.com> Date: Tue, 16 Aug 2022 19:46:27 +0800 Subject: [PATCH 321/622] =?UTF-8?q?:new:=20#2501=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0V3?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=9B=9E=E8=B0=83=E9=80=9A=E7=9F=A5=E5=BA=94?= =?UTF-8?q?=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/notify/WxPayNotifyV3Response.java | 50 +++++++++++++++++++ .../wxpay/constant/WxPayConstants.java | 15 ++++++ .../bean/notify/WxPayNotifyResponseTest.java | 24 +++++++++ 3 files changed, 89 insertions(+) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java new file mode 100644 index 0000000000..c947a9ddc1 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java @@ -0,0 +1,50 @@ +package com.github.binarywang.wxpay.bean.notify; + +import com.google.gson.Gson; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * 微信支付订单和退款的异步通知,V3版本共用的响应类. + * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_11.shtml + * + * @author Wang_Wong + * @date 2022-08-15 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WxPayNotifyV3Response { + + private static final transient String SUCCESS = "SUCCESS"; + private static final transient String FAIL = "FAIL"; + + private String code; + private String message; + + /** + * 返回成功 + * + * @param msg + * @return + */ + public static String success(String msg) { + WxPayNotifyV3Response response = new WxPayNotifyV3Response(SUCCESS, msg); + return new Gson().toJson(response); + } + + /** + * 返回失败 + * + * @param msg 返回信息,如非空,为错误原因 + * @return + */ + public static String fail(String msg) { + WxPayNotifyV3Response response = new WxPayNotifyV3Response(FAIL, msg); + return new Gson().toJson(response); + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java index fbc499fedd..ffd17efe4d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java @@ -311,6 +311,7 @@ public static class RefundStatus { public static final String SUCCESS = "SUCCESS"; /** + * v2 * 退款关闭. */ public static final String REFUND_CLOSE = "REFUNDCLOSE"; @@ -321,10 +322,23 @@ public static class RefundStatus { public static final String PROCESSING = "PROCESSING"; /** + * v2 * 退款异常. * 退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往商户平台(pay.weixin.qq.com)-交易中心,手动处理此笔退款。 */ public static final String CHANGE = "CHANGE"; + + /** + * v3 + * 退款关闭 + */ + public static final String CLOSED = "CLOSED"; + + /** + * v3 + * 退款异常 + */ + public static final String ABNORMAL = "ABNORMAL"; } public static class ReceiverType { @@ -345,4 +359,5 @@ public static class ReceiverType { */ public static final String PERSONAL_SUB_OPENID = "PERSONAL_SUB_OPENID"; } + } diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java index 60be34e357..1245c0a151 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java @@ -1,5 +1,6 @@ package com.github.binarywang.wxpay.bean.notify; +import lombok.extern.slf4j.Slf4j; import org.testng.annotations.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -10,8 +11,12 @@ * @author Binary Wang * @date 2019-06-30 */ +@Slf4j public class WxPayNotifyResponseTest { + /** + * V2版本 + */ @Test public void testSuccess() { final String result = WxPayNotifyResponse.success("OK"); @@ -38,4 +43,23 @@ public void testFailResp() { "" + ""); } + + /** + * V3版本 + * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_5.shtml + */ + @Test + public void testV3Fail() { + final String result = WxPayNotifyV3Response.fail("失败"); + log.info(result); + assertThat(result).isNotEmpty(); + } + + @Test + public void testV3Success() { + final String result = WxPayNotifyV3Response.success("成功"); + log.info(result); + assertThat(result).isNotEmpty(); + } + } From 94ff00bc4b67182734d84138c5580e111d925a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=87=92=E7=8C=AB?= Date: Tue, 16 Aug 2022 19:48:18 +0800 Subject: [PATCH 322/622] =?UTF-8?q?:new:=20#2722=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E5=AE=A4=E7=AE=A1=E7=90=86=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/api/WxCpOaMeetingRoomService.java | 76 +++++++++++++++ .../me/chanjar/weixin/cp/api/WxCpService.java | 7 ++ .../cp/api/impl/BaseWxCpServiceImpl.java | 6 ++ .../impl/WxCpOaMeetingRoomServiceImpl.java | 51 ++++++++++ .../oa/meetingroom/WxCpOaMeetingRoom.java | 94 +++++++++++++++++++ .../weixin/cp/constant/WxCpApiPathConsts.java | 9 ++ .../WxCpOaMeetingRoomServiceImplTest.java | 71 ++++++++++++++ 7 files changed, 314 insertions(+) create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java create mode 100644 weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/meetingroom/WxCpOaMeetingRoom.java create mode 100644 weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java new file mode 100644 index 0000000000..e69e817669 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java @@ -0,0 +1,76 @@ +package me.chanjar.weixin.cp.api; + +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.bean.oa.meetingroom.WxCpOaMeetingRoom; + +import java.util.List; + +/** + * 企业微信会议室接口. + * + * @author lm93129 + * @date 2022年8月12日22:33:36 + */ +public interface WxCpOaMeetingRoomService { + /** + * 创建会议室. + *

+   * 该接口用于通过应用在企业内创建一个会议室。
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/add?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/93619
+   * 
+ * + * @param meetingRoom 会议室对象 + * @return 会议室ID + * @throws WxErrorException . + */ + String addMeetingRoom(WxCpOaMeetingRoom meetingRoom) throws WxErrorException; + + /** + * 查询会议室. + *
+   * 该接口用于通过应用在企业内查询会议室列表。
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/list?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/93619
+   * 
+ * + * @param meetingRoomRequest 会议室查询对象 + * @return 会议室ID + * @throws WxErrorException . + */ + List listMeetingRoom(WxCpOaMeetingRoom meetingRoomRequest) throws WxErrorException; + + /** + * 编辑会议室. + *
+   * 该接口用于通过应用在企业内编辑会议室。
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/edit?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/93619
+   * 
+ * + * @param meetingRoom 会议室对象 + * @throws WxErrorException . + */ + void editMeetingRoom(WxCpOaMeetingRoom meetingRoom) throws WxErrorException; + + /** + * 编辑会议室. + *
+   * 该接口用于通过应用在企业内编辑会议室。
+   * 请求方式: POST(HTTPS)
+   * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/del?access_token=ACCESS_TOKEN
+   *
+   * 文档地址:https://developer.work.weixin.qq.com/document/path/93619
+   * 
+ * + * @param meetingRoomId 会议室对象 + * @throws WxErrorException . + */ + void deleteMeetingRoom(Integer meetingRoomId) throws WxErrorException; +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 60cfda149d..44237ba8eb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -456,6 +456,13 @@ public interface WxCpService extends WxService { */ WxCpOaCalendarService getOaCalendarService(); + /** + * 获取会议室相关接口的服务类对象 + * + * @return the oa meetingroom service + */ + WxCpOaMeetingRoomService getOaMeetingRoomService(); + /** * 获取日程相关接口的服务类对象 * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 3f12961dd8..735ccfd85f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -61,6 +61,7 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH private WxCpGroupRobotService groupRobotService = new WxCpGroupRobotServiceImpl(this); private WxCpMessageService messageService = new WxCpMessageServiceImpl(this); private WxCpOaCalendarService oaCalendarService = new WxCpOaCalendarServiceImpl(this); + private WxCpOaMeetingRoomService oaMeetingRoomService = new WxCpOaMeetingRoomServiceImpl(this); private WxCpOaScheduleService oaScheduleService = new WxCpOaOaScheduleServiceImpl(this); private WxCpAgentWorkBenchService workBenchService = new WxCpAgentWorkBenchServiceImpl(this); private WxCpKfService kfService = new WxCpKfServiceImpl(this); @@ -536,6 +537,11 @@ public WxCpOaCalendarService getOaCalendarService() { return this.oaCalendarService; } + @Override + public WxCpOaMeetingRoomService getOaMeetingRoomService() { + return this.oaMeetingRoomService; + } + @Override public WxCpGroupRobotService getGroupRobotService() { return groupRobotService; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java new file mode 100644 index 0000000000..2bf5b0d577 --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java @@ -0,0 +1,51 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.gson.reflect.TypeToken; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonHelper; +import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.cp.api.WxCpOaMeetingRoomService; +import me.chanjar.weixin.cp.api.WxCpService; + +import me.chanjar.weixin.cp.bean.oa.meetingroom.WxCpOaMeetingRoom; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.util.List; + +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.*; + +/** + * @author fcat + * @version 1.0 + * Create by 2022/8/12 23:49 + */ +@RequiredArgsConstructor +public class WxCpOaMeetingRoomServiceImpl implements WxCpOaMeetingRoomService { + private final WxCpService wxCpService; + + @Override + public String addMeetingRoom(WxCpOaMeetingRoom meetingRoom) throws WxErrorException { + return this.wxCpService.post(this.wxCpService.getWxCpConfigStorage().getApiUrl(MEETINGROOM_ADD), meetingRoom); + } + + @Override + public List listMeetingRoom(WxCpOaMeetingRoom meetingRoomRequest) throws WxErrorException { + String response = this.wxCpService.post(this.wxCpService.getWxCpConfigStorage().getApiUrl(MEETINGROOM_LIST), + meetingRoomRequest); + return WxCpGsonBuilder.create().fromJson(GsonParser.parse(response).get("meetingroom_list").getAsJsonArray().toString(), + new TypeToken>() { + }.getType()); + } + + @Override + public void editMeetingRoom(WxCpOaMeetingRoom meetingRoom) throws WxErrorException { + this.wxCpService.post(this.wxCpService.getWxCpConfigStorage().getApiUrl(MEETINGROOM_EDIT), meetingRoom); + } + + @Override + public void deleteMeetingRoom(Integer meetingRoomId) throws WxErrorException { + this.wxCpService.post(this.wxCpService.getWxCpConfigStorage().getApiUrl(MEETINGROOM_DEL), + GsonHelper.buildJsonObject("meetingroom_id", meetingRoomId)); + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/meetingroom/WxCpOaMeetingRoom.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/meetingroom/WxCpOaMeetingRoom.java new file mode 100644 index 0000000000..6333a4eefa --- /dev/null +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/meetingroom/WxCpOaMeetingRoom.java @@ -0,0 +1,94 @@ +package me.chanjar.weixin.cp.bean.oa.meetingroom; + + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import me.chanjar.weixin.common.bean.ToJson; +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * @author fcat + * @version 1.0 + * Create by 2022/8/12 22:46 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class WxCpOaMeetingRoom implements Serializable, ToJson { + private static final long serialVersionUID = 2825289798463742532L; + /** + * 会议室Id + */ + @SerializedName("meetingroom_id") + private Integer meetingroomId; + /** + * 会议室名称,最多30个字符 + */ + @SerializedName("name") + private String name; + /** + * 会议室所能容纳的人数 + */ + @SerializedName("capacity") + private Integer capacity; + /** + * 会议室所在城市 + */ + @SerializedName("city") + private String city; + /** + * 会议室所在楼宇 + */ + @SerializedName("building") + private String building; + /** + * 会议室所在楼层 + */ + @SerializedName("floor") + private String floor; + /** + * 会议室支持的设备列表,参数详细1电视2电话3投影4白板5视频 + */ + @SerializedName("equipment") + private List equipment; + /** + * 会议室所在建筑经纬度 + */ + @SerializedName("coordinate") + private Coordinate coordinate; + /** + * 会议室是否需要预定 + */ + @SerializedName("need_approval") + private Integer needApproval; + + @Override + public String toJson() { + return WxCpGsonBuilder.create().toJson(this); + } + + @Data + @AllArgsConstructor + public static class Coordinate implements Serializable { + private static final long serialVersionUID = 6626968559923978694L; + /** + * 纬度 + */ + @SerializedName("latitude") + private String latitude; + /** + * 经度 + */ + @SerializedName("longitude") + private String longitude; + } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java index c8ee12c1b7..fc5868df6c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/constant/WxCpApiPathConsts.java @@ -151,6 +151,15 @@ interface Oa { String SCHEDULE_DEL = "/cgi-bin/oa/schedule/del"; String SCHEDULE_LIST = "/cgi-bin/oa/schedule/get_by_calendar"; + /** + * 会议 + * https://developer.work.weixin.qq.com/document/path/93624 + */ + String MEETINGROOM_ADD = "/cgi-bin/oa/meetingroom/add"; + String MEETINGROOM_LIST = "/cgi-bin/oa/meetingroom/list"; + String MEETINGROOM_EDIT = "/cgi-bin/oa/meetingroom/edit"; + String MEETINGROOM_DEL = "/cgi-bin/oa/meetingroom/del"; + /** * 微盘 * https://developer.work.weixin.qq.com/document/path/93654 diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java new file mode 100644 index 0000000000..c97974ab66 --- /dev/null +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java @@ -0,0 +1,71 @@ +package me.chanjar.weixin.cp.api.impl; + +import com.google.inject.Inject; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.cp.api.ApiTestModule; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.bean.oa.meetingroom.WxCpOaMeetingRoom; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.List; + +import static org.assertj.core.api.Assertions.assertThat; + +/** + * 单元测试. + * + * @author Binary Wang + * @date 2020-09-20 + */ + +@Test +@Guice(modules = ApiTestModule.class) +public class WxCpOaMeetingRoomServiceImplTest { + @Inject + protected WxCpService wxService; + + @Test + public void testAdd() throws WxErrorException { + this.wxService.getOaMeetingRoomService().addMeetingRoom(WxCpOaMeetingRoom.builder() + .building("腾讯大厦") + .capacity(10) + .city("深圳") + .name("18F-会议室") + .floor("18F") + .equipment(Arrays.asList(1, 2)) +// .coordinate() + .build()); + + } + + @Test + public void testUpdate() throws WxErrorException { + this.wxService.getOaMeetingRoomService().editMeetingRoom(WxCpOaMeetingRoom.builder() + .building("腾讯大厦") + .capacity(10) + .city("深圳") + .name("16F-会议室") + .floor("16F") + .equipment(Arrays.asList(1, 2, 3)) + .meetingroomId(1) + .build()); + } + + @Test + public void testGet() throws WxErrorException { + final List meetingRooms = this.wxService.getOaMeetingRoomService().listMeetingRoom(WxCpOaMeetingRoom.builder() + .building("腾讯大厦") + .city("深圳") + .equipment(Arrays.asList(1, 2)) + .build()); + assertThat(meetingRooms).isNotEmpty(); + } + + @Test + public void testDelete() throws WxErrorException { + Integer calId = 1; + this.wxService.getOaMeetingRoomService().deleteMeetingRoom(calId); + } +} From a126c8e6d3f19313e1d0b158f97b5fd4871a32fe Mon Sep 17 00:00:00 2001 From: gap1994 <396912223@qq.com> Date: Tue, 16 Aug 2022 19:49:21 +0800 Subject: [PATCH 323/622] =?UTF-8?q?:art:=20=E6=B7=BB=E5=8A=A0is=5Fsnapshot?= =?UTF-8?q?user=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java index e647560026..2880d59322 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java @@ -53,12 +53,16 @@ public class WxOAuth2UserInfo implements Serializable { */ @SerializedName("unionid") private String unionId; - /** * privilege 用户特权信息,json数组,如微信沃卡用户为(chinaunicom) */ @SerializedName("privilege") private String[] privileges; + /** + * is_snapshotuser 是否为快照页模式虚拟账号,值为0时是普通用户,1时是虚拟帐号 + */ + @SerializedName("is_snapshotuser") + private Integer snapshotUser; public static WxOAuth2UserInfo fromJson(String json) { return WxGsonBuilder.create().fromJson(json, WxOAuth2UserInfo.class); From 452dd58af9bb7b0d0f17ae474883c948ffc8e917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=99=8E?= <291300617@qq.com> Date: Thu, 18 Aug 2022 15:37:17 +0000 Subject: [PATCH 324/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8DH5=E7=BA=AF?= =?UTF-8?q?=E7=AD=BE=E7=BA=A6=E7=AD=BE=E5=90=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java index 7555425a81..7a2c0f4505 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java @@ -48,6 +48,8 @@ public String maSign(WxMaEntrustRequest wxMaEntrustRequest) throws WxPayExceptio @Override public WxH5EntrustResult h5Sign(WxH5EntrustRequest wxH5EntrustRequest) throws WxPayException { wxH5EntrustRequest.checkAndSign(payService.getConfig()); + // 微信最新接口signType不能参与签名,否则报错:签约参数签名校验错误 + wxH5EntrustRequest.setSignType(null); String sign = SignUtils.createSign(wxH5EntrustRequest, WxPayConstants.SignType.HMAC_SHA256, payService.getConfig().getMchKey(), null); /** From c78a1f5132190f9d374c172178224c9337b0984c Mon Sep 17 00:00:00 2001 From: liming1019 Date: Fri, 19 Aug 2022 18:21:40 +0800 Subject: [PATCH 325/622] =?UTF-8?q?:new:=20#2784=E3=80=90=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E5=B9=B3=E5=8F=B0=E3=80=91=E5=A2=9E=E5=8A=A0=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E4=BB=A3=E4=BA=91=E5=BC=80=E5=8F=91=E4=B9=8B=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E7=AE=A1=E7=90=86=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaShopOrderService.java | 2 +- .../api/impl/WxMaShopOrderServiceImpl.java | 2 +- .../open/api/WxOpenComponentService.java | 65 +++++++++++++++++-- .../api/impl/WxOpenComponentServiceImpl.java | 38 +++++++++++ .../bean/tcb/ShareCloudBaseEnvRequest.java | 32 +++++++++ .../bean/tcb/ShareCloudBaseEnvResponse.java | 28 ++++++++ .../GetShareCloudBaseEnvResponse.java | 35 ++++++++++ .../tcbComponent/GetTcbEnvListResponse.java | 38 +++++++++++ .../impl/WxOpenComponentServiceImplTest.java | 36 ++++++++++ 9 files changed, 267 insertions(+), 9 deletions(-) create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvRequest.java create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvResponse.java create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetShareCloudBaseEnvResponse.java create mode 100644 weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetTcbEnvListResponse.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java index 2cfce36f32..abcbe25ea7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopOrderService.java @@ -19,7 +19,7 @@ public interface WxMaShopOrderService { WxMaShopBaseResponse orderPay(WxMaShopOrderPayRequest request) throws WxErrorException; - WxMaShopGetOrderResponse getOrder(Integer orderId, String outOrderId, String openid) + WxMaShopGetOrderResponse getOrder(Long orderId, String outOrderId, String openid) throws WxErrorException; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java index 33e733021a..409f4fa729 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopOrderServiceImpl.java @@ -56,7 +56,7 @@ public WxMaShopBaseResponse orderPay(WxMaShopOrderPayRequest request) throws WxE } @Override - public WxMaShopGetOrderResponse getOrder(Integer orderId, String outOrderId, String openid) throws WxErrorException { + public WxMaShopGetOrderResponse getOrder(Long orderId, String outOrderId, String openid) throws WxErrorException { return this.post(ORDER_GET, GsonHelper.buildJsonObject("order_id", orderId, "out_order_id", outOrderId, "openid", openid), WxMaShopGetOrderResponse.class); } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java index 314e63f67c..6c31c49210 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java @@ -15,6 +15,10 @@ import me.chanjar.weixin.open.bean.minishop.goods.*; import me.chanjar.weixin.open.bean.minishop.limitdiscount.LimitDiscountGoods; import me.chanjar.weixin.open.bean.result.*; +import me.chanjar.weixin.open.bean.tcb.ShareCloudBaseEnvRequest; +import me.chanjar.weixin.open.bean.tcb.ShareCloudBaseEnvResponse; +import me.chanjar.weixin.open.bean.tcbComponent.GetShareCloudBaseEnvResponse; +import me.chanjar.weixin.open.bean.tcbComponent.GetTcbEnvListResponse; import org.jetbrains.annotations.Nullable; import java.io.File; @@ -130,9 +134,9 @@ public interface WxOpenComponentService { */ String FAST_REGISTER_PERSONAL_WEAPP_SEARCH_URL = "https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=query"; - /** - * 快速创建试用小程序接口. - */ + /** + * 快速创建试用小程序接口. + */ String FAST_REGISTER_BETA_WEAPP_URL = "https://api.weixin.qq.com/wxa/component/fastregisterbetaweapp"; /** @@ -184,6 +188,13 @@ public interface WxOpenComponentService { String MINISHOP_GET_DELIVERY_COMPANY_URL = "https://api.weixin.qq.com/product/delivery/get_company_list"; + String BATCH_GET_ENVID_URL = "https://api.weixin.qq.com/componenttcb/batchgetenvid"; + + String DESCRIBE_ENVS_URL = "https://api.weixin.qq.com/componenttcb/describeenvs"; + + String MODIFY_ENV_URL = "https://api.weixin.qq.com/tcb/modifyenv"; + + String BATCH_SHARE_ENV = "https://api.weixin.qq.com/componenttcb/batchshareenv"; /** * Gets wx mp service by appid. @@ -600,9 +611,9 @@ public interface WxOpenComponentService { * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html * 快速创建个人小程序 * - * @param idname 个人用户名字 - * @param wxuser 个人用户微信号 - * @param componentPhone 第三方联系电话 + * @param idname 个人用户名字 + * @param wxuser 个人用户微信号 + * @param componentPhone 第三方联系电话 * @return the wx open result * @throws WxErrorException */ @@ -622,7 +633,7 @@ public interface WxOpenComponentService { * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html * 注册试用小程序 * - * @param name 小程序名称 + * @param name 小程序名称 * @param openid 微信用户的openid(不是微信号) * @return the wx open result * @throws WxErrorException @@ -1020,4 +1031,44 @@ public interface WxOpenComponentService { * @return */ WxOpenResult updateLimitDiscountStatus(String appId, Long taskId, Integer status) throws WxErrorException; + + /** + * 查询环境共享信息 + * https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/getShareCloudbaseEnv.html + * + * @param appids 要查询的appid + * @return + */ + GetShareCloudBaseEnvResponse getShareCloudBaseEnv(List appids) throws WxErrorException; + + + /** + * 获取环境信息 + * https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/getTcbEnvList.html + * + * @return + * @throws WxErrorException + */ + GetTcbEnvListResponse getTcbEnvList() throws WxErrorException; + + /** + * 转换云环境 + * https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/changeTcbEnv.html + * + * @param env 环境id + * @return + * @throws WxErrorException + */ + WxOpenResult changeTcbEnv(String env) throws WxErrorException; + + + /** + * 环境共享 + * https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/shareCloudbaseEnv.html + * + * @param request + * @return + * @throws WxErrorException + */ + ShareCloudBaseEnvResponse shareCloudBaseEnv(ShareCloudBaseEnvRequest request) throws WxErrorException; } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java index 2537db9f3b..9589a9843e 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImpl.java @@ -1,6 +1,7 @@ package me.chanjar.weixin.open.api.impl; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; +import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.reflect.TypeToken; @@ -28,6 +29,10 @@ import me.chanjar.weixin.open.bean.minishop.limitdiscount.LimitDiscountGoods; import me.chanjar.weixin.open.bean.minishop.limitdiscount.LimitDiscountSku; import me.chanjar.weixin.open.bean.result.*; +import me.chanjar.weixin.open.bean.tcb.ShareCloudBaseEnvRequest; +import me.chanjar.weixin.open.bean.tcb.ShareCloudBaseEnvResponse; +import me.chanjar.weixin.open.bean.tcbComponent.GetShareCloudBaseEnvResponse; +import me.chanjar.weixin.open.bean.tcbComponent.GetTcbEnvListResponse; import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder; import org.apache.commons.lang3.StringUtils; import org.jetbrains.annotations.Nullable; @@ -1222,4 +1227,37 @@ public WxOpenResult updateLimitDiscountStatus(String appId, Long taskId, Integer return WxOpenGsonBuilder.create().fromJson(response, WxOpenResult.class); } + + @Override + public GetShareCloudBaseEnvResponse getShareCloudBaseEnv(List appids) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + JsonArray jsonArray = new JsonArray(); + for(String appId : appids) { + jsonArray.add(appId); + } + jsonObject.add("appids", jsonArray); + String response = post(BATCH_GET_ENVID_URL, jsonObject.toString()); + return WxOpenGsonBuilder.create().fromJson(response, GetShareCloudBaseEnvResponse.class); + } + + @Override + public GetTcbEnvListResponse getTcbEnvList() throws WxErrorException { + String response = post(DESCRIBE_ENVS_URL, new JsonObject().toString()); + return WxOpenGsonBuilder.create().fromJson(response, GetTcbEnvListResponse.class); + } + + @Override + public WxOpenResult changeTcbEnv(String env) throws WxErrorException { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("env", env); + String response = post(MODIFY_ENV_URL, jsonObject.toString()); + return WxOpenGsonBuilder.create().fromJson(response, WxOpenResult.class); + } + + @Override + public ShareCloudBaseEnvResponse shareCloudBaseEnv(ShareCloudBaseEnvRequest request) throws WxErrorException { + Gson gson = new Gson(); + String response = post(BATCH_SHARE_ENV, gson.toJson(request)); + return WxOpenGsonBuilder.create().fromJson(response, ShareCloudBaseEnvResponse.class); + } } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvRequest.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvRequest.java new file mode 100644 index 0000000000..dd64f15ccc --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvRequest.java @@ -0,0 +1,32 @@ +package me.chanjar.weixin.open.bean.tcb; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class ShareCloudBaseEnvRequest implements Serializable { + private static final long serialVersionUID = 410566969624593042L; + + @SerializedName("data") + private List data; + + @Data + @Builder + @AllArgsConstructor + @NoArgsConstructor + public static class DataDTO implements Serializable { + @SerializedName("env") + private String env; + @SerializedName("appids") + private List appids; + } +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvResponse.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvResponse.java new file mode 100644 index 0000000000..ff40dd725e --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcb/ShareCloudBaseEnvResponse.java @@ -0,0 +1,28 @@ +package me.chanjar.weixin.open.bean.tcb; + +import com.google.gson.annotations.SerializedName; +import lombok.Builder; +import lombok.Data; +import me.chanjar.weixin.open.bean.result.WxOpenResult; + +import java.io.Serializable; +import java.util.List; + +@Data +@Builder +public class ShareCloudBaseEnvResponse extends WxOpenResult implements Serializable { + private static final long serialVersionUID = 316444074975118997L; + + @SerializedName("err_list") + private List errList; + + @Data + public static class ErrListDTO implements Serializable { + @SerializedName("env") + private String env; + @SerializedName("appid") + private String appid; + @SerializedName("errmsg") + private String errmsg; + } +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetShareCloudBaseEnvResponse.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetShareCloudBaseEnvResponse.java new file mode 100644 index 0000000000..d498e30739 --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetShareCloudBaseEnvResponse.java @@ -0,0 +1,35 @@ +package me.chanjar.weixin.open.bean.tcbComponent; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.open.bean.result.WxOpenResult; + +import java.io.Serializable; +import java.util.List; + +@Data +public class GetShareCloudBaseEnvResponse extends WxOpenResult implements Serializable { + private static final long serialVersionUID = -6267755285547585403L; + + @SerializedName("relation_data") + private List relationData; + + @SerializedName("err_list") + private List errList; + + @Data + public static class RelationDataDTO implements Serializable { + @SerializedName("appid") + private String appid; + @SerializedName("env_list") + private List envList; + } + + @Data + public static class ErrListDTO implements Serializable { + @SerializedName("appid") + private String appid; + @SerializedName("errmsg") + private String errmsg; + } +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetTcbEnvListResponse.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetTcbEnvListResponse.java new file mode 100644 index 0000000000..6551b4d3db --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/tcbComponent/GetTcbEnvListResponse.java @@ -0,0 +1,38 @@ +package me.chanjar.weixin.open.bean.tcbComponent; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.open.bean.result.WxOpenResult; + +import java.io.Serializable; +import java.util.List; + +@Data +public class GetTcbEnvListResponse extends WxOpenResult implements Serializable { + private static final long serialVersionUID = -5896318347861752798L; + + @SerializedName("info_list") + private List infoList; + + @Data + public static class InfoListDTO implements Serializable { + @SerializedName("env") + private String env; + @SerializedName("alias") + private String alias; + @SerializedName("create_time") + private String createTime; + @SerializedName("update_time") + private String updateTime; + @SerializedName("status") + private String status; + @SerializedName("package_id") + private String packageId; + @SerializedName("package_name") + private String packageName; + @SerializedName("dbinstance_id") + private String dbinstanceId; + @SerializedName("bucket_id") + private String bucketId; + } +} diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java index c9fefec022..aa73448156 100644 --- a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java @@ -3,10 +3,18 @@ import com.google.inject.Inject; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.open.api.WxOpenComponentService; +import me.chanjar.weixin.open.bean.result.WxOpenResult; +import me.chanjar.weixin.open.bean.tcb.ShareCloudBaseEnvRequest; +import me.chanjar.weixin.open.bean.tcb.ShareCloudBaseEnvResponse; +import me.chanjar.weixin.open.bean.tcbComponent.GetShareCloudBaseEnvResponse; +import me.chanjar.weixin.open.bean.tcbComponent.GetTcbEnvListResponse; import me.chanjar.weixin.open.test.ApiTestModule; +import org.testng.Assert; import org.testng.annotations.Guice; import org.testng.annotations.Test; +import java.util.Arrays; + /** * 单元测试类. * @@ -171,4 +179,32 @@ public void testFastRegisterWeappSearch() { public void testStartPushTicket() throws WxErrorException { wxOpenComponentService.startPushTicket(); } + + @Test + public void testGetShareCloudBaseEnv() throws WxErrorException { + GetShareCloudBaseEnvResponse response = wxOpenComponentService.getShareCloudBaseEnv(Arrays.asList("wxad2ee6fa2df2c46d")); + Assert.assertNotNull(response); + } + + @Test + public void testGetTcbEnvListv() throws WxErrorException { + GetTcbEnvListResponse response = wxOpenComponentService.getTcbEnvList(); + Assert.assertNotNull(response); + } + + @Test + public void testChangeTcbEnv() throws WxErrorException { + WxOpenResult response = wxOpenComponentService.changeTcbEnv("test"); + Assert.assertNotNull(response); + } + + @Test + public void testShareCloudBaseEnv() throws WxErrorException { + ShareCloudBaseEnvRequest request = ShareCloudBaseEnvRequest.builder() + .data(Arrays.asList(ShareCloudBaseEnvRequest.DataDTO.builder() + .env("test-env-6gni9ity244a6ea3").appids(Arrays.asList("wx5fe6bb43205e9e07")).build())) + .build(); + ShareCloudBaseEnvResponse response = wxOpenComponentService.shareCloudBaseEnv(request); + Assert.assertNotNull(response); + } } From 0f9e75acb29954f7abbba750807dd566c76992d2 Mon Sep 17 00:00:00 2001 From: linlinjava Date: Sun, 21 Aug 2022 14:56:49 +0800 Subject: [PATCH 326/622] =?UTF-8?q?:art:=20#2785=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E8=8E=B7=E5=8F=96=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E9=97=B4=E5=88=86=E4=BA=AB=E4=BA=8C=E7=BB=B4=E7=A0=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=AF=E6=8C=81=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E8=B7=AF=E5=BE=84=E5=92=8C=E6=B5=B7=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaLiveService.java | 2 +- .../miniapp/api/impl/WxMaLiveServiceImpl.java | 4 +-- .../miniapp/bean/live/WxMaLiveSharedCode.java | 25 +++++++++++++++++++ .../api/impl/WxMaLiveServiceImplTest.java | 3 ++- 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java index 2d7751948d..1473b54a17 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveService.java @@ -84,7 +84,7 @@ public interface WxMaLiveService { * @return . * @throws WxErrorException . */ - String getSharedCode(Integer roomId, String params) throws WxErrorException; + WxMaLiveSharedCode getSharedCode(Integer roomId, String params) throws WxErrorException; /** * 获取直播房间列表.(分页) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java index 56c744f6d4..68c1c092b9 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java @@ -87,7 +87,7 @@ public String getPushUrl(Integer roomId) throws WxErrorException { } @Override - public String getSharedCode(Integer roomId, String params) throws WxErrorException { + public WxMaLiveSharedCode getSharedCode(Integer roomId, String params) throws WxErrorException { Map map = new HashMap<>(2); map.put(ROOM_ID, roomId); if (null != params) { @@ -98,7 +98,7 @@ public String getSharedCode(Integer roomId, String params) throws WxErrorExcepti if (jsonObject.get(ERR_CODE).getAsInt() != 0) { throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp)); } - return jsonObject.get("cdnUrl").getAsString(); + return WxMaGsonBuilder.create().fromJson(responseContent, WxMaLiveSharedCode.class); } @Override diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java new file mode 100644 index 0000000000..f27dba87b0 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java @@ -0,0 +1,25 @@ +package cn.binarywang.wx.miniapp.bean.live; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; + +public class WxMaLiveSharedCode implements Serializable { + private static final long serialVersionUID = 8525117884393611947L; + /** + * 分享二维码 + */ + @SerializedName("cdnUrl") + private String cdnUrl; + /** + * 分享路径 + */ + @SerializedName("pagePath") + private String pagePath; + /** + * 分享海报 + */ + @SerializedName("posterUrl") + private String posterUrl; +} \ No newline at end of file diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImplTest.java index b9a5b94121..2f497935c7 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImplTest.java @@ -4,6 +4,7 @@ import cn.binarywang.wx.miniapp.bean.live.WxMaCreateRoomResult; import cn.binarywang.wx.miniapp.bean.live.WxMaLiveResult; import cn.binarywang.wx.miniapp.bean.live.WxMaLiveRoomInfo; +import cn.binarywang.wx.miniapp.bean.live.WxMaLiveSharedCode; import cn.binarywang.wx.miniapp.test.ApiTestModule; import com.google.inject.Inject; import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; @@ -95,7 +96,7 @@ public void getPushUrl() throws Exception { @Test public void getSharedCode() throws Exception { - String result = this.wxService.getLiveService().getSharedCode(39, null); + WxMaLiveSharedCode result = this.wxService.getLiveService().getSharedCode(39, null); System.out.println(result); } From 9a32876bf3254794452a1f15c2bd4ddbf63b530e Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 21 Aug 2022 15:20:28 +0800 Subject: [PATCH 327/622] =?UTF-8?q?:art:=20=E6=8A=95=E8=AF=89=E5=8D=95?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E7=B1=BB=E5=A2=9E=E5=8A=A0=E5=87=A0=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/complaint/ComplaintDetailResult.java | 43 +++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java index f62c9c1ddb..a76c924057 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java @@ -10,14 +10,13 @@ /** * 微信消费者投诉2.0 - * 查询投诉单列表返回的实体 + * 查询投诉单列表接口 和 查询投诉单详情接口返回的实体 * * @author jmdhappy * @date 2022-3-19 */ @Data public class ComplaintDetailResult implements Serializable { - private static final long serialVersionUID = -6201692411535927503L; /** @@ -61,7 +60,7 @@ public class ComplaintDetailResult implements Serializable { *
*/ @SerializedName("complainted_mchid") - private String complaintedMchid; + private String complainedMchid; /** *
@@ -233,4 +232,42 @@ public static class ComplaintOrder implements Serializable {
    */
   @SerializedName("user_complaint_times")
   private Integer userComplaintTimes;
+
+  /**
+   * 
+   * 字段名:问题类型
+   * 是否必填:否
+   * 描述:问题类型为申请退款的单据是需要最高优先处理的单据
+   * REFUND:申请退款
+   * SERVICE_NOT_WORK:服务权益未生效
+   * OTHERS:其他类型
+   * 示例值:REFUND
+   * 
+ */ + @SerializedName("problem_type") + private String problemType; + + /** + *
+   * 字段名:用户投诉次数
+   * 是否必填:否
+   * 描述:仅当问题类型为申请退款时, 有值, (单位:分)
+   * 示例值:10
+   * 
+ */ + @SerializedName("apply_refund_amount") + private Integer applyRefundAmount; + + /** + *
+   * 字段名:用户投诉次数
+   * 是否必填:否
+   * 描述:用户标签列表
+   * TRUSTED:可信,此类用户满足极速退款条件
+   * OTHERS:其它,此类用户不满足极速退款条件
+   * 示例值:[TRUSTED]
+   * 
+ */ + @SerializedName("user_tag_list") + private String[] userTagList; } From bf68104ee0b99636abe77d3a7e09913a13fbc9b0 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 21 Aug 2022 23:14:38 +0800 Subject: [PATCH 328/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.4.0?= =?UTF-8?q?=20=E6=AD=A3=E5=BC=8F=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index de675a194c..20a889005d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.3.9.B + 4.4.0 pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 1c059ea55a..652e3af47b 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -4,7 +4,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 7c697330be..7a107b94e4 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.9.B + 4.4.0 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index ad59972f02..94bc670d2a 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.9.B + 4.4.0 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index d8f75c20aa..dd0da81720 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.9.B + 4.4.0 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index e812a154f2..433f256112 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.9.B + 4.4.0 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index c1614e5b4d..6b51b3a7e6 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.9.B + 4.4.0 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index c7a46dda4a..b199ecc534 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.3.9.B + 4.4.0 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 19d8a0a557..8e7fa989b7 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-graal diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 87ed70258a..1a4a2a5adf 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 166fc8e8ac..7137a49ff4 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index edb3ce22cb..426201ed7a 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 14b47082fe..c03cb4e1ee 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 687ba97027..ed9c62e81e 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 19579aeb56..c65aeb95db 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 45395dfaff..c27a02b5e9 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.3.9.B + 4.4.0 weixin-java-qidian From e9c351a083b9b301aba9a3f1391dc1e4fabcd106 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 21 Aug 2022 23:38:08 +0800 Subject: [PATCH 329/622] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b55ee50ef5..e7b4b760c7 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ ### 重要信息 1. 项目合作洽谈请联系微信`binary0000`(在微信里自行搜索并添加好友,请注明来意,如有关于SDK问题需讨论请参考下文入群讨论,不要加此微信)。 -2. **2022-4-10 发布 [【4.3.0正式版】](https://mp.weixin.qq.com/s/yCsa7nD4_DLjW1RDcrEk6g)**! +2. **2022-8-21 发布 [【4.4.0正式版】](https://mp.weixin.qq.com/s/yCsa7nD4_DLjW1RDcrEk6g)**! 3. 贡献源码可以参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007) 4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码; 5. 微信开发新手请务必阅读【开发文档】([Gitee Wiki](https://gitee.com/binary/weixin-java-tools/wikis/Home) 或者 [Github Wiki](https://github.com/Wechat-Group/WxJava/wiki))的常见问题部分,可以少走很多弯路,节省不少时间。 @@ -80,7 +80,7 @@ com.github.binarywang (不同模块参考下文) - 4.3.0 + 4.4.0 ``` From c3f4943acda01608e71829e14e1a4f22ee14b229 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Mon, 22 Aug 2022 09:52:40 +0800 Subject: [PATCH 330/622] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e7b4b760c7..f29d7391f1 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ ### 重要信息 1. 项目合作洽谈请联系微信`binary0000`(在微信里自行搜索并添加好友,请注明来意,如有关于SDK问题需讨论请参考下文入群讨论,不要加此微信)。 -2. **2022-8-21 发布 [【4.4.0正式版】](https://mp.weixin.qq.com/s/yCsa7nD4_DLjW1RDcrEk6g)**! +2. **2022-8-21 发布 [【4.4.0正式版】](https://mp.weixin.qq.com/s/kHg-QHMK6ymbQwTdKFF2lQ)**! 3. 贡献源码可以参考视频:[【贡献源码全过程(上集)】](https://mp.weixin.qq.com/s/3xUZSATWwHR_gZZm207h7Q)、[【贡献源码全过程(下集)】](https://mp.weixin.qq.com/s/nyzJwVVoYSJ4hSbwyvTx9A) ,友情提供:[程序员小山与Bug](https://space.bilibili.com/473631007) 4. 新手重要提示:本项目仅是一个SDK开发工具包,未提供Web实现,建议使用 `maven` 或 `gradle` 引用本项目即可使用本SDK提供的各种功能,详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码; 5. 微信开发新手请务必阅读【开发文档】([Gitee Wiki](https://gitee.com/binary/weixin-java-tools/wikis/Home) 或者 [Github Wiki](https://github.com/Wechat-Group/WxJava/wiki))的常见问题部分,可以少走很多弯路,节省不少时间。 From 066c77c752b5104d6a2baf4a4c372ad2d2c6e3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E9=AA=8F=E5=8A=BC?= Date: Mon, 22 Aug 2022 17:23:55 +0800 Subject: [PATCH 331/622] =?UTF-8?q?@laijj@=E5=9C=A8ProfitSharingResult?= =?UTF-8?q?=E6=89=A9=E5=85=85reecvice=E5=88=97=E8=A1=A8=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=EF=BC=8C=E6=96=B9=E4=BE=BF=E4=BD=BF=E7=94=A8=E8=80=85=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=B8=8D=E5=90=8C=E5=88=86=E8=B4=A6=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E6=96=B9=E7=9A=84=E6=95=B0=E6=8D=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profitsharing/ProfitSharingResult.java | 162 +++++++++++++++++- 1 file changed, 161 insertions(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java index ffa6d5a2af..166a3348c1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingResult.java @@ -1,13 +1,17 @@ package com.github.binarywang.wxpay.bean.profitsharing; import com.github.binarywang.wxpay.bean.result.BaseWxPayResult; +import com.google.gson.annotations.SerializedName; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import org.w3c.dom.Document; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import java.io.Serializable; +import java.util.List; /** * @author Wang GuangXin 2019/10/22 10:06 @@ -20,6 +24,11 @@ public class ProfitSharingResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = 7435709584788869456L; + /** + * GSON工具 + */ + private static final Gson GSON = new GsonBuilder().create(); + /** * 微信订单号. */ @@ -43,11 +52,32 @@ public class ProfitSharingResult extends BaseWxPayResult implements Serializable private String status; /** - * 分账接收方列表. + * 分账接收方列表 */ @XStreamAlias("receivers") private String receivers; + /** + * 分账接收方列表 + */ + private List receiverList; + + /** + * 获取分账接收方列表方法 + * + * @return + */ + public List getReceiverList() { + if (receiverList == null && receivers != null && receivers.length() > 0) { + List tempList = GSON.fromJson(receivers, List.class); + for (String str : tempList) { + Receiver receiver = GSON.fromJson(str, Receiver.class); + receiverList.add(receiver); + } + } + return receiverList; + } + @Override protected void loadXml(Document d) { transactionId = readXmlString(d, "transaction_id"); @@ -56,4 +86,134 @@ protected void loadXml(Document d) { status = readXmlString(d, "status"); receivers = readXmlString(d, "receivers"); } + + /** + * 分账接收方列表对象 + */ + @Data + public static class Receiver implements Serializable { + private static final long serialVersionUID = 4240983048700956806L; + + /** + *
+     * 字段名:分账接收方类型
+     * 是否必填:是
+     * 描述:
+     * 枚举值:
+     * MERCHANT_ID:商户号(mch_id或者sub_mch_id)
+     * PERSONAL_OPENID:个人openid(由服务商的APPID转换得到)
+     * PERSONAL_SUB_OPENID:个人sub_openid(由品牌主的APPID转换得到)
+     * 
+ */ + @SerializedName("type") + private String type; + + /** + *
+     * 字段名:分账接收方帐号
+     * 是否必填:是
+     * 描述:
+     * 1、分账接收方类型为MERCHANT_ID时,分账接收方账号为商户号
+     * 2、分账接收方类型为PERSONAL_OPENID时,分账接收方账号为个人openid
+     * 
+ */ + @SerializedName("account") + private String account; + + /** + *
+     * 字段名:分账金额
+     * 是否必填:是
+     * 描述: 分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额
+     * 
+ */ + @SerializedName("amount") + private Long amount; + + /** + *
+     * 字段名:分账接收商户号
+     * 是否必填:是
+     * 描述: 仅分账接收方类型为MERCHANT_ID时,填写微信支付分配的商户号
+     * 
+ */ + @SerializedName(("receiver_mchid")) + private String receiverMchid; + + /** + *
+     * 字段名:分账描述
+     * 是否必填:是
+     * 描述: 分账的原因描述,分账账单中需要体现
+     * 
+ */ + @SerializedName("description") + private String description; + + /** + *
+     * 字段名:分账结果
+     * 是否必填:是
+     * 描述:
+     * 1、PENDING:待分账
+     * 2、SUCCESS:分账成功
+     * 3、CLOSED:已关闭
+     * 
+ */ + @SerializedName("result") + private String result; + + /** + *
+     * 字段名:分账失败原因
+     * 是否必填:是
+     * 描述:包含以下枚举值:
+     * 1、ACCOUNT_ABNORMAL : 分账接收账户异常
+     * 2、NO_RELATION : 分账关系已解除
+     * 3、RECEIVER_HIGH_RISK : 高风险接收方
+     * 4、RECEIVER_REAL_NAME_NOT_VERIFIED : 接收方未实名
+     * 5、NO_AUTH : 分账权限已解除
+     * 
+ */ + @SerializedName("fail_reason") + private String failReason; + + /** + *
+     * 字段名:分账创建时间
+     * 是否必填:是
+     * 描述:遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,
+     * YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,
+     * HH:mm:ss.sss表示时分秒毫秒,
+     * TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
+     * 例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。
+     * 
+ */ + @SerializedName("create_time") + private String createTime; + /** + *
+     * 字段名:分账完成时间
+     * 是否必填:是
+     * 描述:遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,
+     * YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,
+     * HH:mm:ss.sss表示时分秒毫秒,
+     * TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
+     * 例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。
+     * 
+ */ + @SerializedName("finish_time") + private String finishTime; + + /** + *
+     * 字段名:微信分账明细单号
+     * 是否必填:是
+     * 每笔分账业务执行的明细单号,可与资金账单对账使用,
+     * 例如:36011111111111111111111
+     * 
+ */ + @SerializedName("detail_id") + private String detailId; + } } From 36602d58a53ac8e40b2338a939864fa695465339 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 23 Aug 2022 00:37:10 +0800 Subject: [PATCH 332/622] :art: fix javadoc by removing @date --- .../cp/config/WxCpAutoConfiguration.java | 2 +- .../config/WxCpServiceAutoConfiguration.java | 2 +- .../config/WxCpStorageAutoConfiguration.java | 2 +- .../wxjava/cp/properties/WxCpProperties.java | 2 +- ...bstractWxCpConfigStorageConfiguration.java | 2 +- ...xCpInMemoryConfigStorageConfiguration.java | 2 +- .../miniapp/config/WxMaAutoConfiguration.java | 2 +- .../wxjava/miniapp/enums/HttpClientType.java | 2 +- .../wxjava/miniapp/enums/StorageType.java | 2 +- .../miniapp/properties/RedisProperties.java | 2 +- .../miniapp/properties/WxMaProperties.java | 2 +- .../wxjava/mp/enums/HttpClientType.java | 2 +- .../starter/wxjava/mp/enums/StorageType.java | 2 +- .../wxjava/mp/properties/RedisProperties.java | 2 +- .../wxjava/qidian/enums/HttpClientType.java | 2 +- .../wxjava/qidian/enums/StorageType.java | 2 +- .../qidian/properties/RedisProperties.java | 2 +- ...sageInMemoryDuplicateCheckerSingleton.java | 2 +- .../me/chanjar/weixin/common/bean/ToJson.java | 2 +- .../weixin/common/bean/WxOAuth2UserInfo.java | 2 +- .../common/bean/ocr/WxOcrIdCardResult.java | 2 +- .../bean/subscribemsg/CategoryData.java | 2 +- .../bean/subscribemsg/PubTemplateKeyword.java | 2 +- .../bean/subscribemsg/TemplateInfo.java | 2 +- .../common/error/WxRuntimeException.java | 2 +- .../OcrDiscernApacheHttpRequestExecutor.java | 2 +- .../ocr/OcrDiscernRequestExecutor.java | 2 +- .../common/service/WxOAuth2Service.java | 2 +- .../weixin/common/service/WxOcrService.java | 2 +- .../weixin/common/service/WxService.java | 2 +- .../weixin/common/util/crypto/SHA1.java | 2 +- .../common/util/http/InputStreamData.java | 2 +- .../ApacheMediaDownloadRequestExecutor.java | 2 +- ...MediaInputStreamUploadRequestExecutor.java | 2 +- .../ApacheSimpleGetRequestExecutor.java | 2 +- .../ApacheSimplePostRequestExecutor.java | 2 +- .../JoddHttpMediaDownloadRequestExecutor.java | 2 +- ...MediaInputStreamUploadRequestExecutor.java | 2 +- .../JoddHttpMediaUploadRequestExecutor.java | 2 +- ...opMediaUploadRequestCustomizeExecutor.java | 2 +- ...ttpMinishopMediaUploadRequestExecutor.java | 2 +- .../JoddHttpSimpleGetRequestExecutor.java | 2 +- .../JoddHttpSimplePostRequestExecutor.java | 2 +- .../OkHttpMediaDownloadRequestExecutor.java | 2 +- ...MediaInputStreamUploadRequestExecutor.java | 2 +- .../OkHttpMediaUploadRequestExecutor.java | 2 +- ...opMediaUploadRequestCustomizeExecutor.java | 2 +- ...ttpMinishopMediaUploadRequestExecutor.java | 2 +- .../OkHttpSimpleGetRequestExecutor.java | 2 +- .../OkHttpSimplePostRequestExecutor.java | 2 +- .../util/xml/IntegerArrayConverter.java | 2 +- .../common/util/xml/LongArrayConverter.java | 2 +- ...InMemoryDuplicateCheckerSingletonTest.java | 2 +- .../common/bean/WxNetCheckResultTest.java | 2 +- .../common/util/json/GsonHelperTest.java | 2 +- .../main/java/com/tencent/wework/Finance.java | 2 +- .../cp/api/WxCpAgentWorkBenchService.java | 2 +- .../weixin/cp/api/WxCpExportService.java | 2 +- .../weixin/cp/api/WxCpGroupRobotService.java | 2 +- .../chanjar/weixin/cp/api/WxCpKfService.java | 2 +- .../weixin/cp/api/WxCpLivingService.java | 2 +- .../weixin/cp/api/WxCpMessageService.java | 2 +- .../weixin/cp/api/WxCpMsgAuditService.java | 2 +- .../weixin/cp/api/WxCpOaAgentService.java | 2 +- .../weixin/cp/api/WxCpOaCalendarService.java | 2 +- .../cp/api/WxCpOaMeetingRoomService.java | 2 +- .../weixin/cp/api/WxCpOaScheduleService.java | 2 +- .../chanjar/weixin/cp/api/WxCpOaService.java | 2 +- .../weixin/cp/api/WxCpOaWeDriveService.java | 2 +- .../cp/api/WxCpSchoolHealthService.java | 2 +- .../weixin/cp/api/WxCpSchoolService.java | 2 +- .../weixin/cp/api/WxCpSchoolUserService.java | 2 +- .../weixin/cp/api/WxCpTaskCardService.java | 2 +- .../impl/WxCpAgentWorkBenchServiceImpl.java | 2 +- .../cp/api/impl/WxCpExportServiceImpl.java | 2 +- .../api/impl/WxCpGroupRobotServiceImpl.java | 2 +- .../weixin/cp/api/impl/WxCpKfServiceImpl.java | 2 +- .../cp/api/impl/WxCpLivingServiceImpl.java | 2 +- .../cp/api/impl/WxCpMessageServiceImpl.java | 2 +- .../cp/api/impl/WxCpMsgAuditServiceImpl.java | 2 +- .../cp/api/impl/WxCpOaAgentServiceImpl.java | 2 +- .../api/impl/WxCpOaCalendarServiceImpl.java | 2 +- .../api/impl/WxCpOaOaScheduleServiceImpl.java | 2 +- .../weixin/cp/api/impl/WxCpOaServiceImpl.java | 2 +- .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 2 +- .../api/impl/WxCpSchoolHealthServiceImpl.java | 2 +- .../cp/api/impl/WxCpSchoolServiceImpl.java | 2 +- .../api/impl/WxCpSchoolUserServiceImpl.java | 2 +- .../cp/api/impl/WxCpTaskCardServiceImpl.java | 2 +- .../weixin/cp/bean/WxCpAgentWorkBench.java | 2 +- .../chanjar/weixin/cp/bean/WxCpBaseResp.java | 2 +- .../weixin/cp/bean/WxCpProviderToken.java | 2 +- .../cp/bean/WxCpTaskCardUpdateResult.java | 2 +- .../weixin/cp/bean/WxCpTpPreauthCode.java | 2 +- .../cp/bean/WxCpTpProlongTryResult.java | 2 +- .../chanjar/weixin/cp/bean/WxTpLoginInfo.java | 2 +- .../cp/bean/export/WxCpExportRequest.java | 2 +- .../cp/bean/export/WxCpExportResult.java | 2 +- .../cp/bean/external/WxCpAddMomentResult.java | 2 +- .../cp/bean/external/WxCpAddMomentTask.java | 2 +- .../bean/external/WxCpExternalUserIdList.java | 2 +- .../bean/external/WxCpGetMomentComments.java | 2 +- .../external/WxCpGetMomentCustomerList.java | 2 +- .../cp/bean/external/WxCpGetMomentList.java | 2 +- .../external/WxCpGetMomentSendResult.java | 2 +- .../cp/bean/external/WxCpGetMomentTask.java | 2 +- .../external/WxCpGetMomentTaskResult.java | 2 +- .../WxCpGroupWelcomeTemplateResult.java | 2 +- .../bean/external/WxCpInterceptRuleResp.java | 2 +- .../external/WxCpNewExternalUserIdList.java | 2 +- .../external/WxCpUpdateRemarkRequest.java | 2 +- .../WxCpUserExternalGroupChatInfo.java | 2 +- .../WxCpUserExternalGroupChatList.java | 2 +- .../WxCpUserExternalGroupChatStatistic.java | 2 +- ...WxCpUserExternalGroupChatTransferResp.java | 2 +- .../WxCpUserExternalUnassignList.java | 2 +- ...WxCpUserExternalUserBehaviorStatistic.java | 2 +- .../external/WxCpUserTransferCustomerReq.java | 2 +- .../WxCpUserTransferCustomerResp.java | 2 +- .../external/WxCpUserTransferResultResp.java | 2 +- .../cp/bean/external/WxCpWelcomeMsg.java | 2 +- .../external/contact/ExternalContact.java | 2 +- .../bean/external/contact/FollowedUser.java | 2 +- .../weixin/cp/bean/external/msg/File.java | 2 +- .../weixin/cp/bean/external/msg/Image.java | 2 +- .../weixin/cp/bean/external/msg/Link.java | 2 +- .../weixin/cp/bean/external/msg/Location.java | 2 +- .../cp/bean/external/msg/MiniProgram.java | 2 +- .../weixin/cp/bean/external/msg/Text.java | 2 +- .../weixin/cp/bean/external/msg/Video.java | 2 +- .../weixin/cp/bean/kf/WxCpKfAccountAdd.java | 2 +- .../cp/bean/kf/WxCpKfAccountAddResp.java | 2 +- .../weixin/cp/bean/kf/WxCpKfAccountDel.java | 2 +- .../weixin/cp/bean/kf/WxCpKfAccountLink.java | 2 +- .../cp/bean/kf/WxCpKfAccountLinkResp.java | 2 +- .../cp/bean/kf/WxCpKfAccountListResp.java | 2 +- .../weixin/cp/bean/kf/WxCpKfAccountUpd.java | 2 +- .../bean/kf/WxCpKfCustomerBatchGetResp.java | 2 +- .../kf/WxCpKfGetCorpStatisticRequest.java | 2 +- .../bean/kf/WxCpKfGetCorpStatisticResp.java | 2 +- .../weixin/cp/bean/kf/WxCpKfMsgListResp.java | 2 +- .../cp/bean/kf/WxCpKfMsgSendRequest.java | 2 +- .../weixin/cp/bean/kf/WxCpKfMsgSendResp.java | 2 +- .../cp/bean/kf/WxCpKfServiceStateResp.java | 2 +- .../bean/kf/WxCpKfServiceStateTransResp.java | 2 +- .../kf/WxCpKfServiceUpgradeConfigResp.java | 2 +- .../cp/bean/kf/WxCpKfServicerListResp.java | 2 +- .../cp/bean/kf/WxCpKfServicerOpResp.java | 2 +- .../cp/bean/kf/msg/WxCpKfBusinessCardMsg.java | 2 +- .../weixin/cp/bean/kf/msg/WxCpKfEventMsg.java | 2 +- .../weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java | 2 +- .../cp/bean/kf/msg/WxCpKfLocationMsg.java | 2 +- .../weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java | 2 +- .../cp/bean/kf/msg/WxCpKfMiniProgramMsg.java | 2 +- .../cp/bean/kf/msg/WxCpKfResourceMsg.java | 2 +- .../weixin/cp/bean/kf/msg/WxCpKfTextMsg.java | 2 +- .../cp/bean/license/WxCpTpLicenseAccount.java | 2 +- .../license/WxCpTpLicenseAccountCount.java | 2 +- .../license/WxCpTpLicenseAccountDuration.java | 2 +- .../license/WxCpTpLicenseActiveAccount.java | 2 +- .../license/WxCpTpLicenseActiveCodeInfo.java | 2 +- .../license/WxCpTpLicenseBaseAccount.java | 2 +- .../license/WxCpTpLicenseCorpAccount.java | 2 +- .../license/WxCpTpLicenseInvalidAccount.java | 2 +- .../cp/bean/license/WxCpTpLicenseOrder.java | 2 +- .../license/WxCpTpLicenseSimpleOrder.java | 2 +- .../bean/license/WxCpTpLicenseTransfer.java | 2 +- .../WxCpTpLicenseActiveInfoByUserResp.java | 2 +- .../WxCpTpLicenseBatchActiveResultResp.java | 2 +- .../WxCpTpLicenseBatchCodeInfoResp.java | 2 +- .../WxCpTpLicenseBatchTransferResp.java | 2 +- .../account/WxCpTpLicenseCodeInfoResp.java | 2 +- .../WxCpTpLicenseCorpAccountListResp.java | 2 +- .../order/WxCpTpLicenseCreateOrderResp.java | 2 +- .../order/WxCpTpLicenseNewOrderRequest.java | 2 +- .../WxCpTpLicenseOrderAccountListResp.java | 2 +- .../order/WxCpTpLicenseOrderInfoResp.java | 2 +- .../order/WxCpTpLicenseOrderListResp.java | 2 +- .../WxCpTpLicenseRenewOrderJobRequest.java | 2 +- .../order/WxCpTpLicenseRenewOrderJobResp.java | 2 +- .../order/WxCpTpLicenseRenewOrderRequest.java | 2 +- .../bean/living/WxCpLivingCreateRequest.java | 2 +- .../bean/living/WxCpLivingModifyRequest.java | 2 +- .../bean/message/WxCpGroupRobotMessage.java | 2 +- .../bean/message/WxCpLinkedCorpMessage.java | 2 +- .../WxCpLinkedCorpMessageSendResult.java | 2 +- .../message/WxCpMessageSendStatistics.java | 2 +- .../message/WxCpSchoolContactMessage.java | 2 +- .../WxCpSchoolContactMessageSendResult.java | 2 +- .../bean/message/WxCpXmlOutEventMessage.java | 2 +- .../message/WxCpXmlOutUpdateBtnMessage.java | 2 +- .../bean/messagebuilder/TaskCardBuilder.java | 2 +- .../messagebuilder/TemplateCardBuilder.java | 2 +- .../cp/bean/msgaudit/WxCpChatDatas.java | 2 +- .../bean/msgaudit/WxCpCheckAgreeRequest.java | 2 +- .../weixin/cp/bean/oa/SummaryInfo.java | 2 +- .../weixin/cp/bean/oa/WxCpCheckinData.java | 2 +- .../weixin/cp/bean/oa/WxCpCheckinOption.java | 2 +- .../weixin/cp/bean/oa/WxCpDialRecord.java | 2 +- .../cp/bean/oa/WxCpOaApplyEventRequest.java | 2 +- .../weixin/cp/bean/oa/WxCpOaSchedule.java | 2 +- .../cp/bean/oa/calendar/WxCpOaCalendar.java | 2 +- .../cp/bean/order/WxCpTpOrderDetails.java | 2 +- .../bean/order/WxCpTpOrderListGetResult.java | 2 +- .../cp/bean/outxmlbuilder/EventBuilder.java | 2 +- .../user/WxCpBatchCreateParentRequest.java | 2 +- .../user/WxCpBatchCreateStudentRequest.java | 2 +- .../user/WxCpBatchDeleteStudentRequest.java | 2 +- .../bean/school/user/WxCpBatchResultList.java | 2 +- .../user/WxCpBatchUpdateParentRequest.java | 2 +- .../user/WxCpBatchUpdateStudentRequest.java | 2 +- .../user/WxCpCreateDepartmentRequest.java | 2 +- .../school/user/WxCpCreateParentRequest.java | 2 +- .../bean/school/user/WxCpExternalContact.java | 2 +- .../school/user/WxCpListParentResult.java | 2 +- .../user/WxCpUpdateDepartmentRequest.java | 2 +- .../school/user/WxCpUpdateParentRequest.java | 2 +- .../bean/school/user/WxCpUserListResult.java | 2 +- .../cp/bean/school/user/WxCpUserResult.java | 2 +- .../cp/bean/taskcard/TaskCardButton.java | 2 +- .../cp/bean/templatecard/ActionMenuItem.java | 2 +- .../cp/bean/templatecard/CheckboxOption.java | 2 +- .../bean/templatecard/HorizontalContent.java | 2 +- .../cp/bean/templatecard/MultipleSelect.java | 2 +- .../cp/bean/templatecard/QuoteArea.java | 2 +- .../bean/templatecard/TemplateCardButton.java | 2 +- .../bean/templatecard/TemplateCardJump.java | 2 +- .../cp/bean/templatecard/VerticalContent.java | 2 +- .../cp/bean/user/WxCpDeptUserResult.java | 2 +- .../cp/bean/workbench/WorkBenchKeyData.java | 2 +- .../cp/bean/workbench/WorkBenchList.java | 2 +- .../config/impl/WxCpRedissonConfigImpl.java | 2 +- .../cp/tp/service/WxCpTpEditionService.java | 2 +- .../cp/tp/service/WxCpTpLicenseService.java | 2 +- .../weixin/cp/tp/service/WxCpTpOAService.java | 2 +- .../cp/tp/service/WxCpTpOrderService.java | 2 +- .../impl/WxCpTpEditionServiceImpl.java | 2 +- .../impl/WxCpTpLicenseServiceImpl.java | 2 +- .../tp/service/impl/WxCpTpOAServiceImpl.java | 2 +- .../service/impl/WxCpTpOrderServiceImpl.java | 2 +- .../cp/util/json/StatisticListAdapter.java | 2 +- .../cp/api/ApiTestModuleWithMockServer.java | 2 +- .../chanjar/weixin/cp/api/WxCpLivingTest.java | 2 +- .../weixin/cp/api/WxCpMsgAuditTest.java | 2 +- .../weixin/cp/api/WxCpOaAgentTest.java | 2 +- .../weixin/cp/api/WxCpSchoolHealthTest.java | 2 +- .../chanjar/weixin/cp/api/WxCpSchoolTest.java | 2 +- .../weixin/cp/api/WxCpSchoolUserTest.java | 2 +- .../api/impl/WxCpAgentWorkBenchImplTest.java | 2 +- .../impl/WxCpGroupRobotServiceImplTest.java | 2 +- .../cp/api/impl/WxCpKfServiceImplTest.java | 2 +- .../api/impl/WxCpMessageServiceImplTest.java | 2 +- .../impl/WxCpOaCalendarServiceImplTest.java | 2 +- .../WxCpOaMeetingRoomServiceImplTest.java | 2 +- .../impl/WxCpOaScheduleServiceImplTest.java | 2 +- .../api/impl/WxCpTaskCardServiceImplTest.java | 2 +- .../weixin/cp/bean/WxCpTpXmlPackageTest.java | 2 +- .../external/WxCpUpdateRemarkRequestTest.java | 2 +- .../message/WxCpLinkedCorpMessageTest.java | 2 +- .../message/WxCpSchoolContactMessageTest.java | 2 +- .../bean/oa/WxCpOaApplyEventRequestTest.java | 2 +- .../bean/oa/calendar/WxCpOaCalendarTest.java | 2 +- .../impl/BaseWxCpTpServiceImplTest.java | 2 +- .../impl/WxCpTpLicenseServiceImplTest.java | 2 +- .../cp/util/crypto/WxCpCryptUtilTest.java | 2 +- .../wx/miniapp/api/WxMaCloudService.java | 2 +- .../api/WxMaImmediateDeliveryService.java | 2 +- .../wx/miniapp/api/WxMaLiveMemberService.java | 2 +- .../wx/miniapp/api/WxMaSchemeService.java | 2 +- .../wx/miniapp/api/WxMaShopAuditService.java | 2 +- .../wx/miniapp/api/WxMaShopCouponService.java | 2 +- .../wx/miniapp/api/WxMaShopSharerService.java | 2 +- .../wx/miniapp/api/WxMaSubscribeService.java | 2 +- .../api/impl/WxMaCloudServiceImpl.java | 2 +- .../WxMaImmediateDeliveryServiceImpl.java | 2 +- .../api/impl/WxMaInternetServiceImpl.java | 2 +- .../api/impl/WxMaLiveMemberServiceImpl.java | 2 +- .../miniapp/api/impl/WxMaOcrServiceImpl.java | 2 +- .../api/impl/WxMaSchemeServiceImpl.java | 2 +- .../api/impl/WxMaShopAuditServiceImpl.java | 2 +- .../api/impl/WxMaShopCouponServiceImpl.java | 2 +- .../api/impl/WxMaShopSharerServiceImpl.java | 2 +- .../api/impl/WxMaSubscribeServiceImpl.java | 2 +- .../binarywang/wx/miniapp/bean/Watermark.java | 2 +- .../wx/miniapp/bean/WxMaBaseResponse.java | 2 +- .../miniapp/bean/WxMaSubscribeMsgEvent.java | 2 +- .../wx/miniapp/bean/WxMaUpdatableMsg.java | 2 +- .../binarywang/wx/miniapp/bean/WxaCode.java | 2 +- .../wx/miniapp/bean/WxaCodeUnlimit.java | 2 +- .../cloud/WxCloudBatchDeleteFileResult.java | 2 +- .../cloud/WxCloudBatchDownloadFileResult.java | 2 +- ...udCloudDatabaseMigrateQueryInfoResult.java | 2 +- .../WxCloudDatabaseCollectionGetResult.java | 2 +- .../WxCloudDatabaseCreateIndexRequest.java | 2 +- .../cloud/WxCloudDatabaseQueryResult.java | 2 +- .../cloud/WxCloudDatabaseUpdateResult.java | 2 +- .../cloud/WxCloudGetQcloudTokenResult.java | 2 +- .../bean/cloud/WxCloudSendSmsV2Result.java | 2 +- .../bean/cloud/WxCloudUploadFileResult.java | 2 +- .../request/WxCloudSendSmsV2Request.java | 2 +- .../bean/delivery/AbnormalConfirmRequest.java | 2 +- .../delivery/AbnormalConfirmResponse.java | 2 +- .../bean/delivery/AddOrderRequest.java | 2 +- .../bean/delivery/AddOrderResponse.java | 2 +- .../bean/delivery/BindAccountResponse.java | 2 +- .../bean/delivery/CancelOrderRequest.java | 2 +- .../bean/delivery/CancelOrderResponse.java | 2 +- .../bean/delivery/GetOrderRequest.java | 2 +- .../bean/delivery/GetOrderResponse.java | 2 +- .../bean/delivery/MockUpdateOrderRequest.java | 2 +- .../delivery/MockUpdateOrderResponse.java | 2 +- .../base/WxMaDeliveryBaseRequest.java | 2 +- .../base/WxMaDeliveryBaseResponse.java | 2 +- .../bean/live/WxMaAssistantResult.java | 3 ++ .../bean/live/WxMaCreateRoomResult.java | 2 +- .../bean/live/WxMaLiveAssistantInfo.java | 2 ++ .../miniapp/bean/live/WxMaLiveGoodInfo.java | 2 ++ .../miniapp/bean/live/WxMaLiveRoomInfo.java | 32 ++++++++++++++----- .../miniapp/bean/live/WxMaLiveSharedCode.java | 6 +++- .../bean/product/WxMiniAfterSaleDetail.java | 2 +- .../bean/product/WxMiniAfterSaleOrder.java | 2 +- .../WxMiniBatchGetAfterSaleOrderResponse.java | 2 +- .../WxMiniGetAfterSaleOrderResponse.java | 2 +- .../product/WxMiniOrderAfterSaleDetail.java | 2 +- .../product/WxMiniOrderDeliveryRequest.java | 2 +- .../bean/product/WxMinishopAddressInfo.java | 2 +- .../bean/product/WxMinishopDeliveryInfo.java | 2 +- .../product/WxMinishopGetBrandResponse.java | 2 +- .../WxMinishopGetCategoryResponse.java | 2 +- .../WxMinishopGetFrightTemplateResponse.java | 2 +- .../bean/product/WxMinishopOrderDetail.java | 2 +- .../WxMinishopOrderDetailResponse.java | 2 +- .../product/WxMinishopOrderListResponse.java | 2 +- .../bean/product/WxMinishopOrderResult.java | 2 +- .../bean/product/WxMinishopPayInfo.java | 2 +- .../bean/product/WxMinishopPriceInfo.java | 2 +- .../bean/product/WxMinishopProductInfo.java | 2 +- .../product/WxMinishopSkuListResponse.java | 2 +- .../bean/product/WxMinishopSpuGet.java | 2 +- .../product/WxMinishopSpuGetResponse.java | 2 +- .../product/WxMinishopSpuListResponse.java | 2 +- .../scheme/WxMaGenerateSchemeRequest.java | 2 +- .../WxMaMediaSecCheckCheckRequest.java | 2 +- .../miniapp/bean/shop/WxMaPromotionInfo.java | 2 +- .../shop/WxMaShopAccountGetBrandListItem.java | 2 +- .../WxMaShopAccountGetCategoryListItem.java | 2 +- .../bean/shop/WxMaShopAccountGetInfo.java | 2 +- .../bean/shop/WxMaShopAddOrderResult.java | 2 +- .../bean/shop/WxMaShopAddSpuResult.java | 2 +- .../bean/shop/WxMaShopAddressInfo.java | 2 +- .../bean/shop/WxMaShopCatGetDetail.java | 2 +- .../miniapp/bean/shop/WxMaShopCouponInfo.java | 2 +- .../bean/shop/WxMaShopDeliveryDetail.java | 2 +- .../bean/shop/WxMaShopDeliveryItem.java | 2 +- .../bean/shop/WxMaShopGetSpuResult.java | 2 +- .../bean/shop/WxMaShopOrderDetail.java | 2 +- .../miniapp/bean/shop/WxMaShopOrderInfo.java | 2 +- .../bean/shop/WxMaShopOrderResult.java | 2 +- .../wx/miniapp/bean/shop/WxMaShopPayInfo.java | 2 +- .../miniapp/bean/shop/WxMaShopPriceInfo.java | 2 +- .../bean/shop/WxMaShopProductInfo.java | 2 +- .../bean/shop/WxMaShopPromotionInfo.java | 2 +- .../miniapp/bean/shop/WxMaShopSkuResult.java | 2 +- .../shop/WxMaShopSkuWithoutAuditInfo.java | 2 +- .../miniapp/bean/shop/WxMaShopSpuAudit.java | 2 +- .../wx/miniapp/bean/shop/WxMaShopSpuInfo.java | 2 +- .../shop/WxMaShopSpuWithoutAuditInfo.java | 2 +- .../request/WxMaShopAcceptReturnRequest.java | 2 +- .../WxMaShopAccountUpdateInfoRequest.java | 2 +- .../request/WxMaShopAfterSaleAddRequest.java | 2 +- .../request/WxMaShopAfterSaleGetRequest.java | 2 +- .../request/WxMaShopAfterSaleListRequest.java | 2 +- .../WxMaShopAfterSaleUpdateRequest.java | 2 +- ...aShopAfterSaleUploadReturnInfoRequest.java | 2 +- .../request/WxMaShopAuditBrandRequest.java | 2 +- .../request/WxMaShopAuditCategoryRequest.java | 2 +- .../WxMaShopDeliveryRecieveRequest.java | 2 +- .../request/WxMaShopDeliverySendRequest.java | 2 +- .../shop/request/WxMaShopOrderPayRequest.java | 2 +- .../WxMaShopPayCreateOrderRequest.java | 2 +- .../WxMaShopRegisterApplySceneRequest.java | 2 +- ...MaShopRegisterFinishAccessInfoRequest.java | 2 +- .../shop/request/WxMaShopSpuPageRequest.java | 2 +- .../WxMaShopUploadCerficatesRequest.java | 2 +- .../WxMaShopAccountGetBrandListResponse.java | 2 +- ...xMaShopAccountGetCategoryListResponse.java | 2 +- .../WxMaShopAccountGetInfoResponse.java | 2 +- .../response/WxMaShopAddOrderResponse.java | 2 +- .../shop/response/WxMaShopAddSpuResponse.java | 2 +- .../WxMaShopAfterSaleAddResponse.java | 2 +- .../WxMaShopAfterSaleListResponse.java | 2 +- .../response/WxMaShopAuditBrandResponse.java | 2 +- .../WxMaShopAuditCategoryResponse.java | 2 +- .../response/WxMaShopAuditResultResponse.java | 2 +- .../shop/response/WxMaShopBaseResponse.java | 2 +- .../shop/response/WxMaShopCatGetResponse.java | 2 +- .../response/WxMaShopCouponListResponse.java | 2 +- .../shop/response/WxMaShopCouponResponse.java | 2 +- .../WxMaShopGetOrderListResponse.java | 2 +- .../response/WxMaShopGetOrderResponse.java | 2 +- .../WxMaShopGetPaymentParamsResponse.java | 2 +- .../response/WxMaShopGetSpuListResponse.java | 2 +- .../shop/response/WxMaShopGetSpuResponse.java | 2 +- .../WxMaShopPayCreateOrderResponse.java | 2 +- .../WxMaShopRegisterCheckResponse.java | 2 +- .../WxMaShopSearchSharerResponse.java | 2 +- .../response/WxMaShopSharerBindResponse.java | 2 +- .../WxMaShopSharerDataSummaryResponse.java | 2 +- .../response/WxMaShopSharerListResponse.java | 2 +- .../WxMaShopSharerLiveOrderListResponse.java | 2 +- ...WxMaShopSharerLiveSummaryListResponse.java | 2 +- .../WxMaShopSharerUnbindResponse.java | 2 +- .../WxMaShopUserCouponListResponse.java | 2 +- .../config/impl/WxMaRedissonConfigImpl.java | 2 +- .../miniapp/constant/WxMaApiUrlConstants.java | 2 +- .../WxMaSubscribeMsgEventJsonAdapter.java | 2 +- .../wx/miniapp/message/WxMaXmlOutMessage.java | 2 +- .../wx/miniapp/util/WxMaConfigHolder.java | 2 +- .../api/impl/WxMaCloudServiceImplTest.java | 2 +- .../WxMaImmediateDeliveryServiceImplTest.java | 2 +- .../api/impl/WxMaInternetServiceImplTest.java | 2 +- .../impl/WxMaLiveMemberServiceImplTest.java | 2 +- .../api/impl/WxMaOcrServiceImplTest.java | 2 +- .../api/impl/WxMaSchemeServiceImplTest.java | 2 +- .../impl/WxMaSubscribeServiceImplTest.java | 2 +- .../impl/WxMaRedissonConfigImplTest.java | 2 +- .../weixin/mp/api/WxMpCommentService.java | 2 +- .../weixin/mp/api/WxMpDraftService.java | 2 +- .../weixin/mp/api/WxMpFreePublishService.java | 2 +- .../weixin/mp/api/WxMpGuideBuyerService.java | 2 +- .../mp/api/WxMpGuideMassedJobService.java | 2 +- .../mp/api/WxMpGuideMaterialService.java | 2 +- .../weixin/mp/api/WxMpGuideService.java | 2 +- .../weixin/mp/api/WxMpGuideTagService.java | 2 +- .../weixin/mp/api/WxMpMemberCardService.java | 2 +- .../mp/api/WxMpSubscribeMsgService.java | 2 +- .../mp/api/impl/WxMpCommentServiceImpl.java | 2 +- .../mp/api/impl/WxMpDraftServiceImpl.java | 2 +- .../api/impl/WxMpFreePublishServiceImpl.java | 2 +- .../api/impl/WxMpGuideBuyerServiceImpl.java | 2 +- .../impl/WxMpGuideMassedJobServiceImpl.java | 2 +- .../impl/WxMpGuideMaterialServiceImpl.java | 2 +- .../mp/api/impl/WxMpGuideServiceImpl.java | 2 +- .../mp/api/impl/WxMpGuideTagServiceImpl.java | 2 +- .../mp/api/impl/WxMpOAuth2ServiceImpl.java | 2 +- .../mp/api/impl/WxMpOcrServiceImpl.java | 2 +- .../api/impl/WxMpSubscribeMsgServiceImpl.java | 2 +- .../bean/card/AbstractCardCreateRequest.java | 2 +- .../mp/bean/card/BaseWxMpCardResult.java | 2 +- .../me/chanjar/weixin/mp/bean/card/Card.java | 2 +- .../weixin/mp/bean/card/CardUpdateResult.java | 2 +- .../chanjar/weixin/mp/bean/card/CashCard.java | 2 +- .../mp/bean/card/CashCardCreateRequest.java | 2 +- .../weixin/mp/bean/card/DiscountCard.java | 2 +- .../bean/card/DiscountCardCreateRequest.java | 2 +- .../weixin/mp/bean/card/GeneralCoupon.java | 2 +- .../bean/card/GeneralCouponCreateRequest.java | 2 +- .../chanjar/weixin/mp/bean/card/GiftCard.java | 2 +- .../mp/bean/card/GiftCardCreateRequest.java | 2 +- .../weixin/mp/bean/card/GrouponCard.java | 2 +- .../bean/card/GrouponCardCreateRequest.java | 2 +- .../chanjar/weixin/mp/bean/card/UserCard.java | 2 +- .../mp/bean/card/WxMpCardDeleteResult.java | 2 +- .../mp/bean/card/WxUserCardListResult.java | 2 +- .../weixin/mp/bean/card/enums/CardColor.java | 2 +- .../mp/bean/card/enums/CardFieldType.java | 2 +- .../mp/bean/card/enums/CardRichFieldType.java | 2 +- .../bean/card/enums/CardWechatFieldType.java | 2 +- .../card/membercard/ActivatePluginParam.java | 2 +- .../membercard/ActivatePluginParamResult.java | 2 +- .../MemberCardActivateUserFormRequest.java | 2 +- .../card/membercard/MemberCardUserForm.java | 2 +- .../MemberCardUserFormRichField.java | 2 +- .../card/membercard/MemberCardUserInfo.java | 2 +- .../mp/bean/card/membercard/NameValues.java | 2 +- .../WxMpMemberCardActivateTempInfoResult.java | 2 +- .../mp/bean/comment/WxMpCommentListVo.java | 2 +- .../mp/bean/device/AbstractDeviceBean.java | 2 +- .../weixin/mp/bean/device/BaseResp.java | 2 +- .../weixin/mp/bean/device/RespMsg.java | 2 +- .../weixin/mp/bean/device/TransMsgResp.java | 2 +- .../weixin/mp/bean/device/WxDevice.java | 2 +- .../mp/bean/device/WxDeviceAuthorize.java | 2 +- .../bean/device/WxDeviceAuthorizeResult.java | 2 +- .../weixin/mp/bean/device/WxDeviceBind.java | 2 +- .../bean/device/WxDeviceBindDeviceResult.java | 2 +- .../mp/bean/device/WxDeviceBindResult.java | 2 +- .../weixin/mp/bean/device/WxDeviceMsg.java | 2 +- .../mp/bean/device/WxDeviceOpenIdResult.java | 2 +- .../mp/bean/device/WxDeviceQrCodeResult.java | 2 +- .../weixin/mp/bean/draft/WxMpAddDraft.java | 2 +- .../mp/bean/draft/WxMpDraftArticles.java | 2 +- .../weixin/mp/bean/draft/WxMpDraftInfo.java | 2 +- .../weixin/mp/bean/draft/WxMpDraftItem.java | 2 +- .../weixin/mp/bean/draft/WxMpDraftList.java | 2 +- .../weixin/mp/bean/draft/WxMpUpdateDraft.java | 2 +- .../freepublish/WxMpFreePublishArticles.java | 2 +- .../bean/freepublish/WxMpFreePublishInfo.java | 2 +- .../bean/freepublish/WxMpFreePublishItem.java | 2 +- .../bean/freepublish/WxMpFreePublishList.java | 2 +- .../freepublish/WxMpFreePublishStatus.java | 2 +- .../mp/bean/guide/WxMpAddGuideAutoReply.java | 2 +- .../mp/bean/guide/WxMpAddGuideBuyerInfo.java | 2 +- .../mp/bean/guide/WxMpGuideAcctConfig.java | 2 +- .../mp/bean/guide/WxMpGuideAutoReply.java | 2 +- .../mp/bean/guide/WxMpGuideBuyerInfo.java | 2 +- .../mp/bean/guide/WxMpGuideBuyerInfoList.java | 2 +- .../mp/bean/guide/WxMpGuideBuyerRelation.java | 2 +- .../mp/bean/guide/WxMpGuideBuyerResp.java | 2 +- .../bean/guide/WxMpGuideCardMaterialInfo.java | 2 +- .../weixin/mp/bean/guide/WxMpGuideConfig.java | 2 +- .../mp/bean/guide/WxMpGuideFastReply.java | 2 +- .../weixin/mp/bean/guide/WxMpGuideGroup.java | 2 +- .../mp/bean/guide/WxMpGuideGroupInfo.java | 2 +- .../mp/bean/guide/WxMpGuideGroupInfoList.java | 2 +- .../bean/guide/WxMpGuideImgMaterialInfo.java | 2 +- .../guide/WxMpGuideImgMaterialInfoList.java | 2 +- .../weixin/mp/bean/guide/WxMpGuideInfo.java | 2 +- .../weixin/mp/bean/guide/WxMpGuideList.java | 2 +- .../weixin/mp/bean/guide/WxMpGuideMassed.java | 2 +- .../bean/guide/WxMpGuideMassedBuyerInfo.java | 2 +- .../mp/bean/guide/WxMpGuideMassedInfo.java | 2 +- .../mp/bean/guide/WxMpGuideMaterialInfo.java | 2 +- .../weixin/mp/bean/guide/WxMpGuideMsg.java | 2 +- .../mp/bean/guide/WxMpGuideMsgList.java | 2 +- .../mp/bean/guide/WxMpGuideOffLineReply.java | 2 +- .../bean/guide/WxMpGuideSensitiveWords.java | 2 +- .../mp/bean/guide/WxMpGuideTagInfo.java | 2 +- .../bean/guide/WxMpGuideWordMaterialInfo.java | 2 +- .../guide/WxMpGuideWordMaterialInfoList.java | 2 +- .../mp/bean/kefu/result/WxMpKfMsgList.java | 2 +- .../mp/bean/kefu/result/WxMpKfMsgRecord.java | 2 +- .../bean/subscribe/WxMpSubscribeMessage.java | 2 +- .../template/WxMpTemplateIndustryEnum.java | 2 +- .../mp/bean/wifi/WxMpWifiShopDataResult.java | 2 +- .../weixin/mp/config/WxMpHostConfig.java | 2 +- .../mp/config/impl/WxMpMapConfigImpl.java | 2 +- .../config/impl/WxMpRedissonConfigImpl.java | 2 +- .../chanjar/weixin/mp/enums/WxCardType.java | 2 +- .../mp/util/WxMpConfigStorageHolder.java | 2 +- .../json/WxMpSubscribeMessageGsonAdapter.java | 2 +- .../MaterialDeleteOkhttpRequestExecutor.java | 2 +- ...rialNewsInfoApacheHttpRequestExecutor.java | 2 +- ...MaterialNewsInfoOkhttpRequestExecutor.java | 2 +- .../qrcode/QrCodeOkhttpRequestExecutor.java | 2 +- .../api/impl/WxMpCommentServiceImplTest.java | 2 +- .../mp/api/impl/WxMpDraftServiceImplTest.java | 2 +- .../impl/WxMpFreePublishServiceImplTest.java | 2 +- .../impl/WxMpGuideBuyerServiceImplTest.java | 2 +- .../WxMpGuideMassedJobServiceImplTest.java | 2 +- .../WxMpGuideMaterialServiceImplTest.java | 2 +- .../mp/api/impl/WxMpGuideServiceImplTest.java | 2 +- .../api/impl/WxMpGuideTagServiceImplTest.java | 2 +- .../impl/WxMpMarketingServiceImplTest.java | 2 +- .../api/impl/WxMpOAuth2ServiceImplTest.java | 2 +- .../mp/api/impl/WxMpOcrServiceImplTest.java | 2 +- .../impl/WxMpSubscribeMsgServiceImplTest.java | 2 +- .../mp/bean/marketing/WxMpUserActionTest.java | 2 +- .../menu/WxMpGetSelfMenuInfoResultTest.java | 2 +- .../weixin/mp/bean/menu/WxMpMenuTest.java | 2 +- .../subscribe/WxMpSubscribeMessageTest.java | 2 +- .../template/WxMpTemplateIndustryTest.java | 2 +- .../weixin/open/api/WxOpenFastMaService.java | 2 +- .../weixin/open/api/WxOpenMaService.java | 2 +- .../AbstractWxOpenInRedisConfigStorage.java | 2 +- .../WxOpenInRedisTemplateConfigStorage.java | 2 +- .../impl/WxOpenInRedissonConfigStorage.java | 2 +- .../open/api/impl/WxOpenMaServiceImpl.java | 2 +- .../api/impl/WxOpenOAuth2ServiceImpl.java | 2 +- .../open/bean/ma/WxMaOpenCommitExtInfo.java | 2 +- .../open/bean/ma/WxMaOpenNetworkTimeout.java | 2 +- .../weixin/open/bean/ma/WxMaOpenPage.java | 2 +- .../weixin/open/bean/ma/WxMaOpenTab.java | 2 +- .../weixin/open/bean/ma/WxMaOpenTabBar.java | 2 +- .../weixin/open/bean/ma/WxMaOpenWindow.java | 2 +- .../weixin/open/bean/ma/WxMaQrcodeParam.java | 2 +- .../weixin/open/bean/ma/WxOpenMaCategory.java | 2 +- .../weixin/open/bean/ma/WxOpenMaMember.java | 2 +- .../open/bean/ma/WxOpenMaPreviewInfo.java | 2 +- .../open/bean/ma/WxOpenMaSubmitAudit.java | 2 +- .../message/WxOpenMaSubmitAuditMessage.java | 2 +- .../open/bean/result/WxAmpLinkResult.java | 2 +- .../result/WxOpenMaCategoryListResult.java | 2 +- .../bean/result/WxOpenMaDomainResult.java | 2 +- .../bean/result/WxOpenMaPageListResult.java | 2 +- .../bean/result/WxOpenMaQueryAuditResult.java | 2 +- .../result/WxOpenMaSubmitAuditResult.java | 2 +- .../bean/result/WxOpenMaTesterListResult.java | 2 +- .../weixin/open/bean/result/WxOpenResult.java | 2 +- .../bean/result/WxOpenVersioninfoResult.java | 2 +- .../MaQrCodeApacheHttpRequestExecutor.java | 2 +- .../MaQrCodeJoddHttpRequestExecutor.java | 2 +- .../MaQrCodeOkhttpRequestExecutor.java | 2 +- .../executor/MaQrCodeRequestExecutor.java | 2 +- .../impl/WxOpenComponentServiceImplTest.java | 2 +- .../api/impl/WxOpenFastMaServiceImplTest.java | 2 +- .../api/impl/WxOpenMaServiceImplTest.java | 2 +- .../api/impl/WxOpenOAuth2ServiceImplTest.java | 2 +- .../WxOpenAuthorizerInfoResultTest.java | 2 +- .../binarywang/wxpay/bean/bank/BankInfo.java | 2 +- .../complaint/ComplaintDetailRequest.java | 2 +- .../bean/complaint/ComplaintDetailResult.java | 2 +- .../complaint/ComplaintNotifyUrlRequest.java | 2 +- .../complaint/ComplaintNotifyUrlResult.java | 2 +- .../bean/complaint/ComplaintRequest.java | 2 +- .../wxpay/bean/complaint/ComplaintResult.java | 2 +- .../wxpay/bean/complaint/CompleteRequest.java | 2 +- .../complaint/NegotiationHistoryRequest.java | 2 +- .../complaint/NegotiationHistoryResult.java | 2 +- .../wxpay/bean/complaint/ResponseRequest.java | 2 +- .../bean/ecommerce/FinishOrderRequest.java | 2 +- .../bean/ecommerce/FundBalanceResult.java | 2 +- .../wxpay/bean/ecommerce/FundBillRequest.java | 2 +- .../wxpay/bean/ecommerce/FundBillResult.java | 2 +- .../PartnerTransactionsCloseRequest.java | 2 +- ...ofitSharingOrdersUnSplitAmountRequest.java | 2 +- ...rofitSharingOrdersUnSplitAmountResult.java | 2 +- .../bean/ecommerce/ProfitSharingRequest.java | 2 +- .../bean/ecommerce/ProfitSharingResult.java | 2 +- .../wxpay/bean/ecommerce/RefundsRequest.java | 2 +- .../wxpay/bean/ecommerce/RefundsResult.java | 4 +-- .../ecommerce/ReturnOrdersQueryRequest.java | 2 +- .../bean/ecommerce/ReturnOrdersRequest.java | 2 +- .../bean/ecommerce/ReturnOrdersResult.java | 2 +- .../ecommerce/SpWithdrawStatusResult.java | 2 +- .../ecommerce/SubWithdrawStatusResult.java | 2 +- .../bean/ecommerce/TradeBillRequest.java | 2 +- .../wxpay/bean/ecommerce/TradeBillResult.java | 2 +- .../ecommerce/enums/FundBillTypeEnum.java | 2 +- .../ecommerce/enums/SpAccountTypeEnum.java | 2 +- .../entpay/EntPayRedpackQueryRequest.java | 2 +- .../bean/entpay/EntPayRedpackQueryResult.java | 2 +- .../bean/entpay/EntPayRedpackRequest.java | 2 +- .../bean/entpay/EntPayRedpackResult.java | 2 +- .../marketing/payroll/AuthRecordRequest.java | 2 +- .../marketing/payroll/AuthRecordResult.java | 2 +- .../payroll/AuthenticationsResult.java | 2 +- .../payroll/MerchantIncomeRecordsRequest.java | 2 +- .../payroll/MerchantIncomeRecordsResult.java | 2 +- .../payroll/PartnerIncomeRecordsRequest.java | 2 +- .../payroll/PartnerIncomeRecordsResult.java | 2 +- .../marketing/payroll/PreOrderRequest.java | 2 +- .../marketing/payroll/PreOrderResult.java | 2 +- .../payroll/PreOrderWithAuthRequest.java | 2 +- .../payroll/PreOrderWithAuthResult.java | 2 +- .../marketing/payroll/RelationsRequest.java | 2 +- .../marketing/payroll/RelationsResult.java | 2 +- .../payroll/SubFundFlowBillResult.java | 2 +- .../bean/marketing/payroll/TokensRequest.java | 2 +- .../bean/marketing/payroll/TokensResult.java | 2 +- .../transfer/BatchDetailsRequest.java | 2 +- .../transfer/BatchDetailsResult.java | 2 +- .../transfer/BatchNumberRequest.java | 2 +- .../marketing/transfer/BatchNumberResult.java | 2 +- .../marketing/transfer/BillReceiptResult.java | 2 +- .../marketing/transfer/DownloadRequest.java | 2 +- .../transfer/ElectronicReceiptsRequest.java | 2 +- .../transfer/ElectronicReceiptsResult.java | 2 +- .../transfer/MerchantBatchRequest.java | 2 +- .../transfer/PartnerTransferRequest.java | 2 +- .../transfer/PartnerTransferResult.java | 2 +- .../transfer/ReceiptBillRequest.java | 2 +- .../merchanttransfer/BatchesQueryResult.java | 2 +- .../DetailElectronicBillRequest.java | 2 +- .../DetailElectronicBillResult.java | 2 +- .../merchanttransfer/DetailsQueryResult.java | 2 +- .../ElectronicBillApplyRequest.java | 2 +- .../ElectronicBillResult.java | 2 +- .../MerchantBatchesQueryRequest.java | 2 +- .../MerchantDetailsQueryRequest.java | 2 +- .../TransferCreateRequest.java | 2 +- .../TransferCreateResult.java | 2 +- .../WxBatchesQueryRequest.java | 2 +- .../WxDetailsQueryRequest.java | 2 +- .../bean/notify/WxPayNotifyV3Response.java | 2 +- .../wxpay/bean/payscore/Detail.java | 2 +- .../wxpay/bean/payscore/Location.java | 2 +- .../bean/payscore/PayScoreNotifyData.java | 2 +- .../wxpay/bean/payscore/PostDiscount.java | 2 +- .../wxpay/bean/payscore/PostPayment.java | 2 +- .../wxpay/bean/payscore/RiskFund.java | 2 +- .../wxpay/bean/payscore/TimeRange.java | 2 +- .../payscore/WxPartnerPayScoreRequest.java | 2 +- .../payscore/WxPartnerPayScoreResult.java | 2 +- .../bean/payscore/WxPayScoreRequest.java | 2 +- .../wxpay/bean/payscore/WxPayScoreResult.java | 2 +- ...rofitSharingMerchantRatioQueryRequest.java | 2 +- ...ProfitSharingMerchantRatioQueryResult.java | 2 +- .../ProfitSharingOrderAmountQueryRequest.java | 2 +- .../ProfitSharingOrderAmountQueryResult.java | 2 +- .../ProfitSharingReceiver.java | 2 +- .../profitsharingV3/ProfitSharingRequest.java | 2 +- .../profitsharingV3/ProfitSharingResult.java | 2 +- .../ProfitSharingReturnRequest.java | 2 +- .../ProfitSharingReturnResult.java | 2 +- .../ProfitSharingUnfreezeRequest.java | 2 +- .../ProfitSharingUnfreezeResult.java | 2 +- .../ProfitSharingUnsplitResult.java | 2 +- .../bean/request/WxH5EntrustRequest.java | 2 +- .../bean/request/WxMaEntrustRequest.java | 2 +- .../bean/request/WxMpEntrustRequest.java | 2 +- .../bean/request/WxPayEntrustRequest.java | 2 +- .../WxPayQueryExchangeRateRequest.java | 2 +- .../bean/request/WxPreWithholdRequest.java | 2 +- .../bean/request/WxSignQueryRequest.java | 2 +- .../request/WxTerminatedContractRequest.java | 2 +- .../request/WxWithholdOrderQueryRequest.java | 2 +- .../wxpay/bean/request/WxWithholdRequest.java | 2 +- .../wxpay/bean/result/WxH5EntrustResult.java | 2 +- .../wxpay/bean/result/WxPayEntrustResult.java | 2 +- .../result/WxPayQueryExchangeRateResult.java | 2 +- .../result/WxPayRefundPromotionDetail.java | 2 +- .../wxpay/bean/result/WxSignQueryResult.java | 2 +- .../bean/result/WxSignStatusNotifyResult.java | 2 +- .../result/WxTerminationContractResult.java | 2 +- .../bean/result/WxWithholdNotifyResult.java | 2 +- .../result/WxWithholdOrderQueryResult.java | 2 +- .../wxpay/bean/result/WxWithholdResult.java | 2 +- .../transfer/QueryTransferBatchesRequest.java | 2 +- .../transfer/QueryTransferBatchesResult.java | 2 +- .../bean/transfer/TransferBatchesRequest.java | 2 +- .../bean/transfer/TransferBatchesResult.java | 2 +- .../wxpay/config/WxPayConfigHolder.java | 2 +- .../wxpay/config/WxPayHttpProxy.java | 2 +- .../wxpay/service/EcommerceService.java | 2 +- .../service/MerchantTransferService.java | 2 +- .../wxpay/service/PartnerPayScoreService.java | 2 +- .../wxpay/service/PartnerTransferService.java | 2 +- .../wxpay/service/PayrollService.java | 2 +- .../wxpay/service/ProfitSharingV3Service.java | 2 +- .../wxpay/service/RedpackService.java | 2 +- .../wxpay/service/TransferService.java | 2 +- .../wxpay/service/WxEntrustPapService.java | 2 +- .../impl/MerchantTransferServiceImpl.java | 2 +- .../impl/PartnerPayScoreServiceImpl.java | 2 +- .../impl/PartnerTransferServiceImpl.java | 2 +- .../service/impl/PayScoreServiceImpl.java | 2 +- .../service/impl/PayrollServiceImpl.java | 2 +- .../service/impl/RedpackServiceImpl.java | 2 +- .../service/impl/TransferServiceImpl.java | 2 +- .../service/impl/WxEntrustPapServiceImpl.java | 2 +- .../binarywang/wxpay/util/HttpProxyUtils.java | 2 +- .../wxpay/bean/entpay/EntPayRequestTest.java | 2 +- .../bean/notify/WxPayNotifyResponseTest.java | 2 +- .../bean/payscore/WxPayScoreRequestTest.java | 2 +- .../ProfitSharingQueryResultTest.java | 2 +- .../bean/request/WxPayRefundRequestTest.java | 2 +- .../impl/MerchantTransferServiceImplTest.java | 2 +- .../impl/PartnerTransferServiceImplTest.java | 2 +- .../service/impl/PayScoreServiceImplTest.java | 2 +- .../service/impl/PayrollServiceImplTest.java | 2 +- .../service/impl/RedpackServiceImplTest.java | 2 +- .../service/impl/TransferServiceImplTest.java | 2 +- .../service/impl/WxEntrustPapServiceTest.java | 2 +- .../qidian/bean/WxQidianHostConfig.java | 2 +- .../impl/WxQidianRedissonConfigImpl.java | 2 +- .../util/WxQidianConfigStorageHolder.java | 2 +- 757 files changed, 789 insertions(+), 762 deletions(-) diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java index 194cf5c403..f78c39dd45 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpAutoConfiguration.java @@ -9,7 +9,7 @@ * 企业微信自动注册 * * @author yl - * @date 2021/12/6 + * created on 2021/12/6 */ @Configuration @EnableConfigurationProperties(WxCpProperties.class) diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java index 0e1db87a33..70c4045259 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpServiceAutoConfiguration.java @@ -14,7 +14,7 @@ * 企业微信平台相关服务自动注册 * * @author yl - * @date 2021/12/6 + * created on 2021/12/6 */ @Configuration @RequiredArgsConstructor diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java index 5092b3b343..ac17c80970 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/config/WxCpStorageAutoConfiguration.java @@ -8,7 +8,7 @@ * 企业微信存储策略自动配置 * * @author yl - * @date 2021/12/6 + * created on 2021/12/6 */ @Configuration @Import({ diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java index 030478e534..681f157b40 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpProperties.java @@ -10,7 +10,7 @@ * 企业微信接入相关配置属性 * * @author yl - * @date 2021/12/6 + * created on 2021/12/6 */ @Data @NoArgsConstructor diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java index c4bc300366..f47b2c0f23 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/AbstractWxCpConfigStorageConfiguration.java @@ -8,7 +8,7 @@ * WxCpConfigStorage 抽象配置类 * * @author yl & Wang_Wong - * @date 2021/12/6 + * created on 2021/12/6 */ public abstract class AbstractWxCpConfigStorageConfiguration { diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java index e713e4394c..3722bd07d1 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInMemoryConfigStorageConfiguration.java @@ -13,7 +13,7 @@ * 自动装配基于内存策略配置 * * @author yl - * @date 2021/12/6 + * created on 2021/12/6 */ @Configuration @ConditionalOnProperty( diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/config/WxMaAutoConfiguration.java b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/config/WxMaAutoConfiguration.java index fbfae6dfe0..67a7efaecf 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/config/WxMaAutoConfiguration.java +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/config/WxMaAutoConfiguration.java @@ -9,7 +9,7 @@ * 自动配置. * * @author Binary Wang - * @date 2019-08-10 + * created on 2019-08-10 */ @Configuration @EnableConfigurationProperties(WxMaProperties.class) diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/HttpClientType.java b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/HttpClientType.java index 52a53debdc..b3e4b464fe 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/HttpClientType.java +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/HttpClientType.java @@ -4,7 +4,7 @@ * httpclient类型. * * @author Binary Wang - * @date 2020-05-25 + * created on 2020-05-25 */ public enum HttpClientType { /** diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java index bf9fd6b175..31c6e4b602 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/enums/StorageType.java @@ -4,7 +4,7 @@ * storage类型. * * @author Binary Wang - * @date 2020-05-25 + * created on 2020-05-25 */ public enum StorageType { /** diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/RedisProperties.java b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/RedisProperties.java index 9cfaf80e8d..75e3740a19 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/RedisProperties.java +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/RedisProperties.java @@ -6,7 +6,7 @@ * redis 配置. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ @Data public class RedisProperties { diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/WxMaProperties.java b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/WxMaProperties.java index 280330e928..b7ccb45374 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/WxMaProperties.java +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/WxMaProperties.java @@ -12,7 +12,7 @@ * 属性配置类. * * @author Binary Wang - * @date 2019-08-10 + * created on 2019-08-10 */ @Data @ConfigurationProperties(prefix = PREFIX) diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/HttpClientType.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/HttpClientType.java index 1fa235e4af..f67ef97c2e 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/HttpClientType.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/HttpClientType.java @@ -4,7 +4,7 @@ * httpclient类型. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ public enum HttpClientType { /** diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java index 4bf4b07890..05ed6ce393 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/enums/StorageType.java @@ -4,7 +4,7 @@ * storage类型. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ public enum StorageType { /** diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java index 59f82558d7..573c87630f 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java @@ -8,7 +8,7 @@ * redis 配置属性. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ @Data public class RedisProperties implements Serializable { diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/HttpClientType.java b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/HttpClientType.java index 9418a8bec5..1a927211cc 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/HttpClientType.java +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/HttpClientType.java @@ -4,7 +4,7 @@ * httpclient类型. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ public enum HttpClientType { /** diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java index e6ae0cab4f..f4e26bc156 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/enums/StorageType.java @@ -4,7 +4,7 @@ * storage类型. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ public enum StorageType { /** diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/properties/RedisProperties.java b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/properties/RedisProperties.java index b055b63fe9..abfad572e7 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/properties/RedisProperties.java +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/properties/RedisProperties.java @@ -8,7 +8,7 @@ * redis 配置属性. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ @Data public class RedisProperties implements Serializable { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java index f275a2badc..7c50ba1ec4 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingleton.java @@ -15,7 +15,7 @@ * 消息去重,记录消息ID首次出现时的时间戳, * 15S后定时任务触发时废除该记录消息ID *

- * @date 2022/5/26 1:32 + * created on 2022/5/26 1:32 */ @Slf4j public class WxMessageInMemoryDuplicateCheckerSingleton implements WxMessageDuplicateChecker { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ToJson.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ToJson.java index b8bfaabb01..6f10e60b71 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ToJson.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ToJson.java @@ -4,7 +4,7 @@ * 包含toJson()方法的接口. * * @author Binary Wang - * @date 2020-10-05 + * created on 2020-10-05 */ public interface ToJson { /** diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java index 2880d59322..63e568d3f4 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java @@ -11,7 +11,7 @@ * oauth2用户个人信息. * * @author Binary Wang - * @date 2020-10-11 + * created on 2020-10-11 */ @Data public class WxOAuth2UserInfo implements Serializable { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java index 93367a445a..a50bd96e55 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/ocr/WxOcrIdCardResult.java @@ -10,7 +10,7 @@ * OCR身份证识别结果. * * @author Binary Wang - * @date 2019-06-23 + * created on 2019-06-23 */ @Data public class WxOcrIdCardResult implements Serializable { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/CategoryData.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/CategoryData.java index 3b2f332932..997beb91ac 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/CategoryData.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/CategoryData.java @@ -8,7 +8,7 @@ * . * * @author Binary Wang - * @date 2021-01-27 + * created on 2021-01-27 */ @Data public class CategoryData implements Serializable { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/PubTemplateKeyword.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/PubTemplateKeyword.java index c44f2b0bdb..3f4681047b 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/PubTemplateKeyword.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/PubTemplateKeyword.java @@ -8,7 +8,7 @@ * . * * @author Binary Wang - * @date 2021-01-27 + * created on 2021-01-27 */ @Data public class PubTemplateKeyword implements Serializable { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/TemplateInfo.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/TemplateInfo.java index b42924aa77..64222480ad 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/TemplateInfo.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/subscribemsg/TemplateInfo.java @@ -8,7 +8,7 @@ * . * * @author Binary Wang - * @date 2021-01-27 + * created on 2021-01-27 */ @Data public class TemplateInfo implements Serializable { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxRuntimeException.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxRuntimeException.java index ccb8aecefb..e94e03db5d 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxRuntimeException.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/error/WxRuntimeException.java @@ -4,7 +4,7 @@ * WxJava专用的runtime exception. * * @author Binary Wang - * @date 2020-09-26 + * created on 2020-09-26 */ public class WxRuntimeException extends RuntimeException { private static final long serialVersionUID = 4881698471192264412L; diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernApacheHttpRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernApacheHttpRequestExecutor.java index 2a84ac0e8b..22cdab3f92 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernApacheHttpRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernApacheHttpRequestExecutor.java @@ -21,7 +21,7 @@ * . * * @author : zhayueran - * @date 2019/6/27 14:06 + * created on 2019/6/27 14:06 */ public class OcrDiscernApacheHttpRequestExecutor extends OcrDiscernRequestExecutor { public OcrDiscernApacheHttpRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernRequestExecutor.java index 38926e72e5..870f77d2ed 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/requestexecuter/ocr/OcrDiscernRequestExecutor.java @@ -13,7 +13,7 @@ * . * * @author zhayueran - * @date 2019/6/27 15:06 + * created on 2019/6/27 15:06 */ public abstract class OcrDiscernRequestExecutor implements RequestExecutor { protected RequestHttp requestHttp; diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java index e422be06a5..5dea04928e 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOAuth2Service.java @@ -8,7 +8,7 @@ * oauth2 相关接口. * * @author Binary Wang - * @date 2020-08-08 + * created on 2020-08-08 */ public interface WxOAuth2Service { /** diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOcrService.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOcrService.java index 7b4fe337e5..39a8a93754 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOcrService.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxOcrService.java @@ -15,7 +15,7 @@ * https://mp.weixin.qq.com/wiki?t=resource/res_main&id=21516712284rHWMX * * @author Binary Wang - * @date 2019-06-22 + * created on 2019-06-22 */ public interface WxOcrService { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxService.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxService.java index 24897561cc..497c1c0546 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxService.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/service/WxService.java @@ -8,7 +8,7 @@ * 微信服务接口. * * @author Binary Wang - * @date 2020-04-25 + * created on 2020-04-25 */ public interface WxService { /** diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/SHA1.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/SHA1.java index c82f94d871..9b9f776768 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/SHA1.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/SHA1.java @@ -8,7 +8,7 @@ /** * * @author Daniel Qian - * @date 14/10/19 + * created on 14/10/19 */ public class SHA1 { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java index fe80af11eb..d07873f3c4 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/InputStreamData.java @@ -14,7 +14,7 @@ * InputStreamData * * @author zichuan.zhou91@gmail.com - * @date 2022/2/15 + * created on 2022/2/15 */ @Data @Accessors(chain = true) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaDownloadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaDownloadRequestExecutor.java index 5bb4aeba90..e2f4611439 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaDownloadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaDownloadRequestExecutor.java @@ -25,7 +25,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class ApacheMediaDownloadRequestExecutor extends BaseMediaDownloadRequestExecutor { public ApacheMediaDownloadRequestExecutor(RequestHttp requestHttp, File tmpDirFile) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java index 3e6d189e80..ef09812cb2 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaInputStreamUploadRequestExecutor.java @@ -23,7 +23,7 @@ * 文件输入流上传. * * @author meiqin.zhou91@gmail.com - * @date 2022/02/15 + * created on 2022/02/15 */ public class ApacheMediaInputStreamUploadRequestExecutor extends MediaInputStreamUploadRequestExecutor { public ApacheMediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimpleGetRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimpleGetRequestExecutor.java index 6b365edd09..be0784b076 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimpleGetRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimpleGetRequestExecutor.java @@ -16,7 +16,7 @@ * . * * @author ecoolper - * @date 2017/5/4 + * created on 2017/5/4 */ public class ApacheSimpleGetRequestExecutor extends SimpleGetRequestExecutor { public ApacheSimpleGetRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimplePostRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimplePostRequestExecutor.java index 4e6f31ec67..52c8caaf3d 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimplePostRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheSimplePostRequestExecutor.java @@ -18,7 +18,7 @@ * . * * @author ecoolper - * @date 2017/5/4 + * created on 2017/5/4 */ public class ApacheSimplePostRequestExecutor extends SimplePostRequestExecutor { public ApacheSimplePostRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaDownloadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaDownloadRequestExecutor.java index 00df2a640a..920cf2d03b 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaDownloadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaDownloadRequestExecutor.java @@ -25,7 +25,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class JoddHttpMediaDownloadRequestExecutor extends BaseMediaDownloadRequestExecutor { public JoddHttpMediaDownloadRequestExecutor(RequestHttp requestHttp, File tmpDirFile) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java index 479844e42a..311b7c49c5 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaInputStreamUploadRequestExecutor.java @@ -22,7 +22,7 @@ * 文件输入流上传. * * @author meiqin.zhou91@gmail.com - * @date 2022/02/15 + * created on 2022/02/15 */ public class JoddHttpMediaInputStreamUploadRequestExecutor extends MediaInputStreamUploadRequestExecutor { public JoddHttpMediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaUploadRequestExecutor.java index 89ea05a029..876caa29fb 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMediaUploadRequestExecutor.java @@ -20,7 +20,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class JoddHttpMediaUploadRequestExecutor extends MediaUploadRequestExecutor { public JoddHttpMediaUploadRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java index e36f5a7a18..1d6f24fa2a 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestCustomizeExecutor.java @@ -18,7 +18,7 @@ /** * @author liming1019 - * @date 2021/8/10 + * created on 2021/8/10 */ @Slf4j public class JoddHttpMinishopMediaUploadRequestCustomizeExecutor extends MinishopUploadRequestCustomizeExecutor { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestExecutor.java index 769153c59f..4cb9c50ee0 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpMinishopMediaUploadRequestExecutor.java @@ -22,7 +22,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ @Slf4j public class JoddHttpMinishopMediaUploadRequestExecutor extends MinishopUploadRequestExecutor { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimpleGetRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimpleGetRequestExecutor.java index 5960274eb6..869ea8c04e 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimpleGetRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimpleGetRequestExecutor.java @@ -17,7 +17,7 @@ * . * * @author ecoolper - * @date 2017/5/4 + * created on 2017/5/4 */ public class JoddHttpSimpleGetRequestExecutor extends SimpleGetRequestExecutor { public JoddHttpSimpleGetRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimplePostRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimplePostRequestExecutor.java index 50360cae56..a354eb4e06 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimplePostRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/jodd/JoddHttpSimplePostRequestExecutor.java @@ -17,7 +17,7 @@ * . * * @author ecoolper - * @date 2017/5/4 + * created on 2017/5/4 */ public class JoddHttpSimplePostRequestExecutor extends SimplePostRequestExecutor { public JoddHttpSimplePostRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaDownloadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaDownloadRequestExecutor.java index ff0cea1c2b..dda52e2f7b 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaDownloadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaDownloadRequestExecutor.java @@ -21,7 +21,7 @@ /** *. * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ @Slf4j public class OkHttpMediaDownloadRequestExecutor extends BaseMediaDownloadRequestExecutor { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java index ec85015b26..613bd7ecfa 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaInputStreamUploadRequestExecutor.java @@ -17,7 +17,7 @@ * 文件输入流上传. * * @author meiqin.zhou91@gmail.com - * @date 2022/02/15 + * created on 2022/02/15 */ public class OkHttpMediaInputStreamUploadRequestExecutor extends MediaInputStreamUploadRequestExecutor { public OkHttpMediaInputStreamUploadRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaUploadRequestExecutor.java index 6d2602d3df..1b5241ff70 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMediaUploadRequestExecutor.java @@ -15,7 +15,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class OkHttpMediaUploadRequestExecutor extends MediaUploadRequestExecutor { public OkHttpMediaUploadRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java index 367bddd60a..a8b76321ca 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestCustomizeExecutor.java @@ -14,7 +14,7 @@ /** * @author liming1019 - * @date 2021/8/10 + * created on 2021/8/10 */ @Slf4j public class OkHttpMinishopMediaUploadRequestCustomizeExecutor extends MinishopUploadRequestCustomizeExecutor { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestExecutor.java index d8fd66baef..5c40b1f6ba 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpMinishopMediaUploadRequestExecutor.java @@ -18,7 +18,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ @Slf4j public class OkHttpMinishopMediaUploadRequestExecutor extends MinishopUploadRequestExecutor { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimpleGetRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimpleGetRequestExecutor.java index 9be073e38a..ec031d3afe 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimpleGetRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimpleGetRequestExecutor.java @@ -14,7 +14,7 @@ * . * * @author ecoolper - * @date 2017/5/4 + * created on 2017/5/4 */ public class OkHttpSimpleGetRequestExecutor extends SimpleGetRequestExecutor { public OkHttpSimpleGetRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimplePostRequestExecutor.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimplePostRequestExecutor.java index 788ea59260..891907337f 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimplePostRequestExecutor.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpSimplePostRequestExecutor.java @@ -14,7 +14,7 @@ * . * * @author ecoolper - * @date 2017/5/4 + * created on 2017/5/4 */ @Slf4j public class OkHttpSimplePostRequestExecutor extends SimplePostRequestExecutor { diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/IntegerArrayConverter.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/IntegerArrayConverter.java index 3a82b213ca..02d47a1520 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/IntegerArrayConverter.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/IntegerArrayConverter.java @@ -9,7 +9,7 @@ * Integer型数组转换器. * * @author Binary Wang - * @date 2019-08-22 + * created on 2019-08-22 */ public class IntegerArrayConverter extends StringConverter { @Override diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/LongArrayConverter.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/LongArrayConverter.java index a383c59674..ca5f8ac9a4 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/LongArrayConverter.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml/LongArrayConverter.java @@ -9,7 +9,7 @@ * Long型数组转换器. * * @author Binary Wang - * @date 2019-08-22 + * created on 2019-08-22 */ public class LongArrayConverter extends StringConverter { @Override diff --git a/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java b/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java index d6f4ba2fac..7f2da9b2a8 100644 --- a/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java +++ b/weixin-java-common/src/test/java/me/chanjar/weixin/common/api/WxMessageInMemoryDuplicateCheckerSingletonTest.java @@ -11,7 +11,7 @@ * @author jiangby * @version 1.0 * @description: 作用 - * @date 2022/5/26 1:46 + * created on 2022/5/26 1:46 */ @Test public class WxMessageInMemoryDuplicateCheckerSingletonTest { diff --git a/weixin-java-common/src/test/java/me/chanjar/weixin/common/bean/WxNetCheckResultTest.java b/weixin-java-common/src/test/java/me/chanjar/weixin/common/bean/WxNetCheckResultTest.java index 3f08b20bff..049b28227f 100644 --- a/weixin-java-common/src/test/java/me/chanjar/weixin/common/bean/WxNetCheckResultTest.java +++ b/weixin-java-common/src/test/java/me/chanjar/weixin/common/bean/WxNetCheckResultTest.java @@ -6,7 +6,7 @@ /** * * @author Binary Wang - * @date 2020-06-06 + * created on 2020-06-06 */ public class WxNetCheckResultTest { diff --git a/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/json/GsonHelperTest.java b/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/json/GsonHelperTest.java index 396862e708..bafe3c30d1 100644 --- a/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/json/GsonHelperTest.java +++ b/weixin-java-common/src/test/java/me/chanjar/weixin/common/util/json/GsonHelperTest.java @@ -9,7 +9,7 @@ * GsonHelper 的单元测试. * * @author Binary Wang - * @date 2020-09-04 + * created on 2020-09-04 */ public class GsonHelperTest { diff --git a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java index a2bd0175a2..ecc4e6aa9b 100644 --- a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java +++ b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java @@ -16,7 +16,7 @@ * https://developer.work.weixin.qq.com/document/path/91552 * * @author Wang_Wong - * @date 2022-01-17 + * created on 2022-01-17 */ @Slf4j public class Finance { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java index 7ee8210084..f0522181d0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java @@ -5,7 +5,7 @@ /** * @author songshiyu - * @date : create in 16:16 2020/9/27 + * created on : create in 16:16 2020/9/27 * @description: 工作台自定义展示:https://work.weixin.qq.com/api/doc/90000/90135/92535 */ public interface WxCpAgentWorkBenchService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java index a28c7fc7d9..3f13ef38d4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java @@ -8,7 +8,7 @@ * 异步导出接口 * * @author zhongjun - * @date 2022/4/21 + * created on 2022/4/21 **/ public interface WxCpExportService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java index 9839afb9e9..6642cc85fe 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java @@ -11,7 +11,7 @@ * 调用地址:https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= * * @author yr - * @date 2020-8-20 + * created on 2020-8-20 */ public interface WxCpGroupRobotService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java index b829592e64..a9d1bb9af3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java @@ -30,7 +30,7 @@ * 企业可在微信客服官网使用企业微信扫码开通微信客服,开通后即可使用。 * * @author Fu - * @date 2022/1/19 19:25 + * created on 2022/1/19 19:25 */ public interface WxCpKfService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java index cb30cea1fb..240a999433 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java @@ -9,7 +9,7 @@ * 官方文档:https://work.weixin.qq.com/api/doc/90000/90135/93633 * * @author Wang_Wong - * @date 2021-12-21 + * created on 2021-12-21 */ public interface WxCpLivingService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java index ff71ea0c49..23caec4e9c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java @@ -7,7 +7,7 @@ * 消息推送接口. * * @author Binary Wang - * @date 2020 -08-30 + * created on 2020 -08-30 */ public interface WxCpMessageService { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java index 72f637040f..09a25f9d20 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java @@ -14,7 +14,7 @@ * com.tencent.wework.Finance * * @author Wang_Wong - * @date 2022-01-14 + * created on 2022-01-14 */ public interface WxCpMsgAuditService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java index 6f4fae85de..61b7044601 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java @@ -9,7 +9,7 @@ * https://developer.work.weixin.qq.com/document/path/90269 * * @author Wang_Wong - * @date 2022-04-06 + * created on 2022-04-06 */ public interface WxCpOaAgentService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java index 91010ce212..fe419f15fe 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java @@ -9,7 +9,7 @@ * 企业微信日历接口. * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ public interface WxCpOaCalendarService { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java index e69e817669..13013c2dc5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java @@ -9,7 +9,7 @@ * 企业微信会议室接口. * * @author lm93129 - * @date 2022年8月12日22:33:36 + * created on 2022年8月12日22:33:36 */ public interface WxCpOaMeetingRoomService { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java index c5b75bce17..7dcca682b0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java @@ -10,7 +10,7 @@ * 官方文档:https://work.weixin.qq.com/api/doc/90000/90135/93648 * * @author Binary Wang - * @date 2020 -12-25 + * created on 2020 -12-25 */ public interface WxCpOaScheduleService { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java index 69fabb5694..756df126f8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java @@ -12,7 +12,7 @@ * 企业微信OA相关接口. * * @author Element & Wang_Wong - * @date 2019-04-06 10:52 + * created on 2019-04-06 10:52 */ public interface WxCpOaService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java index fff47ca10d..8954e8693b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java @@ -12,7 +12,7 @@ * https://developer.work.weixin.qq.com/document/path/93654 * * @author Wang_Wong - * @date 2022-04-22 + * created on 2022-04-22 */ public interface WxCpOaWeDriveService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java index 76233046d3..8ee5e8d502 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java @@ -12,7 +12,7 @@ * https://developer.work.weixin.qq.com/document/path/93676 * * @author Wang_Wong - * @date: 2022/5/31 9:10 + * created on : 2022/5/31 9:10 */ public interface WxCpSchoolHealthService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java index 5f05ae0c10..46eab72952 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java @@ -16,7 +16,7 @@ * 仅复学码应用可以调用 * * @author Wang_Wong - * @date: 2022/5/31 9:10 + * created on : 2022/5/31 9:10 */ public interface WxCpSchoolService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java index 706c005db8..18cdc45edb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java @@ -13,7 +13,7 @@ * https://developer.work.weixin.qq.com/document/path/91638 * * @author Wang_Wong - * @date: 2022/6/18 9:10 + * created on : 2022/6/18 9:10 */ public interface WxCpSchoolUserService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java index 4109c0a03b..9c401a981b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java @@ -12,7 +12,7 @@ *
* * @author Jeff - * @date 2019-05-16 + * created on 2019-05-16 */ public interface WxCpTaskCardService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java index 8c778197ce..47169998f8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java @@ -13,7 +13,7 @@ /** * @author songshiyu - * @date : create in 11:24 2020/9/28 + * created on : create in 11:24 2020/9/28 * @description: 工作台自定义展示实现 */ @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java index 1e90343881..30ea5baaa2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java @@ -16,7 +16,7 @@ * 异步导出接口 * * @author zhongjun - * @date 2022/4/21 + * created on 2022/4/21 **/ @RequiredArgsConstructor public class WxCpExportServiceImpl implements WxCpExportService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java index 056a51fddf..6f3d4a6175 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java @@ -18,7 +18,7 @@ * 企业微信群机器人消息发送api 实现 * * @author yr - * @date 2020-08-20 + * created on 2020-08-20 */ @RequiredArgsConstructor public class WxCpGroupRobotServiceImpl implements WxCpGroupRobotService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java index 238b9c3278..f997708f6e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java @@ -36,7 +36,7 @@ * 微信客服接口-服务实现 * * @author Fu - * @date 2022/1/19 19:41 + * created on 2022/1/19 19:41 */ @RequiredArgsConstructor public class WxCpKfServiceImpl implements WxCpKfService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java index 03ad270e6b..cbdae00dcb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java @@ -21,7 +21,7 @@ * https://developer.work.weixin.qq.com/document/path/93633 * * @author Wang_Wong - * @date 2021-12-21 + * created on 2021-12-21 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java index 37b1d1821c..717b559c00 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java @@ -13,7 +13,7 @@ * 消息推送接口实现类. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ @RequiredArgsConstructor public class WxCpMessageServiceImpl implements WxCpMessageService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java index 5f670f483e..b25c7585b6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java @@ -28,7 +28,7 @@ * 会话内容存档接口实现类. * * @author Wang_Wong - * @date 2022-01-17 + * created on 2022-01-17 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java index 5acdf0cf0d..d305a84a32 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java @@ -18,7 +18,7 @@ * 企业微信自建应用接口实现类. * * @author Wang_Wong - * @date 2022-04-06 + * created on 2022-04-06 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java index 7e604934b9..da81181e68 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java @@ -18,7 +18,7 @@ * . * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ @RequiredArgsConstructor public class WxCpOaCalendarServiceImpl implements WxCpOaCalendarService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java index ca33f7c66c..cd9d4ede61 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java @@ -22,7 +22,7 @@ * 企业微信日程接口实现类. * * @author Binary Wang - * @date 2020-12-25 + * created on 2020-12-25 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java index 244bcdef84..b524bf4d34 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java @@ -25,7 +25,7 @@ * 企业微信 OA 接口实现 * * @author Element - * @date 2019-04-06 11:20 + * created on 2019-04-06 11:20 */ @RequiredArgsConstructor public class WxCpOaServiceImpl implements WxCpOaService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index 6cac3ec994..3d5bb22f04 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -18,7 +18,7 @@ * 企业微信微盘接口实现类. * * @author Wang_Wong - * @date 2022-04-22 + * created on 2022-04-22 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java index ff1119cc1a..4a96415c06 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java @@ -20,7 +20,7 @@ * 企业微信家校应用 健康上报接口实现类. * * @author Wang_Wong - * @date: 2022/5/31 9:16 + * created on : 2022/5/31 9:16 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java index 30500a2059..eab2d54456 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java @@ -22,7 +22,7 @@ * https://developer.work.weixin.qq.com/document/path/93744 * * @author Wang_Wong - * @date: 2022/6/1 14:05 + * created on : 2022/6/1 14:05 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index c042d305f9..21c92341dd 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -25,7 +25,7 @@ * https://developer.work.weixin.qq.com/document/path/91638 * * @author Wang_Wong - * @date: 2022/6/18 9:10 + * created on : 2022/6/18 9:10 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java index 9e9e7dea05..42a4e2938a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java @@ -19,7 +19,7 @@ *
* * @author Jeff - * @date 2019-05-16 + * created on 2019-05-16 */ @RequiredArgsConstructor public class WxCpTaskCardServiceImpl implements WxCpTaskCardService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java index bda927a800..fc2881bdae 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java @@ -15,7 +15,7 @@ /** * @author songshiyu - * @date : create in 16:09 2020/9/27 + * created on : create in 16:09 2020/9/27 * 工作台自定义展示 */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java index 07447d68bb..f1b342df09 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java @@ -11,7 +11,7 @@ * 返回结果 * * @author yqx & WangWong - * @date 2020/3/16 + * created on 2020/3/16 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java index 7b2887f03e..2caac57ecc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java @@ -10,7 +10,7 @@ * 服务商凭证. * * @author Binary Wang - * @date 2019-11-02 + * created on 2019-11-02 */ @Data public class WxCpProviderToken implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java index c86b255b44..c22bb2b8a5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java @@ -17,7 +17,7 @@ *
* * @author Jeff - * @date 2019-05-16 + * created on 2019-05-16 */ @Data @AllArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java index 82df9f4565..6dc9ddc2d3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java @@ -9,7 +9,7 @@ * 预授权码返回 * * @author yqx - * @date 2020/3/19 + * created on 2020/3/19 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java index 1429b8296e..8d89f0de6c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java @@ -8,7 +8,7 @@ /** * 应用市场延长试用期结果 * @author leiguoqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java index d3c21aa7be..19ee03e681 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java @@ -12,7 +12,7 @@ * 登录信息 * * @author Jamie.shi - * @date 2020-08-03 17:18 + * created on 2020-08-03 17:18 **/ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java index ef21c19e28..ed55debc32 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java @@ -10,7 +10,7 @@ * 异步导出参数 * * @author zhongjun - * @date 2022/4/21 + * created on 2022/4/21 **/ @Data public class WxCpExportRequest implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java index b291049ae0..b03dbeb937 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java @@ -11,7 +11,7 @@ * 异步导出响应 * * @author zhongjun - * @date 2022/4/21 + * created on 2022/4/21 **/ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java index 8c67c814fc..ea055731de 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java @@ -10,7 +10,7 @@ * 企业发表内容到客户的朋友圈 创建发表任务结果 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java index efa0c1bfc0..53b2a2d11c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java @@ -17,7 +17,7 @@ * 企业发表内容到客户的朋友圈 创建发表任务 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java index 3b06a0a078..d8cb46794f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java @@ -13,7 +13,7 @@ * 企业客户微信unionid的升级 - 企业客户external_userid列表 * * @author Mr.Pan - * @date 2021/11/18 + * created on 2021/11/18 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java index a0228e3ac7..52e91b4034 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java @@ -14,7 +14,7 @@ * 企业发表内容到客户的朋友圈 获取客户朋友圈的互动数据 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java index 0d144da14f..6f2b16c8da 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java @@ -13,7 +13,7 @@ * 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java index 32cce1dd45..57f615b49f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java @@ -13,7 +13,7 @@ * 企业发表内容到客户的朋友圈 获取企业全部的发表列表 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java index 30df9c43ae..813e211fb2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java @@ -13,7 +13,7 @@ * 企业发表内容到客户的朋友圈 获取客户朋友圈发表后的可见客户列表 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java index 2b7032f794..506a5c56eb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java @@ -14,7 +14,7 @@ * 企业发表内容到客户的朋友圈 获取客户朋友圈企业发表的列表 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java index b0ab78f1e9..c34ce731c9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java @@ -14,7 +14,7 @@ * 企业发表内容到客户的朋友圈 获取任务创建结果 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java index 03aadb8db9..66b56fb448 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java @@ -12,7 +12,7 @@ * 入群欢迎语素材. * * @author Mr.Pan - * @date 2021-11-3 + * created on 2021-11-3 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java index 0c5f86c3c3..ff3d48ce1a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java @@ -14,7 +14,7 @@ * 新增敏感词规则请求参数封装实体类 * * @author didi - * @date 2022-04-17 + * created on 2022-04-17 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java index 4bc68f957d..fcf2d06f83 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java @@ -13,7 +13,7 @@ * 企业客户微信unionid的升级 - 企业客户external_userid列表 * * @author Mr.Pan - * @date 2021/11/18 + * created on 2021/11/18 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java index 678995590b..c39134086f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java @@ -14,7 +14,7 @@ * 修改客户备注信息请求. * * @author Binary Wang - * @date 2020-09-19 + * created on 2020-09-19 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java index 0fa97573cb..4eb018db4c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java @@ -11,7 +11,7 @@ /** * @author yqx - * @date 2020/3/116 + * created on 2020/3/116 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java index a9a9e6b48e..5a1bb6fc6d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java @@ -11,7 +11,7 @@ /** * @author yqx - * @date 2020/3/116 + * created on 2020/3/116 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java index 472f1a1648..8452732867 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java @@ -13,7 +13,7 @@ * 联系客户群统计数据 * * @author yqx - * @date 2020/3/16 + * created on 2020/3/16 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java index ed40f8acfa..a083198ec3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java @@ -12,7 +12,7 @@ * 分配离职成员的客户群结果 * * @author pg - * @date 2021年6月21日 + * created on 2021年6月21日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java index d273348363..2038fab015 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java @@ -13,7 +13,7 @@ * 离职员工外部联系人列表 * * @author yqx & Wang_Wong - * @date 2020/3/15 + * created on 2020/3/15 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java index 2e0325e307..8d25d8e7ee 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java @@ -13,7 +13,7 @@ * 联系客户统计数据 * * @author yqx - * @date 2020/3/16 + * created on 2020/3/16 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java index e8b8142cc6..d8607cd802 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java @@ -13,7 +13,7 @@ * 转接在职成员的客户给其他成员,请求对象 * * @author pg - * @date 2021年6月21日 + * created on 2021年6月21日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java index 27d1c0ad4c..40840c4b38 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java @@ -13,7 +13,7 @@ * 转接在职成员的客户给其他成员,返回对象 * * @author pg - * @date 2021年6月21日 + * created on 2021年6月21日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java index 53380b55a3..5cf9df6f4b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java @@ -13,7 +13,7 @@ * 在职成员的客户转接情况 * * @author pg - * @date 2021年6月21日 + * created on 2021年6月21日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java index ebe3634ef3..6d37ad6ee8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java @@ -16,7 +16,7 @@ * 新客户欢迎语. * * @author Binary Wang - * @date 2020-08-16 + * created on 2020-08-16 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java index 07d490ac1f..41461bc7f7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java @@ -10,7 +10,7 @@ * 外部联系人. * * @author Binary Wang - * @date 2020-11-04 + * created on 2020-11-04 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java index 541711e7e6..e4501691e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java @@ -9,7 +9,7 @@ * 添加了外部联系人的企业成员. * * @author Binary Wang - * @date 2020-11-04 + * created on 2020-11-04 */ @Data public class FollowedUser implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java index a9726322e6..5bbd1ce380 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java @@ -7,7 +7,7 @@ /** * @author Binary Wang - * @date 2021-08-23 + * created on 2021-08-23 */ @Data public class File implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java index 084de7fcf2..6eec31b806 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java @@ -9,7 +9,7 @@ * 图片消息. * * @author Binary Wang - * @date 2020-08-16 + * created on 2020-08-16 */ @Data public class Image implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java index a33f4ad9ae..80e22159a4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java @@ -9,7 +9,7 @@ * 图文消息. * * @author Binary Wang - * @date 2020-08-16 + * created on 2020-08-16 */ @Data public class Link implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java index 944f2f4876..74b8b49224 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java @@ -6,7 +6,7 @@ * 地理位置 * * @author leiin - * @date 2021-10-29 + * created on 2021-10-29 */ @Data public class Location { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java index 1c5940c7d6..1f9037567f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java @@ -9,7 +9,7 @@ * 小程序消息. * * @author Binary Wang - * @date 2020-08-16 + * created on 2020-08-16 */ @Data public class MiniProgram implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java index 06746e3d51..a796eeec79 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java @@ -9,7 +9,7 @@ * 消息文本消息. * * @author Binary Wang - * @date 2020-08-16 + * created on 2020-08-16 */ @Data @Accessors(chain = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java index 863b028126..251972cf95 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java @@ -9,7 +9,7 @@ * 视频消息 * * @author pg - * @date 2021-6-21 + * created on 2021-6-21 */ @Data public class Video implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java index 14ca9f0f8b..428c255a31 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java @@ -10,7 +10,7 @@ * 添加客服帐号-请求参数 * * @author Fu - * @date 2022/1/19 18:59 + * created on 2022/1/19 18:59 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java index 1e47d696b2..8a3c0978d5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java @@ -11,7 +11,7 @@ * 添加客服帐号-返回结果 * * @author Fu - * @date 2022/1/19 19:04 + * created on 2022/1/19 19:04 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java index 026e05510f..d68714a6e5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java @@ -10,7 +10,7 @@ * 删除客服帐号-请求参数 * * @author Fu - * @date 2022/1/19 19:09 + * created on 2022/1/19 19:09 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java index a46a186db1..b101412453 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java @@ -10,7 +10,7 @@ * 获取客服帐号链接-请求参数 * * @author Fu - * @date 2022/1/19 19:18 + * created on 2022/1/19 19:18 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java index 89bf635958..0ef73b9c4c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java @@ -11,7 +11,7 @@ * 获取客服帐号链接-结果 * * @author Fu - * @date 2022/1/19 19:18 + * created on 2022/1/19 19:18 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java index 5fb6c84e9b..0355c2df69 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java @@ -14,7 +14,7 @@ * 获取客服帐号列表-结果 * * @author Fu - * @date 2022/1/19 19:13 + * created on 2022/1/19 19:13 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java index d3ce7269a5..a54d1d7ca4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java @@ -10,7 +10,7 @@ * 修改客服帐号-请求参数 * * @author Fu - * @date 2022/1/19 19:10 + * created on 2022/1/19 19:10 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java index dd3ea38b17..964e322043 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java @@ -11,7 +11,7 @@ /** * @author leiin - * @date 2022/1/26 7:56 下午 + * created on 2022/1/26 7:56 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java index 193a6b3531..604901e7c4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java @@ -8,7 +8,7 @@ * 获取「客户数据统计」企业汇总数据 * * @author zhongjun - * @date 2022/4/25 + * created on 2022/4/25 **/ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java index 86d97ab3f4..dd3c876dab 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java @@ -13,7 +13,7 @@ * 获取「客户数据统计」企业汇总数据 * * @author zhongjun - * @date 2022/4/25 + * created on 2022/4/25 **/ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java index 140670afa8..b2f7545d71 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java @@ -18,7 +18,7 @@ /** * @author leiin - * @date 2022/1/26 5:24 下午 + * created on 2022/1/26 5:24 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java index 25dd5c7645..cef24cfbba 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java @@ -12,7 +12,7 @@ /** * @author leiin - * @date 2022/1/26 7:00 下午 + * created on 2022/1/26 7:00 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java index 416edba3bf..83b1267183 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/1/26 7:41 下午 + * created on 2022/1/26 7:41 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java index da4aabcdbb..343745364e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/1/26 5:00 下午 + * created on 2022/1/26 5:00 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java index a4988873c0..a8836dd8e1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/1/26 5:03 下午 + * created on 2022/1/26 5:03 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java index 2e9d36d715..150bab725a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java @@ -10,7 +10,7 @@ /** * @author leiin - * @date 2022/4/26 5:21 下午 + * created on 2022/4/26 5:21 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java index c37e5df133..69b7e97d72 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java @@ -10,7 +10,7 @@ /** * @author leiin - * @date 2022/1/26 4:29 下午 + * created on 2022/1/26 4:29 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java index e14dccd03a..d72b48225e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java @@ -12,7 +12,7 @@ /** * 添加/删除客服接待人员返回结果 * @author leiin - * @date 2022/1/26 4:11 下午 + * created on 2022/1/26 4:11 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java index e739112ec1..22593c3307 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/1/26 5:35 下午 + * created on 2022/1/26 5:35 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java index 96782a1015..42c4b24509 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/1/26 6:44 下午 + * created on 2022/1/26 6:44 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java index 1281389a10..2fe2503e1e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/1/26 5:33 下午 + * created on 2022/1/26 5:33 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java index 245da52619..742f5c8a61 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java @@ -5,7 +5,7 @@ /** * @author leiin - * @date 2022/1/26 5:32 下午 + * created on 2022/1/26 5:32 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java index 73df6abf94..6153192b85 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/1/26 6:33 下午 + * created on 2022/1/26 6:33 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java index 4e5ce5f2d4..0c9101e1b2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/1/26 6:22 下午 + * created on 2022/1/26 6:22 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java index 43cba65b67..3deb29b728 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/1/26 5:31 下午 + * created on 2022/1/26 5:31 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java index 1e0ccf076c..1fd44b49c5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/1/26 5:30 下午 + * created on 2022/1/26 5:30 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java index 41d5564ad4..4deb42bff7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java @@ -11,7 +11,7 @@ /** * 订单账号信息 * @author Totoro - * @date 2022/6/27 14:04 + * created on 2022/6/27 14:04 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java index ba16e4da90..69e9cd714c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java @@ -11,7 +11,7 @@ /** * @author Totoro - * @date 2022/6/27 11:54 + * created on 2022/6/27 11:54 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java index 0da8c50d16..49e9db60a3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java @@ -10,7 +10,7 @@ /** * * @author Totoro - * @date 2022-6-27 11:22:53 + * created on 2022-6-27 11:22:53 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java index d65e3473c3..50f3f7cf22 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java @@ -10,7 +10,7 @@ /** * @author Totoro - * @date 2022-6-27 16:26:35 + * created on 2022-6-27 16:26:35 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java index 26e107ccf7..6eb46f8cc9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java @@ -11,7 +11,7 @@ * 激活码信息 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 * @author Totoro - * @date 2022/6/27 14:34 + * created on 2022/6/27 14:34 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java index 4d02f6d324..88ad34070f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java @@ -11,7 +11,7 @@ /** * 许可证账号基础类 * @author Totoro - * @date 2022/6/27 14:39 + * created on 2022/6/27 14:39 */ @Data @SuperBuilder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java index 246253bdd8..871ed86951 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java @@ -9,7 +9,7 @@ /** * @author Totoro - * @date 2022/6/27 15:21 + * created on 2022/6/27 15:21 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java index 3fba253bfd..476bc3b883 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java @@ -9,7 +9,7 @@ /** * @author Totoro - * @date 2022-6-27 15:35:30 + * created on 2022-6-27 15:35:30 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java index a7ac6186fd..45cb8227f4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java @@ -10,7 +10,7 @@ * 详细的订单信息 * 文档地址:https://developer.work.weixin.qq.com/document/path/95648 * @author Totoro - * @date 2022/6/27 11:38 + * created on 2022/6/27 11:38 */ @Data public class WxCpTpLicenseOrder implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java index 54e1f0c01f..036af6a8be 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java @@ -11,7 +11,7 @@ /** * @author Totoro - * @date 2022/6/27 11:38 + * created on 2022/6/27 11:38 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java index f50c3cb5f6..2b2d99812e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java @@ -11,7 +11,7 @@ /** * 基础的信息 * @author Totoro - * @date 2022/6/27 15:50 + * created on 2022/6/27 15:50 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java index c9e42650d3..10cbe48617 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java @@ -13,7 +13,7 @@ * 某个企业成员的激活情况 * 文档地址:https://developer.work.weixin.qq.com/document/path/95555 * @author Totoro - * @date 2022-6-27 14:51:19 + * created on 2022-6-27 14:51:19 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java index 4f394af621..ccc5f32047 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java @@ -13,7 +13,7 @@ * 批量激活帐号结果 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 * @author Totoro - * @date 2022-6-27 16:19:21 + * created on 2022-6-27 16:19:21 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java index 08a12d1785..c0d7884f49 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java @@ -13,7 +13,7 @@ * 批量查询的激活码详情 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 * @author Totoro - * @date 2022-6-27 14:51:19 + * created on 2022-6-27 14:51:19 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java index 737f891e47..f95d463a09 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java @@ -13,7 +13,7 @@ * 基础结果返回信息 * 文档地址:https://developer.work.weixin.qq.com/document/path/95673 * @author Totoro - * @date 2022/6/27 15:49 + * created on 2022/6/27 15:49 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java index 9c1c72402d..f649c48a21 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java @@ -11,7 +11,7 @@ * 查询的激活码详情 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 * @author Totoro - * @date 2022/6/27 14:28 + * created on 2022/6/27 14:28 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java index 623a8e1945..93c64dcfcc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java @@ -13,7 +13,7 @@ * 企业的帐号列表(已激活) * 文档地址:https://developer.work.weixin.qq.com/document/path/95544 * @author Totoro - * @date 2022/6/27 15:15 + * created on 2022/6/27 15:15 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java index d5d0d14e0c..a2092f07f4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java @@ -10,7 +10,7 @@ * 订单创建结果 * 文档地址:https://developer.work.weixin.qq.com/document/path/95644 * @author Totoro - * @date 2022-6-27 11:26:36 + * created on 2022-6-27 11:26:36 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java index 447fefd105..dea1f4daca 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java @@ -14,7 +14,7 @@ * 下单购买帐号 * 文档地址:https://developer.work.weixin.qq.com/document/path/95644 * @author Totoro - * @date 2022/6/27 10:52 + * created on 2022/6/27 10:52 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java index bab3aeab47..dcb607ef4b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java @@ -13,7 +13,7 @@ * 获取订单中的帐号列表 * 文档地址:https://developer.work.weixin.qq.com/document/path/95649 * @author Totoro - * @date 2022-6-27 14:14:40 + * created on 2022-6-27 14:14:40 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java index 2d570896f0..1aacda9edc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java @@ -10,7 +10,7 @@ * 订单详情结果 * 文档:https://developer.work.weixin.qq.com/document/path/95648 * @author Totoro - * @date 2022/06/27 11:56:03 + * created on 2022/06/27 11:56:03 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java index 51dc7d8da1..5b4038a13e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java @@ -13,7 +13,7 @@ * 获取订单列表详情 * 文档地址:https://developer.work.weixin.qq.com/document/path/95647 * @author Totoro - * @date 2022/6/27 11:39 + * created on 2022/6/27 11:39 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java index c50c35f772..7c65b4fdd8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java @@ -14,7 +14,7 @@ * 创建下单续期帐号任务 * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 * @author Totoro - * @date 2022/6/27 11:12 + * created on 2022/6/27 11:12 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java index 4ec63ec46e..91e4970fb2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java @@ -13,7 +13,7 @@ * 创建下单购买帐号任务返回结果 * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 * @author Totoro - * @date 2022-6-27 11:15:20 + * created on 2022-6-27 11:15:20 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java index a4607f5689..fa7e3d11ed 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java @@ -13,7 +13,7 @@ * 续期帐号订单 * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 * @author Totoro - * @date 2022-6-27 11:21:51 + * created on 2022-6-27 11:21:51 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java index 4272a0372e..e733b805d3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java @@ -12,7 +12,7 @@ * 创建预约直播请求. * * @author Wang_Wong - * @date 2021-12-23 + * created on 2021-12-23 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java index 00d1938209..358429bee8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java @@ -14,7 +14,7 @@ * 创建预约直播请求. * * @author Wang_Wong - * @date 2021-12-23 + * created on 2021-12-23 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java index bf73d2e6e0..bb28fa8a23 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java @@ -17,7 +17,7 @@ * 微信群机器人消息 * * @author yr - * @date 2020-08-20 + * created on 2020-08-20 */ @AllArgsConstructor @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java index 042d955bb4..19461070c9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java @@ -24,7 +24,7 @@ * https://developer.work.weixin.qq.com/document/path/90250 * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java index 2955df54c6..5008db115f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java @@ -10,7 +10,7 @@ * 互联企业的消息推送接口返回实体 * * @author pg - * @date 2021年6月22日 + * created on 2021年6月22日 */ @Setter @Getter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java index be652c50b9..df83a23202 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java @@ -11,7 +11,7 @@ * 应用消息发送统计信息. * * @author Binary Wang - * @date 2020-09-13 + * created on 2020-09-13 */ @Data public class WxCpMessageSendStatistics implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java index 77ba45de72..7990a246f1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java @@ -25,7 +25,7 @@ * https://developer.work.weixin.qq.com/document/path/92321 * * @author Wang_Wong - * @date 2022-06-29 + * created on 2022-06-29 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java index b65e8352d0..584de8a408 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java @@ -10,7 +10,7 @@ * https://developer.work.weixin.qq.com/document/path/92321 * * @author Wang_Wong - * @date 2022-06-29 + * created on 2022-06-29 */ @Data public class WxCpSchoolContactMessageSendResult extends WxCpBaseResp { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java index 430e63a3a9..2dccf0b45d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java @@ -10,7 +10,7 @@ /** * @author eYoung * @description: - * @date create at 2021/12/3 16:36 + * created on create at 2021/12/3 16:36 */ @XStreamAlias("xml") @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java index 9e72229015..3072c89006 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java @@ -9,7 +9,7 @@ /** * @author nickname263 - * @date 2021-09-23 + * created on 2021-09-23 */ @XStreamAlias("xml") @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java index 57a77503b6..a63505eeff 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java @@ -13,7 +13,7 @@ *
* * @author Jeff - * @date 2019-05-16 + * created on 2019-05-16 */ public class TaskCardBuilder extends BaseBuilder { private String title; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java index 866b5b7a04..174c23f291 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java @@ -13,7 +13,7 @@ *
* * @author yzts - * @date 2019-05-16 + * created on 2019-05-16 */ public class TemplateCardBuilder extends BaseBuilder { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java index 212cb8b200..aa40e97344 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java @@ -13,7 +13,7 @@ * 聊天记录数据内容. * * @author Wang_Wong - * @date 2022-01-17 + * created on 2022-01-17 */ @Data public class WxCpChatDatas implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java index 83d1b18127..65745cc188 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java @@ -12,7 +12,7 @@ * 获取会话同意情况请求参数. * * @author Wang_Wong - * @date 2022-01-21 + * created on 2022-01-21 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java index 85954ba881..0c498d566d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java @@ -11,7 +11,7 @@ * 摘要行信息,用于定义某一行摘要显示的内容. * * @author Binary Wang - * @date 2020-07-19 + * created on 2020-07-19 */ @Data @Accessors(chain = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java index 9fb385a93f..86c3df17fa 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java @@ -10,7 +10,7 @@ * 企业微信打卡数据. * * @author Element - * @date 2019-04-06 11:01 + * created on 2019-04-06 11:01 */ @Data public class WxCpCheckinData implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java index 70cd4b202a..6f49ec9ebe 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java @@ -10,7 +10,7 @@ * 企业微信打卡规则. * * @author Element - * @date 2019-04-06 13:22 + * created on 2019-04-06 13:22 */ @Data public class WxCpCheckinOption implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java index f3cf7d9881..5ce27e8feb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java @@ -10,7 +10,7 @@ * 公费电话拨打记录. * * @author Element - * @date 2019-04-06 15:38 + * created on 2019-04-06 15:38 */ @Data public class WxCpDialRecord implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java index 81dd6b45b0..d6f800cf92 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java @@ -13,7 +13,7 @@ * 提交审批申请 请求对象类. * * @author Binary Wang - * @date 2020-07-18 + * created on 2020-07-18 */ @Data @Accessors(chain = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java index 2e8315dbde..e61a8566be 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java @@ -13,7 +13,7 @@ * 日程信息bean. * * @author Binary Wang - * @date 2020-12-25 + * created on 2020-12-25 */ @Data @Accessors(chain = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendar.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendar.java index 9f8b69ae55..23beb680f2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendar.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendar.java @@ -17,7 +17,7 @@ * 日历. * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java index 3b468384b5..4f408bc2cb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderDetails.java @@ -10,7 +10,7 @@ * 应用版本付费订单详情 * * @author leiguoqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java index 341ba9bc94..410a51d456 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/order/WxCpTpOrderListGetResult.java @@ -12,7 +12,7 @@ * 应用版本付费订单列表 * * @author leiguoqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java index 19dc5f38e0..c0be079bb0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java @@ -5,7 +5,7 @@ /** * @author eYoung * @description: - * @date create at 2021/12/3 16:34 + * created on create at 2021/12/3 16:34 */ public class EventBuilder extends BaseBuilder { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java index 388ce91697..b4e0fded1b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateParentRequest.java @@ -12,7 +12,7 @@ * 批量创建家长. * * @author Wang_Wong - * @date 2022-07-11 + * created on 2022-07-11 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java index 60c208895d..5d271fb251 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchCreateStudentRequest.java @@ -12,7 +12,7 @@ * 批量创建学生请求. * * @author Wang_Wong - * @date 2022-07-01 + * created on 2022-07-01 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java index 801832cb1a..03a2361f22 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchDeleteStudentRequest.java @@ -12,7 +12,7 @@ * 批量删除学生请求. * * @author Wang_Wong - * @date 2022-07-01 + * created on 2022-07-01 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java index a3cf805db6..fa2374c047 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchResultList.java @@ -14,7 +14,7 @@ * 批量返回结果. * * @author Wang_Wong - * @date 2022-07-01 + * created on 2022-07-01 */ @Data public class WxCpBatchResultList extends WxCpBaseResp implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java index 18a659d7d4..8a33e40c71 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateParentRequest.java @@ -12,7 +12,7 @@ * 批量更新家长. * * @author Wang_Wong - * @date 2022-07-11 + * created on 2022-07-11 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java index 1064506724..255cc48b37 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpBatchUpdateStudentRequest.java @@ -12,7 +12,7 @@ * 批量更新学生请求. * * @author Wang_Wong - * @date 2022-07-01 + * created on 2022-07-01 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java index a851aacc94..ff2fac37e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateDepartmentRequest.java @@ -12,7 +12,7 @@ * 创建部门请求. * * @author Wang_Wong - * @date 2022-06-22 + * created on 2022-06-22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java index 21de39b8cd..fad719f348 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpCreateParentRequest.java @@ -12,7 +12,7 @@ * 创建家长请求. * * @author Wang_Wong - * @date 2022-06-20 + * created on 2022-06-20 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java index d36ba92a33..6768869756 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpExternalContact.java @@ -15,7 +15,7 @@ * https://developer.work.weixin.qq.com/document/path/91670 * * @author Wang_Wong - * @date: 2022/6/27 9:10 + * created on : 2022/6/27 9:10 */ @Data public class WxCpExternalContact extends WxCpBaseResp implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java index 1edc3fda83..13e4e355e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java @@ -13,7 +13,7 @@ * 获取部门家长详情返回结果. * * @author Wang_Wong - * @date 2022-07-13 + * created on 2022-07-13 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java index e1dff520e7..52348446ae 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateDepartmentRequest.java @@ -12,7 +12,7 @@ * 更新部门请求. * * @author Wang_Wong - * @date 2022-06-22 + * created on 2022-06-22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java index 23f404f4dd..dde2fa4461 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUpdateParentRequest.java @@ -12,7 +12,7 @@ * 更新家长请求. * * @author Wang_Wong - * @date 2022-06-20 + * created on 2022-06-20 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java index 7913b986e4..db7266d20e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java @@ -13,7 +13,7 @@ * 获取部门成员详情返回结果. * * @author Wang_Wong - * @date 2022-07-13 + * created on 2022-07-13 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java index ad0cfb53da..b3063ef152 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserResult.java @@ -13,7 +13,7 @@ * 读取学生或家长返回结果. * * @author Wang_Wong - * @date 2022-07-13 + * created on 2022-07-13 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java index bff28c415f..8215553a10 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/taskcard/TaskCardButton.java @@ -14,7 +14,7 @@ *
* * @author Jeff - * @date 2019-05-16 + * created on 2019-05-16 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java index 54950fb821..59b5f33952 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/ActionMenuItem.java @@ -11,7 +11,7 @@ /** * 卡片右上角更多操作按钮点击后出现的操作列表,列表长度取值范围为 [1, 3] * @author xiaohe - * @date 2022-03-06 + * created on 2022-03-06 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java index 8e76ca00bd..a002701259 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/CheckboxOption.java @@ -12,7 +12,7 @@ * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 * * @author yzts - * @date 2021/9/22 + * created on 2021/9/22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java index 393a99dacf..f26ee04ddf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/HorizontalContent.java @@ -13,7 +13,7 @@ * 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 * * @author yzts - * @date 2021/9/22 + * created on 2021/9/22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java index 95ab92f3f2..21bf621a5e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/MultipleSelect.java @@ -15,7 +15,7 @@ * 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器 * * @author yzts - * @date 2021/9/22 + * created on 2021/9/22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java index 564500a45f..db309b6f68 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/QuoteArea.java @@ -13,7 +13,7 @@ * 引用文献样式 * * @author zp - * @date 2022/1/2 + * created on 2022/1/2 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java index df7812fd15..18fad66707 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardButton.java @@ -12,7 +12,7 @@ * 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6 * * @author yzts - * @date 2021/9/22 + * created on 2021/9/22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java index 79fd92ff90..de62f42987 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/TemplateCardJump.java @@ -13,7 +13,7 @@ * 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3 * * @author yzts - * @date 2021/9/22 + * created on 2021/9/22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java index 2dc4021847..9f22731043 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/templatecard/VerticalContent.java @@ -13,7 +13,7 @@ * 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4 * * @author yzts - * @date 2021/9/22 + * created on 2021/9/22 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java index 287476f836..ac7d1f4192 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/user/WxCpDeptUserResult.java @@ -14,7 +14,7 @@ * 获取成员ID列表返回参数 * * @author Wang_Wong - * @date 2022/08/09 + * created on 2022/08/09 */ @Data public class WxCpDeptUserResult extends WxCpBaseResp { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchKeyData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchKeyData.java index 5bcd9cf133..e4022d60c1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchKeyData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchKeyData.java @@ -6,7 +6,7 @@ /** * @author songshiyu - * @date : create in 10:21 2020/9/28 + * created on : create in 10:21 2020/9/28 * @description: 关键数据型模板类型 */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchList.java index c03e724732..1249d9a8d2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchList.java @@ -6,7 +6,7 @@ /** * @author songshiyu - * @date : create in 10:21 2020/9/28 + * created on : create in 10:21 2020/9/28 * @description: 列表模板类型 */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java index a449348ad7..159ba78ada 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java @@ -14,7 +14,7 @@ * 基于Redisson的实现 * * @author yuanqixun - * @date 2020 /5/13 + * created on 2020 /5/13 */ public class WxCpRedissonConfigImpl extends WxCpDefaultConfigImpl { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java index 4f88e9471b..8e6e9954f7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpEditionService.java @@ -8,7 +8,7 @@ * 应用版本付费版本相关接口 * * @author leiguoqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ public interface WxCpTpEditionService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java index 8f25e5e5e8..febe8e42e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpLicenseService.java @@ -17,7 +17,7 @@ * 文档地址:https://developer.work.weixin.qq.com/document/path/95652 *
* @author Totoro - * @date 2022/6/27 10:57 + * created on 2022/6/27 10:57 */ public interface WxCpTpLicenseService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOAService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOAService.java index d6e65b6974..c18fe4c13a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOAService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOAService.java @@ -10,7 +10,7 @@ * 企业微信OA相关接口. * * @author Element - * @date 2019-04-06 10:52 + * created on 2019-04-06 10:52 */ public interface WxCpTpOAService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java index d2288860cf..b3700b3a13 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpOrderService.java @@ -11,7 +11,7 @@ * 应用版本付费订单相关接口 * * @author leiguoqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ public interface WxCpTpOrderService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java index 8a6a71352b..8b8e8b4e29 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpEditionServiceImpl.java @@ -13,7 +13,7 @@ * 应用版本付费版本相关接口实现 * * @author leigouqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ @RequiredArgsConstructor public class WxCpTpEditionServiceImpl implements WxCpTpEditionService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java index ea4d3d9c8a..a7daeccf98 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImpl.java @@ -21,7 +21,7 @@ /** * @author Totoro - * @date 2022/6/27 11:03 + * created on 2022/6/27 11:03 */ @RequiredArgsConstructor public class WxCpTpLicenseServiceImpl implements WxCpTpLicenseService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOAServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOAServiceImpl.java index e9db407a76..6006c10dee 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOAServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOAServiceImpl.java @@ -18,7 +18,7 @@ * 企业微信 OA 接口实现 * * @author Element - * @date 2019-04-06 11:20 + * created on 2019-04-06 11:20 */ @RequiredArgsConstructor public class WxCpTpOAServiceImpl implements WxCpTpOAService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java index 6a598e0079..a1a07c5a0b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpOrderServiceImpl.java @@ -17,7 +17,7 @@ * 应用版本付费订单相关接口实现 * * @author leigouqing - * @date 2022年4月24日 + * created on 2022年4月24日 */ @RequiredArgsConstructor public class WxCpTpOrderServiceImpl implements WxCpTpOrderService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java index 1dbe151499..065d3a76d9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/StatisticListAdapter.java @@ -8,7 +8,7 @@ /** * @author zhongjun - * @date 2022/4/25 + * created on 2022/4/25 **/ public class StatisticListAdapter implements JsonDeserializer { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/ApiTestModuleWithMockServer.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/ApiTestModuleWithMockServer.java index 83f38612d9..3525f938fb 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/ApiTestModuleWithMockServer.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/ApiTestModuleWithMockServer.java @@ -6,7 +6,7 @@ * 带mock server 的test module. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ public class ApiTestModuleWithMockServer extends ApiTestModule { public static final int mockServerPort = 8080; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java index 43724e5a0b..6e4c207f23 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpLivingTest.java @@ -23,7 +23,7 @@ * 官方文档:https://open.work.weixin.qq.com/api/doc/90000/90135/93632 * * @author Wang_Wong - * @date 2021-12-23 + * created on 2021-12-23 */ @Slf4j public class WxCpLivingTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java index 27fd2b2156..2c21c3253b 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpMsgAuditTest.java @@ -25,7 +25,7 @@ * 官方文档:https://developer.work.weixin.qq.com/document/path/91360 * * @author Wang_Wong - * @date 2022-01-17 + * created on 2022-01-17 */ @Slf4j public class WxCpMsgAuditTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java index 94169e4164..2a69fb6a0d 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpOaAgentTest.java @@ -24,7 +24,7 @@ * https://developer.work.weixin.qq.com/document/path/90240#%E5%AE%A1%E6%89%B9%E7%8A%B6%E6%80%81%E9%80%9A%E7%9F%A5%E4%BA%8B%E4%BB%B6 * * @author Wang_Wong - * @date 2022-04-06 + * created on 2022-04-06 */ @Slf4j public class WxCpOaAgentTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java index 5e7469ddf8..52896d37e6 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java @@ -20,7 +20,7 @@ * https://developer.work.weixin.qq.com/document/path/93676 * * @author Wang_Wong - * @date: 2022/5/31 9:10 + * created on : 2022/5/31 9:10 */ @Slf4j public class WxCpSchoolHealthTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java index c042a55a69..aea9f5df75 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolTest.java @@ -20,7 +20,7 @@ * https://developer.work.weixin.qq.com/document/path/93744 * * @author Wang_Wong - * @date: 2022/5/31 9:10 + * created on : 2022/5/31 9:10 */ @Slf4j public class WxCpSchoolTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java index 670f2c7198..3434247d95 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolUserTest.java @@ -28,7 +28,7 @@ * https://developer.work.weixin.qq.com/document/path/91638 * * @author Wang_Wong - * @date: 2022/6/18 9:10 + * created on : 2022/6/18 9:10 */ @Slf4j public class WxCpSchoolUserTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchImplTest.java index eca3a1df9f..21a65a7dab 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchImplTest.java @@ -17,7 +17,7 @@ /** * @author songshiyu - * @date : create in 10:31 2020/9/29 + * created on : create in 10:31 2020/9/29 * @description: 测试工作台服务 */ @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java index c1a09f3599..45996e4d9b 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImplTest.java @@ -20,7 +20,7 @@ * 微信群机器人消息发送api 单元测试 * * @author yr - * @date 2020-08-20 + * created on 2020-08-20 */ @Slf4j @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java index d45fba83fb..2b28d9ee0a 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImplTest.java @@ -23,7 +23,7 @@ * 需要用到专门的 secret https://kf.weixin.qq.com/api/doc/path/93304#secret * * @author Fu - * @date 2022/1/19 20:12 + * created on 2022/1/19 20:12 */ @Guice(modules = ApiTestModule.class) public class WxCpKfServiceImplTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java index d8ba80d996..7cf373b5d5 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImplTest.java @@ -27,7 +27,7 @@ * 测试类. * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ @Test //@Guice(modules = ApiTestModuleWithMockServer.class) diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImplTest.java index f8f43cb816..9c182923ff 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImplTest.java @@ -17,7 +17,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ @Test diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java index c97974ab66..ab8fb9f016 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImplTest.java @@ -17,7 +17,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ @Test diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaScheduleServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaScheduleServiceImplTest.java index 09cbf874d4..d90c1dc6fd 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaScheduleServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaScheduleServiceImplTest.java @@ -15,7 +15,7 @@ * 单元测试类. * * @author Binary Wang - * @date 2020-12-25 + * created on 2020-12-25 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImplTest.java index 1bdcb9e244..f18b361ad6 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImplTest.java @@ -18,7 +18,7 @@ * 测试任务卡片服务 * * @author Jeff - * @date 2019-05-16 + * created on 2019-05-16 */ @Guice(modules = ApiTestModule.class) public class WxCpTaskCardServiceImplTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackageTest.java index 5a54bfd8af..9f388ac32f 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackageTest.java @@ -8,7 +8,7 @@ * . * * @author Binary Wang - * @date 2019-08-18 + * created on 2019-08-18 */ public class WxCpTpXmlPackageTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequestTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequestTest.java index 9564cdf9bc..3795fa4519 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequestTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequestTest.java @@ -9,7 +9,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ public class WxCpUpdateRemarkRequestTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageTest.java index d692d0fc99..69d72cf935 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageTest.java @@ -15,7 +15,7 @@ * 测试用例中的json参考 https://work.weixin.qq.com/api/doc/90000/90135/90250 * * @author Binary Wang - * @date 2020-08-30 + * created on 2020-08-30 */ public class WxCpLinkedCorpMessageTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java index 85b734034a..69703e5920 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageTest.java @@ -27,7 +27,7 @@ * https://developer.work.weixin.qq.com/document/path/92321 * * @author Wang_Wong - * @date 2022-06-29 + * created on 2022-06-29 */ @Slf4j public class WxCpSchoolContactMessageTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequestTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequestTest.java index b5022115b8..a6278cb187 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequestTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequestTest.java @@ -14,7 +14,7 @@ * 测试. * * @author Binary Wang - * @date 2020-07-18 + * created on 2020-07-18 */ public class WxCpOaApplyEventRequestTest { @Test diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendarTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendarTest.java index 761b0f8f9a..14eb5ae742 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendarTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/bean/oa/calendar/WxCpOaCalendarTest.java @@ -11,7 +11,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-09-20 + * created on 2020-09-20 */ public class WxCpOaCalendarTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java index 8a29a1130a..ff16e5d616 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImplTest.java @@ -23,7 +23,7 @@ * 测试代码. * * @author Binary Wang - * @date 2019-08-18 + * created on 2019-08-18 */ public class BaseWxCpTpServiceImplTest { private final WxCpTpService tpService = Mockito.spy(new WxCpTpServiceApacheHttpClientImpl()); diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java index 00772ad6bb..7f7df07fbc 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpLicenseServiceImplTest.java @@ -25,7 +25,7 @@ /** * 许可证账号服务测试 * @author Totoro - * @date 2022/6/27 16:34 + * created on 2022/6/27 16:34 */ public class WxCpTpLicenseServiceImplTest { diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java index 7ec2477b4b..40cdd28459 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/util/crypto/WxCpCryptUtilTest.java @@ -8,7 +8,7 @@ /** * @author Binary Wang - * @date 2020-06-11 + * created on 2020-06-11 */ public class WxCpCryptUtilTest { @Test diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java index 03fe5a4741..4e18fec5c4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCloudService.java @@ -12,7 +12,7 @@ * 云开发相关接口. * * @author Binary Wang - * @date 2020 -01-22 + * created on 2020 -01-22 */ public interface WxMaCloudService { /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java index aeef617235..29df4afcd6 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaImmediateDeliveryService.java @@ -29,7 +29,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-13 16:40 + * created on 2021-10-13 16:40 */ public interface WxMaImmediateDeliveryService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveMemberService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveMemberService.java index 02e20923b4..a92330a93e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveMemberService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLiveMemberService.java @@ -9,7 +9,7 @@ * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/role-manage.html * * @author Binary Wang - * @date 2021 -02-15 + * created on 2021 -02-15 */ public interface WxMaLiveMemberService { /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSchemeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSchemeService.java index e480912e7c..6c99dee043 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSchemeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSchemeService.java @@ -11,7 +11,7 @@ *
* * @author : cofedream - * @date : 2021-01-26 + * created on : 2021-01-26 */ public interface WxMaSchemeService { /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAuditService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAuditService.java index 157052b4c0..7db67e886d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAuditService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAuditService.java @@ -12,7 +12,7 @@ * 小程序交易组件-接入商品前必需接口(审核相关接口) * * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ public interface WxMaShopAuditService { /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java index bee5a0ec52..942aa0e230 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopCouponService.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/7/1 2:49 下午 + * created on 2022/7/1 2:49 下午 */ public interface WxMaShopCouponService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java index 76a4e95485..c63016ab88 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopSharerService.java @@ -12,7 +12,7 @@ /** * 分享员 * @author leiin - * @date 2022/6/18 2:48 下午 + * created on 2022/6/18 2:48 下午 */ public interface WxMaShopSharerService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSubscribeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSubscribeService.java index 1f1248e3ab..694404d980 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSubscribeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaSubscribeService.java @@ -13,7 +13,7 @@ * 订阅消息类 * * @author Binary Wang - * @date 2019-12-15 + * created on 2019-12-15 */ public interface WxMaSubscribeService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java index 0ef033d2ba..7c92606066 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java @@ -32,7 +32,7 @@ * 云开发相关接口实现类. * * @author Binary Wang - * @date 2020-01-22 + * created on 2020-01-22 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java index 2bf98d9571..feaf43396e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -44,7 +44,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-13 16:40 + * created on 2021-10-13 16:40 */ @RequiredArgsConstructor public class WxMaImmediateDeliveryServiceImpl implements WxMaImmediateDeliveryService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java index c723828366..4eceb0492e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImpl.java @@ -18,7 +18,7 @@ * 服务端网络相关接口 * * @author chutian0124 - * @Date 2021-09-06 + * created on 2021-09-06 */ @RequiredArgsConstructor public class WxMaInternetServiceImpl implements WxMaInternetService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImpl.java index 065b401fe0..fad6fba17b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImpl.java @@ -19,7 +19,7 @@ * . * * @author Binary Wang - * @date 2021-02-15 + * created on 2021-02-15 */ @RequiredArgsConstructor public class WxMaLiveMemberServiceImpl implements WxMaLiveMemberService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImpl.java index 66668e0043..8faef8e30e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImpl.java @@ -18,7 +18,7 @@ * ocr 接口实现. * * @author Binary Wang - * @date 2019-06-22 + * created on 2019-06-22 */ @RequiredArgsConstructor public class WxMaOcrServiceImpl implements WxOcrService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImpl.java index 149552dde0..4354a3b0cb 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImpl.java @@ -14,7 +14,7 @@ /** * @author : cofedream - * @date : 2021-01-28 + * created on : 2021-01-28 */ @AllArgsConstructor public class WxMaSchemeServiceImpl implements WxMaSchemeService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImpl.java index b456410124..e1db01b077 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopAuditServiceImpl.java @@ -24,7 +24,7 @@ * 小程序交易组件-接入商品前必需接口(审核相关接口) * * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @RequiredArgsConstructor @Slf4j diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java index fecca734bd..ea0f50b284 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopCouponServiceImpl.java @@ -22,7 +22,7 @@ /** * @author leiin - * @date 2022/7/1 2:49 下午 + * created on 2022/7/1 2:49 下午 */ @RequiredArgsConstructor @Slf4j diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java index af8abe50b5..cb01a0af01 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaShopSharerServiceImpl.java @@ -23,7 +23,7 @@ /** * @author leiin - * @date 2022/6/18 3:38 下午 + * created on 2022/6/18 3:38 下午 */ @RequiredArgsConstructor @Slf4j diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImpl.java index bf37efe1c8..4ef0e98330 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImpl.java @@ -27,7 +27,7 @@ /** * @author Binary Wang - * @date 2019-12-15 + * created on 2019-12-15 */ @RequiredArgsConstructor public class WxMaSubscribeServiceImpl implements WxMaSubscribeService { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/Watermark.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/Watermark.java index 4747c77f84..0ce4260093 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/Watermark.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/Watermark.java @@ -11,7 +11,7 @@ * 数据水印. * * @author Binary Wang - * @date 2020-05-25 + * created on 2020-05-25 */ @Data @AllArgsConstructor diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaBaseResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaBaseResponse.java index a0f524d324..9abf9c6750 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaBaseResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaBaseResponse.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/17 + * created on 2021/8/17 */ @Data public class WxMaBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java index 2191dd8386..29d29b0317 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMsgEvent.java @@ -14,7 +14,7 @@ * WxMaSubscribeMsgEvent class * 客户端订阅,服务端收到的通知 * @author dany - * @date 2021/12/31 + * created on 2021/12/31 */ public class WxMaSubscribeMsgEvent { /** diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUpdatableMsg.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUpdatableMsg.java index 98429b850c..22d1401adf 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUpdatableMsg.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaUpdatableMsg.java @@ -11,7 +11,7 @@ * 动态消息. * * @author Binary Wang - * @date 2020-02-17 + * created on 2020-02-17 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java index 2711ccb242..fcd2214035 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCode.java @@ -16,7 +16,7 @@ * 小程序码. * * @author Element - * @date 2017/7/27 + * created on 2017/7/27 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java index 351ee5c9e2..75c9bf754b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxaCodeUnlimit.java @@ -13,7 +13,7 @@ * 小程序码接口B. * * @author Element - * @date 2017/7/27 + * created on 2017/7/27 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDeleteFileResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDeleteFileResult.java index 52a70037f7..4fc55c74f4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDeleteFileResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDeleteFileResult.java @@ -10,7 +10,7 @@ * 文件删除结果. * * @author Binary Wang - * @date 2020-01-27 + * created on 2020-01-27 */ @Data public class WxCloudBatchDeleteFileResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDownloadFileResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDownloadFileResult.java index 1519e72318..1da70ff96a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDownloadFileResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudBatchDownloadFileResult.java @@ -10,7 +10,7 @@ * 获取文件下载链接结果. * * @author Binary Wang - * @date 2020-01-27 + * created on 2020-01-27 */ @Data public class WxCloudBatchDownloadFileResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudCloudDatabaseMigrateQueryInfoResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudCloudDatabaseMigrateQueryInfoResult.java index b2639c5545..4bad66951f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudCloudDatabaseMigrateQueryInfoResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudCloudDatabaseMigrateQueryInfoResult.java @@ -9,7 +9,7 @@ * 云开发数据库迁移状态查询结果. * * @author Binary Wang - * @date 2020-01-26 + * created on 2020-01-26 */ @Data public class WxCloudCloudDatabaseMigrateQueryInfoResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCollectionGetResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCollectionGetResult.java index 347762b4c1..e47175db3d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCollectionGetResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCollectionGetResult.java @@ -9,7 +9,7 @@ * 云开发获取集合接口的结果. * * @author Binary Wang - * @date 2020-01-28 + * created on 2020-01-28 */ @Data public class WxCloudDatabaseCollectionGetResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCreateIndexRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCreateIndexRequest.java index 9b551db255..f5d5f9aad1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCreateIndexRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseCreateIndexRequest.java @@ -10,7 +10,7 @@ * 云开发新增索引的请求对象. * * @author Binary Wang - * @date 2020-01-26 + * created on 2020-01-26 */ @Accessors(chain = true) @Data diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseQueryResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseQueryResult.java index 19ca4dce1f..37d6b64847 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseQueryResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseQueryResult.java @@ -9,7 +9,7 @@ * 云开发数据库查询记录接口请求结果. * * @author Binary Wang - * @date 2020-01-26 + * created on 2020-01-26 */ @Data public class WxCloudDatabaseQueryResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseUpdateResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseUpdateResult.java index 000774132f..a06a415df7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseUpdateResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudDatabaseUpdateResult.java @@ -8,7 +8,7 @@ * 云开发数据库更新记录接口请求结果. * * @author Binary Wang - * @date 2020-01-26 + * created on 2020-01-26 */ @Data public class WxCloudDatabaseUpdateResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudGetQcloudTokenResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudGetQcloudTokenResult.java index f2b8bf0a1d..7443871e31 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudGetQcloudTokenResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudGetQcloudTokenResult.java @@ -9,7 +9,7 @@ * 获取腾讯云API调用凭证结果. * * @author Binary Wang - * @date 2020-01-27 + * created on 2020-01-27 */ @Data public class WxCloudGetQcloudTokenResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java index eacee01b24..2ee1cac2be 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudSendSmsV2Result.java @@ -12,7 +12,7 @@ * 发送携带 URL Link 的短信结果 * * @author liming1019 - * @date 2022-07-26 + * created on 2022-07-26 */ @Data public class WxCloudSendSmsV2Result extends WxMaBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudUploadFileResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudUploadFileResult.java index 300ae86200..a1abe85d3a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudUploadFileResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/WxCloudUploadFileResult.java @@ -9,7 +9,7 @@ * 云开发文件上传接口响应结果. * * @author Binary Wang - * @date 2020-01-27 + * created on 2020-01-27 */ @Data public class WxCloudUploadFileResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java index 67f926c1f8..3d51c7d06f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/cloud/request/WxCloudSendSmsV2Request.java @@ -11,7 +11,7 @@ * 发送携带 URL Link 的短信请求 * * @author liming1019 - * @date 2022-07-26 + * created on 2022-07-26 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java index af461e47c6..9855827082 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmRequest.java @@ -13,7 +13,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java index 641ab7e38b..0f9fcc22ee 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AbnormalConfirmResponse.java @@ -12,7 +12,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java index c8a220776f..d9b5f5b576 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderRequest.java @@ -16,7 +16,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java index 5f56b007b3..c954bdd80d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/AddOrderResponse.java @@ -14,7 +14,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java index 0afb174eb8..8cad5e9234 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/BindAccountResponse.java @@ -19,7 +19,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java index 1220e08072..71183e9714 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderRequest.java @@ -13,7 +13,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java index a556fba99a..080c12c415 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/CancelOrderResponse.java @@ -14,7 +14,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java index 9927ee06d0..e69a868607 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderRequest.java @@ -12,7 +12,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java index ec06026a04..4527630352 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetOrderResponse.java @@ -14,7 +14,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java index 1adf020281..9eeef27725 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderRequest.java @@ -11,7 +11,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java index de861493ed..388f9083f4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/MockUpdateOrderResponse.java @@ -12,7 +12,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:49 + * created on 2021-10-14 10:49 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java index b01b04e76f..6d964dcd03 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseRequest.java @@ -16,7 +16,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:36 + * created on 2021-10-14 10:36 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java index 38f354bb74..7278c83f69 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/base/WxMaDeliveryBaseResponse.java @@ -13,7 +13,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 10:36 + * created on 2021-10-14 10:36 */ @Data @Accessors(chain = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaAssistantResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaAssistantResult.java index b508b2e09d..d905bcc89a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaAssistantResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaAssistantResult.java @@ -8,6 +8,8 @@ /** * 直播间小助手用户信息 + * + * @author GaoMinZhu */ @Data public class WxMaAssistantResult implements Serializable { @@ -22,6 +24,7 @@ public class WxMaAssistantResult implements Serializable { public static WxMaAssistantResult fromJson(String json) { return WxMaGsonBuilder.create().fromJson(json, WxMaAssistantResult.class); } + @Data public static class Assistant implements Serializable { private static final long serialVersionUID = 6362128855371134033L; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaCreateRoomResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaCreateRoomResult.java index 56b4eb7251..4f1e315a65 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaCreateRoomResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaCreateRoomResult.java @@ -9,7 +9,7 @@ * 创建直播间接口返回. * * @author Binary Wang - * @date 2020-11-29 + * created on 2020-11-29 */ @Data public class WxMaCreateRoomResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveAssistantInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveAssistantInfo.java index bfd727ca82..0b800e249a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveAssistantInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveAssistantInfo.java @@ -6,6 +6,8 @@ /** * 直播间小助手用户信息 + * + * @author GaoMinZhu */ @Data public class WxMaLiveAssistantInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java index 7db60d215c..e6f6c56099 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveGoodInfo.java @@ -8,6 +8,8 @@ /** * 直播商品信息 + * + * @author unkown */ @Data public class WxMaLiveGoodInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveRoomInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveRoomInfo.java index 75f445fe2f..8f560bfa54 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveRoomInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveRoomInfo.java @@ -6,6 +6,8 @@ /** * 直播间信息 + * + * @author unkown */ @Data public class WxMaLiveRoomInfo implements Serializable { @@ -20,7 +22,9 @@ public class WxMaLiveRoomInfo implements Serializable { **/ private String name; /** - * 背景图,填入mediaID(mediaID获取后,三天内有效);图片mediaID的获取,请参考以下文档: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html;直播间背景图,图片规则:建议像素1080*1920,大小不超过2M + * 背景图,填入mediaID(mediaID获取后,三天内有效);图片mediaID的获取, + * 请参考以下文档: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html; + * 直播间背景图,图片规则:建议像素1080*1920,大小不超过2M **/ private String coverImg; /** @@ -36,11 +40,13 @@ public class WxMaLiveRoomInfo implements Serializable { **/ private String anchorName; /** - * 主播微信号,如果未实名认证,需要先前往“小程序直播”小程序进行实名验证, 小程序二维码链接:https://res.wx.qq.com/op_res/BbVNeczA1XudfjVqCVoKgfuWe7e3aUhokktRVOqf_F0IqS6kYR--atCpVNUUC3zr + * 主播微信号,如果未实名认证,需要先前往“小程序直播”小程序进行实名验证, + * 小程序二维码链接:https://res.wx.qq.com/op_res/BbVNeczA1XudfjVqCVoKgfuWe7e3aUhokktRVOqf_F0IqS6kYR--atCpVNUUC3zr **/ private String anchorWechat; /** - * 主播副号微信号,如果未实名认证,需要先前往“小程序直播”小程序进行实名验证, 小程序二维码链接:https://res.wx.qq.com/op_res/BbVNeczA1XudfjVqCVoKgfuWe7e3aUhokktRVOqf_F0IqS6kYR--atCpVNUUC3zr + * 主播副号微信号,如果未实名认证,需要先前往“小程序直播”小程序进行实名验证, + * 小程序二维码链接:https://res.wx.qq.com/op_res/BbVNeczA1XudfjVqCVoKgfuWe7e3aUhokktRVOqf_F0IqS6kYR--atCpVNUUC3zr **/ private String subAnchorWechat; /** @@ -48,20 +54,30 @@ public class WxMaLiveRoomInfo implements Serializable { **/ private String createrWechat; /** - * 分享图,填入mediaID(mediaID获取后,三天内有效);图片mediaID的获取,请参考以下文档: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html;直播间分享图,图片规则:建议像素800*640,大小不超过1M; + * 分享图,填入mediaID(mediaID获取后,三天内有效); + * 图片mediaID的获取,请参考以下文档: + * https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html; + * 直播间分享图,图片规则:建议像素800*640,大小不超过1M; **/ private String shareImg; /** - * 购物直播频道封面图,填入mediaID(mediaID获取后,三天内有效);图片mediaID的获取,请参考以下文档: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html; 购物直播频道封面图,图片规则:建议像素800*800,大小不超过100KB; + * 购物直播频道封面图,填入mediaID(mediaID获取后,三天内有效); + * 图片mediaID的获取,请参考以下文档: + * https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html; + * 购物直播频道封面图,图片规则:建议像素800*800,大小不超过100KB; *

- * 该字段仅用于编辑直播间,不用于创建直播间 + * 该字段仅用于 + * 编辑直播间,不用于创建直播间 *

**/ private String feedsImg; /** - * 直播间分享图,填入mediaID(mediaID获取后,三天内有效);图片规则:建议像素1080*1920,大小不超过2M;图片mediaID的获取,请参考以下文档: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html; + * 直播间分享图,填入mediaID(mediaID获取后,三天内有效);图片规则:建议像素1080*1920,大小不超过2M; + * 图片mediaID的获取,请参考以下文档: + * https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html; *

- * 该字段仅用于创建直播间,不用于编辑直播间 + * 该字段仅用于 + * 创建直播间,不用于编辑直播间 *

**/ private String anchorImg; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java index f27dba87b0..0a7c4e36eb 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/live/WxMaLiveSharedCode.java @@ -5,6 +5,10 @@ import java.io.Serializable; +/** + * @author linlinjava + */ +@Data public class WxMaLiveSharedCode implements Serializable { private static final long serialVersionUID = 8525117884393611947L; /** @@ -22,4 +26,4 @@ public class WxMaLiveSharedCode implements Serializable { */ @SerializedName("posterUrl") private String posterUrl; -} \ No newline at end of file +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java index edf074b4fc..9ae66a8b5a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleDetail.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/20 7:16 下午 + * created on 2022/6/20 7:16 下午 */ @Data public class WxMiniAfterSaleDetail { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java index c58e41bae4..d4c87416af 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniAfterSaleOrder.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/7/11 20:33 + * created on 2022/7/11 20:33 */ @Data public class WxMiniAfterSaleOrder { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java index 5043366784..a56c1ab331 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniBatchGetAfterSaleOrderResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/7/11 20:59 + * created on 2022/7/11 20:59 */ @Data public class WxMiniBatchGetAfterSaleOrderResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java index 06586176e6..3a32d7b35e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniGetAfterSaleOrderResponse.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/7/11 20:58 + * created on 2022/7/11 20:58 */ @Data public class WxMiniGetAfterSaleOrderResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java index b5bfbe7950..2368645f1d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderAfterSaleDetail.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/20 7:16 下午 + * created on 2022/6/20 7:16 下午 */ @Data public class WxMiniOrderAfterSaleDetail { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java index 3307a11611..f6e8924be7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMiniOrderDeliveryRequest.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/7/14 19:05 + * created on 2022/7/14 19:05 */ @Data public class WxMiniOrderDeliveryRequest { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java index b5dd9e872a..df22488f9b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopAddressInfo.java @@ -5,7 +5,7 @@ /** * @author leiin - * @date 2022/6/20 7:32 下午 + * created on 2022/6/20 7:32 下午 */ @Data public class WxMinishopAddressInfo { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java index 1a9f844c12..95c1385c7c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopDeliveryInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/20 7:28 下午 + * created on 2022/6/20 7:28 下午 */ @Data public class WxMinishopDeliveryInfo { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java index 1e9e4862e2..0614e610c9 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetBrandResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/7/8 3:46 下午 + * created on 2022/7/8 3:46 下午 */ @Data public class WxMinishopGetBrandResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java index 55954d8b32..7faae66039 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetCategoryResponse.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2022/7/8 3:39 下午 + * created on 2022/7/8 3:39 下午 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java index 9b79c1e3f1..f96c063dbd 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopGetFrightTemplateResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/7/8 3:46 下午 + * created on 2022/7/8 3:46 下午 */ @Data public class WxMinishopGetFrightTemplateResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java index 09da6dd583..ad33029b15 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetail.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMinishopOrderDetail implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java index aa2996ca64..4472b14f51 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderDetailResponse.java @@ -7,7 +7,7 @@ * 获取订单详情 回包结构 * * @author leiin - * @date 2022/6/20 7:09 下午 + * created on 2022/6/20 7:09 下午 */ @Data public class WxMinishopOrderDetailResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java index ecb4dfd70a..b4c6776cb2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderListResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/6/20 7:09 下午 + * created on 2022/6/20 7:09 下午 */ @Data public class WxMinishopOrderListResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java index 9fb817a6eb..5d73e1d53f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopOrderResult.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMinishopOrderResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java index 5acb048a64..01b3dc4e7e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPayInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMinishopPayInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java index ba146e8e1c..87b26b114e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopPriceInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMinishopPriceInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java index 7342a2c29e..e80533704c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopProductInfo.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMinishopProductInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java index a1713709e9..76f6c18db2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSkuListResponse.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/7/13 20:00 + * created on 2022/7/13 20:00 */ @Data public class WxMinishopSkuListResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java index f40adc0944..1249e048b1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGet.java @@ -5,7 +5,7 @@ /** * @author leiin - * @date 2022/6/20 4:36 下午 + * created on 2022/6/20 4:36 下午 */ @Data public class WxMinishopSpuGet implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java index 94dff9b4e1..84793b1a7f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuGetResponse.java @@ -4,7 +4,7 @@ /** * @author leiin - * @date 2022/6/20 4:46 下午 + * created on 2022/6/20 4:46 下午 */ @Data public class WxMinishopSpuGetResponse extends WxMinishopResult { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java index a60d630007..42a5dd5ee8 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopSpuListResponse.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/20 4:46 下午 + * created on 2022/6/20 4:46 下午 */ @Data public class WxMinishopSpuListResponse extends WxMinishopResult { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java index a62c1334af..c40491d097 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/scheme/WxMaGenerateSchemeRequest.java @@ -7,7 +7,7 @@ /** * @author : cofedream - * @date : 2021-01-26 + * created on : 2021-01-26 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java index 16b0d35c74..0c7375f3a2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMediaSecCheckCheckRequest.java @@ -8,7 +8,7 @@ /** * @author dingxw - * @date 2021/11/18 20:27 + * created on 2021/11/18 20:27 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java index 332e187206..d88c3311c3 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaPromotionInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/18 3:14 下午 + * created on 2022/6/18 3:14 下午 */ @Data public class WxMaPromotionInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetBrandListItem.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetBrandListItem.java index 48019b2420..610b8b5ea2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetBrandListItem.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetBrandListItem.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data public class WxMaShopAccountGetBrandListItem implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetCategoryListItem.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetCategoryListItem.java index 987ff074d5..bafdfe14fd 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetCategoryListItem.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetCategoryListItem.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data public class WxMaShopAccountGetCategoryListItem implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetInfo.java index 7c0fd95cbd..373026fc4f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetInfo.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data public class WxMaShopAccountGetInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddOrderResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddOrderResult.java index 7733529983..70d1f2f744 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddOrderResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddOrderResult.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopAddOrderResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddSpuResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddSpuResult.java index 5fdae9fd26..19abbf7984 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddSpuResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddSpuResult.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 * 添加商品参数返回 */ @Data diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddressInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddressInfo.java index bab59469bb..524f4188d4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddressInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAddressInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopAddressInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCatGetDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCatGetDetail.java index 3c8f752dd8..9dee8a1878 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCatGetDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCatGetDetail.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data public class WxMaShopCatGetDetail implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java index e04c362f39..4c468b8d3a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopCouponInfo.java @@ -10,7 +10,7 @@ /** * @author leiin - * @date 2022/7/1 2:57 下午 + * created on 2022/7/1 2:57 下午 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryDetail.java index 0a2ba9b2ef..cb9cb2bebc 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryDetail.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopDeliveryDetail implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryItem.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryItem.java index 006b5a00d6..d698d775c1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryItem.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopDeliveryItem.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopDeliveryItem implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopGetSpuResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopGetSpuResult.java index e25868fb39..94d9faa3f6 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopGetSpuResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopGetSpuResult.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java index c977d48f9f..e5eef6b77e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderDetail.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopOrderDetail implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java index 006f41266c..1baff0215a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderInfo.java @@ -6,7 +6,7 @@ /** * @author Boris - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopOrderInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderResult.java index b2d23995d5..7d877014ed 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopOrderResult.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopOrderResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java index 24d772c236..5d45cc35d5 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPayInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopPayInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPriceInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPriceInfo.java index f050d3a127..62c98fa4c7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPriceInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPriceInfo.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopPriceInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java index 37898b243d..1a4b9f1f59 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopProductInfo.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopProductInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java index b5c263ad19..d09243998b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java @@ -9,7 +9,7 @@ * 推广员、分享员信息 * * @author zhongjun - * @date 2022/5/17 + * created on 2022/5/17 **/ @Data public class WxMaShopPromotionInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuResult.java index c4dc1e820f..f0bee2c980 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuResult.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopSkuResult implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuWithoutAuditInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuWithoutAuditInfo.java index 334555b2bd..266a498bfe 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuWithoutAuditInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSkuWithoutAuditInfo.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopSkuWithoutAuditInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuAudit.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuAudit.java index a9d30139c3..f39eb89162 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuAudit.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuAudit.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopSpuAudit implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuInfo.java index bd0c552f0b..b06d8a4f1e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuInfo.java @@ -7,7 +7,7 @@ /** * @author Boris - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopSpuInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuWithoutAuditInfo.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuWithoutAuditInfo.java index 306120ed9d..edc79f5255 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuWithoutAuditInfo.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopSpuWithoutAuditInfo.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopSpuWithoutAuditInfo implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java index 58d08b4b41..380259ae3a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAcceptReturnRequest.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/6/28 11:39 上午 + * created on 2022/6/28 11:39 上午 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAccountUpdateInfoRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAccountUpdateInfoRequest.java index 8e74f6b4a9..7b259143c8 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAccountUpdateInfoRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAccountUpdateInfoRequest.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data public class WxMaShopAccountUpdateInfoRequest implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java index f5a00aeb58..ca3c451601 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.java @@ -11,7 +11,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleGetRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleGetRequest.java index fdad13ebb0..2c303cbed1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleGetRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleGetRequest.java @@ -10,7 +10,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java index a0c01e8c81..19db2d2a1b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleListRequest.java @@ -10,7 +10,7 @@ /** * @author leiin - * @date 2022/6/28 11:39 上午 + * created on 2022/6/28 11:39 上午 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java index f5679aeb3e..ee2fef1b68 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUpdateRequest.java @@ -11,7 +11,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java index aa7f713922..60558f9012 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleUploadReturnInfoRequest.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/6/28 11:39 上午 + * created on 2022/6/28 11:39 上午 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditBrandRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditBrandRequest.java index f589f503f5..63fe5e30f2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditBrandRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditBrandRequest.java @@ -11,7 +11,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditCategoryRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditCategoryRequest.java index 300c77db78..3e48ca13f7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditCategoryRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAuditCategoryRequest.java @@ -11,7 +11,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliveryRecieveRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliveryRecieveRequest.java index bbf896626d..9b1f233e33 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliveryRecieveRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliveryRecieveRequest.java @@ -10,7 +10,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java index 47615c5e52..fe261f5a5e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopDeliverySendRequest.java @@ -12,7 +12,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopOrderPayRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopOrderPayRequest.java index 96e56d891a..9a00de2d2b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopOrderPayRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopOrderPayRequest.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopOrderPayRequest implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java index 085a70eecf..f8897ad419 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopPayCreateOrderRequest.java @@ -11,7 +11,7 @@ /** * @author liming1019 - * @date 2022/8/10 + * created on 2022/8/10 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterApplySceneRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterApplySceneRequest.java index bec18e27f1..57d1138878 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterApplySceneRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterApplySceneRequest.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/6 + * created on 2021/8/6 */ @Data public class WxMaShopRegisterApplySceneRequest implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterFinishAccessInfoRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterFinishAccessInfoRequest.java index 6b2999e2f2..20eabab177 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterFinishAccessInfoRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterFinishAccessInfoRequest.java @@ -7,7 +7,7 @@ /** * @author liming1019 - * @date 2021/8/6 + * created on 2021/8/6 */ @Data public class WxMaShopRegisterFinishAccessInfoRequest implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopSpuPageRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopSpuPageRequest.java index 8aee162f3f..95e1e30c12 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopSpuPageRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopSpuPageRequest.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 * spu分页参数 */ @Data diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java index 4e4aae4dbe..37678f97d7 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopUploadCerficatesRequest.java @@ -10,7 +10,7 @@ /** * @author leiin - * @date 2022/6/28 11:39 上午 + * created on 2022/6/28 11:39 上午 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetBrandListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetBrandListResponse.java index a734126bc4..d38587ff40 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetBrandListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetBrandListResponse.java @@ -10,7 +10,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetCategoryListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetCategoryListResponse.java index ba9ccee563..e1fd5c4fd6 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetCategoryListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetCategoryListResponse.java @@ -10,7 +10,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetInfoResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetInfoResponse.java index f14a59ae5a..21c8bc0015 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetInfoResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAccountGetInfoResponse.java @@ -9,7 +9,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java index ecd4ff9b77..fa707b8aea 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddOrderResponse.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddSpuResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddSpuResponse.java index 4f5890c0de..34c87095f0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddSpuResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAddSpuResponse.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java index c376d3bcbd..1882923f78 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/28 11:29 上午 + * created on 2022/6/28 11:29 上午 */ @Data public class WxMaShopAfterSaleAddResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java index 1e4fb93ad1..a5dd22cd96 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleListResponse.java @@ -11,7 +11,7 @@ /** * @author leiin - * @date 2022/6/28 11:39 上午 + * created on 2022/6/28 11:39 上午 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditBrandResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditBrandResponse.java index 59f7a6ff9c..f5c52ca85e 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditBrandResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditBrandResponse.java @@ -8,7 +8,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditCategoryResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditCategoryResponse.java index db157fdddd..4aaa5803d9 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditCategoryResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditCategoryResponse.java @@ -8,7 +8,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditResultResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditResultResponse.java index 5f3fca5cc7..213885beec 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditResultResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditResultResponse.java @@ -8,7 +8,7 @@ /** * @author liming1019 - * @date 2021/8/12 + * created on 2021/8/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java index 2156be2297..e4a015e9ab 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopBaseResponse.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data public class WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCatGetResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCatGetResponse.java index 2077027f29..bc16f77bb5 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCatGetResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCatGetResponse.java @@ -10,7 +10,7 @@ /** * @author liming1019 - * @date 2021/8/9 + * created on 2021/8/9 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java index 5d77c360fd..55544fd3d0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponListResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/7/1 3:34 下午 + * created on 2022/7/1 3:34 下午 */ @Data public class WxMaShopCouponListResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java index f83c159d1b..db9da87a7f 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java @@ -5,7 +5,7 @@ /** * @author leiin - * @date 2022/7/1 3:34 下午 + * created on 2022/7/1 3:34 下午 */ @Data public class WxMaShopCouponResponse extends WxMaShopBaseResponse { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java index 0596843396..ffe70cbc07 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderResponse.java index b55d163604..18c278096d 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderResponse.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java index fc1bc4767d..c7ae91947b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java @@ -12,7 +12,7 @@ * 生成支付参数响应 * * @author zhongjun - * @date 2022/5/17 + * created on 2022/5/17 **/ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuListResponse.java index b1b01978f2..d1e172f9e0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuListResponse.java @@ -10,7 +10,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuResponse.java index be68f8ee84..05b9fdaca3 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetSpuResponse.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2021/3/23 + * created on 2021/3/23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java index 85cd3e3909..f6c40ee0f0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopPayCreateOrderResponse.java @@ -10,7 +10,7 @@ /** * @author liming1019 - * @date 2022/8/10 + * created on 2022/8/10 */ @Data @Builder diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopRegisterCheckResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopRegisterCheckResponse.java index 494a70ff42..d94bcfc494 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopRegisterCheckResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopRegisterCheckResponse.java @@ -9,7 +9,7 @@ /** * @author liming1019 - * @date 2021/8/5 + * created on 2021/8/5 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java index 9366a50146..ac0ff4b7d0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSearchSharerResponse.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/18 2:58 下午 + * created on 2022/6/18 2:58 下午 */ @Data public class WxMaShopSearchSharerResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java index d88a482987..b540ae70d4 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerBindResponse.java @@ -9,7 +9,7 @@ /** * @author leiin - * @date 2022/6/18 2:51 下午 + * created on 2022/6/18 2:51 下午 */ @Data public class WxMaShopSharerBindResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java index 304bf3d18d..3b712fe120 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerDataSummaryResponse.java @@ -6,7 +6,7 @@ /** * @author leiin - * @date 2022/6/18 2:53 下午 + * created on 2022/6/18 2:53 下午 */ @Data public class WxMaShopSharerDataSummaryResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java index c49c0c5f0f..33d936e153 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerListResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/6/18 2:55 下午 + * created on 2022/6/18 2:55 下午 */ @Data public class WxMaShopSharerListResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java index 319b726683..a6c02fcdc5 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveOrderListResponse.java @@ -8,7 +8,7 @@ /** * @author leiin - * @date 2022/6/18 2:56 下午 + * created on 2022/6/18 2:56 下午 */ @Data public class WxMaShopSharerLiveOrderListResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java index bb3fa927b8..f0b2cc3956 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerLiveSummaryListResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/6/18 2:57 下午 + * created on 2022/6/18 2:57 下午 */ @Data public class WxMaShopSharerLiveSummaryListResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java index 6ce228a8ce..d995ee40b6 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopSharerUnbindResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/6/18 3:00 下午 + * created on 2022/6/18 3:00 下午 */ @Data public class WxMaShopSharerUnbindResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java index 6f615554bc..932e46ccca 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopUserCouponListResponse.java @@ -7,7 +7,7 @@ /** * @author leiin - * @date 2022/7/1 3:59 下午 + * created on 2022/7/1 3:59 下午 */ @Data public class WxMaShopUserCouponListResponse extends WxMaShopBaseResponse implements Serializable { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java index b2d115fd26..2f8f56ffa2 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java @@ -14,7 +14,7 @@ * 基于Redisson的实现 * * @author yuanqixun - * @date 2020/5/3 + * created on 2020/5/3 */ public class WxMaRedissonConfigImpl extends WxMaDefaultConfigImpl { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index e6c8535b91..f3220514de 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -6,7 +6,7 @@ * 小程序接口地址常量. * * @author Binary Wang - * @date 2021-01-28 + * created on 2021-01-28 */ @UtilityClass public class WxMaApiUrlConstants { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java index d489f14a7b..377f8e35ef 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/json/adaptor/WxMaSubscribeMsgEventJsonAdapter.java @@ -15,7 +15,7 @@ * WxMaSubscribeMsgEventJsonAdapter class * * @author dany - * @date 2021/12/31 + * created on 2021/12/31 */ @Slf4j public class WxMaSubscribeMsgEventJsonAdapter implements JsonDeserializer { diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaXmlOutMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaXmlOutMessage.java index 7211e0531a..a6c2b828ae 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaXmlOutMessage.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaXmlOutMessage.java @@ -18,7 +18,7 @@ * 微信小程序输出给微信服务器的消息. * * @author Binary Wang - * @date 2019-06-22 + * created on 2019-06-22 */ @Data @XStreamAlias("xml") diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java index f99e9616d8..15dd8654c0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java @@ -4,7 +4,7 @@ * 小程序存储值存放类. * * @author Binary Wang - * @date 2020-08-16 + * created on 2020-08-16 */ public class WxMaConfigHolder { private static final ThreadLocal THREAD_LOCAL = new ThreadLocal() { diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java index 4b7235ba91..abc8f68fc1 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImplTest.java @@ -23,7 +23,7 @@ * 测试类. * * @author Binary Wang - * @date 2020-01-22 + * created on 2020-01-22 */ @Guice(modules = ApiTestModule.class) public class WxMaCloudServiceImplTest { diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java index 739bc998ff..49e3e3e0c9 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImplTest.java @@ -26,7 +26,7 @@ * * @author Luo * @version 1.0 - * @date 2021-10-14 11:48 + * created on 2021-10-14 11:48 */ @Guice(modules = ApiTestModule.class) public class WxMaImmediateDeliveryServiceImplTest { diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java index 9b1ffa1678..9a0203a7a5 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaInternetServiceImplTest.java @@ -16,7 +16,7 @@ * 服务端网络相关接口测试 * * @author chutian0124 - * @date 2021-09-06 + * created on 2021-09-06 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImplTest.java index f5ffb59d7e..eab4826014 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveMemberServiceImplTest.java @@ -12,7 +12,7 @@ * 测试. * * @author Binary Wang - * @date 2021-02-15 + * created on 2021-02-15 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImplTest.java index b52476fb92..e520388c5c 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaOcrServiceImplTest.java @@ -24,7 +24,7 @@ /** * @author Binary Wang - * @date 2020-07-05 + * created on 2020-07-05 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImplTest.java index e24997bc01..8fa3b13105 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSchemeServiceImplTest.java @@ -13,7 +13,7 @@ /** * @author : cofedream - * @date : 2021-01-28 + * created on : 2021-01-28 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImplTest.java index 7013b2f888..10993e5651 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaSubscribeServiceImplTest.java @@ -21,7 +21,7 @@ * 测试类. * * @author Binary Wang - * @date 2019-12-15 + * created on 2019-12-15 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImplTest.java index 6fdcee10f4..75e0fb4aad 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImplTest.java @@ -11,7 +11,7 @@ /** * @author yqx - * @date 2020/5/3 + * created on 2020/5/3 */ public class WxMaRedissonConfigImplTest { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpCommentService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpCommentService.java index c4ba7ca326..31fd7ccf92 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpCommentService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpCommentService.java @@ -8,7 +8,7 @@ * https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html * * @author Binary Wang - * @date 2019-06-16 + * created on 2019-06-16 */ public interface WxMpCommentService { /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java index 3e38410d5f..3caa34677c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDraftService.java @@ -10,7 +10,7 @@ * 微信 草稿箱 接口. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ public interface WxMpDraftService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java index c695942790..a98b64b22e 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpFreePublishService.java @@ -9,7 +9,7 @@ * 微信 发布能力 接口. * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ public interface WxMpFreePublishService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideBuyerService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideBuyerService.java index 5d3c21407f..1bfd09e415 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideBuyerService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideBuyerService.java @@ -7,7 +7,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ public interface WxMpGuideBuyerService { /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMassedJobService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMassedJobService.java index 2414615807..6226ee84b9 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMassedJobService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMassedJobService.java @@ -9,7 +9,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ public interface WxMpGuideMassedJobService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMaterialService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMaterialService.java index 70fd5f8007..f092336066 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMaterialService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideMaterialService.java @@ -9,7 +9,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ public interface WxMpGuideMaterialService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideService.java index e91cfc1dc4..eff632278f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideService.java @@ -9,7 +9,7 @@ * 微信导购助手(现在叫对话能力)接口. * * @author Binary Wang - * @date 2020 -10-06 + * created on 2020 -10-06 */ public interface WxMpGuideService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideTagService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideTagService.java index b2bb76d787..57c18b63b6 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideTagService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpGuideTagService.java @@ -10,7 +10,7 @@ * 微信导购助手(现在叫对话能力)标签相关接口. * * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ public interface WxMpGuideTagService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMemberCardService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMemberCardService.java index 07572bb500..a3b867c9c5 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMemberCardService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMemberCardService.java @@ -14,7 +14,7 @@ * @author YuJian(mgcnrx11 @ gmail.com) * @author yuanqixun * @version 2017/7/8 - * @date 2018-08-30 + * created on 2018-08-30 */ public interface WxMpMemberCardService { /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java index 897c00e783..7feb9c10d6 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java @@ -15,7 +15,7 @@ *
* * @author Mklaus - * @date 2018 -01-22 上午11:07 + * created on 2018 -01-22 上午11:07 */ public interface WxMpSubscribeMsgService { /** diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImpl.java index 8f287a80f1..3e3172d9ab 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImpl.java @@ -11,7 +11,7 @@ /** * @author Binary Wang - * @date 2019-06-16 + * created on 2019-06-16 */ @RequiredArgsConstructor public class WxMpCommentServiceImpl implements WxMpCommentService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java index fb173b1ebb..7716e6b25b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImpl.java @@ -20,7 +20,7 @@ * 草稿箱能力-service实现类. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @AllArgsConstructor public class WxMpDraftServiceImpl implements WxMpDraftService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java index f8f9b36843..544bc34994 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImpl.java @@ -15,7 +15,7 @@ * 发布能力-service实现类. * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ @AllArgsConstructor public class WxMpFreePublishServiceImpl implements WxMpFreePublishService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImpl.java index 94c07ad4db..723b2572a0 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImpl.java @@ -17,7 +17,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @AllArgsConstructor public class WxMpGuideBuyerServiceImpl implements WxMpGuideBuyerService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImpl.java index 9bc7881b6d..b91c580621 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImpl.java @@ -19,7 +19,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @AllArgsConstructor public class WxMpGuideMassedJobServiceImpl implements WxMpGuideMassedJobService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImpl.java index 0584d82460..b41d4ae2ed 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImpl.java @@ -19,7 +19,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @AllArgsConstructor public class WxMpGuideMaterialServiceImpl implements WxMpGuideMaterialService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImpl.java index 3fb47d0971..dd6256c3e8 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImpl.java @@ -21,7 +21,7 @@ * . * * @author Binary Wang - * @date 2020-10-06 + * created on 2020-10-06 */ @AllArgsConstructor public class WxMpGuideServiceImpl implements WxMpGuideService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImpl.java index 2747cbdae7..11b0e4d2de 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImpl.java @@ -20,7 +20,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @AllArgsConstructor diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImpl.java index f77da7c855..726311ffa5 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImpl.java @@ -23,7 +23,7 @@ * oauth2 相关接口实现类. * * @author Binary Wang - * @date 2020-08-08 + * created on 2020-08-08 */ @RequiredArgsConstructor public class WxMpOAuth2ServiceImpl implements WxOAuth2Service { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImpl.java index 7f6a2e3cff..1c8221338f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImpl.java @@ -18,7 +18,7 @@ * ocr 接口实现. * * @author Binary Wang - * @date 2019-06-22 + * created on 2019-06-22 */ @RequiredArgsConstructor public class WxMpOcrServiceImpl implements WxOcrService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java index 48cd042e91..1689a50bc3 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java @@ -30,7 +30,7 @@ * 订阅消息接口. * * @author Mklaus - * @date 2018-01-22 上午11:19 + * created on 2018-01-22 上午11:19 */ @RequiredArgsConstructor public class WxMpSubscribeMsgServiceImpl implements WxMpSubscribeMsgService { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/AbstractCardCreateRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/AbstractCardCreateRequest.java index 7655b240db..0e2cacc67f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/AbstractCardCreateRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/AbstractCardCreateRequest.java @@ -8,7 +8,7 @@ * . * * @author leeis - * @date 2018/12/29 + * created on 2018/12/29 */ @Data public abstract class AbstractCardCreateRequest implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseWxMpCardResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseWxMpCardResult.java index 72c7420f01..dd889ff4a7 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseWxMpCardResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseWxMpCardResult.java @@ -6,7 +6,7 @@ * 卡券返回结果基础类. * * @author fanxl - * @date 2019/1/22 0022 10:08 + * created on 2019/1/22 0022 10:08 */ public class BaseWxMpCardResult implements Serializable { private static final long serialVersionUID = -3502867243738689870L; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/Card.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/Card.java index 6e0f32edc4..cdea61217f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/Card.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/Card.java @@ -8,7 +8,7 @@ /** * . * @author leeis - * @date 2018/12/29 + * created on 2018/12/29 */ @Data public class Card implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CardUpdateResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CardUpdateResult.java index e5d04358d4..3a82067597 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CardUpdateResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CardUpdateResult.java @@ -7,7 +7,7 @@ /** * @author yqx - * @date 2018/11/07 + * created on 2018/11/07 */ @Data public class CardUpdateResult implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCard.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCard.java index df5290b218..3ab25b1c63 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCard.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCard.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCardCreateRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCardCreateRequest.java index ab4d54e477..59999a10d9 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCardCreateRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/CashCardCreateRequest.java @@ -11,7 +11,7 @@ * . * * @author leeis - * @date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCard.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCard.java index 60c7c911bd..edc0657017 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCard.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCard.java @@ -9,7 +9,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCardCreateRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCardCreateRequest.java index e125c19057..530365dea1 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCardCreateRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/DiscountCardCreateRequest.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCoupon.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCoupon.java index df8194a6ac..0e051b0e36 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCoupon.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCoupon.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCouponCreateRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCouponCreateRequest.java index b44dc74cf8..30ea5c6dab 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCouponCreateRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GeneralCouponCreateRequest.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCard.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCard.java index 1712b19eb7..b3377ce7d4 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCard.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCard.java @@ -8,7 +8,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data public final class GiftCard extends Card implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCardCreateRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCardCreateRequest.java index a757b00f48..48ad1bed27 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCardCreateRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GiftCardCreateRequest.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCard.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCard.java index ba343a435b..d5c6f5dcce 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCard.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCard.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCardCreateRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCardCreateRequest.java index 1f001549e7..db283b0650 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCardCreateRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/GrouponCardCreateRequest.java @@ -10,7 +10,7 @@ /** * . * @author leeis - * @Date 2018/12/29 + * created on 2018/12/29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/UserCard.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/UserCard.java index 5985988e01..83611370be 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/UserCard.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/UserCard.java @@ -7,7 +7,7 @@ /** * 用户已领卡圈对象 * @author yang229 - * @date 2019/12/22 + * created on 2019/12/22 */ @Data public class UserCard implements java.io.Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxMpCardDeleteResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxMpCardDeleteResult.java index 8eedbebf60..e2848f652d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxMpCardDeleteResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxMpCardDeleteResult.java @@ -6,7 +6,7 @@ * 删除卡券结果. * * @author fanxl - * @date 2019/1/22 0022 10:24 + * created on 2019/1/22 0022 10:24 */ public class WxMpCardDeleteResult extends BaseWxMpCardResult { private static final long serialVersionUID = -4367717540650523290L; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxUserCardListResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxUserCardListResult.java index e38c11564e..4cdd5a0d05 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxUserCardListResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxUserCardListResult.java @@ -11,7 +11,7 @@ * 用户已领卡券返回 * * @author yang229 - * @date 2019/12/22 + * created on 2019/12/22 */ @Data public class WxUserCardListResult implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardColor.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardColor.java index 0977cc9239..a694d4d372 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardColor.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardColor.java @@ -4,7 +4,7 @@ * 会员卡颜色 * * @author yuanqixun - * @date 2018-08-29 + * created on 2018-08-29 */ public enum CardColor { Color010("#63b359"), diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardFieldType.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardFieldType.java index 4134f3e543..42804b635b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardFieldType.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardFieldType.java @@ -4,7 +4,7 @@ * 微信卡券激活字段类型 * * @author yuanqixun - * @date 2018-08-30 + * created on 2018-08-30 */ public enum CardFieldType { COMMON_FIELD("微信选项"), diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardRichFieldType.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardRichFieldType.java index 40d4b79fac..7659864939 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardRichFieldType.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardRichFieldType.java @@ -4,7 +4,7 @@ * 会员卡富文本字段类型 * * @author yuanqixun - * @date 2018-08-30 + * created on 2018-08-30 */ public enum CardRichFieldType { FORM_FIELD_RADIO("自定义单选"), diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardWechatFieldType.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardWechatFieldType.java index 1d57bbda97..c34bd58ace 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardWechatFieldType.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardWechatFieldType.java @@ -4,7 +4,7 @@ * 微信卡券激活字段类型 * * @author yuanqixun - * @date 2018-08-30 + * created on 2018-08-30 */ public enum CardWechatFieldType { USER_FORM_INFO_FLAG_MOBILE("手机号"), diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParam.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParam.java index 1ce8ef128c..f4384a0c12 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParam.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParam.java @@ -5,7 +5,7 @@ /** * @author yqx - * @date 2018/9/19 + * created on 2018/9/19 */ @Data public class ActivatePluginParam { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParamResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParamResult.java index 8e7be799a4..b67c0147a4 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParamResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParamResult.java @@ -4,7 +4,7 @@ /** * @author yqx - * @date 2018/9/19 + * created on 2018/9/19 */ @Data public class ActivatePluginParamResult { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardActivateUserFormRequest.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardActivateUserFormRequest.java index 8dd758c372..d8634cfa3c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardActivateUserFormRequest.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardActivateUserFormRequest.java @@ -11,7 +11,7 @@ * 会员卡激活,用户字段提交请求 * * @author yuanqixun - * @date 2018-08-30 + * created on 2018-08-30 */ @Data public class MemberCardActivateUserFormRequest implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserForm.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserForm.java index 9edc0f89b4..0c0fae3e2b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserForm.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserForm.java @@ -15,7 +15,7 @@ * 用户表单对象. * * @author yuanqixun - * @date 2018-08-30 + * created on 2018-08-30 */ @Data public class MemberCardUserForm implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserFormRichField.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserFormRichField.java index a9837029df..9fedd7a535 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserFormRichField.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserFormRichField.java @@ -12,7 +12,7 @@ * 富文本字段. * * @author yuanqixun - * @date 2018-08-30 + * created on 2018-08-30 */ @Data public class MemberCardUserFormRichField { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserInfo.java index e411e19e96..ae75874f76 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserInfo.java @@ -6,7 +6,7 @@ /** * @author YuJian - * @date 2017/7/11 + * created on 2017/7/11 */ @Data public class MemberCardUserInfo implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/NameValues.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/NameValues.java index 32275e8ce6..759a2580ae 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/NameValues.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/NameValues.java @@ -7,7 +7,7 @@ /** * * @author YuJian - * @date 2017/7/11 + * created on 2017/7/11 */ @Data public class NameValues implements Serializable{ diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/WxMpMemberCardActivateTempInfoResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/WxMpMemberCardActivateTempInfoResult.java index 07b2d25719..85ef0f9f04 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/WxMpMemberCardActivateTempInfoResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/WxMpMemberCardActivateTempInfoResult.java @@ -6,7 +6,7 @@ /** * @author thomas - * @date 2019/4/26 + * created on 2019/4/26 */ @Data public class WxMpMemberCardActivateTempInfoResult { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/comment/WxMpCommentListVo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/comment/WxMpCommentListVo.java index 10d1dafcad..492df23057 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/comment/WxMpCommentListVo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/comment/WxMpCommentListVo.java @@ -11,7 +11,7 @@ * 群发图文评论数据. * * @author Binary Wang - * @date 2019-08-30 + * created on 2019-08-30 */ @Data public class WxMpCommentListVo implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/AbstractDeviceBean.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/AbstractDeviceBean.java index d49999c504..260edd61fd 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/AbstractDeviceBean.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/AbstractDeviceBean.java @@ -8,7 +8,7 @@ * 设备抽象类. * * @author keungtung - * @date 14/12/2016 + * created on 14/12/2016 */ public abstract class AbstractDeviceBean implements Serializable { private static final long serialVersionUID = 4359729626772515385L; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/BaseResp.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/BaseResp.java index 5c66b0cd60..a0b65c8842 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/BaseResp.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/BaseResp.java @@ -6,7 +6,7 @@ /** * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/RespMsg.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/RespMsg.java index 601f848223..8d2d59a29d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/RespMsg.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/RespMsg.java @@ -7,7 +7,7 @@ /** * * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/TransMsgResp.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/TransMsgResp.java index f2b35da5ea..f8fd517674 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/TransMsgResp.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/TransMsgResp.java @@ -8,7 +8,7 @@ /** * * @author keungtung. - * @date 14/12/2016 + * created on 14/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDevice.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDevice.java index 84c5b2d66d..d2d0c9c476 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDevice.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDevice.java @@ -7,7 +7,7 @@ /** * @author keungtung - * @date 10/12/2016 + * created on 10/12/2016 */ @Data public class WxDevice implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorize.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorize.java index 5e00c4faea..46f7f79c17 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorize.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorize.java @@ -10,7 +10,7 @@ /** * @author keungtung - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorizeResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorizeResult.java index 9608452ce1..1927a2e301 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorizeResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceAuthorizeResult.java @@ -8,7 +8,7 @@ /** * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBind.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBind.java index aeb7f819ce..009a567778 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBind.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBind.java @@ -6,7 +6,7 @@ /** * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindDeviceResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindDeviceResult.java index 6227a6ef44..0cdb83b04b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindDeviceResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindDeviceResult.java @@ -9,7 +9,7 @@ /** * @author keungtung. - * @date 16/12/2016 + * created on 16/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindResult.java index f6c702aa29..1c3303ac5d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBindResult.java @@ -7,7 +7,7 @@ /** * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceMsg.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceMsg.java index 2b554abc27..9b603eb4df 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceMsg.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceMsg.java @@ -7,7 +7,7 @@ /** * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceOpenIdResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceOpenIdResult.java index 95cf2a94ff..0158567e50 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceOpenIdResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceOpenIdResult.java @@ -9,7 +9,7 @@ /** * @author keungtung. - * @date 16/12/2016 + * created on 16/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceQrCodeResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceQrCodeResult.java index 816354818c..aca51bfc82 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceQrCodeResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceQrCodeResult.java @@ -7,7 +7,7 @@ /** * @author keungtung. - * @date 10/12/2016 + * created on 10/12/2016 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java index 400b228c0b..762657ff35 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpAddDraft.java @@ -16,7 +16,7 @@ * 草稿箱能力-新建草稿. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java index 2be78d6ab1..f9dcb23240 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftArticles.java @@ -15,7 +15,7 @@ * 草稿箱能力-图文素材文章实体. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java index 92a0c928d9..8520220e6f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftInfo.java @@ -16,7 +16,7 @@ * 草稿箱能力-获取草稿详情. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java index 0ae42b17f7..40f129322c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftItem.java @@ -10,7 +10,7 @@ * 一条草稿 * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data public class WxMpDraftItem implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java index 924ce4b048..b77f0f9325 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpDraftList.java @@ -11,7 +11,7 @@ * 草稿箱能力-获取草稿列表. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data public class WxMpDraftList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java index fa92a62397..9b5473936e 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/draft/WxMpUpdateDraft.java @@ -15,7 +15,7 @@ * 草稿箱能力-修改草稿. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java index 3c378934e5..13410642b2 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishArticles.java @@ -11,7 +11,7 @@ * 一条发布的图文记录 * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ @NoArgsConstructor @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java index 79205aab98..4abbb3456f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishInfo.java @@ -16,7 +16,7 @@ * 发布能力-通过 article_id 获取已发布文章. * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java index dfe953e5b4..c27ee24336 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishItem.java @@ -11,7 +11,7 @@ * 发布列表的一条记录 * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ @NoArgsConstructor @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java index c0c2e2dfba..e52ff6f2fc 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishList.java @@ -11,7 +11,7 @@ * 发布能力-获取成功发布列表. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Data public class WxMpFreePublishList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java index 033d300cba..844ad4b241 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/freepublish/WxMpFreePublishStatus.java @@ -15,7 +15,7 @@ * 发布能力-发布状态轮询接口,通过publishId返回 article_id(删除发布时需要用到). * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideAutoReply.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideAutoReply.java index 87ad3cb3fc..4874dab7bf 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideAutoReply.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideAutoReply.java @@ -12,7 +12,7 @@ * 关注顾问自动回复(欢迎语)添加实体 * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideBuyerInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideBuyerInfo.java index caac651070..23efa0a20a 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideBuyerInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpAddGuideBuyerInfo.java @@ -11,7 +11,7 @@ /** * 客户信息dto * @author 广州跨界-宋心成 - * @date 2021/5/11/011 + * created on 2021/5/11/011 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAcctConfig.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAcctConfig.java index fcd817a981..a0be253d1d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAcctConfig.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAcctConfig.java @@ -9,7 +9,7 @@ /** * 离线自动回复与敏感词 * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data public class WxMpGuideAcctConfig implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAutoReply.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAutoReply.java index b0ea06a46d..1cee5ebe90 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAutoReply.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideAutoReply.java @@ -11,7 +11,7 @@ * 关注顾问自动回复(欢迎语) * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data public class WxMpGuideAutoReply implements ToJson, Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfo.java index a692c7d15e..6e577a7313 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfo.java @@ -15,7 +15,7 @@ * 客户信息 * * @author 广州跨界-宋心成 - * @date 2021/5/10/010 + * created on 2021/5/10/010 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfoList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfoList.java index 530a7810c5..9476c2eded 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfoList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerInfoList.java @@ -10,7 +10,7 @@ /** * 顾问的客户列表 * @author 广州跨界-宋心成 - * @date 2021/5/11/011 + * created on 2021/5/11/011 */ @Data public class WxMpGuideBuyerInfoList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerRelation.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerRelation.java index f4609937a8..964e4ab339 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerRelation.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerRelation.java @@ -11,7 +11,7 @@ * 客户顾问关系 * * @author 广州跨界-宋心成 - * @date 2021/5/11/011 + * created on 2021/5/11/011 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerResp.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerResp.java index f0707ebd7a..6ace2e6057 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerResp.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideBuyerResp.java @@ -10,7 +10,7 @@ /** * 批量操作客户是否成功返回信息 * @author 广州跨界-宋心成 - * @date 2021/5/10/010 + * created on 2021/5/10/010 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideCardMaterialInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideCardMaterialInfo.java index 7c83432de4..c85bb4ef30 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideCardMaterialInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideCardMaterialInfo.java @@ -11,7 +11,7 @@ * 小程序素材信息 * * @author 广州跨界-宋心成 - * @date 2021/5/12/012 + * created on 2021/5/12/012 */ @Data public class WxMpGuideCardMaterialInfo implements ToJson, Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideConfig.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideConfig.java index 9ddaf7318f..da23fdbb0c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideConfig.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideConfig.java @@ -10,7 +10,7 @@ /** * 获取快捷回复,关注顾问自动回复返回类 * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data public class WxMpGuideConfig implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideFastReply.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideFastReply.java index 116ed91c70..e131380af9 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideFastReply.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideFastReply.java @@ -11,7 +11,7 @@ * 顾问快捷回复 * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data public class WxMpGuideFastReply implements ToJson, Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroup.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroup.java index f37677ea79..c3e0416fc0 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroup.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroup.java @@ -11,7 +11,7 @@ * 顾问分组信息 * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data public class WxMpGuideGroup implements ToJson, Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfo.java index 4173ad35d2..e579af9aa8 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfo.java @@ -15,7 +15,7 @@ * 分组顾问信息. * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfoList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfoList.java index 63e18b80d7..e4b1c1e867 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfoList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroupInfoList.java @@ -10,7 +10,7 @@ /** * 顾问分组内顾问信息 * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data public class WxMpGuideGroupInfoList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfo.java index 854d6ab8ac..da63bcea4b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfo.java @@ -10,7 +10,7 @@ /** * 图片素材信息 * @author 广州跨界-宋心成 - * @date 2021/5/12/012 + * created on 2021/5/12/012 */ @Data public class WxMpGuideImgMaterialInfo implements ToJson, Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfoList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfoList.java index f87900191d..2dc2bfc420 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfoList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideImgMaterialInfoList.java @@ -11,7 +11,7 @@ * 图片素材列表 * * @author 广州跨界-宋心成 - * @date 2021/5/12/012 + * created on 2021/5/12/012 */ @Data public class WxMpGuideImgMaterialInfoList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideInfo.java index b20b743ab4..3a6db16675 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideInfo.java @@ -15,7 +15,7 @@ * 对话能力-顾问信息. * * @author Binary Wang - * @date 2020-10-06 + * created on 2020-10-06 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideList.java index e550c34608..2802b9b7a5 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideList.java @@ -11,7 +11,7 @@ * 顾问列表. * * @author Binary Wang - * @date 2020-10-07 + * created on 2020-10-07 */ @Data public class WxMpGuideList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassed.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassed.java index 258793ccad..584eae3e27 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassed.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassed.java @@ -13,7 +13,7 @@ * 添加群发任务返回值 * * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Data public class WxMpGuideMassed implements ToJson, Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedBuyerInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedBuyerInfo.java index 58f6345f33..cf69140d87 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedBuyerInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedBuyerInfo.java @@ -11,7 +11,7 @@ * 下方客户状态信息 * * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedInfo.java index ddce7d6b73..c624d79538 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMassedInfo.java @@ -13,7 +13,7 @@ * 群发任务信息 * * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMaterialInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMaterialInfo.java index e7426fcc9c..21443aaa78 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMaterialInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMaterialInfo.java @@ -11,7 +11,7 @@ /** * 素材信息 * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsg.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsg.java index 37e1246579..052e4ef27f 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsg.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsg.java @@ -14,7 +14,7 @@ /** * 顾问聊天记录 * @author 广州跨界-宋心成 - * @date 2021/5/7/007 + * created on 2021/5/7/007 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsgList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsgList.java index 04e58b0c3d..14077cb3ed 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsgList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideMsgList.java @@ -10,7 +10,7 @@ /** * 顾问聊天记录列表 * @author 广州跨界-宋心成 - * @date 2021/5/7/007 + * created on 2021/5/7/007 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideOffLineReply.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideOffLineReply.java index 37ea15937f..8f7a79b67b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideOffLineReply.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideOffLineReply.java @@ -15,7 +15,7 @@ * 离线自动回复 * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideSensitiveWords.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideSensitiveWords.java index 3346def2b0..b1b6d78a02 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideSensitiveWords.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideSensitiveWords.java @@ -11,7 +11,7 @@ * 顾问敏感词 * * @author 广州跨界-宋心成 - * @date 2021/5/8/008 + * created on 2021/5/8/008 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideTagInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideTagInfo.java index 2d39ebcba3..dba026783b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideTagInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideTagInfo.java @@ -12,7 +12,7 @@ * 标签信息 * * @author 广州跨界-宋心成 - * @date 2021/5/11/011 + * created on 2021/5/11/011 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfo.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfo.java index 213615d547..1193caeacc 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfo.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfo.java @@ -9,7 +9,7 @@ /** 文字素材信息 * @author 广州跨界-宋心成 - * @date 2021/5/12/012 + * created on 2021/5/12/012 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfoList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfoList.java index 52ee16adad..861555c2ad 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfoList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideWordMaterialInfoList.java @@ -10,7 +10,7 @@ /** * 文字素材信息列表 * @author 广州跨界-宋心成 - * @date 2021/5/12/012 + * created on 2021/5/12/012 */ @Data public class WxMpGuideWordMaterialInfoList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgList.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgList.java index af5559ea42..737140d87a 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgList.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgList.java @@ -10,7 +10,7 @@ /** * * @author Binary Wang - * @date 2016/7/15 + * created on 2016/7/15 */ @Data public class WxMpKfMsgList implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgRecord.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgRecord.java index 325c66aa95..4ab34bd428 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgRecord.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfMsgRecord.java @@ -9,7 +9,7 @@ /** * * @author Binary Wang - * @date 2016/7/18 + * created on 2016/7/18 */ @Data public class WxMpKfMsgRecord implements Serializable { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessage.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessage.java index 30ad3153a3..d2695959e8 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessage.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessage.java @@ -11,7 +11,7 @@ /** * @author Mklaus - * @date 2018-01-22 下午12:18 + * created on 2018-01-22 下午12:18 */ @Data @NoArgsConstructor diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryEnum.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryEnum.java index 23ba2097e7..89eaa480cd 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryEnum.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryEnum.java @@ -10,7 +10,7 @@ * 模版消息行业枚举. * * @author Binary Wang - * @date 2019-10-18 + * created on 2019-10-18 */ @Getter @AllArgsConstructor diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/wifi/WxMpWifiShopDataResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/wifi/WxMpWifiShopDataResult.java index 50aec028d1..9a5610ce0b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/wifi/WxMpWifiShopDataResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/wifi/WxMpWifiShopDataResult.java @@ -11,7 +11,7 @@ * 门店Wi-Fi信息. * * @author Binary Wang - * @date 2019-06-16 + * created on 2019-06-16 */ @Data public class WxMpWifiShopDataResult { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/WxMpHostConfig.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/WxMpHostConfig.java index 819215240a..9fcbf42bcf 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/WxMpHostConfig.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/WxMpHostConfig.java @@ -9,7 +9,7 @@ * 微信接口地址域名部分的自定义设置信息. * * @author Binary Wang - * @date 2019-06-09 + * created on 2019-06-09 */ @Data @Builder diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpMapConfigImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpMapConfigImpl.java index 388f39b8fa..cd701d1efc 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpMapConfigImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpMapConfigImpl.java @@ -7,7 +7,7 @@ /** * @author Brayden Wong - * @date 2021/1/16 + * created on 2021/1/16 * 提供accesstoken保存在concurrenthashmap中的实现,支持高并发。仅限于单机部署。 */ @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedissonConfigImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedissonConfigImpl.java index f1aa6b9ca7..e0d9e92af1 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedissonConfigImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedissonConfigImpl.java @@ -12,7 +12,7 @@ /** * @author wuxingye - * @date 2020/6/12 + * created on 2020/6/12 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxCardType.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxCardType.java index 46cc43f887..568f3cdedb 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxCardType.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxCardType.java @@ -4,7 +4,7 @@ * 微信卡券类型. * * @author chenyixin - * @date 2019-09-07 23:33 + * created on 2019-09-07 23:33 **/ public enum WxCardType { MEMBER_CARD("MEMBER_CARD"), diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java index bb3d8eb43c..b5e0dd8847 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java @@ -2,7 +2,7 @@ /** * @author yd - * @date 2019-03-20 22:06 + * created on 2019-03-20 22:06 */ public class WxMpConfigStorageHolder { private static final ThreadLocal THREAD_LOCAL = new ThreadLocal() { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpSubscribeMessageGsonAdapter.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpSubscribeMessageGsonAdapter.java index 01ee3c9a4b..5212a4d037 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpSubscribeMessageGsonAdapter.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/json/WxMpSubscribeMessageGsonAdapter.java @@ -10,7 +10,7 @@ /** * @author Mklaus - * @date 2018-01-22 下午12:31 + * created on 2018-01-22 下午12:31 */ public class WxMpSubscribeMessageGsonAdapter implements JsonSerializer { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialDeleteOkhttpRequestExecutor.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialDeleteOkhttpRequestExecutor.java index 87d8c3df93..ed9aaa8a84 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialDeleteOkhttpRequestExecutor.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialDeleteOkhttpRequestExecutor.java @@ -18,7 +18,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class MaterialDeleteOkhttpRequestExecutor extends MaterialDeleteRequestExecutor { private final Logger logger = LoggerFactory.getLogger(this.getClass()); diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoApacheHttpRequestExecutor.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoApacheHttpRequestExecutor.java index d1326429df..7c4fccdd17 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoApacheHttpRequestExecutor.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoApacheHttpRequestExecutor.java @@ -24,7 +24,7 @@ * httpclient 实现的素材请求执行器. * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class MaterialNewsInfoApacheHttpRequestExecutor extends MaterialNewsInfoRequestExecutor { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoOkhttpRequestExecutor.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoOkhttpRequestExecutor.java index abee9055af..2e3f14dddd 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoOkhttpRequestExecutor.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/material/MaterialNewsInfoOkhttpRequestExecutor.java @@ -18,7 +18,7 @@ * . * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ @Slf4j public class MaterialNewsInfoOkhttpRequestExecutor extends MaterialNewsInfoRequestExecutor { diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/qrcode/QrCodeOkhttpRequestExecutor.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/qrcode/QrCodeOkhttpRequestExecutor.java index e6992e1e5e..f6f2036ce1 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/qrcode/QrCodeOkhttpRequestExecutor.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/requestexecuter/qrcode/QrCodeOkhttpRequestExecutor.java @@ -22,7 +22,7 @@ /** * * @author ecoolper - * @date 2017/5/5 + * created on 2017/5/5 */ public class QrCodeOkhttpRequestExecutor extends QrCodeRequestExecutor { private final Logger logger = LoggerFactory.getLogger(this.getClass()); diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImplTest.java index 8efb70f9e3..0109f676ae 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpCommentServiceImplTest.java @@ -18,7 +18,7 @@ * 测试类. * * @author Binary Wang - * @date 2019-06-16 + * created on 2019-06-16 */ @Test diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java index 193580a9f1..2413c7fcaf 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpDraftServiceImplTest.java @@ -21,7 +21,7 @@ * 草稿箱单元测试. * * @author dragon - * @date 2021-10-22 + * created on 2021-10-22 */ @Guice(modules = ApiTestModule.class) public class WxMpDraftServiceImplTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java index ff5cd0e5d3..1c0cfa900b 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpFreePublishServiceImplTest.java @@ -16,7 +16,7 @@ * 发布能力-单元测试. * * @author dragon - * @date 2021-10-23 + * created on 2021-10-23 */ @Guice(modules = ApiTestModule.class) public class WxMpFreePublishServiceImplTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImplTest.java index 6fd3dda3f0..675abe693b 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideBuyerServiceImplTest.java @@ -15,7 +15,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImplTest.java index 20621a34d4..111a8810c5 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMassedJobServiceImplTest.java @@ -17,7 +17,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImplTest.java index f1ffe8f9ff..58de66d5e2 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideMaterialServiceImplTest.java @@ -19,7 +19,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImplTest.java index 13ec80c168..b69d491750 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideServiceImplTest.java @@ -17,7 +17,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-10-06 + * created on 2020-10-06 */ @Guice(modules = ApiTestModule.class) public class WxMpGuideServiceImplTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImplTest.java index 6ba2fae1ff..c357406bb5 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGuideTagServiceImplTest.java @@ -16,7 +16,7 @@ /** * @author 广州跨界-宋心成 - * @date 2021/5/13/013 + * created on 2021/5/13/013 */ @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpMarketingServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpMarketingServiceImplTest.java index dd15496e16..75637ceaa5 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpMarketingServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpMarketingServiceImplTest.java @@ -13,7 +13,7 @@ * 测试类. * * @author Binary Wang - * @date 2019-07-14 + * created on 2019-07-14 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImplTest.java index 6004d3cbe2..3a094e4008 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOAuth2ServiceImplTest.java @@ -16,7 +16,7 @@ * 测试类. * * @author Binary Wang - * @date 2020-08-09 + * created on 2020-08-09 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImplTest.java index b3f45eb8d8..2cc8b80119 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpOcrServiceImplTest.java @@ -32,7 +32,7 @@ * 测试类. * * @author Binary Wang - * @date 2019-06-22 + * created on 2019-06-22 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImplTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImplTest.java index efa3e0a37d..79d705203f 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImplTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImplTest.java @@ -12,7 +12,7 @@ /** * @author Mklaus - * @date 2018-01-22 下午2:02 + * created on 2018-01-22 下午2:02 */ @Guice(modules = ApiTestModule.class) public class WxMpSubscribeMsgServiceImplTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/marketing/WxMpUserActionTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/marketing/WxMpUserActionTest.java index 3d18b1ebbc..500a9ed299 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/marketing/WxMpUserActionTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/marketing/WxMpUserActionTest.java @@ -9,7 +9,7 @@ * 老板加点注释吧. * * @author Binary Wang - * @date 2019-07-14 + * created on 2019-07-14 */ public class WxMpUserActionTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpGetSelfMenuInfoResultTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpGetSelfMenuInfoResultTest.java index 0b80ed083e..907bda15e1 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpGetSelfMenuInfoResultTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpGetSelfMenuInfoResultTest.java @@ -8,7 +8,7 @@ /** * @author Binary Wang - * @date 2019-08-05 + * created on 2019-08-05 */ public class WxMpGetSelfMenuInfoResultTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpMenuTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpMenuTest.java index 3577306608..bcbc071189 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpMenuTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/menu/WxMpMenuTest.java @@ -8,7 +8,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-11-05 + * created on 2020-11-05 */ public class WxMpMenuTest { diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessageTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessageTest.java index 61d3d6fa6f..078ad51570 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessageTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/subscribe/WxMpSubscribeMessageTest.java @@ -6,7 +6,7 @@ /** * @author Mklaus - * @date 2018-01-22 下午1:41 + * created on 2018-01-22 下午1:41 */ public class WxMpSubscribeMessageTest { @Test diff --git a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryTest.java b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryTest.java index c2ae722977..98999a5b1a 100644 --- a/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryTest.java +++ b/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/template/WxMpTemplateIndustryTest.java @@ -8,7 +8,7 @@ * 测试类. * * @author Binary Wang - * @date 2020-02-29 + * created on 2020-02-29 */ public class WxMpTemplateIndustryTest { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenFastMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenFastMaService.java index 2114d1a816..b94774f791 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenFastMaService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenFastMaService.java @@ -10,7 +10,7 @@ *
* * @author Hipple - * @date 2019/01/23 + * created on 2019/01/23 * @deprecated 2021-06-23 本接口原有方法并非仅快速创建小程序的专用接口,普通小程序授权到第三方平台皆可使用,所以请使用 {@link WxOpenMaBasicService} 类替代。获取方法: WxOpenComponentService.getWxMaServiceByAppid(maApppId).getBasicService() */ @Deprecated diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java index c79c1cc295..ceb7a6a884 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java @@ -18,7 +18,7 @@ *
* * @author yqx - * @date 2018 /9/12 + * created on 2018 /9/12 */ public interface WxOpenMaService extends WxMaService { /** diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java index 5f21a94af3..4109780194 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java @@ -5,7 +5,7 @@ /** * @author yangyidian - * @date 2020/01/09 + * created on 2020/01/09 **/ public abstract class AbstractWxOpenInRedisConfigStorage extends WxOpenInMemoryConfigStorage { protected static final String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:"; diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java index f7d8fdd45a..267a65c367 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedisTemplateConfigStorage.java @@ -17,7 +17,7 @@ * * * @author taneg - * @date 2021/05/13 11:12:35 + * created on 2021/05/13 11:12:35 */ public class WxOpenInRedisTemplateConfigStorage extends AbstractWxOpenInRedisConfigStorage { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedissonConfigStorage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedissonConfigStorage.java index 070d9ebf88..7a3a9d79af 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedissonConfigStorage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInRedissonConfigStorage.java @@ -10,7 +10,7 @@ /** * @author yangyidian - * @date 2020/01/06 + * created on 2020/01/06 **/ public class WxOpenInRedissonConfigStorage extends AbstractWxOpenInRedisConfigStorage { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java index 9bca8b5e95..a90430ce5c 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java @@ -35,7 +35,7 @@ * * @author 007 * @author yqx - * @date 2018-09-12 + * created on 2018-09-12 */ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaService { private final WxOpenComponentService wxOpenComponentService; diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java index ce7e3af845..6f599dc299 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java @@ -20,7 +20,7 @@ * oauth2接口实现. * * @author Binary Wang - * @date 2020-10-19 + * created on 2020-10-19 */ @AllArgsConstructor public class WxOpenOAuth2ServiceImpl extends WxOpenServiceImpl implements WxOAuth2Service { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitExtInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitExtInfo.java index 16439fa153..93d2a095b8 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitExtInfo.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenCommitExtInfo.java @@ -43,7 +43,7 @@ *

* * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxMaOpenCommitExtInfo implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenNetworkTimeout.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenNetworkTimeout.java index 9717f42af8..c1475fb7bc 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenNetworkTimeout.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenNetworkTimeout.java @@ -6,7 +6,7 @@ /** * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxMaOpenNetworkTimeout implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenPage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenPage.java index ca63fc3d8f..b1da3086df 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenPage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenPage.java @@ -6,7 +6,7 @@ /** * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxMaOpenPage implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTab.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTab.java index 48e1044db8..9c7ccf2233 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTab.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTab.java @@ -7,7 +7,7 @@ /** * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxMaOpenTab implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTabBar.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTabBar.java index 6245c0331d..06fb2997c9 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTabBar.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenTabBar.java @@ -13,7 +13,7 @@ * tabBar对象 * * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data @NoArgsConstructor diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenWindow.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenWindow.java index 4848f8c7b1..d96ff5cb43 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenWindow.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenWindow.java @@ -8,7 +8,7 @@ * window对象 * * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxMaOpenWindow implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaQrcodeParam.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaQrcodeParam.java index 2dafa037d6..998933264c 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaQrcodeParam.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaQrcodeParam.java @@ -11,7 +11,7 @@ * 微信小程序体验二维码参数 * * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxMaQrcodeParam { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaCategory.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaCategory.java index f5f68df143..bcfb073308 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaCategory.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaCategory.java @@ -10,7 +10,7 @@ * 微信小程序分类目录. * * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxOpenMaCategory implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaMember.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaMember.java index dc939373ab..a9af022e19 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaMember.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaMember.java @@ -8,7 +8,7 @@ * 微信开放平台小程序成员对象 * * @author yqx - * @date 2018/9/12 + * created on 2018/9/12 */ @Data public class WxOpenMaMember implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaPreviewInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaPreviewInfo.java index 47f8b37a3e..3975e2f4a7 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaPreviewInfo.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaPreviewInfo.java @@ -6,7 +6,7 @@ /** * @author zxfreedom * @description - * @date 2019/12/30 + * created on 2019/12/30 */ @Data public class WxOpenMaPreviewInfo { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaSubmitAudit.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaSubmitAudit.java index 9c9e712241..caea5eb8e2 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaSubmitAudit.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaSubmitAudit.java @@ -9,7 +9,7 @@ * 三方平台提交小程序代码审核 * * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxOpenMaSubmitAudit implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java index 202a422533..9603a1e563 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaSubmitAuditMessage.java @@ -12,7 +12,7 @@ * 微信小程序代码包提交审核(仅供第三方开发者代小程序调用) * * @author yqx - * @date 2018/9/13 + * created on 2018/9/13 */ @Data public class WxOpenMaSubmitAuditMessage implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java index 51604ee648..f80249d8d0 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxAmpLinkResult.java @@ -12,7 +12,7 @@ * 公众号关联的小程序 * * @author zhongjun - * @date 2022/4/29 + * created on 2022/4/29 **/ @Data diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaCategoryListResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaCategoryListResult.java index 262f79b487..afef19761a 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaCategoryListResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaCategoryListResult.java @@ -12,7 +12,7 @@ * 微信开放平台小程序分类目录列表返回 * * @author yqx - * @date 2018/9/12 + * created on 2018/9/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaDomainResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaDomainResult.java index feccc786b6..86879f7a69 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaDomainResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaDomainResult.java @@ -10,7 +10,7 @@ * 微信开放平台小程序域名设置返回对象. * * @author yqx - * @date 2018/9/12 + * created on 2018/9/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaPageListResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaPageListResult.java index 9f7ee95f72..6c6acda55e 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaPageListResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaPageListResult.java @@ -11,7 +11,7 @@ * 微信开放平台小程序第三方提交代码的页面配置列表. * * @author yqx - * @date 2018/9/12 + * created on 2018/9/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaQueryAuditResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaQueryAuditResult.java index 3f01aa745c..de5167d32e 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaQueryAuditResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaQueryAuditResult.java @@ -8,7 +8,7 @@ * . * * @author yqx - * @date 2018/10/3 + * created on 2018/10/3 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaSubmitAuditResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaSubmitAuditResult.java index 69774e8e4f..2645ecb915 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaSubmitAuditResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaSubmitAuditResult.java @@ -8,7 +8,7 @@ * 微信开放平台小程序发布代码审核结果. * * @author yqx - * @date 2018/9/12 + * created on 2018/9/12 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaTesterListResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaTesterListResult.java index 014381ea4f..755abed61a 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaTesterListResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenMaTesterListResult.java @@ -12,7 +12,7 @@ * 微信开放平台小程序体验者列表返回. * * @author yqx - * @date 2018/9/12 + * created on 2018/9/12 */ @Data @EqualsAndHashCode(callSuper = false) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenResult.java index 90433d945c..1bb810a193 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenResult.java @@ -11,7 +11,7 @@ * 基础的微信开放平台请求结果. * * @author yqx - * @date 2018/10/1 + * created on 2018/10/1 */ @Data public class WxOpenResult implements Serializable { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java index f2ed02f251..30bf9127c9 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenVersioninfoResult.java @@ -12,7 +12,7 @@ * 小程序版本信息 * * @author cocoa - * @date 20220727 + * created on 20220727 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeApacheHttpRequestExecutor.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeApacheHttpRequestExecutor.java index 7f9b7694e5..c95748f8a1 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeApacheHttpRequestExecutor.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeApacheHttpRequestExecutor.java @@ -25,7 +25,7 @@ /** * @author yqx - * @date 2018-09-13 + * created on 2018-09-13 */ public class MaQrCodeApacheHttpRequestExecutor extends MaQrCodeRequestExecutor { public MaQrCodeApacheHttpRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeJoddHttpRequestExecutor.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeJoddHttpRequestExecutor.java index fc664483e6..5eddf762b1 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeJoddHttpRequestExecutor.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeJoddHttpRequestExecutor.java @@ -24,7 +24,7 @@ /** * @author yqx - * @date 2018-09-13 + * created on 2018-09-13 */ public class MaQrCodeJoddHttpRequestExecutor extends MaQrCodeRequestExecutor { public MaQrCodeJoddHttpRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeOkhttpRequestExecutor.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeOkhttpRequestExecutor.java index 4b8a754502..77816949d6 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeOkhttpRequestExecutor.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeOkhttpRequestExecutor.java @@ -20,7 +20,7 @@ /** * @author yqx - * @date 2018-09-13 + * created on 2018-09-13 */ public class MaQrCodeOkhttpRequestExecutor extends MaQrCodeRequestExecutor { public MaQrCodeOkhttpRequestExecutor(RequestHttp requestHttp) { diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeRequestExecutor.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeRequestExecutor.java index ac02c1ec3d..d37c31d05e 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeRequestExecutor.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/executor/MaQrCodeRequestExecutor.java @@ -15,7 +15,7 @@ * 获得小程序体验QrCode图片 请求执行器. * * @author yqx - * @date 2018-09-13 + * created on 2018-09-13 */ public abstract class MaQrCodeRequestExecutor implements RequestExecutor { protected RequestHttp requestHttp; diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java index aa73448156..85fdac4b6e 100644 --- a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenComponentServiceImplTest.java @@ -19,7 +19,7 @@ * 单元测试类. * * @author Binary Wang - * @date 2020-06-06 + * created on 2020-06-06 */ @Guice(modules = ApiTestModule.class) public class WxOpenComponentServiceImplTest { diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenFastMaServiceImplTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenFastMaServiceImplTest.java index e5a255be1d..7cf3961006 100644 --- a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenFastMaServiceImplTest.java +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenFastMaServiceImplTest.java @@ -4,7 +4,7 @@ /** * @author Binary Wang - * @date 2020-06-06 + * created on 2020-06-06 */ public class WxOpenFastMaServiceImplTest { diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImplTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImplTest.java index 5e5f3e6682..4d8e41b59e 100644 --- a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImplTest.java +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImplTest.java @@ -4,7 +4,7 @@ /** * @author Binary Wang - * @date 2020-06-06 + * created on 2020-06-06 */ public class WxOpenMaServiceImplTest { diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImplTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImplTest.java index c32eb1fcfe..e65a662411 100644 --- a/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImplTest.java +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImplTest.java @@ -9,7 +9,7 @@ * 单元测试. * * @author Binary Wang - * @date 2020-10-19 + * created on 2020-10-19 */ public class WxOpenOAuth2ServiceImplTest { private final WxOpenOAuth2ServiceImpl service = new WxOpenOAuth2ServiceImpl("123", ""); diff --git a/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java b/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java index 63c4533355..0baf92f0be 100644 --- a/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java +++ b/weixin-java-open/src/test/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerInfoResultTest.java @@ -6,7 +6,7 @@ /** * @title: 获取授权帐号详情 信息反序列化测试 * @author: trifolium - * @date: 2022/6/7 + * created on : 2022/6/7 * @modified : */ public class WxOpenAuthorizerInfoResultTest { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java index 005963b875..89756b07d5 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankInfo.java @@ -9,7 +9,7 @@ * 银行信息 * * @author zhongjun - * @date 2022/5/12 + * created on 2022/5/12 **/ @Data public class BankInfo { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java index 2e8f23db16..48125557e6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailRequest.java @@ -13,7 +13,7 @@ * 查询投诉单详情请求实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java index a76c924057..84b662ac42 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintDetailResult.java @@ -13,7 +13,7 @@ * 查询投诉单列表接口 和 查询投诉单详情接口返回的实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data public class ComplaintDetailResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java index 28a51bd02a..19c9e16174 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlRequest.java @@ -13,7 +13,7 @@ * 投诉通知请求实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java index 5254201e69..bc7e066d31 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintNotifyUrlResult.java @@ -14,7 +14,7 @@ * 投诉通知地址返回的实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data public class ComplaintNotifyUrlResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java index b53a1b590a..9b66e6ba37 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintRequest.java @@ -13,7 +13,7 @@ * 查询投诉单列表请求实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java index 1ee346d53e..5167d1dc54 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ComplaintResult.java @@ -12,7 +12,7 @@ * 查询投诉单列表返回的实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data public class ComplaintResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java index a4d066df93..b9789ba5a0 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/CompleteRequest.java @@ -14,7 +14,7 @@ * 反馈处理完成请求实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java index 3362e4a92f..16c9326936 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryRequest.java @@ -13,7 +13,7 @@ * 查询投诉协商历史请求实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java index b6f265fd86..4c9cca78f7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/NegotiationHistoryResult.java @@ -12,7 +12,7 @@ * 查询投诉单协商历史返回的实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data public class NegotiationHistoryResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java index 57684ec0bb..6f582b9301 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/complaint/ResponseRequest.java @@ -15,7 +15,7 @@ * 提交回复请求实体 * * @author jmdhappy - * @date 2022-3-19 + * created on 2022-3-19 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FinishOrderRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FinishOrderRequest.java index 0ab6b526e7..4994abcb24 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FinishOrderRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FinishOrderRequest.java @@ -12,7 +12,7 @@ * * * @author f00lish - * @date 2020/09/12 + * created on 2020/09/12 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBalanceResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBalanceResult.java index af1d77ad75..a18a3d0f26 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBalanceResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBalanceResult.java @@ -6,7 +6,7 @@ /** * @author f00lish - * @date 2020/09/12 + * created on 2020/09/12 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillRequest.java index c47a9a045f..95ce55f7d8 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillRequest.java @@ -9,7 +9,7 @@ * 资金账单请求 * * @author f00lish - * @date 2020/09/28 + * created on 2020/09/28 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillResult.java index 54ab3a1653..206cd1218b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBillResult.java @@ -9,7 +9,7 @@ * 资金账单结果 * * @author f00lish - * @date 2020/09/28 + * created on 2020/09/28 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsCloseRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsCloseRequest.java index 0222e7145a..c09c1aede6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsCloseRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsCloseRequest.java @@ -10,7 +10,7 @@ * 关闭普通订单请求 * * @author f00lish - * @date 2020/12/09 + * created on 2020/12/09 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java index b2d8bc4c18..9aca9d1df2 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java @@ -10,7 +10,7 @@ * 查询订单剩余待分金额API 请求对象 * * @author mshyh - * @date 2022/05/26 + * created on 2022/05/26 */ diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java index 0469965a48..a0c1a6f342 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountResult.java @@ -10,7 +10,7 @@ * 查询订单剩余待分金额API 结果响应 * * @author mshyh - * @date 2022/05/26 + * created on 2022/05/26 */ @Data diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingRequest.java index 1ae90c6b80..e41bbe7ed7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingRequest.java @@ -15,7 +15,7 @@ * * * @author f00lish - * @date 2020/09/12 + * created on 2020/09/12 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java index 6cadd8d823..8ce2db1a08 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingResult.java @@ -11,7 +11,7 @@ * 请求分账 结果响应 * * @author f00lish - * @date 2020/09/12 + * created on 2020/09/12 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java index e026a403ee..96e6c22fab 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsRequest.java @@ -12,7 +12,7 @@ * * * * @author f00lish - * @date 2020/09/14 + * created on 2020/09/14 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java index b1139be565..9637587409 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundsResult.java @@ -2,7 +2,7 @@ /** * @author f00lish - * @date 2020/09/17 + * created on 2020/09/17 */ import com.google.gson.annotations.SerializedName; @@ -19,7 +19,7 @@ * * * * @author f00lish - * @date 2020/09/14 + * created on 2020/09/14 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersQueryRequest.java index 6eec6d8f2f..0b488da4a3 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersQueryRequest.java @@ -12,7 +12,7 @@ * * * * @author wangrui - * @date 2021/02/20 + * created on 2021/02/20 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersRequest.java index 6c0197b722..e3e7c98e34 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersRequest.java @@ -12,7 +12,7 @@ * * * * @author f00lish - * @date 2020/09/14 + * created on 2020/09/14 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java index c833b17337..b136844f86 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersResult.java @@ -9,7 +9,7 @@ /** * @author f00lish - * @date 2020/09/14 + * created on 2020/09/14 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawStatusResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawStatusResult.java index 1165722bf9..3f0ade6b23 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawStatusResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawStatusResult.java @@ -13,7 +13,7 @@ * * * @author f00lish - * @date 2020/10/27 + * created on 2020/10/27 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubWithdrawStatusResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubWithdrawStatusResult.java index d76d4a5124..c835a1d3a0 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubWithdrawStatusResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubWithdrawStatusResult.java @@ -13,7 +13,7 @@ * * * @author f00lish - * @date 2020/10/27 + * created on 2020/10/27 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java index f42127e824..f01079cc73 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java @@ -9,7 +9,7 @@ * 交易账单请求 * * @author f00lish - * @date 2020/09/28 + * created on 2020/09/28 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillResult.java index 477c83aa38..e337bc8e0a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillResult.java @@ -9,7 +9,7 @@ * 交易账单结果 * * @author f00lish - * @date 2020/09/28 + * created on 2020/09/28 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/FundBillTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/FundBillTypeEnum.java index a5058e2ba7..c728cd8bfd 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/FundBillTypeEnum.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/FundBillTypeEnum.java @@ -7,7 +7,7 @@ * 账单类型 * * @author f00lish - * @date 2020/09/28 + * created on 2020/09/28 */ @Getter @AllArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/SpAccountTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/SpAccountTypeEnum.java index aa53db6c39..25d1148f02 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/SpAccountTypeEnum.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/SpAccountTypeEnum.java @@ -7,7 +7,7 @@ * 服务商账户类型 * * @author f00lish - * @date 2020/09/12 + * created on 2020/09/12 */ @Getter @AllArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryRequest.java index 74e5b4b1a0..87300e8178 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryRequest.java @@ -11,7 +11,7 @@ * 红包发送记录查询请求 * * @author wuyong - * @date 2019-12-01 17:19 + * created on 2019-12-01 17:19 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryResult.java index 996b4a51d1..ab61f72d6f 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackQueryResult.java @@ -13,7 +13,7 @@ * 红包发送记录查询返回 * * @author wuyong - * @date 2019-12-01 17:23 + * created on 2019-12-01 17:23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java index 7f78e66b25..6ccaece292 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackRequest.java @@ -12,7 +12,7 @@ * 发送企业红包 * * @author wuyong - * @date 2019-12-1 + * created on 2019-12-1 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackResult.java index b6c2229d03..5d80354a01 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/entpay/EntPayRedpackResult.java @@ -13,7 +13,7 @@ * 企业微信红包返回 * * @author wuyong - * @date 2019-12-01 11:31 + * created on 2019-12-01 11:31 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java index 2de2168504..cef3e10c1d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java index 5318e5315b..56cc5f7a8a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthRecordResult.java @@ -18,7 +18,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java index 7557248691..f9ffd6c00a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/AuthenticationsResult.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java index 04fe709649..7870c6f376 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/7 + * created on 2021/12/7 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java index a587d27f0c..9da71743ab 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/MerchantIncomeRecordsResult.java @@ -18,7 +18,7 @@ * * * @author xiaoqiang - * @date 2021/12/7 + * created on 2021/12/7 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java index f266bdb17b..0a4f1cd941 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/7 + * created on 2021/12/7 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java index 90d7d6cc15..80b630303a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PartnerIncomeRecordsResult.java @@ -18,7 +18,7 @@ * * * @author xiaoqiang - * @date 2021/12/7 + * created on 2021/12/7 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java index 80d0ed9f4d..9bd1278dc1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java index dbe909ac69..04b5c6dd25 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderResult.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java index 5f4e8ae57b..1556fbc343 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java index 235ac056d5..10873d0d3b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PreOrderWithAuthResult.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java index e2d77abb2f..33d13f6816 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java index 70225850c7..172e983c35 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/RelationsResult.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java index f1c9d3abdc..c178707abf 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/SubFundFlowBillResult.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/7 + * created on 2021/12/7 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java index f760a10f95..e8e41ce7c1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensRequest.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java index c49286436d..28ff1db685 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/TokensResult.java @@ -17,7 +17,7 @@ * * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java index aeb778f690..9aa51ce742 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsRequest.java @@ -18,7 +18,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java index 5c77281e78..437def08f2 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchDetailsResult.java @@ -21,7 +21,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java index 904fc2d03a..9f53843d66 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberRequest.java @@ -13,7 +13,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java index 9f1036d229..1defcca943 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BatchNumberResult.java @@ -15,7 +15,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java index a6f98e6aa1..ea83328308 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/BillReceiptResult.java @@ -15,7 +15,7 @@ * 请求方式:POST * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java index 639b2cd572..50ca1feac7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/DownloadRequest.java @@ -16,7 +16,7 @@ * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java index 6c54cbc9c9..1f4d8134f4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsRequest.java @@ -15,7 +15,7 @@ * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java index 75d1243e4c..114b1982c3 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ElectronicReceiptsResult.java @@ -15,7 +15,7 @@ * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java index 3a1e3ed80d..fe6450b22e 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/MerchantBatchRequest.java @@ -15,7 +15,7 @@ * 接口规则:https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay-1.shtml * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java index 9a25f4ac8c..bd06b5db4b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferRequest.java @@ -14,7 +14,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java index 9ecc6a7a57..cca369b408 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/PartnerTransferResult.java @@ -13,7 +13,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java index 967ba4f155..deda24d426 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/transfer/ReceiptBillRequest.java @@ -13,7 +13,7 @@ * * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java index d547471b8f..00447432b6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/BatchesQueryResult.java @@ -14,7 +14,7 @@ * The type Batches query result. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java index adfc8585fc..9016e892e8 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillRequest.java @@ -13,7 +13,7 @@ * The type Detail electronic bill request. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java index 3199a3ed06..ff70c06cc8 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailElectronicBillResult.java @@ -13,7 +13,7 @@ * 查询转账明细电子回单受理结果响应实体 * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java index b7bca954cf..79dbd3ace6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/DetailsQueryResult.java @@ -13,7 +13,7 @@ * 微信明细单号查询明细单 响应实体、 * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java index 66ca59e4bc..363c0e357e 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillApplyRequest.java @@ -13,7 +13,7 @@ * The type Electronic bill apply request. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java index 699f66c3c7..aaff96ad43 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/ElectronicBillResult.java @@ -13,7 +13,7 @@ * The type Electronic bill result. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java index a123db2305..0fec61e870 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantBatchesQueryRequest.java @@ -13,7 +13,7 @@ * The type Merchant batches query request. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java index d9ae599c33..335fcb7ae4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/MerchantDetailsQueryRequest.java @@ -13,7 +13,7 @@ * The type Merchant details query request. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java index 946f0d67df..da6b9c4287 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateRequest.java @@ -15,7 +15,7 @@ * The type Transfer create request. * * @author glz - * @date 2022-5-26 + * created on 2022-5-26 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java index e5b057a797..f2417c4687 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/TransferCreateResult.java @@ -13,7 +13,7 @@ * The type Transfer create result. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java index 1cf4697f47..ff672c93c6 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxBatchesQueryRequest.java @@ -13,7 +13,7 @@ * The type Wx batches query request. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java index 6216bed53e..f81826e024 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/merchanttransfer/WxDetailsQueryRequest.java @@ -13,7 +13,7 @@ * The type Wx details query request. * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java index c947a9ddc1..58a2eb66b7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java @@ -11,7 +11,7 @@ * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_11.shtml * * @author Wang_Wong - * @date 2022-08-15 + * created on 2022-08-15 */ @Data @Builder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java index b52c2abc1b..94f62fbead 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java @@ -10,7 +10,7 @@ * 明细. * * @author doger.wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Location.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Location.java index b3c82f7d96..a73a69ce11 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Location.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Location.java @@ -10,7 +10,7 @@ * 服务位置信息. * * @author doger.wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java index 82afdb4ce6..9711645ecc 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java @@ -10,7 +10,7 @@ * 微信支付分确认订单跟支付回调对象 * * @author doger.wang - * @date 2020/5/14 12:18 + * created on 2020/5/14 12:18 */ @NoArgsConstructor @Data diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostDiscount.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostDiscount.java index ebd2cf2b39..be41bd7289 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostDiscount.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostDiscount.java @@ -10,7 +10,7 @@ * 后付费商户优惠. * * @author doger.wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostPayment.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostPayment.java index e40960a056..7583a67088 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostPayment.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PostPayment.java @@ -11,7 +11,7 @@ * 后付费项目. * * @author doger.wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/RiskFund.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/RiskFund.java index c6bd840186..e4e9ab1a3f 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/RiskFund.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/RiskFund.java @@ -10,7 +10,7 @@ * 订单风险金信息. * * @author doger.wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java index a0a27693d7..034609f44c 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java @@ -11,7 +11,7 @@ * 服务时间范围. * * @author doger.wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java index 8948d3d4c3..a125acf7fd 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java @@ -10,7 +10,7 @@ /** * @author hallkk - * @date 2022/05/18 + * created on 2022/05/18 */ @Data @SuperBuilder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java index d8a350efef..45c7032d1a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java @@ -7,7 +7,7 @@ /** * @author hallkk - * @date 2022/05/18 + * created on 2022/05/18 */ @Data @NoArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java index 295b7000eb..e14f38af99 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java @@ -15,7 +15,7 @@ /** * @author doger.wang - * @date 2020/5/12 16:36 + * created on 2020/5/12 16:36 */ @Data @SuperBuilder diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java index 713e5d3149..2f16d2148d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java @@ -11,7 +11,7 @@ /** * @author doger.wang - * @date 2020/5/12 17:05 + * created on 2020/5/12 17:05 */ @NoArgsConstructor @Data diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryRequest.java index d8b1ff9619..0381fe64a5 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryRequest.java @@ -12,7 +12,7 @@ /** * @author : cofedream - * @date : 2020-12-28 + * created on : 2020-12-28 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryResult.java index 5b57124b37..fa0c4c3fb5 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingMerchantRatioQueryResult.java @@ -11,7 +11,7 @@ /** * @author : cofedream - * @date : 2020-12-28 + * created on : 2020-12-28 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryRequest.java index 5718860f9f..455f72f2b0 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryRequest.java @@ -11,7 +11,7 @@ /** * @author : cofedream - * @date : 2020-12-29 + * created on : 2020-12-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryResult.java index 64d6c99b3a..b877cce979 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingOrderAmountQueryResult.java @@ -11,7 +11,7 @@ /** * @author : cofedream - * @date : 2020-12-29 + * created on : 2020-12-29 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java index 01017a8ee1..9417858429 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReceiver.java @@ -13,7 +13,7 @@ * * 微信V3接口 分账接收方实体 * @author pg - * @date 2021-6-25 + * created on 2021-6-25 * */ @Data diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java index da3b1b2bd3..93f2f164d8 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingRequest.java @@ -14,7 +14,7 @@ * 请求分账API请求实体 * * @author pg - * @date 2021-6-24 + * created on 2021-6-24 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java index 536ddd3c6e..05ad9c25b7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingResult.java @@ -12,7 +12,7 @@ * 请求分账API返回的分账结果实体 * * @author pg - * @date 2021-6-24 + * created on 2021-6-24 */ @Data public class ProfitSharingResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java index a880e7c7b4..a35a08964a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnRequest.java @@ -13,7 +13,7 @@ * 请求分账回退API请求实体 * * @author pg - * @date 2021-6-25 + * created on 2021-6-25 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java index 756dba6726..a6e43d4f33 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingReturnResult.java @@ -10,7 +10,7 @@ * 请求分账回退API返回实体 * * @author pg - * @date 2021-6-25 + * created on 2021-6-25 */ @Data public class ProfitSharingReturnResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java index 0005c69334..6167c8a3ea 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeRequest.java @@ -13,7 +13,7 @@ * 解冻剩余资金API请求实体 * * @author pg - * @date 2021-6-25 + * created on 2021-6-25 */ @Data @Builder(builderMethodName = "newBuilder") diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java index 160b0b450e..d79573c83e 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnfreezeResult.java @@ -11,7 +11,7 @@ * 解冻剩余资金API返回实体 * * @author pg - * @date 2021-6-25 + * created on 2021-6-25 */ @Data public class ProfitSharingUnfreezeResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnsplitResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnsplitResult.java index 2cec40d2be..1e50a87b44 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnsplitResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharingV3/ProfitSharingUnsplitResult.java @@ -10,7 +10,7 @@ * 查询剩余待分金额API返回实体 * * @author pg - * @date 2021-6-25 + * created on 2021-6-25 */ @Data public class ProfitSharingUnsplitResult implements Serializable { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxH5EntrustRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxH5EntrustRequest.java index 57f34eb136..ac60b31e33 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxH5EntrustRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxH5EntrustRequest.java @@ -9,7 +9,7 @@ /** * @author chenliang - * @date 2021-08-02 5:12 下午 + * created on 2021-08-02 5:12 下午 * *
  *   微信h5纯签约入参
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMaEntrustRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMaEntrustRequest.java
index 0a9e8c2f24..33dc7ef8e0 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMaEntrustRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMaEntrustRequest.java
@@ -13,7 +13,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:13 下午
+ * created on  2021-08-02 5:13 下午
  * 
  *   小程序纯签约入参
  * 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMpEntrustRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMpEntrustRequest.java index 0344f36d86..32e06109de 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMpEntrustRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxMpEntrustRequest.java @@ -10,7 +10,7 @@ /** * @author chenliang - * @date 2021-08-02 5:17 下午 + * created on 2021-08-02 5:17 下午 * *
  *   公众号纯签约入参
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayEntrustRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayEntrustRequest.java
index 764e0e56af..9de5bfe72a 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayEntrustRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayEntrustRequest.java
@@ -9,7 +9,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:18 下午
+ * created on  2021-08-02 5:18 下午
  * 
  *   支付中签约入参
  * 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayQueryExchangeRateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayQueryExchangeRateRequest.java index c4b453b9bd..96b8c3a5c9 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayQueryExchangeRateRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayQueryExchangeRateRequest.java @@ -11,7 +11,7 @@ * 查询汇率请求. * * @author Binary Wang - * @date 2020-05-23 + * created on 2020-05-23 */ @Data @EqualsAndHashCode(callSuper = true) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java index bc9032433c..1ba01c4af7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPreWithholdRequest.java @@ -10,7 +10,7 @@ /** * @author chenliang - * @date 2021-08-02 5:20 下午 + * created on 2021-08-02 5:20 下午 * *
  *   微信预扣款请求参数
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxSignQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxSignQueryRequest.java
index 3ecee3fe81..9f5450407c 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxSignQueryRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxSignQueryRequest.java
@@ -11,7 +11,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:23 下午
+ * created on  2021-08-02 5:23 下午
  * 
  *   微信签约状态查询入参
  * 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxTerminatedContractRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxTerminatedContractRequest.java index 2ebd96e780..90fb498acf 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxTerminatedContractRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxTerminatedContractRequest.java @@ -11,7 +11,7 @@ /** * @author chenliang - * @date 2021-08-02 5:24 下午 + * created on 2021-08-02 5:24 下午 * *
  *   微信api申请解约
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdOrderQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdOrderQueryRequest.java
index a94e0a4c16..66bd45b3c3 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdOrderQueryRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdOrderQueryRequest.java
@@ -9,7 +9,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:25 下午
+ * created on  2021-08-02 5:25 下午
  *
  * 
代扣订单查询参数
*/ diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdRequest.java index d31e3a36ed..6431781928 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxWithholdRequest.java @@ -9,7 +9,7 @@ /** * @author chenliang - * @date 2021-08-02 5:26 下午 + * created on 2021-08-02 5:26 下午 * *
  *   发起微信委托代扣参数
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java
index e39e71f866..15ffebaa6f 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxH5EntrustResult.java
@@ -10,7 +10,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:37 下午
+ * created on  2021-08-02 5:37 下午
  *
  * 
  *   h5纯签约后结果
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java
index 417eb85661..5d5d85e05e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayEntrustResult.java
@@ -19,7 +19,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:38 下午
+ * created on  2021-08-02 5:38 下午
  *
  * 
  *   支付中签约返回结果
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayQueryExchangeRateResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayQueryExchangeRateResult.java
index c6f9409933..45c23fd2d7 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayQueryExchangeRateResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayQueryExchangeRateResult.java
@@ -12,7 +12,7 @@
  * 汇率查询响应.
  *
  * @author Binary Wang
- * @date 2020-05-23
+ * created on  2020-05-23
  */
 @Data
 @EqualsAndHashCode(callSuper = true)
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundPromotionDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundPromotionDetail.java
index 414560b936..7fa4b630a7 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundPromotionDetail.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundPromotionDetail.java
@@ -10,7 +10,7 @@
  * 营销详情	.
  *
  * @author Binary Wang
- * @date 2020-06-07
+ * created on  2020-06-07
  */
 @Data
 public class WxPayRefundPromotionDetail implements Serializable {
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java
index d04f47a9dc..66530171fe 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignQueryResult.java
@@ -12,7 +12,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:40 下午
+ * created on  2021-08-02 5:40 下午
  *
  * 
  *   微信签约查询返回结果
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java
index 0c0b48ecd4..c02cb36da0 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxSignStatusNotifyResult.java
@@ -14,7 +14,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 4:59 下午
+ * created on  2021-08-02 4:59 下午
  * 
  *   微信签约/解约 回调结果
  * 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxTerminationContractResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxTerminationContractResult.java index 77067d0213..e51aed714c 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxTerminationContractResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxTerminationContractResult.java @@ -11,7 +11,7 @@ /** * @author chenliang - * @date 2021-08-02 5:41 下午 + * created on 2021-08-02 5:41 下午 * *
  *   主动解约返回值
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdNotifyResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdNotifyResult.java
index 87cbfd1b71..86c487a8cd 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdNotifyResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdNotifyResult.java
@@ -21,7 +21,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:09 下午
+ * created on  2021-08-02 5:09 下午
  *
  * 
  *   微信代扣扣款回调结果
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdOrderQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdOrderQueryResult.java
index 752bf7e64a..f625462e16 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdOrderQueryResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdOrderQueryResult.java
@@ -13,7 +13,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:42 下午
+ * created on  2021-08-02 5:42 下午
  *
  * 
  *   代扣订单查询结果
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdResult.java
index a2c4dcf055..9b2cdd7882 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxWithholdResult.java
@@ -11,7 +11,7 @@
 
 /**
  * @author chenliang
- * @date 2021-08-02 5:39 下午
+ * created on  2021-08-02 5:39 下午
  *
  * 
  *   委托扣款返回值
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java
index 48401ce9c8..bfc9857599 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesRequest.java
@@ -11,7 +11,7 @@
  * 查询微信批次单号查询批次单API参数
  *
  * @author zhongjun
- * @date 2022/6/17
+ * created on  2022/6/17
  **/
 @Data
 @Builder(builderMethodName = "newBuilder")
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java
index 59a2f30fc4..2dddba7c87 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/QueryTransferBatchesResult.java
@@ -11,7 +11,7 @@
  * 查询微信批次单号查询批次单API响应
  *
  * @author zhongjun
- * @date 2022/6/17
+ * created on  2022/6/17
  **/
 @Data
 @NoArgsConstructor
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java
index c2188c611e..82d7b61e7a 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesRequest.java
@@ -14,7 +14,7 @@
  * 发起商家转账API参数
  *
  * @author zhongjun
- * @date 2022/6/17
+ * created on  2022/6/17
  **/
 @Data
 @Builder(builderMethodName = "newBuilder")
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java
index 70b9a279d1..56146df154 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBatchesResult.java
@@ -10,7 +10,7 @@
  * 商家转账结果
  *
  * @author zhongjun
- * @date 2022/6/17
+ * created on  2022/6/17
  **/
 @Data
 @NoArgsConstructor
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfigHolder.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfigHolder.java
index 98d064475e..2fd7260767 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfigHolder.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfigHolder.java
@@ -4,7 +4,7 @@
  * 微信支付配置策略.
  *
  * @author zenghao
- * @date 2021/3/12
+ * created on  2021/3/12
  */
 public class WxPayConfigHolder {
 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java
index 2b3b1c937d..ed9b77e0cf 100755
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayHttpProxy.java
@@ -7,7 +7,7 @@
  * 微信支付 HTTP Proxy 正向代理配置
  *
  * @author Long Yu
- * @date 2021-12-28 15:49:03
+ * created on  2021-12-28 15:49:03
  */
 public class WxPayHttpProxy implements Serializable {
 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java
index 044ae39361..c8d94acd42 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/EcommerceService.java
@@ -15,7 +15,7 @@
  * 
* * @author cloudX - * @date 2020 /08/17 + * created on 2020 /08/17 */ public interface EcommerceService { /** diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java index 049253acac..585a96e763 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/MerchantTransferService.java @@ -7,7 +7,7 @@ * 商家转账到零钱(直联商户) * * @author glz - * @date 2022-6-11 + * created on 2022-6-11 */ public interface MerchantTransferService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java index e55b83785d..4faa284aa1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java @@ -15,7 +15,7 @@ * (即需在应用场景中使用过一次,钱包才会出现支付分入口) * * @author hallkk - * @date 2022/05/18 + * created on 2022/05/18 */ public interface PartnerPayScoreService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java index 0bfc96cf3f..b7397605ac 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerTransferService.java @@ -12,7 +12,7 @@ * 微信批量转账到零钱【V3接口】服务商API * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ public interface PartnerTransferService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java index be9c64f2e1..3cd2fe921b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java @@ -7,7 +7,7 @@ * 微工卡-对接微信api * * @author xiaoqiang - * @date 2021/12/7 14:26 + * created on 2021/12/7 14:26 */ public interface PayrollService { /** diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java index 501e933973..7150d6f307 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/ProfitSharingV3Service.java @@ -8,7 +8,7 @@ * 微信支付V3-资金应用-分账 * * @author pg 2021-6-23 - * @date 2021-6-23 + * created on 2021-6-23 */ public interface ProfitSharingV3Service { /** diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/RedpackService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/RedpackService.java index 131205d07a..cf1adf1f21 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/RedpackService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/RedpackService.java @@ -12,7 +12,7 @@ * 红包相关接口. * * @author Binary Wang - * @date 2019-12-26 + * created on 2019-12-26 */ public interface RedpackService { /** diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java index b2516ebe61..8f29f7dce9 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/TransferService.java @@ -7,7 +7,7 @@ * 商家转账到零钱 * * @author zhongjun - * @date 2022/6/17 + * created on 2022/6/17 **/ public interface TransferService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java index b51f8dde1d..24a5c3bec1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxEntrustPapService.java @@ -11,7 +11,7 @@ *
* * @author chenliang - * @date 2021 -08-02 4:50 下午 + * created on 2021 -08-02 4:50 下午 */ public interface WxEntrustPapService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java index 0a6317e3a3..7c8959b0c8 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImpl.java @@ -12,7 +12,7 @@ /** * @author glz - * @date 2022/6/11 + * created on 2022/6/11 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java index 48ea1b2f6b..7ca51d1db7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreServiceImpl.java @@ -28,7 +28,7 @@ /** * @author hallkk - * @date 2022/05/18 + * created on 2022/05/18 */ @RequiredArgsConstructor public class PartnerPayScoreServiceImpl implements PartnerPayScoreService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java index 8e2a372a58..38e4276e84 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImpl.java @@ -21,7 +21,7 @@ * 批量转账到零钱(服务商) * * @author xiaoqiang - * @date 2021-12-06 + * created on 2021-12-06 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java index 4181e74f26..ed36bd7f08 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImpl.java @@ -28,7 +28,7 @@ /** * @author doger.wang - * @date 2020/5/14 9:43 + * created on 2020/5/14 9:43 */ @RequiredArgsConstructor public class PayScoreServiceImpl implements PayScoreService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java index 51947a2747..5708e8579d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java @@ -17,7 +17,7 @@ * 微信支付-微工卡 * * @author xiaoqiang - * @date 2021/12/2 + * created on 2021/12/2 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImpl.java index 03ce8333e2..2bdc15b6f7 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImpl.java @@ -17,7 +17,7 @@ * 老板加点注释吧. * * @author Binary Wang - * @date 2019-12-26 + * created on 2019-12-26 */ @RequiredArgsConstructor public class RedpackServiceImpl implements RedpackService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java index 82882b42f6..b328ded73e 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/TransferServiceImpl.java @@ -16,7 +16,7 @@ * 商家转账到零钱 * * @author zhongjun - * @date 2022/6/17 + * created on 2022/6/17 **/ @RequiredArgsConstructor public class TransferServiceImpl implements TransferService { diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java index 7a2c0f4505..0b4dba893b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceImpl.java @@ -15,7 +15,7 @@ /** * @author chenliang - * @date 2021-08-02 4:53 下午 + * created on 2021-08-02 4:53 下午 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java index 7e24cde80c..290aca302b 100755 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/util/HttpProxyUtils.java @@ -13,7 +13,7 @@ * 微信支付 HTTP Proxy 工具类 * * @author Long Yu - * @date 2021-12-28 15:58:03 + * created on 2021-12-28 15:58:03 */ public class HttpProxyUtils { diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/entpay/EntPayRequestTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/entpay/EntPayRequestTest.java index 5cd4dcdc10..b6f68b81c1 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/entpay/EntPayRequestTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/entpay/EntPayRequestTest.java @@ -6,7 +6,7 @@ * . * * @author Binary Wang - * @date 2019-08-18 + * created on 2019-08-18 */ public class EntPayRequestTest { diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java index 1245c0a151..c15898b835 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponseTest.java @@ -9,7 +9,7 @@ * WxPayNotifyResponse 测试. * * @author Binary Wang - * @date 2019-06-30 + * created on 2019-06-30 */ @Slf4j public class WxPayNotifyResponseTest { diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java index 6976bba38c..757f2aafa3 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java @@ -4,7 +4,7 @@ /** * @author Binary Wang - * @date 2020-07-11 + * created on 2020-07-11 */ public class WxPayScoreRequestTest { @Test diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryResultTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryResultTest.java index 386101fed0..3211313687 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryResultTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryResultTest.java @@ -10,7 +10,7 @@ * 测试. * * @author Binary Wang - * @date 2020-03-22 + * created on 2020-03-22 */ @Test public class ProfitSharingQueryResultTest { diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/request/WxPayRefundRequestTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/request/WxPayRefundRequestTest.java index 1118edea87..7adeb5a7b8 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/request/WxPayRefundRequestTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/request/WxPayRefundRequestTest.java @@ -6,7 +6,7 @@ /** * @author Binary Wang - * @date 2020-06-07 + * created on 2020-06-07 */ public class WxPayRefundRequestTest { diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java index fd7eb66c95..d578fcab93 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/MerchantTransferServiceImplTest.java @@ -14,7 +14,7 @@ /** * 商家转账到零钱(直连商户) * @author glz - * @date 2022/6/11 + * created on 2022/6/11 */ @Slf4j @Test diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java index 9c7b1cb541..fc7b9b9501 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerTransferServiceImplTest.java @@ -20,7 +20,7 @@ * 批量转账到零钱(服务商) * * @author xiaoqiang - * @date 2021/12/9 + * created on 2021/12/9 */ @Slf4j @Test diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImplTest.java index 425cf99c6c..3682d06f3e 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayScoreServiceImplTest.java @@ -14,7 +14,7 @@ * 测试代码,待补充完善. * * @author Binary Wang - * @date 2020-05-19 + * created on 2020-05-19 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java index 406d1fdf12..2254bc6128 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java @@ -17,7 +17,7 @@ * 微工卡(服务商) * * @author xiaoqiang - * @date 2021/12/9 + * created on 2021/12/9 */ @Slf4j @Test diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImplTest.java index 161135b51f..b572518e95 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/RedpackServiceImplTest.java @@ -18,7 +18,7 @@ * 测试类. * * @author Binary Wang - * @date 2019-12-26 + * created on 2019-12-26 */ @Slf4j @Test diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java index 654276a278..7f89bd4721 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferServiceImplTest.java @@ -17,7 +17,7 @@ * 获取商家转账到零钱服务类API测试 * * @author zhongjun - * @date 2022/6/17 + * created on 2022/6/17 **/ @Slf4j @Test diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceTest.java index 9323108963..6be405897a 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceTest.java @@ -14,7 +14,7 @@ /** * @author chenliang - * @date 2021-08-02 6:45 下午 + * created on 2021-08-02 6:45 下午 */ @Test @Guice(modules = ApiTestModule.class) diff --git a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/bean/WxQidianHostConfig.java b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/bean/WxQidianHostConfig.java index 677348863d..881538b9d0 100644 --- a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/bean/WxQidianHostConfig.java +++ b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/bean/WxQidianHostConfig.java @@ -9,7 +9,7 @@ * 企点接口地址域名部分的自定义设置信息. * * @author alegria - * @date 2020-12-24 + * created on 2020-12-24 */ @Data @Builder diff --git a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/config/impl/WxQidianRedissonConfigImpl.java b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/config/impl/WxQidianRedissonConfigImpl.java index 876922e061..ffb4033b4c 100644 --- a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/config/impl/WxQidianRedissonConfigImpl.java +++ b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/config/impl/WxQidianRedissonConfigImpl.java @@ -12,7 +12,7 @@ /** * @author wuxingye - * @date 2020/6/12 + * created on 2020/6/12 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java index 9ce4366b99..ec2e872942 100644 --- a/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java +++ b/weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java @@ -2,7 +2,7 @@ /** * @author alegria - * @date 2020年12月26日 + * created on 2020年12月26日 */ public class WxQidianConfigStorageHolder { private static final ThreadLocal THREAD_LOCAL = new ThreadLocal() { From 1dfde627721328e53bc4fee19fda34c20fec39e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BF=8A=E9=9C=96?= Date: Tue, 23 Aug 2022 16:17:08 +0800 Subject: [PATCH 333/622] =?UTF-8?q?accessToken=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20is=5Fsnapshotuser=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java index 0ab32d6574..4faf9df375 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java @@ -30,6 +30,9 @@ public class WxOAuth2AccessToken implements Serializable { @SerializedName("scope") private String scope; + @SerializedName("is_snapshotuser") + private Integer snapshotUser; + /** * https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&announce_id=11513156443eZYea&version=&lang=zh_CN. * 本接口在scope参数为snsapi_base时不再提供unionID字段。 From 3abaa2c1d1c8e80ff2fbc7244a7200be5eb372a8 Mon Sep 17 00:00:00 2001 From: imyzt Date: Tue, 23 Aug 2022 22:04:50 +0800 Subject: [PATCH 334/622] =?UTF-8?q?:bug:=20#2788=20`unoinId`=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20Integer=20=E6=BA=A2=E5=87=BA=E5=AF=BC=E8=87=B4GSON?= =?UTF-8?q?=E6=8A=9B=E5=87=BANumberFormatException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/safety/response/WxMaUserSafetyRiskRankResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java index 1a3a5d1f5d..afec04a3a8 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/safety/response/WxMaUserSafetyRiskRankResponse.java @@ -26,7 +26,7 @@ public class WxMaUserSafetyRiskRankResponse implements Serializable { * 唯一请求标识,标记单次请求 */ @SerializedName("unoin_id") - private Integer unoinId; + private Long unoinId; /** * 用户风险等级 From d39062353cfe510e1eaee0da705039a1744b5aa4 Mon Sep 17 00:00:00 2001 From: 0katekate0 <1960779692@qq.com> Date: Thu, 25 Aug 2022 01:12:32 +0800 Subject: [PATCH 335/622] =?UTF-8?q?[=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1]f?= =?UTF-8?q?ix=E5=AE=B6=E6=A0=A1=E5=BA=94=E7=94=A8single=5Fchoice=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=AD=97=E6=AE=B5=20#2792?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../school/health/WxCpGetReportAnswer.java | 7 +- .../weixin/cp/api/WxCpSchoolHealthTest.java | 64 ++++++++++++++++++- 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java index a016ad1ef4..052f8b28d8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/health/WxCpGetReportAnswer.java @@ -12,8 +12,9 @@ /** * 获取用户填写答案. + * https://developer.work.weixin.qq.com/document/path/93679 * - * @author Wang_Wong + * @author Wang_Wong */ @Data public class WxCpGetReportAnswer extends WxCpBaseResp implements Serializable { @@ -63,8 +64,8 @@ public static class ReportValue implements Serializable { @SerializedName("question_id") private Integer questionId; - @SerializedName("single_chose") - private Integer singleChose; + @SerializedName("single_choice") + private Integer singleChoice; @SerializedName("multi_choice") private List multiChoice; diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java index 52896d37e6..8beebe8602 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthTest.java @@ -40,8 +40,68 @@ public void test() throws WxErrorException { String currDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); - // Test - String reportAnswerStr = "{\"errcode\":0,\"errmsg\":\"ok\",\"answers\":[{\"id_type\":1,\"userid\":\"userid2\",\"report_time\":123456789,\"report_values\":[{\"question_id\":1,\"single_choice\":2},{\"question_id\":2,\"text\":\"广东省广州市\"},{\"question_id\":3,\"multi_choice\":[1,3]},{\"question_id\":4,\"fileid\":[\"XXXXXXX\"]}]},{\"id_type\":2,\"student_userid\":\"student_userid1\",\"parent_userid\":\"parent_userid1\",\"report_time\":123456789,\"report_values\":[{\"question_id\":1,\"single_choice\":1},{\"question_id\":2,\"text\":\"广东省深圳市\"},{\"question_id\":3,\"multi_choice\":[1,2,3]},{\"question_id\":4,\"fileid\":[\"XXXXXXX\"]}]}]}"; + // Test Json + String reportAnswerStr = "{\n" + + " \"errcode\": 0,\n" + + " \"errmsg\": \"ok\",\n" + + " \"answers\":[\n" + + "\t\t{\n" + + "\t\t\t\"id_type\": 1,\n" + + "\t\t\t\"userid\": \"userid2\",\n" + + "\t\t\t\"report_time\": 123456789,\n" + + "\t\t\t\"report_values\": [\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 1,\n" + + "\t\t\t\t\t\"single_choice\": 2\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 2,\n" + + "\t\t\t\t\t\"text\": \"广东省广州市\"\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 3,\n" + + "\t\t\t\t\t\"multi_choice\": [\n" + + "\t\t\t\t\t\t1, 3\n" + + "\t\t\t\t\t]\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 4,\n" + + "\t\t\t\t\t\"fileid\": [\n" + + " \"XXXXXXX\"\n" + + " ]\n" + + "\t\t\t\t}\n" + + "\t\t\t]\n" + + "\t\t},\n" + + "\t\t{\n" + + "\t\t\t\"id_type\": 2,\n" + + "\t\t\t\"student_userid\": \"student_userid1\",\n" + + "\t\t\t\"parent_userid\": \"parent_userid1\",\n" + + "\t\t\t\"report_time\": 123456789,\n" + + "\t\t\t\"report_values\":[\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 1,\n" + + "\t\t\t\t\t\"single_choice\": 1\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 2,\n" + + "\t\t\t\t\t\"text\": \"广东省深圳市\"\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 3,\n" + + "\t\t\t\t\t\"multi_choice\":[\n" + + "\t\t\t\t\t\t1,2,3\n" + + "\t\t\t\t\t]\n" + + "\t\t\t\t},\n" + + "\t\t\t\t{\n" + + "\t\t\t\t\t\"question_id\": 4,\n" + + "\t\t\t\t\t\"fileid\": [\n" + + " \"XXXXXXX\"\n" + + " ]\n" + + "\t\t\t\t}\n" + + "\t\t\t]\n" + + "\t\t}\n" + + "\t]\n" + + "}"; WxCpGetReportAnswer getReportAnswer = WxCpGetReportAnswer.fromJson(reportAnswerStr); log.info("获取对应的getReportAnswer:{}", getReportAnswer.toJson()); From 4d526dbd7a286c040a10fdaf75517cd84a21ce2f Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 25 Aug 2022 16:47:47 +0800 Subject: [PATCH 336/622] =?UTF-8?q?:art:=20=E6=89=B9=E9=87=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=83=A8=E5=88=86javadoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/tencent/wework/Finance.java | 334 ++++--- .../weixin/cp/api/WxCpAgentService.java | 14 +- .../cp/api/WxCpAgentWorkBenchService.java | 25 +- .../weixin/cp/api/WxCpChatService.java | 6 +- .../weixin/cp/api/WxCpDepartmentService.java | 8 +- .../weixin/cp/api/WxCpExportService.java | 7 +- .../cp/api/WxCpExternalContactService.java | 281 +++--- .../weixin/cp/api/WxCpGroupRobotService.java | 7 +- .../chanjar/weixin/cp/api/WxCpKfService.java | 156 ++- .../weixin/cp/api/WxCpLivingService.java | 45 +- .../weixin/cp/api/WxCpMediaService.java | 22 +- .../weixin/cp/api/WxCpMenuService.java | 20 +- .../weixin/cp/api/WxCpMessageService.java | 9 +- .../weixin/cp/api/WxCpMsgAuditService.java | 34 +- .../weixin/cp/api/WxCpOAuth2Service.java | 22 +- .../weixin/cp/api/WxCpOaAgentService.java | 11 +- .../weixin/cp/api/WxCpOaCalendarService.java | 7 +- .../cp/api/WxCpOaMeetingRoomService.java | 7 +- .../weixin/cp/api/WxCpOaScheduleService.java | 3 +- .../chanjar/weixin/cp/api/WxCpOaService.java | 57 +- .../weixin/cp/api/WxCpOaWeDriveService.java | 121 ++- .../cp/api/WxCpSchoolHealthService.java | 27 +- .../weixin/cp/api/WxCpSchoolService.java | 85 +- .../weixin/cp/api/WxCpSchoolUserService.java | 185 ++-- .../me/chanjar/weixin/cp/api/WxCpService.java | 30 +- .../chanjar/weixin/cp/api/WxCpTagService.java | 12 +- .../weixin/cp/api/WxCpTaskCardService.java | 26 +- .../weixin/cp/api/WxCpUserService.java | 15 +- .../cp/api/impl/BaseWxCpServiceImpl.java | 72 +- .../impl/WxCpAgentWorkBenchServiceImpl.java | 9 +- .../cp/api/impl/WxCpChatServiceImpl.java | 2 +- .../cp/api/impl/WxCpExportServiceImpl.java | 5 +- .../impl/WxCpExternalContactServiceImpl.java | 35 +- .../api/impl/WxCpGroupRobotServiceImpl.java | 3 +- .../weixin/cp/api/impl/WxCpKfServiceImpl.java | 36 +- .../cp/api/impl/WxCpLivingServiceImpl.java | 3 +- .../cp/api/impl/WxCpMediaServiceImpl.java | 7 +- .../cp/api/impl/WxCpMessageServiceImpl.java | 3 +- .../cp/api/impl/WxCpMsgAuditServiceImpl.java | 36 +- .../cp/api/impl/WxCpOAuth2ServiceImpl.java | 11 +- .../cp/api/impl/WxCpOaAgentServiceImpl.java | 3 +- .../api/impl/WxCpOaCalendarServiceImpl.java | 3 +- .../impl/WxCpOaMeetingRoomServiceImpl.java | 6 +- .../api/impl/WxCpOaOaScheduleServiceImpl.java | 3 +- .../weixin/cp/api/impl/WxCpOaServiceImpl.java | 18 +- .../cp/api/impl/WxCpOaWeDriveServiceImpl.java | 9 +- .../api/impl/WxCpSchoolHealthServiceImpl.java | 6 +- .../cp/api/impl/WxCpSchoolServiceImpl.java | 3 +- .../api/impl/WxCpSchoolUserServiceImpl.java | 12 +- .../impl/WxCpServiceApacheHttpClientImpl.java | 7 +- .../cp/api/impl/WxCpServiceJoddHttpImpl.java | 4 +- .../cp/api/impl/WxCpServiceOkHttpImpl.java | 7 +- .../cp/api/impl/WxCpServiceOnTpImpl.java | 3 +- .../cp/api/impl/WxCpTagServiceImpl.java | 4 +- .../cp/api/impl/WxCpTaskCardServiceImpl.java | 10 +- .../me/chanjar/weixin/cp/bean/Gender.java | 6 + .../me/chanjar/weixin/cp/bean/WxCpAgent.java | 23 + .../weixin/cp/bean/WxCpAgentWorkBench.java | 10 +- .../chanjar/weixin/cp/bean/WxCpBaseResp.java | 25 +- .../me/chanjar/weixin/cp/bean/WxCpDepart.java | 11 + .../weixin/cp/bean/WxCpInviteResult.java | 6 + .../cp/bean/WxCpMaJsCode2SessionResult.java | 6 + .../weixin/cp/bean/WxCpOauth2UserInfo.java | 2 +- .../weixin/cp/bean/WxCpProviderToken.java | 9 +- .../me/chanjar/weixin/cp/bean/WxCpTag.java | 11 + .../bean/WxCpTagAddOrRemoveUsersResult.java | 11 + .../weixin/cp/bean/WxCpTagGetResult.java | 11 + .../cp/bean/WxCpTaskCardUpdateResult.java | 9 +- .../chanjar/weixin/cp/bean/WxCpTpAdmin.java | 11 +- .../weixin/cp/bean/WxCpTpAuthInfo.java | 15 + .../weixin/cp/bean/WxCpTpContactSearch.java | 9 +- .../cp/bean/WxCpTpContactSearchResp.java | 19 +- .../me/chanjar/weixin/cp/bean/WxCpTpCorp.java | 11 + .../chanjar/weixin/cp/bean/WxCpTpDepart.java | 11 + .../cp/bean/WxCpTpPermanentCodeInfo.java | 16 +- .../weixin/cp/bean/WxCpTpPreauthCode.java | 15 +- .../cp/bean/WxCpTpProlongTryResult.java | 4 +- .../me/chanjar/weixin/cp/bean/WxCpTpTag.java | 10 +- .../bean/WxCpTpTagAddOrRemoveUsersResult.java | 8 +- .../weixin/cp/bean/WxCpTpTagGetResult.java | 8 +- .../weixin/cp/bean/WxCpTpUserDetail.java | 8 + .../weixin/cp/bean/WxCpTpUserInfo.java | 9 +- .../weixin/cp/bean/WxCpTpXmlPackage.java | 15 + .../me/chanjar/weixin/cp/bean/WxCpUser.java | 36 + .../cp/bean/WxCpUserExternalContactInfo.java | 30 + .../cp/bean/WxCpUseridToOpenUserid.java | 7 +- .../cp/bean/WxCpUseridToOpenUseridResult.java | 7 +- .../chanjar/weixin/cp/bean/WxTpLoginInfo.java | 26 +- .../cp/bean/export/WxCpExportRequest.java | 13 +- .../cp/bean/export/WxCpExportResult.java | 8 +- .../cp/bean/external/WxCpAddMomentResult.java | 9 +- .../cp/bean/external/WxCpAddMomentTask.java | 8 +- .../cp/bean/external/WxCpContactWayInfo.java | 31 + .../bean/external/WxCpContactWayResult.java | 6 + .../bean/external/WxCpExternalUserIdList.java | 12 +- .../bean/external/WxCpGetMomentComments.java | 12 +- .../external/WxCpGetMomentCustomerList.java | 9 +- .../cp/bean/external/WxCpGetMomentList.java | 9 +- .../external/WxCpGetMomentSendResult.java | 9 +- .../cp/bean/external/WxCpGetMomentTask.java | 12 +- .../external/WxCpGetMomentTaskResult.java | 18 +- .../bean/external/WxCpGroupJoinWayInfo.java | 38 +- .../bean/external/WxCpGroupJoinWayResult.java | 11 +- .../WxCpGroupWelcomeTemplateResult.java | 9 +- .../bean/external/WxCpInterceptRuleResp.java | 30 +- .../external/WxCpInterceptRuleResultResp.java | 11 +- .../cp/bean/external/WxCpMsgTemplate.java | 11 + .../external/WxCpMsgTemplateAddResult.java | 11 + .../external/WxCpNewExternalUserIdList.java | 12 +- .../bean/external/WxCpProductAlbumInfo.java | 11 + .../external/WxCpProductAlbumListResult.java | 6 + .../bean/external/WxCpProductAlbumResult.java | 6 + .../external/WxCpUpdateRemarkRequest.java | 8 +- .../external/WxCpUserExternalContactList.java | 36 + .../WxCpUserExternalGroupChatInfo.java | 23 +- .../WxCpUserExternalGroupChatList.java | 14 +- .../WxCpUserExternalGroupChatStatistic.java | 15 +- ...WxCpUserExternalGroupChatTransferResp.java | 21 +- .../WxCpUserExternalTagGroupInfo.java | 19 +- .../WxCpUserExternalTagGroupList.java | 14 + .../WxCpUserExternalUnassignList.java | 12 +- ...WxCpUserExternalUserBehaviorStatistic.java | 12 +- .../external/WxCpUserTransferCustomerReq.java | 8 +- .../WxCpUserTransferCustomerResp.java | 20 +- .../external/WxCpUserTransferResultResp.java | 23 +- .../WxCpUserWithExternalPermission.java | 8 + .../cp/bean/external/WxCpWelcomeMsg.java | 8 +- .../external/contact/ExternalContact.java | 21 +- .../bean/external/contact/FollowedUser.java | 6 +- .../contact/WxCpExternalContactBatchInfo.java | 9 + .../contact/WxCpExternalContactInfo.java | 6 + .../contact/WxCpGroupMsgListResult.java | 9 + .../external/contact/WxCpGroupMsgResult.java | 9 + .../contact/WxCpGroupMsgSendResult.java | 9 + .../contact/WxCpGroupMsgTaskResult.java | 9 + .../cp/bean/external/moment/CustomerItem.java | 2 + .../external/moment/ExternalContactList.java | 3 + .../cp/bean/external/moment/MomentInfo.java | 2 + .../cp/bean/external/moment/SenderList.java | 2 + .../cp/bean/external/moment/VisibleRange.java | 2 + .../cp/bean/external/msg/Attachment.java | 27 + .../weixin/cp/bean/external/msg/File.java | 5 +- .../weixin/cp/bean/external/msg/Image.java | 3 +- .../weixin/cp/bean/external/msg/Link.java | 3 +- .../weixin/cp/bean/external/msg/Location.java | 3 +- .../cp/bean/external/msg/MiniProgram.java | 3 +- .../weixin/cp/bean/external/msg/Text.java | 3 +- .../weixin/cp/bean/external/msg/Video.java | 3 +- .../cp/bean/external/product/Attachment.java | 5 + .../weixin/cp/bean/kf/WxCpKfAccountAdd.java | 3 +- .../cp/bean/kf/WxCpKfAccountAddResp.java | 9 +- .../weixin/cp/bean/kf/WxCpKfAccountDel.java | 3 +- .../weixin/cp/bean/kf/WxCpKfAccountLink.java | 3 +- .../cp/bean/kf/WxCpKfAccountLinkResp.java | 9 +- .../cp/bean/kf/WxCpKfAccountListResp.java | 13 +- .../weixin/cp/bean/kf/WxCpKfAccountUpd.java | 3 +- .../bean/kf/WxCpKfCustomerBatchGetResp.java | 14 +- .../kf/WxCpKfGetCorpStatisticRequest.java | 5 +- .../bean/kf/WxCpKfGetCorpStatisticResp.java | 20 +- .../weixin/cp/bean/kf/WxCpKfMsgListResp.java | 26 +- .../cp/bean/kf/WxCpKfMsgSendRequest.java | 12 +- .../weixin/cp/bean/kf/WxCpKfMsgSendResp.java | 11 +- .../cp/bean/kf/WxCpKfServiceStateResp.java | 11 +- .../bean/kf/WxCpKfServiceStateTransResp.java | 11 +- .../kf/WxCpKfServiceUpgradeConfigResp.java | 20 +- .../cp/bean/kf/WxCpKfServicerListResp.java | 17 +- .../cp/bean/kf/WxCpKfServicerOpResp.java | 16 +- .../cp/bean/kf/msg/WxCpKfBusinessCardMsg.java | 5 +- .../weixin/cp/bean/kf/msg/WxCpKfEventMsg.java | 5 +- .../weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java | 5 +- .../cp/bean/kf/msg/WxCpKfLocationMsg.java | 5 +- .../weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java | 20 +- .../cp/bean/kf/msg/WxCpKfMiniProgramMsg.java | 5 +- .../cp/bean/kf/msg/WxCpKfResourceMsg.java | 5 +- .../weixin/cp/bean/kf/msg/WxCpKfTextMsg.java | 5 +- .../cp/bean/license/WxCpTpLicenseAccount.java | 5 +- .../license/WxCpTpLicenseAccountCount.java | 10 +- .../license/WxCpTpLicenseAccountDuration.java | 6 +- .../license/WxCpTpLicenseActiveAccount.java | 5 +- .../license/WxCpTpLicenseActiveCodeInfo.java | 4 +- .../license/WxCpTpLicenseBaseAccount.java | 9 +- .../license/WxCpTpLicenseCorpAccount.java | 5 +- .../license/WxCpTpLicenseInvalidAccount.java | 5 +- .../cp/bean/license/WxCpTpLicenseOrder.java | 9 +- .../license/WxCpTpLicenseSimpleOrder.java | 10 +- .../bean/license/WxCpTpLicenseTransfer.java | 6 +- .../WxCpTpLicenseActiveInfoByUserResp.java | 10 +- .../WxCpTpLicenseBatchActiveResultResp.java | 12 +- .../WxCpTpLicenseBatchCodeInfoResp.java | 10 +- .../WxCpTpLicenseBatchTransferResp.java | 11 +- .../account/WxCpTpLicenseCodeInfoResp.java | 10 +- .../WxCpTpLicenseCorpAccountListResp.java | 10 +- .../order/WxCpTpLicenseCreateOrderResp.java | 12 +- .../order/WxCpTpLicenseNewOrderRequest.java | 14 +- .../WxCpTpLicenseOrderAccountListResp.java | 11 +- .../order/WxCpTpLicenseOrderInfoResp.java | 11 +- .../order/WxCpTpLicenseOrderListResp.java | 11 +- .../WxCpTpLicenseRenewOrderJobRequest.java | 11 +- .../order/WxCpTpLicenseRenewOrderJobResp.java | 13 +- .../order/WxCpTpLicenseRenewOrderRequest.java | 10 +- .../bean/living/WxCpLivingCreateRequest.java | 28 +- .../weixin/cp/bean/living/WxCpLivingInfo.java | 11 + .../bean/living/WxCpLivingModifyRequest.java | 14 +- .../cp/bean/living/WxCpLivingResult.java | 25 + .../cp/bean/living/WxCpLivingShareInfo.java | 11 + .../weixin/cp/bean/living/WxCpWatchStat.java | 20 + .../cp/bean/message/WxCpAppChatMessage.java | 7 + .../bean/message/WxCpGroupRobotMessage.java | 8 +- .../bean/message/WxCpLinkedCorpMessage.java | 11 +- .../WxCpLinkedCorpMessageSendResult.java | 9 +- .../weixin/cp/bean/message/WxCpMessage.java | 29 + .../bean/message/WxCpMessageSendResult.java | 21 + .../message/WxCpMessageSendStatistics.java | 12 +- .../message/WxCpSchoolContactMessage.java | 11 +- .../WxCpSchoolContactMessageSendResult.java | 9 +- .../cp/bean/message/WxCpTpXmlMessage.java | 297 +++++- .../cp/bean/message/WxCpXmlApprovalInfo.java | 6 +- .../cp/bean/message/WxCpXmlMessage.java | 68 +- .../bean/message/WxCpXmlOutEventMessage.java | 8 +- .../bean/message/WxCpXmlOutImageMessage.java | 6 + .../cp/bean/message/WxCpXmlOutMessage.java | 36 + .../bean/message/WxCpXmlOutNewsMessage.java | 20 + .../message/WxCpXmlOutTaskCardMessage.java | 6 + .../bean/message/WxCpXmlOutTextMessage.java | 6 + .../message/WxCpXmlOutUpdateBtnMessage.java | 8 +- .../bean/message/WxCpXmlOutVideoMessage.java | 42 + .../bean/message/WxCpXmlOutVoiceMessage.java | 6 + .../cp/bean/messagebuilder/BaseBuilder.java | 58 ++ .../cp/bean/messagebuilder/FileBuilder.java | 9 + .../cp/bean/messagebuilder/ImageBuilder.java | 9 + .../messagebuilder/MarkdownMsgBuilder.java | 9 + .../MiniProgramNoticeMsgBuilder.java | 39 + .../cp/bean/messagebuilder/MpnewsBuilder.java | 21 + .../cp/bean/messagebuilder/NewsBuilder.java | 15 + .../bean/messagebuilder/TaskCardBuilder.java | 36 +- .../messagebuilder/TemplateCardBuilder.java | 180 +++- .../cp/bean/messagebuilder/TextBuilder.java | 9 + .../bean/messagebuilder/TextCardBuilder.java | 27 + .../cp/bean/messagebuilder/VideoBuilder.java | 27 + .../cp/bean/messagebuilder/VoiceBuilder.java | 9 + .../cp/bean/msgaudit/WxCpAgreeInfo.java | 25 + .../cp/bean/msgaudit/WxCpChatDatas.java | 28 +- .../cp/bean/msgaudit/WxCpChatModel.java | 345 +++++++ .../bean/msgaudit/WxCpCheckAgreeRequest.java | 28 +- .../weixin/cp/bean/msgaudit/WxCpFileItem.java | 11 + .../cp/bean/msgaudit/WxCpGroupChat.java | 20 + .../weixin/cp/bean/oa/SummaryInfo.java | 6 +- .../cp/bean/oa/WxCpApprovalDetailResult.java | 3 + .../weixin/cp/bean/oa/WxCpApprovalInfo.java | 2 + .../bean/oa/WxCpApprovalInfoQueryFilter.java | 8 + .../weixin/cp/bean/oa/WxCpCheckinData.java | 3 +- .../weixin/cp/bean/oa/WxCpCheckinDayData.java | 36 + .../cp/bean/oa/WxCpCheckinMonthData.java | 19 +- .../weixin/cp/bean/oa/WxCpCheckinOption.java | 21 +- .../cp/bean/oa/WxCpCheckinSchedule.java | 12 + .../weixin/cp/bean/oa/WxCpCorpConfInfo.java | 12 + .../cp/bean/oa/WxCpCropCheckinOption.java | 63 ++ .../weixin/cp/bean/oa/WxCpDialRecord.java | 3 +- .../cp/bean/oa/WxCpGetApprovalData.java | 18 + .../cp/bean/oa/WxCpOaApplyEventRequest.java | 14 +- .../weixin/cp/bean/oa/WxCpOaSchedule.java | 9 +- .../cp/bean/oa/WxCpSetCheckinSchedule.java | 3 + .../weixin/cp/bean/oa/WxCpTemplateResult.java | 2 +- .../cp/bean/oa/WxCpUserVacationQuota.java | 9 + .../bean/oa/applydata/ApplyDataContent.java | 2 + .../cp/bean/oa/applydata/ContentTitle.java | 2 + .../cp/bean/oa/applydata/ContentValue.java | 38 + .../cp/bean/oa/calendar/WxCpOaCalendar.java | 6 +- .../oa/meetingroom/WxCpOaMeetingRoom.java | 8 +- .../oa/selfagent/WxCpOpenApprovalData.java | 29 + .../bean/oa/templatedata/TemplateConfig.java | 2 +- .../bean/oa/templatedata/TemplateContent.java | 4 +- .../oa/templatedata/TemplateControls.java | 2 + .../oa/templatedata/TemplateDateRange.java | 4 +- .../bean/oa/templatedata/TemplateOptions.java | 4 +- .../oa/templatedata/TemplateProperty.java | 4 +- .../bean/oa/templatedata/TemplateTitle.java | 4 +- .../oa/templatedata/TemplateVacationItem.java | 4 +- .../control/TemplateAttendance.java | 4 +- .../templatedata/control/TemplateContact.java | 4 +- .../oa/templatedata/control/TemplateDate.java | 2 + .../control/TemplateSelector.java | 4 +- .../templatedata/control/TemplateTable.java | 4 +- .../control/TemplateVacation.java | 4 +- .../oa/wedrive/WxCpFileAclAddRequest.java | 25 + .../oa/wedrive/WxCpFileAclDelRequest.java | 25 + .../cp/bean/oa/wedrive/WxCpFileCreate.java | 6 + .../oa/wedrive/WxCpFileDeleteRequest.java | 11 + .../cp/bean/oa/wedrive/WxCpFileDownload.java | 6 + .../cp/bean/oa/wedrive/WxCpFileInfo.java | 20 + .../cp/bean/oa/wedrive/WxCpFileList.java | 34 + .../bean/oa/wedrive/WxCpFileListRequest.java | 11 + .../cp/bean/oa/wedrive/WxCpFileMove.java | 34 + .../bean/oa/wedrive/WxCpFileMoveRequest.java | 11 + .../cp/bean/oa/wedrive/WxCpFileRename.java | 20 + .../cp/bean/oa/wedrive/WxCpFileShare.java | 6 + .../cp/bean/oa/wedrive/WxCpFileUpload.java | 6 + .../oa/wedrive/WxCpFileUploadRequest.java | 11 + .../oa/wedrive/WxCpSpaceAclAddRequest.java | 25 + .../oa/wedrive/WxCpSpaceAclDelRequest.java | 25 + .../bean/oa/wedrive/WxCpSpaceCreateData.java | 6 + .../oa/wedrive/WxCpSpaceCreateRequest.java | 25 + .../cp/bean/oa/wedrive/WxCpSpaceInfo.java | 48 + .../oa/wedrive/WxCpSpaceRenameRequest.java | 11 + .../oa/wedrive/WxCpSpaceSettingRequest.java | 11 + .../cp/bean/oa/wedrive/WxCpSpaceShare.java | 6 + .../cp/bean/order/WxCpTpOrderDetails.java | 3 +- .../bean/order/WxCpTpOrderListGetResult.java | 3 +- .../cp/bean/outxmlbuilder/BaseBuilder.java | 34 + .../cp/bean/outxmlbuilder/EventBuilder.java | 101 +- .../cp/bean/outxmlbuilder/ImageBuilder.java | 6 + .../cp/bean/outxmlbuilder/NewsBuilder.java | 12 + .../bean/outxmlbuilder/TaskCardBuilder.java | 6 + .../cp/bean/outxmlbuilder/TextBuilder.java | 6 + .../outxmlbuilder/UpdateButtonBuilder.java | 6 + .../cp/bean/outxmlbuilder/VideoBuilder.java | 18 + .../cp/bean/outxmlbuilder/VoiceBuilder.java | 6 + .../bean/school/WxCpCustomizeHealthInfo.java | 62 ++ .../cp/bean/school/WxCpPaymentResult.java | 22 +- .../weixin/cp/bean/school/WxCpResultList.java | 17 +- .../cp/bean/school/WxCpSchoolLivingInfo.java | 34 + .../cp/bean/school/WxCpSchoolUnwatchStat.java | 12 + .../cp/bean/school/WxCpSchoolWatchStat.java | 17 +- .../weixin/cp/bean/school/WxCpTrade.java | 6 + .../health/WxCpGetHealthReportStat.java | 6 + .../school/health/WxCpGetReportAnswer.java | 34 + .../school/health/WxCpGetReportJobIds.java | 6 + .../school/health/WxCpGetReportJobInfo.java | 76 ++ .../cp/bean/school/user/WxCpAllowScope.java | 37 + .../user/WxCpBatchCreateParentRequest.java | 42 +- .../user/WxCpBatchCreateStudentRequest.java | 28 +- .../user/WxCpBatchDeleteStudentRequest.java | 19 +- .../bean/school/user/WxCpBatchResultList.java | 20 +- .../user/WxCpBatchUpdateParentRequest.java | 42 +- .../user/WxCpBatchUpdateStudentRequest.java | 28 +- .../school/user/WxCpCreateDepartment.java | 6 + .../user/WxCpCreateDepartmentRequest.java | 28 +- .../school/user/WxCpCreateParentRequest.java | 28 +- .../bean/school/user/WxCpDepartmentList.java | 36 +- .../bean/school/user/WxCpExternalContact.java | 91 +- .../school/user/WxCpListParentResult.java | 37 +- .../bean/school/user/WxCpSetUpgradeInfo.java | 6 + .../bean/school/user/WxCpSubscribeQrCode.java | 6 + .../user/WxCpUpdateDepartmentRequest.java | 28 +- .../school/user/WxCpUpdateParentRequest.java | 28 +- .../bean/school/user/WxCpUserListResult.java | 37 +- .../cp/bean/school/user/WxCpUserResult.java | 51 +- .../cp/bean/taskcard/TaskCardButton.java | 3 +- .../cp/bean/templatecard/ActionMenuItem.java | 9 +- .../cp/bean/templatecard/CheckboxOption.java | 8 +- .../bean/templatecard/HorizontalContent.java | 8 +- .../cp/bean/templatecard/MultipleSelect.java | 8 +- .../cp/bean/templatecard/QuoteArea.java | 8 +- .../bean/templatecard/TemplateCardButton.java | 9 +- .../bean/templatecard/TemplateCardJump.java | 8 +- .../cp/bean/templatecard/VerticalContent.java | 8 +- .../cp/bean/user/WxCpDeptUserResult.java | 23 +- .../cp/bean/workbench/WorkBenchKeyData.java | 5 +- .../cp/bean/workbench/WorkBenchList.java | 5 +- .../weixin/cp/config/WxCpConfigStorage.java | 4 +- .../weixin/cp/config/WxCpTpConfigStorage.java | 2 - .../cp/config/impl/WxCpRedisConfigImpl.java | 3 +- .../config/impl/WxCpRedissonConfigImpl.java | 3 +- .../config/impl/WxCpTpDefaultConfigImpl.java | 12 +- .../config/impl/WxCpTpRedissonConfigImpl.java | 2 - .../weixin/cp/constant/WxCpApiPathConsts.java | 890 +++++++++++++++++- .../weixin/cp/constant/WxCpConsts.java | 66 ++ .../weixin/cp/constant/WxCpTpConsts.java | 6 + .../weixin/cp/message/WxCpMessageRouter.java | 33 +- .../cp/message/WxCpMessageRouterRule.java | 6 +- .../cp/tp/message/WxCpTpMessageMatcher.java | 1 - .../cp/tp/message/WxCpTpMessageRouter.java | 32 +- .../tp/message/WxCpTpMessageRouterRule.java | 12 +- .../cp/tp/service/WxCpTpContactService.java | 21 +- .../tp/service/WxCpTpDepartmentService.java | 112 +-- .../cp/tp/service/WxCpTpEditionService.java | 3 +- .../cp/tp/service/WxCpTpLicenseService.java | 117 ++- .../cp/tp/service/WxCpTpMediaService.java | 88 +- .../weixin/cp/tp/service/WxCpTpOAService.java | 87 +- .../cp/tp/service/WxCpTpOrderService.java | 3 +- .../weixin/cp/tp/service/WxCpTpService.java | 79 +- .../cp/tp/service/WxCpTpTagService.java | 19 +- .../cp/tp/service/WxCpTpUserService.java | 30 +- .../service/impl/BaseWxCpTpServiceImpl.java | 102 +- .../impl/WxCpTpContactServiceImpl.java | 4 +- .../impl/WxCpTpDepartmentServiceImpl.java | 8 +- .../impl/WxCpTpEditionServiceImpl.java | 3 +- .../impl/WxCpTpLicenseServiceImpl.java | 19 +- .../service/impl/WxCpTpMediaServiceImpl.java | 36 +- .../tp/service/impl/WxCpTpOAServiceImpl.java | 73 +- .../service/impl/WxCpTpOrderServiceImpl.java | 3 +- .../WxCpTpServiceApacheHttpClientImpl.java | 2 + .../tp/service/impl/WxCpTpTagServiceImpl.java | 2 +- .../weixin/cp/util/crypto/WxCpCryptUtil.java | 32 +- .../cp/util/crypto/WxCpTpCryptUtil.java | 6 +- .../cp/util/json/StatisticListAdapter.java | 10 +- .../cp/util/json/WxCpChatGsonAdapter.java | 24 +- .../cp/util/json/WxCpConclusionAdapter.java | 9 +- .../weixin/cp/util/json/WxCpGsonBuilder.java | 7 + .../cp/util/json/WxCpMenuGsonAdapter.java | 3 +- .../cp/util/json/WxCpTagGsonAdapter.java | 2 + .../cp/util/json/WxCpUserGsonAdapter.java | 9 +- .../cp/util/xml/XStreamTransformer.java | 25 + .../chanjar/weixin/cp/api/ApiTestModule.java | 21 + .../cp/api/ApiTestModuleWithMockServer.java | 6 +- .../chanjar/weixin/cp/api/TestConstants.java | 14 +- .../weixin/cp/api/WxCpBaseAPITest.java | 8 + .../weixin/cp/api/WxCpBusyRetryTest.java | 21 + .../cp/api/WxCpExternalContactTest.java | 36 +- .../chanjar/weixin/cp/api/WxCpLivingTest.java | 47 +- .../weixin/cp/api/WxCpMessageRouterTest.java | 95 +- .../weixin/cp/api/WxCpMsgAuditTest.java | 194 +++- .../weixin/cp/api/WxCpOaAgentTest.java | 24 +- .../cp/api/WxCpOaWeDriveServiceTest.java | 10 +- .../weixin/cp/api/WxCpSchoolHealthTest.java | 8 +- .../chanjar/weixin/cp/api/WxCpSchoolTest.java | 36 +- .../weixin/cp/api/WxCpSchoolUserTest.java | 66 +- .../cp/api/WxCpTpMessageRouterTest.java | 9 +- .../cp/api/impl/BaseWxCpServiceImplTest.java | 29 +- .../cp/api/impl/WxCpAgentServiceImplTest.java | 35 +- .../api/impl/WxCpAgentWorkBenchImplTest.java | 57 +- .../cp/api/impl/WxCpChatServiceImplTest.java | 51 +- .../impl/WxCpDepartmentServiceImplTest.java | 36 +- .../WxCpExternalContactServiceImplTest.java | 221 ++++- .../impl/WxCpGroupRobotServiceImplTest.java | 29 +- .../cp/api/impl/WxCpKfServiceImplTest.java | 38 +- .../cp/api/impl/WxCpMediaServiceImplTest.java | 58 +- .../cp/api/impl/WxCpMenuServiceImplTest.java | 33 +- .../api/impl/WxCpMessageServiceImplTest.java | 53 +- .../api/impl/WxCpOAuth2ServiceImplTest.java | 13 + .../impl/WxCpOaCalendarServiceImplTest.java | 30 +- .../WxCpOaMeetingRoomServiceImplTest.java | 30 +- .../impl/WxCpOaScheduleServiceImplTest.java | 34 +- .../cp/api/impl/WxCpOaServiceImplTest.java | 107 ++- .../cp/api/impl/WxCpTagServiceImplTest.java | 55 +- .../api/impl/WxCpTaskCardServiceImplTest.java | 13 +- .../cp/api/impl/WxCpUserServiceImplTest.java | 67 +- .../chanjar/weixin/cp/bean/WxCpAgentTest.java | 7 +- .../weixin/cp/bean/WxCpTpXmlPackageTest.java | 6 +- .../external/WxCpUpdateRemarkRequestTest.java | 8 +- .../WxCpUserExternalContactInfoTest.java | 14 +- .../contact/WxCpGroupMsgResultTest.java | 6 + .../message/WxCpLinkedCorpMessageTest.java | 53 +- .../cp/bean/message/WxCpMessageTest.java | 122 ++- .../message/WxCpSchoolContactMessageTest.java | 44 +- .../cp/bean/message/WxCpTpXmlMessageTest.java | 31 +- .../cp/bean/message/WxCpXmlMessageTest.java | 50 +- .../message/WxCpXmlOutImageMessageTest.java | 11 +- .../message/WxCpXmlOutNewsMessageTest.java | 11 +- .../WxCpXmlOutTaskCardMessageTest.java | 13 +- .../message/WxCpXmlOutTextMessageTest.java | 11 +- .../message/WxCpXmlOutVideoMessageTest.java | 11 +- .../message/WxCpXmlOutVoiceMessageTest.java | 11 +- .../bean/oa/WxCpOaApplyEventRequestTest.java | 18 +- .../bean/oa/calendar/WxCpOaCalendarTest.java | 6 +- .../impl/WxCpTpDefaultConfigImplTest.java | 11 +- .../demo/WxCpDemoInMemoryConfigStorage.java | 12 +- .../weixin/cp/demo/WxCpDemoServer.java | 12 +- .../weixin/cp/demo/WxCpEndpointServlet.java | 22 +- .../weixin/cp/demo/WxCpOAuth2Servlet.java | 11 + .../impl/BaseWxCpTpServiceImplTest.java | 90 +- .../impl/WxCpTpEditionServiceImplTest.java | 5 + .../impl/WxCpTpLicenseServiceImplTest.java | 116 ++- .../impl/WxCpTpOrderServiceImplTest.java | 7 + ...WxCpTpServiceApacheHttpClientImplTest.java | 68 ++ .../impl/WxCpTpTagServiceImplTest.java | 42 +- .../cp/util/crypto/WxCpCryptUtilTest.java | 8 +- ...erGsonAdapterForPrivatizedVersionTest.java | 18 +- .../cp/util/json/WxCpUserGsonAdapterTest.java | 9 +- .../src/test/resources/test-config.sample.xml | 7 +- weixin-java-cp/src/test/resources/testng.xml | 2 +- 471 files changed, 9549 insertions(+), 2011 deletions(-) diff --git a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java index ecc4e6aa9b..b1cf364005 100644 --- a/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java +++ b/weixin-java-cp/src/main/java/com/tencent/wework/Finance.java @@ -15,8 +15,7 @@ * 官方文档: * https://developer.work.weixin.qq.com/document/path/91552 * - * @author Wang_Wong - * created on 2022-01-17 + * @author Wang_Wong created on 2022-01-17 */ @Slf4j public class Finance { @@ -26,130 +25,182 @@ public class Finance { private static final String SO_FILE = "so"; private static final String DLL_FILE = "dll"; - public native static long NewSdk(); - - /** - * 初始化函数 - * Return值=0表示该API调用成功 - * - * @param [in] sdk NewSdk返回的sdk指针 - * @param [in] corpid 调用企业的企业id,例如:wwd08c8exxxx5ab44d,可以在企业微信管理端--我的企业--企业信息查看 - * @param [in] secret 聊天内容存档的Secret,可以在企业微信管理端--管理工具--聊天内容存档查看 - * @return 返回是否初始化成功 - * 0 - 成功 - * !=0 - 失败 - */ - public native static int Init(long sdk, String corpid, String secret); - - /** - * 拉取聊天记录函数 - * Return值=0表示该API调用成功 - * - * @param [in] sdk NewSdk返回的sdk指针 - * @param [in] seq 从指定的seq开始拉取消息,注意的是返回的消息从seq+1开始返回,seq为之前接口返回的最大seq值。首次使用请使用seq:0 - * @param [in] limit 一次拉取的消息条数,最大值1000条,超过1000条会返回错误 - * @param [in] proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081 - * @param [in] passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123 - * @param [out] chatDatas 返回本次拉取消息的数据,slice结构体.内容包括errcode/errmsg,以及每条消息内容。 - * @return 返回是否调用成功 - * 0 - 成功 - * !=0 - 失败 - */ - public native static int GetChatData(long sdk, long seq, long limit, String proxy, String passwd, long timeout, long chatData); - - /** - * 拉取媒体消息函数 - * Return值=0表示该API调用成功 - * - * @param [in] sdk NewSdk返回的sdk指针 - * @param [in] sdkFileid 从GetChatData返回的聊天消息中,媒体消息包括的sdkfileid - * @param [in] proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081 - * @param [in] passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123 - * @param [in] indexbuf 媒体消息分片拉取,需要填入每次拉取的索引信息。首次不需要填写,默认拉取512k,后续每次调用只需要将上次调用返回的outindexbuf填入即可。 - * @param [out] media_data 返回本次拉取的媒体数据.MediaData结构体.内容包括data(数据内容)/outindexbuf(下次索引)/is_finish(拉取完成标记) - * @return 返回是否调用成功 - * 0 - 成功 - * !=0 - 失败 - */ - public native static int GetMediaData(long sdk, String indexbuf, String sdkField, String proxy, String passwd, long timeout, long mediaData); - - /** - * @param [in] encrypt_key, getchatdata返回的encrypt_key - * @param [in] encrypt_msg, getchatdata返回的content - * @param [out] msg, 解密的消息明文 - * @return 返回是否调用成功 - * 0 - 成功 - * !=0 - 失败 - * @brief 解析密文 - */ - public native static int DecryptData(long sdk, String encrypt_key, String encrypt_msg, long msg); - - public native static void DestroySdk(long sdk); - - public native static long NewSlice(); - - /** - * @return - * @brief 释放slice,和NewSlice成对使用 - */ - public native static void FreeSlice(long slice); - - /** - * @return 内容 - * @brief 获取slice内容 - */ - public native static String GetContentFromSlice(long slice); - - /** - * @return 内容 - * @brief 获取slice内容长度 - */ - public native static int GetSliceLen(long slice); - - public native static long NewMediaData(); - - public native static void FreeMediaData(long mediaData); - - /** - * @return outindex - * @brief 获取mediadata outindex - */ - public native static String GetOutIndexBuf(long mediaData); - - /** - * @return data - * @brief 获取mediadata data数据 - */ - public native static byte[] GetData(long mediaData); - - public native static int GetIndexLen(long mediaData); - - public native static int GetDataLen(long mediaData); - - /** - * @return 1完成、0未完成 - * @brief 判断mediadata是否结束 - */ - public native static int IsMediaDataFinish(long mediaData); - - /** - * 判断Windows环境 - * - * @return - */ - public static boolean isWindows() { + /** + * New sdk long. + * + * @return the long + */ + public native static long NewSdk(); + + /** + * 初始化函数 + * Return值=0表示该API调用成功 + * + * @param sdk the sdk + * @param corpid the corpid + * @param secret the secret + * @return 返回是否初始化成功 0 - 成功 !=0 - 失败 + */ + public native static int Init(long sdk, String corpid, String secret); + + /** + * 拉取聊天记录函数 + * Return值=0表示该API调用成功 + * + * @param sdk the sdk + * @param seq the seq + * @param limit the limit + * @param proxy the proxy + * @param passwd the passwd + * @param timeout the timeout + * @param chatData the chat data + * @return 返回是否调用成功 0 - 成功 !=0 - 失败 + */ + public native static int GetChatData(long sdk, long seq, long limit, String proxy, String passwd, long timeout, long chatData); + + /** + * 拉取媒体消息函数 + * Return值=0表示该API调用成功 + * + * @param sdk the sdk + * @param indexbuf the indexbuf + * @param sdkField the sdk field + * @param proxy the proxy + * @param passwd the passwd + * @param timeout the timeout + * @param mediaData the media data + * @return 返回是否调用成功 0 - 成功 !=0 - 失败 + */ + public native static int GetMediaData(long sdk, String indexbuf, String sdkField, String proxy, String passwd, long timeout, long mediaData); + + /** + * Decrypt data int. + * + * @param sdk the sdk + * @param encrypt_key the encrypt key + * @param encrypt_msg the encrypt msg + * @param msg the msg + * @return 返回是否调用成功 0 - 成功 !=0 - 失败 + * @brief 解析密文 + */ + public native static int DecryptData(long sdk, String encrypt_key, String encrypt_msg, long msg); + + /** + * Destroy sdk. + * + * @param sdk the sdk + */ + public native static void DestroySdk(long sdk); + + /** + * New slice long. + * + * @return the long + */ + public native static long NewSlice(); + + /** + * Free slice. + * + * @param slice the slice + * @return + * @brief 释放slice ,和NewSlice成对使用 + */ + public native static void FreeSlice(long slice); + + /** + * Get content from slice string. + * + * @param slice the slice + * @return 内容 string + * @brief 获取slice内容 + */ + public native static String GetContentFromSlice(long slice); + + /** + * Get slice len int. + * + * @param slice the slice + * @return 内容 int + * @brief 获取slice内容长度 + */ + public native static int GetSliceLen(long slice); + + /** + * New media data long. + * + * @return the long + */ + public native static long NewMediaData(); + + /** + * Free media data. + * + * @param mediaData the media data + */ + public native static void FreeMediaData(long mediaData); + + /** + * Get out index buf string. + * + * @param mediaData the media data + * @return outindex string + * @brief 获取mediadata outindex + */ + public native static String GetOutIndexBuf(long mediaData); + + /** + * Get data byte [ ]. + * + * @param mediaData the media data + * @return data byte [ ] + * @brief 获取mediadata data数据 + */ + public native static byte[] GetData(long mediaData); + + /** + * Get index len int. + * + * @param mediaData the media data + * @return the int + */ + public native static int GetIndexLen(long mediaData); + + /** + * Get data len int. + * + * @param mediaData the media data + * @return the int + */ + public native static int GetDataLen(long mediaData); + + /** + * Is media data finish int. + * + * @param mediaData the media data + * @return 1完成 、0未完成 + * @brief 判断mediadata是否结束 + */ + public native static int IsMediaDataFinish(long mediaData); + + /** + * 判断Windows环境 + * + * @return boolean + */ + public static boolean isWindows() { String osName = System.getProperties().getProperty("os.name"); log.info("Loading System Libraries, Current OS Version Is: {}", osName); return osName.toUpperCase().contains("WINDOWS"); } - /** - * 加载系统类库 - * - * @param libFiles 类库配置文件 - * @param prefixPath 类库文件的前缀路径 - */ - public Finance(List libFiles, String prefixPath) { + /** + * 加载系统类库 + * + * @param libFiles 类库配置文件 + * @param prefixPath 类库文件的前缀路径 + */ + public Finance(List libFiles, String prefixPath) { boolean isWindows = Finance.isWindows(); for (String file : libFiles) { String suffix = file.substring(file.lastIndexOf(".") + 1); @@ -168,14 +219,14 @@ public Finance(List libFiles, String prefixPath) { } - /** - * 初始化类库文件 - * - * @param libFiles - * @param prefixPath - * @return - */ - public synchronized static Finance loadingLibraries(List libFiles, String prefixPath) { + /** + * 初始化类库文件 + * + * @param libFiles the lib files + * @param prefixPath the prefix path + * @return finance + */ + public synchronized static Finance loadingLibraries(List libFiles, String prefixPath) { if (finance != null) { return finance; } @@ -183,12 +234,12 @@ public synchronized static Finance loadingLibraries(List libFiles, Strin return finance; } - /** - * 单例sdk - * - * @return - */ - public synchronized static long SingletonSDK() { + /** + * 单例sdk + * + * @return long + */ + public synchronized static long SingletonSDK() { if (sdk > 0) { return sdk; } @@ -196,12 +247,13 @@ public synchronized static long SingletonSDK() { return sdk; } - /** - * 销毁sdk,保证线程可见性 - * - * @return - */ - public synchronized static void DestroySingletonSDK(long destroySDK) { + /** + * 销毁sdk,保证线程可见性 + * + * @param destroySDK the destroy sdk + * @return + */ + public synchronized static void DestroySingletonSDK(long destroySDK) { sdk = 0L; Finance.DestroySdk(destroySDK); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentService.java index d57ca56c21..0c5ccb3b0c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentService.java @@ -8,7 +8,7 @@ /** *
  *  管理企业号应用
- *  文档地址:https://work.weixin.qq.com/api/doc#10087
+ *  文档地址:...
  *  Created by huansinho on 2018/4/13.
  * 
* @@ -19,11 +19,12 @@ public interface WxCpAgentService { *
    * 获取企业号应用信息
    * 该API用于获取企业号某个应用的基本信息,包括头像、昵称、帐号类型、认证类型、可见范围等信息
-   * 详情请见: https://work.weixin.qq.com/api/doc#10087
+   * 详情请见: ...
    * 
* * @param agentId 企业应用的id - * @return 部门id + * @return wx cp agent + * @throws WxErrorException the wx error exception */ WxCpAgent get(Integer agentId) throws WxErrorException; @@ -31,10 +32,11 @@ public interface WxCpAgentService { *
    * 设置应用.
    * 仅企业可调用,可设置当前凭证对应的应用;第三方不可调用。
-   * 详情请见: https://work.weixin.qq.com/api/doc#10088
+   * 详情请见: ...
    * 
* * @param agentInfo 应用信息 + * @throws WxErrorException the wx error exception */ void set(WxCpAgent agentInfo) throws WxErrorException; @@ -42,9 +44,11 @@ public interface WxCpAgentService { *
    * 获取应用列表.
    * 企业仅可获取当前凭证对应的应用;第三方仅可获取被授权的应用。
-   * 详情请见: https://work.weixin.qq.com/api/doc#11214
+   * 详情请见: ...
    * 
* + * @return the list + * @throws WxErrorException the wx error exception */ List list() throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java index f0522181d0..c50aa2f5fc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentWorkBenchService.java @@ -4,15 +4,36 @@ import me.chanjar.weixin.cp.bean.WxCpAgentWorkBench; /** + * The interface Wx cp agent work bench service. + * 工作台自定义展示 + * * @author songshiyu - * created on : create in 16:16 2020/9/27 - * @description: 工作台自定义展示:https://work.weixin.qq.com/api/doc/90000/90135/92535 + * created on 16:16 2020/9/27 */ public interface WxCpAgentWorkBenchService { + /** + * Sets work bench template. + * + * @param wxCpAgentWorkBench the wx cp agent work bench + * @throws WxErrorException the wx error exception + */ void setWorkBenchTemplate(WxCpAgentWorkBench wxCpAgentWorkBench) throws WxErrorException; + /** + * Gets work bench template. + * + * @param agentid the agentid + * @return the work bench template + * @throws WxErrorException the wx error exception + */ String getWorkBenchTemplate(Long agentid) throws WxErrorException; + /** + * Sets work bench data. + * + * @param wxCpAgentWorkBench the wx cp agent work bench + * @throws WxErrorException the wx error exception + */ void setWorkBenchData(WxCpAgentWorkBench wxCpAgentWorkBench) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpChatService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpChatService.java index 9c825d8917..60248eb85a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpChatService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpChatService.java @@ -1,8 +1,8 @@ package me.chanjar.weixin.cp.api; import me.chanjar.weixin.common.error.WxErrorException; -import me.chanjar.weixin.cp.bean.message.WxCpAppChatMessage; import me.chanjar.weixin.cp.bean.WxCpChat; +import me.chanjar.weixin.cp.bean.message.WxCpAppChatMessage; import java.util.List; @@ -19,7 +19,7 @@ public interface WxCpChatService { * @param owner 指定群主的id。如果不指定,系统会随机从userlist中选一人作为群主 * @param users 群成员id列表。至少2人,至多500人 * @param chatId 群聊的唯一标志,不能与已有的群重复;字符串类型,最长32个字符。只允许字符0-9及字母a-zA-Z。如果不填,系统会随机生成群id - * @return 创建的群聊会话chatId + * @return 创建的群聊会话chatId string * @throws WxErrorException 异常 */ String create(String name, String owner, List users, String chatId) throws WxErrorException; @@ -40,7 +40,7 @@ public interface WxCpChatService { * 获取群聊会话. * * @param chatId 群聊编号 - * @return 群聊会话 + * @return 群聊会话 wx cp chat * @throws WxErrorException 异常 */ WxCpChat get(String chatId) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java index b8e43cbdcb..32a778c284 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpDepartmentService.java @@ -23,7 +23,7 @@ public interface WxCpDepartmentService { *
* * @param depart 部门 - * @return 部门id + * @return 部门id long * @throws WxErrorException 异常 */ Long create(WxCpDepart depart) throws WxErrorException; @@ -35,7 +35,7 @@ public interface WxCpDepartmentService { *
* * @param id 部门id - * @return 部门信息 + * @return 部门信息 wx cp depart * @throws WxErrorException 异常 */ WxCpDepart get(Long id) throws WxErrorException; @@ -47,7 +47,7 @@ public interface WxCpDepartmentService { *
* * @param id 部门id。获取指定部门及其下的子部门。非必需,可为null - * @return 获取的部门列表 + * @return 获取的部门列表 list * @throws WxErrorException 异常 */ List list(Long id) throws WxErrorException; @@ -59,7 +59,7 @@ public interface WxCpDepartmentService { *
* * @param id 部门id。获取指定部门及其下的子部门(以及子部门的子部门等等,递归)。 如果不填,默认获取全量组织架构 - * @return 子部门ID列表 + * @return 子部门ID列表 list * @throws WxErrorException 异常 */ List simpleList(Long id) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java index 3f13ef38d4..24c6ea9dc1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExportService.java @@ -7,9 +7,8 @@ /** * 异步导出接口 * - * @author zhongjun - * created on 2022/4/21 - **/ + * @author zhongjun created on 2022/4/21 + */ public interface WxCpExportService { /** @@ -93,7 +92,7 @@ public interface WxCpExportService { *
* * @param jobId 异步任务id - * @return 导出结果 + * @return 导出结果 result * @throws WxErrorException . */ WxCpExportResult getResult(String jobId) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java index 0335725c78..f44be6d6ce 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpExternalContactService.java @@ -56,6 +56,7 @@ public interface WxCpExternalContactService { * @throws WxErrorException the wx error exception */ WxCpContactWayInfo getContactWay(@NonNull String configId) throws WxErrorException; + /** * 更新企业已配置的「联系我」方式 * @@ -142,7 +143,7 @@ public interface WxCpExternalContactService { * 企业和服务商可通过此接口,将微信外部联系人的userid转为微信openid,用于调用支付相关接口。暂不支持企业微信外部联系人(ExternalUserid为wo开头)的userid转openid。 * * @param externalUserid 微信外部联系人的userid - * @return 该企业的外部联系人openid + * @return 该企业的外部联系人openid string * @throws WxErrorException . */ String convertToOpenid(String externalUserid) throws WxErrorException; @@ -165,13 +166,13 @@ public interface WxCpExternalContactService { *
* * @param unionid 微信客户的unionid - * @return 该企业的外部联系人ID + * @param openid the openid + * @return 该企业的外部联系人ID string * @throws WxErrorException . */ - String unionidToExternalUserid(@NotNull String unionid,String openid) throws WxErrorException; + String unionidToExternalUserid(@NotNull String unionid, String openid) throws WxErrorException; /** - * * 配置客户群进群方式 * 企业可以在管理后台-客户联系中配置「加入群聊」的二维码或者小程序按钮,客户通过扫描二维码或点击小程序上的按钮,即可加入特定的客户群。 * 企业可通过此接口为具有客户联系功能的成员生成专属的二维码或者小程序按钮。 @@ -179,19 +180,21 @@ public interface WxCpExternalContactService { * 注意: * 通过API添加的配置不会在管理端进行展示,每个企业可通过API最多配置50万个「加入群聊」(与「联系我」共用50万的额度)。 * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 - * @param wxCpGroupJoinWayInfo + * + * @param wxCpGroupJoinWayInfo the wx cp group join way info * @return {@link WxCpGroupJoinWayResult} - * @throws WxErrorException + * @throws WxErrorException the wx error exception */ WxCpGroupJoinWayResult addJoinWay(@NonNull WxCpGroupJoinWayInfo wxCpGroupJoinWayInfo) throws WxErrorException; /** - *更新客户群进群方式配置 + * 更新客户群进群方式配置 * 更新进群方式配置信息。注意:使用覆盖的方式更新。 * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 - * @param wxCpGroupJoinWayInfo - * @return - * @throws WxErrorException + * + * @param wxCpGroupJoinWayInfo the wx cp group join way info + * @return wx cp base resp + * @throws WxErrorException the wx error exception */ WxCpBaseResp updateJoinWay(@NonNull WxCpGroupJoinWayInfo wxCpGroupJoinWayInfo) throws WxErrorException; @@ -199,20 +202,22 @@ public interface WxCpExternalContactService { * 获取客户群进群方式配置 * 获取企业配置的群二维码或小程序按钮。 * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 - * @param configId - * @return - * @throws WxErrorException + * + * @param configId the config id + * @return join way + * @throws WxErrorException the wx error exception */ WxCpGroupJoinWayInfo getJoinWay(@NonNull String configId) throws WxErrorException; /** * 删除客户群进群方式配置 * 文档地址:https://developer.work.weixin.qq.com/document/path/92229 - * @param configId - * @return - * @throws WxErrorException + * + * @param configId the config id + * @return wx cp base resp + * @throws WxErrorException the wx error exception */ - WxCpBaseResp delJoinWay( @NonNull String configId) throws WxErrorException; + WxCpBaseResp delJoinWay(@NonNull String configId) throws WxErrorException; /** * 代开发应用external_userid转换 @@ -231,7 +236,7 @@ public interface WxCpExternalContactService { *
* * @param externalUserid 代开发自建应用获取到的外部联系人ID - * @return 该服务商第三方应用下的企业的外部联系人ID + * @return 该服务商第三方应用下的企业的外部联系人ID string * @throws WxErrorException . */ String toServiceExternalUserid(@NotNull String externalUserid) throws WxErrorException; @@ -255,9 +260,9 @@ public interface WxCpExternalContactService { *
* * @param unionid 微信客户的unionid - * @param openid 微信客户的openid - * @param corpid 需要换取的企业corpid,不填则拉取所有企业 - * @return 该服务商第三方应用下的企业的外部联系人ID + * @param openid 微信客户的openid + * @param corpid 需要换取的企业corpid,不填则拉取所有企业 + * @return 该服务商第三方应用下的企业的外部联系人ID wx cp external user id list * @throws WxErrorException . */ WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull String unionid, @NotNull String openid, String corpid) throws WxErrorException; @@ -279,7 +284,7 @@ public interface WxCpExternalContactService { *
* * @param externalUserIdList 微信客户的unionid - * @return List 新外部联系人id + * @return List 新外部联系人id * @throws WxErrorException . */ WxCpNewExternalUserIdList getNewExternalUserId(String[] externalUserIdList) throws WxErrorException; @@ -323,8 +328,9 @@ public interface WxCpExternalContactService { * 仅可转换出自己企业下的客户群chat_id *
* - * @param opengid 小程序在微信获取到的群ID,参见wx.getGroupEnterInfo(https://developers.weixin.qq.com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html) - * @return 客户群ID,可以用来调用获取客户群详情 + * @param opengid 小程序在微信获取到的群ID,参见wx.getGroupEnterInfo(https://developers.weixin.qq + * .com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html) + * @return 客户群ID ,可以用来调用获取客户群详情 * @throws WxErrorException . */ String opengidToChatid(@NotNull String opengid) throws WxErrorException; @@ -405,15 +411,15 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c /** * 获取待分配的离职成员列表 * 企业和第三方可通过此接口,获取所有离职成员的客户列表,并可进一步调用分配离职成员的客户接口将这些客户重新分配给其他企业成员。 - * + *

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_unassigned_list?access_token=ACCESS_TOKEN * - * @param pageId 分页查询,要查询页号,从0开始 - * @param cursor 分页查询游标,字符串类型,适用于数据量较大的情况,如果使用该参数则无需填写page_id,该参数由上一次调用返回 + * @param pageId 分页查询,要查询页号,从0开始 + * @param cursor 分页查询游标,字符串类型,适用于数据量较大的情况,如果使用该参数则无需填写page_id,该参数由上一次调用返回 * @param pageSize 每次返回的最大记录数,默认为1000,最大值为1000 - * @return - * @throws WxErrorException + * @return wx cp user external unassign list + * @throws WxErrorException the wx error exception */ WxCpUserExternalUnassignList listUnassignedList(Integer pageId, String cursor, Integer pageSize) throws WxErrorException; @@ -463,10 +469,11 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c * @param handOverUserid 原添加成员的userid * @param takeOverUserid 接替成员的userid * @param cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页; - * @return 客户转接接口实体 + * @return 客户转接接口实体 wx cp user transfer result resp * @throws WxErrorException the wx error exception */ - WxCpUserTransferResultResp transferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, String cursor) throws WxErrorException; + WxCpUserTransferResultResp transferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, + String cursor) throws WxErrorException; /** * 企业可通过此接口,分配离职成员的客户给其他成员。 @@ -503,10 +510,11 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c * @param handOverUserid 原添加成员的userid * @param takeOverUserid 接替成员的userid * @param cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页; - * @return 客户转接接口实体 + * @return 客户转接接口实体 wx cp user transfer result resp * @throws WxErrorException the wx error exception */ - WxCpUserTransferResultResp resignedTransferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, String cursor) throws WxErrorException; + WxCpUserTransferResultResp resignedTransferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, + String cursor) throws WxErrorException; /** *

@@ -526,7 +534,8 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c
    * @deprecated 请使用 {@link WxCpExternalContactService#listGroupChat(Integer, String, int, String[])}
    */
   @Deprecated
-  WxCpUserExternalGroupChatList listGroupChat(Integer pageIndex, Integer pageSize, int status, String[] userIds, String[] partyIds) throws WxErrorException;
+  WxCpUserExternalGroupChatList listGroupChat(Integer pageIndex, Integer pageSize, int status, String[] userIds,
+                                              String[] partyIds) throws WxErrorException;
 
   /**
    * 
@@ -553,7 +562,8 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c
    * 微信文档:https://work.weixin.qq.com/api/doc/90000/90135/92122
    * 
* - * @param chatId the chat id + * @param chatId the chat id + * @param needName the need name * @return group chat * @throws WxErrorException the wx error exception */ @@ -580,7 +590,7 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c * * @param chatIds 需要转群主的客户群ID列表。取值范围: 1 ~ 100 * @param newOwner 新群主ID - * @return 分配结果,主要是分配失败的群列表 + * @return 分配结果 ,主要是分配失败的群列表 * @throws WxErrorException the wx error exception */ WxCpUserExternalGroupChatTransferResp transferGroupChat(String[] chatIds, String newOwner) throws WxErrorException; @@ -600,7 +610,8 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c * @return user behavior statistic * @throws WxErrorException the wx error exception */ - WxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(Date startTime, Date endTime, String[] userIds, String[] partyIds) throws WxErrorException; + WxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(Date startTime, Date endTime, String[] userIds, + String[] partyIds) throws WxErrorException; /** *
@@ -619,7 +630,9 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c
    * @return group chat statistic
    * @throws WxErrorException the wx error exception
    */
-  WxCpUserExternalGroupChatStatistic getGroupChatStatistic(Date startTime, Integer orderBy, Integer orderAsc, Integer pageIndex, Integer pageSize, String[] userIds, String[] partyIds) throws WxErrorException;
+  WxCpUserExternalGroupChatStatistic getGroupChatStatistic(Date startTime, Integer orderBy, Integer orderAsc,
+                                                           Integer pageIndex, Integer pageSize, String[] userIds,
+                                                           String[] partyIds) throws WxErrorException;
 
   /**
    * 添加企业群发消息任务
@@ -739,10 +752,11 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c
 
   /**
    * 
- *   企业和第三方应用可通过该接口创建客户朋友圈的发表任务。
- *   https://open.work.weixin.qq.com/api/doc/90000/90135/95094
+   *   企业和第三方应用可通过该接口创建客户朋友圈的发表任务。
+   *   https://open.work.weixin.qq.com/api/doc/90000/90135/95094
    * 
- * @param task + * + * @param task the task * @return wx cp add moment result * @throws WxErrorException the wx error exception */ @@ -753,9 +767,10 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c * 由于发表任务的创建是异步执行的,应用需要再调用该接口以获取创建的结果。 * https://open.work.weixin.qq.com/api/doc/90000/90135/95094 *
+ * * @param jobId 异步任务id,最大长度为64字节,由创建发表内容到客户朋友圈任务接口获取 - * @return - * @throws WxErrorException + * @return moment task result + * @throws WxErrorException the wx error exception */ WxCpGetMomentTaskResult getMomentTaskResult(String jobId) throws WxErrorException; @@ -764,28 +779,30 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String c * 获取客户朋友圈全部的发表记录 获取企业全部的发表列表 * https://open.work.weixin.qq.com/api/doc/90000/90135/93333 *
- * @param startTime 朋友圈记录开始时间。Unix时间戳 - * @param endTime 朋友圈记录结束时间。Unix时间戳 - * @param creator 朋友圈创建人的userid + * + * @param startTime 朋友圈记录开始时间。Unix时间戳 + * @param endTime 朋友圈记录结束时间。Unix时间戳 + * @param creator 朋友圈创建人的userid * @param filterType 朋友圈类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型 - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 - * @param limit 返回的最大记录数,整型,最大值100,默认值100,超过最大值时取默认值 - * @return - * @throws WxErrorException + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值100,默认值100,超过最大值时取默认值 + * @return moment list + * @throws WxErrorException the wx error exception */ WxCpGetMomentList getMomentList(Long startTime, Long endTime, String creator, Integer filterType, - String cursor, Integer limit) throws WxErrorException; + String cursor, Integer limit) throws WxErrorException; /** *
    * 获取客户朋友圈全部的发表记录 获取客户朋友圈企业发表的列表
    * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
    * 
+ * * @param momentId 朋友圈id,仅支持企业发表的朋友圈id - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 - * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 - * @return - * @throws WxErrorException + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @return moment task + * @throws WxErrorException the wx error exception */ WxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer limit) throws WxErrorException; @@ -795,43 +812,46 @@ WxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer limit) * 获取客户朋友圈全部的发表记录 获取客户朋友圈发表时选择的可见范围 * https://open.work.weixin.qq.com/api/doc/90000/90135/93333 * + * * @param momentId 朋友圈id - * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的 - * 列表获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员userid - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 - * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 - * @return - * @throws WxErrorException + * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的 + * 列表获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员userid + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @return moment customer list + * @throws WxErrorException the wx error exception */ WxCpGetMomentCustomerList getMomentCustomerList(String momentId, String userId, - String cursor, Integer limit) throws WxErrorException; + String cursor, Integer limit) throws WxErrorException; /** *
    * 获取客户朋友圈全部的发表记录 获取客户朋友圈发表后的可见客户列表
    * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
    * 
+ * * @param momentId 朋友圈id - * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid, - * 如果是个人创建的朋友圈,创建人userid就是企业发表成员userid - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 - * @param limit 返回的最大记录数,整型,最大值5000,默认值3000,超过最大值时取默认值 - * @return - * @throws WxErrorException + * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid, + * 如果是个人创建的朋友圈,创建人userid就是企业发表成员userid + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值5000,默认值3000,超过最大值时取默认值 + * @return moment send result + * @throws WxErrorException the wx error exception */ WxCpGetMomentSendResult getMomentSendResult(String momentId, String userId, - String cursor, Integer limit) throws WxErrorException; + String cursor, Integer limit) throws WxErrorException; /** *
    * 获取客户朋友圈全部的发表记录 获取客户朋友圈的互动数据
    * https://open.work.weixin.qq.com/api/doc/90000/90135/93333
    * 
+ * * @param momentId 朋友圈id - * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid, - * 如果是个人创建的朋友圈,创建人userid就是企业发表成员userid - * @return - * @throws WxErrorException + * @param userId 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid, + * 如果是个人创建的朋友圈,创建人userid就是企业发表成员userid + * @return moment comments + * @throws WxErrorException the wx error exception */ WxCpGetMomentComments getMomentComments(String momentId, String userId) throws WxErrorException; @@ -842,17 +862,18 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * https://work.weixin.qq.com/api/doc/90000/90135/93338 * * - * @param chatType 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群 - * @param startTime 群发任务记录开始时间 - * @param endTime 群发任务记录结束时间 - * @param creator 群发任务创建人企业账号id - * @param filterType 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型 - * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param chatType 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群 + * @param startTime 群发任务记录开始时间 + * @param endTime 群发任务记录结束时间 + * @param creator 群发任务创建人企业账号id + * @param filterType 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型 + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 * @return wx cp base resp * @throws WxErrorException the wx error exception */ - WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date startTime, @NonNull Date endTime, String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException; + WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date startTime, @NonNull Date endTime, + String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException; /** *
@@ -860,10 +881,10 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId)
    * https://work.weixin.qq.com/api/doc/90000/90135/93338#获取企业群发成员执行结果
    * 
* - * @param msgid 群发消息的id,通过获取群发记录列表接口返回 - * @param userid 发送成员userid,通过获取群发成员发送任务列表接口返回 - * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param msgid 群发消息的id,通过获取群发记录列表接口返回 + * @param userid 发送成员userid,通过获取群发成员发送任务列表接口返回 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -881,7 +902,7 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * @return wx cp base resp * @throws WxErrorException the wx error exception */ - public WxCpGroupMsgResult getGroupMsgResult(String msgid, Integer limit, String cursor) throws WxErrorException; + WxCpGroupMsgResult getGroupMsgResult(String msgid, Integer limit, String cursor) throws WxErrorException; /** *
@@ -889,13 +910,13 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId)
    * https://work.weixin.qq.com/api/doc/90000/90135/93338#获取群发成员发送任务列表
    * 
* - * @param msgid 群发消息的id,通过获取群发记录列表接口返回 - * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param msgid 群发消息的id,通过获取群发记录列表接口返回 + * @param limit 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 * @return wx cp base resp * @throws WxErrorException the wx error exception */ - WxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, String cursor) throws WxErrorException; + WxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, String cursor) throws WxErrorException; /** *
@@ -903,8 +924,8 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId)
    * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#添加入群欢迎语素材
    * 
* - * @param template 素材内容 - * @return template_id 欢迎语素材id + * @param template 素材内容 + * @return template_id 欢迎语素材id * @throws WxErrorException the wx error exception */ String addGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws WxErrorException; @@ -915,7 +936,7 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#编辑入群欢迎语素材 * * - * @param template + * @param template the template * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -927,7 +948,7 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#获取入群欢迎语素材 * * - * @param templateId 群欢迎语的素材id + * @param templateId 群欢迎语的素材id * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -940,8 +961,8 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * https://open.work.weixin.qq.com/api/doc/90000/90135/92366#删除入群欢迎语素材 * * - * @param templateId 群欢迎语的素材id - * @param templateId 授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数 + * @param templateId 群欢迎语的素材id + * @param agentId the agent id * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -953,8 +974,8 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表 * * - * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 - * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + * @param limit 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值 + * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -966,7 +987,7 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册 * * - * @param productId 商品id + * @param productId 商品id * @return wx cp base resp * @throws WxErrorException the wx error exception */ @@ -977,27 +998,29 @@ WxCpGetMomentComments getMomentComments(String momentId, String userId) * 上传附件资源 * https://open.work.weixin.qq.com/api/doc/90001/90143/95178 * - * @param mediaType - * @param fileType - * @param attachmentType - * @param inputStream - * @return - * @throws WxErrorException - * @throws IOException + * + * @param mediaType the media type + * @param fileType the file type + * @param attachmentType the attachment type + * @param inputStream the input stream + * @return wx media upload result + * @throws WxErrorException the wx error exception + * @throws IOException the io exception */ WxMediaUploadResult uploadAttachment(String mediaType, String fileType, Integer attachmentType, - InputStream inputStream) throws WxErrorException, IOException; + InputStream inputStream) throws WxErrorException, IOException; /** *
    * 上传附件资源
    * https://open.work.weixin.qq.com/api/doc/90001/90143/95178
    * 
- * @param mediaType - * @param attachmentType - * @param file - * @return - * @throws WxErrorException + * + * @param mediaType the media type + * @param attachmentType the attachment type + * @param file the file + * @return wx media upload result + * @throws WxErrorException the wx error exception */ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, File file) throws WxErrorException; @@ -1009,8 +1032,12 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F * 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_intercept_rule?access_token=ACCESS_TOKEN *
+   * @param ruleResp the rule resp
+   * @return the wx cp intercept rule result resp
+   * @throws WxErrorException the wx error exception
    */
-  WxCpInterceptRuleResultResp addInterceptRule(WxCpInterceptRuleResp ruleResp) throws  WxErrorException;
+  WxCpInterceptRuleResultResp addInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException;
+
   /**
    * 
    * 修改敏感词规则
@@ -1018,6 +1045,9 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_intercept_rule?access_token=ACCESS_TOKEN
    * 
+   * @param ruleResp the rule resp
+   * @return the wx cp intercept rule result resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException;
 
@@ -1029,6 +1059,8 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/del_intercept_rule?access_token=ACCESS_TOKEN
    * 
    * @param rule_id 规则id
+   * @return the wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp delInterceptRule(String rule_id) throws WxErrorException;
 
@@ -1037,11 +1069,14 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * 创建商品图册
    * 企业和第三方应用可以通过此接口增加商品
    * 请求方式:POST(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_product_album?access_token=ACCESS_TOKEN
-   * 文档地址:https://developer.work.weixin.qq.com/document/path/95096#%E5%88%9B%E5%BB%BA%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
+   * 请求地址:
+   * https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_product_album?access_token=ACCESS_TOKEN
+   * 文档地址:
+   * https://developer.work.weixin.qq.com/document/path/95096#%E5%88%9B%E5%BB%BA%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
    * 
    * @param wxCpProductAlbumInfo 商品图册信息
-   * @return 商品id
+   * @return 商品id string
+   * @throws WxErrorException the wx error exception
    */
   String addProductAlbum(WxCpProductAlbumInfo wxCpProductAlbumInfo) throws WxErrorException;
 
@@ -1050,10 +1085,13 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * 编辑商品图册
    * 企业和第三方应用可以通过此接口修改商品信息
    * 请求方式:POST(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_product_album?access_token=ACCESS_TOKEN
-   * 文档地址:https://developer.work.weixin.qq.com/document/path/95096#%E7%BC%96%E8%BE%91%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
+   * 请求地址:
+   * https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_product_album?access_token=ACCESS_TOKEN
+   * 文档地址:
+   * https://developer.work.weixin.qq.com/document/path/95096#%E7%BC%96%E8%BE%91%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
    * 
    * @param wxCpProductAlbumInfo 商品图册信息
+   * @throws WxErrorException the wx error exception
    */
   void updateProductAlbum(WxCpProductAlbumInfo wxCpProductAlbumInfo) throws WxErrorException;
 
@@ -1062,10 +1100,13 @@ WxMediaUploadResult uploadAttachment(String mediaType, Integer attachmentType, F
    * 删除商品图册
    * 企业和第三方应用可以通过此接口删除商品信息
    * 请求方式:POST(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/delete_product_album?access_token=ACCESS_TOKEN
-   * 文档地址:https://developer.work.weixin.qq.com/document/path/95096#%E5%88%A0%E9%99%A4%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
+   * 请求地址:
+   * https://qyapi.weixin.qq.com/cgi-bin/externalcontact/delete_product_album?access_token=ACCESS_TOKEN
+   * 文档地址:
+   * https://developer.work.weixin.qq.com/document/path/95096#%E5%88%A0%E9%99%A4%E5%95%86%E5%93%81%E5%9B%BE%E5%86%8C
    * 
    * @param productId 商品id
+   * @throws WxErrorException the wx error exception
    */
   void deleteProductAlbum(String productId) throws WxErrorException;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java
index 6642cc85fe..769cab6f7a 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpGroupRobotService.java
@@ -10,8 +10,7 @@
  * 文档地址:https://work.weixin.qq.com/help?doc_id=13376
  * 调用地址:https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=
  *
- * @author yr
- * created on  2020-8-20
+ * @author yr  created on  2020-8-20
  */
 public interface WxCpGroupRobotService {
 
@@ -92,8 +91,8 @@ public interface WxCpGroupRobotService {
   /**
    * 发送文件类型的消息
    *
-   * @param webhookUrl  webhook地址
-   * @param mediaId 文件id
+   * @param webhookUrl webhook地址
+   * @param mediaId    文件id
    * @throws WxErrorException 异常
    */
   void sendFile(String webhookUrl, String mediaId) throws WxErrorException;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java
index a9d1bb9af3..6f47ab9084 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpKfService.java
@@ -2,35 +2,18 @@
 
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.cp.bean.WxCpBaseResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceUpgradeConfigResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp;
-import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp;
 import me.chanjar.weixin.cp.bean.kf.*;
 
 import java.util.List;
 
 /**
  * 微信客服接口
+ * 

+ * 微信客服由腾讯微信团队为企业打造,用于满足企业的客服需求,帮助企业做好客户服务。企业可以在微信内、外各个场景中接入微信客服, + * 用户可以发起咨询,企业可以进行回复。 + * 企业可在微信客服官网使用企业微信扫码开通微信客服,开通后即可使用。 * - * 微信客服由腾讯微信团队为企业打造,用于满足企业的客服需求,帮助企业做好客户服务。企业可以在微信内、外各个场景中接入微信客服, - * 用户可以发起咨询,企业可以进行回复。 - * 企业可在微信客服官网使用企业微信扫码开通微信客服,开通后即可使用。 - * - * @author Fu - * created on 2022/1/19 19:25 + * @author Fu created on 2022/1/19 19:25 */ public interface WxCpKfService { @@ -38,7 +21,7 @@ public interface WxCpKfService { * 添加客服帐号,并可设置客服名称和头像。目前一家企业最多可添加10个客服帐号 * * @param add 客服帐号信息 - * @return result-新创建的客服帐号ID + * @return result -新创建的客服帐号ID * @throws WxErrorException 异常 */ WxCpKfAccountAddResp addAccount(WxCpKfAccountAdd add) throws WxErrorException; @@ -47,7 +30,7 @@ public interface WxCpKfService { * 修改已有的客服帐号,可修改客服名称和头像。 * * @param upd 新的客服账号信息 - * @return result + * @return result wx cp base resp * @throws WxErrorException 异常 */ WxCpBaseResp updAccount(WxCpKfAccountUpd upd) throws WxErrorException; @@ -56,26 +39,27 @@ public interface WxCpKfService { * 删除已有的客服帐号 * * @param del 要删除的客服帐号 - * @return result + * @return result wx cp base resp * @throws WxErrorException 异常 */ WxCpBaseResp delAccount(WxCpKfAccountDel del) throws WxErrorException; /** * 获取客服帐号列表,包括所有的客服帐号的客服ID、名称和头像。 + * * @param offset 分页,偏移量, 默认为0 * @param limit 分页,预期请求的数据量,默认为100,取值范围 1 ~ 100 - * @return 客服帐号列表 + * @return 客服帐号列表 wx cp kf account list resp * @throws WxErrorException 异常 */ - WxCpKfAccountListResp listAccount(Integer offset,Integer limit) throws WxErrorException; + WxCpKfAccountListResp listAccount(Integer offset, Integer limit) throws WxErrorException; /** * 企业可通过此接口获取带有不同参数的客服链接,不同客服帐号对应不同的客服链接。获取后,企业可将链接嵌入到网页等场景中, * 微信用户点击链接即可向对应的客服帐号发起咨询。企业可依据参数来识别用户的咨询来源等 * * @param link 参数 - * @return 链接 + * @return 链接 account link * @throws WxErrorException 异常 */ WxCpKfAccountLinkResp getAccountLink(WxCpKfAccountLink link) throws WxErrorException; @@ -83,10 +67,10 @@ public interface WxCpKfService { /** * 接待人员管理 * 添加指定客服帐号的接待人员,每个客服帐号目前最多可添加500个接待人员。 - * @param openKfid 客服帐号ID - * @param userIdList 接待人员userid列表。第三方应用填密文userid,即open_userid - * 可填充个数:1 ~ 100。超过100个需分批调用。 - * @return 添加客服账号结果 + * + * @param openKfid 客服帐号ID + * @param userIdList 接待人员userid列表。第三方应用填密文userid,即open_userid 可填充个数:1 ~ 100。超过100个需分批调用。 + * @return 添加客服账号结果 wx cp kf servicer op resp * @throws WxErrorException 异常 */ WxCpKfServicerOpResp addServicer(String openKfid, List userIdList) throws WxErrorException; @@ -94,10 +78,10 @@ public interface WxCpKfService { /** * 接待人员管理 * 从客服帐号删除接待人员 - * @param openKfid 客服帐号ID - * @param userIdList 接待人员userid列表。第三方应用填密文userid,即open_userid - * 可填充个数:1 ~ 100。超过100个需分批调用。 - * @return 删除客服账号结果 + * + * @param openKfid 客服帐号ID + * @param userIdList 接待人员userid列表。第三方应用填密文userid,即open_userid 可填充个数:1 ~ 100。超过100个需分批调用。 + * @return 删除客服账号结果 wx cp kf servicer op resp * @throws WxErrorException 异常 */ WxCpKfServicerOpResp delServicer(String openKfid, List userIdList) throws WxErrorException; @@ -105,8 +89,9 @@ public interface WxCpKfService { /** * 接待人员管理 * 获取某个客服帐号的接待人员列表 + * * @param openKfid 客服帐号ID - * @return 接待人员列表 + * @return 接待人员列表 wx cp kf servicer list resp * @throws WxErrorException 异常 */ WxCpKfServicerListResp listServicer(String openKfid) throws WxErrorException; @@ -114,10 +99,11 @@ public interface WxCpKfService { /** * 分配客服会话 * 获取会话状态 - * @param openKfid 客服帐号ID + * + * @param openKfid 客服帐号ID * @param externalUserId 微信客户的external_userid - * @return - * @throws WxErrorException + * @return service state + * @throws WxErrorException the wx error exception */ WxCpKfServiceStateResp getServiceState(String openKfid, String externalUserId) throws WxErrorException; @@ -125,27 +111,28 @@ WxCpKfServiceStateResp getServiceState(String openKfid, String externalUserId) /** * 分配客服会话 * 变更会话状态 - * @param openKfid 客服帐号ID + * + * @param openKfid 客服帐号ID * @param externalUserId 微信客户的external_userid - * @param serviceState 变更的目标状态,状态定义和所允许的变更可参考概述中的流程图和表格 + * @param serviceState 变更的目标状态,状态定义和所允许的变更可参考概述中的流程图和表格 * @param servicerUserId 接待人员的userid。第三方应用填密文userid,即open_userid。当state=3时要求必填,接待人员须处于“正在接待”中。 - * @return 部分状态返回回复语code - * @throws WxErrorException + * @return 部分状态返回回复语code wx cp kf service state trans resp + * @throws WxErrorException the wx error exception */ WxCpKfServiceStateTransResp transServiceState(String openKfid, String externalUserId, - Integer serviceState, String servicerUserId) throws WxErrorException; + Integer serviceState, String servicerUserId) throws WxErrorException; /** * 读取消息 * 微信客户发送的消息、接待人员在企业微信回复的消息、发送消息接口发送失败事件(如被用户拒收)、客户点击菜单消息的回复消息, * 可以通过该接口获取具体的消息内容和事件。不支持读取通过发送消息接口发送的消息。 * 支持的消息类型:文本、图片、语音、视频、文件、位置、链接、名片、小程序、菜单、事件。 - * @param cursor 上一次调用时返回的next_cursor,第一次拉取可以不填。不多于64字节 - * @param token 回调事件返回的token字段,10分钟内有效;可不填,如果不填接口有严格的频率限制。不多于128字节 - * @param limit 期望请求的数据量,默认值和最大值都为1000。 - * 注意:可能会出现返回条数少于limit的情况,需结合返回的has_more字段判断是否继续请求。 + * + * @param cursor 上一次调用时返回的next_cursor,第一次拉取可以不填。不多于64字节 + * @param token 回调事件返回的token字段,10分钟内有效;可不填,如果不填接口有严格的频率限制。不多于128字节 + * @param limit 期望请求的数据量,默认值和最大值都为1000。 注意:可能会出现返回条数少于limit的情况,需结合返回的has_more字段判断是否继续请求。 * @param voiceFormat 语音消息类型,0-Amr 1-Silk,默认0。可通过该参数控制返回的语音格式 - * @return 微信消息 + * @return 微信消息 wx cp kf msg list resp * @throws WxErrorException 异常 */ WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer voiceFormat) @@ -156,8 +143,9 @@ WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer vo * 当微信客户处于“新接入待处理”或“由智能助手接待”状态下,可调用该接口给用户发送消息。 * 注意仅当微信客户在主动发送消息给客服后的48小时内,企业可发送消息给客户,最多可发送5条消息;若用户继续发送消息,企业可再次下发消息。 * 支持发送消息类型:文本、图片、语音、视频、文件、图文、小程序、菜单消息、地理位置。 + * * @param request 发送信息 - * @return 发送结果 + * @return 发送结果 wx cp kf msg send resp * @throws WxErrorException 异常 */ WxCpKfMsgSendResp sendMsg(WxCpKfMsgSendRequest request) throws WxErrorException; @@ -167,9 +155,9 @@ WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer vo * 当特定的事件回调消息包含code字段,或通过接口变更到特定的会话状态,会返回code字段。 * 开发者可以此code为凭证,调用该接口给用户发送相应事件场景下的消息,如客服欢迎语、客服提示语和会话结束语等。 * 除"用户进入会话事件"以外,响应消息仅支持会话处于获取该code的会话状态时发送,如将会话转入待接入池时获得的code仅能在会话状态为”待接入池排队中“时发送。 - * + *

* 目前支持的事件场景和相关约束如下: - * + *

* 事件场景 允许下发条数 code有效期 支持的消息类型 获取code途径 * 用户进入会话,用于发送客服欢迎语 1条 20秒 文本、菜单 事件回调 * 进入接待池,用于发送排队提示语等 1条 48小时 文本 转接会话接口 @@ -178,17 +166,19 @@ WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Integer vo * 等 1条 48小时 文本 事件回调、转接会话接口 * 结束会话,用于发送结束会话提示语 * 或满意度评价等 1条 20秒 文本、菜单 事件回调、转接会话接口 - * @param request - * @return - * @throws WxErrorException + * + * @param request the request + * @return wx cp kf msg send resp + * @throws WxErrorException the wx error exception */ WxCpKfMsgSendResp sendMsgOnEvent(WxCpKfMsgSendRequest request) throws WxErrorException; /** * 获取客户基础信息 - * @param externalUserIdList - * @return - * @throws WxErrorException + * + * @param externalUserIdList the external user id list + * @return wx cp kf customer batch get resp + * @throws WxErrorException the wx error exception */ WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdList) throws WxErrorException; @@ -198,52 +188,60 @@ WxCpKfCustomerBatchGetResp customerBatchGet(List externalUserIdList) * 获取「客户数据统计」企业汇总数据 * 通过此接口,可以获取咨询会话数、咨询客户数等企业汇总统计数据 * 请求方式:POST(HTTPS) - * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/kf/get_corp_statistic?access_token=ACCESS_TOKEN - * 文档地址:https://developer.work.weixin.qq.com/document/path/95489 + * 请求地址: + * https://qyapi.weixin.qq.com/cgi-bin/kf/get_corp_statistic?access_token=ACCESS_TOKEN + * 文档地址: + * https://developer.work.weixin.qq.com/document/path/95489 *

    * @param request 查询参数
-   * @return 客户数据统计-企业汇总数据
+   * @return 客户数据统计 -企业汇总数据
+   * @throws WxErrorException the wx error exception
    */
   WxCpKfGetCorpStatisticResp getCorpStatistic(WxCpKfGetCorpStatisticRequest request) throws WxErrorException;
 
   // 「升级服务」配置
+
   /**
    * 获取配置的专员与客户群
-   * @return
-   * @throws WxErrorException
+   *
+   * @return upgrade service config
+   * @throws WxErrorException the wx error exception
    */
   WxCpKfServiceUpgradeConfigResp getUpgradeServiceConfig() throws WxErrorException;
 
   /**
    * 升级专员服务
-   * @param openKfid 客服帐号ID
+   *
+   * @param openKfid       客服帐号ID
    * @param externalUserId 微信客户的external_userid
-   * @param userid 服务专员的userid
-   * @param wording 推荐语
-   * @return
-   * @throws WxErrorException
+   * @param userid         服务专员的userid
+   * @param wording        推荐语
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp upgradeMemberService(String openKfid, String externalUserId,
-    String userid, String wording) throws WxErrorException;
+                                    String userid, String wording) throws WxErrorException;
 
   /**
    * 升级客户群服务
-   * @param openKfid 客服帐号ID
+   *
+   * @param openKfid       客服帐号ID
    * @param externalUserId 微信客户的external_userid
-   * @param chatId 客户群id
-   * @param wording 推荐语
-   * @return
-   * @throws WxErrorException
+   * @param chatId         客户群id
+   * @param wording        推荐语
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp upgradeGroupchatService(String openKfid, String externalUserId,
-    String chatId, String wording) throws WxErrorException;
+                                       String chatId, String wording) throws WxErrorException;
 
   /**
    * 为客户取消推荐
-   * @param openKfid 客服帐号ID
+   *
+   * @param openKfid       客服帐号ID
    * @param externalUserId 微信客户的external_userid
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp cancelUpgradeService(String openKfid, String externalUserId)
     throws WxErrorException;
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java
index 240a999433..a2e2344190 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpLivingService.java
@@ -8,8 +8,7 @@
  * 企业微信直播接口.
  * 官方文档:https://work.weixin.qq.com/api/doc/90000/90135/93633
  *
- * @author Wang_Wong
- * created on  2021-12-21
+ * @author Wang_Wong  created on  2021-12-21
  */
 public interface WxCpLivingService {
 
@@ -18,7 +17,7 @@ public interface WxCpLivingService {
    * 请求方式: POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/get_living_code?access_token=ACCESS_TOKEN
    *
-   * @param openId 用户openid
+   * @param openId   用户openid
    * @param livingId 直播id
    * @return living_code 微信观看直播凭证
    * @throws WxErrorException the wx error exception
@@ -31,7 +30,7 @@ public interface WxCpLivingService {
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_living_info?access_token=ACCESS_TOKEN&livingid=LIVINGID
    *
    * @param livingId 直播id
-   * @return 获取的直播详情
+   * @return 获取的直播详情 living info
    * @throws WxErrorException the wx error exception
    */
   WxCpLivingInfo getLivingInfo(@NonNull String livingId) throws WxErrorException;
@@ -39,42 +38,42 @@ public interface WxCpLivingService {
   /**
    * 获取直播观看明细
    * 通过该接口可以获取所有观看直播的人员统计
-   *
+   * 

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_watch_stat?access_token=ACCESS_TOKEN * * @param livingId 直播id - * @param nextKey 上一次调用时返回的next_key,初次调用可以填”0” - * @return - * @throws WxErrorException + * @param nextKey 上一次调用时返回的next_key,初次调用可以填”0” + * @return watch stat + * @throws WxErrorException the wx error exception */ WxCpWatchStat getWatchStat(@NonNull String livingId, String nextKey) throws WxErrorException; /** * 获取成员直播ID列表 * 通过此接口可以获取指定成员的所有直播ID - * + *

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?access_token=ACCESS_TOKEN * * @param userId 企业成员的userid * @param cursor 上一次调用时返回的next_cursor,第一次拉取可以不填 - * @param limit 每次拉取的数据量,默认值和最大值都为100 - * @return - * @throws WxErrorException + * @param limit 每次拉取的数据量,默认值和最大值都为100 + * @return user all living id + * @throws WxErrorException the wx error exception */ WxCpLivingResult.LivingIdResult getUserAllLivingId(@NonNull String userId, String cursor, Integer limit) throws WxErrorException; /** * 获取跳转小程序商城的直播观众信息 * 通过此接口,开发者可获取跳转小程序商城的直播间(“推广产品”直播)观众id、邀请人id及对应直播间id,以打通卖货直播的“人货场”信息闭环。 - * + *

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_living_share_info?access_token=ACCESS_TOKEN * * @param wwShareCode "推广产品"直播观众跳转小程序商城时会在小程序path中带上ww_share_code=xxxxx参数 - * @return - * @throws WxErrorException + * @return living share info + * @throws WxErrorException the wx error exception */ WxCpLivingShareInfo getLivingShareInfo(@NonNull String wwShareCode) throws WxErrorException; @@ -84,8 +83,8 @@ public interface WxCpLivingService { * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/create?access_token=ACCESS_TOKEN * * @param request 创建预约直播请求参数. - * @return livingId(直播id) - * @throws WxErrorException + * @return livingId (直播id) + * @throws WxErrorException the wx error exception */ String livingCreate(WxCpLivingCreateRequest request) throws WxErrorException; @@ -95,8 +94,8 @@ public interface WxCpLivingService { * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/modify?access_token=ACCESS_TOKEN * * @param request 修改预约直播请求参数. - * @return - * @throws WxErrorException + * @return wx cp living result + * @throws WxErrorException the wx error exception */ WxCpLivingResult livingModify(WxCpLivingModifyRequest request) throws WxErrorException; @@ -106,8 +105,8 @@ public interface WxCpLivingService { * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/cancel?access_token=ACCESS_TOKEN * * @param livingId 直播id,仅允许取消预约状态下的直播id - * @return - * @throws WxErrorException + * @return wx cp living result + * @throws WxErrorException the wx error exception */ WxCpLivingResult livingCancel(@NonNull String livingId) throws WxErrorException; @@ -117,8 +116,8 @@ public interface WxCpLivingService { * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/delete_replay_data?access_token=ACCESS_TOKEN * * @param livingId 直播id - * @return - * @throws WxErrorException + * @return wx cp living result + * @throws WxErrorException the wx error exception */ WxCpLivingResult deleteReplayData(@NonNull String livingId) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java index d9b53f250e..d0d4b661b0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMediaService.java @@ -31,6 +31,9 @@ public interface WxCpMediaService { * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts} * @param fileType 文件类型,请看{@link me.chanjar.weixin.common.api.WxConsts} * @param inputStream 输入流,需要调用方控制关闭该输入流 + * @return the wx media upload result + * @throws WxErrorException the wx error exception + * @throws IOException the io exception */ WxMediaUploadResult upload(String mediaType, String fileType, InputStream inputStream) throws WxErrorException, IOException; @@ -43,9 +46,9 @@ WxMediaUploadResult upload(String mediaType, String fileType, InputStream inputS * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts} * @param filename 文件名.例如:wework.txt * @param url 远程链接 - * @return - * @throws WxErrorException - * @throws IOException + * @return wx media upload result + * @throws WxErrorException the wx error exception + * @throws IOException the io exception */ WxMediaUploadResult upload(String mediaType, String filename, String url) throws WxErrorException, IOException; @@ -55,7 +58,9 @@ WxMediaUploadResult upload(String mediaType, String filename, String url) * * @param mediaType 媒体类型 * @param file 文件对象 - * @see #upload(String, String, InputStream) + * @return the wx media upload result + * @throws WxErrorException the wx error exception + * @see #upload(String, String, InputStream) #upload(String, String, InputStream) */ WxMediaUploadResult upload(String mediaType, File file) throws WxErrorException; @@ -67,7 +72,8 @@ WxMediaUploadResult upload(String mediaType, String filename, String url) *

* * @param mediaId 媒体id - * @return 保存到本地的临时文件 + * @return 保存到本地的临时文件 file + * @throws WxErrorException the wx error exception */ File download(String mediaId) throws WxErrorException; @@ -82,7 +88,8 @@ WxMediaUploadResult upload(String mediaType, String filename, String url) *
* * @param mediaId 媒体id - * @return 保存到本地的临时文件 + * @return 保存到本地的临时文件 jssdk file + * @throws WxErrorException the wx error exception */ File getJssdkFile(String mediaId) throws WxErrorException; @@ -96,7 +103,8 @@ WxMediaUploadResult upload(String mediaType, String filename, String url) *
* * @param file 上传的文件对象 - * @return 返回图片url + * @return 返回图片url string + * @throws WxErrorException the wx error exception */ String uploadImg(File file) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMenuService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMenuService.java index 309b981211..07f300dd14 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMenuService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMenuService.java @@ -22,7 +22,8 @@ public interface WxCpMenuService { *
* * @param menu 菜单对象 - * @see #create(Integer, WxMenu) + * @throws WxErrorException the wx error exception + * @see #create(Integer, WxMenu) #create(Integer, WxMenu) */ void create(WxMenu menu) throws WxErrorException; @@ -36,7 +37,8 @@ public interface WxCpMenuService { * * @param agentId 企业号应用的id * @param menu 菜单对象 - * @see #create(me.chanjar.weixin.common.bean.menu.WxMenu) + * @throws WxErrorException the wx error exception + * @see #create(me.chanjar.weixin.common.bean.menu.WxMenu) #create(me.chanjar.weixin.common.bean.menu.WxMenu) */ void create(Integer agentId, WxMenu menu) throws WxErrorException; @@ -48,7 +50,8 @@ public interface WxCpMenuService { * 注意: 这个方法使用WxCpConfigStorage里的agentId *
* - * @see #delete(Integer) + * @throws WxErrorException the wx error exception + * @see #delete(Integer) #delete(Integer) */ void delete() throws WxErrorException; @@ -61,7 +64,8 @@ public interface WxCpMenuService { *
* * @param agentId 企业号应用的id - * @see #delete() + * @throws WxErrorException the wx error exception + * @see #delete() #delete() */ void delete(Integer agentId) throws WxErrorException; @@ -73,7 +77,9 @@ public interface WxCpMenuService { * 注意: 这个方法使用WxCpConfigStorage里的agentId *
* - * @see #get(Integer) + * @return the wx menu + * @throws WxErrorException the wx error exception + * @see #get(Integer) #get(Integer) */ WxMenu get() throws WxErrorException; @@ -86,7 +92,9 @@ public interface WxCpMenuService { *
* * @param agentId 企业号应用的id - * @see #get() + * @return the wx menu + * @throws WxErrorException the wx error exception + * @see #get() #get() */ WxMenu get(Integer agentId) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java index 23caec4e9c..fa455bc5f3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageService.java @@ -6,8 +6,7 @@ /** * 消息推送接口. * - * @author Binary Wang - * created on 2020 -08-30 + * @author Binary Wang created on 2020 -08-30 */ public interface WxCpMessageService { /** @@ -32,7 +31,7 @@ public interface WxCpMessageService { * * * @param timeType 查询哪天的数据,0:当天;1:昨天。默认为0。 - * @return 统计结果 + * @return 统计结果 statistics * @throws WxErrorException the wx error exception */ WxCpMessageSendStatistics getStatistics(int timeType) throws WxErrorException; @@ -61,8 +60,8 @@ public interface WxCpMessageService { * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/externalcontact/message/send?access_token=ACCESS_TOKEN * * @param message 要发送的消息对象 - * @return - * @throws WxErrorException + * @return wx cp school contact message send result + * @throws WxErrorException the wx error exception */ WxCpSchoolContactMessageSendResult sendSchoolContactMessage(WxCpSchoolContactMessage message) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java index 09a25f9d20..69ecfa23d4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMsgAuditService.java @@ -13,8 +13,7 @@ * 如需自行实现,亦可调用Finance类库函数,进行实现: * com.tencent.wework.Finance * - * @author Wang_Wong - * created on 2022-01-14 + * @author Wang_Wong created on 2022-01-14 */ public interface WxCpMsgAuditService { @@ -26,7 +25,8 @@ public interface WxCpMsgAuditService { * @param proxy 使用代理的请求,需要传入代理的链接。如:socks5://10.0.0.1:8081 或者 http://10.0.0.1:8081,如果没有传null * @param passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123,如果没有传null * @param timeout 超时时间,根据实际需要填写 - * @return 返回是否调用成功 + * @return 返回是否调用成功 chat datas + * @throws Exception the exception */ WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, String passwd, @NonNull long timeout) throws Exception; @@ -36,10 +36,11 @@ public interface WxCpMsgAuditService { * @param sdk getChatDatas()获取到的sdk * @param chatData getChatDatas()获取到的聊天数据 * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... - * @return 解密后的聊天数据 - * @throws Exception + * @return 解密后的聊天数据 decrypt data + * @throws Exception the exception */ - WxCpChatModel getDecryptData(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; + WxCpChatModel getDecryptData(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, + @NonNull Integer pkcs1) throws Exception; /** * 获取解密的聊天数据明文 @@ -47,8 +48,8 @@ public interface WxCpMsgAuditService { * @param sdk getChatDatas()获取到的sdk * @param chatData getChatDatas()获取到的聊天数据 * @param pkcs1 使用什么方式进行解密,1代表使用PKCS1进行解密,2代表PKCS8进行解密 ... - * @return 解密后的明文 - * @throws Exception + * @return 解密后的明文 chat plain text + * @throws Exception the exception */ String getChatPlainText(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception; @@ -66,9 +67,10 @@ public interface WxCpMsgAuditService { * @param passwd 代理账号密码,需要传入代理的账号密码。如 user_name:passwd_123,如果没有传null * @param timeout 超时时间,分片数据需累加到文件存储。单次最大返回512K字节,如果文件比较大,自行设置长一点,比如timeout=10000 * @param targetFilePath 目标文件绝对路径+实际文件名,比如:/usr/local/file/20220114/474f866b39d10718810d55262af82662.gif - * @throws WxErrorException + * @throws WxErrorException the wx error exception */ - void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException; + void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, + @NonNull String targetFilePath) throws WxErrorException; /** * 获取会话内容存档开启成员列表 @@ -78,8 +80,8 @@ public interface WxCpMsgAuditService { * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/msgaudit/get_permit_user_list?access_token=ACCESS_TOKEN * * @param type 拉取对应版本的开启成员列表。1表示办公版;2表示服务版;3表示企业版。非必填,不填写的时候返回全量成员列表。 - * @return - * @throws WxErrorException + * @return permit user list + * @throws WxErrorException the wx error exception */ List getPermitUserList(Integer type) throws WxErrorException; @@ -91,8 +93,8 @@ public interface WxCpMsgAuditService { * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/msgaudit/groupchat/get?access_token=ACCESS_TOKEN * * @param roomid 待查询的群id - * @return - * @throws WxErrorException + * @return group chat + * @throws WxErrorException the wx error exception */ WxCpGroupChat getGroupChat(@NonNull String roomid) throws WxErrorException; @@ -105,8 +107,8 @@ public interface WxCpMsgAuditService { * 请求方式:POST(HTTPS) * * @param checkAgreeRequest 待查询的会话信息 - * @return - * @throws WxErrorException + * @return wx cp agree info + * @throws WxErrorException the wx error exception */ WxCpAgreeInfo checkSingleAgree(@NonNull WxCpCheckAgreeRequest checkAgreeRequest) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java index f524ac94bb..a2c47437b2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java @@ -22,7 +22,7 @@ public interface WxCpOAuth2Service { * * * @param state 状态码 - * @return url + * @return url string */ String buildAuthorizationUrl(String state); @@ -34,7 +34,7 @@ public interface WxCpOAuth2Service { * * @param redirectUri 跳转链接地址 * @param state 状态码 - * @return url + * @return url string */ String buildAuthorizationUrl(String redirectUri, String state); @@ -47,7 +47,7 @@ public interface WxCpOAuth2Service { * @param redirectUri 跳转链接地址 * @param state 状态码 * @param scope 取值参考me.chanjar.weixin.common.api.WxConsts.OAuth2Scope类 - * @return url + * @return url string */ String buildAuthorizationUrl(String redirectUri, String state, String scope); @@ -61,9 +61,9 @@ public interface WxCpOAuth2Service { * * * @param code 微信oauth授权返回的代码 - * @return WxCpOauth2UserInfo + * @return WxCpOauth2UserInfo user info * @throws WxErrorException 异常 - * @see #getUserInfo(Integer, String) + * @see #getUserInfo(Integer, String) #getUserInfo(Integer, String) */ WxCpOauth2UserInfo getUserInfo(String code) throws WxErrorException; @@ -80,9 +80,9 @@ public interface WxCpOAuth2Service { * * @param agentId 企业号应用的id * @param code 通过成员授权获取到的code,最大为512字节。每次成员授权带上的code将不一样,code只能使用一次,5分钟未被使用自动过期。 - * @return WxCpOauth2UserInfo + * @return WxCpOauth2UserInfo user info * @throws WxErrorException 异常 - * @see #getUserInfo(String) + * @see #getUserInfo(String) #getUserInfo(String) */ WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErrorException; @@ -93,9 +93,9 @@ public interface WxCpOAuth2Service { * 请求方式:GET(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo?access_token=ACCESS_TOKEN&code=CODE * - * @param code - * @return - * @throws WxErrorException + * @param code the code + * @return school user info + * @throws WxErrorException the wx error exception */ WxCpOauth2UserInfo getSchoolUserInfo(String code) throws WxErrorException; @@ -112,7 +112,7 @@ public interface WxCpOAuth2Service { * * * @param userTicket 成员票据 - * @return WxCpUserDetail + * @return WxCpUserDetail user detail * @throws WxErrorException 异常 */ WxCpUserDetail getUserDetail(String userTicket) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java index 61b7044601..6b8b98877b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaAgentService.java @@ -8,21 +8,20 @@ * 企业微信自建应用接口. * https://developer.work.weixin.qq.com/document/path/90269 * - * @author Wang_Wong - * created on 2022-04-06 + * @author Wang_Wong created on 2022-04-06 */ public interface WxCpOaAgentService { /** * 查询第三方应用审批申请当前状态 * 开发者也可主动查询审批单的当前审批状态。 - * + *

* 请求方式: POST(HTTPS) * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/corp/getopenapprovaldata?access_token=ACCESS_TOKEN * - * @param thirdNo - * @return - * @throws WxErrorException + * @param thirdNo the third no + * @return open approval data + * @throws WxErrorException the wx error exception */ WxCpOpenApprovalData getOpenApprovalData(@NonNull String thirdNo) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java index fe419f15fe..50d5e8d946 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaCalendarService.java @@ -8,8 +8,7 @@ /** * 企业微信日历接口. * - * @author Binary Wang - * created on 2020-09-20 + * @author Binary Wang created on 2020-09-20 */ public interface WxCpOaCalendarService { /** @@ -24,7 +23,7 @@ public interface WxCpOaCalendarService { * * * @param calendar 日历对象 - * @return 日历ID + * @return 日历ID string * @throws WxErrorException . */ String add(WxCpOaCalendar calendar) throws WxErrorException; @@ -60,7 +59,7 @@ public interface WxCpOaCalendarService { * * * @param calIds 日历id列表 - * @return 日历对象列表 + * @return 日历对象列表 list * @throws WxErrorException . */ List get(List calIds) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java index 13013c2dc5..94535fe1da 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaMeetingRoomService.java @@ -8,8 +8,7 @@ /** * 企业微信会议室接口. * - * @author lm93129 - * created on 2022年8月12日22:33:36 + * @author lm93129 created on 2022年8月12日22:33:36 */ public interface WxCpOaMeetingRoomService { /** @@ -23,7 +22,7 @@ public interface WxCpOaMeetingRoomService { * * * @param meetingRoom 会议室对象 - * @return 会议室ID + * @return 会议室ID string * @throws WxErrorException . */ String addMeetingRoom(WxCpOaMeetingRoom meetingRoom) throws WxErrorException; @@ -39,7 +38,7 @@ public interface WxCpOaMeetingRoomService { * * * @param meetingRoomRequest 会议室查询对象 - * @return 会议室ID + * @return 会议室ID list * @throws WxErrorException . */ List listMeetingRoom(WxCpOaMeetingRoom meetingRoomRequest) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java index 7dcca682b0..70c108a059 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaScheduleService.java @@ -9,8 +9,7 @@ * 企业微信日程接口. * 官方文档:https://work.weixin.qq.com/api/doc/90000/90135/93648 * - * @author Binary Wang - * created on 2020 -12-25 + * @author Binary Wang created on 2020 -12-25 */ public interface WxCpOaScheduleService { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java index 756df126f8..ff60b352d4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaService.java @@ -11,8 +11,7 @@ /** * 企业微信OA相关接口. * - * @author Element & Wang_Wong - * created on 2019-04-06 10:52 + * @author Element & Wang_Wong created on 2019-04-06 10:52 */ public interface WxCpOaService { @@ -68,7 +67,7 @@ List getCheckinData(Integer openCheckinDataType, Date startTime * API doc : https://work.weixin.qq.com/api/doc/90000/90135/93384 * * - * @return 打卡规则列表 + * @return 打卡规则列表 crop checkin option * @throws WxErrorException the wx error exception */ List getCropCheckinOption() throws WxErrorException; @@ -104,7 +103,8 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, * @param endTime 结束时间 * @return WxCpApprovalInfo approval info * @throws WxErrorException . - * @see me.chanjar.weixin.cp.api.WxCpOaService#getApprovalInfo me.chanjar.weixin.cp.api.WxCpOaService#getApprovalInfo + * @see me.chanjar.weixin.cp.api.WxCpOaService#getApprovalInfo me.chanjar.weixin.cp.api + * .WxCpOaService#getApprovalInfome.chanjar.weixin.cp.api.WxCpOaService#getApprovalInfo */ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime) throws WxErrorException; @@ -129,12 +129,12 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, * 获取企业假期管理配置 * 企业可通过审批应用或自建应用Secret调用本接口,获取可见范围内员工的“假期管理”配置,包括:各个假期的id、名称、请假单位、时长计算方式、发放规则等。 * 第三方应用可获取应用可见范围内员工的“假期管理”配置,包括:各个假期的id、名称、请假单位、时长计算方式、发放规则等。 - * + *

* 请求方式:GET(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/getcorpconf?access_token=ACCESS_TOKEN * - * @return - * @throws WxErrorException + * @return corp conf + * @throws WxErrorException the wx error exception */ WxCpCorpConfInfo getCorpConf() throws WxErrorException; @@ -143,13 +143,13 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, * 获取成员假期余额 * 企业可通过审批应用或自建应用Secret调用本接口,获取可见范围内各个员工的假期余额数据。 * 第三方应用可获取应用可见范围内各个员工的假期余额数据。 - * + *

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/getuservacationquota?access_token=ACCESS_TOKEN * * @param userId 需要获取假期余额的成员的userid - * @return - * @throws WxErrorException + * @return user vacation quota + * @throws WxErrorException the wx error exception */ WxCpUserVacationQuota getUserVacationQuota(@NonNull String userId) throws WxErrorException; @@ -158,15 +158,15 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, * 获取审批数据(旧) * 提示:推荐使用新接口“批量获取审批单号”及“获取审批申请详情”,此接口后续将不再维护、逐步下线。 * 通过本接口来获取公司一段时间内的审批记录。一次拉取调用最多拉取100个审批记录,可以通过多次拉取的方式来满足需求,但调用频率不可超过600次/分。 - * + *

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/corp/getapprovaldata?access_token=ACCESS_TOKEN * * @param startTime 获取审批记录的开始时间。Unix时间戳 - * @param endTime 获取审批记录的结束时间。Unix时间戳 + * @param endTime 获取审批记录的结束时间。Unix时间戳 * @param nextSpNum 第一个拉取的审批单号,不填从该时间段的第一个审批单拉取 - * @return - * @throws WxErrorException + * @return approval data + * @throws WxErrorException the wx error exception */ WxCpGetApprovalData getApprovalData(@NonNull Long startTime, @NonNull Long endTime, Long nextSpNum) throws WxErrorException; @@ -175,19 +175,20 @@ WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, * 修改成员假期余额 * 企业可通过审批应用或自建应用Secret调用本接口,修改可见范围内员工的“假期余额”。 * 第三方应用可通过应本接口修改应用可见范围内指定员工的“假期余额”。 - * + *

* 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/vacation/setoneuserquota?access_token=ACCESS_TOKEN * - * @param userId 需要修改假期余额的成员的userid - * @param vacationId 假期id + * @param userId 需要修改假期余额的成员的userid + * @param vacationId 假期id * @param leftDuration 设置的假期余额,单位为秒,不能大于1000天或24000小时,当假期时间刻度为按小时请假时,必须为360整倍数,即0.1小时整倍数,按天请假时,必须为8640整倍数,即0.1天整倍数 - * @param timeAttr 假期时间刻度:0-按天请假;1-按小时请假 - * @param remarks 修改备注,用于显示在假期余额的修改记录当中,可对修改行为作说明,不超过200字符 - * @return - * @throws WxErrorException + * @param timeAttr 假期时间刻度:0-按天请假;1-按小时请假 + * @param remarks 修改备注,用于显示在假期余额的修改记录当中,可对修改行为作说明,不超过200字符 + * @return one user quota + * @throws WxErrorException the wx error exception */ - WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, @NonNull Integer leftDuration, @NonNull Integer timeAttr, String remarks) throws WxErrorException; + WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, @NonNull Integer leftDuration, + @NonNull Integer timeAttr, String remarks) throws WxErrorException; /** @@ -231,7 +232,7 @@ List getDialRecord(Date startTime, Date endTime, Integer offset, * @param startTime 获取月报的开始时间 * @param endTime 获取月报的结束时间 * @param userIdList 获取月报的userid列表 - * @return 月报数据列表 + * @return 月报数据列表 checkin month data * @throws WxErrorException the wx error exception */ List getCheckinMonthData(Date startTime, Date endTime, List userIdList) throws WxErrorException; @@ -242,7 +243,7 @@ List getDialRecord(Date startTime, Date endTime, Integer offset, * @param startTime 获取排班信息的开始时间。Unix时间戳 * @param endTime 获取排班信息的结束时间。Unix时间戳(与starttime跨度不超过一个月) * @param userIdList 需要获取排班信息的用户列表(不超过100个) - * @return 排班表信息 + * @return 排班表信息 checkin schedule list * @throws WxErrorException the wx error exception */ List getCheckinScheduleList(Date startTime, Date endTime, List userIdList) throws WxErrorException; @@ -255,17 +256,21 @@ List getDialRecord(Date startTime, Date endTime, Integer offset, * @throws WxErrorException the wx error exception */ void setCheckinScheduleList(WxCpSetCheckinSchedule wxCpSetCheckinSchedule) throws WxErrorException; + /** *

    * 录入打卡人员人脸信息
    * 企业可通过打卡应用Secret调用本接口,为企业打卡人员录入人脸信息,人脸信息仅用于人脸打卡。
    * 上传图片大小限制:图片数据不超过1M
    * 请求方式:POST(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/checkin/addcheckinuserface?access_token=ACCESS_TOKEN
-   * 文档地址:https://developer.work.weixin.qq.com/document/path/93378
+   * 请求地址:
+   * https://qyapi.weixin.qq.com/cgi-bin/checkin/addcheckinuserface?access_token=ACCESS_TOKEN
+   * 文档地址:
+   * https://developer.work.weixin.qq.com/document/path/93378
    * 
    * @param userId 需要录入的用户id
    * @param userFace 需要录入的人脸图片数据,需要将图片数据base64处理后填入,对已录入的人脸会进行更新处理
+   * @throws WxErrorException the wx error exception
    */
   void addCheckInUserFace(String userId, String userFace) throws WxErrorException;
 }
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
index 8954e8693b..ad2dc635fc 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOaWeDriveService.java
@@ -11,8 +11,7 @@
  * 企业微信微盘相关接口.
  * https://developer.work.weixin.qq.com/document/path/93654
  *
- * @author Wang_Wong
- * created on  2022-04-22
+ * @author Wang_Wong created on  2022-04-22
  */
 public interface WxCpOaWeDriveService {
 
@@ -24,8 +23,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_create?access_token=ACCESS_TOKEN
    *
    * @param request 新建空间对应请求参数
-   * @return spaceid(空间id)
-   * @throws WxErrorException
+   * @return spaceid (空间id)
+   * @throws WxErrorException the wx error exception
    */
   WxCpSpaceCreateData spaceCreate(@NonNull WxCpSpaceCreateRequest request) throws WxErrorException;
 
@@ -37,8 +36,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_rename?access_token=ACCESS_TOKEN
    *
    * @param request 重命名空间的请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp spaceRename(@NonNull WxCpSpaceRenameRequest request) throws WxErrorException;
 
@@ -49,10 +48,10 @@ public interface WxCpOaWeDriveService {
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_dismiss?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param spaceId
-   * @return
-   * @throws WxErrorException
+   * @param userId  the user id
+   * @param spaceId the space id
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp spaceDismiss(@NonNull String userId, @NonNull String spaceId) throws WxErrorException;
 
@@ -63,10 +62,10 @@ public interface WxCpOaWeDriveService {
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_info?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param spaceId
-   * @return
-   * @throws WxErrorException
+   * @param userId  the user id
+   * @param spaceId the space id
+   * @return wx cp space info
+   * @throws WxErrorException the wx error exception
    */
   WxCpSpaceInfo spaceInfo(@NonNull String userId, @NonNull String spaceId) throws WxErrorException;
 
@@ -78,8 +77,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_add?access_token=ACCESS_TOKEN
    *
    * @param request 添加成员/部门请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp spaceAclAdd(@NonNull WxCpSpaceAclAddRequest request) throws WxErrorException;
 
@@ -91,8 +90,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_del?access_token=ACCESS_TOKEN
    *
    * @param request 移除成员/部门请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp spaceAclDel(@NonNull WxCpSpaceAclDelRequest request) throws WxErrorException;
 
@@ -104,8 +103,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_setting?access_token=ACCESS_TOKEN
    *
    * @param request 权限管理请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp spaceSetting(@NonNull WxCpSpaceSettingRequest request) throws WxErrorException;
 
@@ -116,10 +115,10 @@ public interface WxCpOaWeDriveService {
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_share?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param spaceId
-   * @return
-   * @throws WxErrorException
+   * @param userId  the user id
+   * @param spaceId the space id
+   * @return wx cp space share
+   * @throws WxErrorException the wx error exception
    */
   WxCpSpaceShare spaceShare(@NonNull String userId, @NonNull String spaceId) throws WxErrorException;
 
@@ -131,8 +130,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_list?access_token=ACCESS_TOKEN
    *
    * @param request 获取文件列表请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp file list
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileList fileList(@NonNull WxCpFileListRequest request) throws WxErrorException;
 
@@ -144,8 +143,8 @@ public interface WxCpOaWeDriveService {
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_upload?access_token=ACCESS_TOKEN
    *
    * @param request 上传文件请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp file upload
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileUpload fileUpload(@NonNull WxCpFileUploadRequest request) throws WxErrorException;
 
@@ -156,10 +155,10 @@ public interface WxCpOaWeDriveService {
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_download?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param fileId
-   * @return
-   * @throws WxErrorException
+   * @param userId the user id
+   * @param fileId the file id
+   * @return wx cp file download
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileDownload fileDownload(@NonNull String userId, @NonNull String fileId) throws WxErrorException;
 
@@ -170,11 +169,11 @@ public interface WxCpOaWeDriveService {
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_rename?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param fileId
-   * @param newName
-   * @return
-   * @throws WxErrorException
+   * @param userId  the user id
+   * @param fileId  the file id
+   * @param newName the new name
+   * @return wx cp file rename
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, @NonNull String newName) throws WxErrorException;
 
@@ -190,8 +189,8 @@ public interface WxCpOaWeDriveService {
    * @param fatherId 父目录fileid, 在根目录时为空间spaceid
    * @param fileType 文件类型, 1:文件夹 3:微文档(文档) 4:微文档(表格)
    * @param fileName 文件名字
-   * @return
-   * @throws WxErrorException
+   * @return wx cp file create
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
                             @NonNull String fatherId, @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException;
@@ -204,8 +203,8 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_move?access_token=ACCESS_TOKEN
    *
    * @param request 移动文件的请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp file move
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileMove fileMove(@NonNull WxCpFileMoveRequest request) throws WxErrorException;
 
@@ -218,8 +217,8 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    *
    * @param userId 操作者userid
    * @param fileId 文件fileid列表
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List fileId) throws WxErrorException;
 
@@ -231,8 +230,8 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_add?access_token=ACCESS_TOKEN
    *
    * @param request 新增指定人请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp fileAclAdd(@NonNull WxCpFileAclAddRequest request) throws WxErrorException;
 
@@ -244,8 +243,8 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_del?access_token=ACCESS_TOKEN
    *
    * @param request 请求参数
-   * @return
-   * @throws WxErrorException
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp fileAclDel(@NonNull WxCpFileAclDelRequest request) throws WxErrorException;
 
@@ -256,12 +255,12 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_setting?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param fileId
-   * @param authScope
-   * @param auth
-   * @return
-   * @throws WxErrorException
+   * @param userId    the user id
+   * @param fileId    the file id
+   * @param authScope the auth scope
+   * @param auth      the auth
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp fileSetting(@NonNull String userId, @NonNull String fileId, @NonNull Integer authScope, Integer auth) throws WxErrorException;
 
@@ -272,10 +271,10 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_share?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param fileId
-   * @return
-   * @throws WxErrorException
+   * @param userId the user id
+   * @param fileId the file id
+   * @return wx cp file share
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileShare fileShare(@NonNull String userId, @NonNull String fileId) throws WxErrorException;
 
@@ -286,10 +285,10 @@ WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId,
    * 请求方式:POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_info?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param fileId
-   * @return
-   * @throws WxErrorException
+   * @param userId the user id
+   * @param fileId the file id
+   * @return wx cp file info
+   * @throws WxErrorException the wx error exception
    */
   WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java
index 8ee5e8d502..091f242820 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolHealthService.java
@@ -11,8 +11,7 @@
  * 企业微信家校应用 健康上报接口.
  * https://developer.work.weixin.qq.com/document/path/93676
  *
- * @author Wang_Wong
- * created on : 2022/5/31 9:10
+ * @author Wang_Wong created on : 2022/5/31 9:10
  */
 public interface WxCpSchoolHealthService {
 
@@ -22,8 +21,8 @@ public interface WxCpSchoolHealthService {
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/health/get_health_report_stat?access_token=ACCESS_TOKEN
    *
    * @param date 具体某天的使用统计,最长支持获取30天前数据
-   * @return
-   * @throws WxErrorException
+   * @return health report stat
+   * @throws WxErrorException the wx error exception
    */
   WxCpGetHealthReportStat getHealthReportStat(@NonNull String date) throws WxErrorException;
 
@@ -36,8 +35,8 @@ public interface WxCpSchoolHealthService {
    *
    * @param offset 否	分页,偏移量, 默认为0
    * @param limit  否	分页,预期请求的数据量,默认为100,取值范围 1 ~ 100
-   * @return
-   * @throws WxErrorException
+   * @return report job ids
+   * @throws WxErrorException the wx error exception
    */
   WxCpGetReportJobIds getReportJobIds(Integer offset, Integer limit) throws WxErrorException;
 
@@ -50,8 +49,8 @@ public interface WxCpSchoolHealthService {
    *
    * @param jobId 是	任务ID
    * @param date  是	具体某天任务详情,仅支持获取最近14天数据
-   * @return
-   * @throws WxErrorException
+   * @return report job info
+   * @throws WxErrorException the wx error exception
    */
   WxCpGetReportJobInfo getReportJobInfo(@NonNull String jobId, @NonNull String date) throws WxErrorException;
 
@@ -62,12 +61,12 @@ public interface WxCpSchoolHealthService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/health/get_report_answer?access_token=ACCESS_TOKEN
    *
-   * @param jobId
-   * @param date
-   * @param offset
-   * @param limit
-   * @return
-   * @throws WxErrorException
+   * @param jobId  the job id
+   * @param date   the date
+   * @param offset the offset
+   * @param limit  the limit
+   * @return report answer
+   * @throws WxErrorException the wx error exception
    */
   WxCpGetReportAnswer getReportAnswer(@NonNull String jobId, @NonNull String date, Integer offset, Integer limit) throws WxErrorException;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java
index 46eab72952..4528abb11c 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolService.java
@@ -15,8 +15,7 @@
  * 权限说明:
  * 仅复学码应用可以调用
  *
- * @author Wang_Wong
- * created on : 2022/5/31 9:10
+ * @author Wang_Wong created on : 2022/5/31 9:10
  */
 public interface WxCpSchoolService {
 
@@ -25,11 +24,11 @@ public interface WxCpSchoolService {
    * 请求方式: POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/user/get_teacher_customize_health_info?access_token=ACCESS_TOKEN
    *
-   * @param date
-   * @param nextKey
-   * @param limit
-   * @return
-   * @throws WxErrorException
+   * @param date    the date
+   * @param nextKey the next key
+   * @param limit   the limit
+   * @return teacher customize health info
+   * @throws WxErrorException the wx error exception
    */
   WxCpCustomizeHealthInfo getTeacherCustomizeHealthInfo(@NotNull String date, String nextKey, Integer limit) throws WxErrorException;
 
@@ -38,11 +37,11 @@ public interface WxCpSchoolService {
    * 请求方式: POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/user/get_student_customize_health_info?access_token=ACCESS_TOKEN
    *
-   * @param date
-   * @param nextKey
-   * @param limit
-   * @return
-   * @throws WxErrorException
+   * @param date    the date
+   * @param nextKey the next key
+   * @param limit   the limit
+   * @return student customize health info
+   * @throws WxErrorException the wx error exception
    */
   WxCpCustomizeHealthInfo getStudentCustomizeHealthInfo(@NotNull String date, String nextKey, Integer limit) throws WxErrorException;
 
@@ -51,10 +50,10 @@ public interface WxCpSchoolService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/get_health_qrcode?access_token=ACCESS_TOKEN
    *
-   * @param userIds
-   * @param type
-   * @return
-   * @throws WxErrorException
+   * @param userIds the user ids
+   * @param type    the type
+   * @return health qr code
+   * @throws WxErrorException the wx error exception
    */
   WxCpResultList getHealthQrCode(@NotNull List userIds, @NotNull Integer type) throws WxErrorException;
 
@@ -63,9 +62,9 @@ public interface WxCpSchoolService {
    * 请求方式: POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/get_payment_result?access_token=ACCESS_TOKEN
    *
-   * @param paymentId
-   * @return
-   * @throws WxErrorException
+   * @param paymentId the payment id
+   * @return payment result
+   * @throws WxErrorException the wx error exception
    */
   WxCpPaymentResult getPaymentResult(@NotNull String paymentId) throws WxErrorException;
 
@@ -74,20 +73,22 @@ public interface WxCpSchoolService {
    * 请求方式: POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/get_trade?access_token=ACCESS_TOKEN
    *
-   * @param paymentId
-   * @param tradeNo
-   * @return
-   * @throws WxErrorException
+   * @param paymentId the payment id
+   * @param tradeNo   the trade no
+   * @return trade
+   * @throws WxErrorException the wx error exception
    */
   WxCpTrade getTrade(@NotNull String paymentId, @NotNull String tradeNo) throws WxErrorException;
 
   /**
    * 获取直播详情
    * 请求方式:GET(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_living_info?access_token=ACCESS_TOKEN&livingid=LIVINGID
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_living_info?access_token=ACCESS_TOKEN&livingid
+   * =LIVINGID
    *
-   * @param livingId
-   * @return
+   * @param livingId the living id
+   * @return living info
+   * @throws WxErrorException the wx error exception
    */
   WxCpSchoolLivingInfo getLivingInfo(@NotNull String livingId) throws WxErrorException;
 
@@ -98,11 +99,11 @@ public interface WxCpSchoolService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?access_token=ACCESS_TOKEN
    *
-   * @param userId
-   * @param cursor
-   * @param limit
-   * @return
-   * @throws WxErrorException
+   * @param userId the user id
+   * @param cursor the cursor
+   * @param limit  the limit
+   * @return user all living id
+   * @throws WxErrorException the wx error exception
    */
   WxCpLivingResult.LivingIdResult getUserAllLivingId(@NonNull String userId, String cursor, Integer limit) throws WxErrorException;
 
@@ -113,10 +114,10 @@ public interface WxCpSchoolService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_watch_stat?access_token=ACCESS_TOKEN
    *
-   * @param livingId
-   * @param nextKey
-   * @return
-   * @throws WxErrorException
+   * @param livingId the living id
+   * @param nextKey  the next key
+   * @return watch stat
+   * @throws WxErrorException the wx error exception
    */
   WxCpSchoolWatchStat getWatchStat(@NonNull String livingId, String nextKey) throws WxErrorException;
 
@@ -127,10 +128,10 @@ public interface WxCpSchoolService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/living/get_unwatch_stat?access_token=ACCESS_TOKEN
    *
-   * @param livingId
-   * @param nextKey
-   * @return
-   * @throws WxErrorException
+   * @param livingId the living id
+   * @param nextKey  the next key
+   * @return unwatch stat
+   * @throws WxErrorException the wx error exception
    */
   WxCpSchoolUnwatchStat getUnwatchStat(@NonNull String livingId, String nextKey) throws WxErrorException;
 
@@ -139,9 +140,9 @@ public interface WxCpSchoolService {
    * 请求方式: POST(HTTPS)
    * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/delete_replay_data?access_token=ACCESS_TOKEN
    *
-   * @param livingId
-   * @return
-   * @throws WxErrorException
+   * @param livingId the living id
+   * @return wx cp living result
+   * @throws WxErrorException the wx error exception
    */
   WxCpLivingResult deleteReplayData(@NonNull String livingId) throws WxErrorException;
 
diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java
index 18cdc45edb..26cfe3a019 100644
--- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java
+++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpSchoolUserService.java
@@ -12,8 +12,7 @@
  * 企业微信家校沟通相关接口.
  * https://developer.work.weixin.qq.com/document/path/91638
  *
- * @author Wang_Wong
- * created on : 2022/6/18 9:10
+ * @author Wang_Wong created on : 2022/6/18 9:10
  */
 public interface WxCpSchoolUserService {
 
@@ -24,9 +23,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
    *
-   * @param code
-   * @return
-   * @throws WxErrorException
+   * @param code the code
+   * @return user info
+   * @throws WxErrorException the wx error exception
    */
   WxCpOauth2UserInfo getUserInfo(@NonNull String code) throws WxErrorException;
 
@@ -37,9 +36,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
    *
-   * @param code
-   * @return
-   * @throws WxErrorException
+   * @param code the code
+   * @return school user info
+   * @throws WxErrorException the wx error exception
    */
   WxCpOauth2UserInfo getSchoolUserInfo(@NonNull String code) throws WxErrorException;
 
@@ -48,11 +47,11 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_student?access_token=ACCESS_TOKEN
    *
-   * @param studentUserId
-   * @param name
-   * @param departments
-   * @return
-   * @throws WxErrorException
+   * @param studentUserId the student user id
+   * @param name          the name
+   * @param departments   the departments
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, @NonNull List departments) throws WxErrorException;
 
@@ -61,9 +60,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_student?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp batch result list
+   * @throws WxErrorException the wx error exception
    */
   WxCpBatchResultList batchCreateStudent(@NonNull WxCpBatchCreateStudentRequest request) throws WxErrorException;
 
@@ -72,9 +71,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_student?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp batch result list
+   * @throws WxErrorException the wx error exception
    */
   WxCpBatchResultList batchDeleteStudent(@NonNull WxCpBatchDeleteStudentRequest request) throws WxErrorException;
 
@@ -83,9 +82,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_student?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp batch result list
+   * @throws WxErrorException the wx error exception
    */
   WxCpBatchResultList batchUpdateStudent(@NonNull WxCpBatchUpdateStudentRequest request) throws WxErrorException;
 
@@ -94,9 +93,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_student?access_token=ACCESS_TOKEN&userid=USERID
    *
-   * @param studentUserId
-   * @return
-   * @throws WxErrorException
+   * @param studentUserId the student user id
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp deleteStudent(@NonNull String studentUserId) throws WxErrorException;
 
@@ -105,23 +104,24 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_student?access_token=ACCESS_TOKEN
    *
-   * @param studentUserId
-   * @param newStudentUserId
-   * @param name
-   * @param departments
-   * @return
-   * @throws WxErrorException
+   * @param studentUserId    the student user id
+   * @param newStudentUserId the new student user id
+   * @param name             the name
+   * @param departments      the departments
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
-  WxCpBaseResp updateStudent(@NonNull String studentUserId, String newStudentUserId, String name, List departments) throws WxErrorException;
+  WxCpBaseResp updateStudent(@NonNull String studentUserId, String newStudentUserId, String name,
+                             List departments) throws WxErrorException;
 
   /**
    * 创建家长
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_parent?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp createParent(@NonNull WxCpCreateParentRequest request) throws WxErrorException;
 
@@ -130,9 +130,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_parent?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp batch result list
+   * @throws WxErrorException the wx error exception
    */
   WxCpBatchResultList batchCreateParent(@NonNull WxCpBatchCreateParentRequest request) throws WxErrorException;
 
@@ -141,9 +141,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_parent?access_token=ACCESS_TOKEN
    *
-   * @param userIdList
-   * @return
-   * @throws WxErrorException
+   * @param userIdList the user id list
+   * @return wx cp batch result list
+   * @throws WxErrorException the wx error exception
    */
   WxCpBatchResultList batchDeleteParent(@NonNull String... userIdList) throws WxErrorException;
 
@@ -152,9 +152,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_parent?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp batch result list
+   * @throws WxErrorException the wx error exception
    */
   WxCpBatchResultList batchUpdateParent(@NonNull WxCpBatchUpdateParentRequest request) throws WxErrorException;
 
@@ -163,32 +163,34 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/get?access_token=ACCESS_TOKEN&userid=USERID
    *
-   * @param userId
-   * @return
-   * @throws WxErrorException
+   * @param userId the user id
+   * @return user
+   * @throws WxErrorException the wx error exception
    */
   WxCpUserResult getUser(@NonNull String userId) throws WxErrorException;
 
   /**
    * 获取部门成员详情
    * 请求方式:GET(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID
+   * &fetch_child=FETCH_CHILD
    *
    * @param departmentId 获取的部门id
    * @param fetchChild   1/0:是否递归获取子部门下面的成员
-   * @return
-   * @throws WxErrorException
+   * @return user list
+   * @throws WxErrorException the wx error exception
    */
   WxCpUserListResult getUserList(@NonNull Integer departmentId, Integer fetchChild) throws WxErrorException;
 
   /**
    * 获取部门家长详情
    * 请求方式:GET(HTTPS)
-   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list_parent?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID
+   * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list_parent?access_token=ACCESS_TOKEN&department_id
+   * =DEPARTMENT_ID
    *
    * @param departmentId 获取的部门id
-   * @return
-   * @throws WxErrorException
+   * @return user list parent
+   * @throws WxErrorException the wx error exception
    */
   WxCpListParentResult getUserListParent(@NonNull Integer departmentId) throws WxErrorException;
 
@@ -197,9 +199,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_parent?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp updateParent(@NonNull WxCpUpdateParentRequest request) throws WxErrorException;
 
@@ -208,9 +210,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_parent?access_token=ACCESS_TOKEN&userid=USERID
    *
-   * @param userId
-   * @return
-   * @throws WxErrorException
+   * @param userId the user id
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp deleteParent(@NonNull String userId) throws WxErrorException;
 
@@ -222,8 +224,8 @@ public interface WxCpSchoolUserService {
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/set_arch_sync_mode?access_token=ACCESS_TOKEN
    *
    * @param archSyncMode 家校通讯录同步模式:1-禁止将标签同步至家校通讯录,2-禁止将家校通讯录同步至标签,3-禁止家校通讯录和标签相互同步
-   * @return
-   * @throws WxErrorException
+   * @return arch sync mode
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp setArchSyncMode(@NonNull Integer archSyncMode) throws WxErrorException;
 
@@ -234,8 +236,8 @@ public interface WxCpSchoolUserService {
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/create?access_token=ACCESS_TOKEN
    *
    * @param request 请求参数对象
-   * @return
-   * @throws WxErrorException
+   * @return wx cp create department
+   * @throws WxErrorException the wx error exception
    */
   WxCpCreateDepartment createDepartment(@NonNull WxCpCreateDepartmentRequest request) throws WxErrorException;
 
@@ -245,9 +247,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:POST(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/update?access_token=ACCESS_TOKEN
    *
-   * @param request
-   * @return
-   * @throws WxErrorException
+   * @param request the request
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp updateDepartment(@NonNull WxCpUpdateDepartmentRequest request) throws WxErrorException;
 
@@ -256,9 +258,9 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/delete?access_token=ACCESS_TOKEN&id=ID
    *
-   * @param id
-   * @return
-   * @throws WxErrorException
+   * @param id the id
+   * @return wx cp base resp
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp deleteDepartment(Integer id) throws WxErrorException;
 
@@ -270,8 +272,8 @@ public interface WxCpSchoolUserService {
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/set_subscribe_mode?access_token=ACCESS_TOKEN
    *
    * @param subscribeMode 关注模式, 1:可扫码填写资料加入, 2:禁止扫码填写资料加入
-   * @return
-   * @throws WxErrorException
+   * @return subscribe mode
+   * @throws WxErrorException the wx error exception
    */
   WxCpBaseResp setSubscribeMode(@NonNull Integer subscribeMode) throws WxErrorException;
 
@@ -282,8 +284,8 @@ public interface WxCpSchoolUserService {
    * 请求方式:GET(HTTPS)
    * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_mode?access_token=ACCESS_TOKEN
    *
-   * @return
-   * @throws WxErrorException
+   * @return subscribe mode
+   * @throws WxErrorException the wx error exception
    */
   Integer getSubscribeMode() throws WxErrorException;
 
@@ -292,11 +294,12 @@ public interface WxCpSchoolUserService {
    * 学校可通过此接口,根据外部联系人的userid(如何获取?),拉取外部联系人详情。
    * 

* 请求方式:GET(HTTPS) - * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=ACCESS_TOKEN&external_userid=EXTERNAL_USERID + * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=ACCESS_TOKEN&external_userid + * =EXTERNAL_USERID * * @param externalUserId 外部联系人的userid,注意不是学校成员的帐号 - * @return - * @throws WxErrorException + * @return external contact + * @throws WxErrorException the wx error exception */ WxCpExternalContact getExternalContact(@NonNull String externalUserId) throws WxErrorException; @@ -307,9 +310,9 @@ public interface WxCpSchoolUserService { * 请求方式:GET(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/agent/get_allow_scope?access_token=ACCESS_TOKEN&agentid=AGENTID * - * @param agentId - * @return - * @throws WxErrorException + * @param agentId the agent id + * @return allow scope + * @throws WxErrorException the wx error exception */ WxCpAllowScope getAllowScope(@NonNull Integer agentId) throws WxErrorException; @@ -320,9 +323,9 @@ public interface WxCpSchoolUserService { * 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/convert_to_openid?access_token=ACCESS_TOKEN * - * @param externalUserId - * @return - * @throws WxErrorException + * @param externalUserId the external user id + * @return string + * @throws WxErrorException the wx error exception */ String convertToOpenId(@NonNull String externalUserId) throws WxErrorException; @@ -331,9 +334,9 @@ public interface WxCpSchoolUserService { * 请求方式:GET(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/list?access_token=ACCESS_TOKEN&id=ID * - * @param id - * @return - * @throws WxErrorException + * @param id the id + * @return wx cp department list + * @throws WxErrorException the wx error exception */ WxCpDepartmentList listDepartment(Integer id) throws WxErrorException; @@ -343,8 +346,8 @@ public interface WxCpSchoolUserService { * 请求方式:GET(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_qr_code?access_token=ACCESS_TOKEN * - * @return - * @throws WxErrorException + * @return subscribe qr code + * @throws WxErrorException the wx error exception */ WxCpSubscribeQrCode getSubscribeQrCode() throws WxErrorException; @@ -353,10 +356,10 @@ public interface WxCpSchoolUserService { * 请求方式: POST(HTTPS) * 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/set_upgrade_info?access_token=ACCESS_TOKEN * - * @param upgradeTime - * @param upgradeSwitch - * @return - * @throws WxErrorException + * @param upgradeTime the upgrade time + * @param upgradeSwitch the upgrade switch + * @return upgrade info + * @throws WxErrorException the wx error exception */ WxCpSetUpgradeInfo setUpgradeInfo(Long upgradeTime, Integer upgradeSwitch) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 44237ba8eb..8a9bdb19ba 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -38,7 +38,7 @@ public interface WxCpService extends WxService { * * @return the access token * @throws WxErrorException the wx error exception - * @see #getAccessToken(boolean) #getAccessToken(boolean)#getAccessToken(boolean) + * @see #getAccessToken(boolean) #getAccessToken(boolean)#getAccessToken(boolean)#getAccessToken(boolean) */ String getAccessToken() throws WxErrorException; @@ -62,7 +62,7 @@ public interface WxCpService extends WxService { * * @return the jsapi ticket * @throws WxErrorException the wx error exception - * @see #getJsapiTicket(boolean) #getJsapiTicket(boolean)#getJsapiTicket(boolean) + * @see #getJsapiTicket(boolean) #getJsapiTicket(boolean)#getJsapiTicket(boolean)#getJsapiTicket(boolean) */ String getJsapiTicket() throws WxErrorException; @@ -89,7 +89,7 @@ public interface WxCpService extends WxService { * * @return the agent jsapi ticket * @throws WxErrorException the wx error exception - * @see #getJsapiTicket(boolean) #getJsapiTicket(boolean)#getJsapiTicket(boolean) + * @see #getJsapiTicket(boolean) #getJsapiTicket(boolean)#getJsapiTicket(boolean)#getJsapiTicket(boolean) */ String getAgentJsapiTicket() throws WxErrorException; @@ -134,7 +134,7 @@ public interface WxCpService extends WxService { * * @param url url * @return the agent jsapi signature - * @throws WxErrorException + * @throws WxErrorException the wx error exception */ WxCpAgentJsapiSignature createAgentJsapiSignature(String url) throws WxErrorException; @@ -265,6 +265,7 @@ public interface WxCpService extends WxService { /** * 上传用户列表,增量更新成员 + * * @param mediaId 媒体id * @return jobId 异步任务id * @throws WxErrorException the wx error exception @@ -310,9 +311,10 @@ public interface WxCpService extends WxService { /** * 构造扫码登录链接 - 构造独立窗口登录二维码 + * * @param redirectUri 重定向地址,需要进行UrlEncode - * @param state 用于保持请求和回调的状态,授权请求后原样带回给企业。该参数可用于防止csrf攻击(跨站请求伪造攻击),建议企业带上该参数,可设置为简单的随机数加session进行校验 - * @return . + * @param state 用于保持请求和回调的状态,授权请求后原样带回给企业。该参数可用于防止csrf攻击(跨站请求伪造攻击),建议企业带上该参数,可设置为简单的随机数加session进行校验 + * @return . string */ String buildQrConnectUrl(String redirectUri, String state); @@ -403,21 +405,21 @@ public interface WxCpService extends WxService { /** * 获取家校应用复学码相关接口的服务类对象 * - * @return + * @return school service */ WxCpSchoolService getSchoolService(); /** * 获取家校沟通相关接口的服务类对象 * - * @return + * @return school user service */ WxCpSchoolUserService getSchoolUserService(); /** * 获取家校应用健康上报的服务类对象 * - * @return + * @return school health service */ WxCpSchoolHealthService getSchoolHealthService(); @@ -431,21 +433,21 @@ public interface WxCpService extends WxService { /** * 获取OA 自建应用相关接口的服务类对象 * - * @return + * @return oa agent service */ WxCpOaAgentService getOaAgentService(); /** * 获取OA效率工具 微盘的服务类对象 * - * @return + * @return oa we drive service */ WxCpOaWeDriveService getOaWeDriveService(); /** * 获取会话存档相关接口的服务类对象 * - * @return + * @return msg audit service */ WxCpMsgAuditService getMsgAuditService(); @@ -487,7 +489,7 @@ public interface WxCpService extends WxService { /** * 获取微信客服服务 * - * @return 微信客服服务 + * @return 微信客服服务 kf service */ WxCpKfService getKfService(); @@ -550,7 +552,7 @@ public interface WxCpService extends WxService { /** * 获取异步导出服务 * - * @return 异步导出服务 + * @return 异步导出服务 export service */ WxCpExportService getExportService(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTagService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTagService.java index 045264f7d0..4469bcc9e9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTagService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTagService.java @@ -26,7 +26,7 @@ public interface WxCpTagService { * * @param name 标签名称,长度限制为32个字以内(汉字或英文字母),标签名不可与其他标签重名。 * @param id 标签id,非负整型,指定此参数时新增的标签会生成对应的标签id,不指定时则以目前最大的id自增。 - * @return 标签id + * @return 标签id string * @throws WxErrorException . */ String create(String name, Integer id) throws WxErrorException; @@ -51,7 +51,7 @@ public interface WxCpTagService { /** * 获得标签列表. * - * @return 标签列表 + * @return 标签列表 list * @throws WxErrorException . */ List listAll() throws WxErrorException; @@ -60,7 +60,7 @@ public interface WxCpTagService { * 获取标签成员. * * @param tagId 标签ID - * @return 成员列表 + * @return 成员列表 list * @throws WxErrorException . */ List listUsersByTagId(String tagId) throws WxErrorException; @@ -70,7 +70,7 @@ public interface WxCpTagService { * 对应: http://qydev.weixin.qq.com/wiki/index.php?title=管理标签 中的get接口 * * @param tagId 标签id - * @return . + * @return . wx cp tag get result * @throws WxErrorException . */ WxCpTagGetResult get(String tagId) throws WxErrorException; @@ -81,7 +81,7 @@ public interface WxCpTagService { * @param tagId 标签id * @param userIds 用户ID 列表 * @param partyIds 企业部门ID列表 - * @return . + * @return . wx cp tag add or remove users result * @throws WxErrorException . */ WxCpTagAddOrRemoveUsersResult addUsers2Tag(String tagId, List userIds, List partyIds) throws WxErrorException; @@ -92,7 +92,7 @@ public interface WxCpTagService { * @param tagId 标签id * @param userIds 用户id列表 * @param partyIds 企业部门ID列表 - * @return . + * @return . wx cp tag add or remove users result * @throws WxErrorException . */ WxCpTagAddOrRemoveUsersResult removeUsersFromTag(String tagId, List userIds, List partyIds) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java index 9c401a981b..ee28d81e58 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java @@ -11,8 +11,7 @@ * Updted by HeXiao on 2022-03-09. *

* - * @author Jeff - * created on 2019-05-16 + * @author Jeff created on 2019-05-16 */ public interface WxCpTaskCardService { @@ -27,23 +26,26 @@ public interface WxCpTaskCardService { * @param userIds 企业的成员ID列表 * @param taskId 任务卡片ID * @param replaceName 替换文案 + * @throws WxErrorException the wx error exception */ void update(List userIds, String taskId, String replaceName) throws WxErrorException; /** * 更新按钮为不可点击状态 - * 详情请见https://developer.work.weixin.qq.com/document/path/94888#%E6%9B%B4%E6%96%B0%E6%8C%89%E9%92%AE%E4%B8%BA%E4%B8%8D%E5%8F%AF%E7%82%B9%E5%87%BB%E7%8A%B6%E6%80%81 - * @param userIds 企业的成员ID列表 - * @param partyIds 企业的部门ID列表 - * @param tagIds 企业的标签ID列表 - * @param atAll 更新整个任务接收人员 - * @param responseCode 更新卡片所需要消费的code,可通过发消息接口和回调接口返回值获取,一个code只能调用一次该接口,且只能在24小时内调用 - * @param replaceName 需要更新的按钮的文案 - * @throws WxErrorException + * 详情请见https://developer.work.weixin.qq.com/document/path/94888#%E6%9B%B4%E6%96%B0%E6%8C%89%E9%92%AE%E4%B8%BA%E4%B8 + * %8D%E5%8F%AF%E7%82%B9%E5%87%BB%E7%8A%B6%E6%80%81 + * + * @param userIds 企业的成员ID列表 + * @param partyIds 企业的部门ID列表 + * @param tagIds 企业的标签ID列表 + * @param atAll 更新整个任务接收人员 + * @param responseCode 更新卡片所需要消费的code,可通过发消息接口和回调接口返回值获取,一个code只能调用一次该接口,且只能在24小时内调用 + * @param replaceName 需要更新的按钮的文案 + * @throws WxErrorException the wx error exception */ void updateTemplateCardButton(List userIds, List partyIds, - List tagIds, Integer atAll, String responseCode, - String replaceName) throws WxErrorException; + List tagIds, Integer atAll, String responseCode, + String replaceName) throws WxErrorException; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java index d5bd6702ca..4b75450ff6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java @@ -132,7 +132,8 @@ public interface WxCpUserService { * * @param userId 企业内的成员id * @param agentId 非必填,整型,仅用于发红包。其它场景该参数不要填,如微信支付、企业转账、电子发票 - * @return map对象 ,可能包含以下值: - openid 企业微信成员userid对应的openid,若有传参agentid,则是针对该agentid的openid。否则是针对企业微信corpid的openid - appid 应用的appid,若请求包中不包含agentid则不返回appid。该appid在使用微信红包时会用到 + * @return map对象 ,可能包含以下值: - openid 企业微信成员userid对应的openid,若有传参agentid,则是针对该agentid的openid。否则是针对企业微信corpid的openid - + * appid 应用的appid,若请求包中不包含agentid则不返回appid。该appid在使用微信红包时会用到 * @throws WxErrorException the wx error exception */ Map userId2Openid(String userId, Integer agentId) throws WxErrorException; @@ -226,9 +227,9 @@ public interface WxCpUserService { * 将自建应用或代开发应用获取的userid转换为第三方应用的userid * https://developer.work.weixin.qq.com/document/path/95603 * - * @param useridList + * @param useridList the userid list * @return the WxCpUseridToOpenUseridResult - * @throws WxErrorException + * @throws WxErrorException the wx error exception */ WxCpUseridToOpenUseridResult useridToOpenUserid(ArrayList useridList) throws WxErrorException; @@ -239,10 +240,10 @@ public interface WxCpUserService { * 请求方式:POST(HTTPS) * 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/list_id?access_token=ACCESS_TOKEN * - * @param cursor - * @param limit - * @return - * @throws WxErrorException + * @param cursor the cursor + * @param limit the limit + * @return user list id + * @throws WxErrorException the wx error exception */ WxCpDeptUserResult getUserListId(String cursor, Integer limit) throws WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java index 735ccfd85f..dea53f5dcc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/BaseWxCpServiceImpl.java @@ -36,34 +36,36 @@ /** * . * + * @param the type parameter + * @param

the type parameter * @author chanjarster */ @Slf4j public abstract class BaseWxCpServiceImpl implements WxCpService, RequestHttp { private WxCpUserService userService = new WxCpUserServiceImpl(this); - private WxCpChatService chatService = new WxCpChatServiceImpl(this); + private final WxCpChatService chatService = new WxCpChatServiceImpl(this); private WxCpDepartmentService departmentService = new WxCpDepartmentServiceImpl(this); private WxCpMediaService mediaService = new WxCpMediaServiceImpl(this); private WxCpMenuService menuService = new WxCpMenuServiceImpl(this); private WxCpOAuth2Service oauth2Service = new WxCpOAuth2ServiceImpl(this); private WxCpTagService tagService = new WxCpTagServiceImpl(this); private WxCpAgentService agentService = new WxCpAgentServiceImpl(this); - private WxCpOaService oaService = new WxCpOaServiceImpl(this); - private WxCpSchoolService schoolService = new WxCpSchoolServiceImpl(this); - private WxCpSchoolUserService schoolUserService = new WxCpSchoolUserServiceImpl(this); - private WxCpSchoolHealthService schoolHealthService = new WxCpSchoolHealthServiceImpl(this); - private WxCpLivingService livingService = new WxCpLivingServiceImpl(this); - private WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); - private WxCpOaWeDriveService oaWeDriveService = new WxCpOaWeDriveServiceImpl(this); - private WxCpMsgAuditService msgAuditService = new WxCpMsgAuditServiceImpl(this); - private WxCpTaskCardService taskCardService = new WxCpTaskCardServiceImpl(this); - private WxCpExternalContactService externalContactService = new WxCpExternalContactServiceImpl(this); - private WxCpGroupRobotService groupRobotService = new WxCpGroupRobotServiceImpl(this); - private WxCpMessageService messageService = new WxCpMessageServiceImpl(this); - private WxCpOaCalendarService oaCalendarService = new WxCpOaCalendarServiceImpl(this); - private WxCpOaMeetingRoomService oaMeetingRoomService = new WxCpOaMeetingRoomServiceImpl(this); - private WxCpOaScheduleService oaScheduleService = new WxCpOaOaScheduleServiceImpl(this); - private WxCpAgentWorkBenchService workBenchService = new WxCpAgentWorkBenchServiceImpl(this); + private final WxCpOaService oaService = new WxCpOaServiceImpl(this); + private final WxCpSchoolService schoolService = new WxCpSchoolServiceImpl(this); + private final WxCpSchoolUserService schoolUserService = new WxCpSchoolUserServiceImpl(this); + private final WxCpSchoolHealthService schoolHealthService = new WxCpSchoolHealthServiceImpl(this); + private final WxCpLivingService livingService = new WxCpLivingServiceImpl(this); + private final WxCpOaAgentService oaAgentService = new WxCpOaAgentServiceImpl(this); + private final WxCpOaWeDriveService oaWeDriveService = new WxCpOaWeDriveServiceImpl(this); + private final WxCpMsgAuditService msgAuditService = new WxCpMsgAuditServiceImpl(this); + private final WxCpTaskCardService taskCardService = new WxCpTaskCardServiceImpl(this); + private final WxCpExternalContactService externalContactService = new WxCpExternalContactServiceImpl(this); + private final WxCpGroupRobotService groupRobotService = new WxCpGroupRobotServiceImpl(this); + private final WxCpMessageService messageService = new WxCpMessageServiceImpl(this); + private final WxCpOaCalendarService oaCalendarService = new WxCpOaCalendarServiceImpl(this); + private final WxCpOaMeetingRoomService oaMeetingRoomService = new WxCpOaMeetingRoomServiceImpl(this); + private final WxCpOaScheduleService oaScheduleService = new WxCpOaOaScheduleServiceImpl(this); + private final WxCpAgentWorkBenchService workBenchService = new WxCpAgentWorkBenchServiceImpl(this); private WxCpKfService kfService = new WxCpKfServiceImpl(this); private WxCpExportService exportService = new WxCpExportServiceImpl(this); @@ -83,6 +85,9 @@ public abstract class BaseWxCpServiceImpl implements WxCpService, RequestH */ protected final Object globalAgentJsapiTicketRefreshLock = new Object(); + /** + * The Config storage. + */ protected WxCpConfigStorage configStorage; private WxSessionManager sessionManager = new StandardSessionManager(); @@ -234,7 +239,8 @@ public WxCpProviderToken getProviderToken(String corpId, String providerSecret) JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("corpid", corpId); jsonObject.addProperty("provider_secret", providerSecret); - return WxCpProviderToken.fromJson(this.post(this.configStorage.getApiUrl(Tp.GET_PROVIDER_TOKEN), jsonObject.toString())); + return WxCpProviderToken.fromJson(this.post(this.configStorage.getApiUrl(Tp.GET_PROVIDER_TOKEN), + jsonObject.toString())); } @Override @@ -305,6 +311,18 @@ public T execute(RequestExecutor executor, String uri, E data) thro throw new WxRuntimeException("微信服务端异常,超出重试次数"); } + /** + * Execute internal t. + * + * @param the type parameter + * @param the type parameter + * @param executor the executor + * @param uri the uri + * @param data the data + * @param doNotAutoRefresh the do not auto refresh + * @return the t + * @throws WxErrorException the wx error exception + */ protected T executeInternal(RequestExecutor executor, String uri, E data, boolean doNotAutoRefresh) throws WxErrorException { E dataForLog = DataUtils.handleDataWithSecret(data); @@ -439,15 +457,26 @@ public String getTaskResult(String jobId) throws WxErrorException { @Override public String buildQrConnectUrl(String redirectUri, String state) { - return String.format("https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=%s&agentid=%s&redirect_uri=%s&state=%s", + return String.format("https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=%s&agentid=%s&redirect_uri=%s" + + "&state=%s", this.configStorage.getCorpId(), this.configStorage.getAgentId(), URIUtil.encodeURIComponent(redirectUri), StringUtils.trimToEmpty(state)); } + /** + * Gets tmp dir file. + * + * @return the tmp dir file + */ public File getTmpDirFile() { return this.tmpDirFile; } + /** + * Sets tmp dir file. + * + * @param tmpDirFile the tmp dir file + */ public void setTmpDirFile(File tmpDirFile) { this.tmpDirFile = tmpDirFile; } @@ -602,6 +631,11 @@ public WxCpMessageService getMessageService() { return this.messageService; } + /** + * Sets agent service. + * + * @param agentService the agent service + */ public void setAgentService(WxCpAgentService agentService) { this.agentService = agentService; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java index 47169998f8..3af04c3075 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpAgentWorkBenchServiceImpl.java @@ -7,13 +7,12 @@ import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpAgentWorkBench; -import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.WorkBench.WORKBENCH_DATA_SET; -import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.WorkBench.WORKBENCH_TEMPLATE_GET; -import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.WorkBench.WORKBENCH_TEMPLATE_SET; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.WorkBench.*; /** - * @author songshiyu - * created on : create in 11:24 2020/9/28 + * The type Wx cp agent work bench service. + * + * @author songshiyu created on : create in 11:24 2020/9/28 * @description: 工作台自定义展示实现 */ @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpChatServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpChatServiceImpl.java index 7783422af9..c47785f6e5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpChatServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpChatServiceImpl.java @@ -6,8 +6,8 @@ import me.chanjar.weixin.common.util.json.WxGsonBuilder; import me.chanjar.weixin.cp.api.WxCpChatService; import me.chanjar.weixin.cp.api.WxCpService; -import me.chanjar.weixin.cp.bean.message.WxCpAppChatMessage; import me.chanjar.weixin.cp.bean.WxCpChat; +import me.chanjar.weixin.cp.bean.message.WxCpAppChatMessage; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import org.apache.commons.lang3.StringUtils; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java index 30ea5baaa2..638dd4e1c3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExportServiceImpl.java @@ -15,9 +15,8 @@ /** * 异步导出接口 * - * @author zhongjun - * created on 2022/4/21 - **/ + * @author zhongjun created on 2022/4/21 + */ @RequiredArgsConstructor public class WxCpExportServiceImpl implements WxCpExportService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java index aa6cc03666..3373e7ccb7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpExternalContactServiceImpl.java @@ -32,6 +32,8 @@ import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.ExternalContact.*; /** + * The type Wx cp external contact service. + * * @author 曹祖鹏 & yuanqixun & Mr.Pan & Wang_Wong */ @RequiredArgsConstructor @@ -153,7 +155,8 @@ public String toServiceExternalUserid(@NotNull String externalUserid) throws WxE } @Override - public WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull String unionid, @NotNull String openid, String corpid) throws WxErrorException { + public WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull String unionid, @NotNull String openid, + String corpid) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("unionid", unionid); json.addProperty("openid", openid); @@ -277,7 +280,8 @@ public WxCpUserTransferCustomerResp transferCustomer(WxCpUserTransferCustomerReq } @Override - public WxCpUserTransferResultResp transferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, String cursor) throws WxErrorException { + public WxCpUserTransferResultResp transferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, + String cursor) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("cursor", cursor); json.addProperty("handover_userid", handOverUserid); @@ -296,7 +300,8 @@ public WxCpUserTransferCustomerResp resignedTransferCustomer(WxCpUserTransferCus } @Override - public WxCpUserTransferResultResp resignedTransferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, String cursor) throws WxErrorException { + public WxCpUserTransferResultResp resignedTransferResult(@NotNull String handOverUserid, + @NotNull String takeOverUserid, String cursor) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("cursor", cursor); json.addProperty("handover_userid", handOverUserid); @@ -307,7 +312,8 @@ public WxCpUserTransferResultResp resignedTransferResult(@NotNull String handOve } @Override - public WxCpUserExternalGroupChatList listGroupChat(Integer pageIndex, Integer pageSize, int status, String[] userIds, String[] partyIds) throws WxErrorException { + public WxCpUserExternalGroupChatList listGroupChat(Integer pageIndex, Integer pageSize, int status, + String[] userIds, String[] partyIds) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("offset", pageIndex == null ? 0 : pageIndex); json.addProperty("limit", pageSize == null ? 100 : pageSize); @@ -368,7 +374,8 @@ public WxCpUserExternalGroupChatTransferResp transferGroupChat(String[] chatIds, } @Override - public WxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(Date startTime, Date endTime, String[] userIds, String[] partyIds) throws WxErrorException { + public WxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(Date startTime, Date endTime, + String[] userIds, String[] partyIds) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("start_time", startTime.getTime() / 1000); json.addProperty("end_time", endTime.getTime() / 1000); @@ -386,7 +393,9 @@ public WxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(Date start } @Override - public WxCpUserExternalGroupChatStatistic getGroupChatStatistic(Date startTime, Integer orderBy, Integer orderAsc, Integer pageIndex, Integer pageSize, String[] userIds, String[] partyIds) throws WxErrorException { + public WxCpUserExternalGroupChatStatistic getGroupChatStatistic(Date startTime, Integer orderBy, Integer orderAsc, + Integer pageIndex, Integer pageSize, + String[] userIds, String[] partyIds) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("day_begin_time", startTime.getTime() / 1000); json.addProperty("order_by", orderBy == null ? 1 : orderBy); @@ -617,7 +626,8 @@ public WxCpGetMomentComments getMomentComments(String momentId, String userId) * @throws WxErrorException the wx error exception */ @Override - public WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date startTime, @NonNull Date endTime, String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException { + public WxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull Date startTime, @NonNull Date endTime, + String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException { JsonObject json = new JsonObject(); json.addProperty("chat_type", chatType); json.addProperty("start_time", startTime.getTime() / 1000); @@ -843,13 +853,15 @@ public WxMediaUploadResult uploadAttachment(String mediaType, Integer attachment @Override public WxCpInterceptRuleResultResp addInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException { return WxCpInterceptRuleResultResp - .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(ADD_INTERCEPT_RULE), ruleResp.toJson())); + .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(ADD_INTERCEPT_RULE), + ruleResp.toJson())); } @Override public WxCpInterceptRuleResultResp updateInterceptRule(WxCpInterceptRuleResp ruleResp) throws WxErrorException { return WxCpInterceptRuleResultResp - .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_INTERCEPT_RULE), ruleResp.toJson())); + .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_INTERCEPT_RULE), + ruleResp.toJson())); } @Override @@ -857,7 +869,8 @@ public WxCpBaseResp delInterceptRule(String rule_id) throws WxErrorException { JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("rule_id", rule_id); return WxCpBaseResp - .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(DEL_INTERCEPT_RULE), jsonObject)); + .fromJson(this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(DEL_INTERCEPT_RULE), + jsonObject)); } @Override @@ -908,7 +921,7 @@ public WxCpGroupJoinWayInfo getJoinWay(String configId) throws WxErrorException JsonObject json = new JsonObject(); json.addProperty("config_id", configId); final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_JOIN_WAY); - String responseContent = this.mainService.post(url,json); + String responseContent = this.mainService.post(url, json); return WxCpGroupJoinWayInfo.fromJson(responseContent); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java index 6f3d4a6175..a5749cbc1c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java @@ -17,8 +17,7 @@ /** * 企业微信群机器人消息发送api 实现 * - * @author yr - * created on 2020-08-20 + * @author yr created on 2020-08-20 */ @RequiredArgsConstructor public class WxCpGroupRobotServiceImpl implements WxCpGroupRobotService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java index f997708f6e..247b1d0905 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpKfServiceImpl.java @@ -10,22 +10,6 @@ import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.bean.kf.*; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAdd; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountAddResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountDel; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLink; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountLinkResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountListResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfAccountUpd; -import me.chanjar.weixin.cp.bean.kf.WxCpKfCustomerBatchGetResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgListResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendRequest; -import me.chanjar.weixin.cp.bean.kf.WxCpKfMsgSendResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceStateTransResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServiceUpgradeConfigResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerListResp; -import me.chanjar.weixin.cp.bean.kf.WxCpKfServicerOpResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.util.List; @@ -35,8 +19,7 @@ /** * 微信客服接口-服务实现 * - * @author Fu - * created on 2022/1/19 19:41 + * @author Fu created on 2022/1/19 19:41 */ @RequiredArgsConstructor public class WxCpKfServiceImpl implements WxCpKfService { @@ -65,7 +48,7 @@ public WxCpBaseResp delAccount(WxCpKfAccountDel del) throws WxErrorException { } @Override - public WxCpKfAccountListResp listAccount(Integer offset,Integer limit) throws WxErrorException { + public WxCpKfAccountListResp listAccount(Integer offset, Integer limit) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(ACCOUNT_LIST); JsonObject json = new JsonObject(); if (offset != null) { @@ -130,7 +113,7 @@ public WxCpKfServiceStateResp getServiceState(String openKfid, String externalUs @Override public WxCpKfServiceStateTransResp transServiceState(String openKfid, String externalUserId, - Integer serviceState, String servicerUserId) throws WxErrorException { + Integer serviceState, String servicerUserId) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(SERVICE_STATE_TRANS); JsonObject json = new JsonObject(); @@ -149,16 +132,16 @@ public WxCpKfMsgListResp syncMsg(String cursor, String token, Integer limit, Int String url = cpService.getWxCpConfigStorage().getApiUrl(SYNC_MSG); JsonObject json = new JsonObject(); - if (cursor!=null) { + if (cursor != null) { json.addProperty("cursor", cursor); } - if (token!=null) { + if (token != null) { json.addProperty("token", token); } - if (limit!=null) { + if (limit != null) { json.addProperty("limit", limit); } - if (voiceFormat!=null) { + if (voiceFormat != null) { json.addProperty("voice_format", voiceFormat); } @@ -208,7 +191,7 @@ public WxCpKfServiceUpgradeConfigResp getUpgradeServiceConfig() throws WxErrorEx @Override public WxCpBaseResp upgradeMemberService(String openKfid, String externalUserId, - String userid, String wording) throws WxErrorException { + String userid, String wording) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_UPGRADE_SERVICE); JsonObject json = new JsonObject(); @@ -227,7 +210,7 @@ public WxCpBaseResp upgradeMemberService(String openKfid, String externalUserId, @Override public WxCpBaseResp upgradeGroupchatService(String openKfid, String externalUserId, - String chatId, String wording) throws WxErrorException { + String chatId, String wording) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(CUSTOMER_UPGRADE_SERVICE); JsonObject json = new JsonObject(); @@ -255,6 +238,7 @@ public WxCpBaseResp cancelUpgradeService(String openKfid, String externalUserId) String response = cpService.post(url, json); return WxCpBaseResp.fromJson(response); } + @Override public WxCpKfGetCorpStatisticResp getCorpStatistic(WxCpKfGetCorpStatisticRequest request) throws WxErrorException { String url = cpService.getWxCpConfigStorage().getApiUrl(GET_CORP_STATISTIC); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java index cbdae00dcb..b3d9e9a36e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpLivingServiceImpl.java @@ -20,8 +20,7 @@ * 企业微信直播接口实现类. * https://developer.work.weixin.qq.com/document/path/93633 * - * @author Wang_Wong - * created on 2021-12-21 + * @author Wang_Wong created on 2021-12-21 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java index 8e88aa20ea..7953d69e37 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMediaServiceImpl.java @@ -39,7 +39,8 @@ public WxMediaUploadResult upload(String mediaType, String fileType, InputStream } @Override - public WxMediaUploadResult upload(String mediaType, String filename, String url) throws WxErrorException, IOException { + public WxMediaUploadResult upload(String mediaType, String filename, String url) throws WxErrorException, + IOException { HttpURLConnection conn = null; InputStream inputStream = null; try { @@ -50,7 +51,9 @@ public WxMediaUploadResult upload(String mediaType, String filename, String url) //防止屏蔽程序抓取而返回403错误 conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)"); inputStream = conn.getInputStream(); - return this.mainService.execute(MediaInputStreamUploadRequestExecutor.create(this.mainService.getRequestHttp()), this.mainService.getWxCpConfigStorage().getApiUrl(MEDIA_UPLOAD + mediaType), new InputStreamData(inputStream, filename)); + return this.mainService.execute(MediaInputStreamUploadRequestExecutor.create(this.mainService.getRequestHttp()) + , this.mainService.getWxCpConfigStorage().getApiUrl(MEDIA_UPLOAD + mediaType), + new InputStreamData(inputStream, filename)); } finally { if (inputStream != null) { try { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java index 717b559c00..3d74f8249c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMessageServiceImpl.java @@ -12,8 +12,7 @@ /** * 消息推送接口实现类. * - * @author Binary Wang - * created on 2020-08-30 + * @author Binary Wang created on 2020-08-30 */ @RequiredArgsConstructor public class WxCpMessageServiceImpl implements WxCpMessageService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java index b25c7585b6..5f7cbf52a2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpMsgAuditServiceImpl.java @@ -27,8 +27,7 @@ /** * 会话内容存档接口实现类. * - * @author Wang_Wong - * created on 2022-01-17 + * @author Wang_Wong created on 2022-01-17 */ @Slf4j @RequiredArgsConstructor @@ -36,7 +35,8 @@ public class WxCpMsgAuditServiceImpl implements WxCpMsgAuditService { private final WxCpService cpService; @Override - public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, String passwd, @NonNull long timeout) throws Exception { + public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, String passwd, + @NonNull long timeout) throws Exception { String configPath = cpService.getWxCpConfigStorage().getMsgAuditLibPath(); if (StringUtils.isEmpty(configPath)) { throw new WxErrorException("请配置会话存档sdk文件的路径,不要配错了!!"); @@ -45,7 +45,8 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S /** * 完整的文件库路径: * - * /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so + * /www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll, + * libWeWorkFinanceSdk_Java.so */ // 替换斜杠 String replacePath = configPath.replace("\\", "/"); @@ -78,7 +79,8 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S Finance.loadingLibraries(osLib, prefixPath); long sdk = Finance.NewSdk(); - long ret = Finance.Init(sdk, cpService.getWxCpConfigStorage().getCorpId(), cpService.getWxCpConfigStorage().getCorpSecret()); + long ret = Finance.Init(sdk, cpService.getWxCpConfigStorage().getCorpId(), + cpService.getWxCpConfigStorage().getCorpSecret()); if (ret != 0) { Finance.DestroySdk(sdk); throw new WxErrorException("init sdk err ret " + ret); @@ -106,11 +108,21 @@ public WxCpChatDatas getChatDatas(long seq, @NonNull long limit, String proxy, S } @Override - public WxCpChatModel getDecryptData(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { + public WxCpChatModel getDecryptData(@NonNull long sdk, @NonNull WxCpChatDatas.WxCpChatData chatData, + @NonNull Integer pkcs1) throws Exception { String plainText = this.decryptChatData(sdk, chatData, pkcs1); return WxCpChatModel.fromJson(plainText); } + /** + * Decrypt chat data string. + * + * @param sdk the sdk + * @param chatData the chat data + * @param pkcs1 the pkcs 1 + * @return the string + * @throws Exception the exception + */ public String decryptChatData(long sdk, WxCpChatDatas.WxCpChatData chatData, Integer pkcs1) throws Exception { /** * 企业获取的会话内容,使用企业自行配置的消息加密公钥进行加密,企业可用自行保存的私钥解开会话内容数据。 @@ -148,16 +160,19 @@ public String decryptChatData(long sdk, WxCpChatDatas.WxCpChatData chatData, Int } @Override - public String getChatPlainText(@NonNull long sdk, WxCpChatDatas.@NonNull WxCpChatData chatData, @NonNull Integer pkcs1) throws Exception { + public String getChatPlainText(@NonNull long sdk, WxCpChatDatas.@NonNull WxCpChatData chatData, + @NonNull Integer pkcs1) throws Exception { return this.decryptChatData(sdk, chatData, pkcs1); } @Override - public void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String proxy, String passwd, @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException { + public void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String proxy, String passwd, + @NonNull long timeout, @NonNull String targetFilePath) throws WxErrorException { /** * 1、媒体文件每次拉取的最大size为512k,因此超过512k的文件需要分片拉取。 * 2、若该文件未拉取完整,sdk的IsMediaDataFinish接口会返回0,同时通过GetOutIndexBuf接口返回下次拉取需要传入GetMediaData的indexbuf。 - * 3、indexbuf一般格式如右侧所示,”Range:bytes=524288-1048575“:表示这次拉取的是从524288到1048575的分片。单个文件首次拉取填写的indexbuf为空字符串,拉取后续分片时直接填入上次返回的indexbuf即可。 + * 3、indexbuf一般格式如右侧所示,”Range:bytes=524288-1048575“:表示这次拉取的是从524288到1048575的分片。单个文件首次拉取填写的indexbuf + * 为空字符串,拉取后续分片时直接填入上次返回的indexbuf即可。 */ File targetFile = new File(targetFilePath); if (!targetFile.getParentFile().exists()) { @@ -177,7 +192,8 @@ public void getMediaFile(@NonNull long sdk, @NonNull String sdkfileid, String pr } data_len += Finance.GetDataLen(mediaData); - log.info("正在分片拉取媒体文件 len:{}, data_len:{}, is_finis:{} \n", Finance.GetIndexLen(mediaData), data_len, Finance.IsMediaDataFinish(mediaData)); + log.info("正在分片拉取媒体文件 len:{}, data_len:{}, is_finis:{} \n", Finance.GetIndexLen(mediaData), data_len, + Finance.IsMediaDataFinish(mediaData)); try { // 大于512k的文件会分片拉取,此处需要使用追加写,避免后面的分片覆盖之前的数据。 diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java index aac6e01a45..f5bd61ba97 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java @@ -67,7 +67,9 @@ public WxCpOauth2UserInfo getUserInfo(String code) throws WxErrorException { @Override public WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErrorException { - String responseText = this.mainService.get(String.format(this.mainService.getWxCpConfigStorage().getApiUrl(GET_USER_INFO), code, agentId), null); + String responseText = + this.mainService.get(String.format(this.mainService.getWxCpConfigStorage().getApiUrl(GET_USER_INFO), code, + agentId), null); JsonObject jo = GsonParser.parse(responseText); return WxCpOauth2UserInfo.builder() @@ -84,7 +86,9 @@ public WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErr @Override public WxCpOauth2UserInfo getSchoolUserInfo(String code) throws WxErrorException { - String responseText = this.mainService.get(String.format(this.mainService.getWxCpConfigStorage().getApiUrl(GET_SCHOOL_USER_INFO), code), null); + String responseText = + this.mainService.get(String.format(this.mainService.getWxCpConfigStorage().getApiUrl(GET_SCHOOL_USER_INFO), + code), null); JsonObject jo = GsonParser.parse(responseText); return WxCpOauth2UserInfo.builder() @@ -98,7 +102,8 @@ public WxCpOauth2UserInfo getSchoolUserInfo(String code) throws WxErrorException public WxCpUserDetail getUserDetail(String userTicket) throws WxErrorException { JsonObject param = new JsonObject(); param.addProperty("user_ticket", userTicket); - String responseText = this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(GET_USER_DETAIL), param.toString()); + String responseText = this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(GET_USER_DETAIL), + param.toString()); return WxCpGsonBuilder.create().fromJson(responseText, WxCpUserDetail.class); } } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java index d305a84a32..250ee0cb24 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaAgentServiceImpl.java @@ -17,8 +17,7 @@ /** * 企业微信自建应用接口实现类. * - * @author Wang_Wong - * created on 2022-04-06 + * @author Wang_Wong created on 2022-04-06 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java index da81181e68..ef24204493 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaCalendarServiceImpl.java @@ -17,8 +17,7 @@ /** * . * - * @author Binary Wang - * created on 2020-09-20 + * @author Binary Wang created on 2020-09-20 */ @RequiredArgsConstructor public class WxCpOaCalendarServiceImpl implements WxCpOaCalendarService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java index 2bf5b0d577..f486028a0a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaMeetingRoomServiceImpl.java @@ -7,7 +7,6 @@ import me.chanjar.weixin.common.util.json.GsonParser; import me.chanjar.weixin.cp.api.WxCpOaMeetingRoomService; import me.chanjar.weixin.cp.api.WxCpService; - import me.chanjar.weixin.cp.bean.oa.meetingroom.WxCpOaMeetingRoom; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; @@ -16,9 +15,10 @@ import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.*; /** + * The type Wx cp oa meeting room service. + * * @author fcat - * @version 1.0 - * Create by 2022/8/12 23:49 + * @version 1.0 Create by 2022/8/12 23:49 */ @RequiredArgsConstructor public class WxCpOaMeetingRoomServiceImpl implements WxCpOaMeetingRoomService { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java index cd9d4ede61..c9a6161b2e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaOaScheduleServiceImpl.java @@ -21,8 +21,7 @@ /** * 企业微信日程接口实现类. * - * @author Binary Wang - * created on 2020-12-25 + * @author Binary Wang created on 2020-12-25 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java index b524bf4d34..289968757a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java @@ -24,8 +24,7 @@ /** * 企业微信 OA 接口实现 * - * @author Element - * created on 2019-04-06 11:20 + * @author Element created on 2019-04-06 11:20 */ @RequiredArgsConstructor public class WxCpOaServiceImpl implements WxCpOaService { @@ -42,7 +41,8 @@ public String apply(WxCpOaApplyEventRequest request) throws WxErrorException { } @Override - public List getCheckinData(Integer openCheckinDataType, @NonNull Date startTime, @NonNull Date endTime, + public List getCheckinData(Integer openCheckinDataType, @NonNull Date startTime, + @NonNull Date endTime, List userIdList) throws WxErrorException { if (userIdList == null || userIdList.size() > USER_IDS_LIMIT) { throw new WxRuntimeException("用户列表不能为空,不超过 " + USER_IDS_LIMIT + " 个,若用户超过 " + USER_IDS_LIMIT + " 个,请分批获取"); @@ -197,7 +197,8 @@ public WxCpGetApprovalData getApprovalData(@NonNull Long startTime, @NonNull Lon } @Override - public WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, @NonNull Integer leftDuration, @NonNull Integer timeAttr, String remarks) throws WxErrorException { + public WxCpBaseResp setOneUserQuota(@NonNull String userId, @NonNull Integer vacationId, + @NonNull Integer leftDuration, @NonNull Integer timeAttr, String remarks) throws WxErrorException { final String url = this.mainService.getWxCpConfigStorage().getApiUrl(SET_ONE_USER_QUOTA); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("userid", userId); @@ -259,7 +260,8 @@ public WxCpTemplateResult getTemplateDetail(@NonNull String templateId) throws W } @Override - public List getCheckinDayData(@NonNull Date startTime, @NonNull Date endTime, List userIdList) + public List getCheckinDayData(@NonNull Date startTime, @NonNull Date endTime, + List userIdList) throws WxErrorException { if (userIdList == null || userIdList.size() > USER_IDS_LIMIT) { throw new WxRuntimeException("用户列表不能为空,不超过 " + USER_IDS_LIMIT + " 个,若用户超过 " + USER_IDS_LIMIT + " 个,请分批获取"); @@ -289,7 +291,8 @@ public List getCheckinDayData(@NonNull Date startTime, @NonN } @Override - public List getCheckinMonthData(@NonNull Date startTime, @NonNull Date endTime, List userIdList) + public List getCheckinMonthData(@NonNull Date startTime, @NonNull Date endTime, + List userIdList) throws WxErrorException { if (userIdList == null || userIdList.size() > USER_IDS_LIMIT) { throw new WxRuntimeException("用户列表不能为空,不超过 " + USER_IDS_LIMIT + " 个,若用户超过 " + USER_IDS_LIMIT + " 个,请分批获取"); @@ -319,7 +322,8 @@ public List getCheckinMonthData(@NonNull Date startTime, @ } @Override - public List getCheckinScheduleList(@NonNull Date startTime, @NonNull Date endTime, List userIdList) + public List getCheckinScheduleList(@NonNull Date startTime, @NonNull Date endTime, + List userIdList) throws WxErrorException { if (userIdList == null || userIdList.size() > USER_IDS_LIMIT) { throw new WxRuntimeException("用户列表不能为空,不超过 " + USER_IDS_LIMIT + " 个,若用户超过 " + USER_IDS_LIMIT + " 个,请分批获取"); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java index 3d5bb22f04..979e86e55f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaWeDriveServiceImpl.java @@ -17,8 +17,7 @@ /** * 企业微信微盘接口实现类. * - * @author Wang_Wong - * created on 2022-04-22 + * @author Wang_Wong created on 2022-04-22 */ @Slf4j @RequiredArgsConstructor @@ -126,7 +125,8 @@ public WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, } @Override - public WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, @NonNull String fatherId, @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException { + public WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, @NonNull String fatherId, + @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_CREATE); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("userid", userId); @@ -168,7 +168,8 @@ public WxCpBaseResp fileAclDel(@NonNull WxCpFileAclDelRequest request) throws Wx } @Override - public WxCpBaseResp fileSetting(@NonNull String userId, @NonNull String fileId, @NonNull Integer authScope, Integer auth) throws WxErrorException { + public WxCpBaseResp fileSetting(@NonNull String userId, @NonNull String fileId, @NonNull Integer authScope, + Integer auth) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_SETTING); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("userid", userId); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java index 4a96415c06..60f379da81 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolHealthServiceImpl.java @@ -19,8 +19,7 @@ /** * 企业微信家校应用 健康上报接口实现类. * - * @author Wang_Wong - * created on : 2022/5/31 9:16 + * @author Wang_Wong created on : 2022/5/31 9:16 */ @Slf4j @RequiredArgsConstructor @@ -58,7 +57,8 @@ public WxCpGetReportJobInfo getReportJobInfo(@NonNull String jobId, @NonNull Str } @Override - public WxCpGetReportAnswer getReportAnswer(@NonNull String jobId, @NonNull String date, Integer offset, Integer limit) throws WxErrorException { + public WxCpGetReportAnswer getReportAnswer(@NonNull String jobId, @NonNull String date, Integer offset, + Integer limit) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(GET_REPORT_ANSWER); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("jobid", jobId); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java index eab2d54456..7d8cadca33 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolServiceImpl.java @@ -21,8 +21,7 @@ * 企业微信家校应用 复学码相关接口实现类. * https://developer.work.weixin.qq.com/document/path/93744 * - * @author Wang_Wong - * created on : 2022/6/1 14:05 + * @author Wang_Wong created on : 2022/6/1 14:05 */ @Slf4j @RequiredArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java index 21c92341dd..fac1689e08 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpSchoolUserServiceImpl.java @@ -24,8 +24,7 @@ * 企业微信家校沟通相关接口. * https://developer.work.weixin.qq.com/document/path/91638 * - * @author Wang_Wong - * created on : 2022/6/18 9:10 + * @author Wang_Wong created on : 2022/6/18 9:10 */ @Slf4j @RequiredArgsConstructor @@ -44,7 +43,8 @@ public WxCpOauth2UserInfo getSchoolUserInfo(@NonNull String code) throws WxError } @Override - public WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, @NonNull List departments) throws WxErrorException { + public WxCpBaseResp createStudent(@NonNull String studentUserId, @NonNull String name, + @NonNull List departments) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(CREATE_STUDENT); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("student_userid", studentUserId); @@ -87,7 +87,8 @@ public WxCpBaseResp deleteStudent(@NonNull String studentUserId) throws WxErrorE } @Override - public WxCpBaseResp updateStudent(@NonNull String studentUserId, String newStudentUserId, String name, List departments) throws WxErrorException { + public WxCpBaseResp updateStudent(@NonNull String studentUserId, String newStudentUserId, String name, + List departments) throws WxErrorException { String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(UPDATE_STUDENT); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("student_userid", studentUserId); @@ -151,7 +152,8 @@ public WxCpUserResult getUser(@NonNull String userId) throws WxErrorException { @Override public WxCpUserListResult getUserList(@NonNull Integer departmentId, Integer fetchChild) throws WxErrorException { - String apiUrl = String.format(this.cpService.getWxCpConfigStorage().getApiUrl(GET_USER_LIST), departmentId, fetchChild); + String apiUrl = String.format(this.cpService.getWxCpConfigStorage().getApiUrl(GET_USER_LIST), departmentId, + fetchChild); String responseContent = this.cpService.get(apiUrl, null); return WxCpUserListResult.fromJson(responseContent); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceApacheHttpClientImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceApacheHttpClientImpl.java index b428bc34aa..7e69152a17 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceApacheHttpClientImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceApacheHttpClientImpl.java @@ -1,8 +1,8 @@ package me.chanjar.weixin.cp.api.impl; -import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.bean.WxAccessToken; +import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.error.WxRuntimeException; @@ -21,6 +21,8 @@ import java.io.IOException; /** + * The type Wx cp service apache http client. + * * @author someone */ public class WxCpServiceApacheHttpClientImpl extends BaseWxCpServiceImpl { @@ -49,7 +51,8 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException { } synchronized (this.globalAccessTokenRefreshLock) { - String url = String.format(this.configStorage.getApiUrl(WxCpApiPathConsts.GET_TOKEN), this.configStorage.getCorpId(), this.configStorage.getCorpSecret()); + String url = String.format(this.configStorage.getApiUrl(WxCpApiPathConsts.GET_TOKEN), + this.configStorage.getCorpId(), this.configStorage.getCorpSecret()); try { HttpGet httpGet = new HttpGet(url); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceJoddHttpImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceJoddHttpImpl.java index 1b53630688..ec8a3624ac 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceJoddHttpImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceJoddHttpImpl.java @@ -5,8 +5,8 @@ import jodd.http.HttpResponse; import jodd.http.ProxyInfo; import jodd.http.net.SocketHttpConnectionProvider; -import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.bean.WxAccessToken; +import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.http.HttpType; @@ -14,6 +14,8 @@ import me.chanjar.weixin.cp.constant.WxCpApiPathConsts; /** + * The type Wx cp service jodd http. + * * @author someone */ public class WxCpServiceJoddHttpImpl extends BaseWxCpServiceImpl { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOkHttpImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOkHttpImpl.java index 5fb5a73756..733f68e244 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOkHttpImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOkHttpImpl.java @@ -1,8 +1,8 @@ package me.chanjar.weixin.cp.api.impl; import lombok.extern.slf4j.Slf4j; -import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.bean.WxAccessToken; +import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.http.HttpType; @@ -15,6 +15,8 @@ import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.GET_TOKEN; /** + * The type Wx cp service ok http. + * * @author someone */ @Slf4j @@ -48,7 +50,8 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException { OkHttpClient client = getRequestHttpClient(); //请求的request Request request = new Request.Builder() - .url(String.format(this.configStorage.getApiUrl(GET_TOKEN), this.configStorage.getCorpId(), this.configStorage.getCorpSecret())) + .url(String.format(this.configStorage.getApiUrl(GET_TOKEN), this.configStorage.getCorpId(), + this.configStorage.getCorpSecret())) .get() .build(); String resultContent = null; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOnTpImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOnTpImpl.java index aa30385d6c..207681c7ae 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOnTpImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceOnTpImpl.java @@ -24,7 +24,8 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException { } //access token通过第三方应用service获取 //corpSecret对应企业永久授权码 - WxAccessToken accessToken = wxCpTpService.getCorpToken(this.configStorage.getCorpId(), this.configStorage.getCorpSecret()); + WxAccessToken accessToken = wxCpTpService.getCorpToken(this.configStorage.getCorpId(), + this.configStorage.getCorpSecret()); this.configStorage.updateAccessToken(accessToken.getAccessToken(), accessToken.getExpiresIn()); return this.configStorage.getAccessToken(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTagServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTagServiceImpl.java index 0e079160fb..e73ef98a98 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTagServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTagServiceImpl.java @@ -1,6 +1,8 @@ package me.chanjar.weixin.cp.api.impl; -import com.google.gson.*; +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.JsonPrimitive; import com.google.gson.reflect.TypeToken; import lombok.RequiredArgsConstructor; import me.chanjar.weixin.common.error.WxErrorException; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java index 42a4e2938a..109299e861 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java @@ -10,7 +10,8 @@ import java.util.List; import java.util.Map; -import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.TaskCard.*; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.TaskCard.UPDATE_TASK_CARD; +import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.TaskCard.UPDATE_TEMPLATE_CARD; /** *

@@ -18,8 +19,7 @@
  *  Created by Jeff on 2019-05-16.
  * 
* - * @author Jeff - * created on 2019-05-16 + * @author Jeff created on 2019-05-16 */ @RequiredArgsConstructor public class WxCpTaskCardServiceImpl implements WxCpTaskCardService { @@ -41,8 +41,8 @@ public void update(List userIds, String taskId, String replaceName) thro @Override public void updateTemplateCardButton(List userIds, List partyIds, - List tagIds, Integer atAll, - String responseCode, String replaceName) throws WxErrorException { + List tagIds, Integer atAll, + String responseCode, String replaceName) throws WxErrorException { Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); Map data = new HashMap<>(7); data.put("userids", userIds); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java index 99da962628..b47697ffac 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/Gender.java @@ -30,6 +30,12 @@ public enum Gender { private final String genderName; private final String code; + /** + * From code gender. + * + * @param code the code + * @return the gender + */ public static Gender fromCode(String code) { for (Gender a : Gender.values()) { if (a.code.equals(code)) { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java index 04b0dd72e3..898ca78b57 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgent.java @@ -70,14 +70,28 @@ public class WxCpAgent implements Serializable { @SerializedName("home_url") private String homeUrl; + /** + * From json wx cp agent. + * + * @param json the json + * @return the wx cp agent + */ public static WxCpAgent fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpAgent.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Users. + */ @Data public static class Users implements Serializable { private static final long serialVersionUID = 8801100463558788565L; @@ -86,6 +100,9 @@ public static class Users implements Serializable { private List users; } + /** + * The type User. + */ @Data public static class User implements Serializable { private static final long serialVersionUID = 7287632514385508024L; @@ -94,12 +111,18 @@ public static class User implements Serializable { private String userId; } + /** + * The type Parties. + */ @Data public static class Parties { @SerializedName("partyid") private List partyIds = null; } + /** + * The type Tags. + */ @Data public static class Tags { @SerializedName("tagid") diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java index fc2881bdae..a2737f7237 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java @@ -14,9 +14,9 @@ import java.util.List; /** - * @author songshiyu - * created on : create in 16:09 2020/9/27 - * 工作台自定义展示 + * The type Wx cp agent work bench. + * + * @author songshiyu created on : create in 16:09 2020/9/27 工作台自定义展示 */ @Data @Builder @@ -60,6 +60,8 @@ public class WxCpAgentWorkBench implements Serializable { /** * 生成模板Json字符串 + * + * @return the string */ public String toTemplateString() { JsonObject templateObject = new JsonObject(); @@ -74,6 +76,8 @@ public String toTemplateString() { /** * 生成用户数据Json字符串 + * + * @return the string */ public String toUserDataString() { JsonObject userDataObject = new JsonObject(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java index f1b342df09..6bf9a30aeb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpBaseResp.java @@ -10,28 +10,49 @@ /** * 返回结果 * - * @author yqx & WangWong - * created on 2020/3/16 + * @author yqx & WangWong created on 2020/3/16 */ @Getter @Setter public class WxCpBaseResp implements Serializable { private static final long serialVersionUID = -4301684507150486556L; + /** + * The Errcode. + */ @SerializedName("errcode") protected Long errcode; + /** + * The Errmsg. + */ @SerializedName("errmsg") protected String errmsg; + /** + * Success boolean. + * + * @return the boolean + */ public boolean success() { return getErrcode() == 0; } + /** + * From json wx cp base resp. + * + * @param json the json + * @return the wx cp base resp + */ public static WxCpBaseResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpBaseResp.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java index 5c640c51ce..bc54e7e806 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpDepart.java @@ -21,10 +21,21 @@ public class WxCpDepart implements Serializable { private Long parentId; private Long order; + /** + * From json wx cp depart. + * + * @param json the json + * @return the wx cp depart + */ public static WxCpDepart fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpDepart.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java index 5ab4f5246b..3cbeb7ce7b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpInviteResult.java @@ -21,6 +21,12 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp invite result. + * + * @param json the json + * @return the wx cp invite result + */ public static WxCpInviteResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpInviteResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java index 7291489d9b..f4de0b988a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpMaJsCode2SessionResult.java @@ -27,6 +27,12 @@ public class WxCpMaJsCode2SessionResult implements Serializable { @SerializedName("corpid") private String corpId; + /** + * From json wx cp ma js code 2 session result. + * + * @param json the json + * @return the wx cp ma js code 2 session result + */ public static WxCpMaJsCode2SessionResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpMaJsCode2SessionResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java index a35a37c05c..433e54a680 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java @@ -13,7 +13,7 @@ * 用oauth2获取用户信息的结果类 * Created by BinaryWang on 2019/5/26. *
- * + *

* 文档1:https://developer.work.weixin.qq.com/document/path/91707 * * @author Binary Wang diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java index 2caac57ecc..872b96d93f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpProviderToken.java @@ -9,8 +9,7 @@ /** * 服务商凭证. * - * @author Binary Wang - * created on 2019-11-02 + * @author Binary Wang created on 2019-11-02 */ @Data public class WxCpProviderToken implements Serializable { @@ -28,6 +27,12 @@ public class WxCpProviderToken implements Serializable { @SerializedName("expires_in") private Integer expiresIn; + /** + * From json wx cp provider token. + * + * @param json the json + * @return the wx cp provider token + */ public static WxCpProviderToken fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpProviderToken.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java index 8649f0ced0..33d3d07b29 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTag.java @@ -23,10 +23,21 @@ public class WxCpTag implements Serializable { private String name; + /** + * From json wx cp tag. + * + * @param json the json + * @return the wx cp tag + */ public static WxCpTag fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTag.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java index adac174884..c590c6c0e8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagAddOrRemoveUsersResult.java @@ -25,6 +25,12 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp tag add or remove users result. + * + * @param json the json + * @return the wx cp tag add or remove users result + */ public static WxCpTagAddOrRemoveUsersResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTagAddOrRemoveUsersResult.class); } @@ -41,6 +47,11 @@ public static WxCpTagAddOrRemoveUsersResult fromJson(String json) { @SerializedName("invalidparty") private String[] invalidParty; + /** + * Gets invalid user list. + * + * @return the invalid user list + */ public List getInvalidUserList() { return this.content2List(this.invalidUsers); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagGetResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagGetResult.java index 244419b062..3dc34ab654 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagGetResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTagGetResult.java @@ -46,10 +46,21 @@ public class WxCpTagGetResult implements Serializable { @SerializedName("tagname") private String tagname; + /** + * From json wx cp tag get result. + * + * @param json the json + * @return the wx cp tag get result + */ public static WxCpTagGetResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTagGetResult.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java index c22bb2b8a5..d4cee5549c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTaskCardUpdateResult.java @@ -16,8 +16,7 @@ * Created by Jeff on 2019-05-16. * * - * @author Jeff - * created on 2019-05-16 + * @author Jeff created on 2019-05-16 */ @Data @AllArgsConstructor @@ -36,6 +35,12 @@ public class WxCpTaskCardUpdateResult implements Serializable { @SerializedName("invaliduser") private List invalidUsers; + /** + * From json wx cp task card update result. + * + * @param json the json + * @return the wx cp task card update result + */ public static WxCpTaskCardUpdateResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTaskCardUpdateResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java index 438ef79fde..776726de80 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.java @@ -23,6 +23,9 @@ public class WxCpTpAdmin extends WxCpBaseResp { @SerializedName("admin") private List admin; + /** + * The type Admin. + */ @Getter @Setter public static class Admin extends WxCpBaseResp { @@ -30,7 +33,7 @@ public static class Admin extends WxCpBaseResp { @SerializedName("userid") private String userId; - + @SerializedName("open_userid") private String openUserId; @@ -42,6 +45,12 @@ public String toJson() { } } + /** + * From json wx cp tp admin. + * + * @param json the json + * @return the wx cp tp admin + */ public static WxCpTpAdmin fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpAdmin.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java index 1f089e7629..fa50216153 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAuthInfo.java @@ -43,6 +43,9 @@ public class WxCpTpAuthInfo extends WxCpBaseResp { @SerializedName("edition_info") private EditionInfo editionInfo; + /** + * The type Dealer corp info. + */ @Getter @Setter public static class DealerCorpInfo extends WxCpBaseResp { @@ -55,6 +58,9 @@ public static class DealerCorpInfo extends WxCpBaseResp { private String corpName; } + /** + * The type Auth corp info. + */ @Getter @Setter public static class AuthCorpInfo implements Serializable { @@ -151,6 +157,9 @@ public static class EditionInfo implements Serializable { } + /** + * The type Agent. + */ @Getter @Setter public static class Agent implements Serializable { @@ -297,6 +306,12 @@ public static class Privilege implements Serializable { } + /** + * From json wx cp tp auth info. + * + * @param json the json + * @return the wx cp tp auth info + */ public static WxCpTpAuthInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpAuthInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java index cc84dfd4de..e5e44d18a6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java @@ -8,9 +8,11 @@ import java.io.Serializable; /** + * The type Wx cp tp contact search. + * * @author uianz * @description - * @since 2020/12/23 下午 02:43 + * @since 2020 /12/23 下午 02:43 */ @Data @Accessors(chain = true) @@ -59,6 +61,11 @@ public class WxCpTpContactSearch implements Serializable { @SerializedName("full_match_field") private Integer fullMatchField; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java index 21db4e0833..5646d5f10b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java @@ -9,9 +9,11 @@ import java.util.List; /** + * The type Wx cp tp contact search resp. + * * @author uianz * @description - * @since 2020/12/23 下午 02:55 + * @since 2020 /12/23 下午 02:55 */ @EqualsAndHashCode(callSuper = true) @Data @@ -23,6 +25,9 @@ public class WxCpTpContactSearchResp extends WxCpBaseResp { @SerializedName("query_result") private QueryResult queryResult; + /** + * The type Query result. + */ @Data public static class QueryResult implements Serializable { private static final long serialVersionUID = -4301684507150486556L; @@ -32,6 +37,9 @@ public static class QueryResult implements Serializable { @SerializedName("party") private Party party; + /** + * The type User. + */ @Data public static class User implements Serializable { private static final long serialVersionUID = -4301684507150486556L; @@ -41,6 +49,9 @@ public static class User implements Serializable { private List openUserId; } + /** + * The type Party. + */ @Data public static class Party implements Serializable { private static final long serialVersionUID = -4301684507150486556L; @@ -51,6 +62,12 @@ public static class Party implements Serializable { } + /** + * From json wx cp tp contact search resp. + * + * @param json the json + * @return the wx cp tp contact search resp + */ public static WxCpTpContactSearchResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpContactSearchResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java index efe6d8285c..939a4eddf6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpCorp.java @@ -32,10 +32,21 @@ public class WxCpTpCorp implements Serializable { @SerializedName("auth_info") private String authInfo; + /** + * From json wx cp tp corp. + * + * @param json the json + * @return the wx cp tp corp + */ public static WxCpTpCorp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpCorp.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpDepart.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpDepart.java index ab94a6b6b4..39d3601a2f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpDepart.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpDepart.java @@ -20,10 +20,21 @@ public class WxCpTpDepart implements Serializable { private Integer parentid; private Integer order; + /** + * From json wx cp tp depart. + * + * @param json the json + * @return the wx cp tp depart + */ public static WxCpTpDepart fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpDepart.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index eaf10feae0..7293ccf305 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -45,7 +45,7 @@ public class WxCpTpPermanentCodeInfo extends WxCpBaseResp { */ @SerializedName("auth_user_info") private AuthUserInfo authUserInfo; - + /** * 推广二维码安装相关信息 */ @@ -58,6 +58,9 @@ public class WxCpTpPermanentCodeInfo extends WxCpBaseResp { @SerializedName("edition_info") private EditionInfo editionInfo; + /** + * The type Auth corp info. + */ @Getter @Setter public static class AuthCorpInfo implements Serializable { @@ -154,6 +157,9 @@ public static class EditionInfo implements Serializable { } + /** + * The type Agent. + */ @Getter @Setter public static class Agent implements Serializable { @@ -284,7 +290,7 @@ public static class AuthUserInfo implements Serializable { @SerializedName("open_userid") private String openUserid; } - + /** * 推广二维码安装相关信息 */ @@ -353,6 +359,12 @@ public static class Privilege implements Serializable { } + /** + * From json wx cp tp permanent code info. + * + * @param json the json + * @return the wx cp tp permanent code info + */ public static WxCpTpPermanentCodeInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpPermanentCodeInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java index 6dc9ddc2d3..31c61b3a2b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPreauthCode.java @@ -8,19 +8,30 @@ /** * 预授权码返回 * - * @author yqx - * created on 2020/3/19 + * @author yqx created on 2020/3/19 */ @Getter @Setter public class WxCpTpPreauthCode extends WxCpBaseResp { + /** + * The Pre auth code. + */ @SerializedName("pre_auth_code") String preAuthCode; + /** + * The Expires in. + */ @SerializedName("expires_in") Long expiresIn; + /** + * From json wx cp tp preauth code. + * + * @param json the json + * @return the wx cp tp preauth code + */ public static WxCpTpPreauthCode fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpPreauthCode.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java index 8d89f0de6c..427e020a2f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpProlongTryResult.java @@ -7,8 +7,8 @@ /** * 应用市场延长试用期结果 - * @author leiguoqing - * created on 2022年4月24日 + * + * @author leiguoqing created on 2022年4月24日 */ @Getter @Setter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java index 73d7a51578..74e1fec3f8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTag.java @@ -7,8 +7,10 @@ import java.io.Serializable; /** + * The type Wx cp tp tag. + * * @author zhangq - * @since 2021-02-14 16:15 16:15 + * @since 2021 -02-14 16:15 16:15 */ @Data public class WxCpTpTag implements Serializable { @@ -20,6 +22,12 @@ public class WxCpTpTag implements Serializable { @SerializedName("tagname") private String tagName; + /** + * Deserialize wx cp tp tag. + * + * @param json the json + * @return the wx cp tp tag + */ public static WxCpTpTag deserialize(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpTag.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java index 8a9fecf21c..dfbf250480 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagAddOrRemoveUsersResult.java @@ -6,11 +6,17 @@ * 企业微信第三方开发-增加标签成员成员api响应体 * * @author zhangq - * @since 2021/2/14 16:44 + * @since 2021 /2/14 16:44 */ public class WxCpTpTagAddOrRemoveUsersResult extends WxCpTagAddOrRemoveUsersResult { private static final long serialVersionUID = 3490401800490702052L; + /** + * Deserialize wx cp tp tag add or remove users result. + * + * @param json the json + * @return the wx cp tp tag add or remove users result + */ public static WxCpTpTagAddOrRemoveUsersResult deserialize(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpTagAddOrRemoveUsersResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java index 4fdc9a58ac..162030c956 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpTagGetResult.java @@ -6,11 +6,17 @@ * 获取标签成员接口响应体 * * @author zhangq - * @since 2021/2/14 16:28 + * @since 2021 /2/14 16:28 */ public class WxCpTpTagGetResult extends WxCpTagGetResult { private static final long serialVersionUID = 9051748686315562400L; + /** + * Deserialize wx cp tp tag get result. + * + * @param json the json + * @return the wx cp tp tag get result + */ public static WxCpTpTagGetResult deserialize(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpTagGetResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java index 2809391253..a60d387a76 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserDetail.java @@ -6,6 +6,8 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** + * The type Wx cp tp user detail. + * * @author huangxiaoming */ @Data @@ -48,6 +50,12 @@ public class WxCpTpUserDetail extends WxCpBaseResp { @SerializedName("qr_code") private String qrCode; + /** + * From json wx cp tp user detail. + * + * @param json the json + * @return the wx cp tp user detail + */ public static WxCpTpUserDetail fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpUserDetail.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java index 0138b2a9d9..c6664fd0ab 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpUserInfo.java @@ -6,9 +6,10 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** + * The type Wx cp tp user info. + * * @author huangxiaoming */ - @Data @EqualsAndHashCode(callSuper = true) public class WxCpTpUserInfo extends WxCpBaseResp { @@ -53,6 +54,12 @@ public class WxCpTpUserInfo extends WxCpBaseResp { @SerializedName("open_userid") private String openUserId; + /** + * From json wx cp tp user info. + * + * @param json the json + * @return the wx cp tp user info + */ public static WxCpTpUserInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpUserInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java index 4d9d9493ae..cdba33229a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpXmlPackage.java @@ -26,18 +26,33 @@ public class WxCpTpXmlPackage implements Serializable { */ private Map allFieldsMap; + /** + * The To user name. + */ @XStreamAlias("ToUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String toUserName; + /** + * The Agent id. + */ @XStreamAlias("AgentID") @XStreamConverter(value = XStreamCDataConverter.class) protected String agentId; + /** + * The Msg encrypt. + */ @XStreamAlias("Encrypt") @XStreamConverter(value = XStreamCDataConverter.class) protected String msgEncrypt; + /** + * From xml wx cp tp xml package. + * + * @param xml the xml + * @return the wx cp tp xml package + */ public static WxCpTpXmlPackage fromXml(String xml) { //修改微信变态的消息内容格式,方便解析 //xml = xml.replace("", ""); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java index 776e347ced..681152c298 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUser.java @@ -74,26 +74,56 @@ public class WxCpUser implements Serializable { private String[] directLeader; + /** + * Add external attr. + * + * @param externalAttr the external attr + */ public void addExternalAttr(ExternalAttribute externalAttr) { this.externalAttrs.add(externalAttr); } + /** + * Add ext attr. + * + * @param name the name + * @param value the value + */ public void addExtAttr(String name, String value) { this.extAttrs.add(new Attr().setType(0).setName(name).setTextValue(value)); } + /** + * Add ext attr. + * + * @param attr the attr + */ public void addExtAttr(Attr attr) { this.extAttrs.add(attr); } + /** + * From json wx cp user. + * + * @param json the json + * @return the wx cp user + */ public static WxCpUser fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUser.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Attr. + */ @Data @Accessors(chain = true) @Builder @@ -112,6 +142,9 @@ public static class Attr implements Serializable { private String webTitle; } + /** + * The type External attribute. + */ @Data @Builder @NoArgsConstructor @@ -151,6 +184,9 @@ public static class ExternalAttribute implements Serializable { } + /** + * The type Wechat channels. + */ @Data @Builder @NoArgsConstructor diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java index ca6ebb8bb7..562bf82ed6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.java @@ -27,6 +27,9 @@ public class WxCpUserExternalContactInfo implements Serializable { @SerializedName("follow_user") private List followedUsers; + /** + * The type External contact. + */ @Getter @Setter public static class ExternalContact implements Serializable { @@ -63,6 +66,9 @@ public static class ExternalContact implements Serializable { private ExternalProfile externalProfile; } + /** + * The type External profile. + */ @Setter @Getter public static class ExternalProfile implements Serializable { @@ -72,6 +78,9 @@ public static class ExternalProfile implements Serializable { private List externalAttrs; } + /** + * The type External attribute. + */ @Data @Builder @NoArgsConstructor @@ -79,6 +88,9 @@ public static class ExternalProfile implements Serializable { public static class ExternalAttribute implements Serializable { private static final long serialVersionUID = -5696099236344075582L; + /** + * The type Text. + */ @Setter @Getter public static class Text implements Serializable { @@ -87,6 +99,9 @@ public static class Text implements Serializable { private String value; } + /** + * The type Web. + */ @Setter @Getter public static class Web implements Serializable { @@ -96,6 +111,9 @@ public static class Web implements Serializable { private String url; } + /** + * The type Mini program. + */ @Setter @Getter public static class MiniProgram implements Serializable { @@ -119,6 +137,9 @@ public static class MiniProgram implements Serializable { private MiniProgram miniProgram; } + /** + * The type Followed user. + */ @Setter @Getter public static class FollowedUser implements Serializable { @@ -143,10 +164,19 @@ public static class FollowedUser implements Serializable { } + /** + * From json wx cp user external contact info. + * + * @param json the json + * @return the wx cp user external contact info + */ public static WxCpUserExternalContactInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalContactInfo.class); } + /** + * The type Tag. + */ @Setter @Getter public static class Tag implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java index 2b5cfd4351..5f2f082a7d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUserid.java @@ -11,7 +11,6 @@ * 将自建应用或代开发应用获取的userid转换为第三方应用的userid * 中间对象 * Created by gxh0797 on 2022.07.26. - * */ @Data public class WxCpUseridToOpenUserid implements Serializable { @@ -22,6 +21,12 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp userid to open userid. + * + * @param json the json + * @return the wx cp userid to open userid + */ public static WxCpUseridToOpenUserid fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUseridToOpenUserid.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java index 90d002f174..360772883b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUseridToOpenUseridResult.java @@ -11,7 +11,6 @@ * userid转换为open_userid * 将自建应用或代开发应用获取的userid转换为第三方应用的userid * Created by gxh0797 on 2022.07.26. - * */ @Data public class WxCpUseridToOpenUseridResult implements Serializable { @@ -22,6 +21,12 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp userid to open userid result. + * + * @param json the json + * @return the wx cp userid to open userid result + */ public static WxCpUseridToOpenUseridResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUseridToOpenUseridResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java index 19ee03e681..5cadc6bca7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxTpLoginInfo.java @@ -11,9 +11,8 @@ /** * 登录信息 * - * @author Jamie.shi - * created on 2020-08-03 17:18 - **/ + * @author Jamie.shi created on 2020-08-03 17:18 + */ @Data @EqualsAndHashCode(callSuper = true) public class WxTpLoginInfo extends WxCpBaseResp { @@ -29,10 +28,19 @@ public class WxTpLoginInfo extends WxCpBaseResp { private AuthInfo authInfo; private List agent; + /** + * From json wx tp login info. + * + * @param json the json + * @return the wx tp login info + */ public static WxTpLoginInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxTpLoginInfo.class); } + /** + * The type User info. + */ @Data public static class UserInfo implements Serializable { private static final long serialVersionUID = -4558358748587735192L; @@ -45,6 +53,9 @@ public static class UserInfo implements Serializable { private String avatar; } + /** + * The type Corp info bean. + */ @Data public static class CorpInfoBean implements Serializable { private static final long serialVersionUID = -3160146744148144984L; @@ -53,12 +64,18 @@ public static class CorpInfoBean implements Serializable { private String corpId; } + /** + * The type Auth info. + */ @Data public static class AuthInfo implements Serializable { private static final long serialVersionUID = -8697184659526210472L; private List department; + /** + * The type Department. + */ @Data public static class Department implements Serializable { private static final long serialVersionUID = -4389328276936557541L; @@ -68,6 +85,9 @@ public static class Department implements Serializable { } } + /** + * The type Agent. + */ @Data public static class Agent implements Serializable { private static final long serialVersionUID = 1461544500964159037L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java index ed55debc32..c2b0bce03c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportRequest.java @@ -9,15 +9,15 @@ /** * 异步导出参数 * - * @author zhongjun - * created on 2022/4/21 - **/ + * @author zhongjun created on 2022/4/21 + */ @Data public class WxCpExportRequest implements Serializable { private static final long serialVersionUID = -8127528999898984359L; /** - * base64encode的加密密钥,长度固定为43,base64decode之后即得到AESKey。加密方式采用AES-256-CBC方式,数据采用PKCS#7填充至32字节的倍数;IV初始向量大小为16字节,取AESKey前16字节,详见:http://tools.ietf.org/html/rfc2315 + * base64encode的加密密钥,长度固定为43,base64decode之后即得到AESKey。加密方式采用AES-256-CBC方式,数据采用PKCS#7填充至32字节的倍数;IV初始向量大小为16字节,取AESKey + * 前16字节,详见:http://tools.ietf.org/html/rfc2315 */ @SerializedName("encoding_aeskey") private String encodingAesKey; @@ -35,6 +35,11 @@ public class WxCpExportRequest implements Serializable { @SerializedName("tagid") private Integer tagId; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java index b03dbeb937..86f52ab8c7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/export/WxCpExportResult.java @@ -10,9 +10,8 @@ /** * 异步导出响应 * - * @author zhongjun - * created on 2022/4/21 - **/ + * @author zhongjun created on 2022/4/21 + */ @Data @EqualsAndHashCode(callSuper = true) public class WxCpExportResult extends WxCpBaseResp { @@ -27,6 +26,9 @@ public class WxCpExportResult extends WxCpBaseResp { private List dataList; + /** + * The type Export data. + */ @Data public static class ExportData { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java index ea055731de..1eb7ad1075 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java @@ -9,8 +9,7 @@ /** * 企业发表内容到客户的朋友圈 创建发表任务结果 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -20,6 +19,12 @@ public class WxCpAddMomentResult extends WxCpBaseResp { @SerializedName("jobid") private String jobId; + /** + * From json wx cp add moment result. + * + * @param json the json + * @return the wx cp add moment result + */ public static WxCpAddMomentResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpAddMomentResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java index 53b2a2d11c..005c4f3ded 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java @@ -16,8 +16,7 @@ /** * 企业发表内容到客户的朋友圈 创建发表任务 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @Builder @@ -31,6 +30,11 @@ public class WxCpAddMomentTask implements Serializable { private List attachments; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java index 66d94da2c4..3a6a61902c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java @@ -25,6 +25,9 @@ public class WxCpContactWayInfo implements Serializable { @SerializedName("contact_way") private ContactWay contactWay; + /** + * The type Contact way. + */ @Getter @Setter public static class ContactWay implements Serializable { @@ -157,10 +160,21 @@ public static class ContactWay implements Serializable { */ private Conclusion conclusions; + /** + * From json wx cp contact way info . contact way. + * + * @param json the json + * @return the wx cp contact way info . contact way + */ public static WxCpContactWayInfo.ContactWay fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayInfo.ContactWay.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -189,14 +203,28 @@ public static class Conclusion implements Serializable { } + /** + * From json wx cp contact way info. + * + * @param json the json + * @return the wx cp contact way info + */ public static WxCpContactWayInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The enum Type. + */ public enum TYPE { /** * 单人 @@ -212,6 +240,9 @@ public enum TYPE { } + /** + * The enum Scene. + */ public enum SCENE { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java index 789dac3188..157a0ecacf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java @@ -22,6 +22,12 @@ public class WxCpContactWayResult extends WxCpBaseResp { @SerializedName("qr_code") private String qrCode; + /** + * From json wx cp contact way result. + * + * @param json the json + * @return the wx cp contact way result + */ public static WxCpContactWayResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java index d8cb46794f..693dd80018 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java @@ -12,8 +12,7 @@ /** * 企业客户微信unionid的升级 - 企业客户external_userid列表 * - * @author Mr.Pan - * created on 2021/11/18 + * @author Mr.Pan created on 2021/11/18 */ @Getter @Setter @@ -23,6 +22,9 @@ public class WxCpExternalUserIdList extends WxCpBaseResp { @SerializedName("external_userid_info") private List externalUserIdInfo; + /** + * The type External user id info. + */ @Getter @Setter public static class ExternalUserIdInfo implements Serializable { @@ -48,6 +50,12 @@ public static class ExternalUserIdInfo implements Serializable { } + /** + * From json wx cp external user id list. + * + * @param json the json + * @return the wx cp external user id list + */ public static WxCpExternalUserIdList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpExternalUserIdList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java index 52e91b4034..b1c9149445 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java @@ -13,8 +13,7 @@ /** * 企业发表内容到客户的朋友圈 获取客户朋友圈的互动数据 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -26,6 +25,9 @@ public class WxCpGetMomentComments extends WxCpBaseResp { @SerializedName("like_list") private List likeList; + /** + * The type Comment like item. + */ @Getter @Setter public static class CommentLikeItem { @@ -37,6 +39,12 @@ public static class CommentLikeItem { private Long createTime; } + /** + * From json wx cp get moment comments. + * + * @param json the json + * @return the wx cp get moment comments + */ public static WxCpGetMomentComments fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentComments.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java index 6f2b16c8da..c10c2f69da 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java @@ -12,8 +12,7 @@ /** * 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -25,6 +24,12 @@ public class WxCpGetMomentCustomerList extends WxCpBaseResp { @SerializedName("customer_list") private List customerList; + /** + * From json wx cp get moment customer list. + * + * @param json the json + * @return the wx cp get moment customer list + */ public static WxCpGetMomentCustomerList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentCustomerList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java index 57f615b49f..46b17a1b5c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java @@ -12,8 +12,7 @@ /** * 企业发表内容到客户的朋友圈 获取企业全部的发表列表 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -25,6 +24,12 @@ public class WxCpGetMomentList extends WxCpBaseResp { @SerializedName("moment_list") private List momentList; + /** + * From json wx cp get moment list. + * + * @param json the json + * @return the wx cp get moment list + */ public static WxCpGetMomentList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java index 813e211fb2..80e4f144cf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java @@ -12,8 +12,7 @@ /** * 企业发表内容到客户的朋友圈 获取客户朋友圈发表后的可见客户列表 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -25,6 +24,12 @@ public class WxCpGetMomentSendResult extends WxCpBaseResp { @SerializedName("customer_list") private List customerList; + /** + * From json wx cp get moment send result. + * + * @param json the json + * @return the wx cp get moment send result + */ public static WxCpGetMomentSendResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentSendResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java index 506a5c56eb..46740d6e04 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java @@ -13,8 +13,7 @@ /** * 企业发表内容到客户的朋友圈 获取客户朋友圈企业发表的列表 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -27,6 +26,9 @@ public class WxCpGetMomentTask extends WxCpBaseResp { @SerializedName("task_list") private List taskList; + /** + * The type Moment task item. + */ @Getter @Setter public static class MomentTaskItem { @@ -36,6 +38,12 @@ public static class MomentTaskItem { private String publishStatus; } + /** + * From json wx cp get moment task. + * + * @param json the json + * @return the wx cp get moment task + */ public static WxCpGetMomentTask fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentTask.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java index c34ce731c9..6f6a535044 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java @@ -13,8 +13,7 @@ /** * 企业发表内容到客户的朋友圈 获取任务创建结果 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data @EqualsAndHashCode(callSuper = true) @@ -25,6 +24,9 @@ public class WxCpGetMomentTaskResult extends WxCpBaseResp { private String type; private TaskResult result; + /** + * The type Task result. + */ @Getter @Setter public static class TaskResult extends WxCpBaseResp { @@ -37,6 +39,12 @@ public static class TaskResult extends WxCpBaseResp { @SerializedName("invalid_external_contact_list") private ExternalContactList invalidExternalContactList; + /** + * From json task result. + * + * @param json the json + * @return the task result + */ public static TaskResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, TaskResult.class); } @@ -46,6 +54,12 @@ public String toJson() { } } + /** + * From json wx cp get moment task result. + * + * @param json the json + * @return the wx cp get moment task result + */ public static WxCpGetMomentTaskResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentTaskResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java index a78aa90985..c181f82bd4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java @@ -11,18 +11,23 @@ import java.util.List; /** - *客户群「加入群聊」对象 + * 客户群「加入群聊」对象 + * * @author Jc */ @Data @NoArgsConstructor -public class WxCpGroupJoinWayInfo implements Serializable { +public class WxCpGroupJoinWayInfo implements Serializable { private static final long serialVersionUID = 5621905029624794129L; @SerializedName("join_way") private JoinWay joinWay; + + /** + * The type Join way. + */ @Getter @Setter - public static class JoinWay implements Serializable { + public static class JoinWay implements Serializable { private static final long serialVersionUID = 5621905029624794122L; /** @@ -68,24 +73,47 @@ public static class JoinWay implements Serializable { @SerializedName("qr_code") private String qrCode; /** - 企业自定义的state参数,用于区分不同的入群渠道。不超过30个UTF-8字符 - 如果有设置此参数,在调用获取客户群详情接口时会返回每个群成员对应的该参数值 + * 企业自定义的state参数,用于区分不同的入群渠道。不超过30个UTF-8字符 + * 如果有设置此参数,在调用获取客户群详情接口时会返回每个群成员对应的该参数值 */ @SerializedName("state") private String state; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + + /** + * From json wx cp group join way info . join way. + * + * @param json the json + * @return the wx cp group join way info . join way + */ public static WxCpGroupJoinWayInfo.JoinWay fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.JoinWay.class); } } + /** + * From json wx cp group join way info. + * + * @param json the json + * @return the wx cp group join way info + */ public static WxCpGroupJoinWayInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java index f77b6089c8..adfd90a3a3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java @@ -7,16 +7,23 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** - *客户群「加入群聊」配置处理结果 + * 客户群「加入群聊」配置处理结果 + * * @author Jc */ @Data @EqualsAndHashCode(callSuper = true) -public class WxCpGroupJoinWayResult extends WxCpBaseResp { +public class WxCpGroupJoinWayResult extends WxCpBaseResp { private static final long serialVersionUID = 5621905029624794129L; @SerializedName("config_id") private String configId; + /** + * From json wx cp group join way result. + * + * @param json the json + * @return the wx cp group join way result + */ public static WxCpGroupJoinWayResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java index 66b56fb448..5f4fbe5696 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java @@ -11,8 +11,7 @@ /** * 入群欢迎语素材. * - * @author Mr.Pan - * created on 2021-11-3 + * @author Mr.Pan created on 2021-11-3 */ @Data @Builder @@ -46,6 +45,12 @@ public class WxCpGroupWelcomeTemplateResult extends WxCpBaseResp implements Seri */ private Integer notify; + /** + * From json wx cp group welcome template result. + * + * @param json the json + * @return the wx cp group welcome template result + */ public static WxCpGroupWelcomeTemplateResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupWelcomeTemplateResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java index ff3d48ce1a..a02ea5bd25 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResp.java @@ -7,14 +7,12 @@ import lombok.NoArgsConstructor; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; -import java.util.Date; import java.util.List; /** * 新增敏感词规则请求参数封装实体类 * - * @author didi - * created on 2022-04-17 + * @author didi created on 2022-04-17 */ @Data @Builder @@ -35,25 +33,51 @@ public class WxCpInterceptRuleResp { @SerializedName("applicable_range") private ApplicableRange applicableRange; + /** + * The type Applicable range. + */ @Data public static class ApplicableRange { @SerializedName("user_list") private List userList; @SerializedName("department_list") private List departmentList; + + /** + * From json applicable range. + * + * @param json the json + * @return the applicable range + */ public static ApplicableRange fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, ApplicableRange.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * From json wx cp intercept rule resp. + * + * @param json the json + * @return the wx cp intercept rule resp + */ public static WxCpInterceptRuleResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleResp.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java index 2ce6c28f27..a62e8e41c8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpInterceptRuleResultResp.java @@ -10,15 +10,22 @@ /** * 新建敏感词规则负返回结果 + * * @author didi */ @Data @EqualsAndHashCode(callSuper = true) -public class WxCpInterceptRuleResultResp extends WxCpBaseResp implements Serializable { +public class WxCpInterceptRuleResultResp extends WxCpBaseResp implements Serializable { @SerializedName("rule_id") - private String ruleId; + private String ruleId; + /** + * From json wx cp intercept rule result resp. + * + * @param json the json + * @return the wx cp intercept rule result resp + */ public static WxCpInterceptRuleResultResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleResultResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java index 2d5343459a..a88f739045 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java @@ -53,10 +53,21 @@ public class WxCpMsgTemplate implements Serializable { */ private List attachments; + /** + * From json wx cp msg template. + * + * @param json the json + * @return the wx cp msg template + */ public static WxCpMsgTemplate fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpMsgTemplate.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplateAddResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplateAddResult.java index 87e0be4467..42f796c808 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplateAddResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplateAddResult.java @@ -28,10 +28,21 @@ public class WxCpMsgTemplateAddResult implements Serializable { @SerializedName("msgid") private String msgId; + /** + * From json wx cp msg template add result. + * + * @param json the json + * @return the wx cp msg template add result + */ public static WxCpMsgTemplateAddResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpMsgTemplateAddResult.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java index fcf2d06f83..9f7a5c01e3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java @@ -12,8 +12,7 @@ /** * 企业客户微信unionid的升级 - 企业客户external_userid列表 * - * @author Mr.Pan - * created on 2021/11/18 + * @author Mr.Pan created on 2021/11/18 */ @Getter @Setter @@ -22,6 +21,9 @@ public class WxCpNewExternalUserIdList extends WxCpBaseResp { @SerializedName("items") private List items; + /** + * The type New external user id info. + */ @Getter @Setter public static class NewExternalUserIdInfo implements Serializable { @@ -41,6 +43,12 @@ public static class NewExternalUserIdInfo implements Serializable { } + /** + * From json wx cp new external user id list. + * + * @param json the json + * @return the wx cp new external user id list + */ public static WxCpNewExternalUserIdList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpNewExternalUserIdList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java index c837d30850..a30fb1600a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java @@ -46,10 +46,21 @@ public class WxCpProductAlbumInfo implements Serializable { @SerializedName("attachments") private List attachments; + /** + * From json wx cp product album info. + * + * @param json the json + * @return the wx cp product album info + */ public static WxCpProductAlbumInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java index 2b6f4b2087..895d132376 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java @@ -28,6 +28,12 @@ public class WxCpProductAlbumListResult extends WxCpBaseResp implements Serializ @SerializedName("next_cursor") private String nextCursor; + /** + * From json wx cp product album list result. + * + * @param json the json + * @return the wx cp product album list result + */ public static WxCpProductAlbumListResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumListResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java index 527bfb6eb5..8088b8405b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java @@ -24,6 +24,12 @@ public class WxCpProductAlbumResult extends WxCpBaseResp implements Serializable @SerializedName("product") private WxCpProductAlbumInfo product; + /** + * From json wx cp product album result. + * + * @param json the json + * @return the wx cp product album result + */ public static WxCpProductAlbumResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java index c39134086f..115e58f344 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java @@ -13,8 +13,7 @@ /** * 修改客户备注信息请求. * - * @author Binary Wang - * created on 2020-09-19 + * @author Binary Wang created on 2020-09-19 */ @Data @Builder @@ -24,6 +23,11 @@ public class WxCpUpdateRemarkRequest implements Serializable { private static final long serialVersionUID = -4960239393895754138L; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactList.java index 29e7e28e53..cc092b647f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactList.java @@ -30,31 +30,67 @@ public class WxCpUserExternalContactList implements Serializable { @Expose private List externalUserId = null; + /** + * Gets errcode. + * + * @return the errcode + */ public Long getErrcode() { return errcode; } + /** + * Sets errcode. + * + * @param errcode the errcode + */ public void setErrcode(Long errcode) { this.errcode = errcode; } + /** + * Gets errmsg. + * + * @return the errmsg + */ public String getErrmsg() { return errmsg; } + /** + * Sets errmsg. + * + * @param errmsg the errmsg + */ public void setErrmsg(String errmsg) { this.errmsg = errmsg; } + /** + * Gets external user id. + * + * @return the external user id + */ public List getExternalUserId() { return externalUserId; } + /** + * Sets external user id. + * + * @param externalUserId the external user id + */ public void setExternalUserId(List externalUserId) { this.externalUserId = externalUserId; } + /** + * From json wx cp user external contact list. + * + * @param json the json + * @return the wx cp user external contact list + */ public static WxCpUserExternalContactList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalContactList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java index 4eb018db4c..88f6c8a64b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java @@ -10,8 +10,9 @@ import java.util.List; /** - * @author yqx - * created on 2020/3/116 + * The type Wx cp user external group chat info. + * + * @author yqx created on 2020/3/116 */ @Getter @Setter @@ -20,6 +21,9 @@ public class WxCpUserExternalGroupChatInfo extends WxCpBaseResp { @SerializedName("group_chat") private GroupChat groupChat; + /** + * The type Group chat. + */ @Getter @Setter public static class GroupChat implements Serializable { @@ -47,6 +51,9 @@ public static class GroupChat implements Serializable { private List adminList; } + /** + * The type Group member. + */ @Getter @Setter public static class GroupMember implements Serializable { @@ -110,6 +117,9 @@ public static class GroupMember implements Serializable { private Invitor invitor; } + /** + * The type Invitor. + */ @Getter @Setter public static class Invitor { @@ -121,6 +131,9 @@ public static class Invitor { private String userId; } + /** + * The type Group admin. + */ @Getter @Setter public static class GroupAdmin { @@ -132,6 +145,12 @@ public static class GroupAdmin { private String userId; } + /** + * From json wx cp user external group chat info. + * + * @param json the json + * @return the wx cp user external group chat info + */ public static WxCpUserExternalGroupChatInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java index 5a1bb6fc6d..3727908949 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java @@ -10,8 +10,9 @@ import java.util.List; /** - * @author yqx - * created on 2020/3/116 + * The type Wx cp user external group chat list. + * + * @author yqx created on 2020/3/116 */ @Getter @Setter @@ -24,6 +25,9 @@ public class WxCpUserExternalGroupChatList extends WxCpBaseResp { @SerializedName("next_cursor") private String nextCursor; + /** + * The type Chat status. + */ @Getter @Setter public static class ChatStatus implements Serializable { @@ -46,6 +50,12 @@ public static class ChatStatus implements Serializable { } + /** + * From json wx cp user external group chat list. + * + * @param json the json + * @return the wx cp user external group chat list + */ public static WxCpUserExternalGroupChatList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java index 8452732867..e8e95d3b9f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java @@ -12,8 +12,7 @@ /** * 联系客户群统计数据 * - * @author yqx - * created on 2020/3/16 + * @author yqx created on 2020/3/16 */ @Getter @Setter @@ -29,6 +28,9 @@ public class WxCpUserExternalGroupChatStatistic extends WxCpBaseResp { @SerializedName("items") private List itemList; + /** + * The type Statistic item. + */ @Getter @Setter public static class StatisticItem implements Serializable { @@ -41,6 +43,9 @@ public static class StatisticItem implements Serializable { private ItemData itemData; } + /** + * The type Item data. + */ @Getter @Setter public static class ItemData implements Serializable { @@ -89,6 +94,12 @@ public static class ItemData implements Serializable { private int msgTotal; } + /** + * From json wx cp user external group chat statistic. + * + * @param json the json + * @return the wx cp user external group chat statistic + */ public static WxCpUserExternalGroupChatStatistic fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatStatistic.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java index a083198ec3..ea3ed39353 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java @@ -11,8 +11,7 @@ /** * 分配离职成员的客户群结果 * - * @author pg - * created on 2021年6月21日 + * @author pg created on 2021年6月21日 */ @Getter @Setter @@ -24,6 +23,12 @@ public class WxCpUserExternalGroupChatTransferResp extends WxCpBaseResp { @SerializedName("failed_chat_list") private List failedChatList; + /** + * From json wx cp user external group chat transfer resp. + * + * @param json the json + * @return the wx cp user external group chat transfer resp + */ public static WxCpUserExternalGroupChatTransferResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatTransferResp.class); } @@ -32,6 +37,9 @@ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Group chat failed transfer. + */ @Getter @Setter public static class GroupChatFailedTransfer extends WxCpBaseResp { @@ -42,8 +50,15 @@ public static class GroupChatFailedTransfer extends WxCpBaseResp { @SerializedName("chat_id") private String chatId; + /** + * From json wx cp user external group chat transfer resp . group chat failed transfer. + * + * @param json the json + * @return the wx cp user external group chat transfer resp . group chat failed transfer + */ public static WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer fromJson(String json) { - return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer.class); + return WxCpGsonBuilder.create().fromJson(json, + WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer.class); } public String toJson() { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java index 69e337b82d..59815ac8d9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java @@ -11,7 +11,7 @@ import java.util.List; /** - * + * The type Wx cp user external tag group info. */ @Getter @Setter @@ -20,6 +20,9 @@ public class WxCpUserExternalTagGroupInfo extends WxCpBaseResp { @SerializedName("tag_group") private TagGroup tagGroup; + /** + * The type Tag group. + */ @Getter @Setter public static class TagGroup implements Serializable { @@ -43,11 +46,19 @@ public static class TagGroup implements Serializable { @SerializedName("tag") private List tag; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxGsonBuilder.create().toJson(this); } } + /** + * The type Tag. + */ @Getter @Setter public static class Tag implements Serializable { @@ -78,6 +89,12 @@ public String toJson() { return WxGsonBuilder.create().toJson(this); } + /** + * From json wx cp user external tag group info. + * + * @param json the json + * @return the wx cp user external tag group info + */ public static WxCpUserExternalTagGroupInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalTagGroupInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupList.java index a4d6257293..215eab2313 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupList.java @@ -11,6 +11,8 @@ import java.util.List; /** + * The type Wx cp user external tag group list. + * * @author huangxm129 */ @Getter @@ -21,6 +23,9 @@ public class WxCpUserExternalTagGroupList extends WxCpBaseResp { @SerializedName("tag_group") private List tagGroupList; + /** + * The type Tag group. + */ @Getter @Setter public static class TagGroup implements Serializable { @@ -45,6 +50,9 @@ public static class TagGroup implements Serializable { @SerializedName("tag") private List tag; + /** + * The type Tag. + */ @Getter @Setter public static class Tag implements Serializable { @@ -75,6 +83,12 @@ public String toJson() { return WxGsonBuilder.create().toJson(this); } + /** + * From json wx cp user external tag group list. + * + * @param json the json + * @return the wx cp user external tag group list + */ public static WxCpUserExternalTagGroupList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalTagGroupList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java index 2038fab015..8605760fa7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java @@ -12,8 +12,7 @@ /** * 离职员工外部联系人列表 * - * @author yqx & Wang_Wong - * created on 2020/3/15 + * @author yqx & Wang_Wong created on 2020/3/15 */ @Getter @Setter @@ -28,6 +27,9 @@ public class WxCpUserExternalUnassignList extends WxCpBaseResp { @SerializedName("next_cursor") private String nextCursor; + /** + * The type Unassign info. + */ @Getter @Setter public static class UnassignInfo implements Serializable { @@ -52,6 +54,12 @@ public static class UnassignInfo implements Serializable { private Long dimissionTime; } + /** + * From json wx cp user external unassign list. + * + * @param json the json + * @return the wx cp user external unassign list + */ public static WxCpUserExternalUnassignList fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalUnassignList.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java index 8d25d8e7ee..4c2a41383a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java @@ -12,8 +12,7 @@ /** * 联系客户统计数据 * - * @author yqx - * created on 2020/3/16 + * @author yqx created on 2020/3/16 */ @Getter @Setter @@ -22,6 +21,9 @@ public class WxCpUserExternalUserBehaviorStatistic extends WxCpBaseResp { @SerializedName("behavior_data") private List behaviorList; + /** + * The type Behavior. + */ @Getter @Setter public static class Behavior implements Serializable { @@ -76,6 +78,12 @@ public static class Behavior implements Serializable { private int newContactCnt; } + /** + * From json wx cp user external user behavior statistic. + * + * @param json the json + * @return the wx cp user external user behavior statistic + */ public static WxCpUserExternalUserBehaviorStatistic fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalUserBehaviorStatistic.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java index d8607cd802..3b14747d72 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java @@ -12,8 +12,7 @@ /** * 转接在职成员的客户给其他成员,请求对象 * - * @author pg - * created on 2021年6月21日 + * @author pg created on 2021年6月21日 */ @Getter @Setter @@ -43,6 +42,11 @@ public class WxCpUserTransferCustomerReq implements Serializable { @SerializedName("transfer_success_msg") private String transferMsg; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java index 40840c4b38..dbb921ad09 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java @@ -12,8 +12,7 @@ /** * 转接在职成员的客户给其他成员,返回对象 * - * @author pg - * created on 2021年6月21日 + * @author pg created on 2021年6月21日 */ @Getter @Setter @@ -24,6 +23,12 @@ public class WxCpUserTransferCustomerResp extends WxCpBaseResp { */ private List customer; + /** + * From json wx cp user transfer customer resp. + * + * @param json the json + * @return the wx cp user transfer customer resp + */ public static WxCpUserTransferCustomerResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferCustomerResp.class); } @@ -49,10 +54,21 @@ public static class TransferCustomer implements Serializable { */ private Integer errcode; + /** + * From json wx cp user transfer customer resp . transfer customer. + * + * @param json the json + * @return the wx cp user transfer customer resp . transfer customer + */ public static WxCpUserTransferCustomerResp.TransferCustomer fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferCustomerResp.TransferCustomer.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java index 5cf9df6f4b..948d267b42 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java @@ -12,8 +12,7 @@ /** * 在职成员的客户转接情况 * - * @author pg - * created on 2021年6月21日 + * @author pg created on 2021年6月21日 */ @Getter @Setter @@ -24,6 +23,12 @@ public class WxCpUserTransferResultResp extends WxCpBaseResp { private List customer; + /** + * From json wx cp user transfer result resp. + * + * @param json the json + * @return the wx cp user transfer result resp + */ public static WxCpUserTransferResultResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferResultResp.class); } @@ -55,15 +60,29 @@ public static class TransferResult implements Serializable { @SerializedName("takeover_time") private Long takeOverTime; + /** + * From json wx cp user transfer result resp . transfer result. + * + * @param json the json + * @return the wx cp user transfer result resp . transfer result + */ public static WxCpUserTransferResultResp.TransferResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferResultResp.TransferResult.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * The enum Status. + */ public enum STATUS { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserWithExternalPermission.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserWithExternalPermission.java index d8366ff3f9..ca1fa8cdf3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserWithExternalPermission.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserWithExternalPermission.java @@ -9,6 +9,8 @@ import java.util.List; /** + * The type Wx cp user with external permission. + * * @author 曹祖鹏 */ @Data @@ -26,6 +28,12 @@ public class WxCpUserWithExternalPermission implements Serializable { @Expose private List followers = null; + /** + * From json wx cp user with external permission. + * + * @param json the json + * @return the wx cp user with external permission + */ public static WxCpUserWithExternalPermission fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserWithExternalPermission.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java index 6d37ad6ee8..a0aae4b063 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java @@ -15,8 +15,7 @@ /** * 新客户欢迎语. * - * @author Binary Wang - * created on 2020-08-16 + * @author Binary Wang created on 2020-08-16 */ @Data @Builder @@ -32,6 +31,11 @@ public class WxCpWelcomeMsg implements Serializable { private List attachments; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java index 41461bc7f7..8129ee1818 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/ExternalContact.java @@ -9,8 +9,7 @@ /** * 外部联系人. * - * @author Binary Wang - * created on 2020-11-04 + * @author Binary Wang created on 2020-11-04 */ @Getter @Setter @@ -50,6 +49,9 @@ public class ExternalContact implements Serializable { @SerializedName("external_profile") private ExternalProfile externalProfile; + /** + * The type External profile. + */ @Data public static class ExternalProfile implements Serializable { private static final long serialVersionUID = -2899906589789022765L; @@ -64,6 +66,9 @@ public static class ExternalProfile implements Serializable { private List externalAttrs; } + /** + * The type Wechat channel. + */ @Data @Builder @NoArgsConstructor @@ -78,6 +83,9 @@ public static class WechatChannel implements Serializable { } + /** + * The type External attribute. + */ @Data @Builder @NoArgsConstructor @@ -96,6 +104,9 @@ public static class ExternalAttribute implements Serializable { @SerializedName("miniprogram") private MiniProgram miniProgram; + /** + * The type Text. + */ @Data public static class Text implements Serializable { private static final long serialVersionUID = -8161579335600269094L; @@ -103,6 +114,9 @@ public static class Text implements Serializable { private String value; } + /** + * The type Web. + */ @Data public static class Web implements Serializable { private static final long serialVersionUID = 3664557135411521862L; @@ -111,6 +125,9 @@ public static class Web implements Serializable { private String url; } + /** + * The type Mini program. + */ @Data public static class MiniProgram implements Serializable { private static final long serialVersionUID = -5329210594501835796L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java index e4501691e0..3dad236051 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/FollowedUser.java @@ -8,8 +8,7 @@ /** * 添加了外部联系人的企业成员. * - * @author Binary Wang - * created on 2020-11-04 + * @author Binary Wang created on 2020-11-04 */ @Data public class FollowedUser implements Serializable { @@ -53,6 +52,9 @@ public class FollowedUser implements Serializable { @SerializedName("oper_userid") private String operatorUserId; + /** + * The type Tag. + */ @Data public static class Tag implements Serializable { private static final long serialVersionUID = -7556237053703295482L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactBatchInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactBatchInfo.java index 65e3326132..de866fb306 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactBatchInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactBatchInfo.java @@ -28,6 +28,9 @@ public class WxCpExternalContactBatchInfo extends WxCpBaseResp implements Serial @SerializedName("next_cursor") private String nextCursor; + /** + * The type External contact info. + */ @Getter @Setter public static class ExternalContactInfo implements Serializable { @@ -41,6 +44,12 @@ public static class ExternalContactInfo implements Serializable { } + /** + * From json wx cp external contact batch info. + * + * @param json the json + * @return the wx cp external contact batch info + */ public static WxCpExternalContactBatchInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpExternalContactBatchInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactInfo.java index cad105e711..1a58c7e1d7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpExternalContactInfo.java @@ -29,6 +29,12 @@ public class WxCpExternalContactInfo implements Serializable { @SerializedName("next_cursor") private String nextCursor; + /** + * From json wx cp external contact info. + * + * @param json the json + * @return the wx cp external contact info + */ public static WxCpExternalContactInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpExternalContactInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java index e8cb1b81c9..2b7879375e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgListResult.java @@ -31,6 +31,9 @@ public class WxCpGroupMsgListResult extends WxCpBaseResp implements Serializable @SerializedName("next_cursor") private String nextCursor; + /** + * The type External contact group msg info. + */ @Getter @Setter public static class ExternalContactGroupMsgInfo implements Serializable { @@ -53,6 +56,12 @@ public static class ExternalContactGroupMsgInfo implements Serializable { } + /** + * From json wx cp group msg list result. + * + * @param json the json + * @return the wx cp group msg list result + */ public static WxCpGroupMsgListResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgListResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java index 5cae404f05..604700b3a2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgResult.java @@ -28,6 +28,9 @@ public class WxCpGroupMsgResult extends WxCpBaseResp implements Serializable { @SerializedName("next_cursor") private String nextCursor; + /** + * The type External contact group msg detail info. + */ @Getter @Setter public static class ExternalContactGroupMsgDetailInfo implements Serializable { @@ -53,6 +56,12 @@ public static class ExternalContactGroupMsgDetailInfo implements Serializable { private Long sendTime; } + /** + * From json wx cp group msg result. + * + * @param json the json + * @return the wx cp group msg result + */ public static WxCpGroupMsgResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java index 704e53b8d3..657c12ff6c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgSendResult.java @@ -28,6 +28,9 @@ public class WxCpGroupMsgSendResult extends WxCpBaseResp implements Serializable @SerializedName("next_cursor") private String nextCursor; + /** + * The type External contact group msg send info. + */ @Getter @Setter public static class ExternalContactGroupMsgSendInfo implements Serializable { @@ -49,6 +52,12 @@ public static class ExternalContactGroupMsgSendInfo implements Serializable { } + /** + * From json wx cp group msg send result. + * + * @param json the json + * @return the wx cp group msg send result + */ public static WxCpGroupMsgSendResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgSendResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java index 0f2299bb4e..f363fc2eeb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/contact/WxCpGroupMsgTaskResult.java @@ -28,6 +28,9 @@ public class WxCpGroupMsgTaskResult extends WxCpBaseResp implements Serializable @SerializedName("next_cursor") private String nextCursor; + /** + * The type External contact group msg task info. + */ @Getter @Setter public static class ExternalContactGroupMsgTaskInfo implements Serializable { @@ -43,6 +46,12 @@ public static class ExternalContactGroupMsgTaskInfo implements Serializable { } + /** + * From json wx cp group msg task result. + * + * @param json the json + * @return the wx cp group msg task result + */ public static WxCpGroupMsgTaskResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupMsgTaskResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java index 3bcbe03e03..3504d9aed0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java @@ -5,6 +5,8 @@ import lombok.Setter; /** + * The type Customer item. + * * @author Boris */ @Getter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java index c9f2e0a580..2d9ac44713 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java @@ -6,6 +6,9 @@ import java.util.List; +/** + * The type External contact list. + */ @Getter @Setter public class ExternalContactList { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java index 3fd364ddb4..1eabdc145b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java @@ -7,6 +7,8 @@ import java.util.List; /** + * The type Moment info. + * * @author Borisg */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java index b3f2c387e6..35924fbebe 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/SenderList.java @@ -7,6 +7,8 @@ import java.util.List; /** + * The type Sender list. + * * @author Boris */ @Getter diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java index 1bf6c46cb8..5964087952 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java @@ -7,6 +7,8 @@ import java.io.Serializable; /** + * The type Visible range. + * * @author Boris */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java index d714b093cf..6b6efc9363 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Attachment.java @@ -7,6 +7,8 @@ import java.io.Serializable; /** + * The type Attachment. + * * @author chutian0124 */ @Data @@ -27,26 +29,51 @@ public class Attachment implements Serializable { private File file; + /** + * Sets image. + * + * @param image the image + */ public void setImage(Image image) { this.image = image; this.msgType = WxCpConsts.WelcomeMsgType.IMAGE; } + /** + * Sets link. + * + * @param link the link + */ public void setLink(Link link) { this.link = link; this.msgType = WxCpConsts.WelcomeMsgType.LINK; } + /** + * Sets mini program. + * + * @param miniProgram the mini program + */ public void setMiniProgram(MiniProgram miniProgram) { this.miniProgram = miniProgram; this.msgType = WxCpConsts.WelcomeMsgType.MINIPROGRAM; } + /** + * Sets video. + * + * @param video the video + */ public void setVideo(Video video) { this.video = video; this.msgType = WxCpConsts.WelcomeMsgType.VIDEO; } + /** + * Sets file. + * + * @param file the file + */ public void setFile(File file) { this.file = file; this.msgType = WxCpConsts.WelcomeMsgType.FILE; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java index 5bbd1ce380..656f46ba34 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/File.java @@ -6,8 +6,9 @@ import java.io.Serializable; /** - * @author Binary Wang - * created on 2021-08-23 + * The type File. + * + * @author Binary Wang created on 2021-08-23 */ @Data public class File implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java index 6eec31b806..cd2cdee29c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Image.java @@ -8,8 +8,7 @@ /** * 图片消息. * - * @author Binary Wang - * created on 2020-08-16 + * @author Binary Wang created on 2020-08-16 */ @Data public class Image implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java index 80e22159a4..45ed02fae8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Link.java @@ -8,8 +8,7 @@ /** * 图文消息. * - * @author Binary Wang - * created on 2020-08-16 + * @author Binary Wang created on 2020-08-16 */ @Data public class Link implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java index 74b8b49224..d9a8a019b4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Location.java @@ -5,8 +5,7 @@ /** * 地理位置 * - * @author leiin - * created on 2021-10-29 + * @author leiin created on 2021-10-29 */ @Data public class Location { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java index 1f9037567f..013fe882bc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/MiniProgram.java @@ -8,8 +8,7 @@ /** * 小程序消息. * - * @author Binary Wang - * created on 2020-08-16 + * @author Binary Wang created on 2020-08-16 */ @Data public class MiniProgram implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java index a796eeec79..5aeeb4565a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Text.java @@ -8,8 +8,7 @@ /** * 消息文本消息. * - * @author Binary Wang - * created on 2020-08-16 + * @author Binary Wang created on 2020-08-16 */ @Data @Accessors(chain = true) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java index 251972cf95..c1428a6626 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/msg/Video.java @@ -8,8 +8,7 @@ /** * 视频消息 * - * @author pg - * created on 2021-6-21 + * @author pg created on 2021-6-21 */ @Data public class Video implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java index c1480fbb7b..960800e11f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java @@ -24,6 +24,11 @@ public class Attachment implements Serializable { */ private Image image; + /** + * Sets image. + * + * @param image the image + */ public void setImage(Image image) { this.image = image; this.type = WxCpConsts.ProductAttachmentType.IMAGE; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java index 428c255a31..b1ea05fad9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAdd.java @@ -9,8 +9,7 @@ /** * 添加客服帐号-请求参数 * - * @author Fu - * created on 2022/1/19 18:59 + * @author Fu created on 2022/1/19 18:59 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java index 8a3c0978d5..c218494137 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountAddResp.java @@ -10,8 +10,7 @@ /** * 添加客服帐号-返回结果 * - * @author Fu - * created on 2022/1/19 19:04 + * @author Fu created on 2022/1/19 19:04 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -26,6 +25,12 @@ public class WxCpKfAccountAddResp extends WxCpBaseResp { @SerializedName("open_kfid") private String openKfid; + /** + * From json wx cp kf account add resp. + * + * @param json the json + * @return the wx cp kf account add resp + */ public static WxCpKfAccountAddResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfAccountAddResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java index d68714a6e5..bd4bdf30c9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountDel.java @@ -9,8 +9,7 @@ /** * 删除客服帐号-请求参数 * - * @author Fu - * created on 2022/1/19 19:09 + * @author Fu created on 2022/1/19 19:09 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java index b101412453..a903d0fa54 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLink.java @@ -9,8 +9,7 @@ /** * 获取客服帐号链接-请求参数 * - * @author Fu - * created on 2022/1/19 19:18 + * @author Fu created on 2022/1/19 19:18 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java index 0ef73b9c4c..e04a8f56a9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountLinkResp.java @@ -10,8 +10,7 @@ /** * 获取客服帐号链接-结果 * - * @author Fu - * created on 2022/1/19 19:18 + * @author Fu created on 2022/1/19 19:18 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -26,6 +25,12 @@ public class WxCpKfAccountLinkResp extends WxCpBaseResp { @SerializedName("url") private String url; + /** + * From json wx cp kf account link resp. + * + * @param json the json + * @return the wx cp kf account link resp + */ public static WxCpKfAccountLinkResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfAccountLinkResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java index 0355c2df69..a7ec3c909a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountListResp.java @@ -1,6 +1,5 @@ package me.chanjar.weixin.cp.bean.kf; -import com.fasterxml.jackson.annotation.JsonProperty; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.EqualsAndHashCode; @@ -13,8 +12,7 @@ /** * 获取客服帐号列表-结果 * - * @author Fu - * created on 2022/1/19 19:13 + * @author Fu created on 2022/1/19 19:13 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -29,6 +27,9 @@ public class WxCpKfAccountListResp extends WxCpBaseResp { @SerializedName("account_list") private List accountList; + /** + * The type Account list dto. + */ @NoArgsConstructor @Data public static class AccountListDTO { @@ -51,6 +52,12 @@ public static class AccountListDTO { private String avatar; } + /** + * From json wx cp kf account list resp. + * + * @param json the json + * @return the wx cp kf account list resp + */ public static WxCpKfAccountListResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfAccountListResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java index a54d1d7ca4..fa375c8723 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfAccountUpd.java @@ -9,8 +9,7 @@ /** * 修改客服帐号-请求参数 * - * @author Fu - * created on 2022/1/19 19:10 + * @author Fu created on 2022/1/19 19:10 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java index 964e322043..72b6b1044f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfCustomerBatchGetResp.java @@ -1,7 +1,6 @@ package me.chanjar.weixin.cp.bean.kf; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; @@ -9,9 +8,12 @@ import me.chanjar.weixin.cp.bean.external.contact.ExternalContact; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** - * @author leiin - * created on 2022/1/26 7:56 下午 + * The type Wx cp kf customer batch get resp. + * + * @author leiin created on 2022/1/26 7:56 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -26,6 +28,12 @@ public class WxCpKfCustomerBatchGetResp extends WxCpBaseResp { @SerializedName("invalid_external_userid") private List invalidExternalUserId; + /** + * From json wx cp kf customer batch get resp. + * + * @param json the json + * @return the wx cp kf customer batch get resp + */ public static WxCpKfCustomerBatchGetResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfCustomerBatchGetResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java index 604901e7c4..d447fb6494 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticRequest.java @@ -7,9 +7,8 @@ /** * 获取「客户数据统计」企业汇总数据 * - * @author zhongjun - * created on 2022/4/25 - **/ + * @author zhongjun created on 2022/4/25 + */ @NoArgsConstructor @Data public class WxCpKfGetCorpStatisticRequest { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java index dd3c876dab..2243a70add 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfGetCorpStatisticResp.java @@ -12,9 +12,8 @@ /** * 获取「客户数据统计」企业汇总数据 * - * @author zhongjun - * created on 2022/4/25 - **/ + * @author zhongjun created on 2022/4/25 + */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @Data @@ -27,6 +26,9 @@ public class WxCpKfGetCorpStatisticResp extends WxCpBaseResp { @SerializedName("statistic_list") private List statisticList; + /** + * The type Statistic list. + */ @NoArgsConstructor @Data public static class StatisticList { @@ -43,6 +45,9 @@ public static class StatisticList { private Statistic statistic; } + /** + * The type Statistic. + */ @NoArgsConstructor @Data public static class Statistic { @@ -84,12 +89,19 @@ public static class Statistic { private Integer aiTransferRate; /** - * 知识命中率。一个自然日内,客户给智能助手发送的消息中,命中知识库的占比。只有在开启了智能回复原生功能并配置了知识库的情况下,才会产生该项统计数据。当api托管了会话分配,智能回复原生功能失效。若不返回,代表没有向配置知识库的智能接待助手发送消息,该项无法计算 + * 知识命中率。一个自然日内,客户给智能助手发送的消息中,命中知识库的占比。只有在开启了智能回复原生功能并配置了知识库的情况下,才会产生该项统计数据。当api + * 托管了会话分配,智能回复原生功能失效。若不返回,代表没有向配置知识库的智能接待助手发送消息,该项无法计算 */ @SerializedName("ai_knowledge_hit_rate") private Integer aiKnowledgeHitRate; } + /** + * From json wx cp kf get corp statistic resp. + * + * @param json the json + * @return the wx cp kf get corp statistic resp + */ public static WxCpKfGetCorpStatisticResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfGetCorpStatisticResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java index b2f7545d71..197b65ecd1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java @@ -1,24 +1,19 @@ package me.chanjar.weixin.cp.bean.kf; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.cp.bean.WxCpBaseResp; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfBusinessCardMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfEventMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLinkMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLocationMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMenuMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMiniProgramMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfResourceMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfTextMsg; +import me.chanjar.weixin.cp.bean.kf.msg.*; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** - * @author leiin - * created on 2022/1/26 5:24 下午 + * The type Wx cp kf msg list resp. + * + * @author leiin created on 2022/1/26 5:24 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -35,6 +30,9 @@ public class WxCpKfMsgListResp extends WxCpBaseResp { @SerializedName("msg_list") private List msgList; + /** + * The type Wx cp kf msg item. + */ @NoArgsConstructor @Data public static class WxCpKfMsgItem { @@ -67,6 +65,12 @@ public static class WxCpKfMsgItem { private WxCpKfEventMsg event; } + /** + * From json wx cp kf msg list resp. + * + * @param json the json + * @return the wx cp kf msg list resp + */ public static WxCpKfMsgListResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfMsgListResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java index cef24cfbba..ba451813e0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendRequest.java @@ -3,16 +3,12 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLinkMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfLocationMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMenuMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMiniProgramMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfResourceMsg; -import me.chanjar.weixin.cp.bean.kf.msg.WxCpKfTextMsg; +import me.chanjar.weixin.cp.bean.kf.msg.*; /** - * @author leiin - * created on 2022/1/26 7:00 下午 + * The type Wx cp kf msg send request. + * + * @author leiin created on 2022/1/26 7:00 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java index 83b1267183..62bd624d8b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgSendResp.java @@ -8,8 +8,9 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** - * @author leiin - * created on 2022/1/26 7:41 下午 + * The type Wx cp kf msg send resp. + * + * @author leiin created on 2022/1/26 7:41 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -18,6 +19,12 @@ public class WxCpKfMsgSendResp extends WxCpBaseResp { @SerializedName("msgid") private String msgId; + /** + * From json wx cp kf msg send resp. + * + * @param json the json + * @return the wx cp kf msg send resp + */ public static WxCpKfMsgSendResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfMsgSendResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java index 343745364e..d273cc32d4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateResp.java @@ -8,8 +8,9 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** - * @author leiin - * created on 2022/1/26 5:00 下午 + * The type Wx cp kf service state resp. + * + * @author leiin created on 2022/1/26 5:00 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -22,6 +23,12 @@ public class WxCpKfServiceStateResp extends WxCpBaseResp { @SerializedName("servicer_userid") private String servicerUserId; + /** + * From json wx cp kf service state resp. + * + * @param json the json + * @return the wx cp kf service state resp + */ public static WxCpKfServiceStateResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceStateResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java index a8836dd8e1..604efb12ac 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceStateTransResp.java @@ -8,8 +8,9 @@ import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; /** - * @author leiin - * created on 2022/1/26 5:03 下午 + * The type Wx cp kf service state trans resp. + * + * @author leiin created on 2022/1/26 5:03 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -21,6 +22,12 @@ public class WxCpKfServiceStateTransResp extends WxCpBaseResp { @SerializedName("msg_code") private String msgCode; + /** + * From json wx cp kf service state trans resp. + * + * @param json the json + * @return the wx cp kf service state trans resp + */ public static WxCpKfServiceStateTransResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceStateTransResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java index 150bab725a..61eb1b775b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServiceUpgradeConfigResp.java @@ -1,16 +1,18 @@ package me.chanjar.weixin.cp.bean.kf; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** - * @author leiin - * created on 2022/4/26 5:21 下午 + * The type Wx cp kf service upgrade config resp. + * + * @author leiin created on 2022/4/26 5:21 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -25,10 +27,19 @@ public class WxCpKfServiceUpgradeConfigResp extends WxCpBaseResp { @SerializedName("groupchat_range") private GroupchatRange groupchatRange; + /** + * From json wx cp kf service upgrade config resp. + * + * @param json the json + * @return the wx cp kf service upgrade config resp + */ public static WxCpKfServiceUpgradeConfigResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfServiceUpgradeConfigResp.class); } + /** + * The type Member range. + */ @Data @NoArgsConstructor public static class MemberRange { @@ -39,6 +50,9 @@ public static class MemberRange { private List departmentIdList; } + /** + * The type Groupchat range. + */ @Data @NoArgsConstructor public static class GroupchatRange { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java index 69b7e97d72..0b3e4636c1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerListResp.java @@ -1,16 +1,18 @@ package me.chanjar.weixin.cp.bean.kf; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** - * @author leiin - * created on 2022/1/26 4:29 下午 + * The type Wx cp kf servicer list resp. + * + * @author leiin created on 2022/1/26 4:29 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -21,6 +23,9 @@ public class WxCpKfServicerListResp extends WxCpBaseResp { @SerializedName("servicer_list") private List servicerList; + /** + * The type Wx cp kf servicer status. + */ @NoArgsConstructor @Data public static class WxCpKfServicerStatus { @@ -29,6 +34,12 @@ public static class WxCpKfServicerStatus { private Integer status; } + /** + * From json wx cp kf servicer list resp. + * + * @param json the json + * @return the wx cp kf servicer list resp + */ public static WxCpKfServicerListResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfServicerListResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java index d72b48225e..4e48e02348 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfServicerOpResp.java @@ -2,17 +2,18 @@ import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; +import java.util.List; + /** * 添加/删除客服接待人员返回结果 - * @author leiin - * created on 2022/1/26 4:11 下午 + * + * @author leiin created on 2022/1/26 4:11 下午 */ @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @@ -24,6 +25,9 @@ public class WxCpKfServicerOpResp extends WxCpBaseResp { @SerializedName("result_list") private List resultList; + /** + * The type Wx cp kf servicer resp. + */ @Data @NoArgsConstructor public static class WxCpKfServicerResp extends WxCpBaseResp { @@ -32,6 +36,12 @@ public static class WxCpKfServicerResp extends WxCpBaseResp { private String userId; } + /** + * From json wx cp kf servicer op resp. + * + * @param json the json + * @return the wx cp kf servicer op resp + */ public static WxCpKfServicerOpResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpKfServicerOpResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java index 22593c3307..95fe7f72b4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfBusinessCardMsg.java @@ -5,8 +5,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 5:35 下午 + * The type Wx cp kf business card msg. + * + * @author leiin created on 2022/1/26 5:35 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java index 42c4b24509..6febab987d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfEventMsg.java @@ -5,8 +5,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 6:44 下午 + * The type Wx cp kf event msg. + * + * @author leiin created on 2022/1/26 6:44 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java index 2fe2503e1e..64809f1eb8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLinkMsg.java @@ -5,8 +5,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 5:33 下午 + * The type Wx cp kf link msg. + * + * @author leiin created on 2022/1/26 5:33 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java index 742f5c8a61..6e7fa9ab74 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfLocationMsg.java @@ -4,8 +4,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 5:32 下午 + * The type Wx cp kf location msg. + * + * @author leiin created on 2022/1/26 5:32 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java index 6153192b85..e994a0a00a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java @@ -1,15 +1,17 @@ package me.chanjar.weixin.cp.bean.kf.msg; import com.google.gson.annotations.SerializedName; -import java.util.List; import lombok.Data; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; +import java.util.List; + /** - * @author leiin - * created on 2022/1/26 6:33 下午 + * The type Wx cp kf menu msg. + * + * @author leiin created on 2022/1/26 6:33 下午 */ @NoArgsConstructor @Data @@ -35,6 +37,9 @@ public class WxCpKfMenuMsg { @SerializedName("tail_content") private String tailContent; + /** + * The type Wx cp kf menu item. + */ @NoArgsConstructor @Data public static class WxCpKfMenuItem { @@ -61,6 +66,9 @@ public static class WxCpKfMenuItem { private MiniProgram miniProgram; } + /** + * The type Menu click. + */ @Getter @Setter public static class MenuClick { @@ -81,6 +89,9 @@ public static class MenuClick { private String content; } + /** + * The type Menu view. + */ @Getter @Setter public static class MenuView { @@ -100,6 +111,9 @@ public static class MenuView { private String content; } + /** + * The type Mini program. + */ @Getter @Setter public static class MiniProgram { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java index 0c9101e1b2..49829a729f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMiniProgramMsg.java @@ -5,8 +5,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 6:22 下午 + * The type Wx cp kf mini program msg. + * + * @author leiin created on 2022/1/26 6:22 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java index 3deb29b728..fd25095b5f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfResourceMsg.java @@ -5,8 +5,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 5:31 下午 + * The type Wx cp kf resource msg. + * + * @author leiin created on 2022/1/26 5:31 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java index 1fd44b49c5..22c8eb548d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfTextMsg.java @@ -5,8 +5,9 @@ import lombok.NoArgsConstructor; /** - * @author leiin - * created on 2022/1/26 5:30 下午 + * The type Wx cp kf text msg. + * + * @author leiin created on 2022/1/26 5:30 下午 */ @NoArgsConstructor @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java index 4deb42bff7..60975f5441 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java @@ -10,8 +10,8 @@ /** * 订单账号信息 - * @author Totoro - * created on 2022/6/27 14:04 + * + * @author Totoro created on 2022/6/27 14:04 */ @EqualsAndHashCode(callSuper = true) @Data @@ -28,5 +28,4 @@ public class WxCpTpLicenseAccount extends WxCpTpLicenseBaseAccount { private String activeCode; - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java index 69e9cd714c..68e8d784d9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java @@ -10,8 +10,9 @@ import java.io.Serializable; /** - * @author Totoro - * created on 2022/6/27 11:54 + * The type Wx cp tp license account count. + * + * @author Totoro created on 2022/6/27 11:54 */ @Data @Builder @@ -25,6 +26,11 @@ public class WxCpTpLicenseAccountCount implements Serializable { @SerializedName("external_contact_count") private Integer externalContactCount; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java index 49e9db60a3..ebc58f1ec7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java @@ -8,9 +8,9 @@ import java.io.Serializable; /** + * The type Wx cp tp license account duration. * - * @author Totoro - * created on 2022-6-27 11:22:53 + * @author Totoro created on 2022-6-27 11:22:53 */ @Data @Builder @@ -21,4 +21,4 @@ public class WxCpTpLicenseAccountDuration implements Serializable { private Integer months; - } +} diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java index 50f3f7cf22..2493c657ce 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java @@ -9,8 +9,9 @@ import java.io.Serializable; /** - * @author Totoro - * created on 2022-6-27 16:26:35 + * The type Wx cp tp license active account. + * + * @author Totoro created on 2022-6-27 16:26:35 */ @Data @Builder diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java index 6eb46f8cc9..86d70ed8ae 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java @@ -10,8 +10,8 @@ /** * 激活码信息 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 - * @author Totoro - * created on 2022/6/27 14:34 + * + * @author Totoro created on 2022/6/27 14:34 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java index 88ad34070f..7e363f4fdf 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java @@ -10,8 +10,8 @@ /** * 许可证账号基础类 - * @author Totoro - * created on 2022/6/27 14:39 + * + * @author Totoro created on 2022/6/27 14:39 */ @Data @SuperBuilder @@ -32,6 +32,11 @@ public class WxCpTpLicenseBaseAccount implements Serializable { private Integer type; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java index 871ed86951..05b523ec94 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java @@ -8,8 +8,9 @@ import lombok.experimental.SuperBuilder; /** - * @author Totoro - * created on 2022/6/27 15:21 + * The type Wx cp tp license corp account. + * + * @author Totoro created on 2022/6/27 15:21 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java index 476bc3b883..85994d7ed7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java @@ -8,8 +8,9 @@ import lombok.experimental.SuperBuilder; /** - * @author Totoro - * created on 2022-6-27 15:35:30 + * The type Wx cp tp license invalid account. + * + * @author Totoro created on 2022-6-27 15:35:30 */ @EqualsAndHashCode(callSuper = true) @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java index 45cb8227f4..0cfbe5b028 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java @@ -9,8 +9,8 @@ /** * 详细的订单信息 * 文档地址:https://developer.work.weixin.qq.com/document/path/95648 - * @author Totoro - * created on 2022/6/27 11:38 + * + * @author Totoro created on 2022/6/27 11:38 */ @Data public class WxCpTpLicenseOrder implements Serializable { @@ -45,6 +45,11 @@ public class WxCpTpLicenseOrder implements Serializable { private Long payTime; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java index 036af6a8be..f994fd7a42 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java @@ -10,8 +10,9 @@ import java.io.Serializable; /** - * @author Totoro - * created on 2022/6/27 11:38 + * The type Wx cp tp license simple order. + * + * @author Totoro created on 2022/6/27 11:38 */ @Data @Builder @@ -26,6 +27,11 @@ public class WxCpTpLicenseSimpleOrder implements Serializable { @SerializedName("order_type") private Integer orderType; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java index 2b2d99812e..6be49008bb 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java @@ -10,8 +10,8 @@ /** * 基础的信息 - * @author Totoro - * created on 2022/6/27 15:50 + * + * @author Totoro created on 2022/6/27 15:50 */ @Data @Builder @@ -41,6 +41,4 @@ public class WxCpTpLicenseTransfer implements Serializable { private Integer errCode; - - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java index 10cbe48617..a9284d9d6e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java @@ -12,8 +12,8 @@ /** * 某个企业成员的激活情况 * 文档地址:https://developer.work.weixin.qq.com/document/path/95555 - * @author Totoro - * created on 2022-6-27 14:51:19 + * + * @author Totoro created on 2022-6-27 14:51:19 */ @EqualsAndHashCode(callSuper = true) @Data @@ -28,6 +28,12 @@ public class WxCpTpLicenseActiveInfoByUserResp extends WxCpBaseResp { private List activeInfoList; + /** + * From json wx cp tp license active info by user resp. + * + * @param json the json + * @return the wx cp tp license active info by user resp + */ public static WxCpTpLicenseActiveInfoByUserResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseActiveInfoByUserResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java index ccc5f32047..f1336af5a1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java @@ -12,8 +12,8 @@ /** * 批量激活帐号结果 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 - * @author Totoro - * created on 2022-6-27 16:19:21 + * + * @author Totoro created on 2022-6-27 16:19:21 */ @EqualsAndHashCode(callSuper = true) @Data @@ -25,8 +25,12 @@ public class WxCpTpLicenseBatchActiveResultResp extends WxCpBaseResp { private List activeResults; - - + /** + * From json wx cp tp license batch active result resp. + * + * @param json the json + * @return the wx cp tp license batch active result resp + */ public static WxCpTpLicenseBatchActiveResultResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchActiveResultResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java index c0d7884f49..0029700122 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java @@ -12,8 +12,8 @@ /** * 批量查询的激活码详情 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 - * @author Totoro - * created on 2022-6-27 14:51:19 + * + * @author Totoro created on 2022-6-27 14:51:19 */ @EqualsAndHashCode(callSuper = true) @Data @@ -27,6 +27,12 @@ public class WxCpTpLicenseBatchCodeInfoResp extends WxCpBaseResp { private List invalidActiveCodeList; + /** + * From json wx cp tp license batch code info resp. + * + * @param json the json + * @return the wx cp tp license batch code info resp + */ public static WxCpTpLicenseBatchCodeInfoResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchCodeInfoResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java index f95d463a09..1b24a20a35 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java @@ -12,8 +12,8 @@ /** * 基础结果返回信息 * 文档地址:https://developer.work.weixin.qq.com/document/path/95673 - * @author Totoro - * created on 2022/6/27 15:49 + * + * @author Totoro created on 2022/6/27 15:49 */ @EqualsAndHashCode(callSuper = true) @Data @@ -23,10 +23,15 @@ public class WxCpTpLicenseBatchTransferResp extends WxCpBaseResp { @SerializedName("transfer_result") private List transferResult; + /** + * From json wx cp tp license batch transfer resp. + * + * @param json the json + * @return the wx cp tp license batch transfer resp + */ public static WxCpTpLicenseBatchTransferResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchTransferResp.class); } - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java index f649c48a21..152b38d8b9 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java @@ -10,8 +10,8 @@ /** * 查询的激活码详情 * 文档地址:https://developer.work.weixin.qq.com/document/path/95553 - * @author Totoro - * created on 2022/6/27 14:28 + * + * @author Totoro created on 2022/6/27 14:28 */ @EqualsAndHashCode(callSuper = true) @Data @@ -22,6 +22,12 @@ public class WxCpTpLicenseCodeInfoResp extends WxCpBaseResp { private WxCpTpLicenseActiveCodeInfo activeCodeInfo; + /** + * From json wx cp tp license code info resp. + * + * @param json the json + * @return the wx cp tp license code info resp + */ public static WxCpTpLicenseCodeInfoResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCodeInfoResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java index 93c64dcfcc..79e7f81305 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java @@ -12,8 +12,8 @@ /** * 企业的帐号列表(已激活) * 文档地址:https://developer.work.weixin.qq.com/document/path/95544 - * @author Totoro - * created on 2022/6/27 15:15 + * + * @author Totoro created on 2022/6/27 15:15 */ @EqualsAndHashCode(callSuper = true) @Data @@ -30,6 +30,12 @@ public class WxCpTpLicenseCorpAccountListResp extends WxCpBaseResp { private List orderList; + /** + * From json wx cp tp license corp account list resp. + * + * @param json the json + * @return the wx cp tp license corp account list resp + */ public static WxCpTpLicenseCorpAccountListResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCorpAccountListResp.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java index a2092f07f4..66648b75d2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java @@ -9,8 +9,8 @@ /** * 订单创建结果 * 文档地址:https://developer.work.weixin.qq.com/document/path/95644 - * @author Totoro - * created on 2022-6-27 11:26:36 + * + * @author Totoro created on 2022-6-27 11:26:36 */ @EqualsAndHashCode(callSuper = true) @Data @@ -21,11 +21,15 @@ public class WxCpTpLicenseCreateOrderResp extends WxCpBaseResp { private String orderId; + /** + * From json wx cp tp license create order resp. + * + * @param json the json + * @return the wx cp tp license create order resp + */ public static WxCpTpLicenseCreateOrderResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCreateOrderResp.class); } - - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java index dea1f4daca..232fd9d9e6 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java @@ -1,4 +1,5 @@ package me.chanjar.weixin.cp.bean.license.order; + import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -13,8 +14,8 @@ /** * 下单购买帐号 * 文档地址:https://developer.work.weixin.qq.com/document/path/95644 - * @author Totoro - * created on 2022/6/27 10:52 + * + * @author Totoro created on 2022/6/27 10:52 */ @Data @Builder @@ -48,13 +49,14 @@ public class WxCpTpLicenseNewOrderRequest implements Serializable { private WxCpTpLicenseAccountDuration accountDuration; - + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } - - - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java index dcb607ef4b..295fdb8436 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java @@ -12,8 +12,8 @@ /** * 获取订单中的帐号列表 * 文档地址:https://developer.work.weixin.qq.com/document/path/95649 - * @author Totoro - * created on 2022-6-27 14:14:40 + * + * @author Totoro created on 2022-6-27 14:14:40 */ @Data @EqualsAndHashCode(callSuper = true) @@ -30,10 +30,15 @@ public class WxCpTpLicenseOrderAccountListResp extends WxCpBaseResp { private List accountList; + /** + * From json wx cp tp license order account list resp. + * + * @param json the json + * @return the wx cp tp license order account list resp + */ public static WxCpTpLicenseOrderAccountListResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderAccountListResp.class); } - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java index 1aacda9edc..691aa25a71 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java @@ -9,8 +9,8 @@ /** * 订单详情结果 * 文档:https://developer.work.weixin.qq.com/document/path/95648 - * @author Totoro - * created on 2022/06/27 11:56:03 + * + * @author Totoro created on 2022/06/27 11:56:03 */ @EqualsAndHashCode(callSuper = true) @Data @@ -21,10 +21,15 @@ public class WxCpTpLicenseOrderInfoResp extends WxCpBaseResp { private WxCpTpLicenseOrder order; + /** + * From json wx cp tp license order info resp. + * + * @param json the json + * @return the wx cp tp license order info resp + */ public static WxCpTpLicenseOrderInfoResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderInfoResp.class); } - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java index 5b4038a13e..a9e0e5d32f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java @@ -12,8 +12,8 @@ /** * 获取订单列表详情 * 文档地址:https://developer.work.weixin.qq.com/document/path/95647 - * @author Totoro - * created on 2022/6/27 11:39 + * + * @author Totoro created on 2022/6/27 11:39 */ @Data @EqualsAndHashCode(callSuper = true) @@ -30,10 +30,15 @@ public class WxCpTpLicenseOrderListResp extends WxCpBaseResp { private List orderList; + /** + * From json wx cp tp license order list resp. + * + * @param json the json + * @return the wx cp tp license order list resp + */ public static WxCpTpLicenseOrderListResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderListResp.class); } - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java index 7c65b4fdd8..aabae94591 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java @@ -1,4 +1,5 @@ package me.chanjar.weixin.cp.bean.license.order; + import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -13,8 +14,8 @@ /** * 创建下单续期帐号任务 * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 - * @author Totoro - * created on 2022/6/27 11:12 + * + * @author Totoro created on 2022/6/27 11:12 */ @Data @Builder @@ -40,7 +41,11 @@ public class WxCpTpLicenseRenewOrderJobRequest implements Serializable { private String jobId; - + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java index 91e4970fb2..31734b5ad2 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java @@ -12,8 +12,8 @@ /** * 创建下单购买帐号任务返回结果 * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 - * @author Totoro - * created on 2022-6-27 11:15:20 + * + * @author Totoro created on 2022-6-27 11:15:20 */ @EqualsAndHashCode(callSuper = true) @Data @@ -32,12 +32,15 @@ public class WxCpTpLicenseRenewOrderJobResp extends WxCpBaseResp { private List invalidAccountList; - + /** + * From json wx cp tp license renew order job resp. + * + * @param json the json + * @return the wx cp tp license renew order job resp + */ public static WxCpTpLicenseRenewOrderJobResp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseRenewOrderJobResp.class); } - - } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java index fa7e3d11ed..196e02c1c4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java @@ -1,4 +1,5 @@ package me.chanjar.weixin.cp.bean.license.order; + import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -12,8 +13,8 @@ /** * 续期帐号订单 * 文档地址:https://developer.work.weixin.qq.com/document/path/95646 - * @author Totoro - * created on 2022-6-27 11:21:51 + * + * @author Totoro created on 2022-6-27 11:21:51 */ @Data @Builder @@ -30,6 +31,11 @@ public class WxCpTpLicenseRenewOrderRequest implements Serializable { private WxCpTpLicenseAccountDuration accountDuration; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java index e733b805d3..00d0320cd1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingCreateRequest.java @@ -11,8 +11,7 @@ /** * 创建预约直播请求. * - * @author Wang_Wong - * created on 2021-12-23 + * @author Wang_Wong created on 2021-12-23 */ @Data @Builder @@ -55,6 +54,9 @@ public class WxCpLivingCreateRequest implements Serializable { @SerializedName("activity_detail") private ActivityDetail activityDetail; + /** + * The type Activity detail. + */ @Getter @Setter public static class ActivityDetail implements Serializable { @@ -65,20 +67,42 @@ public static class ActivityDetail implements Serializable { @SerializedName("description") private String description; + /** + * From json activity detail. + * + * @param json the json + * @return the activity detail + */ public static ActivityDetail fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, ActivityDetail.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * From json wx cp living create request. + * + * @param json the json + * @return the wx cp living create request + */ public static WxCpLivingCreateRequest fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpLivingCreateRequest.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java index 59ba35cd17..f8fdeb351a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingInfo.java @@ -69,10 +69,21 @@ public class WxCpLivingInfo implements Serializable { @SerializedName("subscribe_count") private Integer subscribeCount; + /** + * From json wx cp living info. + * + * @param json the json + * @return the wx cp living info + */ public static WxCpLivingInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpLivingInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java index 358429bee8..fe8a446708 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingModifyRequest.java @@ -13,8 +13,7 @@ /** * 创建预约直播请求. * - * @author Wang_Wong - * created on 2021-12-23 + * @author Wang_Wong created on 2021-12-23 */ @Data @Builder @@ -45,10 +44,21 @@ public class WxCpLivingModifyRequest implements Serializable { @SerializedName("type") private Integer type; + /** + * From json wx cp living modify request. + * + * @param json the json + * @return the wx cp living modify request + */ public static WxCpLivingModifyRequest fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpLivingModifyRequest.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java index 09c912ad83..92f698848f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingResult.java @@ -23,6 +23,9 @@ public class WxCpLivingResult implements Serializable { @SerializedName("errmsg") private String errmsg; + /** + * The type Living id result. + */ @Getter @Setter public static class LivingIdResult implements Serializable { @@ -34,20 +37,42 @@ public static class LivingIdResult implements Serializable { @SerializedName("livingid_list") private String[] livingIdList; + /** + * From json living id result. + * + * @param json the json + * @return the living id result + */ public static LivingIdResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, LivingIdResult.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * From json wx cp living result. + * + * @param json the json + * @return the wx cp living result + */ public static WxCpLivingResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpLivingResult.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java index f0b96cc961..16f74e253d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpLivingShareInfo.java @@ -29,10 +29,21 @@ public class WxCpLivingShareInfo implements Serializable { @SerializedName("invitor_external_userid") private String invitorExternalUserid; + /** + * From json wx cp living share info. + * + * @param json the json + * @return the wx cp living share info + */ public static WxCpLivingShareInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpLivingShareInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java index 4a77bdd450..f1c25a1704 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/living/WxCpWatchStat.java @@ -26,6 +26,9 @@ public class WxCpWatchStat implements Serializable { @SerializedName("stat_info") private StatInfo statInfo; + /** + * The type Stat info. + */ @Getter @Setter public static class StatInfo implements Serializable { @@ -39,6 +42,9 @@ public static class StatInfo implements Serializable { } + /** + * The type User. + */ @Getter @Setter public static class User implements Serializable { @@ -57,6 +63,9 @@ public static class User implements Serializable { } + /** + * The type External user. + */ @Getter @Setter public static class ExternalUser implements Serializable { @@ -79,10 +88,21 @@ public static class ExternalUser implements Serializable { } + /** + * From json wx cp watch stat. + * + * @param json the json + * @return the wx cp watch stat + */ public static WxCpWatchStat fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpWatchStat.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpAppChatMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpAppChatMessage.java index 10dd3c1b27..e1cbb5c65d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpAppChatMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpAppChatMessage.java @@ -75,6 +75,11 @@ public class WxCpAppChatMessage implements Serializable { /** * 构建文本消息. + * + * @param chatId the chat id + * @param content the content + * @param safe the safe + * @return the wx cp app chat message */ public static WxCpAppChatMessage buildTextMsg(String chatId, String content, boolean safe) { final WxCpAppChatMessage message = new WxCpAppChatMessage(); @@ -87,6 +92,8 @@ public static WxCpAppChatMessage buildTextMsg(String chatId, String content, boo /** * 生成json字符串. + * + * @return the string */ public String toJson() { JsonObject messageJson = new JsonObject(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java index bb28fa8a23..a0e9be359e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpGroupRobotMessage.java @@ -16,8 +16,7 @@ /** * 微信群机器人消息 * - * @author yr - * created on 2020-08-20 + * @author yr created on 2020-08-20 */ @AllArgsConstructor @NoArgsConstructor @@ -62,6 +61,11 @@ public class WxCpGroupRobotMessage implements Serializable { */ private String mediaId; + /** + * To json string. + * + * @return the string + */ public String toJson() { JsonObject messageJson = new JsonObject(); messageJson.addProperty("msgtype", this.getMsgType()); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java index 19461070c9..92209fd4e5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessage.java @@ -23,8 +23,7 @@ * 互联企业消息. * https://developer.work.weixin.qq.com/document/path/90250 * - * @author Binary Wang - * created on 2020-08-30 + * @author Binary Wang created on 2020-08-30 */ @Data @Builder @@ -44,7 +43,8 @@ public class WxCpLinkedCorpMessage implements Serializable { */ private String[] toUsers; /** - * 部门ID列表,最多支持100个。partyid在互联圈子内唯一。每个元素都是字符串类型,格式为:linked_id/party_id,其中linked_id是互联id,party_id是在互联圈子中的部门id。如果是本企业的部门,则直接传party_id即可。 + * 部门ID列表,最多支持100个。partyid在互联圈子内唯一。每个元素都是字符串类型,格式为:linked_id/party_id,其中linked_id是互联id,party_id是在互联圈子中的部门id + * 。如果是本企业的部门,则直接传party_id即可。 */ private String[] toParties; /** @@ -100,6 +100,11 @@ public void setMsgType(String msgType) { this.msgType = msgType; } + /** + * To json string. + * + * @return the string + */ public String toJson() { JsonObject messageJson = new JsonObject(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java index 5008db115f..9d264664e4 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.java @@ -9,8 +9,7 @@ /** * 互联企业的消息推送接口返回实体 * - * @author pg - * created on 2021年6月22日 + * @author pg created on 2021年6月22日 */ @Setter @Getter @@ -31,6 +30,12 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp linked corp message send result. + * + * @param json the json + * @return the wx cp linked corp message send result + */ public static WxCpLinkedCorpMessageSendResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpLinkedCorpMessageSendResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java index 1ce367d9f5..c52d564c8f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessage.java @@ -219,6 +219,8 @@ public class WxCpMessage implements Serializable { /** * 获得文本消息builder. + * + * @return the text builder */ public static TextBuilder TEXT() { return new TextBuilder(); @@ -226,6 +228,8 @@ public static TextBuilder TEXT() { /** * 获得文本卡片消息builder. + * + * @return the text card builder */ public static TextCardBuilder TEXTCARD() { return new TextCardBuilder(); @@ -233,6 +237,8 @@ public static TextCardBuilder TEXTCARD() { /** * 获得图片消息builder. + * + * @return the image builder */ public static ImageBuilder IMAGE() { return new ImageBuilder(); @@ -240,6 +246,8 @@ public static ImageBuilder IMAGE() { /** * 获得语音消息builder. + * + * @return the voice builder */ public static VoiceBuilder VOICE() { return new VoiceBuilder(); @@ -247,6 +255,8 @@ public static VoiceBuilder VOICE() { /** * 获得视频消息builder. + * + * @return the video builder */ public static VideoBuilder VIDEO() { return new VideoBuilder(); @@ -254,6 +264,8 @@ public static VideoBuilder VIDEO() { /** * 获得图文消息builder. + * + * @return the news builder */ public static NewsBuilder NEWS() { return new NewsBuilder(); @@ -261,6 +273,8 @@ public static NewsBuilder NEWS() { /** * 获得mpnews图文消息builder. + * + * @return the mpnews builder */ public static MpnewsBuilder MPNEWS() { return new MpnewsBuilder(); @@ -268,6 +282,8 @@ public static MpnewsBuilder MPNEWS() { /** * 获得markdown消息builder. + * + * @return the markdown msg builder */ public static MarkdownMsgBuilder MARKDOWN() { return new MarkdownMsgBuilder(); @@ -275,6 +291,8 @@ public static MarkdownMsgBuilder MARKDOWN() { /** * 获得文件消息builder. + * + * @return the file builder */ public static FileBuilder FILE() { return new FileBuilder(); @@ -282,6 +300,8 @@ public static FileBuilder FILE() { /** * 获得任务卡片消息builder. + * + * @return the task card builder */ public static TaskCardBuilder TASKCARD() { return new TaskCardBuilder(); @@ -289,6 +309,8 @@ public static TaskCardBuilder TASKCARD() { /** * 获得任务卡片消息builder. + * + * @return the template card builder */ public static TemplateCardBuilder TEMPLATECARD() { return new TemplateCardBuilder(); @@ -296,6 +318,8 @@ public static TemplateCardBuilder TEMPLATECARD() { /** * 获得小程序通知消息builder. + * + * @return the mini program notice msg builder */ public static MiniProgramNoticeMsgBuilder newMiniProgramNoticeBuilder() { return new MiniProgramNoticeMsgBuilder(); @@ -323,6 +347,11 @@ public void setMsgType(String msgType) { this.msgType = msgType; } + /** + * To json string. + * + * @return the string + */ public String toJson() { JsonObject messageJson = new JsonObject(); if (this.getAgentId() != null) { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java index fdb72c7a74..2ddf95d8da 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendResult.java @@ -25,6 +25,12 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp message send result. + * + * @param json the json + * @return the wx cp message send result + */ public static WxCpMessageSendResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpMessageSendResult.class); } @@ -53,6 +59,11 @@ public static WxCpMessageSendResult fromJson(String json) { @SerializedName("response_code") private String responseCode; + /** + * Gets invalid user list. + * + * @return the invalid user list + */ public List getInvalidUserList() { return this.content2List(this.invalidUser); } @@ -65,10 +76,20 @@ private List content2List(String content) { return Splitter.on("|").splitToList(content); } + /** + * Gets invalid party list. + * + * @return the invalid party list + */ public List getInvalidPartyList() { return this.content2List(this.invalidParty); } + /** + * Gets invalid tag list. + * + * @return the invalid tag list + */ public List getInvalidTagList() { return this.content2List(this.invalidTag); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java index df83a23202..5b223a2a88 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpMessageSendStatistics.java @@ -10,19 +10,27 @@ /** * 应用消息发送统计信息. * - * @author Binary Wang - * created on 2020-09-13 + * @author Binary Wang created on 2020-09-13 */ @Data public class WxCpMessageSendStatistics implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * From json wx cp message send statistics. + * + * @param json the json + * @return the wx cp message send statistics + */ public static WxCpMessageSendStatistics fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpMessageSendStatistics.class); } private List statistics; + /** + * The type Statistic item. + */ @Data public static class StatisticItem implements Serializable { private static final long serialVersionUID = 6031833682211475786L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java index 7990a246f1..a13205cd6b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessage.java @@ -24,8 +24,7 @@ * 发送「学校通知」 * https://developer.work.weixin.qq.com/document/path/92321 * - * @author Wang_Wong - * created on 2022-06-29 + * @author Wang_Wong created on 2022-06-29 */ @Data @Builder @@ -148,7 +147,8 @@ public class WxCpSchoolContactMessage implements Serializable { /** * 图文消息(mpnews) - * https://developer.work.weixin.qq.com/document/path/92321#%E5%9B%BE%E6%96%87%E6%B6%88%E6%81%AF%EF%BC%88mpnews%EF%BC%89 + * https://developer.work.weixin.qq.com/document/path/92321#%E5%9B%BE%E6%96%87%E6%B6%88%E6%81%AF%EF%BC%88mpnews%EF + * %BC%89 *

* mpnews类型的图文消息,跟普通的图文消息一致,唯一的差异是图文内容存储在企业微信。 * 多次发送mpnews,会被认为是不同的图文,阅读、点赞的统计会被分开计算。 @@ -173,6 +173,11 @@ public void setMsgType(String msgType) { this.msgType = msgType; } + /** + * To json string. + * + * @return the string + */ public String toJson() { JsonObject messageJson = new JsonObject(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java index 584de8a408..a66f9baf78 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpSchoolContactMessageSendResult.java @@ -9,8 +9,7 @@ * 发送「学校通知」返回实体 * https://developer.work.weixin.qq.com/document/path/92321 * - * @author Wang_Wong - * created on 2022-06-29 + * @author Wang_Wong created on 2022-06-29 */ @Data public class WxCpSchoolContactMessageSendResult extends WxCpBaseResp { @@ -29,6 +28,12 @@ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * From json wx cp school contact message send result. + * + * @param json the json + * @return the wx cp school contact message send result + */ public static WxCpSchoolContactMessageSendResult fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolContactMessageSendResult.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java index c2aef9e131..a3b68c234e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpTpXmlMessage.java @@ -33,218 +33,386 @@ public class WxCpTpXmlMessage implements Serializable { */ private Map allFieldsMap; + /** + * The Suite id. + */ @XStreamAlias("SuiteId") @XStreamConverter(value = XStreamCDataConverter.class) protected String suiteId; + /** + * The Info type. + */ @XStreamAlias("InfoType") @XStreamConverter(value = XStreamCDataConverter.class) protected String infoType; + /** + * The Time stamp. + */ @XStreamAlias("TimeStamp") @XStreamConverter(value = XStreamCDataConverter.class) protected String timeStamp; + /** + * The Suite ticket. + */ @XStreamAlias("SuiteTicket") @XStreamConverter(value = XStreamCDataConverter.class) protected String suiteTicket; + /** + * The Auth code. + */ @XStreamAlias("AuthCode") @XStreamConverter(value = XStreamCDataConverter.class) protected String authCode; + /** + * The Auth corp id. + */ @XStreamAlias("AuthCorpId") @XStreamConverter(value = XStreamCDataConverter.class) protected String authCorpId; + /** + * The Change type. + */ @XStreamAlias("ChangeType") @XStreamConverter(value = XStreamCDataConverter.class) protected String changeType; + /** + * The User id. + */ @XStreamAlias("UserID") @XStreamConverter(value = XStreamCDataConverter.class) protected String userID; + /** + * The Department. + */ @XStreamAlias("Department") @XStreamConverter(value = IntegerArrayConverter.class) protected Integer[] department; + /** + * The Main department. + */ @XStreamAlias("MainDepartment") @XStreamConverter(value = IntConverter.class) protected Integer mainDepartment; + /** + * The Is leader in dept. + */ @XStreamAlias("IsLeaderInDept") @XStreamConverter(value = IntegerArrayConverter.class) protected Integer[] isLeaderInDept; + /** + * The Mobile. + */ @XStreamAlias("Mobile") @XStreamConverter(value = XStreamCDataConverter.class) protected String mobile; + /** + * The Position. + */ @XStreamAlias("Position") @XStreamConverter(value = XStreamCDataConverter.class) protected String position; + /** + * The Gender. + */ @XStreamAlias("Gender") @XStreamConverter(value = IntConverter.class) protected Integer gender; + /** + * The Email. + */ @XStreamAlias("Email") @XStreamConverter(value = XStreamCDataConverter.class) protected String email; + /** + * The Status. + */ @XStreamAlias("Status") @XStreamConverter(value = XStreamCDataConverter.class) protected String status; + /** + * The Avatar. + */ @XStreamAlias("Avatar") @XStreamConverter(value = XStreamCDataConverter.class) protected String avatar; + /** + * The Alias. + */ @XStreamAlias("Alias") @XStreamConverter(value = XStreamCDataConverter.class) protected String alias; + /** + * The Telephone. + */ @XStreamAlias("Telephone") @XStreamConverter(value = XStreamCDataConverter.class) protected String telephone; + /** + * The Id. + */ @XStreamAlias("Id") @XStreamConverter(value = XStreamCDataConverter.class) protected String id; + /** + * The Name. + */ @XStreamAlias("Name") @XStreamConverter(value = XStreamCDataConverter.class) protected String name; + /** + * The Parent id. + */ @XStreamAlias("ParentId") @XStreamConverter(value = XStreamCDataConverter.class) protected String parentId; + /** + * The Order. + */ @XStreamAlias("Order") @XStreamConverter(value = IntConverter.class) protected Integer order; + /** + * The Tag id. + */ @XStreamAlias("TagId") @XStreamConverter(value = IntConverter.class) protected Integer tagId; + /** + * The Add user items. + */ @XStreamAlias("AddUserItems") @XStreamConverter(value = StringArrayConverter.class) protected String[] addUserItems; + /** + * The Del user items. + */ @XStreamAlias("DelUserItems") @XStreamConverter(value = StringArrayConverter.class) protected String[] delUserItems; + /** + * The Add party items. + */ @XStreamAlias("AddPartyItems") @XStreamConverter(value = IntegerArrayConverter.class) protected Integer[] addPartyItems; + /** + * The Del party items. + */ @XStreamAlias("DelPartyItems") @XStreamConverter(value = IntegerArrayConverter.class) protected Integer[] delPartyItems; - //ref: https://work.weixin.qq.com/api/doc/90001/90143/90585 + /** + * The Service corp id. + */ +//ref: https://work.weixin.qq.com/api/doc/90001/90143/90585 @XStreamAlias("ServiceCorpId") @XStreamConverter(value = XStreamCDataConverter.class) protected String serviceCorpId; + /** + * The Register code. + */ @XStreamAlias("RegisterCode") @XStreamConverter(value = XStreamCDataConverter.class) protected String registerCode; + /** + * The Contact sync. + */ @XStreamAlias("ContactSync") protected ContactSync contactSync; + /** + * The Auth user info. + */ @XStreamAlias("AuthUserInfo") protected AuthUserInfo authUserInfo; + /** + * The Template id. + */ @XStreamAlias("TemplateId") @XStreamConverter(value = XStreamCDataConverter.class) protected String templateId; + /** + * The Create time. + */ @XStreamAlias("CreateTime") protected Long createTime; + /** + * The To user name. + */ @XStreamAlias("ToUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String toUserName; + /** + * The From user name. + */ @XStreamAlias("FromUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String fromUserName; + /** + * The Msg type. + */ @XStreamAlias("MsgType") @XStreamConverter(value = XStreamCDataConverter.class) protected String msgType; + /** + * The Event. + */ @XStreamAlias("Event") @XStreamConverter(value = XStreamCDataConverter.class) protected String event; + /** + * The Batch job. + */ @XStreamAlias("BatchJob") protected BatchJob batchJob; + /** + * The External user id. + */ @XStreamAlias("ExternalUserID") @XStreamConverter(value = XStreamCDataConverter.class) protected String externalUserID; + /** + * The State. + */ @XStreamAlias("State") @XStreamConverter(value = XStreamCDataConverter.class) protected String state; + /** + * The Source. + */ @XStreamAlias("Source") @XStreamConverter(value = XStreamCDataConverter.class) protected String source; + /** + * The Fail reason. + */ @XStreamAlias("FailReason") @XStreamConverter(value = XStreamCDataConverter.class) protected String failReason; + /** + * The Chat id. + */ @XStreamAlias("ChatId") @XStreamConverter(value = XStreamCDataConverter.class) protected String chatId; + /** + * The Update detail. + */ @XStreamAlias("UpdateDetail") @XStreamConverter(value = XStreamCDataConverter.class) protected String updateDetail; + /** + * The Join scene. + */ @XStreamAlias("JoinScene") protected Integer joinScene; + /** + * The Quit scene. + */ @XStreamAlias("QuitScene") protected Integer quitScene; + /** + * The Mem change cnt. + */ @XStreamAlias("MemChangeCnt") protected Integer memChangeCnt; + /** + * The Tag type. + */ @XStreamAlias("TagType") @XStreamConverter(value = XStreamCDataConverter.class) protected String tagType; + /** + * The Welcome code. + */ @XStreamAlias("WelcomeCode") @XStreamConverter(value = XStreamCDataConverter.class) protected String welcomeCode; + /** + * The From user. + */ @XStreamAlias("FromUser") @XStreamConverter(value = XStreamCDataConverter.class) protected String fromUser; + /** + * The Content. + */ @XStreamAlias("Content") @XStreamConverter(value = XStreamCDataConverter.class) protected String content; + /** + * The Msg id. + */ @XStreamAlias("MsgId") protected String msgId; + /** + * The Agent id. + */ @XStreamAlias("AgentID") protected String agentID; + /** + * The Pic url. + */ @XStreamAlias("PicUrl") @XStreamConverter(value = XStreamCDataConverter.class) protected String picUrl; + /** + * The Media id. + */ @XStreamAlias("MediaId") @XStreamConverter(value = XStreamCDataConverter.class) protected String mediaId; @@ -334,92 +502,164 @@ public class WxCpTpXmlMessage implements Serializable { @XStreamAlias("NewOrderId") @XStreamConverter(value = XStreamCDataConverter.class) private String newOrderId; - + + /** + * The type Contact sync. + */ @Data @XStreamAlias("ContactSync") public static class ContactSync implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * The Access token. + */ @XStreamAlias("AccessToken") @XStreamConverter(value = XStreamCDataConverter.class) protected String accessToken; + /** + * The Expires in. + */ @XStreamAlias("ExpiresIn") protected Integer expiresIn; } + /** + * The type Auth user info. + */ @Data @XStreamAlias("AuthUserInfo") public static class AuthUserInfo implements Serializable { + /** + * The User id. + */ @XStreamAlias("UserId") @XStreamConverter(value = XStreamCDataConverter.class) protected String userId; } + /** + * The type Batch job. + */ @Data @XStreamAlias("BatchJob") public static class BatchJob implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * The Job id. + */ @XStreamAlias("JobId") @XStreamConverter(value = XStreamCDataConverter.class) protected String JobId; + /** + * The Job type. + */ @XStreamAlias("JobType") @XStreamConverter(value = XStreamCDataConverter.class) protected String jobType; + /** + * The Err code. + */ @XStreamAlias("ErrCode") @XStreamConverter(value = IntConverter.class) protected Integer errCode; + /** + * The Err msg. + */ @XStreamAlias("ErrMsg") @XStreamConverter(value = XStreamCDataConverter.class) protected String errMsg; } + /** + * The type Approval info. + */ @Data @XStreamAlias("ApprovalInfo") public static class ApprovalInfo implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * The Third no. + */ @XStreamAlias("ThirdNo") protected String thirdNo; + /** + * The Open sp name. + */ @XStreamAlias("OpenSpName") protected String openSpName; + /** + * The Open template id. + */ @XStreamAlias("OpenTemplateId") protected String openTemplateId; + /** + * The Open sp status. + */ @XStreamAlias("OpenSpStatus") protected Integer openSpStatus; + /** + * The Apply time. + */ @XStreamAlias("ApplyTime") protected Long applyTime; + /** + * The Apply user name. + */ @XStreamAlias("ApplyUserName") protected String applyUserName; + /** + * The Apply user id. + */ @XStreamAlias("ApplyUserId") protected String applyUserId; + /** + * The Apply user party. + */ @XStreamAlias("ApplyUserParty") protected String applyUserParty; + /** + * The Apply user image. + */ @XStreamAlias("ApplyUserImage") protected String applyUserImage; + /** + * The Approval nodes. + */ @XStreamAlias("ApprovalNodes") protected List approvalNodes; + /** + * The Notify nodes. + */ @XStreamAlias("NotifyNodes") protected List notifyNodes; + /** + * The Approverstep. + */ @XStreamAlias("approverstep") protected Integer approverstep; - //自建/第三方应用调用审批流程引擎,状态通知 + /** + * The type Approval node. + */ +//自建/第三方应用调用审批流程引擎,状态通知 //ref: https://work.weixin.qq.com/api/doc/90001/90143/90376#审批状态通知事件 //1.自建/第三方应用调用审批流程引擎发起申请之后,审批状态发生变化时 //2.自建/第三方应用调用审批流程引擎发起申请之后,在“审批中”状态,有任意审批人进行审批操作时 @@ -428,53 +668,104 @@ public static class ApprovalInfo implements Serializable { public static class ApprovalNode implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * The Node status. + */ @XStreamAlias("NodeStatus") protected Integer nodeStatus; + /** + * The Node attr. + */ @XStreamAlias("NodeAttr") protected Integer nodeAttr; + /** + * The Node type. + */ @XStreamAlias("NodeType") protected Integer nodeType; + /** + * The Items. + */ @XStreamAlias("Items") protected List items; + /** + * The type Item. + */ @Data @XStreamAlias("Item") public static class Item implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * The Item name. + */ @XStreamAlias("ItemName") protected String itemName; + /** + * The Item user id. + */ @XStreamAlias("ItemUserId") protected String itemUserId; + /** + * The Item image. + */ @XStreamAlias("ItemImage") protected String itemImage; + /** + * The Item status. + */ @XStreamAlias("ItemStatus") protected Integer itemStatus; + /** + * The Item speech. + */ @XStreamAlias("ItemSpeech") protected String itemSpeech; + /** + * The Item op time. + */ @XStreamAlias("ItemOpTime") protected Long itemOpTime; } } + /** + * The type Notify node. + */ @Data @XStreamAlias("NotifyNode") public static class NotifyNode implements Serializable { private static final long serialVersionUID = 6031833682211475786L; + /** + * The Item name. + */ @XStreamAlias("ItemName") protected String itemName; + /** + * The Item user id. + */ @XStreamAlias("ItemUserId") protected String itemUserId; + /** + * The Item image. + */ @XStreamAlias("ItemImage") protected String itemImage; } } + /** + * From xml wx cp tp xml message. + * + * @param xml the xml + * @return the wx cp tp xml message + */ public static WxCpTpXmlMessage fromXml(String xml) { //修改微信变态的消息内容格式,方便解析 //xml = xml.replace("", ""); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java index 33d1375b12..bcb24f8fe7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlApprovalInfo.java @@ -11,10 +11,10 @@ /** * 审批信息 - * + *

* 审批申请状态变化回调通知 * https://developer.work.weixin.qq.com/document/path/91815 - * + *

* 自建应用审批状态变化通知回调 * https://developer.work.weixin.qq.com/document/path/90269 * @@ -447,7 +447,7 @@ public static class Comment implements Serializable { /** * 备注意见附件,值是附件media_id */ - @XStreamImplicit(itemFieldName="Attach") + @XStreamImplicit(itemFieldName = "Attach") private List attach; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java index 6a81a7b50c..51e395ab13 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlMessage.java @@ -287,6 +287,7 @@ public class WxCpXmlMessage implements Serializable { /** * 企业邮箱;代开发自建应用不返回该字段。 * ISSUE#2584 + * * @see Link */ @XStreamAlias("BizMail") @@ -485,10 +486,10 @@ public class WxCpXmlMessage implements Serializable { /** * 审批消息 - * + *

* 审批申请状态变化回调通知 * https://developer.work.weixin.qq.com/document/path/91815 - * + *

* 自建应用审批状态变化通知回调 * https://developer.work.weixin.qq.com/document/path/90269 */ @@ -496,6 +497,12 @@ public class WxCpXmlMessage implements Serializable { private WxCpXmlApprovalInfo approvalInfo = new WxCpXmlApprovalInfo(); + /** + * From xml wx cp xml message. + * + * @param xml the xml + * @return the wx cp xml message + */ protected static WxCpXmlMessage fromXml(String xml) { //修改微信变态的消息内容格式,方便解析 xml = xml.replace("", ""); @@ -504,6 +511,13 @@ protected static WxCpXmlMessage fromXml(String xml) { return xmlMessage; } + /** + * From xml wx cp xml message. + * + * @param xml the xml + * @param agentId the agent id + * @return the wx cp xml message + */ public static WxCpXmlMessage fromXml(String xml, String agentId) { //修改微信变态的消息内容格式,方便解析 xml = xml.replace("", ""); @@ -512,12 +526,25 @@ public static WxCpXmlMessage fromXml(String xml, String agentId) { return xmlMessage; } + /** + * From xml wx cp xml message. + * + * @param is the is + * @return the wx cp xml message + */ protected static WxCpXmlMessage fromXml(InputStream is) { return XStreamTransformer.fromXml(WxCpXmlMessage.class, is); } /** * 从加密字符串转换. + * + * @param encryptedXml the encrypted xml + * @param wxCpConfigStorage the wx cp config storage + * @param timestamp the timestamp + * @param nonce the nonce + * @param msgSignature the msg signature + * @return the wx cp xml message */ public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigStorage wxCpConfigStorage, String timestamp, String nonce, String msgSignature) { @@ -533,10 +560,21 @@ public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigSto } + /** + * From encrypted xml wx cp xml message. + * + * @param is the is + * @param wxCpConfigStorage the wx cp config storage + * @param timestamp the timestamp + * @param nonce the nonce + * @param msgSignature the msg signature + * @return the wx cp xml message + */ public static WxCpXmlMessage fromEncryptedXml(InputStream is, WxCpConfigStorage wxCpConfigStorage, String timestamp, String nonce, String msgSignature) { try { - return fromEncryptedXml(IOUtils.toString(is, StandardCharsets.UTF_8), wxCpConfigStorage, timestamp, nonce, msgSignature); + return fromEncryptedXml(IOUtils.toString(is, StandardCharsets.UTF_8), wxCpConfigStorage, timestamp, nonce, + msgSignature); } catch (IOException e) { throw new WxRuntimeException(e); } @@ -547,6 +585,9 @@ public String toString() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Scan code info. + */ @Data @XStreamAlias("ScanCodeInfo") public static class ScanCodeInfo implements Serializable { @@ -567,13 +608,22 @@ public static class ScanCodeInfo implements Serializable { private String scanResult; } + /** + * The type Ext attr. + */ @Data public static class ExtAttr implements Serializable { private static final long serialVersionUID = -3418685294606228837L; + /** + * The Items. + */ @XStreamImplicit(itemFieldName = "Item") protected final List items = new ArrayList<>(); + /** + * The type Item. + */ @XStreamAlias("Item") @Data public static class Item implements Serializable { @@ -589,17 +639,26 @@ public static class Item implements Serializable { } } + /** + * The type Send pics info. + */ @Data @XStreamAlias("SendPicsInfo") public static class SendPicsInfo implements Serializable { private static final long serialVersionUID = -6549728838848064881L; + /** + * The Pic list. + */ @XStreamAlias("PicList") protected final List picList = new ArrayList<>(); @XStreamAlias("Count") private Long count; + /** + * The type Item. + */ @XStreamAlias("item") @Data public static class Item implements Serializable { @@ -611,6 +670,9 @@ public static class Item implements Serializable { } } + /** + * The type Send location info. + */ @Data @XStreamAlias("SendLocationInfo") public static class SendLocationInfo implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java index 2dccf0b45d..9a8352244d 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutEventMessage.java @@ -8,9 +8,10 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; /** + * The type Wx cp xml out event message. + * * @author eYoung - * @description: - * created on create at 2021/12/3 16:36 + * @description: created on create at 2021/12/3 16:36 */ @XStreamAlias("xml") @Data @@ -77,6 +78,9 @@ public class WxCpXmlOutEventMessage extends WxCpXmlOutMessage { @XStreamConverter(value = XStreamCDataConverter.class) private String id; + /** + * Instantiates a new Wx cp xml out event message. + */ public WxCpXmlOutEventMessage() { this.msgType = WxConsts.XmlMsgType.EVENT; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutImageMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutImageMessage.java index 99792a2bfe..c3f4532009 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutImageMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutImageMessage.java @@ -7,6 +7,9 @@ import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter; +/** + * The type Wx cp xml out image message. + */ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) @@ -17,6 +20,9 @@ public class WxCpXmlOutImageMessage extends WxCpXmlOutMessage { @XStreamConverter(value = XStreamMediaIdConverter.class) private String mediaId; + /** + * Instantiates a new Wx cp xml out image message. + */ public WxCpXmlOutImageMessage() { this.msgType = WxConsts.XmlMsgType.IMAGE; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java index 89c29e25ce..b8b5a67b87 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutMessage.java @@ -22,23 +22,37 @@ public abstract class WxCpXmlOutMessage implements Serializable { private static final long serialVersionUID = 1418629839964153110L; + /** + * The To user name. + */ @XStreamAlias("ToUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String toUserName; + /** + * The From user name. + */ @XStreamAlias("FromUserName") @XStreamConverter(value = XStreamCDataConverter.class) protected String fromUserName; + /** + * The Create time. + */ @XStreamAlias("CreateTime") protected Long createTime; + /** + * The Msg type. + */ @XStreamAlias("MsgType") @XStreamConverter(value = XStreamCDataConverter.class) protected String msgType; /** * 获得文本消息builder. + * + * @return the text builder */ public static TextBuilder TEXT() { return new TextBuilder(); @@ -46,6 +60,8 @@ public static TextBuilder TEXT() { /** * 获得图片消息builder. + * + * @return the image builder */ public static ImageBuilder IMAGE() { return new ImageBuilder(); @@ -53,6 +69,8 @@ public static ImageBuilder IMAGE() { /** * 获得语音消息builder. + * + * @return the voice builder */ public static VoiceBuilder VOICE() { return new VoiceBuilder(); @@ -60,6 +78,8 @@ public static VoiceBuilder VOICE() { /** * 获得视频消息builder. + * + * @return the video builder */ public static VideoBuilder VIDEO() { return new VideoBuilder(); @@ -67,6 +87,8 @@ public static VideoBuilder VIDEO() { /** * 获得图文消息builder. + * + * @return the news builder */ public static NewsBuilder NEWS() { return new NewsBuilder(); @@ -74,6 +96,8 @@ public static NewsBuilder NEWS() { /** * 获得任务卡片消息builder. + * + * @return the task card builder */ public static TaskCardBuilder TASK_CARD() { return new TaskCardBuilder(); @@ -81,6 +105,8 @@ public static TaskCardBuilder TASK_CARD() { /** * 获得任务卡片消息builder. + * + * @return the update button builder */ public static UpdateButtonBuilder UPDATE_BUTTON() { return new UpdateButtonBuilder(); @@ -88,17 +114,27 @@ public static UpdateButtonBuilder UPDATE_BUTTON() { /** * 获得事件消息builder. + * + * @return the event builder */ public static EventBuilder EVENT() { return new EventBuilder(); } + /** + * To xml string. + * + * @return the string + */ protected String toXml() { return XStreamTransformer.toXml((Class) this.getClass(), this); } /** * 转换成加密的xml格式. + * + * @param wxCpConfigStorage the wx cp config storage + * @return the string */ public String toEncryptedXml(WxCpConfigStorage wxCpConfigStorage) { String plainXml = toXml(); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutNewsMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutNewsMessage.java index 7b13ccfca2..f77e5d6d53 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutNewsMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutNewsMessage.java @@ -11,28 +11,48 @@ import java.util.ArrayList; import java.util.List; +/** + * The type Wx cp xml out news message. + */ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = true) public class WxCpXmlOutNewsMessage extends WxCpXmlOutMessage { private static final long serialVersionUID = -5796178637883178826L; + /** + * The Articles. + */ @XStreamAlias("Articles") protected final List articles = new ArrayList<>(); + /** + * The Article count. + */ @XStreamAlias("ArticleCount") protected int articleCount; + /** + * Instantiates a new Wx cp xml out news message. + */ public WxCpXmlOutNewsMessage() { this.msgType = WxConsts.XmlMsgType.NEWS; } + /** + * Add article. + * + * @param item the item + */ public void addArticle(Item item) { this.articles.add(item); this.articleCount = this.articles.size(); } + /** + * The type Item. + */ @XStreamAlias("item") @Data public static class Item implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTaskCardMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTaskCardMessage.java index 63816f7e4c..d5042780fa 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTaskCardMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTaskCardMessage.java @@ -7,6 +7,9 @@ import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.util.xml.XStreamReplaceNameConverter; +/** + * The type Wx cp xml out task card message. + */ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) @@ -17,6 +20,9 @@ public class WxCpXmlOutTaskCardMessage extends WxCpXmlOutMessage { @XStreamConverter(value = XStreamReplaceNameConverter.class) private String replaceName; + /** + * Instantiates a new Wx cp xml out task card message. + */ public WxCpXmlOutTaskCardMessage() { this.msgType = WxConsts.XmlMsgType.UPDATE_TASKCARD; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTextMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTextMessage.java index dfae8fef49..0adda399fe 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTextMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutTextMessage.java @@ -7,6 +7,9 @@ import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; +/** + * The type Wx cp xml out text message. + */ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) @@ -17,6 +20,9 @@ public class WxCpXmlOutTextMessage extends WxCpXmlOutMessage { @XStreamConverter(value = XStreamCDataConverter.class) private String content; + /** + * Instantiates a new Wx cp xml out text message. + */ public WxCpXmlOutTextMessage() { this.msgType = WxConsts.XmlMsgType.TEXT; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java index 3072c89006..6c5ef835d0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutUpdateBtnMessage.java @@ -8,8 +8,9 @@ import me.chanjar.weixin.common.util.xml.XStreamReplaceNameConverter; /** - * @author nickname263 - * created on 2021-09-23 + * The type Wx cp xml out update btn message. + * + * @author nickname263 created on 2021-09-23 */ @XStreamAlias("xml") @Data @@ -20,6 +21,9 @@ public class WxCpXmlOutUpdateBtnMessage extends WxCpXmlOutMessage { @XStreamConverter(value = XStreamReplaceNameConverter.class) private String replaceName; + /** + * Instantiates a new Wx cp xml out update btn message. + */ public WxCpXmlOutUpdateBtnMessage() { this.msgType = WxConsts.XmlMsgType.UPDATE_BUTTON; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java index add435a874..8c78528a67 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVideoMessage.java @@ -9,43 +9,85 @@ import java.io.Serializable; +/** + * The type Wx cp xml out video message. + */ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) public class WxCpXmlOutVideoMessage extends WxCpXmlOutMessage { private static final long serialVersionUID = -8672761162722733622L; + /** + * The Video. + */ @XStreamAlias("Video") protected final Video video = new Video(); + /** + * Instantiates a new Wx cp xml out video message. + */ public WxCpXmlOutVideoMessage() { this.msgType = WxConsts.XmlMsgType.VIDEO; } + /** + * Gets media id. + * + * @return the media id + */ public String getMediaId() { return this.video.getMediaId(); } + /** + * Sets media id. + * + * @param mediaId the media id + */ public void setMediaId(String mediaId) { this.video.setMediaId(mediaId); } + /** + * Gets title. + * + * @return the title + */ public String getTitle() { return this.video.getTitle(); } + /** + * Sets title. + * + * @param title the title + */ public void setTitle(String title) { this.video.setTitle(title); } + /** + * Gets description. + * + * @return the description + */ public String getDescription() { return this.video.getDescription(); } + /** + * Sets description. + * + * @param description the description + */ public void setDescription(String description) { this.video.setDescription(description); } + /** + * The type Video. + */ @Data @XStreamAlias("Video") public static class Video implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVoiceMessage.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVoiceMessage.java index 7a2e0e49cf..ebfd80ab61 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVoiceMessage.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpXmlOutVoiceMessage.java @@ -7,6 +7,9 @@ import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter; +/** + * The type Wx cp xml out voice message. + */ @XStreamAlias("xml") @Data @EqualsAndHashCode(callSuper = false) @@ -17,6 +20,9 @@ public class WxCpXmlOutVoiceMessage extends WxCpXmlOutMessage { @XStreamConverter(value = XStreamMediaIdConverter.class) private String mediaId; + /** + * Instantiates a new Wx cp xml out voice message. + */ public WxCpXmlOutVoiceMessage() { this.msgType = WxConsts.XmlMsgType.VOICE; } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/BaseBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/BaseBuilder.java index ec312c6fb4..fcbc578a59 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/BaseBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/BaseBuilder.java @@ -4,39 +4,97 @@ import me.chanjar.weixin.cp.bean.message.WxCpMessage; import org.apache.commons.lang3.StringUtils; +/** + * The type Base builder. + * + * @param the type parameter + */ public class BaseBuilder { + /** + * The Msg type. + */ protected String msgType; + /** + * The Agent id. + */ protected Integer agentId; + /** + * The To user. + */ protected String toUser; + /** + * The To party. + */ protected String toParty; + /** + * The To tag. + */ protected String toTag; + /** + * The Safe. + */ protected String safe; + /** + * Agent id t. + * + * @param agentId the agent id + * @return the t + */ public T agentId(Integer agentId) { this.agentId = agentId; return (T) this; } + /** + * To user t. + * + * @param toUser the to user + * @return the t + */ public T toUser(String toUser) { this.toUser = toUser; return (T) this; } + /** + * To party t. + * + * @param toParty the to party + * @return the t + */ public T toParty(String toParty) { this.toParty = toParty; return (T) this; } + /** + * To tag t. + * + * @param toTag the to tag + * @return the t + */ public T toTag(String toTag) { this.toTag = toTag; return (T) this; } + /** + * Safe t. + * + * @param safe the safe + * @return the t + */ public T safe(String safe) { this.safe = safe; return (T) this; } + /** + * Build wx cp message. + * + * @return the wx cp message + */ public WxCpMessage build() { WxCpMessage m = new WxCpMessage(); m.setAgentId(this.agentId); diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/FileBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/FileBuilder.java index 6b36cf6cf2..2d9561486b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/FileBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/FileBuilder.java @@ -14,10 +14,19 @@ public final class FileBuilder extends BaseBuilder { private String mediaId; + /** + * Instantiates a new File builder. + */ public FileBuilder() { this.msgType = WxConsts.KefuMsgType.FILE; } + /** + * Media id file builder. + * + * @param media_id the media id + * @return the file builder + */ public FileBuilder mediaId(String media_id) { this.mediaId = media_id; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/ImageBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/ImageBuilder.java index 6735385c90..5f88b59656 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/ImageBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/ImageBuilder.java @@ -14,10 +14,19 @@ public final class ImageBuilder extends BaseBuilder { private String mediaId; + /** + * Instantiates a new Image builder. + */ public ImageBuilder() { this.msgType = WxConsts.KefuMsgType.IMAGE; } + /** + * Media id image builder. + * + * @param media_id the media id + * @return the image builder + */ public ImageBuilder mediaId(String media_id) { this.mediaId = media_id; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MarkdownMsgBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MarkdownMsgBuilder.java index 6b6af40ac5..ce06eafd25 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MarkdownMsgBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MarkdownMsgBuilder.java @@ -14,10 +14,19 @@ public class MarkdownMsgBuilder extends BaseBuilder { private String content; + /** + * Instantiates a new Markdown msg builder. + */ public MarkdownMsgBuilder() { this.msgType = WxConsts.KefuMsgType.MARKDOWN; } + /** + * Content markdown msg builder. + * + * @param content the content + * @return the markdown msg builder + */ public MarkdownMsgBuilder content(String content) { this.content = content; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MiniProgramNoticeMsgBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MiniProgramNoticeMsgBuilder.java index 928ea38634..b211972458 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MiniProgramNoticeMsgBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MiniProgramNoticeMsgBuilder.java @@ -21,35 +21,74 @@ public class MiniProgramNoticeMsgBuilder extends BaseBuilder contentItems; + /** + * Instantiates a new Mini program notice msg builder. + */ public MiniProgramNoticeMsgBuilder() { this.msgType = WxConsts.KefuMsgType.MINIPROGRAM_NOTICE; } + /** + * App id mini program notice msg builder. + * + * @param appId the app id + * @return the mini program notice msg builder + */ public MiniProgramNoticeMsgBuilder appId(String appId) { this.appId = appId; return this; } + /** + * Page mini program notice msg builder. + * + * @param page the page + * @return the mini program notice msg builder + */ public MiniProgramNoticeMsgBuilder page(String page) { this.page = page; return this; } + /** + * Title mini program notice msg builder. + * + * @param title the title + * @return the mini program notice msg builder + */ public MiniProgramNoticeMsgBuilder title(String title) { this.title = title; return this; } + /** + * Description mini program notice msg builder. + * + * @param description the description + * @return the mini program notice msg builder + */ public MiniProgramNoticeMsgBuilder description(String description) { this.description = description; return this; } + /** + * Content items mini program notice msg builder. + * + * @param contentItems the content items + * @return the mini program notice msg builder + */ public MiniProgramNoticeMsgBuilder contentItems(Map contentItems) { this.contentItems = contentItems; return this; } + /** + * Emphasis first item mini program notice msg builder. + * + * @param emphasisFirstItem the emphasis first item + * @return the mini program notice msg builder + */ public MiniProgramNoticeMsgBuilder emphasisFirstItem(Boolean emphasisFirstItem) { this.emphasisFirstItem = emphasisFirstItem; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java index 1d21089002..f9b31cdfc1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java @@ -22,20 +22,41 @@ public final class MpnewsBuilder extends BaseBuilder { private String mediaId; + /** + * Instantiates a new Mpnews builder. + */ public MpnewsBuilder() { this.msgType = WxConsts.KefuMsgType.MPNEWS; } + /** + * Media id mpnews builder. + * + * @param mediaId the media id + * @return the mpnews builder + */ public MpnewsBuilder mediaId(String mediaId) { this.mediaId = mediaId; return this; } + /** + * Add article mpnews builder. + * + * @param articles the articles + * @return the mpnews builder + */ public MpnewsBuilder addArticle(MpnewsArticle... articles) { Collections.addAll(this.articles, articles); return this; } + /** + * Articles mpnews builder. + * + * @param articles the articles + * @return the mpnews builder + */ public MpnewsBuilder articles(List articles) { this.articles = articles; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java index 4d12a51ce1..7d75f5f2bc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java @@ -21,15 +21,30 @@ public final class NewsBuilder extends BaseBuilder { private List articles = new ArrayList<>(); + /** + * Instantiates a new News builder. + */ public NewsBuilder() { this.msgType = WxConsts.KefuMsgType.NEWS; } + /** + * Add article news builder. + * + * @param articles the articles + * @return the news builder + */ public NewsBuilder addArticle(NewArticle... articles) { Collections.addAll(this.articles, articles); return this; } + /** + * Articles news builder. + * + * @param articles the articles + * @return the news builder + */ public NewsBuilder articles(List articles) { this.articles = articles; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java index a63505eeff..f23ada28d1 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java @@ -12,8 +12,7 @@ * 用法: WxCustomMessage m = WxCustomMessage.TASKCARD().title(...)....toUser(...).build(); * * - * @author Jeff - * created on 2019-05-16 + * @author Jeff created on 2019-05-16 */ public class TaskCardBuilder extends BaseBuilder { private String title; @@ -25,30 +24,63 @@ public class TaskCardBuilder extends BaseBuilder { */ private List buttons; + /** + * Instantiates a new Task card builder. + */ public TaskCardBuilder() { this.msgType = WxConsts.KefuMsgType.TASKCARD; } + /** + * Title task card builder. + * + * @param title the title + * @return the task card builder + */ public TaskCardBuilder title(String title) { this.title = title; return this; } + /** + * Description task card builder. + * + * @param description the description + * @return the task card builder + */ public TaskCardBuilder description(String description) { this.description = description; return this; } + /** + * Url task card builder. + * + * @param url the url + * @return the task card builder + */ public TaskCardBuilder url(String url) { this.url = url; return this; } + /** + * Task id task card builder. + * + * @param taskId the task id + * @return the task card builder + */ public TaskCardBuilder taskId(String taskId) { this.taskId = taskId; return this; } + /** + * Buttons task card builder. + * + * @param buttons the buttons + * @return the task card builder + */ public TaskCardBuilder buttons(List buttons) { this.buttons = buttons; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java index 174c23f291..674bdfa186 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java @@ -12,8 +12,7 @@ * 用法: WxCustomMessage m = WxCustomMessage.TEMPLATECARD().title(...)....toUser(...).build(); * * - * @author yzts - * created on 2019-05-16 + * @author yzts created on 2019-05-16 */ public class TemplateCardBuilder extends BaseBuilder { /** @@ -168,150 +167,327 @@ public class TemplateCardBuilder extends BaseBuilder { private QuoteArea quoteArea; + /** + * Instantiates a new Template card builder. + */ public TemplateCardBuilder() { this.msgType = WxConsts.KefuMsgType.TEMPLATE_CARD; } + /** + * Card type template card builder. + * + * @param cardType the card type + * @return the template card builder + */ public TemplateCardBuilder cardType(String cardType) { this.cardType = cardType; return this; } + /** + * Card image url template card builder. + * + * @param cardImageUrl the card image url + * @return the template card builder + */ public TemplateCardBuilder cardImageUrl(String cardImageUrl) { this.cardImageUrl = cardImageUrl; return this; } + /** + * Card image aspect ratio template card builder. + * + * @param cardImageAspectRatio the card image aspect ratio + * @return the template card builder + */ public TemplateCardBuilder cardImageAspectRatio(Float cardImageAspectRatio) { this.cardImageAspectRatio = cardImageAspectRatio; return this; } + /** + * Action menu desc template card builder. + * + * @param actionMenuDesc the action menu desc + * @return the template card builder + */ public TemplateCardBuilder actionMenuDesc(String actionMenuDesc) { this.actionMenuDesc = actionMenuDesc; return this; } + /** + * Action menu action list template card builder. + * + * @param actionMenuItemList the action menu item list + * @return the template card builder + */ public TemplateCardBuilder actionMenuActionList(List actionMenuItemList) { this.actionMenuActionList = actionMenuItemList; return this; } + /** + * Source icon url template card builder. + * + * @param sourceIconUrl the source icon url + * @return the template card builder + */ public TemplateCardBuilder sourceIconUrl(String sourceIconUrl) { this.sourceIconUrl = sourceIconUrl; return this; } + /** + * Source desc template card builder. + * + * @param sourceDesc the source desc + * @return the template card builder + */ public TemplateCardBuilder sourceDesc(String sourceDesc) { this.sourceDesc = sourceDesc; return this; } + /** + * Source desc color template card builder. + * + * @param sourceDescColor the source desc color + * @return the template card builder + */ public TemplateCardBuilder sourceDescColor(Integer sourceDescColor) { this.sourceDescColor = sourceDescColor; return this; } + /** + * Main title title template card builder. + * + * @param mainTitleTitle the main title title + * @return the template card builder + */ public TemplateCardBuilder mainTitleTitle(String mainTitleTitle) { this.mainTitleTitle = mainTitleTitle; return this; } + /** + * Main title desc template card builder. + * + * @param mainTitleDesc the main title desc + * @return the template card builder + */ public TemplateCardBuilder mainTitleDesc(String mainTitleDesc) { this.mainTitleDesc = mainTitleDesc; return this; } + /** + * Emphasis content title template card builder. + * + * @param emphasisContentTitle the emphasis content title + * @return the template card builder + */ public TemplateCardBuilder emphasisContentTitle(String emphasisContentTitle) { this.emphasisContentTitle = emphasisContentTitle; return this; } + /** + * Emphasis content desc template card builder. + * + * @param emphasisContentDesc the emphasis content desc + * @return the template card builder + */ public TemplateCardBuilder emphasisContentDesc(String emphasisContentDesc) { this.emphasisContentDesc = emphasisContentDesc; return this; } + /** + * Sub title text template card builder. + * + * @param subTitleText the sub title text + * @return the template card builder + */ public TemplateCardBuilder subTitleText(String subTitleText) { this.subTitleText = subTitleText; return this; } + /** + * Vertical contents template card builder. + * + * @param verticalContents the vertical contents + * @return the template card builder + */ public TemplateCardBuilder verticalContents(List verticalContents) { this.verticalContents = verticalContents; return this; } + /** + * Horizontal contents template card builder. + * + * @param horizontalContents the horizontal contents + * @return the template card builder + */ public TemplateCardBuilder horizontalContents(List horizontalContents) { this.horizontalContents = horizontalContents; return this; } + /** + * Jumps template card builder. + * + * @param jumps the jumps + * @return the template card builder + */ public TemplateCardBuilder jumps(List jumps) { this.jumps = jumps; return this; } + /** + * Card action type template card builder. + * + * @param cardActionType the card action type + * @return the template card builder + */ public TemplateCardBuilder cardActionType(Integer cardActionType) { this.cardActionType = cardActionType; return this; } + /** + * Card action url template card builder. + * + * @param cardActionUrl the card action url + * @return the template card builder + */ public TemplateCardBuilder cardActionUrl(String cardActionUrl) { this.cardActionUrl = cardActionUrl; return this; } + /** + * Card action appid template card builder. + * + * @param cardActionAppid the card action appid + * @return the template card builder + */ public TemplateCardBuilder cardActionAppid(String cardActionAppid) { this.cardActionAppid = cardActionAppid; return this; } + /** + * Card action pagepath template card builder. + * + * @param cardActionPagepath the card action pagepath + * @return the template card builder + */ public TemplateCardBuilder cardActionPagepath(String cardActionPagepath) { this.cardActionPagepath = cardActionPagepath; return this; } + /** + * Task id template card builder. + * + * @param taskId the task id + * @return the template card builder + */ public TemplateCardBuilder taskId(String taskId) { this.taskId = taskId; return this; } + /** + * Buttons template card builder. + * + * @param buttons the buttons + * @return the template card builder + */ public TemplateCardBuilder buttons(List buttons) { this.buttons = buttons; return this; } + /** + * Checkbox question key template card builder. + * + * @param checkboxQuestionKey the checkbox question key + * @return the template card builder + */ public TemplateCardBuilder checkboxQuestionKey(String checkboxQuestionKey) { this.checkboxQuestionKey = checkboxQuestionKey; return this; } + /** + * Checkbox mode template card builder. + * + * @param checkboxMode the checkbox mode + * @return the template card builder + */ public TemplateCardBuilder checkboxMode(Integer checkboxMode) { this.checkboxMode = checkboxMode; return this; } + /** + * Options template card builder. + * + * @param options the options + * @return the template card builder + */ public TemplateCardBuilder options(List options) { this.options = options; return this; } + /** + * Submit button text template card builder. + * + * @param submitButtonText the submit button text + * @return the template card builder + */ public TemplateCardBuilder submitButtonText(String submitButtonText) { this.submitButtonText = submitButtonText; return this; } + /** + * Submit button key template card builder. + * + * @param submitButtonKey the submit button key + * @return the template card builder + */ public TemplateCardBuilder submitButtonKey(String submitButtonKey) { this.submitButtonKey = submitButtonKey; return this; } + /** + * Selects template card builder. + * + * @param selects the selects + * @return the template card builder + */ public TemplateCardBuilder selects(List selects) { this.selects = selects; return this; } + /** + * Quote area template card builder. + * + * @param quoteArea the quote area + * @return the template card builder + */ public TemplateCardBuilder quoteArea(QuoteArea quoteArea) { this.quoteArea = quoteArea; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextBuilder.java index e072b9a79d..40de567f53 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextBuilder.java @@ -14,10 +14,19 @@ public final class TextBuilder extends BaseBuilder { private String content; + /** + * Instantiates a new Text builder. + */ public TextBuilder() { this.msgType = WxConsts.KefuMsgType.TEXT; } + /** + * Content text builder. + * + * @param content the content + * @return the text builder + */ public TextBuilder content(String content) { this.content = content; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextCardBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextCardBuilder.java index 306187ee40..3f58c99546 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextCardBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextCardBuilder.java @@ -18,25 +18,52 @@ public class TextCardBuilder extends BaseBuilder { private String url; private String btnTxt; + /** + * Instantiates a new Text card builder. + */ public TextCardBuilder() { this.msgType = WxConsts.KefuMsgType.TEXTCARD; } + /** + * Title text card builder. + * + * @param title the title + * @return the text card builder + */ public TextCardBuilder title(String title) { this.title = title; return this; } + /** + * Description text card builder. + * + * @param description the description + * @return the text card builder + */ public TextCardBuilder description(String description) { this.description = description; return this; } + /** + * Url text card builder. + * + * @param url the url + * @return the text card builder + */ public TextCardBuilder url(String url) { this.url = url; return this; } + /** + * Btn txt text card builder. + * + * @param btnTxt the btn txt + * @return the text card builder + */ public TextCardBuilder btnTxt(String btnTxt) { this.btnTxt = btnTxt; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VideoBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VideoBuilder.java index 2c7fab5c8c..226e9dbe7a 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VideoBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VideoBuilder.java @@ -23,25 +23,52 @@ public final class VideoBuilder extends BaseBuilder { private String description; private String thumbMediaId; + /** + * Instantiates a new Video builder. + */ public VideoBuilder() { this.msgType = WxConsts.KefuMsgType.VIDEO; } + /** + * Media id video builder. + * + * @param mediaId the media id + * @return the video builder + */ public VideoBuilder mediaId(String mediaId) { this.mediaId = mediaId; return this; } + /** + * Title video builder. + * + * @param title the title + * @return the video builder + */ public VideoBuilder title(String title) { this.title = title; return this; } + /** + * Description video builder. + * + * @param description the description + * @return the video builder + */ public VideoBuilder description(String description) { this.description = description; return this; } + /** + * Thumb media id video builder. + * + * @param thumb_media_id the thumb media id + * @return the video builder + */ public VideoBuilder thumbMediaId(String thumb_media_id) { this.thumbMediaId = thumb_media_id; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VoiceBuilder.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VoiceBuilder.java index 0e0b9f8286..62308a6d43 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VoiceBuilder.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VoiceBuilder.java @@ -14,10 +14,19 @@ public final class VoiceBuilder extends BaseBuilder { private String mediaId; + /** + * Instantiates a new Voice builder. + */ public VoiceBuilder() { this.msgType = WxConsts.KefuMsgType.VOICE; } + /** + * Media id voice builder. + * + * @param media_id the media id + * @return the voice builder + */ public VoiceBuilder mediaId(String media_id) { this.mediaId = media_id; return this; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java index 43a36681ed..647bebbad8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpAgreeInfo.java @@ -27,6 +27,9 @@ public class WxCpAgreeInfo implements Serializable { @SerializedName("agreeinfo") private List agreeInfo; + /** + * The type Agree info. + */ @Getter @Setter public static class AgreeInfo implements Serializable { @@ -44,20 +47,42 @@ public static class AgreeInfo implements Serializable { @SerializedName("agree_status") private String agreeStatus; + /** + * From json agree info. + * + * @param json the json + * @return the agree info + */ public static AgreeInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, AgreeInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * From json wx cp agree info. + * + * @param json the json + * @return the wx cp agree info + */ public static WxCpAgreeInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpAgreeInfo.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java index aa40e97344..89f0219395 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatDatas.java @@ -12,8 +12,7 @@ /** * 聊天记录数据内容. * - * @author Wang_Wong - * created on 2022-01-17 + * @author Wang_Wong created on 2022-01-17 */ @Data public class WxCpChatDatas implements Serializable { @@ -31,6 +30,9 @@ public class WxCpChatDatas implements Serializable { @SerializedName("chatdata") private List chatData; + /** + * The type Wx cp chat data. + */ @Getter @Setter public static class WxCpChatData implements Serializable { @@ -51,20 +53,42 @@ public static class WxCpChatData implements Serializable { @SerializedName("encrypt_chat_msg") private String encryptChatMsg; + /** + * From json wx cp chat data. + * + * @param json the json + * @return the wx cp chat data + */ public static WxCpChatData fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpChatData.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * From json wx cp chat datas. + * + * @param json the json + * @return the wx cp chat datas + */ public static WxCpChatDatas fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpChatDatas.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java index 888f7f399c..05098e5e02 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpChatModel.java @@ -204,15 +204,29 @@ public class WxCpChatModel implements Serializable { @SerializedName("sphfeed") private SphFeed sphFeed; + /** + * From json wx cp chat model. + * + * @param json the json + * @return the wx cp chat model + */ public static WxCpChatModel fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpChatModel.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Text. + */ @Getter @Setter public static class Text implements Serializable { @@ -221,10 +235,21 @@ public static class Text implements Serializable { @SerializedName("content") private String content; + /** + * From json text. + * + * @param json the json + * @return the text + */ public static Text fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Text.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -232,6 +257,9 @@ public String toJson() { } + /** + * The type Image. + */ @Getter @Setter public static class Image implements Serializable { @@ -246,10 +274,21 @@ public static class Image implements Serializable { @SerializedName("filesize") private Long fileSize; + /** + * From json image. + * + * @param json the json + * @return the image + */ public static Image fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Image.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -257,6 +296,9 @@ public String toJson() { } + /** + * The type Revoke. + */ @Getter @Setter public static class Revoke implements Serializable { @@ -265,10 +307,21 @@ public static class Revoke implements Serializable { @SerializedName("pre_msgid") private String preMsgId; + /** + * From json revoke. + * + * @param json the json + * @return the revoke + */ public static Revoke fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Revoke.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -276,6 +329,9 @@ public String toJson() { } + /** + * The type Agree. + */ @Getter @Setter public static class Agree implements Serializable { @@ -290,10 +346,21 @@ public static class Agree implements Serializable { @SerializedName(value = "disagree_time") private Long disagreeTime; + /** + * From json agree. + * + * @param json the json + * @return the agree + */ public static Agree fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Agree.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -301,6 +368,9 @@ public String toJson() { } + /** + * The type Voice. + */ @Getter @Setter public static class Voice implements Serializable { @@ -318,10 +388,21 @@ public static class Voice implements Serializable { @SerializedName("play_length") private Long playLength; + /** + * From json voice. + * + * @param json the json + * @return the voice + */ public static Voice fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Voice.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -329,6 +410,9 @@ public String toJson() { } + /** + * The type Video. + */ @Getter @Setter public static class Video implements Serializable { @@ -346,10 +430,21 @@ public static class Video implements Serializable { @SerializedName("play_length") private Long playLength; + /** + * From json video. + * + * @param json the json + * @return the video + */ public static Video fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Video.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -357,6 +452,9 @@ public String toJson() { } + /** + * The type Card. + */ @Getter @Setter public static class Card implements Serializable { @@ -368,10 +466,21 @@ public static class Card implements Serializable { @SerializedName("userid") private String userId; + /** + * From json card. + * + * @param json the json + * @return the card + */ public static Card fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Card.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -379,6 +488,9 @@ public String toJson() { } + /** + * The type Location. + */ @Getter @Setter public static class Location implements Serializable { @@ -399,10 +511,21 @@ public static class Location implements Serializable { @SerializedName("zoom") private Integer zoom; + /** + * From json location. + * + * @param json the json + * @return the location + */ public static Location fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Location.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -410,6 +533,9 @@ public String toJson() { } + /** + * The type Emotion. + */ @Getter @Setter public static class Emotion implements Serializable { @@ -436,10 +562,21 @@ public static class Emotion implements Serializable { @SerializedName("sdkfileid") private String sdkFileId; + /** + * From json emotion. + * + * @param json the json + * @return the emotion + */ public static Emotion fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Emotion.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -447,6 +584,9 @@ public String toJson() { } + /** + * The type File. + */ @Getter @Setter public static class File implements Serializable { @@ -467,10 +607,21 @@ public static class File implements Serializable { @SerializedName("filesize") private Integer fileSize; + /** + * From json file. + * + * @param json the json + * @return the file + */ public static File fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, File.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -478,6 +629,9 @@ public String toJson() { } + /** + * The type Link. + */ @Getter @Setter public static class Link implements Serializable { @@ -495,10 +649,21 @@ public static class Link implements Serializable { @SerializedName("image_url") private String imageUrl; + /** + * From json link. + * + * @param json the json + * @return the link + */ public static Link fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Link.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -526,10 +691,21 @@ public static class Weapp implements Serializable { @SerializedName("displayname") private String displayName; + /** + * From json weapp. + * + * @param json the json + * @return the weapp + */ public static Weapp fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Weapp.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -551,10 +727,21 @@ public static class ChatRecord implements Serializable { @SerializedName("title") private String title; + /** + * From json chat record. + * + * @param json the json + * @return the chat record + */ public static ChatRecord fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, ChatRecord.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -562,6 +749,9 @@ public String toJson() { } + /** + * The type Chat record item. + */ @Getter @Setter public static class ChatRecordItem implements Serializable { @@ -579,10 +769,21 @@ public static class ChatRecordItem implements Serializable { @SerializedName("from_chatroom") private Boolean fromChatRoom; + /** + * From json chat record item. + * + * @param json the json + * @return the chat record item + */ public static ChatRecordItem fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, ChatRecordItem.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -613,10 +814,21 @@ public static class Collect implements Serializable { @SerializedName("details") private List

details; + /** + * From json collect. + * + * @param json the json + * @return the collect + */ public static Collect fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Collect.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -624,6 +836,9 @@ public String toJson() { } + /** + * The type Details. + */ @Getter @Setter public static class Details implements Serializable { @@ -638,10 +853,21 @@ public static class Details implements Serializable { @SerializedName("type") private String type; + /** + * From json details. + * + * @param json the json + * @return the details + */ public static Details fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Details.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -669,10 +895,21 @@ public static class Redpacket implements Serializable { @SerializedName("wish") private String wish; + /** + * From json redpacket. + * + * @param json the json + * @return the redpacket + */ public static Redpacket fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Redpacket.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -712,10 +949,21 @@ public static class Meeting implements Serializable { @SerializedName("status") private Integer status; + /** + * From json meeting. + * + * @param json the json + * @return the meeting + */ public static Meeting fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Meeting.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -740,10 +988,21 @@ public static class Doc implements Serializable { @SerializedName("link_url") private String linkUrl; + /** + * From json doc. + * + * @param json the json + * @return the doc + */ public static Doc fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Doc.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -765,10 +1024,21 @@ public static class Info implements Serializable { @SerializedName("item") private List newsItem; + /** + * From json info. + * + * @param json the json + * @return the info + */ public static Info fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Info.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -796,10 +1066,21 @@ public static class NewsItem implements Serializable { @SerializedName("picurl") private String picUrl; + /** + * From json news item. + * + * @param json the json + * @return the news item + */ public static NewsItem fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, NewsItem.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -836,10 +1117,21 @@ public static class Calendar implements Serializable { @SerializedName("remarks") private String remarks; + /** + * From json calendar. + * + * @param json the json + * @return the calendar + */ public static Calendar fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Calendar.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -858,6 +1150,9 @@ public static class Mixed implements Serializable { @SerializedName("item") private List item; + /** + * The type Item. + */ @Getter @Setter public static class Item implements Serializable { @@ -894,14 +1189,28 @@ public static class MeetingVoiceCall implements Serializable { @SerializedName("sharescreendata") private List shareScreenData; + /** + * From json meeting voice call. + * + * @param json the json + * @return the meeting voice call + */ public static MeetingVoiceCall fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, MeetingVoiceCall.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Demo file data. + */ @Getter @Setter public static class DemoFileData implements Serializable { @@ -919,16 +1228,30 @@ public static class DemoFileData implements Serializable { @SerializedName("endtime") private Long endTime; + /** + * From json demo file data. + * + * @param json the json + * @return the demo file data + */ public static DemoFileData fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, DemoFileData.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } } + /** + * The type Share screen data. + */ @Getter @Setter public static class ShareScreenData implements Serializable { @@ -943,10 +1266,21 @@ public static class ShareScreenData implements Serializable { @SerializedName("endtime") private Long endTime; + /** + * From json share screen data. + * + * @param json the json + * @return the share screen data + */ public static ShareScreenData fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, ShareScreenData.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } @@ -973,10 +1307,21 @@ public static class SphFeed implements Serializable { @SerializedName("feed_desc") private String feedDesc; + /** + * From json sph feed. + * + * @param json the json + * @return the sph feed + */ public static SphFeed fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, SphFeed.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java index 65745cc188..7e53f0d086 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpCheckAgreeRequest.java @@ -11,8 +11,7 @@ /** * 获取会话同意情况请求参数. * - * @author Wang_Wong - * created on 2022-01-21 + * @author Wang_Wong created on 2022-01-21 */ @Data @Builder @@ -25,14 +24,28 @@ public class WxCpCheckAgreeRequest implements Serializable { @SerializedName("info") private List info; + /** + * From json wx cp check agree request. + * + * @param json the json + * @return the wx cp check agree request + */ public static WxCpCheckAgreeRequest fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpCheckAgreeRequest.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Info. + */ @Getter @Setter public static class Info implements Serializable { @@ -44,10 +57,21 @@ public static class Info implements Serializable { @SerializedName("exteranalopenid") private String exteranalOpenId; + /** + * From json info. + * + * @param json the json + * @return the info + */ public static Info fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Info.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java index 7b7be15c5f..384f29f756 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpFileItem.java @@ -28,10 +28,21 @@ public class WxCpFileItem implements Serializable { @SerializedName("filesize") private Long fileSize; + /** + * From json wx cp file item. + * + * @param json the json + * @return the wx cp file item + */ public static WxCpFileItem fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpFileItem.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java index 3a2656bfb0..f7b4ebdea7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/msgaudit/WxCpGroupChat.java @@ -33,6 +33,9 @@ public class WxCpGroupChat implements Serializable { private List members; + /** + * The type Member. + */ @Getter @Setter public class Member implements Serializable { @@ -44,16 +47,33 @@ public class Member implements Serializable { @SerializedName("jointime") private Long joinTime; + /** + * From json member. + * + * @param json the json + * @return the member + */ public Member fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, Member.class); } } + /** + * From json wx cp group chat. + * + * @param json the json + * @return the wx cp group chat + */ public static WxCpGroupChat fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGroupChat.class); } + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java index 0c498d566d..fd7e2e77df 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/SummaryInfo.java @@ -10,8 +10,7 @@ /** * 摘要行信息,用于定义某一行摘要显示的内容. * - * @author Binary Wang - * created on 2020-07-19 + * @author Binary Wang created on 2020-07-19 */ @Data @Accessors(chain = true) @@ -24,6 +23,9 @@ public class SummaryInfo implements Serializable { @SerializedName("summary_info") private List summaryInfoData; + /** + * The type Summary info data. + */ @Data @Accessors(chain = true) public static class SummaryInfoData implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java index 2714cc95f5..7d55ff878f 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java @@ -24,6 +24,9 @@ public class WxCpApprovalDetailResult implements Serializable { @SerializedName("info") private WxCpApprovalDetail info; + /** + * The type Wx cp approval detail. + */ @Data public static class WxCpApprovalDetail implements Serializable { private static final long serialVersionUID = 1353393306564207170L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java index b9c1235f10..70c781df43 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfo.java @@ -7,6 +7,8 @@ import java.util.List; /** + * The type Wx cp approval info. + * * @author element */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java index 73e6d81d2c..888266c87c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java @@ -25,10 +25,18 @@ public class WxCpApprovalInfoQueryFilter implements Serializable { private Object value; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxGsonBuilder.create().toJson(this); } + /** + * The enum Key. + */ public enum KEY { /** diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java index 86c3df17fa..6e88f70cb3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java @@ -9,8 +9,7 @@ /** * 企业微信打卡数据. * - * @author Element - * created on 2019-04-06 11:01 + * @author Element created on 2019-04-06 11:01 */ @Data public class WxCpCheckinData implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java index ef3ae1c08d..1a8d47c82e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinDayData.java @@ -20,6 +20,9 @@ public class WxCpCheckinDayData implements Serializable { @SerializedName("base_info") private BaseInfo baseInfo; + /** + * The type Base info. + */ @Data public class BaseInfo implements Serializable { @@ -67,6 +70,9 @@ public class BaseInfo implements Serializable { @SerializedName("rule_info") private RuleInfo ruleInfo; + /** + * The type Rule info. + */ @Data public class RuleInfo implements Serializable { private static final long serialVersionUID = -5512479811648914189L; @@ -100,6 +106,9 @@ public class RuleInfo implements Serializable { @SerializedName("checkintime") private List checkinTime; + /** + * The type Checkin time. + */ @Data public class CheckinTime implements Serializable { private static final long serialVersionUID = 1582835435812966332L; @@ -130,6 +139,9 @@ public class CheckinTime implements Serializable { @SerializedName("summary_info") private SummaryInfo summaryInfo; + /** + * The type Summary info. + */ @Data public class SummaryInfo implements Serializable { private static final long serialVersionUID = 3428576099259666595L; @@ -170,6 +182,9 @@ public class SummaryInfo implements Serializable { @SerializedName("holiday_infos") private List holidayInfos; + /** + * The type Holiday infos. + */ @Data public class HolidayInfos implements Serializable { private static final long serialVersionUID = -6671577072585561527L; @@ -185,6 +200,9 @@ public class HolidayInfos implements Serializable { @SerializedName("sp_title") private SpTitle spTitle; + /** + * The type Sp title. + */ @Data public class SpTitle implements Serializable { private static final long serialVersionUID = 2148815417115384998L; @@ -194,6 +212,9 @@ public class SpTitle implements Serializable { @SerializedName("data") private List data; + /** + * The type Data. + */ @lombok.Data public class Data implements Serializable { private static final long serialVersionUID = -1672692024530543180L; @@ -217,6 +238,9 @@ public class Data implements Serializable { @SerializedName("sp_description") private SpDescription spDescription; + /** + * The type Sp description. + */ @Data public class SpDescription implements Serializable { @@ -227,6 +251,9 @@ public class SpDescription implements Serializable { @SerializedName("data") private List data; + /** + * The type Data. + */ @lombok.Data public class Data implements Serializable { private static final long serialVersionUID = 3555479101375365805L; @@ -251,6 +278,9 @@ public class Data implements Serializable { @SerializedName("exception_infos") private List exceptionInfos; + /** + * The type Exception infos. + */ @Data public class ExceptionInfos implements Serializable { private static final long serialVersionUID = -5987438373762518299L; @@ -279,6 +309,9 @@ public class ExceptionInfos implements Serializable { @SerializedName("ot_info") private OtInfo otInfo; + /** + * The type Ot info. + */ @Data public class OtInfo implements Serializable { private static final long serialVersionUID = -6557759801572150175L; @@ -307,6 +340,9 @@ public class OtInfo implements Serializable { @SerializedName("sp_items") private List spItems; + /** + * The type Sp item. + */ @Data public class SpItem implements Serializable { private static final long serialVersionUID = 2423158264958352024L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java index 559c8e46a3..d0b98bf5db 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinMonthData.java @@ -11,7 +11,6 @@ * * @author longliveh */ - @Data public class WxCpCheckinMonthData implements Serializable { private static final long serialVersionUID = -3062328201807894236L; @@ -22,6 +21,9 @@ public class WxCpCheckinMonthData implements Serializable { @SerializedName("base_info") private BaseInfo baseInfo; + /** + * The type Base info. + */ @Data public static class BaseInfo implements Serializable { private static final long serialVersionUID = -5368331890851903885L; @@ -62,6 +64,9 @@ public static class BaseInfo implements Serializable { @SerializedName("rule_info") private RuleInfo ruleInfo; + /** + * The type Rule info. + */ @Data public static class RuleInfo implements Serializable { private static final long serialVersionUID = 9152263355916880710L; @@ -86,6 +91,9 @@ public static class RuleInfo implements Serializable { @SerializedName("summary_info") private SummaryInfo summaryInfo; + /** + * The type Summary info. + */ @Data public static class SummaryInfo implements Serializable { private static final long serialVersionUID = -1956770107240513983L; @@ -127,6 +135,9 @@ public static class SummaryInfo implements Serializable { @SerializedName("exception_infos") private List exceptionInfos; + /** + * The type Exception info. + */ @Data public static class ExceptionInfo implements Serializable { private static final long serialVersionUID = -4855850255704089359L; @@ -155,6 +166,9 @@ public static class ExceptionInfo implements Serializable { @SerializedName("sp_items") private List spItems; + /** + * The type Sp item. + */ @Data public static class SpItem implements Serializable { private static final long serialVersionUID = 224472626753597080L; @@ -202,6 +216,9 @@ public static class SpItem implements Serializable { @SerializedName("overwork_info") private OverWorkInfo overworkInfo; + /** + * The type Over work info. + */ @Data public static class OverWorkInfo implements Serializable { private static final long serialVersionUID = -9149524232645899305L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java index 6f49ec9ebe..db7a78c1ba 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinOption.java @@ -9,8 +9,7 @@ /** * 企业微信打卡规则. * - * @author Element - * created on 2019-04-06 13:22 + * @author Element created on 2019-04-06 13:22 */ @Data public class WxCpCheckinOption implements Serializable { @@ -21,6 +20,9 @@ public class WxCpCheckinOption implements Serializable { private Group group; + /** + * The type Checkin date. + */ @Data public static class CheckinDate implements Serializable { private static final long serialVersionUID = -5601722383347110974L; @@ -40,6 +42,9 @@ public static class CheckinDate implements Serializable { private Long limitAheadTime; } + /** + * The type Checkin time. + */ @Data public static class CheckinTime implements Serializable { private static final long serialVersionUID = -8579954143265336276L; @@ -57,6 +62,9 @@ public static class CheckinTime implements Serializable { private Long remindOffWorkSec; } + /** + * The type Group. + */ @Data public static class Group implements Serializable { @@ -103,6 +111,9 @@ public static class Group implements Serializable { } + /** + * The type Wifi mac info. + */ @Data public static class WifiMacInfo implements Serializable { private static final long serialVersionUID = -4657809185716627368L; @@ -114,6 +125,9 @@ public static class WifiMacInfo implements Serializable { private String mac; } + /** + * The type Loc info. + */ @Data public static class LocInfo implements Serializable { private static final long serialVersionUID = -618965280668099608L; @@ -130,6 +144,9 @@ public static class LocInfo implements Serializable { private Long distance; } + /** + * The type Spe day. + */ @Data public static class SpeDay implements Serializable { private static final long serialVersionUID = -3538818921359212748L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinSchedule.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinSchedule.java index 9517a64d4d..af310439fc 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinSchedule.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinSchedule.java @@ -45,6 +45,9 @@ public class WxCpCheckinSchedule implements Serializable { @SerializedName("schedule") private UserSchedule schedule; + /** + * The type User schedule. + */ @Data public class UserSchedule implements Serializable { private static final long serialVersionUID = 9138985222324576857L; @@ -54,6 +57,9 @@ public class UserSchedule implements Serializable { @SerializedName("scheduleList") private List scheduleList; + /** + * The type Schedule. + */ @Data public class Schedule implements Serializable { @@ -71,6 +77,9 @@ public class Schedule implements Serializable { @SerializedName("schedule_info") private ScheduleInfo scheduleInfo; + /** + * The type Schedule info. + */ @Data public class ScheduleInfo implements Serializable { private static final long serialVersionUID = 1317096341116256963L; @@ -93,6 +102,9 @@ public class ScheduleInfo implements Serializable { private List timeSection; + /** + * The type Time section. + */ @Data public class TimeSection implements Serializable { private static final long serialVersionUID = -3447467962751285748L; diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java index 514cb421fa..5339cc0ba5 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCorpConfInfo.java @@ -22,6 +22,9 @@ public class WxCpCorpConfInfo extends WxCpBaseResp implements Serializable { @SerializedName("lists") private List lists; + /** + * The type Corp conf. + */ @Getter @Setter public static class CorpConf implements Serializable { @@ -47,6 +50,9 @@ public static class CorpConf implements Serializable { } + /** + * The type Quota attr. + */ @Getter @Setter public static class QuotaAttr implements Serializable { @@ -63,6 +69,12 @@ public static class QuotaAttr implements Serializable { } + /** + * From json wx cp corp conf info. + * + * @param json the json + * @return the wx cp corp conf info + */ public static WxCpCorpConfInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpCorpConfInfo.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java index f9ab9dd155..98ac78d71c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCropCheckinOption.java @@ -179,6 +179,9 @@ public class WxCpCropCheckinOption implements Serializable { private Integer offWorkIntervalTime; + /** + * The type Checkin date. + */ @Data public static class CheckinDate implements Serializable { private static final long serialVersionUID = -8560643656775167406L; @@ -219,6 +222,9 @@ public static class CheckinDate implements Serializable { private Integer flexOffDutyTime; } + /** + * The type Checkin time. + */ @Data public static class CheckinTime implements Serializable { @@ -248,6 +254,9 @@ public static class CheckinTime implements Serializable { private Integer remindOffWorkSec; } + /** + * The type Spe workday. + */ @Data public static class SpeWorkday implements Serializable { @@ -271,6 +280,9 @@ public static class SpeWorkday implements Serializable { private List checkinTime; } + /** + * The type Spe off day. + */ @Data public static class SpeOffDay implements Serializable { private static final long serialVersionUID = 9214798931489490993L; @@ -287,6 +299,9 @@ public static class SpeOffDay implements Serializable { private String notes; } + /** + * The type Wifi mac info. + */ @Data public static class WifiMacInfo implements Serializable { @@ -305,6 +320,9 @@ public static class WifiMacInfo implements Serializable { private String wifimac; } + /** + * The type Loc info. + */ @Data public static class LocInfo implements Serializable { @@ -340,6 +358,9 @@ public static class LocInfo implements Serializable { private Integer distance; } + /** + * The type Range. + */ @Data public static class Range implements Serializable { @@ -366,6 +387,9 @@ public static class Range implements Serializable { } + /** + * The type Reporter info. + */ @Data public static class ReporterInfo implements Serializable { private static final long serialVersionUID = 1132450350458936772L; @@ -382,6 +406,9 @@ public static class ReporterInfo implements Serializable { private long updateTime; } + /** + * The type Reporter. + */ @Data public static class Reporter implements Serializable { @@ -391,6 +418,9 @@ public static class Reporter implements Serializable { private String userid; } + /** + * The type Ot info. + */ @Data public static class OtInfo implements Serializable { @@ -436,6 +466,9 @@ public static class OtInfo implements Serializable { private OtApplyInfo otapplyinfo; } + /** + * The type Ot check info. + */ @Data public static class OtCheckInfo implements Serializable { @@ -490,6 +523,9 @@ public static class OtCheckInfo implements Serializable { private OtNonworkingDayRestInfo otNonworkingdayRestinfo; } + /** + * The type Ot working day rest info. + */ @Data public static class OtWorkingDayRestInfo implements Serializable { @@ -514,6 +550,9 @@ public static class OtWorkingDayRestInfo implements Serializable { private CalOtTimeRule calOttimeRule; } + /** + * The type Fix time rule. + */ @Data public static class FixTimeRule implements Serializable { @@ -532,6 +571,9 @@ public static class FixTimeRule implements Serializable { private Integer fixTimeEndSec; } + /** + * The type Cal ot time rule. + */ @Data public static class CalOtTimeRule implements Serializable { @@ -545,6 +587,9 @@ public static class CalOtTimeRule implements Serializable { } + /** + * The type Item. + */ @Data public static class Item implements Serializable { @@ -563,6 +608,9 @@ public static class Item implements Serializable { private Integer restTime; } + /** + * The type Ot nonworking day rest info. + */ @Data public static class OtNonworkingDayRestInfo implements Serializable { @@ -587,6 +635,9 @@ public static class OtNonworkingDayRestInfo implements Serializable { private CalOtTimeRule calOttimeRule; } + /** + * The type Ot apply info. + */ @Data public static class OtApplyInfo implements Serializable { @@ -630,6 +681,9 @@ public static class OtApplyInfo implements Serializable { } + /** + * The type Schedule. + */ @Data public static class Schedule implements Serializable { @@ -710,6 +764,9 @@ public static class Schedule implements Serializable { } + /** + * The type Time section. + */ @Data public static class TimeSection implements Serializable { private static final long serialVersionUID = 7497252128339062724L; @@ -764,6 +821,9 @@ public static class TimeSection implements Serializable { } + /** + * The type Late rule. + */ @Data public static class LateRule implements Serializable { @@ -783,6 +843,9 @@ public static class LateRule implements Serializable { private List timerules; } + /** + * The type Time rule. + */ @Data public static class TimeRule implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java index 5ce27e8feb..f8c0956e2c 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpDialRecord.java @@ -9,8 +9,7 @@ /** * 公费电话拨打记录. * - * @author Element - * created on 2019-04-06 15:38 + * @author Element created on 2019-04-06 15:38 */ @Data public class WxCpDialRecord implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java index 8385ab0375..99d24b75ad 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpGetApprovalData.java @@ -31,6 +31,9 @@ public class WxCpGetApprovalData extends WxCpBaseResp implements Serializable { @SerializedName("data") private List data; + /** + * The type Approval data. + */ @Getter @Setter public static class ApprovalData implements Serializable { @@ -74,6 +77,9 @@ public static class ApprovalData implements Serializable { } + /** + * The type Expense. + */ @Getter @Setter public static class Expense implements Serializable { @@ -90,6 +96,9 @@ public static class Expense implements Serializable { } + /** + * The type Comm. + */ @Getter @Setter public static class Comm implements Serializable { @@ -100,6 +109,9 @@ public static class Comm implements Serializable { } + /** + * The type Item. + */ @Getter @Setter public static class Item implements Serializable { @@ -119,6 +131,12 @@ public static class Item implements Serializable { } + /** + * From json wx cp get approval data. + * + * @param json the json + * @return the wx cp get approval data + */ public static WxCpGetApprovalData fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpGetApprovalData.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java index d6f800cf92..503a873b37 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApplyEventRequest.java @@ -12,8 +12,7 @@ /** * 提交审批申请 请求对象类. * - * @author Binary Wang - * created on 2020-07-18 + * @author Binary Wang created on 2020-07-18 */ @Data @Accessors(chain = true) @@ -68,10 +67,18 @@ public class WxCpOaApplyEventRequest implements Serializable { @SerializedName("summary_list") private List summaryList; + /** + * To json string. + * + * @return the string + */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Approver. + */ @Data @Accessors(chain = true) public static class Approver implements Serializable { @@ -89,6 +96,9 @@ public static class Approver implements Serializable { private String[] userIds; } + /** + * The type Apply data. + */ @Data @Accessors(chain = true) public static class ApplyData implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java index e61a8566be..53229cd81e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java @@ -12,8 +12,7 @@ /** * 日程信息bean. * - * @author Binary Wang - * created on 2020-12-25 + * @author Binary Wang created on 2020-12-25 */ @Data @Accessors(chain = true) @@ -90,6 +89,9 @@ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } + /** + * The type Attendee. + */ @Data @Accessors(chain = true) public static class Attendee implements Serializable { @@ -112,6 +114,9 @@ public static class Attendee implements Serializable { private Integer responseStatus; } + /** + * The type Reminder. + */ @Data @Accessors(chain = true) public static class Reminder implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java index d34d233a30..13329659ec 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpSetCheckinSchedule.java @@ -32,6 +32,9 @@ public class WxCpSetCheckinSchedule implements Serializable { private Integer yearmonth; + /** + * The type Item. + */ @Data public static class Item implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpTemplateResult.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpTemplateResult.java index b8dd2dbe91..47c0448f88 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpTemplateResult.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpTemplateResult.java @@ -11,7 +11,7 @@ /** * 审批模板详情 * - * @author gyv12345@163.com + * @author gyv12345 @163.com */ @Data public class WxCpTemplateResult implements Serializable { diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java index 159fcd6943..4195045546 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpUserVacationQuota.java @@ -22,6 +22,9 @@ public class WxCpUserVacationQuota extends WxCpBaseResp implements Serializable @SerializedName("lists") private List lists; + /** + * The type Vacation quota. + */ @Getter @Setter public static class VacationQuota implements Serializable { @@ -44,6 +47,12 @@ public static class VacationQuota implements Serializable { } + /** + * From json wx cp user vacation quota. + * + * @param json the json + * @return the wx cp user vacation quota + */ public static WxCpUserVacationQuota fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpUserVacationQuota.class); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ApplyDataContent.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ApplyDataContent.java index f86ab966e3..3ce66ea361 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ApplyDataContent.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ApplyDataContent.java @@ -8,6 +8,8 @@ import java.util.List; /** + * The type Apply data content. + * * @author element */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentTitle.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentTitle.java index 24d5fafc2d..cfd0702a27 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentTitle.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentTitle.java @@ -5,6 +5,8 @@ import java.io.Serializable; /** + * The type Content title. + * * @author element */ @Data diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java index 1c97ce90e4..db1e4cedd0 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/applydata/ContentValue.java @@ -8,6 +8,8 @@ import java.util.List; /** + * The type Content value. + * * @author element */ @Data @@ -48,6 +50,9 @@ public class ContentValue implements Serializable { @SerializedName("punch_correction") private PunchCorrection punchCorrection; + /** + * The type Date. + */ @Data public static class Date implements Serializable { private static final long serialVersionUID = -6181554080062231138L; @@ -57,12 +62,18 @@ public static class Date implements Serializable { private String timestamp; } + /** + * The type Selector. + */ @Data public static class Selector implements Serializable { private static final long serialVersionUID = 7305458759126951773L; private String type; private List
### GitHub Stargazers over time diff --git a/pom.xml b/pom.xml index 623386a527..975da84f65 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ The Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt @@ -102,6 +102,11 @@ wangkaikate@163.com https://github.com/0katekate0 + + Bincent + hongbin.hsu@qq.com + https://gitee.com/bincent + @@ -139,12 +144,12 @@ com.github.binarywang qrcode-utils - 1.1 + 1.3 org.jodd jodd-http - 6.2.1 + 6.3.0 provided @@ -192,17 +197,17 @@ com.google.guava guava - 32.0.0-jre + 32.1.2-jre com.google.code.gson gson - 2.8.9 + 2.10.1 com.fasterxml.jackson.dataformat jackson-dataformat-xml - 2.13.0 + 2.15.2 @@ -287,7 +292,7 @@ org.redisson redisson - 3.12.0 + 3.23.3 true provided @@ -355,7 +360,7 @@ org.apache.maven.plugins maven-source-plugin - 2.2.1 + 3.1.0 attach-sources @@ -368,7 +373,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.9.1 + 3.5.0 attach-javadocs @@ -386,7 +391,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 + 3.1.0 sign-artifacts diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index 75a992adb5..f40d895f66 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -1025,7 +1025,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri * @param sideLength 要生成的二维码的边长,如果为空,则取默认值400 * @return 生成的二维码的字节数组 byte [ ] */ - byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength); + byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength) throws Exception; /** *
@@ -1054,7 +1054,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri
    * @param sideLength 要生成的二维码的边长,如果为空,则取默认值400
    * @return 生成的二维码的字节数组 byte [ ]
    */
-  byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength);
+  byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength) throws Exception;
 
   /**
    * 
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
index b92f032aa7..f08f014d3b 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
@@ -837,7 +837,7 @@ public Map getPayInfo(WxPayUnifiedOrderRequest request) throws W
   }
 
   @Override
-  public byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength) {
+  public byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength) throws Exception {
     String content = this.createScanPayQrcodeMode1(productId);
     return this.createQrcode(content, logoFile, sideLength);
   }
@@ -867,11 +867,11 @@ public String createScanPayQrcodeMode1(String productId) {
   }
 
   @Override
-  public byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength) {
+  public byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength) throws Exception {
     return this.createQrcode(codeUrl, logoFile, sideLength);
   }
 
-  private byte[] createQrcode(String content, File logoFile, Integer sideLength) {
+  private byte[] createQrcode(String content, File logoFile, Integer sideLength) throws Exception {
     if (sideLength == null || sideLength < 1) {
       return QrcodeUtils.createQrcode(content, logoFile);
     }

From 7bcb04a3832961a85d664386b94ed5dc2272e7d9 Mon Sep 17 00:00:00 2001
From: kevinzhwl 
Date: Sun, 3 Sep 2023 03:43:14 +0000
Subject: [PATCH 585/622] =?UTF-8?q?:new:=20#3122=20=E3=80=90=E5=B0=8F?=
 =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E5=B0=8F=E7=A8=8B?=
 =?UTF-8?q?=E5=BA=8F=E8=99=9A=E6=8B=9F=E6=94=AF=E4=BB=98=E7=9A=84=E7=9B=B8?=
 =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=BB=A5=E5=8F=8A=E4=BF=AE?=
 =?UTF-8?q?=E5=A4=8D=E7=9F=AD=E5=89=A7=E7=82=B9=E6=92=AD=E7=9B=B8=E5=85=B3?=
 =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AD=97=E6=AE=B5=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../wx/miniapp/api/WxMaService.java           |   6 +
 .../wx/miniapp/api/WxMaVodService.java        |  21 ++
 .../wx/miniapp/api/WxMaXPayService.java       |  37 +++
 .../miniapp/api/impl/BaseWxMaServiceImpl.java |   6 +-
 .../miniapp/api/impl/WxMaVodServiceImpl.java  | 102 ++++++++
 .../miniapp/api/impl/WxMaXPayServiceImpl.java | 238 ++++++++++++++++++
 .../bean/vod/WxMaVodApplyUploadRequest.java   |  33 +++
 .../bean/vod/WxMaVodApplyUploadResponse.java  |  25 ++
 .../bean/vod/WxMaVodCdnLogRequest.java        |  32 +++
 .../bean/vod/WxMaVodCdnLogResponse.java       |  40 +++
 .../bean/vod/WxMaVodCdnUsageRequest.java      |  30 +++
 .../bean/vod/WxMaVodCdnUsageResponse.java     |  36 +++
 .../bean/vod/WxMaVodCommitUploadRequest.java  |  39 +++
 .../bean/vod/WxMaVodCommitUploadResponse.java |  26 ++
 .../bean/vod/WxMaVodGetCdnLogRequest.java     |  32 +++
 .../bean/vod/WxMaVodGetCdnLogResponse.java    |  40 +++
 .../bean/vod/WxMaVodGetCdnUsageRequest.java   |  30 +++
 .../bean/vod/WxMaVodGetCdnUsageResponse.java  |  36 +++
 .../bean/vod/WxMaVodGetTaskResponse.java      |   2 +-
 .../bean/vod/WxMaVodPullUploadRequest.java    |  32 +++
 .../bean/vod/WxMaVodPullUploadResponse.java   |  25 ++
 .../vod/WxMaVodSingleFileUploadResult.java    |  27 ++
 .../bean/vod/WxMaVodUploadPartResult.java     |  27 ++
 .../WxMaXPayCancelCurrencyPayRequest.java     |  47 ++++
 .../WxMaXPayCancelCurrencyPayResponse.java    |  26 ++
 .../WxMaXPayCreateWithdrawOrderRequest.java   |  29 +++
 .../WxMaXPayCreateWithdrawOrderResponse.java  |  28 +++
 .../bean/xpay/WxMaXPayCurrencyPayRequest.java |  43 ++++
 .../xpay/WxMaXPayCurrencyPayResponse.java     |  31 +++
 .../xpay/WxMaXPayDownloadBillRequest.java     |  27 ++
 .../xpay/WxMaXPayDownloadBillResponse.java    |  25 ++
 .../WxMaXPayNotifyProvideGoodsRequest.java    |  30 +++
 .../xpay/WxMaXPayPresentCurrencyRequest.java  |  35 +++
 .../xpay/WxMaXPayPresentCurrencyResponse.java |  31 +++
 .../bean/xpay/WxMaXPayQueryOrderRequest.java  |  38 +++
 .../bean/xpay/WxMaXPayQueryOrderResponse.java |  65 +++++
 .../WxMaXPayQueryPublishGoodsRequest.java     |  24 ++
 .../WxMaXPayQueryPublishGoodsResponse.java    |  39 +++
 .../xpay/WxMaXPayQueryUploadGoodsRequest.java |  24 ++
 .../WxMaXPayQueryUploadGoodsResponse.java     |  47 ++++
 .../xpay/WxMaXPayQueryUserBalanceRequest.java |  29 +++
 .../WxMaXPayQueryUserBalanceResponse.java     |  39 +++
 .../WxMaXPayQueryWithdrawOrderRequest.java    |  27 ++
 .../WxMaXPayQueryWithdrawOrderResponse.java   |  39 +++
 .../bean/xpay/WxMaXPayRefundOrderRequest.java |  46 ++++
 .../xpay/WxMaXPayRefundOrderResponse.java     |  33 +++
 .../miniapp/bean/xpay/WxMaXPaySigParams.java  |  91 +++++++
 .../WxMaXPayStartPublishGoodsRequest.java     |  35 +++
 .../xpay/WxMaXPayStartUploadGoodsRequest.java |  43 ++++
 .../miniapp/constant/WxMaApiUrlConstants.java |  22 ++
 .../wx/miniapp/constant/WxMaConstants.java    |  85 +++++++
 .../ApacheVodSingleUploadRequestExecutor.java |  68 +++++
 .../ApacheVodUploadPartRequestExecutor.java   |  59 +++++
 ...oddHttpVodSingleUploadRequestExecutor.java |  57 +++++
 .../JoddHttpVodUploadPartRequestExecutor.java |  49 ++++
 .../OkHttpVodSingleUploadRequestExecutor.java |  56 +++++
 .../OkHttpVodUploadPartRequestExecutor.java   |  47 ++++
 .../VodSingleUploadRequestExecutor.java       |  59 +++++
 .../VodUploadPartRequestExecutor.java         |  49 ++++
 .../api/impl/WxMaVodServiceImplTest.java      |  42 ++++
 .../api/impl/WxMaXPayServiceImplTest.java     | 220 ++++++++++++++++
 61 files changed, 2704 insertions(+), 2 deletions(-)
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaXPayService.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImpl.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodSingleFileUploadResult.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodUploadPartResult.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayNotifyProvideGoodsRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderResponse.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPaySigParams.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartPublishGoodsRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartUploadGoodsRequest.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodSingleUploadRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodUploadPartRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodSingleUploadRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodUploadPartRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodSingleUploadRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodUploadPartRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodSingleUploadRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodUploadPartRequestExecutor.java
 create mode 100644 weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImplTest.java

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java
index 472d5299a1..0e4b6eb9ad 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java
@@ -548,4 +548,10 @@ public interface WxMaService extends WxService {
    * @return getWxMaVodService
    */
   WxMaVodService getWxMaVodService();
+  /**
+   * 小程序虚拟支付
+   *
+   * @return getWxMaXPayService
+   */
+  WxMaXPayService getWxMaXPayService();
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaVodService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaVodService.java
index 958b61efe3..547d280962 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaVodService.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaVodService.java
@@ -3,6 +3,7 @@
 import cn.binarywang.wx.miniapp.bean.vod.*;
 import me.chanjar.weixin.common.error.WxErrorException;
 
+import java.io.File;
 import java.util.List;
 
 public interface WxMaVodService {
@@ -20,4 +21,24 @@ public interface WxMaVodService {
 
   Integer auditDrama(WxMaVodAuditDramaRequest request) throws WxErrorException;
 
+  WxMaVodGetCdnUsageResponse getCdnUsageData(WxMaVodGetCdnUsageRequest request) throws WxErrorException;
+
+  WxMaVodGetCdnLogResponse getCdnLogs(WxMaVodGetCdnLogRequest request) throws WxErrorException;
+
+
+  WxMaVodPullUploadResponse pullUpload(WxMaVodPullUploadRequest request) throws WxErrorException;
+
+  WxMaVodGetTaskResponse getTask(WxMaVodGetTaskRequest request) throws WxErrorException;
+
+
+  WxMaVodSingleFileUploadResult uploadSingleFile(File file, String mediaName, String mediaType) throws WxErrorException;
+
+  WxMaVodSingleFileUploadResult uploadSingleFile(File file, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) throws WxErrorException;
+
+  WxMaVodApplyUploadResponse applyUpload(WxMaVodApplyUploadRequest request) throws WxErrorException;
+
+  WxMaVodCommitUploadResponse commitUpload(WxMaVodCommitUploadRequest request) throws WxErrorException;
+
+  WxMaVodUploadPartResult uploadPart(File file, String uploadId, Integer partNumber, Integer resourceType) throws WxErrorException;
+
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaXPayService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaXPayService.java
new file mode 100644
index 0000000000..a099cd6dd7
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaXPayService.java
@@ -0,0 +1,37 @@
+package cn.binarywang.wx.miniapp.api;
+
+import cn.binarywang.wx.miniapp.bean.xpay.*;
+import me.chanjar.weixin.common.error.WxErrorException;
+
+public interface WxMaXPayService {
+
+  WxMaXPayQueryUserBalanceResponse queryUserBalance(WxMaXPayQueryUserBalanceRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayCurrencyPayResponse currencyPay(WxMaXPayCurrencyPayRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayQueryOrderResponse queryOrder(WxMaXPayQueryOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayCancelCurrencyPayResponse cancelCurrencyPay(WxMaXPayCancelCurrencyPayRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  boolean notifyProvideGoods(WxMaXPayNotifyProvideGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayPresentCurrencyResponse presentCurrency(WxMaXPayPresentCurrencyRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+
+  WxMaXPayDownloadBillResponse downloadBill(WxMaXPayDownloadBillRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayRefundOrderResponse refundOrder(WxMaXPayRefundOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayCreateWithdrawOrderResponse createWithdrawOrder(WxMaXPayCreateWithdrawOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayQueryWithdrawOrderResponse queryWithdrawOrder(WxMaXPayQueryWithdrawOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  boolean startUploadGoods(WxMaXPayStartUploadGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayQueryUploadGoodsResponse queryUploadGoods(WxMaXPayQueryUploadGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  boolean startPublishGoods(WxMaXPayStartPublishGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+  WxMaXPayQueryPublishGoodsResponse queryPublishGoods(WxMaXPayQueryPublishGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException;
+
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
index f8e9ea07f7..fee8cfea97 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
@@ -90,6 +90,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH
 
   private final WxMaOpenApiService wxMaOpenApiService = new WxMaOpenApiServiceImpl(this);
   private final WxMaVodService wxMaVodService = new WxMaVodServiceImpl(this);
+  private final WxMaXPayService wxMaXPayService = new WxMaXPayServiceImpl(this);
 
   private Map configMap = new HashMap<>();
   private int retrySleepMillis = 1000;
@@ -669,5 +670,8 @@ public WxMaOpenApiService getWxMaOpenApiService() {
   public WxMaVodService getWxMaVodService() {
     return this.wxMaVodService;
   }
-
+  @Override
+  public WxMaXPayService getWxMaXPayService() {
+    return this.wxMaXPayService;
+  }
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImpl.java
index ae4618cf50..0a3eb74016 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImpl.java
@@ -4,6 +4,8 @@
 import cn.binarywang.wx.miniapp.api.WxMaVodService;
 import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
 import cn.binarywang.wx.miniapp.bean.vod.*;
+import cn.binarywang.wx.miniapp.executor.VodSingleUploadRequestExecutor;
+import cn.binarywang.wx.miniapp.executor.VodUploadPartRequestExecutor;
 import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
 import com.google.gson.JsonObject;
 import com.google.gson.reflect.TypeToken;
@@ -14,6 +16,7 @@
 import me.chanjar.weixin.common.error.WxErrorException;
 import me.chanjar.weixin.common.util.json.GsonParser;
 
+import java.io.File;
 import java.util.List;
 
 import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Vod.*;
@@ -124,4 +127,103 @@ public Integer auditDrama(WxMaVodAuditDramaRequest request) throws WxErrorExcept
     return getDetailResponse.getDramaId();
 
   }
+
+  @Override
+  public WxMaVodGetCdnUsageResponse getCdnUsageData(WxMaVodGetCdnUsageRequest request) throws WxErrorException {
+    String responseContent = this.service.post(GET_CDN_USAGE_DATA_URL, request.toJson());
+    WxMaVodGetCdnUsageResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaVodGetCdnUsageResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaVodGetCdnLogResponse getCdnLogs(WxMaVodGetCdnLogRequest request) throws WxErrorException {
+    String responseContent = this.service.post(GET_CDN_LOGS_URL, request.toJson());
+    WxMaVodGetCdnLogResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaVodGetCdnLogResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaVodGetTaskResponse getTask(WxMaVodGetTaskRequest request) throws WxErrorException {
+    String responseContent = this.service.post(GET_TASK_URL, request.toJson());
+    WxMaVodGetTaskResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaVodGetTaskResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaVodPullUploadResponse pullUpload(WxMaVodPullUploadRequest request) throws WxErrorException {
+    String responseContent = this.service.post(PULL_UPLOAD_URL, request.toJson());
+    WxMaVodPullUploadResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaVodPullUploadResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaVodSingleFileUploadResult uploadSingleFile(File file, String mediaName, String mediaType) throws WxErrorException {
+    WxMaVodSingleFileUploadResult result = this.service.execute(
+      VodSingleUploadRequestExecutor.create(this.service.getRequestHttp(), mediaName, mediaType, null, null, null), SINGLE_FILE_UPLOAD_URL, file);
+    return result;
+  }
+
+  @Override
+  public WxMaVodSingleFileUploadResult uploadSingleFile(File file, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) throws WxErrorException {
+    WxMaVodSingleFileUploadResult result = this.service.execute(
+      VodSingleUploadRequestExecutor.create(this.service.getRequestHttp(), mediaName, mediaType, coverType, coverData, sourceContext), SINGLE_FILE_UPLOAD_URL, file);
+    return result;
+  }
+
+  @Override
+  public WxMaVodApplyUploadResponse applyUpload(WxMaVodApplyUploadRequest request) throws WxErrorException {
+    String responseContent = this.service.post(APPLY_UPLOAD_URL, request.toJson());
+    WxMaVodApplyUploadResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaVodApplyUploadResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaVodCommitUploadResponse commitUpload(WxMaVodCommitUploadRequest request) throws WxErrorException {
+    String responseContent = this.service.post(COMMIT_UPLOAD_URL, request.toJson());
+    WxMaVodCommitUploadResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaVodCommitUploadResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaVodUploadPartResult uploadPart(File file, String uploadId, Integer partNumber, Integer resourceType) throws WxErrorException {
+    WxMaVodUploadPartResult result = this.service.execute(
+      VodUploadPartRequestExecutor.create(this.service.getRequestHttp(), uploadId, partNumber, resourceType), UPLOAD_PART_URL, file);
+    return result;
+  }
 }
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImpl.java
new file mode 100644
index 0000000000..5e33d1059f
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImpl.java
@@ -0,0 +1,238 @@
+package cn.binarywang.wx.miniapp.api.impl;
+
+import cn.binarywang.wx.miniapp.api.WxMaService;
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import cn.binarywang.wx.miniapp.api.WxMaXPayService;
+import cn.binarywang.wx.miniapp.bean.xpay.*;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import me.chanjar.weixin.common.enums.WxType;
+import me.chanjar.weixin.common.error.WxError;
+import me.chanjar.weixin.common.error.WxErrorException;
+
+import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.XPay.*;
+
+
+@RequiredArgsConstructor
+@Slf4j
+public class WxMaXPayServiceImpl implements WxMaXPayService {
+
+  private final WxMaService service;
+
+  @Override
+  public WxMaXPayQueryUserBalanceResponse queryUserBalance(WxMaXPayQueryUserBalanceRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithBoth(QUERY_USER_BALANCE_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayQueryUserBalanceResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayQueryUserBalanceResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayCurrencyPayResponse currencyPay(WxMaXPayCurrencyPayRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithBoth(CURRENCY_PAY_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayCurrencyPayResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayCurrencyPayResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayQueryOrderResponse queryOrder(WxMaXPayQueryOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(QUERY_ORDER_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayQueryOrderResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayQueryOrderResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayCancelCurrencyPayResponse cancelCurrencyPay(WxMaXPayCancelCurrencyPayRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithBoth(CANCEL_CURRENCY_PAY_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayCancelCurrencyPayResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayCancelCurrencyPayResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));
+    }
+    return getDetailResponse;
+  }
+
+  @Override
+  public boolean notifyProvideGoods(WxMaXPayNotifyProvideGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(NOTIFY_PROVIDE_GOODS_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaBaseResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaBaseResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return true;
+  }
+
+  @Override
+  public WxMaXPayPresentCurrencyResponse presentCurrency(WxMaXPayPresentCurrencyRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(PRESENT_CURRENCY_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayPresentCurrencyResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayPresentCurrencyResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayDownloadBillResponse downloadBill(WxMaXPayDownloadBillRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(DOWNLOAD_BILL_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayDownloadBillResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayDownloadBillResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayRefundOrderResponse refundOrder(WxMaXPayRefundOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(REFUND_ORDER_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayRefundOrderResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayRefundOrderResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayCreateWithdrawOrderResponse createWithdrawOrder(WxMaXPayCreateWithdrawOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(CREATE_WITHDRAW_ORDER_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayCreateWithdrawOrderResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayCreateWithdrawOrderResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public WxMaXPayQueryWithdrawOrderResponse queryWithdrawOrder(WxMaXPayQueryWithdrawOrderRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(QUERY_WITHDRAW_ORDER_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayQueryWithdrawOrderResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayQueryWithdrawOrderResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public boolean startUploadGoods(WxMaXPayStartUploadGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(START_UPLOAD_GOODS_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaBaseResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaBaseResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return true;
+  }
+
+  @Override
+  public WxMaXPayQueryUploadGoodsResponse queryUploadGoods(WxMaXPayQueryUploadGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(QUERY_UPLOAD_GOODS_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayQueryUploadGoodsResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayQueryUploadGoodsResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+
+  @Override
+  public boolean startPublishGoods(WxMaXPayStartPublishGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(START_PUBLISH_GOODS_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaBaseResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaBaseResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return true;
+  }
+
+  @Override
+  public WxMaXPayQueryPublishGoodsResponse queryPublishGoods(WxMaXPayQueryPublishGoodsRequest request, WxMaXPaySigParams sigParams) throws WxErrorException {
+    final String postBody = request.toJson();
+    final String uri = sigParams.signUriWithPay(QUERY_PUBLISH_GOODS_URL, postBody);
+    String responseContent = this.service.post(uri, postBody);
+    WxMaXPayQueryPublishGoodsResponse getDetailResponse = WxMaGsonBuilder.create()
+      .fromJson(responseContent, WxMaXPayQueryPublishGoodsResponse.class);
+
+    if (getDetailResponse.getErrcode() != 0) {
+      throw new WxErrorException(
+        new WxError(getDetailResponse.getErrcode(), getDetailResponse.getErrmsg()));
+    }
+
+    return getDetailResponse;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadRequest.java
new file mode 100644
index 0000000000..3e832666ca
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadRequest.java
@@ -0,0 +1,33 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodApplyUploadRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("media_name")
+  private String mediaName;
+  @SerializedName("media_type")
+  private String mediaType;
+  @SerializedName("cover_type")
+  private String coverType;
+
+  @SerializedName("source_context")
+  private String sourceContext;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadResponse.java
new file mode 100644
index 0000000000..fd7d625cd1
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodApplyUploadResponse.java
@@ -0,0 +1,25 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodApplyUploadResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("upload_id")
+  private String uploadId;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogRequest.java
new file mode 100644
index 0000000000..bb9bffa614
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogRequest.java
@@ -0,0 +1,32 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodCdnLogRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("offset")
+  private Integer offset;
+  @SerializedName("limit")
+  private Integer limit;
+  @SerializedName("start_time")
+  private Long startTime;
+  @SerializedName("end_time")
+  private Long endTime;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogResponse.java
new file mode 100644
index 0000000000..b6d758b8e4
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnLogResponse.java
@@ -0,0 +1,40 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxMaVodCdnLogResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = -7663757440028175135L;
+  @SerializedName("total_count")
+  private Integer totalCount;
+  @SerializedName("domestic_cdn_logs")
+  private List domesticCdnLogs;
+
+  @Data
+  public static class CdnLogInfo {
+    @SerializedName("date")
+    private Long date;
+    @SerializedName("name")
+    private String name;
+    @SerializedName("url")
+    private String url;
+    @SerializedName("start_time")
+    private Long startTime;
+    @SerializedName("end_time")
+    private Long endTime;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageRequest.java
new file mode 100644
index 0000000000..a462b78113
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageRequest.java
@@ -0,0 +1,30 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodCdnUsageRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("data_interval")
+  private Integer dataInterval;
+  @SerializedName("start_time")
+  private Long startTime;
+  @SerializedName("end_time")
+  private Long endTime;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageResponse.java
new file mode 100644
index 0000000000..9b89af59a4
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCdnUsageResponse.java
@@ -0,0 +1,36 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxMaVodCdnUsageResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = -7663757440028175135L;
+  @SerializedName("data_interval")
+  private Integer dataInterval;
+  @SerializedName("item_list")
+  private List itemList;
+
+  @Data
+  public static class DataItem {
+
+    @SerializedName("value")
+    private Long value;
+    @SerializedName("time")
+    private Long time;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadRequest.java
new file mode 100644
index 0000000000..a2be6fe095
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadRequest.java
@@ -0,0 +1,39 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodCommitUploadRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("upload_id")
+  private String uploadId;
+  @SerializedName("media_part_infos")
+  private List mediaPartInfos;
+  @SerializedName("cover_part_infos")
+  private List coverPartInfos;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+
+  @Data
+  public static class PartInfo {
+
+    @SerializedName("part_number")
+    private Integer partNumber;
+    @SerializedName("etag")
+    private String etag;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadResponse.java
new file mode 100644
index 0000000000..fd967844c6
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodCommitUploadResponse.java
@@ -0,0 +1,26 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodCommitUploadResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("media_id")
+  private Integer mediaId;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogRequest.java
new file mode 100644
index 0000000000..33acf43149
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogRequest.java
@@ -0,0 +1,32 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodGetCdnLogRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("offset")
+  private Integer offset;
+  @SerializedName("limit")
+  private Integer limit;
+  @SerializedName("start_time")
+  private Long startTime;
+  @SerializedName("end_time")
+  private Long endTime;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogResponse.java
new file mode 100644
index 0000000000..90dd22298d
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnLogResponse.java
@@ -0,0 +1,40 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxMaVodGetCdnLogResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = -7663757440028175135L;
+  @SerializedName("total_count")
+  private Integer totalCount;
+  @SerializedName("domestic_cdn_logs")
+  private List domesticCdnLogs;
+
+  @Data
+  public static class CdnLogInfo {
+    @SerializedName("date")
+    private Long date;
+    @SerializedName("name")
+    private String name;
+    @SerializedName("url")
+    private String url;
+    @SerializedName("start_time")
+    private Long startTime;
+    @SerializedName("end_time")
+    private Long endTime;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageRequest.java
new file mode 100644
index 0000000000..377f7c9b8b
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageRequest.java
@@ -0,0 +1,30 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodGetCdnUsageRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("data_interval")
+  private Integer dataInterval;
+  @SerializedName("start_time")
+  private Long startTime;
+  @SerializedName("end_time")
+  private Long endTime;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageResponse.java
new file mode 100644
index 0000000000..0789a8484d
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetCdnUsageResponse.java
@@ -0,0 +1,36 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class WxMaVodGetCdnUsageResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = -7663757440028175135L;
+  @SerializedName("data_interval")
+  private Integer dataInterval;
+  @SerializedName("item_list")
+  private List itemList;
+
+  @Data
+  public static class DataItem {
+
+    @SerializedName("value")
+    private Long value;
+    @SerializedName("time")
+    private Long time;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetTaskResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetTaskResponse.java
index b2cac0561d..bc75c8c107 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetTaskResponse.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodGetTaskResponse.java
@@ -37,7 +37,7 @@ public static class TaskInfo {
     @SerializedName("create_time")
     private Long createTime;
     @SerializedName("finish_time")
-    private Long finish_time;
+    private Long finishTime;
     @SerializedName("media_id")
     private Integer mediaId;
 
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadRequest.java
new file mode 100644
index 0000000000..7dcda5baa5
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadRequest.java
@@ -0,0 +1,32 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodPullUploadRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("cover_url")
+  private String coverUrl;
+  @SerializedName("media_url")
+  private String mediaUrl;
+  @SerializedName("media_name")
+  private String mediaName;
+
+  @SerializedName("source_context")
+  private String sourceContext;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadResponse.java
new file mode 100644
index 0000000000..7816354f14
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodPullUploadResponse.java
@@ -0,0 +1,25 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaVodPullUploadResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("task_id")
+  private Integer taskId;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodSingleFileUploadResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodSingleFileUploadResult.java
new file mode 100644
index 0000000000..ffbbd27691
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodSingleFileUploadResult.java
@@ -0,0 +1,27 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.common.util.json.WxGsonBuilder;
+
+import java.io.Serializable;
+
+
+@Data
+public class WxMaVodSingleFileUploadResult extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("media_id")
+  private Integer mediaId;
+
+  public static WxMaVodSingleFileUploadResult fromJson(String json) {
+    return WxGsonBuilder.create().fromJson(json, WxMaVodSingleFileUploadResult.class);
+  }
+
+  @Override
+  public String toString() {
+    return WxGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodUploadPartResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodUploadPartResult.java
new file mode 100644
index 0000000000..38c5da8104
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/vod/WxMaVodUploadPartResult.java
@@ -0,0 +1,27 @@
+package cn.binarywang.wx.miniapp.bean.vod;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import me.chanjar.weixin.common.util.json.WxGsonBuilder;
+
+import java.io.Serializable;
+
+
+@Data
+public class WxMaVodUploadPartResult extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("etag")
+  private String etag;
+
+  public static WxMaVodUploadPartResult fromJson(String json) {
+    return WxGsonBuilder.create().fromJson(json, WxMaVodUploadPartResult.class);
+  }
+
+  @Override
+  public String toString() {
+    return WxGsonBuilder.create().toJson(this);
+  }
+
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayRequest.java
new file mode 100644
index 0000000000..eb0a8e3d52
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayRequest.java
@@ -0,0 +1,47 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayCancelCurrencyPayRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("openid")
+  private String openid;
+  @SerializedName("env")
+  private Integer env;
+  @SerializedName("user_ip")
+  private String userIp;
+
+  /*
+   * 退款单的单号
+   */
+  @SerializedName("order_id")
+  private String orderId;
+  /*
+   * 代币支付时传的order_id
+   */
+  @SerializedName("pay_order_id")
+  private String payOrderId;
+  /*
+   * 退款金额
+   */
+  @SerializedName("amount")
+  private Long amount;
+  @SerializedName("device_type")
+  private Integer deviceType;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayResponse.java
new file mode 100644
index 0000000000..0c19f6bfb1
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCancelCurrencyPayResponse.java
@@ -0,0 +1,26 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayCancelCurrencyPayResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("order_id")
+  private String orderId;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderRequest.java
new file mode 100644
index 0000000000..7acab79417
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderRequest.java
@@ -0,0 +1,29 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayCreateWithdrawOrderRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  @SerializedName("withdraw_no")
+  private String withdrawNo;
+  @SerializedName("withdraw_amount")
+  private String withdrawAmount; //提现的金额,单位元,不传的情况下表示全额提现
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderResponse.java
new file mode 100644
index 0000000000..b174a7b2c0
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCreateWithdrawOrderResponse.java
@@ -0,0 +1,28 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayCreateWithdrawOrderResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("withdraw_no")
+  private String withdrawNo;
+  @SerializedName("wx_withdraw_no")
+  private String wxWithdrawNo;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayRequest.java
new file mode 100644
index 0000000000..32f8a018db
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayRequest.java
@@ -0,0 +1,43 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayCurrencyPayRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("openid")
+  private String openid;
+  @SerializedName("env")
+  private Integer env;
+  @SerializedName("user_ip")
+  private String userIp;
+
+  @SerializedName("amount")
+  private Long amount;
+
+  @SerializedName("order_id")
+  private String orderId;
+
+  @SerializedName("device_type")
+  private Integer deviceType;
+
+  @SerializedName("payitem")
+  private String payitem;//物品信息。记录到账户流水中。如:[{"productid":"物品id", "unit_price": 单价, "quantity": 数量}]
+
+  @SerializedName("remark")
+  private String remark;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayResponse.java
new file mode 100644
index 0000000000..4170f04125
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayCurrencyPayResponse.java
@@ -0,0 +1,31 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayCurrencyPayResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("balance")
+  private Long balance;
+
+  @SerializedName("used_present_amount")
+  private Long usedPresentAmount;
+  @SerializedName("order_id")
+  private String orderId;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillRequest.java
new file mode 100644
index 0000000000..995638fe22
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillRequest.java
@@ -0,0 +1,27 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayDownloadBillRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("begin_ds")
+  private Integer beginDs;
+  @SerializedName("end_ds")
+  private Integer endDs;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillResponse.java
new file mode 100644
index 0000000000..23f93b1bb3
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayDownloadBillResponse.java
@@ -0,0 +1,25 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayDownloadBillResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("url")
+  private String url;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayNotifyProvideGoodsRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayNotifyProvideGoodsRequest.java
new file mode 100644
index 0000000000..6afa4ad6fa
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayNotifyProvideGoodsRequest.java
@@ -0,0 +1,30 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayNotifyProvideGoodsRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  @SerializedName("order_id")
+  private String orderId;
+  @SerializedName("wx_order_id")
+  private String wxOrderId;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyRequest.java
new file mode 100644
index 0000000000..6081c12416
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyRequest.java
@@ -0,0 +1,35 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayPresentCurrencyRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("openid")
+  private String openid;
+  @SerializedName("env")
+  private Integer env;
+
+  @SerializedName("order_id")
+  private String orderId;
+
+  @SerializedName("device_type")
+  private Integer deviceType;
+
+  @SerializedName("amount")
+  private Long amount;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyResponse.java
new file mode 100644
index 0000000000..6c5838bbc6
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayPresentCurrencyResponse.java
@@ -0,0 +1,31 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayPresentCurrencyResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("balance")
+  private Long balance;
+
+  @SerializedName("present_balance")
+  private Long presentBalance;
+  @SerializedName("order_id")
+  private String orderId;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderRequest.java
new file mode 100644
index 0000000000..a042a2b2ee
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderRequest.java
@@ -0,0 +1,38 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryOrderRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("openid")
+  private String openid;
+
+  @SerializedName("env")
+  private Integer env;
+
+  /*
+   * 创建的订单号
+   */
+  @SerializedName("order_id")
+  private String orderId;
+  /*
+   * 微信内部单号(与order_id二选一)
+   */
+  @SerializedName("wx_order_id")
+  private String wxOrderId;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java
new file mode 100644
index 0000000000..a0edf409bd
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryOrderResponse.java
@@ -0,0 +1,65 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryOrderResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("order")
+  private OrderInfo order;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+
+  @Data
+  public static class OrderInfo {
+    @SerializedName("order_id")
+    private String orderId;
+    @SerializedName("create_time")
+    private Long createTime;
+    @SerializedName("update_time")
+    private Long updateTime;
+    @SerializedName("status")
+    private Integer status;
+    @SerializedName("biz_type")
+    private Integer bizType;
+    @SerializedName("order_fee")
+    private Long orderFee;
+    @SerializedName("coupon_fee")
+    private Long couponFee;
+    @SerializedName("paid_fee")
+    private Long paidFee;
+    @SerializedName("order_type")
+    private Integer orderType;
+    @SerializedName("refund_fee")
+    private Long refundFee;
+    @SerializedName("paid_time")
+    private Long paidTime;//unix秒级时间戳
+    @SerializedName("provide_time")
+    private Long provideTime;
+    @SerializedName("env_type")
+    private Long envType;
+    @SerializedName("biz_meta")
+    private String bizMeta;
+    @SerializedName("token")
+    private String token;
+
+    @SerializedName("leftFee")
+    private Long leftFee; //支付单类型时表示此单经过退款还剩余的金额,单位分
+    @SerializedName("wxOrderId")
+    private String wxOrderId;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsRequest.java
new file mode 100644
index 0000000000..d6ee653f1b
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsRequest.java
@@ -0,0 +1,24 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryPublishGoodsRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsResponse.java
new file mode 100644
index 0000000000..8daabe0685
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryPublishGoodsResponse.java
@@ -0,0 +1,39 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryPublishGoodsResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("status")
+  private Integer status;
+  @SerializedName("publish_item")
+  private List publishItem;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+
+  @Data
+  public static class PublishItem {
+    @SerializedName("id")
+    private String id;
+    @SerializedName("publish_status")
+    private Integer publishStatus;
+    @SerializedName("errmsg")
+    private String errmsg;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsRequest.java
new file mode 100644
index 0000000000..56fd43993d
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsRequest.java
@@ -0,0 +1,24 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryUploadGoodsRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsResponse.java
new file mode 100644
index 0000000000..2f3199ab41
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUploadGoodsResponse.java
@@ -0,0 +1,47 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryUploadGoodsResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("status")
+  private Integer status;
+  @SerializedName("upload_item")
+  private List uploadItem;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+
+  @Data
+  public static class UploadItem {
+    @SerializedName("id")
+    private String id;
+    @SerializedName("name")
+    private String name;
+    @SerializedName("price")
+    private Integer price;
+    @SerializedName("remark")
+    private String remark;
+    @SerializedName("item_url")
+    private String itemUrl;
+    @SerializedName("upload_status")
+    private Integer uploadStatus;
+    @SerializedName("errmsg")
+    private String errmsg;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceRequest.java
new file mode 100644
index 0000000000..df48c276f9
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceRequest.java
@@ -0,0 +1,29 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryUserBalanceRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  @SerializedName("user_ip")
+  private String userIp;
+  @SerializedName("openid")
+  private String openid;
+  @SerializedName("env")
+  private Integer env;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceResponse.java
new file mode 100644
index 0000000000..5bb1f40536
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryUserBalanceResponse.java
@@ -0,0 +1,39 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryUserBalanceResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("balance")
+  private Long balance;
+
+  @SerializedName("present_balance")
+  private Long presentBalance;
+  @SerializedName("sum_save")
+  private Long sumSave;
+  @SerializedName("sum_present")
+  private Long sumPresent;
+  @SerializedName("sum_balance")
+  private Long sumBalance;
+  @SerializedName("sum_cost")
+  private Long sumCost;
+  @SerializedName("first_save_flag")
+  private Boolean firstSaveFlag;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderRequest.java
new file mode 100644
index 0000000000..df25518709
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderRequest.java
@@ -0,0 +1,27 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryWithdrawOrderRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  @SerializedName("withdraw_no")
+  private String withdrawNo;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderResponse.java
new file mode 100644
index 0000000000..eaccd3d004
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayQueryWithdrawOrderResponse.java
@@ -0,0 +1,39 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayQueryWithdrawOrderResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("withdraw_no")
+  private String withdrawNo;
+  @SerializedName("withdraw_amount")
+  private String withdrawAmount; //提现的金额,单位元,不传的情况下表示全额提现
+
+  @SerializedName("wx_withdraw_no")
+  private String wxWithdrawNo;
+
+  @SerializedName("status")
+  private Integer status;
+  @SerializedName("withdraw_success_timestamp")
+  private String withdrawSuccessTimestamp;
+  @SerializedName("create_time")
+  private String createTime;
+  @SerializedName("fail_reason")
+  private String failReason;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderRequest.java
new file mode 100644
index 0000000000..bf9d68c299
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderRequest.java
@@ -0,0 +1,46 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayRefundOrderRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("openid")
+  private String openid;
+  @SerializedName("env")
+  private Integer env;
+  @SerializedName("order_id")
+  private String orderId;
+  @SerializedName("wx_order_id")
+  private String wxOrderId;
+  @SerializedName("refund_order_id")
+  private String refundOrderId;
+
+
+  @SerializedName("left_fee")
+  private Long leftFee;
+  @SerializedName("refund_fee")
+  private Long refundFee;
+  @SerializedName("biz_meta")
+  private String bizMeta;
+
+  @SerializedName("refund_reason")
+  private String refundReason;
+
+  @SerializedName("req_from")
+  private String reqFrom;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderResponse.java
new file mode 100644
index 0000000000..20ddf2a8ac
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayRefundOrderResponse.java
@@ -0,0 +1,33 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayRefundOrderResponse extends WxMaBaseResponse implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("refund_order_id")
+  private String refundOrderId;
+  @SerializedName("refund_wx_order_id")
+  private String refundWxOrderId;
+  @SerializedName("pay_order_id")
+  private String payOrderId;
+
+  @SerializedName("pay_wx_order_id")
+  private String payWxOrderId;
+
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPaySigParams.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPaySigParams.java
new file mode 100644
index 0000000000..089f2d5390
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPaySigParams.java
@@ -0,0 +1,91 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import me.chanjar.weixin.common.util.SignUtils;
+import org.apache.commons.lang3.StringUtils;
+
+import java.io.Serializable;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPaySigParams implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+
+  private String sessionKey;
+  private String appKey;
+
+  public String signUriWithBoth(String url, String postData) {
+    final String sig = this.calcSig(postData);
+    final String paySig = this.calcPaySig(url, postData);
+    final String uri = String.format(url, paySig, sig);
+    return uri;
+  }
+
+  public String signUriWithPay(String url, String postData) {
+    final String paySig = this.calcPaySig(url, postData);
+    final String uri = String.format(url, paySig);
+    return uri;
+  }
+
+  public String signUriWithUser(String url, String postData) {
+    final String sig = this.calcSig(postData);
+    final String uri = String.format(url, sig);
+    return uri;
+  }
+
+  protected String convUrlToSigUri(String url) {
+    if (url == null) return "";
+
+    String t = url.replace("https://api.weixin.qq.com", "");
+    if (t.contains("?")) {
+      t = t.substring(0, t.indexOf("?"));
+    }
+    return t;
+  }
+
+  public String calcPaySig(String url, String postBody) {
+    String ak = StringUtils.trimToEmpty(this.appKey);
+    final String sigUri = convUrlToSigUri(url);
+    final String paySig = calcPaySignature(sigUri, postBody, ak);
+    return paySig;
+  }
+
+  public String calcSig(String postBody) {
+    String sk = StringUtils.trimToEmpty(this.sessionKey);
+    final String sig = calcSignature(postBody, sk);
+    return sig;
+  }
+
+  protected String calcSignature(String postBody, String sessionKey) {
+//        """ 用户登录态signature签名算法
+//      Args:
+//          postBody   - http POST的数据包体
+//          sessionKey - 当前用户有效的session_key,参考auth.code2Session接口
+//      Returns:
+//          用户登录态签名signature
+//    """
+    String needSignData = postBody;
+    String signature = SignUtils.createHmacSha256Sign(needSignData, sessionKey);
+    return signature;
+  }
+
+
+  protected String calcPaySignature(String uri, String postBody, String appKey) {
+//        """ pay_sig签名算法
+//      Args:
+//     uri - 当前请求的API的uri部分,不带query_string 例如:/xpay/query_user_balance
+//          postBody - http POST的数据包体
+//          appKey    - 对应环境的AppKey
+//      Returns:
+//          支付请求签名pay_sig
+//    """
+    String needSignData = uri + '&' + postBody;
+    String paySig = SignUtils.createHmacSha256Sign(needSignData, appKey);
+    return paySig;
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartPublishGoodsRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartPublishGoodsRequest.java
new file mode 100644
index 0000000000..9163c69ad1
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartPublishGoodsRequest.java
@@ -0,0 +1,35 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayStartPublishGoodsRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  @SerializedName("publish_item")
+  private List publishItem;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+
+  @Data
+  public static class PublishItem {
+    @SerializedName("id")
+    private String id;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartUploadGoodsRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartUploadGoodsRequest.java
new file mode 100644
index 0000000000..ebd7c51342
--- /dev/null
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/xpay/WxMaXPayStartUploadGoodsRequest.java
@@ -0,0 +1,43 @@
+package cn.binarywang.wx.miniapp.bean.xpay;
+
+import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class WxMaXPayStartUploadGoodsRequest implements Serializable {
+  private static final long serialVersionUID = 7495157056049312108L;
+  @SerializedName("env")
+  private Integer env;
+
+  @SerializedName("upload_item")
+  private List uploadItem;
+
+  public String toJson() {
+    return WxMaGsonBuilder.create().toJson(this);
+  }
+
+  @Data
+  public static class UploadItem {
+    @SerializedName("id")
+    private String id;
+    @SerializedName("name")
+    private String name;
+    @SerializedName("price")
+    private Integer price;
+    @SerializedName("remark")
+    private String remark;
+    @SerializedName("item_url")
+    private String itemUrl;
+
+  }
+}
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
index f946b70c27..23ea773880 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java
@@ -848,6 +848,28 @@ public interface Vod {
     String GET_CDN_USAGE_DATA_URL = "https://api.weixin.qq.com/wxa/sec/vod/getcdnusagedata";
     String GET_CDN_LOGS_URL = "https://api.weixin.qq.com/wxa/sec/vod/getcdnlogs";
 
+  }
+  /**
+   * 小程序虚拟支付服务相关接口
+   * 
+   * 文档地址: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/virtual-payment.html#_2-3-%E6%9C%8D%E5%8A%A1%E5%99%A8API
+   * 
+ */ + public interface XPay { + String QUERY_USER_BALANCE_URL = "https://api.weixin.qq.com/xpay/query_user_balance?pay_sig=%s&signature=%s"; + String CURRENCY_PAY_URL = "https://api.weixin.qq.com/xpay/currency_pay?pay_sig=%s&signature=%s"; + String QUERY_ORDER_URL = "https://api.weixin.qq.com/xpay/query_order?pay_sig=%s"; + String CANCEL_CURRENCY_PAY_URL = "https://api.weixin.qq.com/xpay/cancel_currency_pay?pay_sig=%s&signature=%s"; + String NOTIFY_PROVIDE_GOODS_URL = "https://api.weixin.qq.com/xpay/notify_provide_goods?pay_sig=%s"; + String PRESENT_CURRENCY_URL = "https://api.weixin.qq.com/xpay/present_currency?pay_sig=%s"; + String DOWNLOAD_BILL_URL = "https://api.weixin.qq.com/xpay/download_bill?pay_sig=%s"; + String REFUND_ORDER_URL = "https://api.weixin.qq.com/xpay/refund_order?pay_sig=%s"; + String CREATE_WITHDRAW_ORDER_URL = "https://api.weixin.qq.com/xpay/create_withdraw_order?pay_sig=%s"; + String QUERY_WITHDRAW_ORDER_URL = "https://api.weixin.qq.com/xpay/query_withdraw_order?pay_sig=%s"; + String START_UPLOAD_GOODS_URL = "https://api.weixin.qq.com/xpay/start_upload_goods?pay_sig=%s"; + String QUERY_UPLOAD_GOODS_URL = "https://api.weixin.qq.com/xpay/query_upload_goods?pay_sig=%s"; + String START_PUBLISH_GOODS_URL = "https://api.weixin.qq.com/xpay/start_publish_goods?pay_sig=%s"; + String QUERY_PUBLISH_GOODS_URL = "https://api.weixin.qq.com/xpay/query_publish_goods?pay_sig=%s"; } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java index 149c723e73..488481c011 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaConstants.java @@ -218,4 +218,89 @@ public static final class UploadTaskStatus { public static final int DONE = 3; public static final int FAILED = 4; } + + @UtilityClass + public static final class UploadResourceType { + public static final int MEDIA = 1; + public static final int COVER = 2; + } + @UtilityClass + public static final class XPayEnv { + public static final int PRODUCT = 0; + public static final int SANDBOX = 1; + } + @UtilityClass + public static final class XPayFirstCharge { + public static final int NO = 0; + public static final int YES = 1; + } + @UtilityClass + public static final class XPayDeviceType { + public static final int ANDROID = 1; + public static final int IOS = 2; + } + @UtilityClass + public static final class XPayBizType { + public static final int SHORT_DRAMA = 1; + } + @UtilityClass + public static final class XPayOrderType { + public static final int PAY_ORDER = 0;//0-支付单 + public static final int REFUND_ORDER = 1;//1-退款单 + } + @UtilityClass + public static final class XPayOrderStatus { + public static final int INIT = 0;//0-订单初始化(未创建成功,不可用于支付) + public static final int CREATED = 1;// 1-订单创建成功 + public static final int PAID = 2;//2-订单已经支付,待发货 + public static final int PROVIDING = 3;// 3-订单发货中 + public static final int PROVIDED = 4;// 4-订单已发货 + public static final int REFUNDED = 5;// 5-订单已经退款 + public static final int CLOSED = 6;// 6-订单已经关闭(不可再使用) + public static final int REFUND_FAILED = 7;// 7-订单退款失败 + } + @UtilityClass + public static final class XPayNotifyEvent { + public static String COIN_PAY = "xpay_coin_pay_notify"; + public static String GOODS_DELIVER = "xpay_goods_deliver_notify"; + + } + @UtilityClass + public static final class XPayPaymentMode { + public static String COIN = "short_series_coin"; + public static String GOODS = "short_series_goods"; + + } + + @UtilityClass + public static final class XPayPlatform { + public static String ANDROID = "android"; + } + + @UtilityClass + public static final class XPayCurrencyType { + public static String CNY = "CNY"; + + } + + @UtilityClass + public static final class XPayWxApiSigUri { + public static String WXAPI = "requestVirtualPayment"; + + } + + @UtilityClass + public static final class XPayRefundReqFrom { + public static final String FROM_CS = "1";//人工客服退款 + public static final String FROM_USER = "2";//用户自己发起 + public static final String FROM_MISC = "3";//1-其它 + } + + @UtilityClass + public static final class XPayPublishStatus { + public static final int PUBLISH_UPLOADING = 0;//0-上传中 + public static final int PUBLISH_EXISTED = 1;//1-id已经存在 + public static final int PUBLISH_SUCCESSFUL = 2;// 2-发布成功 + public static final int PUBLISH_FAILED = 3;//3-发布失败 + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodSingleUploadRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodSingleUploadRequestExecutor.java new file mode 100644 index 0000000000..a9ffd1af39 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodSingleUploadRequestExecutor.java @@ -0,0 +1,68 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodSingleFileUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.apache.Utf8ResponseHandler; +import org.apache.http.HttpHost; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.mime.HttpMultipartMode; +import org.apache.http.entity.mime.MultipartEntityBuilder; +import org.apache.http.impl.client.CloseableHttpClient; + +import java.io.File; +import java.io.IOException; + +/** + * + */ +public class ApacheVodSingleUploadRequestExecutor extends VodSingleUploadRequestExecutor { + + public ApacheVodSingleUploadRequestExecutor(RequestHttp requestHttp, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) { + super(requestHttp, mediaName, mediaType, coverType, coverData, sourceContext); + + } + + @Override + public WxMaVodSingleFileUploadResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { + HttpPost httpPost = new HttpPost(uri); + if (requestHttp.getRequestHttpProxy() != null) { + RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); + httpPost.setConfig(config); + } + if (file != null) { + MultipartEntityBuilder entityBuilder = MultipartEntityBuilder + .create() + .setMode(HttpMultipartMode.RFC6532) + .addTextBody("media_name", mediaName) + .addTextBody("media_type", mediaType) + .addBinaryBody("media_data", file); + + if (coverType != null) { + entityBuilder.addTextBody("cover_type", coverType); + } + if (coverData != null) { + entityBuilder.addBinaryBody("cover_data", coverData); + } + if (sourceContext != null) { + entityBuilder.addTextBody("source_context", sourceContext); + } + + httpPost.setEntity(entityBuilder.build()); + } + try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) { + String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMaVodSingleFileUploadResult.fromJson(responseContent); + } finally { + httpPost.releaseConnection(); + } + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodUploadPartRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodUploadPartRequestExecutor.java new file mode 100644 index 0000000000..e27840cd59 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/ApacheVodUploadPartRequestExecutor.java @@ -0,0 +1,59 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodUploadPartResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.apache.Utf8ResponseHandler; +import org.apache.http.HttpHost; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.mime.HttpMultipartMode; +import org.apache.http.entity.mime.MultipartEntityBuilder; +import org.apache.http.impl.client.CloseableHttpClient; + +import java.io.File; +import java.io.IOException; + +/** + * + */ +public class ApacheVodUploadPartRequestExecutor extends VodUploadPartRequestExecutor { + + public ApacheVodUploadPartRequestExecutor(RequestHttp requestHttp, String uploadId, Integer partNumber, Integer resourceType) { + super(requestHttp, uploadId, partNumber, resourceType); + + } + + @Override + public WxMaVodUploadPartResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { + HttpPost httpPost = new HttpPost(uri); + if (requestHttp.getRequestHttpProxy() != null) { + RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); + httpPost.setConfig(config); + } + if (file != null) { + MultipartEntityBuilder entityBuilder = MultipartEntityBuilder + .create() + .setMode(HttpMultipartMode.RFC6532) + .addTextBody("upload_id", uploadId) + .addTextBody("part_number", String.valueOf(partNumber)) + .addTextBody("resource_type", String.valueOf(resourceType)) + .addBinaryBody("data", file); + + httpPost.setEntity(entityBuilder.build()); + } + try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) { + String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMaVodUploadPartResult.fromJson(responseContent); + } finally { + httpPost.releaseConnection(); + } + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodSingleUploadRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodSingleUploadRequestExecutor.java new file mode 100644 index 0000000000..ed47a9fc67 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodSingleUploadRequestExecutor.java @@ -0,0 +1,57 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodSingleFileUploadResult; +import jodd.http.HttpConnectionProvider; +import jodd.http.HttpRequest; +import jodd.http.HttpResponse; +import jodd.http.ProxyInfo; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestHttp; + +import java.io.File; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +/** + * + */ +public class JoddHttpVodSingleUploadRequestExecutor extends VodSingleUploadRequestExecutor { + + public JoddHttpVodSingleUploadRequestExecutor(RequestHttp requestHttp, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) { + super(requestHttp, mediaName, mediaType, coverType, coverData, sourceContext); + } + + @Override + public WxMaVodSingleFileUploadResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { + HttpRequest request = HttpRequest.post(uri); + if (requestHttp.getRequestHttpProxy() != null) { + requestHttp.getRequestHttpClient().useProxy(requestHttp.getRequestHttpProxy()); + } + request.withConnectionProvider(requestHttp.getRequestHttpClient()); + request.form("media_data", file); + request.form("media_name", mediaName); + request.form("media_type", mediaType); + if (coverType != null) { + request.form("cover_type", coverType); + } + if (coverData != null) { + request.form("cover_data", coverData); + } + if (sourceContext != null) { + request.form("source_context", sourceContext); + } + + + HttpResponse response = request.send(); + response.charset(StandardCharsets.UTF_8.name()); + + String responseContent = response.bodyText(); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMaVodSingleFileUploadResult.fromJson(responseContent); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodUploadPartRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodUploadPartRequestExecutor.java new file mode 100644 index 0000000000..36e53b66bf --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/JoddHttpVodUploadPartRequestExecutor.java @@ -0,0 +1,49 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodUploadPartResult; +import jodd.http.HttpConnectionProvider; +import jodd.http.HttpRequest; +import jodd.http.HttpResponse; +import jodd.http.ProxyInfo; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestHttp; + +import java.io.File; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +/** + * + */ +public class JoddHttpVodUploadPartRequestExecutor extends VodUploadPartRequestExecutor { + + public JoddHttpVodUploadPartRequestExecutor(RequestHttp requestHttp, String uploadId, Integer partNumber, Integer resourceType) { + super(requestHttp, uploadId, partNumber, resourceType); + + } + + @Override + public WxMaVodUploadPartResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { + HttpRequest request = HttpRequest.post(uri); + if (requestHttp.getRequestHttpProxy() != null) { + requestHttp.getRequestHttpClient().useProxy(requestHttp.getRequestHttpProxy()); + } + request.withConnectionProvider(requestHttp.getRequestHttpClient()); + request.form("data", file); + request.form("upload_id", uploadId); + request.form("part_number", partNumber); + request.form("resource_type", resourceType); + + HttpResponse response = request.send(); + response.charset(StandardCharsets.UTF_8.name()); + + String responseContent = response.bodyText(); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMaVodUploadPartResult.fromJson(responseContent); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodSingleUploadRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodSingleUploadRequestExecutor.java new file mode 100644 index 0000000000..78fbdd3d25 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodSingleUploadRequestExecutor.java @@ -0,0 +1,56 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodSingleFileUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo; +import okhttp3.*; + +import java.io.File; +import java.io.IOException; + +/** + * + */ +public class OkHttpVodSingleUploadRequestExecutor extends VodSingleUploadRequestExecutor { + + public OkHttpVodSingleUploadRequestExecutor(RequestHttp requestHttp, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) { + super(requestHttp, mediaName, mediaType, coverType, coverData, sourceContext); + } + + @Override + public WxMaVodSingleFileUploadResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { + + MultipartBody.Builder bodyBuilder = new MultipartBody.Builder() + .setType(MediaType.parse("multipart/form-data")) + .addFormDataPart("media_data", + file.getName(), + RequestBody.create(MediaType.parse("application/octet-stream"), file)); + bodyBuilder.addFormDataPart("media_type", this.mediaType) + .addFormDataPart("media_name", this.mediaName); + + if (coverType != null) { + bodyBuilder.addFormDataPart("cover_type", this.coverType); + } + if (coverData != null) { + bodyBuilder.addFormDataPart("cover_data", + coverData.getName(), + RequestBody.create(MediaType.parse("application/octet-stream"), coverData)); + } + if (sourceContext != null) { + bodyBuilder.addFormDataPart("source_context", this.sourceContext); + } + Request request = new Request.Builder().url(uri).post(bodyBuilder.build()).build(); + + Response response = requestHttp.getRequestHttpClient().newCall(request).execute(); + String responseContent = response.body().string(); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMaVodSingleFileUploadResult.fromJson(responseContent); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodUploadPartRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodUploadPartRequestExecutor.java new file mode 100644 index 0000000000..c9e991d082 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpVodUploadPartRequestExecutor.java @@ -0,0 +1,47 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodUploadPartResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxError; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.okhttp.OkHttpProxyInfo; +import okhttp3.*; + +import java.io.File; +import java.io.IOException; + +/** + * + */ +public class OkHttpVodUploadPartRequestExecutor extends VodUploadPartRequestExecutor { + + public OkHttpVodUploadPartRequestExecutor(RequestHttp requestHttp, String uploadId, Integer partNumber, Integer resourceType) { + super(requestHttp, uploadId, partNumber, resourceType); + + } + + @Override + public WxMaVodUploadPartResult execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { + + MultipartBody.Builder bodyBuilder = new MultipartBody.Builder() + .setType(MediaType.parse("multipart/form-data")) + .addFormDataPart("data", + file.getName(), + RequestBody.create(MediaType.parse("application/octet-stream"), file)); + bodyBuilder.addFormDataPart("upload_id", uploadId) + .addFormDataPart("part_number", String.valueOf(this.partNumber)) + .addFormDataPart("resource_type", String.valueOf(this.resourceType)); + + Request request = new Request.Builder().url(uri).post(bodyBuilder.build()).build(); + + Response response = requestHttp.getRequestHttpClient().newCall(request).execute(); + String responseContent = response.body().string(); + WxError error = WxError.fromJson(responseContent, wxType); + if (error.getErrorCode() != 0) { + throw new WxErrorException(error); + } + return WxMaVodUploadPartResult.fromJson(responseContent); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodSingleUploadRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodSingleUploadRequestExecutor.java new file mode 100644 index 0000000000..40c73b0064 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodSingleUploadRequestExecutor.java @@ -0,0 +1,59 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodSingleFileUploadResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestExecutor; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.ResponseHandler; + +import java.io.File; +import java.io.IOException; + +/** + * 小程序 提审素材上传接口 + * 上传媒体文件请求执行器. + * 请求的参数是File, 返回的结果是String + * + * @author yangyh22 + * @since 2020/11/14 + */ +public abstract class VodSingleUploadRequestExecutor implements RequestExecutor { + + protected RequestHttp requestHttp; + protected String mediaName; + protected String mediaType; + protected String coverType; + protected String sourceContext; + protected File coverData; + + public VodSingleUploadRequestExecutor(RequestHttp requestHttp, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) { + this.requestHttp = requestHttp; + this.mediaName = mediaName; + this.mediaType = mediaType; + this.coverType = coverType; + this.coverData = coverData; + this.sourceContext = sourceContext; + + } + + public static RequestExecutor create(RequestHttp requestHttp, String mediaName, String mediaType, String coverType, File coverData, String sourceContext) { + switch (requestHttp.getRequestType()) { + case APACHE_HTTP: + return new ApacheVodSingleUploadRequestExecutor(requestHttp, mediaName, mediaType, coverType, coverData, sourceContext); + case JODD_HTTP: + return new JoddHttpVodSingleUploadRequestExecutor(requestHttp, mediaName, mediaType, coverType, coverData, sourceContext); + case OK_HTTP: + return new OkHttpVodSingleUploadRequestExecutor(requestHttp, mediaName, mediaType, coverType, coverData, sourceContext); + default: + return null; + } + } + + @Override + public void execute(String uri, File data, ResponseHandler handler, WxType wxType) throws WxErrorException, IOException { + handler.handle(this.execute(uri, data, wxType)); + } + + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodUploadPartRequestExecutor.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodUploadPartRequestExecutor.java new file mode 100644 index 0000000000..96c6914acf --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/VodUploadPartRequestExecutor.java @@ -0,0 +1,49 @@ +package cn.binarywang.wx.miniapp.executor; + +import cn.binarywang.wx.miniapp.bean.vod.WxMaVodUploadPartResult; +import me.chanjar.weixin.common.enums.WxType; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.http.RequestExecutor; +import me.chanjar.weixin.common.util.http.RequestHttp; +import me.chanjar.weixin.common.util.http.ResponseHandler; + +import java.io.File; +import java.io.IOException; + +/** + */ +public abstract class VodUploadPartRequestExecutor implements RequestExecutor { + + protected RequestHttp requestHttp; + protected String uploadId; + protected Integer partNumber; + protected Integer resourceType; + + public VodUploadPartRequestExecutor(RequestHttp requestHttp, String uploadId, Integer partNumber, Integer resourceType) { + this.requestHttp = requestHttp; + this.uploadId = uploadId; + this.partNumber = partNumber; + this.resourceType = resourceType; + + } + + public static RequestExecutor create(RequestHttp requestHttp, String uploadId, Integer partNumber, Integer resourceType) { + switch (requestHttp.getRequestType()) { + case APACHE_HTTP: + return new ApacheVodUploadPartRequestExecutor(requestHttp, uploadId, partNumber, resourceType); + case JODD_HTTP: + return new JoddHttpVodUploadPartRequestExecutor(requestHttp, uploadId, partNumber, resourceType); + case OK_HTTP: + return new OkHttpVodUploadPartRequestExecutor(requestHttp, uploadId, partNumber, resourceType); + default: + return null; + } + } + + @Override + public void execute(String uri, File data, ResponseHandler handler, WxType wxType) throws WxErrorException, IOException { + handler.handle(this.execute(uri, data, wxType)); + } + + +} diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImplTest.java index 73797ab7ca..037ebe0889 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaVodServiceImplTest.java @@ -84,4 +84,46 @@ public void testAuditDrama() throws Exception { Integer response = this.wxService.getWxMaVodService().auditDrama(request); assertNotNull(response); } + + @Test + public void testGetTask() throws Exception { + WxMaVodGetTaskRequest request = WxMaVodGetTaskRequest.builder() + .taskId(0) + .build(); + WxMaVodGetTaskResponse response = this.wxService.getWxMaVodService().getTask(request); + assertNotNull(response); + } + + @Test + public void testPullUpload() throws Exception { + WxMaVodPullUploadRequest request = WxMaVodPullUploadRequest.builder() + .coverUrl("") + .mediaUrl("") + .mediaName("我的中国梦 - 第1集") + .sourceContext("") + .build(); + WxMaVodPullUploadResponse response = this.wxService.getWxMaVodService().pullUpload(request); + assertNotNull(response); + } + @Test + public void testGetCdnUsageData() throws Exception { + WxMaVodGetCdnUsageRequest request = WxMaVodGetCdnUsageRequest.builder() + .startTime(0L) + .endTime(0L) + .dataInterval(1440) + .build(); + WxMaVodGetCdnUsageResponse response = this.wxService.getWxMaVodService().getCdnUsageData(request); + assertNotNull(response); + } + + @Test + public void testGetCdnLogs() throws Exception { + WxMaVodGetCdnLogRequest request = WxMaVodGetCdnLogRequest.builder() + .startTime(0L).endTime(0L) + .offset(0).limit(100) + .build(); + WxMaVodGetCdnLogResponse response = this.wxService.getWxMaVodService().getCdnLogs(request); + assertNotNull(response); + } + } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImplTest.java new file mode 100644 index 0000000000..0c980fda55 --- /dev/null +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaXPayServiceImplTest.java @@ -0,0 +1,220 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.xpay.*; +import cn.binarywang.wx.miniapp.constant.WxMaConstants; +import cn.binarywang.wx.miniapp.test.ApiTestModule; +import com.google.inject.Inject; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.util.ArrayList; + +import static org.testng.Assert.assertNotNull; + +@Test +@Guice(modules = ApiTestModule.class) +public class WxMaXPayServiceImplTest { + @Inject + private WxMaService wxService; + + @Test + public void testQueryUserBalance() throws Exception { + WxMaXPayQueryUserBalanceRequest request = WxMaXPayQueryUserBalanceRequest.builder() + .openid("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .userIp("127.0.0.1") + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayQueryUserBalanceResponse response = this.wxService.getWxMaXPayService().queryUserBalance(request, sigParams); + assertNotNull(response); + } + + @Test + public void testCurrencyPay() throws Exception { + WxMaXPayCurrencyPayRequest request = WxMaXPayCurrencyPayRequest.builder() + .openid("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .userIp("127.0.0.1") + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayCurrencyPayResponse response = this.wxService.getWxMaXPayService().currencyPay(request, sigParams); + assertNotNull(response); + } + + @Test + public void testQueryOrder() throws Exception { + WxMaXPayQueryOrderRequest request = WxMaXPayQueryOrderRequest.builder() + .openid("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .orderId("") + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayQueryOrderResponse response = this.wxService.getWxMaXPayService().queryOrder(request, sigParams); + assertNotNull(response); + } + + @Test + public void testCancelCurrencyPay() throws Exception { + WxMaXPayCancelCurrencyPayRequest request = WxMaXPayCancelCurrencyPayRequest.builder() + .openid("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .userIp("127.0.0.1") + .orderId("") + .payOrderId("") + .amount(1000L) + .deviceType(WxMaConstants.XPayDeviceType.ANDROID) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayCancelCurrencyPayResponse response = this.wxService.getWxMaXPayService().cancelCurrencyPay(request, sigParams); + assertNotNull(response); + } + + @Test + public void testNotifyProvideGoods() throws Exception { + WxMaXPayNotifyProvideGoodsRequest request = WxMaXPayNotifyProvideGoodsRequest.builder() + .env(WxMaConstants.XPayEnv.PRODUCT) + .orderId("") + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + boolean response = this.wxService.getWxMaXPayService().notifyProvideGoods(request, sigParams); + assertNotNull(response); + } + + @Test + public void testPresentCurrency() throws Exception { + WxMaXPayPresentCurrencyRequest request = WxMaXPayPresentCurrencyRequest.builder() + .openid("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .orderId("").deviceType(WxMaConstants.XPayDeviceType.ANDROID) + .amount(100L) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayPresentCurrencyResponse response = this.wxService.getWxMaXPayService().presentCurrency(request, sigParams); + assertNotNull(response); + } + + + @Test + public void testDownloadBill() throws Exception { + WxMaXPayDownloadBillRequest request = WxMaXPayDownloadBillRequest.builder() + .beginDs(20230801) + .endDs(20230810) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayDownloadBillResponse response = this.wxService.getWxMaXPayService().downloadBill(request, sigParams); + assertNotNull(response); + } + @Test + public void testRefundOrder() throws Exception { + WxMaXPayRefundOrderRequest request = WxMaXPayRefundOrderRequest.builder() + .openid("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .orderId("") + .refundOrderId("") + .leftFee(100L) + .refundFee(10L) + .bizMeta("").refundReason("").reqFrom("") + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayRefundOrderResponse response = this.wxService.getWxMaXPayService().refundOrder(request, sigParams); + assertNotNull(response); + } + + @Test + public void testCreateWithdrawOrder() throws Exception { + WxMaXPayCreateWithdrawOrderRequest request = WxMaXPayCreateWithdrawOrderRequest.builder() + .withdrawNo("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .withdrawAmount("0.01") + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayCreateWithdrawOrderResponse response = this.wxService.getWxMaXPayService().createWithdrawOrder(request, sigParams); + assertNotNull(response); + } + + + @Test + public void testQueryWithdrawOrder() throws Exception { + WxMaXPayQueryWithdrawOrderRequest request = WxMaXPayQueryWithdrawOrderRequest.builder() + .withdrawNo("") + .env(WxMaConstants.XPayEnv.PRODUCT) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayQueryWithdrawOrderResponse response = this.wxService.getWxMaXPayService().queryWithdrawOrder(request, sigParams); + assertNotNull(response); + } + + + @Test + public void testStartUploadGoods() throws Exception { + WxMaXPayStartUploadGoodsRequest request = WxMaXPayStartUploadGoodsRequest.builder() + .env(WxMaConstants.XPayEnv.PRODUCT) + .uploadItem(new ArrayList<>()) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + boolean response = this.wxService.getWxMaXPayService().startUploadGoods(request, sigParams); + assertNotNull(response); + } + + @Test + public void testQueryUploadGoods() throws Exception { + WxMaXPayQueryUploadGoodsRequest request = WxMaXPayQueryUploadGoodsRequest.builder() + .env(WxMaConstants.XPayEnv.PRODUCT) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayQueryUploadGoodsResponse response = this.wxService.getWxMaXPayService().queryUploadGoods(request, sigParams); + assertNotNull(response); + } + + + @Test + public void testStartPublishGoods() throws Exception { + WxMaXPayStartPublishGoodsRequest request = WxMaXPayStartPublishGoodsRequest.builder() + .env(WxMaConstants.XPayEnv.PRODUCT) + .publishItem(new ArrayList<>()) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + boolean response = this.wxService.getWxMaXPayService().startPublishGoods(request, sigParams); + assertNotNull(response); + } + + @Test + public void testQueryPublishGoods() throws Exception { + WxMaXPayQueryPublishGoodsRequest request = WxMaXPayQueryPublishGoodsRequest.builder() + .env(WxMaConstants.XPayEnv.PRODUCT) + .build(); + WxMaXPaySigParams sigParams = new WxMaXPaySigParams(); + sigParams.setSessionKey(""); + sigParams.setAppKey(""); + WxMaXPayQueryPublishGoodsResponse response = this.wxService.getWxMaXPayService().queryPublishGoods(request, sigParams); + assertNotNull(response); + } + +} From 52c597a51a46dbacbc4e9c30d3fa587ab61d336a Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 3 Sep 2023 17:49:24 +0800 Subject: [PATCH 586/622] =?UTF-8?q?:art:=20=E7=A7=BB=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E5=AF=BC=E5=85=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WxMaImmediateDeliveryServiceImpl.java | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java index 2371eaf4eb..e0843c47c0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -2,32 +2,12 @@ import cn.binarywang.wx.miniapp.api.WxMaImmediateDeliveryService; import cn.binarywang.wx.miniapp.api.WxMaService; -import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmRequest; -import cn.binarywang.wx.miniapp.bean.delivery.AbnormalConfirmResponse; -import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest; -import cn.binarywang.wx.miniapp.bean.delivery.AddOrderResponse; -import cn.binarywang.wx.miniapp.bean.delivery.BindAccountResponse; -import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderRequest; -import cn.binarywang.wx.miniapp.bean.delivery.CancelOrderResponse; -import cn.binarywang.wx.miniapp.bean.delivery.FollowWaybillRequest; -import cn.binarywang.wx.miniapp.bean.delivery.FollowWaybillResponse; -import cn.binarywang.wx.miniapp.bean.delivery.GetOrderRequest; -import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; -import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; -import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; -import cn.binarywang.wx.miniapp.bean.delivery.QueryFollowTraceRequest; -import cn.binarywang.wx.miniapp.bean.delivery.QueryFollowTraceResponse; -import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceRequest; -import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceResponse; -import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillRequest; -import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillResponse; +import cn.binarywang.wx.miniapp.bean.delivery.*; import cn.binarywang.wx.miniapp.bean.delivery.base.WxMaDeliveryBaseResponse; import cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants; import cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.InstantDelivery; -import cn.binarywang.wx.miniapp.constant.WxMaConstants; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import javassist.bytecode.ConstPool; import lombok.RequiredArgsConstructor; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; @@ -204,7 +184,7 @@ public FollowWaybillResponse followWaybill( @Override public QueryFollowTraceResponse queryFollowTrace( - QueryFollowTraceRequest request) throws WxErrorException { + QueryFollowTraceRequest request) throws WxErrorException { String responseContent = this.wxMaService.post(InstantDelivery.QUERY_FOLLOW_TRACE_URL, request); QueryFollowTraceResponse response = QueryFollowTraceResponse.fromJson(responseContent); if (response.getErrcode() == -1) { From 04bb23b75c0b513b07d77618a28eaa88262e051c Mon Sep 17 00:00:00 2001 From: dagewang <15124178@qq.com> Date: Mon, 11 Sep 2023 10:06:01 +0800 Subject: [PATCH 587/622] =?UTF-8?q?:art:=20#3128=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=8F=90=E4=BE=9B=E6=89=A9?= =?UTF-8?q?=E5=B1=95httpclientbuilder=E7=9A=84=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/HttpClientBuilderCustomizer.java | 11 ++++ .../binarywang/wxpay/config/WxPayConfig.java | 10 +++ .../impl/WxPayServiceApacheHttpImpl.java | 7 +++ .../config/CustomizedWxPayConfigTest.java | 39 ++++++++++++ .../testbase/CustomizedApiTestModule.java | 61 +++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/HttpClientBuilderCustomizer.java create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/CustomizedWxPayConfigTest.java create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/CustomizedApiTestModule.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/HttpClientBuilderCustomizer.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/HttpClientBuilderCustomizer.java new file mode 100644 index 0000000000..42f0003d00 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/HttpClientBuilderCustomizer.java @@ -0,0 +1,11 @@ +package com.github.binarywang.wxpay.config; + +import org.apache.http.impl.client.HttpClientBuilder; + +/** + * @author dagewang + */ +@FunctionalInterface +public interface HttpClientBuilderCustomizer { + void customize(HttpClientBuilder var1); +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java index 41ac7fcbf8..f97421cb43 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java @@ -27,6 +27,7 @@ import java.security.PrivateKey; import java.security.cert.X509Certificate; import java.util.Base64; +import java.util.Optional; /** * 微信支付配置 @@ -165,6 +166,11 @@ public class WxPayConfig { private CloseableHttpClient apiV3HttpClient; + /** + * 支持扩展httpClientBuilder + */ + private HttpClientBuilderCustomizer httpClientBuilderCustomizer; + private HttpClientBuilderCustomizer apiV3HttpClientBuilderCustomizer; /** * 私钥信息 */ @@ -283,6 +289,10 @@ public CloseableHttpClient initApiV3HttpClient() throws WxPayException { //初始化V3接口正向代理设置 HttpProxyUtils.initHttpProxy(wxPayV3HttpClientBuilder, wxPayHttpProxy); + // 提供自定义wxPayV3HttpClientBuilder的能力 + Optional.ofNullable(apiV3HttpClientBuilderCustomizer).ifPresent(e -> { + e.customize(wxPayV3HttpClientBuilder); + }); CloseableHttpClient httpClient = wxPayV3HttpClientBuilder.build(); this.apiV3HttpClient = httpClient; diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java index 8c5191fdb4..e2b6d43fa1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java @@ -28,6 +28,7 @@ import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.Objects; +import java.util.Optional; /** *
@@ -335,6 +336,12 @@ private HttpClientBuilder createHttpClientBuilder(boolean useKey) throws WxPayEx
       httpClientBuilder.setDefaultCredentialsProvider(provider)
         .setProxy(new HttpHost(this.getConfig().getHttpProxyHost(), this.getConfig().getHttpProxyPort()));
     }
+
+    // 提供自定义httpClientBuilder的能力
+    Optional.ofNullable(getConfig().getHttpClientBuilderCustomizer()).ifPresent(e -> {
+      e.customize(httpClientBuilder);
+    });
+
     return httpClientBuilder;
   }
 
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/CustomizedWxPayConfigTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/CustomizedWxPayConfigTest.java
new file mode 100644
index 0000000000..a42026e3ee
--- /dev/null
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/config/CustomizedWxPayConfigTest.java
@@ -0,0 +1,39 @@
+package com.github.binarywang.wxpay.config;
+
+import com.github.binarywang.wxpay.exception.WxPayException;
+import com.github.binarywang.wxpay.service.WxPayService;
+import com.github.binarywang.wxpay.testbase.CustomizedApiTestModule;
+import com.google.inject.Inject;
+import lombok.extern.slf4j.Slf4j;
+import org.testng.annotations.Guice;
+import org.testng.annotations.Test;
+
+/**
+ * @author dagewang
+ */
+@Slf4j
+@Test
+@Guice(modules = CustomizedApiTestModule.class)
+public class CustomizedWxPayConfigTest {
+
+  @Inject
+  private WxPayService wxPayService;
+
+  public void testCustomizerHttpClient() {
+    try {
+      wxPayService.queryOrder("a", null);
+    } catch (WxPayException e) {
+      // ignore
+      e.printStackTrace();
+    }
+  }
+
+  public void testCustomizerV3HttpClient() {
+    try {
+      wxPayService.queryOrderV3("a", null);
+    } catch (WxPayException e) {
+      // ignore
+      e.printStackTrace();
+    }
+  }
+}
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/CustomizedApiTestModule.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/CustomizedApiTestModule.java
new file mode 100644
index 0000000000..a0cc399ea9
--- /dev/null
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/CustomizedApiTestModule.java
@@ -0,0 +1,61 @@
+package com.github.binarywang.wxpay.testbase;
+
+import com.github.binarywang.wxpay.config.WxPayConfig;
+import com.github.binarywang.wxpay.service.WxPayService;
+import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
+import com.google.inject.Binder;
+import com.google.inject.Module;
+import com.thoughtworks.xstream.XStream;
+import me.chanjar.weixin.common.error.WxRuntimeException;
+import me.chanjar.weixin.common.util.xml.XStreamInitializer;
+import org.apache.http.HttpRequestInterceptor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * The type Api test module.
+ */
+public class CustomizedApiTestModule implements Module {
+  private final Logger log = LoggerFactory.getLogger(this.getClass());
+  private static final String TEST_CONFIG_XML = "test-config.xml";
+
+  @Override
+  public void configure(Binder binder) {
+    try (InputStream inputStream = ClassLoader.getSystemResourceAsStream(TEST_CONFIG_XML)) {
+      if (inputStream == null) {
+        throw new WxRuntimeException("测试配置文件【" + TEST_CONFIG_XML + "】未找到,请参照test-config-sample.xml文件生成");
+      }
+
+      XmlWxPayConfig config = this.fromXml(XmlWxPayConfig.class, inputStream);
+      config.setIfSaveApiData(true);
+
+      config.setApiV3HttpClientBuilderCustomizer((builder) -> {
+        builder.addInterceptorLast((HttpRequestInterceptor) (r, c) -> System.out.println("--------> V3 HttpRequestInterceptor ..."));
+      });
+
+      config.setHttpClientBuilderCustomizer((builder) -> {
+        builder.addInterceptorLast((HttpRequestInterceptor) (r, c) -> System.out.println("--------> HttpRequestInterceptor ..."));
+      });
+
+      WxPayService wxService = new WxPayServiceImpl();
+      wxService.setConfig(config);
+
+      binder.bind(WxPayService.class).toInstance(wxService);
+      binder.bind(WxPayConfig.class).toInstance(config);
+    } catch (IOException e) {
+      this.log.error(e.getMessage(), e);
+    }
+  }
+
+  @SuppressWarnings("unchecked")
+  private  T fromXml(Class clazz, InputStream is) {
+    XStream xstream = XStreamInitializer.getInstance();
+    xstream.alias("xml", clazz);
+    xstream.processAnnotations(clazz);
+    return (T) xstream.fromXML(is);
+  }
+
+}

From 5e84544ae7a96bdc1ead56e86d124724f9445a93 Mon Sep 17 00:00:00 2001
From: Binary Wang 
Date: Mon, 11 Sep 2023 10:07:08 +0800
Subject: [PATCH 588/622] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E9=83=A8?=
 =?UTF-8?q?=E5=88=86=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=8F=90=E4=BE=9B=E9=93=BE?=
 =?UTF-8?q?=E5=BC=8F=E6=96=B9=E6=B3=95=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java | 5 ++++-
 .../cn/binarywang/wx/miniapp/bean/WxMaSubscribeMessage.java | 6 ++++--
 .../wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java     | 2 ++
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
index fee8cfea97..4feac0fad2 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java
@@ -340,12 +340,13 @@ private  T executeInternal(RequestExecutor executor, String uri, E d
    * @throws WxErrorException 异常
    */
   protected String extractAccessToken(String resultContent) throws WxErrorException {
-    log.info("resultContent: " + resultContent);
+    log.debug("access-token response: {}", resultContent);
     WxMaConfig config = this.getWxMaConfig();
     WxError error = WxError.fromJson(resultContent, WxType.MiniApp);
     if (error.getErrorCode() != 0) {
       throw new WxErrorException(error);
     }
+
     WxAccessToken accessToken = WxAccessToken.fromJson(resultContent);
     config.updateAccessTokenProcessor(accessToken.getAccessToken(), accessToken.getExpiresIn());
     return accessToken.getAccessToken();
@@ -666,10 +667,12 @@ public WxMaOrderShippingService getWxMaOrderShippingService() {
   public WxMaOpenApiService getWxMaOpenApiService() {
     return this.wxMaOpenApiService;
   }
+
   @Override
   public WxMaVodService getWxMaVodService() {
     return this.wxMaVodService;
   }
+
   @Override
   public WxMaXPayService getWxMaXPayService() {
     return this.wxMaXPayService;
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMessage.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMessage.java
index 836b64b084..984e9573db 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMessage.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaSubscribeMessage.java
@@ -3,14 +3,15 @@
 import cn.binarywang.wx.miniapp.constant.WxMaConstants;
 import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
 import lombok.*;
+import lombok.experimental.Accessors;
 
 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
 /**
- * 订阅消息.
- * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
+ * 订阅消息
+ * 点击查阅文档
  *
  * @author S
  */
@@ -19,6 +20,7 @@
 @NoArgsConstructor
 @AllArgsConstructor
 @Builder
+@Accessors(chain = true)
 public class WxMaSubscribeMessage implements Serializable {
   private static final long serialVersionUID = 6846729898251286686L;
 
diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java
index e73a1d8832..5bf52967c2 100644
--- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java
+++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/GenerateUrlLinkRequest.java
@@ -5,6 +5,7 @@
 import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
 
 import java.io.Serializable;
 
@@ -17,6 +18,7 @@
  */
 @Data
 @Builder
+@Accessors(chain = true)
 @NoArgsConstructor
 @AllArgsConstructor
 public class GenerateUrlLinkRequest implements Serializable {

From d470e9a6938dee78e2724d20f7f8d3c2b5043808 Mon Sep 17 00:00:00 2001
From: blankhang 
Date: Fri, 29 Sep 2023 16:28:06 +0800
Subject: [PATCH 589/622] =?UTF-8?q?:art:=20qidian=E6=A8=A1=E5=9D=97starter?=
 =?UTF-8?q?=E6=A8=A1=E5=9D=97=E9=80=82=E9=85=8Dspringboot3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pom.xml                                                  | 2 +-
 .../qidian/config/WxQidianStorageAutoConfiguration.java  | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 975da84f65..7d67b19c22 100644
--- a/pom.xml
+++ b/pom.xml
@@ -280,7 +280,7 @@
       
         redis.clients
         jedis
-        3.3.0
+        4.3.2
         provided
       
       
diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/config/WxQidianStorageAutoConfiguration.java b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/config/WxQidianStorageAutoConfiguration.java
index 84163b005a..80809fefce 100644
--- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/config/WxQidianStorageAutoConfiguration.java
+++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/qidian/config/WxQidianStorageAutoConfiguration.java
@@ -21,9 +21,9 @@
 import org.springframework.context.annotation.Configuration;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import redis.clients.jedis.JedisPool;
-import redis.clients.jedis.JedisPoolAbstract;
 import redis.clients.jedis.JedisPoolConfig;
 import redis.clients.jedis.JedisSentinelPool;
+import redis.clients.jedis.util.Pool;
 
 import java.util.Set;
 
@@ -80,7 +80,7 @@ private WxQidianConfigStorage defaultConfigStorage() {
   }
 
   private WxQidianConfigStorage jedisConfigStorage() {
-    JedisPoolAbstract jedisPool;
+    Pool jedisPool;
     if (StringUtils.isNotEmpty(redisHost) || StringUtils.isNotEmpty(redisHost2)) {
       jedisPool = getJedisPool();
     } else {
@@ -136,7 +136,7 @@ private void setWxMpInfo(WxQidianDefaultConfigImpl config) {
     }
   }
 
-  private JedisPoolAbstract getJedisPool() {
+  private Pool getJedisPool() {
     WxQidianProperties.ConfigStorage storage = wxQidianProperties.getConfigStorage();
     RedisProperties redis = storage.getRedis();
 
@@ -156,8 +156,9 @@ private JedisPoolAbstract getJedisPool() {
     config.setTestOnBorrow(true);
     config.setTestWhileIdle(true);
     if (StringUtils.isNotEmpty(redis.getSentinelIps())) {
+
       Set sentinels = Sets.newHashSet(redis.getSentinelIps().split(","));
-      return new JedisSentinelPool(redis.getSentinelName(), sentinels);
+      return new JedisSentinelPool(redis.getSentinelName(), sentinels,config);
     }
 
     return new JedisPool(config, redis.getHost(), redis.getPort(), redis.getTimeout(), redis.getPassword(),

From 85c46ebf70e08690f6cc4aadc6b5b2b5ffe54350 Mon Sep 17 00:00:00 2001
From: Chiva Chen 
Date: Fri, 29 Sep 2023 16:30:52 +0800
Subject: [PATCH 590/622] =?UTF-8?q?:new:=20#3138=20=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E5=A2=9E=E5=8A=A0=E6=8E=A5?=
 =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=BB=93=E7=AE=97=E8=B4=A6=E6=88=B7=E4=BF=AE?=
 =?UTF-8?q?=E6=94=B9=E7=94=B3=E8=AF=B7=E7=8A=B6=E6=80=81=E7=9A=84=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../SettlementApplicationResult.java          | 76 +++++++++++++++++++
 .../wxpay/service/Applyment4SubService.java   | 11 +++
 .../impl/Applyment4SubServiceImpl.java        |  7 ++
 .../impl/Applyment4SubServiceImplTest.java    |  8 +-
 4 files changed, 101 insertions(+), 1 deletion(-)
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementApplicationResult.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementApplicationResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementApplicationResult.java
new file mode 100644
index 0000000000..95b5f4d2c0
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementApplicationResult.java
@@ -0,0 +1,76 @@
+package com.github.binarywang.wxpay.bean.applyment;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+
+/**
+ * 查询结算账户修改申请状态
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class SettlementApplicationResult implements Serializable {
+  private static final long serialVersionUID = 1L;
+
+  /**
+   * 开户名称
+   */
+  @SerializedName("account_name")
+  private String accountName;
+
+  /**
+   * 账户类型
+   */
+  @SerializedName("account_type")
+  private String accountType;
+
+  /**
+   * 开户银行
+   */
+  @SerializedName("account_bank")
+  private String accountBank;
+
+  /**
+   * 开户银行全称(含支行)
+   */
+  @SerializedName("bank_name")
+  private String bankName;
+
+  /**
+   * 开户银行联行号
+   */
+  @SerializedName("bank_branch_id")
+  private String bankBranchId;
+
+  /**
+   * 银行账号
+   */
+  @SerializedName("account_number")
+  private String accountNumber;
+
+  /**
+   * 审核状态
+   */
+  @SerializedName("verify_result")
+  private String verifyResult;
+
+  /**
+   * 审核驳回原因
+   */
+  @SerializedName("verify_fail_reason")
+  private String verifyFailReason;
+
+  /**
+   * 审核结果更新时间
+   */
+  @SerializedName("verify_finish_time")
+  private String verifyFinishTime;
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java
index 8341cad1c6..61412b75d1 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java
@@ -71,4 +71,15 @@ public interface Applyment4SubService {
    */
   String modifySettlement(String subMchid, ModifySettlementRequest request) throws WxPayException;
 
+  /**
+   * 查询结算账户修改申请状态
+   * 文档详见:https://pay.weixin.qq.com/docs/partner/apis/modify-settlement/sub-merchants/get-application.html
+   * 接口链接:https://api.mch.weixin.qq.com/v3/apply4sub/sub_merchants/{sub_mchid}/application/{application_no}
+   *
+   * @param subMchid
+   * @param applicationNo
+   * @return
+   * @throws WxPayException
+   */
+  SettlementApplicationResult settlementApplication(String subMchid, String applicationNo) throws WxPayException;
 }
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java
index 8da4c40587..2ca5a1ba4f 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java
@@ -63,4 +63,11 @@ public String modifySettlement(String subMchid, ModifySettlementRequest request)
     encryptFiled(request);
     return payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
   }
+
+  @Override
+  public SettlementApplicationResult settlementApplication(String subMchid, String applicationNo) throws WxPayException {
+    String url = String.format("%s/v3/apply4sub/sub_merchants/%s/application/%s", this.payService.getPayBaseUrl(), subMchid, applicationNo);
+    String result = payService.getV3(url);
+    return GSON.fromJson(result, SettlementApplicationResult.class);
+  }
 }
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java
index da268ce9e8..25c3ec09de 100644
--- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java
@@ -79,8 +79,14 @@ public void testModifySettlement() throws WxPayException {
     applyment4SubService.modifySettlement(subMchid,modifySettlementRequest);
   }
 
+  @Test
+  public void testSettlementApplication() throws WxPayException{
+    Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService);
+    String subMchid="subMchid";
+    String applymentId="applymentId";
 
-
+    applyment4SubService.settlementApplication(subMchid, applymentId);
+  }
 
 
 

From f53eed6779d56b33da6609034bda9d108e946618 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=BC=E7=A6=84=C2=B7saber=C2=B7=E6=BD=8D=E7=B4=8D?=
 =?UTF-8?q?=E6=96=AF?= 
Date: Fri, 29 Sep 2023 16:38:41 +0800
Subject: [PATCH 591/622] =?UTF-8?q?:art:=20#3136=20=E3=80=90=E5=BE=AE?=
 =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=A0=B9=E6=8D=AE=E6=9C=80?=
 =?UTF-8?q?=E6=96=B0=E5=AE=98=E6=96=B9=E6=96=87=E6=A1=A3=E8=A1=A5=E5=85=A8?=
 =?UTF-8?q?=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* 普通服务商->特约商户进件
文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_1.shtml
文档更新时间:2023.7.14
1.SubjectTypeEnum 枚举移除SUBJECT_TYPE_MICRO小微主体类型
2.WxPayApplyment4SubCreateRequest内部类SubjectInfo对象下删除组织机构代码证OrganizationInfo对象及字段;删除MicroBizInfo对象及字段;新增finance_institution_info 对象
3.新增枚举:金融机构类型->FinanceTypeEnum
4.Applyment4SubService 新增查询结算账户修改申请状态接口
5.新增枚举:结算账号修改审核状态->SettlementVerifyStateEnum
-------------------------------------------------------------------------
服务商微信支付分
文档地址:https://pay.weixin.qq.com/docs/partner/apis/partner-weixin-pay-score/partner-service-auth/apply-partner-permissions.html
文档更新时间:2023.08.23
1.更新PartnerPayScoreService 接口文档描述
2.WxPayScoreResult新增 user_risk_level:用户分层字段;risk_level_version:分层版本字段 (商户查询与用户授权记录返回参数); 新增total_amount:总金额字段(支付分订单查询返回参数)
3.TimeRange对象新增start_time_remark:服务开始时间备注;end_time_remark:服务结束时间备注字段;
4.新增优惠详情对象:PromotionDetail;优惠商品详情对象:GoodsDetail;
5.WxPayScoreRequest 新增字段完结服务时间:completeTime;修改detail字段类型:Detail=>SyncDetail(入参里唯一用到detail字段对应的类应该是SyncDetail,而WxPayScoreResult返回的collection字段下的details字段对应的类才是Detail,之前的提交者可能写错了 详见文档:同步订单信息=>https://pay.weixin.qq.com/docs/partner/apis/partner-weixin-pay-score/partner-service-order/sync-partner-service-order.html; 查询订单=>https://pay.weixin.qq.com/docs/partner/apis/partner-weixin-pay-score/partner-service-order/get-partner-service-order.html)

* WxPayRefundV3Result.Amount 新增退款手续费字段;

* WxPayRefundQueryV3Result.Amount 新增退款手续费字段;
---
 .../SettlementModifyStateQueryResult.java     |  80 +++++++
 .../WxPayApplyment4SubCreateRequest.java      | 222 ++----------------
 .../bean/applyment/enums/FinanceTypeEnum.java |  33 +++
 .../enums/SettlementVerifyStateEnum.java      |  22 ++
 .../bean/applyment/enums/SubjectTypeEnum.java |   5 +-
 .../wxpay/bean/payscore/Detail.java           |   3 +
 .../wxpay/bean/payscore/GoodsDetail.java      |  27 +++
 .../bean/payscore/PayScoreNotifyData.java     |  15 +-
 .../wxpay/bean/payscore/PromotionDetail.java  |  41 ++++
 .../wxpay/bean/payscore/SyncDetail.java       |  24 ++
 .../wxpay/bean/payscore/TimeRange.java        |  12 +
 .../payscore/WxPartnerPayScoreRequest.java    |   2 +
 .../payscore/WxPartnerPayScoreResult.java     |   3 +
 .../bean/payscore/WxPayScoreRequest.java      |  13 +-
 .../wxpay/bean/payscore/WxPayScoreResult.java |  24 ++
 .../bean/result/WxPayRefundQueryV3Result.java |   7 +
 .../bean/result/WxPayRefundV3Result.java      |   6 +
 .../wxpay/service/Applyment4SubService.java   |  15 +-
 .../wxpay/service/PartnerPayScoreService.java | 177 +++++++-------
 .../impl/Applyment4SubServiceImpl.java        |   4 +-
 .../bean/payscore/WxPayScoreRequestTest.java  |   2 +-
 21 files changed, 416 insertions(+), 321 deletions(-)
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementModifyStateQueryResult.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/FinanceTypeEnum.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SettlementVerifyStateEnum.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/GoodsDetail.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PromotionDetail.java
 create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/SyncDetail.java

diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementModifyStateQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementModifyStateQueryResult.java
new file mode 100644
index 0000000000..41da7fee76
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/SettlementModifyStateQueryResult.java
@@ -0,0 +1,80 @@
+package com.github.binarywang.wxpay.bean.applyment;
+
+import com.github.binarywang.wxpay.bean.applyment.enums.AccountTypeEnum;
+import com.github.binarywang.wxpay.bean.applyment.enums.SettlementVerifyStateEnum;
+import com.google.gson.annotations.SerializedName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+
+import java.io.Serializable;
+
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+public class SettlementModifyStateQueryResult implements Serializable {
+
+  private static final long serialVersionUID = 464614116838248296L;
+  /**
+   * 开户名称
+   */
+  @SerializedName("account_name")
+  private String accountName;
+
+  /**
+   * 账户类型
+   */
+  @SerializedName("account_type")
+  private AccountTypeEnum accountType;
+
+  /**
+   * 开户银行
+   */
+  @SerializedName("account_bank")
+  private String accountBank;
+
+  /**
+   * 开户银行全称(含支行)
+   */
+  @SerializedName("bank_name")
+  private String bankName;
+
+  /**
+   * 开户银行联行号
+   */
+  @SerializedName("bank_branch_id")
+  private String bankBranchId;
+
+  /**
+   * 银行账号
+   */
+  @SerializedName("account_number")
+  private String accountNumber;
+
+  /**
+   * 审核状态
+   * @see SettlementVerifyStateEnum
+   */
+  @SerializedName("verify_result")
+  private SettlementVerifyStateEnum verifyResult;
+
+  /**
+   * 审核驳回原因
+   */
+  @SerializedName("verify_fail_reason")
+  private String verifyFailReason;
+
+  /**
+   * 审核结果更新时间
+   */
+  @SerializedName("verify_finish_time")
+  private String verifyFinishTime;
+
+
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java
index 52c9fb3a8c..c204e2911e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/WxPayApplyment4SubCreateRequest.java
@@ -236,18 +236,18 @@ public static class SubjectInfo implements Serializable {
     @SerializedName("certificate_info")
     private CertificateInfo certificateInfo;
 
-    /**
-     * 组织机构代码证
-     */
-    @SerializedName("organization_info")
-    private OrganizationInfo organizationInfo;
-
     /**
      * 单位证明函照片
      */
     @SerializedName("certificate_letter_copy")
     private String certificateLetterCopy;
 
+    /**
+     * 金融机构许可证信息
+     */
+    @SerializedName("finance_institution_info")
+    private FinanceInstitutionInfo financeInstitutionInfo;
+
     /**
      * 经营者/法人身份证件
      */
@@ -262,12 +262,6 @@ public static class SubjectInfo implements Serializable {
     @SpecEncrypt
     private List uboInfoList;
 
-    /**
-     * 小微辅助证明材料(subjectType为小微商户时必填)
-     */
-    @SerializedName("micro_biz_info")
-    private MicroBizInfo microBizInfo;
-
     @Data
     @Builder
     @NoArgsConstructor
@@ -381,29 +375,22 @@ public static class CertificateInfo implements Serializable {
     @NoArgsConstructor
     @AllArgsConstructor
     @Accessors(chain = true)
-    public static class OrganizationInfo implements Serializable {
-      private static final long serialVersionUID = 6497045652770046337L;
-      /**
-       * 组织机构代码证照片
-       */
-      @SerializedName("organization_copy")
-      private String organizationCopy;
-      /**
-       * 组织机构代码
-       */
-      @SerializedName("organization_code")
-      private String organizationCode;
+    public static class FinanceInstitutionInfo implements Serializable {
+
+      private static final long serialVersionUID = 6016563999835704297L;
       /**
-       * 组织机构代码证有效期开始日期
+       * 金融机构类型
+       *
+       * @see FinanceTypeEnum
        */
-      @SerializedName("org_period_begin")
-      private String orgPeriodBegin;
+      @SerializedName("finance_type")
+      private FinanceTypeEnum financeType;
+
       /**
-       * 组织机构代码证有效期结束日期
+       * 金融机构许可证图片
        */
-      @SerializedName("org_period_end")
-      private String orgPeriodEnd;
-
+      @SerializedName("finance_license_pics")
+      private List financeLicensePics;
     }
 
     @Data
@@ -605,179 +592,6 @@ public static class UboInfo implements Serializable {
       @SerializedName("ubo_period_end")
       private String uboPeriodEnd;
     }
-
-    @Data
-    @Builder
-    @NoArgsConstructor
-    @AllArgsConstructor
-    @Accessors(chain = true)
-    public static class MicroBizInfo implements Serializable {
-      private static final long serialVersionUID = -5679477993681265764L;
-      /**
-       * 小微经营类型
-       */
-      @SerializedName("micro_biz_type")
-      private MicroBizTypeEnum microBizType;
-
-      /**
-       * 门店场所---经营类型为“门店场所”时填写
-       */
-      @SerializedName("micro_store_info")
-      private MicroStoreInfo microStoreInfo;
-
-      /**
-       * 经营类型为“流动经营/便民服务”时填写
-       */
-      @SerializedName("micro_mobile_info")
-      private MicroMobileInfo microMobileInfo;
-
-      /**
-       * 经营类型为“线上商品/服务交易”时填写
-       */
-      @SerializedName("micro_online_info")
-      private MicroOnlineInfo microOnlineInfo;
-
-      /**
-       * 门店场所
-       */
-      @Data
-      @Builder
-      @NoArgsConstructor
-      @AllArgsConstructor
-      @Accessors(chain = true)
-      public static class MicroStoreInfo implements Serializable {
-        private static final long serialVersionUID = 5277440587305558389L;
-        /**
-         * 门店名称
-         */
-        @SerializedName("micro_name")
-        private String microName;
-        /**
-         * 门店省市编码 填写门店省市编码,只能由数字组成,详细参见《微信支付提供的省市对照表》
-         *
-         * @see 下载微信支付提供的省市对照表
-         */
-        @SerializedName("micro_address_code")
-        private String microAddressCode;
-        /**
-         * 门店地址(填写店铺详细地址,具体区/县及街道门牌号或大厦楼层)
-         */
-        @SerializedName("micro_address")
-        private String microAddress;
-        /**
-         * 门店门头照片
-         * 
-         * 1、提交门店门口照片,要求招牌清晰可见
-         * 2、可上传1张图片,请填写通过《图片上传API》预先上传图片生成好的MediaID
-         * 
-         *
-         * @see 图片上传API
-         */
-        @SerializedName("store_entrance_pic")
-        private String storeEntrancePic;
-        /**
-         * 店内环境照片
-         * 
-         * 1、提交店内环境照片
-         * 2、可上传1张图片,请填写通过《图片上传API》预先上传图片生成好的MediaID
-         * 
-         *
-         * @see 图片上传API
-         */
-        @SerializedName("micro_indoor_copy")
-        private String microIndoorCopy;
-        /**
-         * 门店经度
-         */
-        @SerializedName("store_longitude")
-        private String storeLongitude;
-        /**
-         * 门店纬度
-         */
-        @SerializedName("store_latitude")
-        private String storeLatitude;
-      }
-
-      /**
-       * 流动经营/便民服务
-       */
-      @Data
-      @Builder
-      @NoArgsConstructor
-      @AllArgsConstructor
-      @Accessors(chain = true)
-      public static class MicroMobileInfo implements Serializable {
-        private static final long serialVersionUID = -1308090894511066935L;
-        /**
-         * 经营/服务名称
-         */
-        @SerializedName("micro_mobile_name")
-        private String microMobileName;
-        /**
-         * 经营/服务所在地省市
-         */
-        @SerializedName("micro_mobile_city")
-        private String microMobileCity;
-        /**
-         * 经营/服务所在地(不含省市) 填写“无"
-         */
-        @SerializedName("micro_mobile_address")
-        private String microMobileAddress;
-        /**
-         * 经营/服务现场照片
-         * 
-         * 1、提交经营/服务现场照片
-         * 2、可上传多张图片,请填写通过《图片上传API》预先上传图片生成好的MediaID
-         * 
-         *
-         * @see 图片上传API
-         */
-        @SerializedName("micro_mobile_pics")
-        private String microMobilePics;
-      }
-
-      /**
-       * 线上商品/服务交易
-       */
-      @Data
-      @Builder
-      @NoArgsConstructor
-      @AllArgsConstructor
-      @Accessors(chain = true)
-      public static class MicroOnlineInfo implements Serializable {
-        private static final long serialVersionUID = 9029168841403055743L;
-        /**
-         * 线上店铺名称
-         */
-        @SerializedName("micro_online_store")
-        private String microOnlineStore;
-        /**
-         * 电商平台名称
-         */
-        @SerializedName("micro_ec_name")
-        private String microEcName;
-        /**
-         * 店铺二维码
-         * 
-         * 1、店铺二维码或店铺链接二选一必填
-         * 2、可上传多张图片,请填写通过《图片上传API》预先上传图片生成好的MediaID
-         * 
-         *
-         * @see 图片上传API
-         */
-        @SerializedName("micro_qrcode")
-        private String microQrcode;
-        /**
-         * 店铺二维码
-         * 
-         * 1、店铺二维码或店铺链接二选一必填
-         * 2、请填写店铺主页链接,需符合网站规范
-         * 
-         */
-        @SerializedName("micro_link")
-        private String microLink;
-      }
-    }
   }
 
   /**
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/FinanceTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/FinanceTypeEnum.java
new file mode 100644
index 0000000000..59a2d2acd9
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/FinanceTypeEnum.java
@@ -0,0 +1,33 @@
+package com.github.binarywang.wxpay.bean.applyment.enums;
+
+/**
+ * 金融机构类型
+ **/
+public enum FinanceTypeEnum {
+
+  /**
+   * 银行业, 适用于商业银行、政策性银行、农村合作银行、村镇银行、开发性金融机构等
+   */
+  BANK_AGENT,
+
+  /**
+   * 支付机构, 适用于非银行类支付机构
+   */
+  PAYMENT_AGENT,
+
+  /**
+   * 保险业, 适用于保险、保险中介、保险代理、保险经纪等保险类业务
+   */
+  INSURANCE,
+
+  /**
+   * 交易及结算类金融机构, 适用于交易所、登记结算类机构、银行卡清算机构、资金清算中心等
+   */
+  TRADE_AND_SETTLE,
+
+  /**
+   * 其他金融机构, 适用于财务公司、信托公司、金融资产管理公司、金融租赁公司、汽车金融公司、贷款公司、货币经纪公司、消费金融公司、证券业、金融控股公司、股票、期货、货币兑换、小额贷款公司、金融资产管理、担保公司、商业保理公司、典当行、融资租赁公司、财经咨询等其他金融业务
+   */
+  OTHER,
+  ;
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SettlementVerifyStateEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SettlementVerifyStateEnum.java
new file mode 100644
index 0000000000..9ff3952adf
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SettlementVerifyStateEnum.java
@@ -0,0 +1,22 @@
+package com.github.binarywang.wxpay.bean.applyment.enums;
+
+/**
+ * 结算账户修改审核状态
+ **/
+public enum SettlementVerifyStateEnum {
+  /**
+   * 审核成功
+   */
+  AUDIT_SUCCESS,
+
+  /**
+   * 审核中
+   */
+  AUDITING,
+
+  /**
+   * 审核驳回
+   */
+  AUDIT_FAIL,
+  ;
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SubjectTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SubjectTypeEnum.java
index 11020b9267..79950fd792 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SubjectTypeEnum.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyment/enums/SubjectTypeEnum.java
@@ -9,6 +9,7 @@
  * @author zhouyongshen
  * @author 狂龙骄子
  * @since 2023.01.14 新增{@link #SUBJECT_TYPE_GOVERNMENT}
+ * @since 2023.09.19 移除SUBJECT_TYPE_MICRO小微主体
  * @see 服务商平台>>商户进件>>特约商户进件>>提交申请单>>请求参数>>主体资料>>主体类型
  */
 public enum SubjectTypeEnum {
@@ -32,9 +33,5 @@ public enum SubjectTypeEnum {
    * (社会组织):包括社会团体、民办非企业、基金会、基层群众性自治组织、农村集体经济组织等组织。
    */
   SUBJECT_TYPE_OTHERS,
-  /**
-   * (小微):无营业执照、免办理工商注册登记的实体商户
-   */
-  SUBJECT_TYPE_MICRO;
 
 }
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java
index 94f62fbead..d576a97c34 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Detail.java
@@ -5,6 +5,7 @@
 import lombok.NoArgsConstructor;
 
 import java.io.Serializable;
+import java.util.List;
 
 /**
  * 明细.
@@ -33,4 +34,6 @@ public class Detail implements Serializable {
   private String paidTime;
   @SerializedName("transaction_id")
   private String transactionId;
+  @SerializedName("promotion_detail")
+  private List promotionDetail;
 }
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/GoodsDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/GoodsDetail.java
new file mode 100644
index 0000000000..694c99f1a1
--- /dev/null
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/GoodsDetail.java
@@ -0,0 +1,27 @@
+package com.github.binarywang.wxpay.bean.payscore;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 优惠商品信息
+ **/
+@Data
+@NoArgsConstructor
+public class GoodsDetail implements Serializable {
+
+  private static final long serialVersionUID = 7139782546598279686L;
+  @SerializedName("goods_id")
+  private String goodsId;
+  @SerializedName("quantity")
+  private Integer  quantity;
+  @SerializedName("unit_price")
+  private Integer unitPrice;
+  @SerializedName("discount_amount")
+  private Integer  discountAmount;
+  @SerializedName("goods_remark")
+  private String goodsRemark;
+}
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java
index 9711645ecc..9aea8e631e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java
@@ -29,17 +29,22 @@ public class PayScoreNotifyData implements Serializable {
   @SerializedName("create_time")
   private String createTime;
 
+  /**
+   * 通知类型
+   * 

1、授权成功通知的类型为PAYSCORE.USER_OPEN_SERVICE

+ *

2、解除授权成功通知的类型为PAYSCORE.USER_CLOSE_SERVICE

+ *

3、用户确认成功通知的类型为PAYSCORE.USER_CONFIRM

+ *

4、支付成功通知的类型为PAYSCORE.USER_PAID

+ */ + @SerializedName("event_type") + private String eventType; + /** * 通知数据类型 */ @SerializedName("resource_type") private String resourceType; - /** - * 通知类型 - */ - @SerializedName("event_type") - private String eventType; /** * 通知数据 diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PromotionDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PromotionDetail.java new file mode 100644 index 0000000000..78f88cc2ed --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PromotionDetail.java @@ -0,0 +1,41 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * 优惠详情 + **/ +@Data +@NoArgsConstructor +public class PromotionDetail implements Serializable { + + private static final long serialVersionUID = -4405156288317582934L; + + @SerializedName("coupon_id") + private String couponId; + @SerializedName("name") + private String name; + @SerializedName("scope") + private String scope; + @SerializedName("type") + private String type; + @SerializedName("amount") + private Integer amount; + @SerializedName("stock_id") + private String stockId; + @SerializedName("wechatpay_contribute") + private Integer wechatpayContribute; + @SerializedName("merchant_contribute") + private Integer merchantContribute; + @SerializedName("other_contribute") + private Integer otherContribute; + @SerializedName("currency") + private String currency; + @SerializedName("goods_detail") + private List goodsDetail; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/SyncDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/SyncDetail.java new file mode 100644 index 0000000000..8675299c88 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/SyncDetail.java @@ -0,0 +1,24 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @description 内容信息详情 + * createTime: 2023/9/19 16:39 + **/ +@Data +@NoArgsConstructor +public class SyncDetail implements Serializable { + + private static final long serialVersionUID = 8173356554917822934L; + @SerializedName("seq") + private int seq; + @SerializedName("paid_time") + private String paidTime; + @SerializedName("paid_amount") + private Integer paidAmount; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java index 034609f44c..3062f87212 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/TimeRange.java @@ -26,4 +26,16 @@ public class TimeRange implements Serializable { private String startTime; @SerializedName("end_time") private String endTime; + + /** + * 服务开始时间备注 + */ + @SerializedName("start_time_remark") + private String startTimeRemark; + + /** + * 服务结束时间备注 + */ + @SerializedName("end_time_remark") + private String endTimeRemark; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java index f2c977e37d..a29e08bd92 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreRequest.java @@ -37,6 +37,8 @@ public String toJson() { /** * 子商户公众号下的用户表示sub_openid + * 微信用户在子商户公众号sub_appid下的唯一标识; + * need_user_confirm为false时,1. openid与sub_openid必须填写并且只能填写一个 2. 如果填写了sub_openid,那么sub_appid必填 */ @SerializedName("sub_openid") private String subOpenid; diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java index 45c7032d1a..cc80cc08f4 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreResult.java @@ -24,6 +24,9 @@ public static WxPartnerPayScoreResult fromJson(String json) { @SerializedName("sub_mchid") private String subMchid; + /** + * 子商户公众号下的用户标识 + */ @SerializedName("sub_openid") private String subOpenId; diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java index 2e397cdbd1..3c58a62e80 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequest.java @@ -80,8 +80,19 @@ public String toJson() { @SerializedName("type") private String type; @SerializedName("detail") - private Detail detail; + private SyncDetail detail; @SerializedName("authorization_code") private String authorizationCode; + /** + * 完结服务时间 + * 时间使用ISO 8601所定义的格式。 + * 示例: + * - YYYY-MM-DDTHH:mm:ss.SSSZ + * - YYYY-MM-DDTHH:mm:ssZ + * - YYYY-MM-DDTHH:mm:ss.SSS+08:00 + * - YYYY-MM-DDTHH:mm:ss+08:00 + */ + @SerializedName("complete_time") + private String completeTime; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java index 2f16d2148d..31942a954b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreResult.java @@ -103,6 +103,30 @@ public static WxPayScoreResult fromJson(String json) { @SerializedName("authorization_success_time") private String authorizationSuccessTime; + /** + * 用户分层 + */ + @SerializedName("user_risk_level") + private Integer userRiskLevel; + + /** + * 分层版本 + */ + @SerializedName("risk_level_version") + private Integer riskLevelVersion; + + /** + * 总金额 + */ + @SerializedName("total_amount") + private Integer totalAmount; + + /** + * 渠道商商户号 + */ + @SerializedName("channel_id") + private String channelId; + /** * 收款信息 */ diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundQueryV3Result.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundQueryV3Result.java index c203d75699..2ebd035a74 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundQueryV3Result.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundQueryV3Result.java @@ -17,6 +17,7 @@ @Data @NoArgsConstructor public class WxPayRefundQueryV3Result implements Serializable { + private static final long serialVersionUID = 532057810377362827L; /** *
    * 字段名:微信支付退款号
@@ -311,6 +312,12 @@ public static class Amount implements Serializable {
      */
     @SerializedName(value = "currency")
     private String currency;
+
+    /**
+     * 手续费退款金额
+     */
+    @SerializedName(value = "refund_fee")
+    private Integer refundFee;
   }
 
   @Data
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundV3Result.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundV3Result.java
index 8930bac83c..eed6ff254e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundV3Result.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayRefundV3Result.java
@@ -313,6 +313,12 @@ public static class Amount implements Serializable {
      */
     @SerializedName(value = "currency")
     private String currency;
+
+    /**
+     * 手续费退款金额
+     */
+    @SerializedName(value = "refund_fee")
+    private Integer refundFee;
   }
 
   @Data
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java
index 61412b75d1..c0b443a0da 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Applyment4SubService.java
@@ -73,13 +73,16 @@ public interface Applyment4SubService {
 
   /**
    * 查询结算账户修改申请状态
-   * 文档详见:https://pay.weixin.qq.com/docs/partner/apis/modify-settlement/sub-merchants/get-application.html
-   * 接口链接:https://api.mch.weixin.qq.com/v3/apply4sub/sub_merchants/{sub_mchid}/application/{application_no}
    *
-   * @param subMchid
-   * @param applicationNo
-   * @return
+   * @param subMchid      特约商户号
+   * @param applicationNo 修改结算账户申请单号
+   *
+   * @return {@link SettlementModifyStateQueryResult}
    * @throws WxPayException
+   * @apiNote 查询结算账户修改申请状态
+   *
+   * 

接口链接:https://api.mch.weixin.qq.com/v3/apply4sub/sub_merchants/{sub_mchid}/application/{applicationNo}

*/ - SettlementApplicationResult settlementApplication(String subMchid, String applicationNo) throws WxPayException; + SettlementModifyStateQueryResult querySettlementModifyStatusByApplicationNo(String subMchid, String applicationNo) throws WxPayException; + } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java index 1609929949..c5c4e06796 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreService.java @@ -1,7 +1,10 @@ package com.github.binarywang.wxpay.service; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; -import com.github.binarywang.wxpay.bean.payscore.*; +import com.github.binarywang.wxpay.bean.payscore.PayScoreNotifyData; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreRequest; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreResult; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerUserAuthorizationStatusNotifyResult; import com.github.binarywang.wxpay.exception.WxPayException; /** @@ -18,29 +21,26 @@ public interface PartnerPayScoreService { /** - *
-   * 支付分商户预授权API
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_1.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions
-   * 
+ * 商户预授权 + * @param request {@link WxPartnerPayScoreRequest} 请求对象 * - * @param request 请求对象 * @return WxPartnerPayScoreResult wx partner payscore result * @throws WxPayException the wx pay exception + * @apiNote 商户预授权 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions */ WxPartnerPayScoreResult permissions(WxPartnerPayScoreRequest request) throws WxPayException; /** - *
-   * 支付分查询与用户授权记录(授权协议号)API
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_2.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/authorization-code/{authorization_code}
-   * 
+ * 商户查询与用户授权记录 (authorization_code) + * @apiNote 商户查询与用户授权记录 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/authorization-code/{authorization_code} + * + * @param serviceId 服务id + * @param subMchid 特约子商户号 + * @param authorizationCode 授权协议号 * - * @param serviceId - * @param subMchid - * @param authorizationCode * @return WxPayScoreResult wx partner payscore result * @throws WxPayException the wx pay exception */ @@ -49,55 +49,53 @@ WxPartnerPayScoreResult permissionsQueryByAuthorizationCode(String serviceId, St /** - *
-   * 解除用户授权关系(授权协议号)API
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_4.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/authorization-code/{authorization_code}/terminate
-   * 
+ * 商户解除用户授权关系(authorization_code) + * + * @param serviceId 服务id + * @param subMchid 特约子商户号 + * @param authorizationCode 授权协议号 + * @param reason 撤销原因 * - * @param serviceId - * @param subMchid - * @param authorizationCode - * @param reason * @return WxPartnerPayScoreResult wx partner payscore result * @throws WxPayException the wx pay exception + * @apiNote : 商户解除用户授权关系 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/authorization-code/{authorization_code}/terminate */ WxPartnerPayScoreResult permissionsTerminateByAuthorizationCode(String serviceId, String subMchid, String authorizationCode, String reason) throws WxPayException; /** - *
-   * 支付分查询与用户授权记录(openid)API
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_3.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/search
-   * 
+ * 商户查询与用户授权记录(OpenID) + * + * @param serviceId 服务id + * @param subMchid 特约子商户号 + * @param appId 服务商的公众号ID + * @param subAppid 子商户的公众号ID + * @param openId 服务商的用户标识 + * @param subOpenid 子商户的用户标识 * - * @param serviceId - * @param subMchid - * @param subAppid - * @param openId - * @param subOpenid * @return WxPayScoreResult wx partner payscore result * @throws WxPayException the wx pay exception + * @apiNote 商户查询与用户授权记录 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/search */ WxPartnerPayScoreResult permissionsQueryByOpenId(String serviceId, String appId, String subMchid, String subAppid, String openId, String subOpenid) throws WxPayException; /** - *
-   * 解除用户授权关系(openid)API
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter5_5.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/openid/{openid}/terminate
-   * 
+ * 商户解除用户授权关系API(OpenID) + * @apiNote 商户解除用户授权关系API + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/permissions/terminate * - * @param serviceId - * @param subMchid - * @param subAppid - * @param openId - * @param subOpenid - * @param reason + * @param serviceId 服务id + * @param subMchid 特约子商户号 + * @param appId 服务商的公众号ID + * @param subAppid 子商户的公众号ID + * @param openId 服务商的用户标识 + * @param subOpenid 子商户的用户标识 + * @param reason 取消理由 * @return WxPayScoreResult wx partner payscore result * @throws WxPayException the wx pay exception */ @@ -106,106 +104,96 @@ WxPartnerPayScoreResult permissionsTerminateByOpenId(String serviceId, String ap /** - *
    * 支付分创建订单API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_1.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder
-   * 
* * @param request 请求对象 + * * @return WxPayScoreResult wx partner payscore result * @throws WxPayException the wx pay exception + * @apiNote 创建订单 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder */ WxPartnerPayScoreResult createServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; /** - *
    * 支付分查询订单API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_2.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder
-   * 
* - * @param serviceId - * @param subMchid - * @param outOrderNo the out order no - * @param queryId the query id + * @param serviceId 服务ID + * @param subMchid 子商户商户号 + * @param outOrderNo 商户订单号 + * @param queryId 单据查询ID + * * @return the wx pay score result * @throws WxPayException the wx pay exception + * @apiNote 查询订单 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder */ WxPartnerPayScoreResult queryServiceOrder(String serviceId, String subMchid, String outOrderNo, String queryId) throws WxPayException; /** - *
    * 支付分取消订单API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_3.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/cancel
-   * 
- *

* - * @param serviceId - * @param subMchid - * @param outOrderNo the out order no - * @param reason the reason + * @param serviceId 服务ID + * @param subMchid 子商户商户号 + * @param outOrderNo 商户订单号 + * @param reason 撤销原因 + * * @return com.github.binarywang.wxpay.bean.payscore.WxPayScoreResult wx pay score result * @throws WxPayException the wx pay exception + * @apiNote 取消订单 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/cancel */ WxPartnerPayScoreResult cancelServiceOrder(String serviceId, String appId, String subMchid, String outOrderNo, String reason) throws WxPayException; /** - *

    * 支付分修改订单金额API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_4.shtml
-   * 接口链接:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/modify
-   * 
- *

* * @param request the request + * * @return the wx pay score result * @throws WxPayException the wx pay exception + * @apiNote 修改订单金额 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/modify */ WxPartnerPayScoreResult modifyServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; /** - *

    * 支付分完结订单API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_5.shtml
-   * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/complete
-   * 
* * @param request the request + * * @return the wx pay score result * @throws WxPayException the wx pay exception + * @apiNote 完结订单 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/complete */ void completeServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; /** - *
-   * 商户发起催收扣款API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_6.shtml
-   * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/pay
+   * 订单收款
    *
-   * 
+ * @param serviceId 服务ID + * @param subMchid 子商户商户号 + * @param outOrderNo 商户订单号 * - * @param serviceId - * @param subMchid - * @param outOrderNo the out order no * @return the wx pay score result * @throws WxPayException the wx pay exception + * @apiNote 订单收款 + * 请求URL:https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/pay */ WxPartnerPayScoreResult payServiceOrder(String serviceId, String appId, String subMchid, String outOrderNo) throws WxPayException; /** - *
-   * 支付分订单收款API.
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_partner/chapter3_7.shtml
-   * 请求URL: https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/sync
-   * 
+ * 同步订单信息 * * @param request the request + * * @return the wx pay score result * @throws WxPayException the wx pay exception + * @apiNote 同步订单信息 + * 请求URL: https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/{out_order_no}/sync */ WxPartnerPayScoreResult syncServiceOrder(WxPartnerPayScoreRequest request) throws WxPayException; @@ -236,23 +224,19 @@ WxPartnerPayScoreResult cancelServiceOrder(String serviceId, String appId, Strin WxPartnerPayScoreResult queryServiceAccountState(String outApplyNo) throws WxPayException; /** - *
-   * 授权/解除授权服务回调数据处理
-   * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter6_2_23.shtml
-   * 
+ * 授权/解除授权服务回调通知 * * @param notifyData 通知数据 * @param header 通知头部数据,不传则表示不校验头 + * * @return 解密后通知数据 return user authorization status notify result * @throws WxPayException the wx pay exception + * @apiNote 授权/解除授权服务回调通知 */ WxPartnerUserAuthorizationStatusNotifyResult parseUserAuthorizationStatusNotifyResult(String notifyData, SignatureHeader header) throws WxPayException; /** - *
    * 支付分回调内容解析方法
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter6_2_9.shtml
-   * 
* * @param data the data * @return the wx pay score result @@ -260,10 +244,7 @@ WxPartnerPayScoreResult cancelServiceOrder(String serviceId, String appId, Strin PayScoreNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException; /** - *
    * 支付分回调NotifyData解密resource
-   * 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
-   * 
* * @param data the data * @return the wx pay score result diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java index 2ca5a1ba4f..7fd655824a 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImpl.java @@ -65,9 +65,9 @@ public String modifySettlement(String subMchid, ModifySettlementRequest request) } @Override - public SettlementApplicationResult settlementApplication(String subMchid, String applicationNo) throws WxPayException { + public SettlementModifyStateQueryResult querySettlementModifyStatusByApplicationNo(String subMchid, String applicationNo) throws WxPayException { String url = String.format("%s/v3/apply4sub/sub_merchants/%s/application/%s", this.payService.getPayBaseUrl(), subMchid, applicationNo); String result = payService.getV3(url); - return GSON.fromJson(result, SettlementApplicationResult.class); + return GSON.fromJson(result, SettlementModifyStateQueryResult.class); } } diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java index 757f2aafa3..5d29f15a76 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/payscore/WxPayScoreRequestTest.java @@ -14,7 +14,7 @@ public void testToJson() { .appid("123") .serviceId("345") .serviceIntroduction("租借服务") - .timeRange(new TimeRange("OnAccept", "20200520225840")) + .timeRange(new TimeRange("20230901011023", "20230930235959","开始时间","结束时间")) .build(); System.out.println(request.toJson()); /* { From d4bc91a102ad47c393379ad146128af5b1532ed6 Mon Sep 17 00:00:00 2001 From: hellocder <13673609502@139.com> Date: Fri, 29 Sep 2023 08:43:21 +0000 Subject: [PATCH 592/622] =?UTF-8?q?:art:=20=E3=80=90=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91=E5=A2=9E=E5=8A=A0=E9=80=80=E8=B4=A7=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E7=BB=91=E5=AE=9A/=E8=A7=A3=E7=BB=91=E7=89=A9?= =?UTF-8?q?=E6=B5=81=E8=B4=A6=E5=8F=B7=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/WxMaExpressDeliveryReturnService.java | 22 +++++ .../wx/miniapp/api/WxMaExpressService.java | 3 +- .../wx/miniapp/api/WxMaMediaService.java | 2 +- .../wx/miniapp/api/WxMaOpenApiService.java | 4 +- .../wx/miniapp/api/WxMaService.java | 1 + .../miniapp/api/impl/BaseWxMaServiceImpl.java | 6 ++ .../WxMaExpressDeliveryReturnServiceImpl.java | 36 +++++++ .../api/impl/WxMaExpressServiceImpl.java | 5 +- .../WxMaImmediateDeliveryServiceImpl.java | 12 +-- .../WxMaExpressDeliveryReturnAddRequest.java | 93 +++++++++++++++++++ .../request/WxMaExpressReturnOrder.java | 40 ++++++++ .../express/result/WxMaExpressInfoResult.java | 19 ++++ .../result/WxMaExpressOrderInfoResult.java | 11 +-- .../result/WxMaExpressReturnInfoResult.java | 68 ++++++++++++++ .../miniapp/constant/WxMaApiUrlConstants.java | 14 +++ .../wx/miniapp/test/ApiTestModule.java | 2 +- .../impl/Applyment4SubServiceImplTest.java | 39 ++++---- 17 files changed, 334 insertions(+), 43 deletions(-) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressDeliveryReturnService.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressDeliveryReturnServiceImpl.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressDeliveryReturnAddRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressReturnOrder.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressInfoResult.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressReturnInfoResult.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressDeliveryReturnService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressDeliveryReturnService.java new file mode 100644 index 0000000000..4254d18dfe --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressDeliveryReturnService.java @@ -0,0 +1,22 @@ +package cn.binarywang.wx.miniapp.api; + +import cn.binarywang.wx.miniapp.bean.express.request.WxMaExpressDeliveryReturnAddRequest; +import cn.binarywang.wx.miniapp.bean.express.result.WxMaExpressReturnInfoResult; +import me.chanjar.weixin.common.error.WxErrorException; + +/** + * 退货组件 + */ +public interface WxMaExpressDeliveryReturnService { + + /** + * 获取支持的快递公司列表 + */ + String ADD_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/add"; + String GET_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/get"; + String UNBIND_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/unbind"; + + WxMaExpressReturnInfoResult addDeliveryReturn(WxMaExpressDeliveryReturnAddRequest wxMaExpressDeliveryReturnAddRequest) throws WxErrorException; + WxMaExpressReturnInfoResult getDeliveryReturn(String returnId) throws WxErrorException; + WxMaExpressReturnInfoResult unbindDeliveryReturn(String returnId) throws WxErrorException; +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java index cbac84c744..72575db1d0 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressService.java @@ -5,6 +5,7 @@ import cn.binarywang.wx.miniapp.bean.express.WxMaExpressPath; import cn.binarywang.wx.miniapp.bean.express.WxMaExpressPrinter; import cn.binarywang.wx.miniapp.bean.express.request.*; +import cn.binarywang.wx.miniapp.bean.express.result.WxMaExpressInfoResult; import cn.binarywang.wx.miniapp.bean.express.result.WxMaExpressOrderInfoResult; import me.chanjar.weixin.common.error.WxErrorException; @@ -44,7 +45,7 @@ public interface WxMaExpressService { * @param wxMaExpressBindAccountRequest 物流账号对象 * @throws WxErrorException 请求失败时返回 */ - void bindAccount(WxMaExpressBindAccountRequest wxMaExpressBindAccountRequest) throws WxErrorException; + WxMaExpressInfoResult bindAccount(WxMaExpressBindAccountRequest wxMaExpressBindAccountRequest) throws WxErrorException; /** * 获取电子面单余额。仅在使用加盟类快递公司时,才可以调用。 diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMediaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMediaService.java index 9cf42599af..519c5ef879 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMediaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaMediaService.java @@ -46,7 +46,7 @@ public interface WxMaMediaService { * @param inputStream 输入流 * @return the wx media upload result * @throws WxErrorException the wx error exception - * @see #uploadMedia(java.lang.String, java.io.File) #uploadMedia(java.lang.String, java.io.File) + * @see #uploadMedia(String, File) #uploadMedia(java.lang.String, java.io.File) */ WxMediaUploadResult uploadMedia(String mediaType, String fileType, InputStream inputStream) throws WxErrorException; diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaOpenApiService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaOpenApiService.java index 301884362f..438c43c6b8 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaOpenApiService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaOpenApiService.java @@ -19,7 +19,7 @@ public interface WxMaOpenApiService { * * @return 是否成功 * @throws WxErrorException the wx error exception - * @apiNote !!! 单小程序直接调用该方法 , 如多个appid调用此方法前请调用 {@link cn.binarywang.wx.miniapp.api.WxMaService#switchoverTo} 切换appid !!! + * @apiNote !!! 单小程序直接调用该方法 , 如多个appid调用此方法前请调用 {@link WxMaService#switchoverTo} 切换appid !!! * @code wxMaService.getWxMaOpenApiService().clearQuota() //单个 * @code wxMaService.switchoverTo(" appid ").getWxMaOpenApiService().clearQuota() //多个 * @see 注意事项参考微信文档 @@ -55,7 +55,7 @@ public interface WxMaOpenApiService { * * @return 是否成功 * @throws WxErrorException 微信异常 - * @apiNote !!! 单小程序直接调用该方法 , 如多个appid调用此方法前请调用 {@link cn.binarywang.wx.miniapp.api.WxMaService#switchoverTo} 切换appid!!! + * @apiNote !!! 单小程序直接调用该方法 , 如多个appid调用此方法前请调用 {@link WxMaService#switchoverTo} 切换appid!!! * 参考示例 * @code wxMaService.getWxMaOpenApiService().clearQuotaByAppSecret() //单个 * @code wxMaService.switchoverTo(" appid ").getWxMaOpenApiService().clearQuotaByAppSecret() //多个 diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java index 0e4b6eb9ad..4dc51f7485 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaService.java @@ -554,4 +554,5 @@ public interface WxMaService extends WxService { * @return getWxMaXPayService */ WxMaXPayService getWxMaXPayService(); + WxMaExpressDeliveryReturnService getWxMaExpressDeliveryReturnService(); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index 4feac0fad2..0c9aa9d623 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -91,6 +91,7 @@ public abstract class BaseWxMaServiceImpl implements WxMaService, RequestH private final WxMaOpenApiService wxMaOpenApiService = new WxMaOpenApiServiceImpl(this); private final WxMaVodService wxMaVodService = new WxMaVodServiceImpl(this); private final WxMaXPayService wxMaXPayService = new WxMaXPayServiceImpl(this); + private final WxMaExpressDeliveryReturnService wxMaExpressDeliveryReturnService = new WxMaExpressDeliveryReturnServiceImpl(this); private Map configMap = new HashMap<>(); private int retrySleepMillis = 1000; @@ -677,4 +678,9 @@ public WxMaVodService getWxMaVodService() { public WxMaXPayService getWxMaXPayService() { return this.wxMaXPayService; } + + @Override + public WxMaExpressDeliveryReturnService getWxMaExpressDeliveryReturnService(){ + return this.wxMaExpressDeliveryReturnService; + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressDeliveryReturnServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressDeliveryReturnServiceImpl.java new file mode 100644 index 0000000000..aef8a2cad2 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressDeliveryReturnServiceImpl.java @@ -0,0 +1,36 @@ +package cn.binarywang.wx.miniapp.api.impl; + +import cn.binarywang.wx.miniapp.api.WxMaExpressDeliveryReturnService; +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.bean.express.request.WxMaExpressDeliveryReturnAddRequest; +import cn.binarywang.wx.miniapp.bean.express.result.WxMaExpressReturnInfoResult; +import com.google.gson.JsonObject; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.error.WxErrorException; + +@RequiredArgsConstructor +public class WxMaExpressDeliveryReturnServiceImpl implements WxMaExpressDeliveryReturnService { + private final WxMaService service; + + @Override + public WxMaExpressReturnInfoResult addDeliveryReturn(WxMaExpressDeliveryReturnAddRequest wxMaExpressDeliveryReturnAddRequest) throws WxErrorException { + String result= this.service.get(ADD_DELIVERY_RETURN_URL,wxMaExpressDeliveryReturnAddRequest.toJson()); + return WxMaExpressReturnInfoResult.fromJson(result); + } + + @Override + public WxMaExpressReturnInfoResult getDeliveryReturn(String returnId) throws WxErrorException { + JsonObject param = new JsonObject(); + param.addProperty("return_id",returnId); + String result= this.service.get(GET_DELIVERY_RETURN_URL,param.toString()); + return WxMaExpressReturnInfoResult.fromJson(result); + } + + @Override + public WxMaExpressReturnInfoResult unbindDeliveryReturn(String returnId) throws WxErrorException { + JsonObject param = new JsonObject(); + param.addProperty("return_id",returnId); + String result= this.service.get(UNBIND_DELIVERY_RETURN_URL,param.toString()); + return WxMaExpressReturnInfoResult.fromJson(result); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressServiceImpl.java index 17568c9e8a..ba773d6f78 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaExpressServiceImpl.java @@ -7,6 +7,7 @@ import cn.binarywang.wx.miniapp.bean.express.WxMaExpressPath; import cn.binarywang.wx.miniapp.bean.express.WxMaExpressPrinter; import cn.binarywang.wx.miniapp.bean.express.request.*; +import cn.binarywang.wx.miniapp.bean.express.result.WxMaExpressInfoResult; import cn.binarywang.wx.miniapp.bean.express.result.WxMaExpressOrderInfoResult; import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; import lombok.RequiredArgsConstructor; @@ -39,8 +40,8 @@ public List getAllAccount() throws WxErrorException { } @Override - public void bindAccount(WxMaExpressBindAccountRequest wxMaExpressBindAccountRequest) throws WxErrorException { - this.service.post(BIND_ACCOUNT_URL, wxMaExpressBindAccountRequest.toJson()); + public WxMaExpressInfoResult bindAccount(WxMaExpressBindAccountRequest wxMaExpressBindAccountRequest) throws WxErrorException { + return WxMaExpressInfoResult.fromJson(this.service.post(BIND_ACCOUNT_URL, wxMaExpressBindAccountRequest.toJson())); } @Override diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java index e0843c47c0..b6c3814f62 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaImmediateDeliveryServiceImpl.java @@ -59,7 +59,7 @@ public class WxMaImmediateDeliveryServiceImpl implements WxMaImmediateDeliverySe */ @Override public BindAccountResponse getBindAccount() throws WxErrorException { - return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.GET_BIND_ACCOUNT, "{}"), + return this.parse(this.wxMaService.post(InstantDelivery.GET_BIND_ACCOUNT, "{}"), BindAccountResponse.class); } @@ -76,7 +76,7 @@ public BindAccountResponse getBindAccount() throws WxErrorException { @Override public AddOrderResponse addOrder(final AddOrderRequest request) throws WxErrorException { request.getDeliverySign(); - return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.PlaceAnOrder.ADD_ORDER, request), + return this.parse(this.wxMaService.post(InstantDelivery.PlaceAnOrder.ADD_ORDER, request), AddOrderResponse.class); } @@ -94,7 +94,7 @@ public AddOrderResponse addOrder(final AddOrderRequest request) throws WxErrorEx @Override public GetOrderResponse getOrder(final GetOrderRequest request) throws WxErrorException { request.getDeliverySign(); - return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.GET_ORDER, request), + return this.parse(this.wxMaService.post(InstantDelivery.GET_ORDER, request), GetOrderResponse.class); } @@ -111,7 +111,7 @@ public GetOrderResponse getOrder(final GetOrderRequest request) throws WxErrorEx @Override public CancelOrderResponse cancelOrder(final CancelOrderRequest request) throws WxErrorException { request.getDeliverySign(); - return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.Cancel.CANCEL_ORDER, request), + return this.parse(this.wxMaService.post(InstantDelivery.Cancel.CANCEL_ORDER, request), CancelOrderResponse.class); } @@ -128,7 +128,7 @@ public CancelOrderResponse cancelOrder(final CancelOrderRequest request) throws @Override public AbnormalConfirmResponse abnormalConfirm(final AbnormalConfirmRequest request) throws WxErrorException { request.getDeliverySign(); - return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.Cancel.ABNORMAL_CONFIRM, request), + return this.parse(this.wxMaService.post(InstantDelivery.Cancel.ABNORMAL_CONFIRM, request), AbnormalConfirmResponse.class); } @@ -144,7 +144,7 @@ public AbnormalConfirmResponse abnormalConfirm(final AbnormalConfirmRequest requ */ @Override public MockUpdateOrderResponse mockUpdateOrder(final MockUpdateOrderRequest request) throws WxErrorException { - return this.parse(this.wxMaService.post(WxMaApiUrlConstants.InstantDelivery.MOCK_UPDATE_ORDER, request), + return this.parse(this.wxMaService.post(InstantDelivery.MOCK_UPDATE_ORDER, request), MockUpdateOrderResponse.class); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressDeliveryReturnAddRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressDeliveryReturnAddRequest.java new file mode 100644 index 0000000000..9b5caa0be9 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressDeliveryReturnAddRequest.java @@ -0,0 +1,93 @@ +package cn.binarywang.wx.miniapp.bean.express.request; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * 创建退货ID + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WxMaExpressDeliveryReturnAddRequest implements Serializable { + private static final long serialVersionUID = -9111430627246688840L; + + /** + * 商家内部使用的退货编号 + *
+   * 是否必填: 是
+   * 描述:
+   * 
+ */ + @SerializedName("shop_order_id") + private String shopOrderId; + + /** + * 商家退货地址 + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("biz_addr") + private WxMaExpressOrderPerson bizAddr; + + /** + * 用户购物时的收货地址 + *
+   * 是否必填: 否
+   * 
+ */ + @SerializedName("user_addr") + private WxMaExpressOrderPerson userAddr; + + /** + * 退货用户的openid + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("openid") + private String openid; + + + /** + * 退货订单在小程序中的path + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("order_path") + private String orderPath; + + /** + * 退货订单的金额(单位:分) + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("goods_list") + private List goodsList; + + + /** + * 退货订单的金额(单位:分) + *
+   * 是否必填:是
+   * 
+ */ + @SerializedName("order_price") + private Integer orderPrice; + + + + public String toJson() { + return WxMaGsonBuilder.create().toJson(this); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressReturnOrder.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressReturnOrder.java new file mode 100644 index 0000000000..a6558beaeb --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/request/WxMaExpressReturnOrder.java @@ -0,0 +1,40 @@ +package cn.binarywang.wx.miniapp.bean.express.request; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 退货商品对象 + * @author xiaoyu + * @since 2019-11-26 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WxMaExpressReturnOrder implements Serializable { + private static final long serialVersionUID = -7798434835843377474L; + + /** + * 商品名称 + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("name") + private String name; + + /** + * 商品缩略图url + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("url") + private String url; + + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressInfoResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressInfoResult.java new file mode 100644 index 0000000000..9819c10d01 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressInfoResult.java @@ -0,0 +1,19 @@ +package cn.binarywang.wx.miniapp.bean.express.result; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; + +public class WxMaExpressInfoResult { + /** + * 错误码 + */ + private Integer errcode; + + /** + * 错误信息 + */ + private String errmsg; + + public static WxMaExpressInfoResult fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, WxMaExpressInfoResult.class); + } +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressOrderInfoResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressOrderInfoResult.java index 9502eee826..275c2d093b 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressOrderInfoResult.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressOrderInfoResult.java @@ -23,19 +23,10 @@ @Data @NoArgsConstructor @AllArgsConstructor -public class WxMaExpressOrderInfoResult implements Serializable { +public class WxMaExpressOrderInfoResult extends WxMaExpressInfoResult implements Serializable { private static final long serialVersionUID = -9166603059965942285L; - /** - * 错误码 - */ - private Integer errcode; - - /** - * 错误信息 - */ - private String errmsg; /** * 订单ID */ diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressReturnInfoResult.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressReturnInfoResult.java new file mode 100644 index 0000000000..e97c03b6de --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/express/result/WxMaExpressReturnInfoResult.java @@ -0,0 +1,68 @@ +package cn.binarywang.wx.miniapp.bean.express.result; + +import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + *
+ * 运单信息返回结果对象
+ * 
+ * @author xiaoyu + * @since 2019-11-26 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WxMaExpressReturnInfoResult extends WxMaExpressInfoResult implements Serializable { + + private static final long serialVersionUID = -9166603059965942285L; + + /** + * 退货ID + */ + @SerializedName("return_id") + private String returnId; + + + /** + * 0 用户未填写退货信息, 1. 在线预约, 2. 自主填写 + */ + private String status; + + + /** + * 运单ID + */ + @SerializedName("waybill_id") + private String waybillId; + + /** + * //0› 已下单待揽件 1› 已揽件 2› 运输中 3› 派件中 4› 已签收 5› 异常 6› 代签收 7› 揽收失败 8› 签收失败(拒收,超区) 11› 已取消 13› 退件中 14› 已退件 99 未知 + */ + @SerializedName("order_status") + private String orderStatus; + + /** + * //运力公司名称 + */ + @SerializedName("delivery_name") + private String deliveryName; + + /** + * //运力公司名称 + */ + @SerializedName("delivery_id") + private String deliveryId; + + + + public static WxMaExpressReturnInfoResult fromJson(String json) { + return WxMaGsonBuilder.create().fromJson(json, WxMaExpressReturnInfoResult.class); + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index 23ea773880..e51879d8ed 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -872,4 +872,18 @@ public interface XPay { String QUERY_PUBLISH_GOODS_URL = "https://api.weixin.qq.com/xpay/query_publish_goods?pay_sig=%s"; } + + /** + * 退货组件 + *
+   * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_sale_return.html
+   * 
+ * + */ + public interface ExpressDeliveryReturn{ + String ADD_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/add"; + String GET_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/get"; + String UNBIND_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/unbind"; + } + } diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/ApiTestModule.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/ApiTestModule.java index 5f3d19c02f..26eec1fa66 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/ApiTestModule.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/ApiTestModule.java @@ -35,7 +35,7 @@ public void configure(Binder binder) { binder.bind(WxMaService.class).toInstance(wxService); binder.bind(WxMaConfig.class).toInstance(config); - WxMaServiceOkHttpImpl wxMaServiceOkHttp = new cn.binarywang.wx.miniapp.api.impl.WxMaServiceOkHttpImpl(); + WxMaServiceOkHttpImpl wxMaServiceOkHttp = new WxMaServiceOkHttpImpl(); wxMaServiceOkHttp.setWxMaConfig(config); binder.bind(WxMaServiceOkHttpImpl.class).toInstance(wxMaServiceOkHttp); diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java index 25c3ec09de..5f6f258010 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/Applyment4SubServiceImplTest.java @@ -25,27 +25,27 @@ public class Applyment4SubServiceImplTest { @Test public void testCreateApply() throws WxPayException { - Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService); - String requestParamStr="{}"; + Applyment4SubService applyment4SubService = new Applyment4SubServiceImpl(wxPayService); + String requestParamStr = "{}"; /* {"business_code":"1596785690732","contact_info":{"contact_name":"张三","contact_id_number":"110110202001011234","mobile_phone":"13112345678","contact_email":"abc@qq.com"},"subject_info":{"subject_type":"SUBJECT_TYPE_ENTERPRISE","business_license_info":{"license_copy":"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI","license_number":"123456789012345678","merchant_name":"腾讯科技有限公司","legal_person":"张三"},"identity_info":{"id_doc_type":"IDENTIFICATION_TYPE_IDCARD","id_card_info":{"id_card_copy":"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI","id_card_national":"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI","id_card_name":"张三","id_card_number":"110110202001011234","card_period_begin":"2016-06-06","card_period_end":"2026-06-06"},"owner":false},"ubo_info":{"id_type":"IDENTIFICATION_TYPE_IDCARD","id_card_copy":"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI","id_card_national":"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI","id_doc_copy":"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI","name":"张三","id_number":"110110202001011234","id_period_begin":"2016-06-06","id_period_end":"2026-06-06"}},"business_info":{"merchant_shortname":"商户简称","service_phone":"13212345678","sales_info":{"sales_scenes_type":["SALES_SCENES_MINI_PROGRAM"],"mini_program_info":{"mini_program_appid":"wxe5f52902cf4de896"}}},"settlement_info":{"settlement_id":"716","qualification_type":"餐饮"}} */ - requestParamStr="{\"business_code\":\"1596785690732\",\"contact_info\":{\"contact_name\":\"张三\",\"contact_id_number\":\"110110202001011234\",\"mobile_phone\":\"13112345678\",\"contact_email\":\"abc@qq.com\"},\"subject_info\":{\"subject_type\":\"SUBJECT_TYPE_ENTERPRISE\",\"business_license_info\":{\"license_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"license_number\":\"123456789012345678\",\"merchant_name\":\"腾讯科技有限公司\",\"legal_person\":\"张三\"},\"identity_info\":{\"id_doc_type\":\"IDENTIFICATION_TYPE_IDCARD\",\"id_card_info\":{\"id_card_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_card_national\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_card_name\":\"张三\",\"id_card_number\":\"110110202001011234\",\"card_period_begin\":\"2016-06-06\",\"card_period_end\":\"2026-06-06\"},\"owner\":false},\"ubo_info\":{\"id_type\":\"IDENTIFICATION_TYPE_IDCARD\",\"id_card_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_card_national\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_doc_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"name\":\"张三\",\"id_number\":\"110110202001011234\",\"id_period_begin\":\"2016-06-06\",\"id_period_end\":\"2026-06-06\"}},\"business_info\":{\"merchant_shortname\":\"商户简称\",\"service_phone\":\"13212345678\",\"sales_info\":{\"sales_scenes_type\":[\"SALES_SCENES_MINI_PROGRAM\"],\"mini_program_info\":{\"mini_program_appid\":\"wxe5f52902cf4de896\"}}},\"settlement_info\":{\"settlement_id\":\"716\",\"qualification_type\":\"餐饮\"}}"; + requestParamStr = "{\"business_code\":\"1596785690732\",\"contact_info\":{\"contact_name\":\"张三\",\"contact_id_number\":\"110110202001011234\",\"mobile_phone\":\"13112345678\",\"contact_email\":\"abc@qq.com\"},\"subject_info\":{\"subject_type\":\"SUBJECT_TYPE_ENTERPRISE\",\"business_license_info\":{\"license_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"license_number\":\"123456789012345678\",\"merchant_name\":\"腾讯科技有限公司\",\"legal_person\":\"张三\"},\"identity_info\":{\"id_doc_type\":\"IDENTIFICATION_TYPE_IDCARD\",\"id_card_info\":{\"id_card_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_card_national\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_card_name\":\"张三\",\"id_card_number\":\"110110202001011234\",\"card_period_begin\":\"2016-06-06\",\"card_period_end\":\"2026-06-06\"},\"owner\":false},\"ubo_info\":{\"id_type\":\"IDENTIFICATION_TYPE_IDCARD\",\"id_card_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_card_national\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"id_doc_copy\":\"mxX07DyfM-bJyGJYCTyW-4wrXpJ5fq_bgYfWkIZZgjenf6Ct1gKV_FpkzgyQrf5ETVEyOWhC_0cbhOATODuLBAkxGl6Cvj31lh6OFAIHnwI\",\"name\":\"张三\",\"id_number\":\"110110202001011234\",\"id_period_begin\":\"2016-06-06\",\"id_period_end\":\"2026-06-06\"}},\"business_info\":{\"merchant_shortname\":\"商户简称\",\"service_phone\":\"13212345678\",\"sales_info\":{\"sales_scenes_type\":[\"SALES_SCENES_MINI_PROGRAM\"],\"mini_program_info\":{\"mini_program_appid\":\"wxe5f52902cf4de896\"}}},\"settlement_info\":{\"settlement_id\":\"716\",\"qualification_type\":\"餐饮\"}}"; - WxPayApplyment4SubCreateRequest request=GSON.fromJson(requestParamStr,WxPayApplyment4SubCreateRequest.class); + WxPayApplyment4SubCreateRequest request = GSON.fromJson(requestParamStr, WxPayApplyment4SubCreateRequest.class); String businessCode = String.valueOf(System.currentTimeMillis()); request.setBusinessCode(businessCode); WxPayApplymentCreateResult apply = applyment4SubService.createApply(request); String applymentId = apply.getApplymentId(); - log.info("businessCode:[{}],applymentId:[{}]",businessCode,applymentId); + log.info("businessCode:[{}],applymentId:[{}]", businessCode, applymentId); } @Test public void testQueryApplyStatusByBusinessCode() throws WxPayException { - Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService); - String businessCode="businessCode"; + Applyment4SubService applyment4SubService = new Applyment4SubServiceImpl(wxPayService); + String businessCode = "businessCode"; applyment4SubService.queryApplyStatusByBusinessCode(businessCode); @@ -54,8 +54,8 @@ public void testQueryApplyStatusByBusinessCode() throws WxPayException { @Test public void testQueryApplyStatusByApplymentId() throws WxPayException { - Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService); - String applymentId="applymentId"; + Applyment4SubService applyment4SubService = new Applyment4SubServiceImpl(wxPayService); + String applymentId = "applymentId"; applyment4SubService.queryApplyStatusByApplymentId(applymentId); @@ -63,8 +63,8 @@ public void testQueryApplyStatusByApplymentId() throws WxPayException { @Test public void testQuerySettlementBySubMchid() throws WxPayException { - Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService); - String subMchid="subMchid"; + Applyment4SubService applyment4SubService = new Applyment4SubServiceImpl(wxPayService); + String subMchid = "subMchid"; applyment4SubService.querySettlementBySubMchid(subMchid); @@ -72,22 +72,21 @@ public void testQuerySettlementBySubMchid() throws WxPayException { @Test public void testModifySettlement() throws WxPayException { - Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService); - String subMchid="subMchid"; + Applyment4SubService applyment4SubService = new Applyment4SubServiceImpl(wxPayService); + String subMchid = "subMchid"; ModifySettlementRequest modifySettlementRequest = new ModifySettlementRequest(); - applyment4SubService.modifySettlement(subMchid,modifySettlementRequest); + applyment4SubService.modifySettlement(subMchid, modifySettlementRequest); } @Test - public void testSettlementApplication() throws WxPayException{ - Applyment4SubService applyment4SubService=new Applyment4SubServiceImpl(wxPayService); - String subMchid="subMchid"; - String applymentId="applymentId"; + public void testSettlementApplication() throws WxPayException { + Applyment4SubService applyment4SubService = new Applyment4SubServiceImpl(wxPayService); + String subMchid = "subMchid"; + String applymentId = "applymentId"; - applyment4SubService.settlementApplication(subMchid, applymentId); + applyment4SubService.querySettlementModifyStatusByApplicationNo(subMchid, applymentId); } - } From 49d73f003fe01ed7fbde928fea20e8d861beaa58 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 29 Sep 2023 19:42:50 +0800 Subject: [PATCH 593/622] =?UTF-8?q?:art=EF=BC=9A=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/impl/WxMaCloudServiceImpl.java | 18 +- .../wx/miniapp/util/JoinerUtils.java | 253 ------------------ 2 files changed, 10 insertions(+), 261 deletions(-) delete mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/JoinerUtils.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java index 12436d2c22..3e16814479 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaCloudServiceImpl.java @@ -5,7 +5,7 @@ import cn.binarywang.wx.miniapp.bean.cloud.*; import cn.binarywang.wx.miniapp.bean.cloud.request.WxCloudSendSmsV2Request; import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; -import cn.binarywang.wx.miniapp.util.JoinerUtils; +import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import com.google.gson.JsonArray; @@ -37,6 +37,8 @@ @Slf4j @RequiredArgsConstructor public class WxMaCloudServiceImpl implements WxMaCloudService { + private static final Joiner blankJoiner = Joiner.on("").skipNulls(); + private final WxMaService wxMaService; @Override @@ -55,7 +57,7 @@ public String invokeCloudFunction(String env, String name, String body) throws W @Override public List add(String collection, List list) throws WxErrorException { String jsonData = WxMaGsonBuilder.create().toJson(list); - String query = JoinerUtils.blankJoiner.join( + String query = blankJoiner.join( "db.collection('", collection, "')", ".add({data: ", jsonData, "})"); @@ -79,7 +81,7 @@ public List add(String collection, List list) throws WxErrorException { @Override public String add(String collection, Object obj) throws WxErrorException { String jsonData = WxMaGsonBuilder.create().toJson(obj); - String query = JoinerUtils.blankJoiner.join( + String query = blankJoiner.join( "db.collection('", collection, "')", ".add({data: ", jsonData, "})"); @@ -110,7 +112,7 @@ public JsonArray databaseAdd(String env, String query) throws WxErrorException { @Override public Integer delete(String collection, String whereJson) throws WxErrorException { - String query = JoinerUtils.blankJoiner.join( + String query = blankJoiner.join( "db.collection('", collection, "')", ".where(", whereJson, ").remove()"); @@ -140,7 +142,7 @@ public int databaseDelete(String env, String query) throws WxErrorException { @Override public WxCloudDatabaseUpdateResult update(String collection, String whereJson, String updateJson) throws WxErrorException { - String query = JoinerUtils.blankJoiner.join( + String query = blankJoiner.join( "db.collection('", collection, "')", ".where(", whereJson, ").update({data:", updateJson, " })"); @@ -183,7 +185,7 @@ public WxCloudDatabaseQueryResult query(String collection, String whereJson, Map if (null == skip) { skip = 0; } - String query = JoinerUtils.blankJoiner.join( + String query = blankJoiner.join( "db.collection('", collection, "')", ".where(", whereJson, ")", orderBySb.toString(), ".skip(", skip, ").limit(", limit, ").get()"); @@ -221,7 +223,7 @@ public JsonArray databaseAggregate(String env, String query) throws WxErrorExcep @Override public Long count(String collection, String whereJson) throws WxErrorException { - String query = JoinerUtils.blankJoiner.join( + String query = blankJoiner.join( "db.collection('", collection, "')", ".where(", whereJson, ").count()"); @@ -415,7 +417,7 @@ public WxCloudDatabaseCollectionGetResult databaseCollectionGet(String env, Long @Override public WxCloudSendSmsV2Result sendSmsV2(WxCloudSendSmsV2Request request) throws WxErrorException { // 如果没有指定云环境ID,取默认云环境ID - if (request.getEnv() == null){ + if (request.getEnv() == null) { String cloudEnv = this.wxMaService.getWxMaConfig().getCloudEnv(); request.setEnv(cloudEnv); } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/JoinerUtils.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/JoinerUtils.java deleted file mode 100644 index 3ef3eb915d..0000000000 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/JoinerUtils.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Copyright (c) 2019,sunnybs. - * All Rights Reserved. - *

- * Project Name:yigou - */ -package cn.binarywang.wx.miniapp.util; - -import com.google.common.base.Joiner; - -/** - * ClassName: JoinerUtils
- * Description: 字符串连接器
- * Date: 2019年10月18日 下午1:42:59
- * - * @author wsp - */ - -public class JoinerUtils { - private static final String NULL = "null"; - - /** - *

- * 空白连接器,忽略null - *

- * - *
-     * JoinerUtils.blankJoiner.join("a", "b", "c");
-     * result : abc
-     * 
-     * JoinerUtils.blankJoiner.join("a", null, "c");
-     * result : ac
-     * 
- */ - public static final Joiner blankJoiner = Joiner.on("").skipNulls(); - /** - *

- * 空白连接器 - *

- * - *
-     * JoinerUtils.blankJoinerWithNull.join("a", "b", "c");
-     * result : abc
-     * 
-     * JoinerUtils.blankJoinerWithNull.join("a", null, "c");
-     * result : anullc
-     * 
- */ - public static final Joiner blankJoinerWithNull = Joiner.on("").useForNull(NULL); - - /** - *

- * 空格连接器,忽略null - *

- * - *
-     * JoinerUtils.spaceJoiner.join("a", "b", "c");
-     * result : a b c
-     * 
-     * JoinerUtils.spaceJoiner.join("a", null, "c");
-     * result : a c
-     * 
- */ - public static final Joiner spaceJoiner = Joiner.on(" ").skipNulls(); - /** - *

- * 空格连接器 - *

- * - *
-     * JoinerUtils.spaceJoinerWithNull.join("a", "b", "c");
-     * result : a b c
-     * 
-     * JoinerUtils.spaceJoinerWithNull.join("a", null, "c");
-     * result : a null c
-     * 
- */ - public static final Joiner spaceJoinerWithNull = Joiner.on(" ").useForNull(NULL); - - /** - *

- * 逗号分隔符连接器,忽略null - *

- * - *
-   * JoinerUtils.commaJoiner.join("a", "b", "c");
-   * result : a,b,c
-   *
-   * JoinerUtils.commaJoiner.join("a", null, "c");
-   * result : a,c
-   * 
- */ - public static final Joiner commaJoiner = Joiner.on(",").skipNulls(); - /** - *

- * 逗号分隔符连接器 - *

- * - *
-   * JoinerUtils.commaJoinerWithNull.join("a", "b", "c");
-   * result : a,b,c
-   *
-   * JoinerUtils.commaJoinerWithNull.join("a", null, "c");
-   * result : a,null,c
-   * 
- */ - public static final Joiner commaJoinerWithNull = Joiner.on(",").useForNull(NULL); - - /** - *

- * 等号分隔符连接器,忽略null - *

- * - *
-   * JoinerUtils.equalJoiner.join("a", "b", "c");
-   * result : a=b=c
-   *
-   * JoinerUtils.equalJoiner.join("a", null, "c");
-   * result : a=c
-   * 
- */ - public static final Joiner equalJoiner = Joiner.on("=").skipNulls(); - /** - *

- * 等号分隔符连接器 - *

- * - *
-   * JoinerUtils.equalJoinerWithNull.join("a", "b", "c");
-   * result : a=b=c
-   *
-   * JoinerUtils.equalJoinerWithNull.join("a", null, "c");
-   * result : a=null=c
-   * 
- */ - public static final Joiner equalJoinerWithNull = Joiner.on("=").useForNull(NULL); - - /** - *

- * 竖线分隔符连接器,忽略null - *

- * - *
-     * JoinerUtils.vLineJoiner.join("a", "b", "c");
-     * result : a|b|c
-     * 
-     * JoinerUtils.vLineJoiner.join("a", null, "c");
-     * result : a|c
-     * 
- */ - public static final Joiner vLineJoiner = Joiner.on("|").skipNulls(); - /** - *

- * 竖线分隔符连接器 - *

- * - *
-     * JoinerUtils.vLineJoinerWithNull.join("a", "b", "c");
-     * result : a|b|c
-     * 
-     * JoinerUtils.vLineJoinerWithNull.join("a", null, "c");
-     * result : a|null|c
-     * 
- */ - public static final Joiner vLineJoinerWithNull = Joiner.on("|").useForNull(NULL); - - /** - *

- * 中横线分隔符连接器,忽略null - *

- * - *
-     * JoinerUtils.hLineJoiner.join("a", "b", "c");
-     * result : a-b-c
-     * 
-     * JoinerUtils.hLineJoiner.join("a", null, "c");
-     * result : a-c
-     * 
- */ - public static final Joiner hLineJoiner = Joiner.on("-").skipNulls(); - /** - *

- * 中横线分隔符连接器 - *

- * - *
-     * JoinerUtils.hLineJoinerWithNull.join("a", "b", "c");
-     * result : a-b-c
-     * 
-     * JoinerUtils.hLineJoinerWithNull.join("a", null, "c");
-     * result : a-null-c
-     * 
- */ - public static final Joiner hLineJoinerWithNull = Joiner.on("-").useForNull(NULL); - - /** - *

- * 下划线分隔符连接器,忽略null - *

- * - *
-     * JoinerUtils.underlineJoiner.join("a", "b", "c");
-     * result : a_b_c
-     * 
-     * JoinerUtils.underlineJoiner.join("a", null, "c");
-     * result : a_c
-     * 
- */ - public static final Joiner underlineJoiner = Joiner.on("_").skipNulls(); - /** - *

- * 下划线分隔符连接器 - *

- * - *
-     * JoinerUtils.underlineJoinerWithNull.join("a", "b", "c");
-     * result : a_b_c
-     * 
-     * JoinerUtils.underlineJoinerWithNull.join("a", null, "c");
-     * result : a_null_c
-     * 
- */ - public static final Joiner underlineJoinerWithNull = Joiner.on("_").useForNull(NULL); - - /** - *

- * 斜线分隔符连接器,忽略null - *

- * - *
-     * JoinerUtils.pathJoiner.join("a", "b", "c");
-     * result : a/b/c
-     * 
-     * JoinerUtils.pathJoiner.join("a", null, "c");
-     * result : a/c
-     * 
- */ - public static final Joiner pathJoiner = Joiner.on("/").skipNulls(); - /** - *

- * 斜线分隔符连接器 - *

- * - *
-     * JoinerUtils.pathJoinerWithNull.join("a", "b", "c");
-     * result : a/b/c
-     * 
-     * JoinerUtils.pathJoinerWithNull.join("a", null, "c");
-     * result : a/null/c
-     * 
- */ - public static final Joiner pathJoinerWithNull = Joiner.on("/").useForNull(NULL); -} From bf49c9a15211dd48b7e00da2676187ff812bee4e Mon Sep 17 00:00:00 2001 From: JTongChen <819250131@qq.com> Date: Sat, 7 Oct 2023 21:32:21 +0800 Subject: [PATCH 594/622] =?UTF-8?q?:art:=20#3142=20=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E8=AE=A2=E9=98=85=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=B8=8B=E5=8F=91=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E6=B6=88?= =?UTF-8?q?=E6=81=AFid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java | 3 ++- .../weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java index fac1788ea2..fa5a5dbbfb 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpSubscribeMsgService.java @@ -134,8 +134,9 @@ public interface WxMpSubscribeMsgService { *
* * @param subscribeMessage 订阅消息 + * @return 下发消息id,与下发结果回调的msgId对应 * @throws WxErrorException . */ - void send(WxMpSubscribeMessage subscribeMessage) throws WxErrorException; + String send(WxMpSubscribeMessage subscribeMessage) throws WxErrorException; } diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java index 07c5800945..2d83259e8b 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpSubscribeMsgServiceImpl.java @@ -103,11 +103,12 @@ public List getCategory() throws WxErrorException { } @Override - public void send(WxMpSubscribeMessage subscribeMessage) throws WxErrorException { + public String send(WxMpSubscribeMessage subscribeMessage) throws WxErrorException { String responseContent = this.service.post(SEND_SUBSCRIBE_MESSAGE_URL, subscribeMessage.toJson()); JsonObject jsonObject = GsonParser.parse(responseContent); if (jsonObject.get(ERR_CODE).getAsInt() != 0) { throw new WxErrorException(WxError.fromJson(responseContent, WxType.MP)); } + return jsonObject.get("msgid").getAsString(); } } From 4e67c56450d2e6b594b838843db195be5a8b444e Mon Sep 17 00:00:00 2001 From: pi-laoban <1457166509@qq.com> Date: Sun, 15 Oct 2023 03:13:07 +0000 Subject: [PATCH 595/622] =?UTF-8?q?:art:=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E9=80=9A=E8=AE=AF=E5=BD=95=E5=8D=95?= =?UTF-8?q?=E4=B8=AA=E6=90=9C=E7=B4=A2=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81?= =?UTF-8?q?next=5Fcursor=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/bean/WxCpTpContactSearch.java | 12 ++++++------ .../weixin/cp/bean/WxCpTpContactSearchResp.java | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java index a51ca748b5..11c653a433 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearch.java @@ -42,12 +42,6 @@ public class WxCpTpContactSearch implements Serializable { @SerializedName("agentid") private Integer agentId; - /** - * 查询的偏移量,每次调用的offset在上一次offset基础上加上limit - */ - @SerializedName("offset") - private Integer offset; - /** * 查询返回的最大数量,默认为50,最多为200,查询返回的数量可能小于limit指定的值 */ @@ -60,6 +54,12 @@ public class WxCpTpContactSearch implements Serializable { @SerializedName("full_match_field") private Integer fullMatchField; + /** + * 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填 + */ + @SerializedName("cursor") + private String cursor; + /** * To json string. * diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java index d482875d6c..074b30bc0e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpContactSearchResp.java @@ -24,6 +24,9 @@ public class WxCpTpContactSearchResp extends WxCpBaseResp { @SerializedName("query_result") private QueryResult queryResult; + @SerializedName("next_cursor") + private String nextCursor; + /** * The type Query result. */ From 98881f2e766bf275189ef73f50731799d73a934b Mon Sep 17 00:00:00 2001 From: playersun Date: Wed, 11 Oct 2023 00:18:57 +0800 Subject: [PATCH 596/622] =?UTF-8?q?:art:=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=87=BA=E7=8E=B0=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sunhui <10151317@qq.com> --- .../wx/miniapp/api/impl/BaseWxMaServiceImpl.java | 13 +++++++++++-- .../weixin/mp/api/impl/BaseWxMpServiceImpl.java | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java index 0c9aa9d623..37a25db14a 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/BaseWxMaServiceImpl.java @@ -377,7 +377,12 @@ public void setMultiConfigs(Map configs) { @Override @JsonDeserialize public void setMultiConfigs(Map configs, String defaultMiniappId) { - this.configMap = Maps.newHashMap(configs); + // 防止覆盖配置 + if(this.configMap != null) { + this.configMap.putAll(configs); + } else { + this.configMap = Maps.newHashMap(configs); + } WxMaConfigHolder.set(defaultMiniappId); this.initHttp(); } @@ -385,7 +390,11 @@ public void setMultiConfigs(Map configs, String defaultMinia @Override public void addConfig(String miniappId, WxMaConfig configStorages) { synchronized (this) { - if (this.configMap == null) { + /* + * 因为commit f74b00cf 默认初始化了configMap,导致使用此方法无法进入if从而触发initHttp(), + * 就会出现HttpClient报NullPointException + */ + if (this.configMap == null || this.configMap.isEmpty()) { this.setWxMaConfig(configStorages); } else { WxMaConfigHolder.set(miniappId); diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java index cb2479c572..d7c0f53abe 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java @@ -542,7 +542,12 @@ public void setMultiConfigStorages(Map configStorages @Override public void setMultiConfigStorages(Map configStorages, String defaultMpId) { - this.configStorageMap = Maps.newHashMap(configStorages); + // 防止覆盖配置 + if(this.configStorageMap != null) { + this.configStorageMap.putAll(configStorages); + } else { + this.configStorageMap = Maps.newHashMap(configStorages); + } WxMpConfigStorageHolder.set(defaultMpId); this.initHttp(); } @@ -550,7 +555,11 @@ public void setMultiConfigStorages(Map configStorages @Override public void addConfigStorage(String mpId, WxMpConfigStorage configStorages) { synchronized (this) { - if (this.configStorageMap == null) { + /* + * 因为commit 2aa27cf12d 默认初始化了configStorageMap,导致使用此方法无法进入if从而触发initHttp(), + * 就会出现HttpClient报NullPointException + */ + if (this.configStorageMap == null || this.configStorageMap.isEmpty()) { this.setWxMpConfigStorage(configStorages); } else { WxMpConfigStorageHolder.set(mpId); From 16eac7e233d23a94c2077b162f72577659123263 Mon Sep 17 00:00:00 2001 From: qq330496248 <330496248@qq.com> Date: Wed, 18 Oct 2023 16:04:29 +0800 Subject: [PATCH 597/622] =?UTF-8?q?:art:=20#3145=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E5=88=9B=E5=BB=BA=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E7=BE=A4=E5=8F=91=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E?= =?UTF-8?q?chat=5Fid=5Flist=E5=92=8Callow=5Fselect=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/bean/external/WxCpMsgTemplate.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java index a88f739045..6c546daa83 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java @@ -38,11 +38,23 @@ public class WxCpMsgTemplate implements Serializable { @SerializedName("external_userid") private List externalUserid; + /** + * 客户群id列表,仅在chat_type为group时有效,最多可一次指定2000个客户群。指定群id之后,收到任务的群主无须再选择客户群,仅对4.1.10及以上版本的企业微信终端生效 + */ + @SerializedName("chat_id_list") + private List chatIdList; + /** * 发送企业群发消息的成员userid,当类型为发送给客户群时必填 */ private String sender; + /** + * 是否允许成员在待发送客户列表中重新进行选择,默认为false,仅支持客户群发场景 + */ + @SerializedName("allow_select") + private Boolean allowSelect; + /** * 消息文本内容,最多4000个字节 */ From a9da3ab39e1128931e21ac13302d01382846c3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Forever=E6=9D=A8?= <453190450@qq.com> Date: Wed, 18 Oct 2023 16:06:13 +0800 Subject: [PATCH 598/622] =?UTF-8?q?:art:=20=E5=AE=8C=E5=96=84=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=20starter=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/wx-java-cp-spring-boot-starter/README.md | 4 +++- .../cp/storage/WxCpInJedisConfigStorageConfiguration.java | 2 +- .../WxCpInRedisTemplateConfigStorageConfiguration.java | 2 +- .../cp/storage/WxCpInRedissonConfigStorageConfiguration.java | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md b/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md index a10ef65bcb..d6c1abc945 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/README.md @@ -16,9 +16,11 @@ wx.cp.corp-id = @corp-id wx.cp.corp-secret = @corp-secret # 选填 + wx.cp.agent-id = @agent-id wx.cp.token = @token wx.cp.aes-key = @aes-key - wx.cp.agent-id = @agent-id + wx.cp.msg-audit-priKey = @msg-audit-priKey + wx.cp.msg-audit-lib-path = @msg-audit-lib-path # ConfigStorage 配置(选填) wx.cp.config-storage.type=memory # 配置类型: memory(默认), jedis, redisson, redistemplate # http 客户端配置(选填) diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInJedisConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInJedisConfigStorageConfiguration.java index 75980c3616..246971baed 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInJedisConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInJedisConfigStorageConfiguration.java @@ -32,7 +32,7 @@ public class WxCpInJedisConfigStorageConfiguration extends AbstractWxCpConfigSto @Bean @ConditionalOnMissingBean(WxCpConfigStorage.class) - public WxCpConfigStorage wxOpenConfigStorage() { + public WxCpConfigStorage wxCpConfigStorage() { WxCpDefaultConfigImpl config = getConfigStorage(); return this.config(config, wxCpProperties); } diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedisTemplateConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedisTemplateConfigStorageConfiguration.java index 46efa050ad..879568b16a 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedisTemplateConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedisTemplateConfigStorageConfiguration.java @@ -29,7 +29,7 @@ public class WxCpInRedisTemplateConfigStorageConfiguration extends AbstractWxCpC @Bean @ConditionalOnMissingBean(WxCpConfigStorage.class) - public WxCpConfigStorage wxOpenConfigStorage() { + public WxCpConfigStorage wxCpConfigStorage() { WxCpDefaultConfigImpl config = getConfigStorage(); return this.config(config, wxCpProperties); } diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedissonConfigStorageConfiguration.java b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedissonConfigStorageConfiguration.java index 6f32730069..060b894fd1 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedissonConfigStorageConfiguration.java +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/storage/WxCpInRedissonConfigStorageConfiguration.java @@ -34,7 +34,7 @@ public class WxCpInRedissonConfigStorageConfiguration extends AbstractWxCpConfig @Bean @ConditionalOnMissingBean(WxCpConfigStorage.class) - public WxCpConfigStorage wxOpenConfigStorage() { + public WxCpConfigStorage wxCpConfigStorage() { WxCpDefaultConfigImpl config = getConfigStorage(); return this.config(config, wxCpProperties); } From 82c1e9a1205f79c609854f7011b4dcdda1b8557a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Forever=E6=9D=A8?= <453190450@qq.com> Date: Wed, 18 Oct 2023 16:07:55 +0800 Subject: [PATCH 599/622] =?UTF-8?q?:new:=20#3149=20[=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1]=20=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=A4=9A=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84starter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/pom.xml | 5 +- .../README.md | 85 +++++++++++ .../pom.xml | 60 ++++++++ .../WxCpMultiAutoConfiguration.java | 20 +++ .../WxCpMultiServicesAutoConfiguration.java | 26 ++++ .../services/AbstractWxCpConfiguration.java | 142 ++++++++++++++++++ .../services/WxCpInJedisConfiguration.java | 76 ++++++++++ .../services/WxCpInMemoryConfiguration.java | 38 +++++ .../WxCpInRedisTemplateConfiguration.java | 43 ++++++ .../services/WxCpInRedissonConfiguration.java | 67 +++++++++ .../wxjava/cp/properties/CorpProperties.java | 43 ++++++ .../cp/properties/WxCpMultiProperties.java | 108 +++++++++++++ .../properties/WxCpMultiRedisProperties.java | 46 ++++++ .../wxjava/cp/service/WxCpMultiServices.java | 26 ++++ .../cp/service/WxCpMultiServicesImpl.java | 42 ++++++ .../main/resources/META-INF/spring.factories | 2 + ...ot.autoconfigure.AutoConfiguration.imports | 1 + .../me/chanjar/weixin/cp/api/WxCpService.java | 3 +- 18 files changed, 830 insertions(+), 3 deletions(-) create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiAutoConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiServicesAutoConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/CorpProperties.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiProperties.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiRedisProperties.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServices.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServicesImpl.java create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring.factories create mode 100644 spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index f92f49b0d2..d66ecbecbf 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 com.github.binarywang @@ -21,6 +23,7 @@ wx-java-pay-spring-boot-starter wx-java-open-spring-boot-starter wx-java-qidian-spring-boot-starter + wx-java-cp-multi-spring-boot-starter wx-java-cp-spring-boot-starter wx-java-channel-spring-boot-starter diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md new file mode 100644 index 0000000000..d05c43bbaf --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md @@ -0,0 +1,85 @@ +# wx-java-cp-multi-spring-boot-starter + +企业微信多账号配置 + +- 实现多 WxCpService 初始化。 +- 未实现 WxCpTpService 初始化,需要的小伙伴可以参考多 WxCpService 配置的实现。 +- 未实现 WxCpCgService 初始化,需要的小伙伴可以参考多 WxCpService 配置的实现。 + +## 快速开始 + +1. 引入依赖 + ```xml + + com.github.binarywang + wx-java-cp-multi-spring-boot-starter + ${version} + + ``` +2. 添加配置(application.properties) + ```properties + # 应用 1 配置 + wx.cp.corps.tenantId1.corp-id = @corp-id + wx.cp.corps.tenantId1.corp-secret = @corp-secret + ## 选填 + wx.cp.corps.tenantId1.agent-id = @agent-id + wx.cp.corps.tenantId1.token = @token + wx.cp.corps.tenantId1.aes-key = @aes-key + wx.cp.corps.tenantId1.msg-audit-priKey = @msg-audit-priKey + wx.cp.corps.tenantId1.msg-audit-lib-path = @msg-audit-lib-path + + # 应用 2 配置 + wx.cp.corps.tenantId2.corp-id = @corp-id + wx.cp.corps.tenantId2.corp-secret = @corp-secret + ## 选填 + wx.cp.corps.tenantId2.agent-id = @agent-id + wx.cp.corps.tenantId2.token = @token + wx.cp.corps.tenantId2.aes-key = @aes-key + wx.cp.corps.tenantId2.msg-audit-priKey = @msg-audit-priKey + wx.cp.corps.tenantId2.msg-audit-lib-path = @msg-audit-lib-path + + # 公共配置 + ## ConfigStorage 配置(选填) + wx.cp.config-storage.type=memory # 配置类型: memory(默认), jedis, redisson, redistemplate + ## http 客户端配置(选填) + wx.cp.config-storage.http-proxy-host= + wx.cp.config-storage.http-proxy-port= + wx.cp.config-storage.http-proxy-username= + wx.cp.config-storage.http-proxy-password= + ## 最大重试次数,默认:5 次,如果小于 0,则为 0 + wx.cp.config-storage.max-retry-times=5 + ## 重试时间间隔步进,默认:1000 毫秒,如果小于 0,则为 1000 + wx.cp.config-storage.retry-sleep-millis=1000 + ``` +3. 支持自动注入的类型: `WxCpMultiServices` + +4. 使用样例 + +```java +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpServices; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.api.WxCpUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class DemoService { + @Autowired + private WxCpMultiServices wxCpMultiServices; + + public void test() { + // 应用 1 的 WxCpService + WxCpService wxCpService1 = wxCpMultiServices.getWxCpService("tenantId1"); + WxCpUserService userService1 = wxCpService1.getUserService(); + userService1.getUserId("xxx"); + // todo ... + + // 应用 2 的 WxCpService + WxCpService wxCpService2 = wxCpMultiServices.getWxCpService("tenantId2"); + WxCpUserService userService2 = wxCpService2.getUserService(); + userService2.getUserId("xxx"); + // todo ... + } +} +``` diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml new file mode 100644 index 0000000000..a44416872f --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml @@ -0,0 +1,60 @@ + + + + wx-java-spring-boot-starters + com.github.binarywang + 4.5.5.B + + 4.0.0 + + wx-java-cp-multi-spring-boot-starter + WxJava - Spring Boot Starter for WxCp::支持多账号配置 + 微信企业号开发的 Spring Boot Starter::支持多账号配置 + + + + com.github.binarywang + weixin-java-cp + ${project.version} + + + redis.clients + jedis + provided + + + org.redisson + redisson + provided + + + org.springframework.data + spring-data-redis + provided + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring.boot.version} + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + + diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiAutoConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiAutoConfiguration.java new file mode 100644 index 0000000000..8977b214ba --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiAutoConfiguration.java @@ -0,0 +1,20 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiProperties; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; + +/** + * 企业微信自动注册 + * + * @author yl + * created on 2023/10/16 + */ +@Configuration +@EnableConfigurationProperties(WxCpMultiProperties.class) +@Import({ + WxCpMultiServicesAutoConfiguration.class +}) +public class WxCpMultiAutoConfiguration { +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiServicesAutoConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiServicesAutoConfiguration.java new file mode 100644 index 0000000000..743888cad5 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/WxCpMultiServicesAutoConfiguration.java @@ -0,0 +1,26 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure; + +import com.binarywang.spring.starter.wxjava.cp.autoconfigure.services.WxCpInJedisConfiguration; +import com.binarywang.spring.starter.wxjava.cp.autoconfigure.services.WxCpInMemoryConfiguration; +import com.binarywang.spring.starter.wxjava.cp.autoconfigure.services.WxCpInRedisTemplateConfiguration; +import com.binarywang.spring.starter.wxjava.cp.autoconfigure.services.WxCpInRedissonConfiguration; +import lombok.RequiredArgsConstructor; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; + +/** + * 企业微信平台相关服务自动注册 + * + * @author yl + * created on 2023/10/16 + */ +@Configuration +@RequiredArgsConstructor +@Import({ + WxCpInJedisConfiguration.class, + WxCpInMemoryConfiguration.class, + WxCpInRedissonConfiguration.class, + WxCpInRedisTemplateConfiguration.class +}) +public class WxCpMultiServicesAutoConfiguration { +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java new file mode 100644 index 0000000000..05f5cae997 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java @@ -0,0 +1,142 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure.services; + +import com.binarywang.spring.starter.wxjava.cp.properties.CorpProperties; +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiProperties; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServicesImpl; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.api.WxCpService; +import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; +import me.chanjar.weixin.cp.config.WxCpConfigStorage; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import org.apache.commons.lang3.StringUtils; + +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.stream.Collectors; + +/** + * WxCpConfigStorage 抽象配置类 + * + * @author yl + * created on 2023/10/16 + */ +@RequiredArgsConstructor +public abstract class AbstractWxCpConfiguration { + + protected WxCpMultiServices configWxCpServices(WxCpMultiProperties wxCpMultiProperties) { + WxCpMultiServicesImpl wxCpServices = new WxCpMultiServicesImpl(); + Map corps = wxCpMultiProperties.getCorps(); + if (corps == null || corps.isEmpty()) { + throw new RuntimeException("企业微信配置为null"); + } + /** + * 校验同一个企业下,agentId 是否唯一,避免使用 redis 缓存 token、ticket 时错乱。 + * + * 查看 {@link me.chanjar.weixin.cp.config.impl.AbstractWxCpInRedisConfigImpl#setAgentId(Integer)} + */ + Collection corpList = corps.values(); + if (corpList.size() > 1) { + // 先按 corpId 分组统计 + Map> corpsMap = corpList.stream() + .collect(Collectors.groupingBy(CorpProperties::getCorpId)); + Set>> entries = corpsMap.entrySet(); + for (Map.Entry> entry : entries) { + String corpId = entry.getKey(); + // 校验每个企业下,agentId 是否唯一 + boolean multi = entry.getValue().stream() + // 通讯录没有 agentId,如果不判断是否为空,这里会报 NPE 异常 + .collect(Collectors.groupingBy(c -> c.getAgentId() == null ? 0 : c.getAgentId(), Collectors.counting())) + .entrySet().stream().anyMatch(e -> e.getValue() > 1); + if (multi) { + throw new RuntimeException("请确保企业微信配置唯一性[" + corpId + "]"); + } + } + } + + Set> entries = corps.entrySet(); + for (Map.Entry entry : entries) { + String tenantId = entry.getKey(); + CorpProperties corpProperties = entry.getValue(); + WxCpDefaultConfigImpl storage = this.configWxCpDefaultConfigImpl(wxCpMultiProperties); + this.configCorp(storage, corpProperties); + this.configHttp(storage, wxCpMultiProperties.getConfigStorage()); + WxCpService wxCpService = this.configWxCpService(storage, wxCpMultiProperties.getConfigStorage()); + wxCpServices.addWxCpService(tenantId, wxCpService); + } + return wxCpServices; + } + + /** + * 配置 WxCpDefaultConfigImpl + * + * @param wxCpMultiProperties 参数 + * @return WxCpDefaultConfigImpl + */ + protected abstract WxCpDefaultConfigImpl configWxCpDefaultConfigImpl(WxCpMultiProperties wxCpMultiProperties); + + private WxCpService configWxCpService(WxCpConfigStorage wxCpConfigStorage, WxCpMultiProperties.ConfigStorage storage) { + WxCpService wxCpService = new WxCpServiceImpl(); + wxCpService.setWxCpConfigStorage(wxCpConfigStorage); + + int maxRetryTimes = storage.getMaxRetryTimes(); + if (maxRetryTimes < 0) { + maxRetryTimes = 0; + } + int retrySleepMillis = storage.getRetrySleepMillis(); + if (retrySleepMillis < 0) { + retrySleepMillis = 1000; + } + wxCpService.setRetrySleepMillis(retrySleepMillis); + wxCpService.setMaxRetryTimes(maxRetryTimes); + return wxCpService; + } + + private void configCorp(WxCpDefaultConfigImpl config, CorpProperties corpProperties) { + String corpId = corpProperties.getCorpId(); + String corpSecret = corpProperties.getCorpSecret(); + Integer agentId = corpProperties.getAgentId(); + String token = corpProperties.getToken(); + String aesKey = corpProperties.getAesKey(); + // 企业微信,私钥,会话存档路径 + String msgAuditPriKey = corpProperties.getMsgAuditPriKey(); + String msgAuditLibPath = corpProperties.getMsgAuditLibPath(); + + config.setCorpId(corpId); + config.setCorpSecret(corpSecret); + config.setAgentId(agentId); + if (StringUtils.isNotBlank(token)) { + config.setToken(token); + } + if (StringUtils.isNotBlank(aesKey)) { + config.setAesKey(aesKey); + } + if (StringUtils.isNotBlank(msgAuditPriKey)) { + config.setMsgAuditPriKey(msgAuditPriKey); + } + if (StringUtils.isNotBlank(msgAuditLibPath)) { + config.setMsgAuditLibPath(msgAuditLibPath); + } + } + + private void configHttp(WxCpDefaultConfigImpl config, WxCpMultiProperties.ConfigStorage storage) { + String httpProxyHost = storage.getHttpProxyHost(); + Integer httpProxyPort = storage.getHttpProxyPort(); + String httpProxyUsername = storage.getHttpProxyUsername(); + String httpProxyPassword = storage.getHttpProxyPassword(); + if (StringUtils.isNotBlank(httpProxyHost)) { + config.setHttpProxyHost(httpProxyHost); + if (httpProxyPort != null) { + config.setHttpProxyPort(httpProxyPort); + } + if (StringUtils.isNotBlank(httpProxyUsername)) { + config.setHttpProxyUsername(httpProxyUsername); + } + if (StringUtils.isNotBlank(httpProxyPassword)) { + config.setHttpProxyPassword(httpProxyPassword); + } + } + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java new file mode 100644 index 0000000000..8889e4e489 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java @@ -0,0 +1,76 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure.services; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiProperties; +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiRedisProperties; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import me.chanjar.weixin.cp.config.impl.WxCpJedisConfigImpl; +import org.apache.commons.lang3.StringUtils; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import redis.clients.jedis.JedisPool; +import redis.clients.jedis.JedisPoolConfig; + +/** + * 自动装配基于 jedis 策略配置 + * + * @author yl + * created on 2023/10/16 + */ +@Configuration +@ConditionalOnProperty( + prefix = WxCpMultiProperties.PREFIX + ".config-storage", name = "type", havingValue = "jedis" +) +@RequiredArgsConstructor +public class WxCpInJedisConfiguration extends AbstractWxCpConfiguration { + private final WxCpMultiProperties wxCpMultiProperties; + private final ApplicationContext applicationContext; + + @Bean + public WxCpMultiServices wxCpServices() { + return this.configWxCpServices(wxCpMultiProperties); + } + + @Override + protected WxCpDefaultConfigImpl configWxCpDefaultConfigImpl(WxCpMultiProperties wxCpMultiProperties) { + return this.configRedis(wxCpMultiProperties); + } + + private WxCpDefaultConfigImpl configRedis(WxCpMultiProperties wxCpMultiProperties) { + WxCpMultiRedisProperties wxCpMultiRedisProperties = wxCpMultiProperties.getConfigStorage().getRedis(); + JedisPool jedisPool; + if (wxCpMultiRedisProperties != null && StringUtils.isNotEmpty(wxCpMultiRedisProperties.getHost())) { + jedisPool = getJedisPool(wxCpMultiProperties); + } else { + jedisPool = applicationContext.getBean(JedisPool.class); + } + return new WxCpJedisConfigImpl(jedisPool, wxCpMultiProperties.getConfigStorage().getKeyPrefix()); + } + + private JedisPool getJedisPool(WxCpMultiProperties wxCpMultiProperties) { + WxCpMultiProperties.ConfigStorage storage = wxCpMultiProperties.getConfigStorage(); + WxCpMultiRedisProperties redis = storage.getRedis(); + + JedisPoolConfig config = new JedisPoolConfig(); + if (redis.getMaxActive() != null) { + config.setMaxTotal(redis.getMaxActive()); + } + if (redis.getMaxIdle() != null) { + config.setMaxIdle(redis.getMaxIdle()); + } + if (redis.getMaxWaitMillis() != null) { + config.setMaxWaitMillis(redis.getMaxWaitMillis()); + } + if (redis.getMinIdle() != null) { + config.setMinIdle(redis.getMinIdle()); + } + config.setTestOnBorrow(true); + config.setTestWhileIdle(true); + + return new JedisPool(config, redis.getHost(), redis.getPort(), + redis.getTimeout(), redis.getPassword(), redis.getDatabase()); + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java new file mode 100644 index 0000000000..df63806a37 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java @@ -0,0 +1,38 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure.services; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiProperties; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * 自动装配基于内存策略配置 + * + * @author yl + * created on 2023/10/16 + */ +@Configuration +@ConditionalOnProperty( + prefix = WxCpMultiProperties.PREFIX + ".config-storage", name = "type", havingValue = "memory", matchIfMissing = true +) +@RequiredArgsConstructor +public class WxCpInMemoryConfiguration extends AbstractWxCpConfiguration { + private final WxCpMultiProperties wxCpMultiProperties; + + @Bean + public WxCpMultiServices wxCpServices() { + return this.configWxCpServices(wxCpMultiProperties); + } + + @Override + protected WxCpDefaultConfigImpl configWxCpDefaultConfigImpl(WxCpMultiProperties wxCpMultiProperties) { + return this.configInMemory(); + } + + private WxCpDefaultConfigImpl configInMemory() { + return new WxCpDefaultConfigImpl(); + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java new file mode 100644 index 0000000000..8f9943a94d --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java @@ -0,0 +1,43 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure.services; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiProperties; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import me.chanjar.weixin.cp.config.impl.WxCpRedisTemplateConfigImpl; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.core.StringRedisTemplate; + +/** + * 自动装配基于 redisTemplate 策略配置 + * + * @author yl + * created on 2023/10/16 + */ +@Configuration +@ConditionalOnProperty( + prefix = WxCpMultiProperties.PREFIX + ".config-storage", name = "type", havingValue = "redistemplate" +) +@RequiredArgsConstructor +public class WxCpInRedisTemplateConfiguration extends AbstractWxCpConfiguration { + private final WxCpMultiProperties wxCpMultiProperties; + private final ApplicationContext applicationContext; + + @Bean + public WxCpMultiServices wxCpServices() { + return this.configWxCpServices(wxCpMultiProperties); + } + + @Override + protected WxCpDefaultConfigImpl configWxCpDefaultConfigImpl(WxCpMultiProperties wxCpMultiProperties) { + return this.configRedisTemplate(wxCpMultiProperties); + } + + private WxCpDefaultConfigImpl configRedisTemplate(WxCpMultiProperties wxCpMultiProperties) { + StringRedisTemplate redisTemplate = applicationContext.getBean(StringRedisTemplate.class); + return new WxCpRedisTemplateConfigImpl(redisTemplate, wxCpMultiProperties.getConfigStorage().getKeyPrefix()); + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java new file mode 100644 index 0000000000..c4f7fcf687 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java @@ -0,0 +1,67 @@ +package com.binarywang.spring.starter.wxjava.cp.autoconfigure.services; + +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiProperties; +import com.binarywang.spring.starter.wxjava.cp.properties.WxCpMultiRedisProperties; +import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl; +import me.chanjar.weixin.cp.config.impl.WxCpRedissonConfigImpl; +import org.apache.commons.lang3.StringUtils; +import org.redisson.Redisson; +import org.redisson.api.RedissonClient; +import org.redisson.config.Config; +import org.redisson.config.TransportMode; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * 自动装配基于 redisson 策略配置 + * + * @author yl + * created on 2023/10/16 + */ +@Configuration +@ConditionalOnProperty( + prefix = WxCpMultiProperties.PREFIX + ".config-storage", name = "type", havingValue = "redisson" +) +@RequiredArgsConstructor +public class WxCpInRedissonConfiguration extends AbstractWxCpConfiguration { + private final WxCpMultiProperties wxCpMultiProperties; + private final ApplicationContext applicationContext; + + @Bean + public WxCpMultiServices wxCpServices() { + return this.configWxCpServices(wxCpMultiProperties); + } + + @Override + protected WxCpDefaultConfigImpl configWxCpDefaultConfigImpl(WxCpMultiProperties wxCpMultiProperties) { + return this.configRedisson(wxCpMultiProperties); + } + + private WxCpDefaultConfigImpl configRedisson(WxCpMultiProperties wxCpMultiProperties) { + WxCpMultiRedisProperties redisProperties = wxCpMultiProperties.getConfigStorage().getRedis(); + RedissonClient redissonClient; + if (redisProperties != null && StringUtils.isNotEmpty(redisProperties.getHost())) { + redissonClient = getRedissonClient(wxCpMultiProperties); + } else { + redissonClient = applicationContext.getBean(RedissonClient.class); + } + return new WxCpRedissonConfigImpl(redissonClient, wxCpMultiProperties.getConfigStorage().getKeyPrefix()); + } + + private RedissonClient getRedissonClient(WxCpMultiProperties wxCpMultiProperties) { + WxCpMultiProperties.ConfigStorage storage = wxCpMultiProperties.getConfigStorage(); + WxCpMultiRedisProperties redis = storage.getRedis(); + + Config config = new Config(); + config.useSingleServer() + .setAddress("redis://" + redis.getHost() + ":" + redis.getPort()) + .setDatabase(redis.getDatabase()) + .setPassword(redis.getPassword()); + config.setTransportMode(TransportMode.NIO); + return Redisson.create(config); + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/CorpProperties.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/CorpProperties.java new file mode 100644 index 0000000000..354078d053 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/CorpProperties.java @@ -0,0 +1,43 @@ +package com.binarywang.spring.starter.wxjava.cp.properties; + +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * 企业微信企业相关配置属性 + * + * @author yl + * created on 2023/10/16 + */ +@Data +@NoArgsConstructor +public class CorpProperties { + /** + * 微信企业号 corpId + */ + private String corpId; + /** + * 微信企业号 corpSecret + */ + private String corpSecret; + /** + * 微信企业号应用 token + */ + private String token; + /** + * 微信企业号应用 ID + */ + private Integer agentId; + /** + * 微信企业号应用 EncodingAESKey + */ + private String aesKey; + /** + * 微信企业号应用 会话存档私钥 + */ + private String msgAuditPriKey; + /** + * 微信企业号应用 会话存档类库路径 + */ + private String msgAuditLibPath; +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiProperties.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiProperties.java new file mode 100644 index 0000000000..2d2b418ade --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiProperties.java @@ -0,0 +1,108 @@ +package com.binarywang.spring.starter.wxjava.cp.properties; + +import lombok.Data; +import lombok.NoArgsConstructor; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.context.properties.NestedConfigurationProperty; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; + +/** + * 企业微信多企业接入相关配置属性 + * + * @author yl + * created on 2023/10/16 + */ +@Data +@NoArgsConstructor +@ConfigurationProperties(prefix = WxCpMultiProperties.PREFIX) +public class WxCpMultiProperties { + public static final String PREFIX = "wx.cp"; + + private Map corps = new HashMap<>(); + + /** + * 配置存储策略,默认内存 + */ + private ConfigStorage configStorage = new ConfigStorage(); + + @Data + @NoArgsConstructor + public static class ConfigStorage implements Serializable { + private static final long serialVersionUID = 4815731027000065434L; + /** + * 存储类型 + */ + private StorageType type = StorageType.memory; + + /** + * 指定key前缀 + */ + private String keyPrefix = "wx:cp"; + + /** + * redis连接配置 + */ + @NestedConfigurationProperty + private WxCpMultiRedisProperties redis = new WxCpMultiRedisProperties(); + + /** + * http代理主机 + */ + private String httpProxyHost; + + /** + * http代理端口 + */ + private Integer httpProxyPort; + + /** + * http代理用户名 + */ + private String httpProxyUsername; + + /** + * http代理密码 + */ + private String httpProxyPassword; + + /** + * http 请求最大重试次数 + *
+     *   {@link me.chanjar.weixin.cp.api.WxCpService#setMaxRetryTimes(int)}
+     *   {@link me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl#setMaxRetryTimes(int)}
+     * 
+ */ + private int maxRetryTimes = 5; + + /** + * http 请求重试间隔 + *
+     *   {@link me.chanjar.weixin.cp.api.WxCpService#setRetrySleepMillis(int)}
+     *   {@link me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl#setRetrySleepMillis(int)}
+     * 
+ */ + private int retrySleepMillis = 1000; + } + + public enum StorageType { + /** + * 内存 + */ + memory, + /** + * jedis + */ + jedis, + /** + * redisson + */ + redisson, + /** + * redistemplate + */ + redistemplate + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiRedisProperties.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiRedisProperties.java new file mode 100644 index 0000000000..e684333aea --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/properties/WxCpMultiRedisProperties.java @@ -0,0 +1,46 @@ +package com.binarywang.spring.starter.wxjava.cp.properties; + +import lombok.Data; + +import java.io.Serializable; + +/** + * Redis配置. + * + * @author yl + * created on 2023/10/16 + */ +@Data +public class WxCpMultiRedisProperties implements Serializable { + private static final long serialVersionUID = -5924815351660074401L; + + /** + * 主机地址. + */ + private String host; + + /** + * 端口号. + */ + private int port = 6379; + + /** + * 密码. + */ + private String password; + + /** + * 超时. + */ + private int timeout = 2000; + + /** + * 数据库. + */ + private int database = 0; + + private Integer maxActive; + private Integer maxIdle; + private Integer maxWaitMillis; + private Integer minIdle; +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServices.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServices.java new file mode 100644 index 0000000000..dfcb25631d --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServices.java @@ -0,0 +1,26 @@ +package com.binarywang.spring.starter.wxjava.cp.service; + +import me.chanjar.weixin.cp.api.WxCpService; + +/** + * 企业微信 {@link WxCpService} 所有实例存放类. + * + * @author yl + * created on 2023/10/16 + */ +public interface WxCpMultiServices { + /** + * 通过租户 Id 获取 WxCpService + * + * @param tenantId 租户 Id + * @return WxCpService + */ + WxCpService getWxCpService(String tenantId); + + /** + * 根据租户 Id,从列表中移除一个 WxCpService 实例 + * + * @param tenantId 租户 Id + */ + void removeWxCpService(String tenantId); +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServicesImpl.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServicesImpl.java new file mode 100644 index 0000000000..19eae24159 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/service/WxCpMultiServicesImpl.java @@ -0,0 +1,42 @@ +package com.binarywang.spring.starter.wxjava.cp.service; + +import me.chanjar.weixin.cp.api.WxCpService; + +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +/** + * 企业微信 {@link WxCpMultiServices} 默认实现 + * + * @author yl + * created on 2023/10/16 + */ +public class WxCpMultiServicesImpl implements WxCpMultiServices { + private final Map services = new ConcurrentHashMap<>(); + + /** + * 通过租户 Id 获取 WxCpService + * + * @param tenantId 租户 Id + * @return WxCpService + */ + @Override + public WxCpService getWxCpService(String tenantId) { + return this.services.get(tenantId); + } + + /** + * 根据租户 Id,添加一个 WxCpService 到列表 + * + * @param tenantId 租户 Id + * @param wxCpService WxCpService 实例 + */ + public void addWxCpService(String tenantId, WxCpService wxCpService) { + this.services.put(tenantId, wxCpService); + } + + @Override + public void removeWxCpService(String tenantId) { + this.services.remove(tenantId); + } +} diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring.factories b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000000..6010561a96 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ +com.binarywang.spring.starter.wxjava.cp.autoconfigure.WxCpMultiAutoConfiguration diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports new file mode 100644 index 0000000000..3c48ec34e1 --- /dev/null +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -0,0 +1 @@ +com.binarywang.spring.starter.wxjava.cp.autoconfigure.WxCpMultiAutoConfiguration diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java index 07400af53c..4accc2f60b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java @@ -12,7 +12,6 @@ import me.chanjar.weixin.cp.bean.WxCpMaJsCode2SessionResult; import me.chanjar.weixin.cp.bean.WxCpProviderToken; import me.chanjar.weixin.cp.config.WxCpConfigStorage; -import me.chanjar.weixin.cp.corpgroup.service.WxCpLinkedCorpService; /** * 微信API的Service. @@ -567,7 +566,7 @@ public interface WxCpService extends WxService { /** * 相关接口的服务类对象 * - * @return the meeting service + * @return the meeting service */ WxCpMeetingService getMeetingService(); From f936325b0ce67301f0cabb645c823aac03f67bf1 Mon Sep 17 00:00:00 2001 From: kevinzhwl Date: Thu, 26 Oct 2023 09:34:16 +0000 Subject: [PATCH 600/622] =?UTF-8?q?:art:=20=E6=8F=90=E4=BE=9B=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=96=B9=E4=BE=BF=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B1=BB?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20XStreamTransformer=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8C=96,=20=E4=BB=A5=E5=8F=8A=E6=94=AF?= =?UTF-8?q?=E6=8C=81XStream=201.4.18=20=E4=BB=A5=E4=B8=8A=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AE=89=E5=85=A8=E8=AE=B8=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/util/xml/XStreamTransformer.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/xml/XStreamTransformer.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/xml/XStreamTransformer.java index f0961d5edf..f36d8c8fbd 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/xml/XStreamTransformer.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/xml/XStreamTransformer.java @@ -54,7 +54,22 @@ public static String toXml(Class clazz, T object) { public static void register(Class clz, XStream xStream) { CLASS_2_XSTREAM_INSTANCE.put(clz, xStream); } + /** + * 注册第三方的该类及其子类. + * 便利第三方类使用 XStreamTransformer进行序列化, 以及支持XStream 1.4.18 以上增加安全许可 + * @param clz 要注册的类 + */ + public static void registerExtendClass(Class clz){ + XStream xstream = XStreamInitializer.getInstance(); + Class[] innerClz = getInnerClasses(clz); + xstream.processAnnotations(clz); + xstream.processAnnotations(innerClz); + xstream.allowTypes(new Class[]{clz}); + xstream.allowTypes(innerClz); + + register(clz, xstream); + } /** * 会自动注册该类及其子类. * From eef62676aa008135b9967c990948825e07c2eb88 Mon Sep 17 00:00:00 2001 From: Cherry <522581280@qq.com> Date: Sun, 29 Oct 2023 16:54:01 +0800 Subject: [PATCH 601/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=85=B1=E4=BA=AB=E5=BA=94=E7=94=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java | 2 +- .../weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java index ae4db4582a..be754f229b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java @@ -39,7 +39,7 @@ public List listAppShareInfo(Integer agentId, Integer busines JsonObject tmpJson = GsonParser.parse(responseContent); return WxCpGsonBuilder.create().fromJson(tmpJson.get("corp_list"), - new TypeToken>() { + new TypeToken>() { }.getType() ); } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java index b972b69f32..e78ce5c008 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java @@ -1,5 +1,6 @@ package me.chanjar.weixin.cp.api.impl; +import com.google.gson.JsonObject; import com.google.inject.Inject; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.cp.api.ApiTestModule; @@ -23,7 +24,7 @@ public class WxCpCorpGroupServiceImplTest { @Test public void testListAppShareInfo() throws WxErrorException { Integer agentId = wxService.getWxCpConfigStorage().getAgentId(); - Integer businessType = 0; + Integer businessType = 1; String corpId = null; Integer limit = null; String cursor = null; From 0bc0b38a7709e6735628332070c469836292038a Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 29 Oct 2023 18:01:22 +0800 Subject: [PATCH 602/622] =?UTF-8?q?:art:=20=E3=80=90=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91=E4=BB=A3=E7=A0=81=E5=AE=A1=E6=A0=B8=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=89=E4=B8=AA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaCodeService.java | 2 +- .../miniapp/bean/code/WxMaCodeAuditStatus.java | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java index 3780a18e36..88f7f9e99c 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaCodeService.java @@ -69,7 +69,7 @@ public interface WxMaCodeService { /** * 查询最新一次提交的审核状态(仅供第三方代小程序调用). - * + * 文档:文档地址 * @return 审核状态 * @throws WxErrorException 查询失败时返回,具体错误码请看此接口的注释文档 */ diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeAuditStatus.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeAuditStatus.java index d8733756c1..59de0573b1 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeAuditStatus.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeAuditStatus.java @@ -41,6 +41,24 @@ public class WxMaCodeAuditStatus implements Serializable { @SerializedName(value = "screenshot") private String screenShot; + /** + * 审核版本 + */ + @SerializedName(value = "user_version") + private String userVersion; + + /** + * 版本描述 + */ + @SerializedName(value = "user_desc") + private String userDesc; + + /** + * 时间戳,提交审核的时间 + */ + @SerializedName(value = "submit_audit_time") + private String submitAuditTime; + public static WxMaCodeAuditStatus fromJson(String json) { return WxMaGsonBuilder.create().fromJson(json, WxMaCodeAuditStatus.class); } From d8ed9fd33240a6a1852e01e1f4121e6120874ae0 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 29 Oct 2023 20:06:42 +0800 Subject: [PATCH 603/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.5.6?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- spring-boot-starters/pom.xml | 2 +- .../wx-java-channel-spring-boot-starter/pom.xml | 2 +- .../wx-java-cp-multi-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- .../wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-channel/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pom.xml b/pom.xml index 7d67b19c22..0e4e981eec 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK @@ -373,7 +373,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.5.0 + 2.9.1 attach-javadocs diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index d66ecbecbf..20715b391b 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml index 9fff9e9d3e..3b841ca68c 100644 --- a/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml index a44416872f..b336ef9ee0 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 7e468eeb43..13b2e5561e 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 6d6022c8fc..6dff622ec4 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index c7da14d99c..df8df4cb5e 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index b6edb57ad7..29d4c80c0c 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index f665f027f0..64ef51ecad 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index 5ee9597558..bdf67372f0 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 151a3f0ff7..1f02daf7c0 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-graal diff --git a/weixin-java-channel/pom.xml b/weixin-java-channel/pom.xml index c85f663133..a93d5144bf 100644 --- a/weixin-java-channel/pom.xml +++ b/weixin-java-channel/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-channel diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index 5e90271e2d..a970c05531 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 5020f13adb..9d9c9c124b 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index caab2cb38d..97d9676b22 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index c72b5a4bde..6c4016cae4 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index e97ebfadc7..62a2aaf9fa 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index c52618a39d..100718c44a 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 4083598520..484ca815f7 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.5.B + 4.5.6.B weixin-java-qidian From 179d469d351ddfdfe73fa0458157de4aba3f44ee Mon Sep 17 00:00:00 2001 From: bit01 <793059909@qq.com> Date: Tue, 7 Nov 2023 08:19:41 +0000 Subject: [PATCH 604/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8Dstable=20toke?= =?UTF-8?q?n=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98=20!110?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/config/impl/WxMpRedisConfigImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedisConfigImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedisConfigImpl.java index 7f54eb0bb9..870fa1e276 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedisConfigImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/config/impl/WxMpRedisConfigImpl.java @@ -68,7 +68,7 @@ public boolean isAccessTokenExpired() { @Override public synchronized void updateAccessToken(String accessToken, int expiresInSeconds) { - redisOps.setValue(this.accessTokenKey, accessToken, expiresInSeconds - 200, TimeUnit.SECONDS); + redisOps.setValue(this.accessTokenKey, accessToken, expiresInSeconds, TimeUnit.SECONDS); } @Override From b569ab8cbe61212f3398e06538fff8882fb1fb74 Mon Sep 17 00:00:00 2001 From: foreveryang321 <453190450@qq.com> Date: Tue, 7 Nov 2023 16:23:26 +0800 Subject: [PATCH 605/622] =?UTF-8?q?:art:=20#3156=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BC=98=E5=8C=96=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=BA=94=E7=94=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=9C=AA=E9=85=8D=E7=BD=AE=E6=97=B6=E7=9A=84=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx-java-cp-multi-spring-boot-starter/README.md | 11 +++++++++++ .../services/AbstractWxCpConfiguration.java | 11 +++++++---- .../services/WxCpInJedisConfiguration.java | 2 +- .../services/WxCpInMemoryConfiguration.java | 2 +- .../services/WxCpInRedisTemplateConfiguration.java | 2 +- .../services/WxCpInRedissonConfiguration.java | 2 +- 6 files changed, 22 insertions(+), 8 deletions(-) diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md index d05c43bbaf..6b1ddaeb3b 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/README.md @@ -80,6 +80,17 @@ public class DemoService { WxCpUserService userService2 = wxCpService2.getUserService(); userService2.getUserId("xxx"); // todo ... + + // 应用 3 的 WxCpService + WxCpService wxCpService3 = wxCpMultiServices.getWxCpService("tenantId3"); + // 判断是否为空 + if (wxCpService3 == null) { + // todo wxCpService3 为空,请先配置 tenantId3 企业微信应用参数 + return; + } + WxCpUserService userService3 = wxCpService3.getUserService(); + userService3.getUserId("xxx"); + // todo ... } } ``` diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java index 05f5cae997..ec45ceaa2f 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/AbstractWxCpConfiguration.java @@ -5,6 +5,7 @@ import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServices; import com.binarywang.spring.starter.wxjava.cp.service.WxCpMultiServicesImpl; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.cp.api.WxCpService; import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl; import me.chanjar.weixin.cp.config.WxCpConfigStorage; @@ -24,13 +25,14 @@ * created on 2023/10/16 */ @RequiredArgsConstructor +@Slf4j public abstract class AbstractWxCpConfiguration { protected WxCpMultiServices configWxCpServices(WxCpMultiProperties wxCpMultiProperties) { - WxCpMultiServicesImpl wxCpServices = new WxCpMultiServicesImpl(); Map corps = wxCpMultiProperties.getCorps(); if (corps == null || corps.isEmpty()) { - throw new RuntimeException("企业微信配置为null"); + log.warn("企业微信应用参数未配置,通过 WxCpMultiServices#getWxCpService(\"tenantId\")获取实例将返回空"); + return new WxCpMultiServicesImpl(); } /** * 校验同一个企业下,agentId 是否唯一,避免使用 redis 缓存 token、ticket 时错乱。 @@ -55,6 +57,7 @@ protected WxCpMultiServices configWxCpServices(WxCpMultiProperties wxCpMultiProp } } } + WxCpMultiServicesImpl services = new WxCpMultiServicesImpl(); Set> entries = corps.entrySet(); for (Map.Entry entry : entries) { @@ -64,9 +67,9 @@ protected WxCpMultiServices configWxCpServices(WxCpMultiProperties wxCpMultiProp this.configCorp(storage, corpProperties); this.configHttp(storage, wxCpMultiProperties.getConfigStorage()); WxCpService wxCpService = this.configWxCpService(storage, wxCpMultiProperties.getConfigStorage()); - wxCpServices.addWxCpService(tenantId, wxCpService); + services.addWxCpService(tenantId, wxCpService); } - return wxCpServices; + return services; } /** diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java index 8889e4e489..3e49a5024a 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInJedisConfiguration.java @@ -30,7 +30,7 @@ public class WxCpInJedisConfiguration extends AbstractWxCpConfiguration { private final ApplicationContext applicationContext; @Bean - public WxCpMultiServices wxCpServices() { + public WxCpMultiServices wxCpMultiServices() { return this.configWxCpServices(wxCpMultiProperties); } diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java index df63806a37..dd0946fc53 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInMemoryConfiguration.java @@ -23,7 +23,7 @@ public class WxCpInMemoryConfiguration extends AbstractWxCpConfiguration { private final WxCpMultiProperties wxCpMultiProperties; @Bean - public WxCpMultiServices wxCpServices() { + public WxCpMultiServices wxCpMultiServices() { return this.configWxCpServices(wxCpMultiProperties); } diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java index 8f9943a94d..103956fed3 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedisTemplateConfiguration.java @@ -27,7 +27,7 @@ public class WxCpInRedisTemplateConfiguration extends AbstractWxCpConfiguration private final ApplicationContext applicationContext; @Bean - public WxCpMultiServices wxCpServices() { + public WxCpMultiServices wxCpMultiServices() { return this.configWxCpServices(wxCpMultiProperties); } diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java index c4f7fcf687..b8fc3a83ac 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/cp/autoconfigure/services/WxCpInRedissonConfiguration.java @@ -32,7 +32,7 @@ public class WxCpInRedissonConfiguration extends AbstractWxCpConfiguration { private final ApplicationContext applicationContext; @Bean - public WxCpMultiServices wxCpServices() { + public WxCpMultiServices wxCpMultiServices() { return this.configWxCpServices(wxCpMultiProperties); } From fc7943e3dca635b947abe3519ac0e01b180a2285 Mon Sep 17 00:00:00 2001 From: hixian <316840383@qq.com> Date: Tue, 7 Nov 2023 16:24:41 +0800 Subject: [PATCH 606/622] =?UTF-8?q?:art:=20#3154=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E4=BF=AE=E5=A4=8D=E6=8C=89?= =?UTF-8?q?=E6=97=A5=E4=B8=8B=E8=BD=BD=E6=8F=90=E7=8E=B0=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=8E=A5=E5=8F=A3=E5=93=8D=E5=BA=94=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/binarywang/wxpay/service/PayrollService.java | 3 ++- .../binarywang/wxpay/service/impl/PayrollServiceImpl.java | 8 ++++++-- .../wxpay/service/impl/PayrollServiceImplTest.java | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java index 3cd2fe921b..b3f788815c 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PayrollService.java @@ -1,6 +1,7 @@ package com.github.binarywang.wxpay.service; import com.github.binarywang.wxpay.bean.marketing.payroll.*; +import com.github.binarywang.wxpay.bean.result.WxPayApplyBillV3Result; import com.github.binarywang.wxpay.exception.WxPayException; /** @@ -98,6 +99,6 @@ public interface PayrollService { * @return 返回数据 * @throws WxPayException the wx pay exception */ - PreOrderWithAuthResult merchantFundWithdrawBillType(String billType, String billDate) throws WxPayException; + WxPayApplyBillV3Result merchantFundWithdrawBillType(String billType, String billDate, String tarType) throws WxPayException; } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java index 5708e8579d..3d8c831271 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java @@ -1,6 +1,7 @@ package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.marketing.payroll.*; +import com.github.binarywang.wxpay.bean.result.WxPayApplyBillV3Result; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.PayrollService; import com.github.binarywang.wxpay.service.WxPayService; @@ -182,11 +183,14 @@ public PreOrderWithAuthResult payrollCardPreOrderWithAuth(PreOrderWithAuthReques * @throws WxPayException the wx pay exception */ @Override - public PreOrderWithAuthResult merchantFundWithdrawBillType(String billType, String billDate) throws WxPayException { + public WxPayApplyBillV3Result merchantFundWithdrawBillType(String billType, String billDate, String tarType) throws WxPayException { String url = String.format("%s/v3/merchant/fund/withdraw/bill-type/%s", payService.getPayBaseUrl(), billType); String query = String.format("?bill_date=%s", billDate); + if (StringUtils.isNotBlank(tarType)) { + query += String.format("&tar_type=%s", tarType); + } String response = payService.getV3(url + query); - return GSON.fromJson(response, PreOrderWithAuthResult.class); + return GSON.fromJson(response, WxPayApplyBillV3Result.class); } } diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java index 2254bc6128..03bbc8c593 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java @@ -3,6 +3,7 @@ import com.github.binarywang.wxpay.bean.marketing.payroll.*; import com.github.binarywang.wxpay.bean.marketing.transfer.PartnerTransferRequest; import com.github.binarywang.wxpay.bean.marketing.transfer.PartnerTransferResult; +import com.github.binarywang.wxpay.bean.result.WxPayApplyBillV3Result; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.testbase.ApiTestModule; @@ -120,9 +121,8 @@ public void payrollCardPreOrderWithAuth() throws WxPayException { public void merchantFundWithdrawBillType() throws WxPayException { String billType = "NO_SUCC"; String billDate = "2019-08-17"; - PreOrderWithAuthResult preOrderWithAuthResult = wxPayService.getPayrollService().merchantFundWithdrawBillType(billType, billDate); - log.info(preOrderWithAuthResult.toString()); - + WxPayApplyBillV3Result result = wxPayService.getPayrollService().merchantFundWithdrawBillType(billType, billDate, null); + log.info(result.toString()); } } From f2abe7429d197728474d746d09b8ee12b8aa41b4 Mon Sep 17 00:00:00 2001 From: MAO_LEE Date: Thu, 9 Nov 2023 13:12:02 +0000 Subject: [PATCH 607/622] =?UTF-8?q?:bug:=20=E3=80=90=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E3=80=91=E4=BA=8C=E7=BA=A7=E5=95=86=E6=88=B7?= =?UTF-8?q?=E8=BF=9B=E4=BB=B6=E7=94=B3=E8=AF=B7=E6=8E=A5=E5=8F=A3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=8F=82=E6=95=B0=E9=87=8C=E7=9A=84=E9=87=91=E8=9E=8D?= =?UTF-8?q?=E6=9C=BA=E6=9E=84=E8=AE=B8=E5=8F=AF=E8=AF=81=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java index 9b0c6b6604..80a32a6e47 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ApplymentsRequest.java @@ -499,7 +499,7 @@ public static class FinanceInstitutionInfo implements Serializable { *
*/ @SerializedName(value = "finance_license_pics") - private String financeLicensePics; + private List financeLicensePics; } From f1d790c7105555b5239c0f0df4627023f75f98e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=BC=E7=A6=84=C2=B7saber=C2=B7=E6=BD=8D=E7=B4=8D?= =?UTF-8?q?=E6=96=AF?= Date: Mon, 13 Nov 2023 11:04:50 +0800 Subject: [PATCH 608/622] =?UTF-8?q?:new:=20#3162=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=8E=A5=E5=85=A5=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=95=86=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E5=88=86?= =?UTF-8?q?=E7=AD=BE=E7=BA=A6=E8=AE=A1=E5=88=92=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payscore/PartnerUserSignPlanDetail.java | 94 ++++++ .../payscore/PartnerUserSignPlanEntity.java | 165 ++++++++++ .../bean/payscore/PayScoreNotifyData.java | 8 + .../bean/payscore/PayScorePlanDetail.java | 49 +++ .../payscore/UserSignPlanDetailMerchatNo.java | 32 ++ .../WxPartnerPayScoreSignPlanRequest.java | 130 ++++++++ .../WxPartnerPayScoreSignPlanResult.java | 104 ++++++ .../WxPartnerPayScoreUserSignPlanResult.java | 31 ++ ...gnPlanServiceOrderPlanDetailStateEnum.java | 30 ++ .../enums/SignPlanServiceOrderStateEnum.java | 36 ++ .../enums/UserSignPlanCancelSignTypeEnum.java | 30 ++ .../PartnerPayScoreSignPlanService.java | 138 ++++++++ .../wxpay/service/WxPayService.java | 6 + .../service/impl/BaseWxPayServiceImpl.java | 3 + .../PartnerPayScoreSignPlanServiceImpl.java | 308 ++++++++++++++++++ ...artnerPayScoreSignPlanServiceImplTest.java | 76 +++++ 16 files changed, 1240 insertions(+) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanEntity.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetail.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/UserSignPlanDetailMerchatNo.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreUserSignPlanResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderPlanDetailStateEnum.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderStateEnum.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/UserSignPlanCancelSignTypeEnum.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreSignPlanService.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImpl.java create mode 100644 weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImplTest.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java new file mode 100644 index 0000000000..d006f15a0c --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java @@ -0,0 +1,94 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.github.binarywang.wxpay.bean.payscore.enums.SignPlanServiceOrderPlanDetailStateEnum; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author UltramanNoa + * @className PartnerUserSignPlanDetail + * @description 签约计划明细列表 + * @createTime 2023/11/3 17:19 + **/ +@Data +@NoArgsConstructor +public class PartnerUserSignPlanDetail implements Serializable { + + private static final long serialVersionUID = 2089297485318293622L; + /** + * 计划明细序号 + */ + @SerializedName("plan_detail_no") + private Integer planDetailNo; + + /** + * 计划明细原支付金额(单位分) + */ + @SerializedName("original_price") + private Integer originalPrice; + + /** + * 计划明细优惠说明 + */ + @SerializedName("plan_discount_description") + private String planDiscountDescription; + + /** + * 计划明细实际支付金额(单位分) + */ + @SerializedName("actual_price") + private Integer actualPrice; + + /** + * 计划明细状态 + * + * @see SignPlanServiceOrderPlanDetailStateEnum + */ + @SerializedName("plan_detail_state") + private String planDetailState; + + /** + * 计划明细对应的支付分服务单号 + */ + @SerializedName("order_id") + private String orderId; + + /** + * 商户侧计划明细使用订单号 + */ + @SerializedName("merchant_plan_detail_no") + private String merchantPlanDetailNo; + + /** + * 计划详情名称 + */ + @SerializedName("plan_detail_name") + private Integer planDetailName; + + /** + * 计划明细对应订单实际支付金额(单位分) + */ + @SerializedName("actual_pay_price") + private Integer actualPayPrice; + + /** + * 详情使用时间 + */ + @SerializedName("use_time") + private String useTime; + + /** + * 详情完成时间 + */ + @SerializedName("complete_time") + private String completeTime; + + /** + * 详情取消时间 + */ + @SerializedName("cancel_time") + private String cancelTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanEntity.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanEntity.java new file mode 100644 index 0000000000..60b7898869 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanEntity.java @@ -0,0 +1,165 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.github.binarywang.wxpay.bean.payscore.enums.SignPlanServiceOrderStateEnum; +import com.github.binarywang.wxpay.bean.payscore.enums.UserSignPlanCancelSignTypeEnum; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; +import java.util.List; + +/** + * @author UltramanNoa + * @className PartnerUserSignPlanEntity + * @description 用户的签约计划 + * @createTime 2023/11/3 16:05 + **/ +@Data +@NoArgsConstructor +public class PartnerUserSignPlanEntity implements Serializable { + + private static final long serialVersionUID = -662901613603698430L; + + public static PartnerUserSignPlanEntity fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, PartnerUserSignPlanEntity.class); + } + + + /** + * 待创建服务订单对应的用户的签约计划 + */ + @SerializedName("sign_plan_id") + private String signPlanId; + + @SerializedName("openid") + private String openid; + + /** + *
+   * 字段名:二级商户用户标识
+   * 变量名:sub_openid
+   * 是否必填:否
+   * 类型:string(128)
+   * 描述:
+   *  用户在二级商户appid下的唯一标识。
+   *  示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o
+   * 
+ */ + @SerializedName(value = "sub_openid") + private String subOpenid; + + + @SerializedName("service_id") + private String serviceId; + + @SerializedName("mchid") + private String mchid; + + /** + * 子商户商户号 + */ + @SerializedName("sub_mchid") + private String subMchid; + + @SerializedName("appid") + private String appid; + + /** + * 子商户AppID + */ + @SerializedName("sub_appid") + private String subAppid; + + /** + * 商户签约计划单号 + */ + @SerializedName("merchant_sign_plan_no") + private String merchantSignPlanNo; + + /** + * 商户回调地址 + */ + @SerializedName("merchant_callback_url") + private String merchantCallbackUrl; + + /** + * 支付分计划ID + */ + @SerializedName("plan_id") + private String planId; + + /** + * 目前用户进行到的计划详情序号 + */ + @SerializedName("going_detail_no") + private Integer goingDetailNo; + + /** + * 计划签约状态 + * + * @see SignPlanServiceOrderStateEnum + */ + @SerializedName("sign_state") + private String signState; + + /** + * 签约计划取消时间 + */ + @SerializedName("cancel_sign_time") + private String cancelSignTime; + + /** + * 签约计划取消类型 + * + * @see UserSignPlanCancelSignTypeEnum + */ + @SerializedName("cancel_sign_type") + private String cancelSignType; + + /** + * 签约计划取消原因 + */ + @SerializedName("cancel_reason") + private String cancelReason; + + /** + * 签约计划的名称 + */ + @SerializedName("plan_name") + private String planName; + + /** + * 签约计划的过期时间 + */ + @SerializedName("plan_over_time") + private String planOverTime; + + /** + * 签约计划原总金额(单位分) + */ + @SerializedName("total_origin_price") + private Integer totalOriginPrice; + + /** + * 签约计划扣费次数 + */ + @SerializedName("deduction_quantity") + private Integer deductionQuantity; + + /** + * 签约计划实际总金额(单位分) + */ + @SerializedName("total_actual_price") + private Integer totalActualPrice; + + @SerializedName("signed_detail_list") + private List signedDetailList; + + /** + * 签约时间 + */ + @SerializedName("sign_time") + private String signTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java index 9aea8e631e..18b6975383 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java @@ -35,6 +35,8 @@ public class PayScoreNotifyData implements Serializable { *

2、解除授权成功通知的类型为PAYSCORE.USER_CLOSE_SERVICE

*

3、用户确认成功通知的类型为PAYSCORE.USER_CONFIRM

*

4、支付成功通知的类型为PAYSCORE.USER_PAID

+ *

5、取消签约成功通知类型为PAYSCORE.USER_CANCEL_SIGN_PLAN

+ *

6、签约计划成功通知类型为PAYSCORE

*/ @SerializedName("event_type") private String eventType; @@ -85,5 +87,11 @@ public static class Resource implements Serializable { */ @SerializedName("associated_data") private String associatedData; + + /** + * 原始回调类型,支付分的原始回调类型为payscore + */ + @SerializedName("original_type") + private String originalType; } } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetail.java new file mode 100644 index 0000000000..a0ed7ed123 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetail.java @@ -0,0 +1,49 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author UltramanNoa + * @className PayScorePlanDetail + * @description 支付分计划明细列表 + * @createTime 2023/11/3 11:22 + **/ +@Data +@NoArgsConstructor +public class PayScorePlanDetail implements Serializable { + + private static final long serialVersionUID = 999251141141181820L; + /** + * 计划明细原支付金额(单位分) + */ + @SerializedName("original_price") + private Integer originalPrice; + + /** + * 计划明细优惠说明 + */ + @SerializedName("plan_discount_description") + private String planDiscountDescription; + + /** + * 计划明细实际支付金额(单位分) + */ + @SerializedName("actual_price") + private String actualPrice; + + /** + * 计划明细名称 + */ + @SerializedName("plan_detail_name") + private String planDetailName; + + /** + * 计划明细序号(返回参数) + */ + @SerializedName("plan_detail_no") + private Integer planDetailNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/UserSignPlanDetailMerchatNo.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/UserSignPlanDetailMerchatNo.java new file mode 100644 index 0000000000..bd081cec85 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/UserSignPlanDetailMerchatNo.java @@ -0,0 +1,32 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author UltramanNoa + * @className UserSignPlanDetailMerchatNo + * @description 签约计划对应的计划详情列表的商户侧单号信息 + * @createTime 2023/11/3 15:51 + **/ +@Data +@NoArgsConstructor +public class UserSignPlanDetailMerchatNo implements Serializable { + + private static final long serialVersionUID = 2668791598158720023L; + + /** + * 计划明细序号 + */ + @SerializedName("plan_detail_no") + private Integer planDetailNo; + + /** + * 商户侧计划明细使用订单号 + */ + @SerializedName("merchant_plan_detail_no") + private String merchantPlanDetailNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java new file mode 100644 index 0000000000..02733e2993 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java @@ -0,0 +1,130 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; +import lombok.experimental.SuperBuilder; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.util.List; + +/** + * @author UltramanNoa + * @className WxPartnerPayScoreSignPlanRequest + * @description 支付分计划请求参数 + * @createTime 2023/11/3 09:54 + **/ +@Data +@SuperBuilder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = true) +public class WxPartnerPayScoreSignPlanRequest extends WxPayScoreRequest { + private static final long serialVersionUID = 6269843192878112955L; + + public String toJson() { + return WxGsonBuilder.create().toJson(this); + } + + /** + * 子商户appid + */ + @SerializedName("sub_appid") + private String subAppid; + + /** + * 子商户mchid + */ + @SerializedName("sub_mchid") + private String subMchid; + + /** + * 子商户公众号下的用户标识 + */ + @SerializedName("sub_openid") + private String subOpenid; + /** + * 支付分计划名称 + */ + @SerializedName("plan_name") + private String planName; + + /** + * 支付分计划有效期(单位天) + */ + @SerializedName("plan_duration") + private Integer planDuration; + + /** + * 支付分计划扣费次数 + */ + @SerializedName("deduction_quantity") + private Integer deductionQuantity; + + + /** + * 支付分计划原总金额(单位分) + */ + @SerializedName("total_original_price") + private Integer totalOriginalPrice; + + /** + * 支付分计划实际扣费总金额(单位分) + */ + @SerializedName("total_actual_price") + private Integer totalActualPrice; + + /** + * 支付分计划明细列表 + */ + @SerializedName("plan_detail_list") + private List planDetailList; + + /** + * 商户侧计划号 + */ + @SerializedName("merchant_plan_no") + private String merchantPlanNo; + + + /** + * 待创建服务订单对应的用户的签约计划 + */ + @SerializedName("sign_plan_id") + private String signPlanId; + + /** + * 待创建服务订单对应的用户的签约计划详情序号 + */ + @SerializedName("plan_detail_no") + private Integer planDetailNo; + + /** + * 商户侧订单号 + */ + @SerializedName("out_trade_no") + private String outTradeNo; + + /** + * 支付分计划ID + */ + @SerializedName("plan_id") + private String planId; + + /** + * 商户签约计划单号 + */ + @SerializedName("merchant_sign_plan_no") + private String merchantSignPlanNo; + + /** + * 签约计划对应的计划详情列表的商户侧单号信息 + */ + @SerializedName("sign_plan_detail") + private List signPlanDetail; + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java new file mode 100644 index 0000000000..b5bcd51503 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java @@ -0,0 +1,104 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.util.List; + +/** + * @author UltramanNoa + * @className WxPartnerPayScoreSignPlanResult + * @description 支付分计划响应参数 + * @createTime 2023/11/3 10:11 + **/ +@Data +@NoArgsConstructor +public class WxPartnerPayScoreSignPlanResult extends WxPayScoreResult { + + private static final long serialVersionUID = 4048529978029913621L; + + public static WxPartnerPayScoreSignPlanResult fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxPartnerPayScoreSignPlanResult.class); + } + + /** + * 子商户AppID + */ + @SerializedName("sub_appid") + private String subAppid; + + /** + * 子商户商户号 + */ + @SerializedName("sub_mchid") + private String subMchid; + + /** + * 支付分计划ID + */ + @SerializedName("plan_id") + private String planId; + + /** + * 商户侧计划号 + */ + @SerializedName("merchant_plan_no") + private String merchantPlanNo; + + /** + * 支付分计划名称 + */ + @SerializedName("plan_name") + private String planName; + + /** + * 支付分计划有效期(单位天) + */ + @SerializedName("plan_duration") + private String planDuration; + + /** + * 支付分计划状态 + * + * @see + */ + @SerializedName("plan_state") + private String planState; + /** + * 支付分计划原总金额(单位分) + */ + @SerializedName("total_original_price") + private String totalOriginalPrice; + + /** + * 支付分计划扣费次数 + */ + @SerializedName("deduction_quantity") + private String deductionQuantity; + + /** + * 支付分计划实际扣费总金额(单位分) + */ + @SerializedName("total_actual_price") + private Integer totalActualPrice; + + /** + * 支付分计划明细列表 + */ + @SerializedName("plan_detail_list") + private List planDetailList; + + /** + * 终止方商户号 + */ + @SerializedName("stop_mchid") + private String stopMchid; + + /** + * 终止时间 + */ + @SerializedName("stop_time") + private String stopTime; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreUserSignPlanResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreUserSignPlanResult.java new file mode 100644 index 0000000000..4080d8168e --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreUserSignPlanResult.java @@ -0,0 +1,31 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; + +import java.io.Serializable; + +/** + * @author UltramanNoa + * @className WxPartnerUserSignPlanResult + * @description 微信支付分用户签约计划返回 + * @createTime 2023/11/3 16:38 + **/ +@Data +@NoArgsConstructor +public class WxPartnerPayScoreUserSignPlanResult implements Serializable { + + private static final long serialVersionUID = 4148075707018175845L; + + public static WxPartnerPayScoreUserSignPlanResult fromJson(String json) { + return WxGsonBuilder.create().fromJson(json, WxPartnerPayScoreUserSignPlanResult.class); + } + + @SerializedName("sign_plan") + private PartnerUserSignPlanEntity signPlan; + + @SerializedName("package") + private String pack; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderPlanDetailStateEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderPlanDetailStateEnum.java new file mode 100644 index 0000000000..38c2d58190 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderPlanDetailStateEnum.java @@ -0,0 +1,30 @@ +package com.github.binarywang.wxpay.bean.payscore.enums; + +/** + * @author UltramanNoa + * @className SignPlanServiceOrderPlanDetailStateEnum + * @description 计划明细状态 + * @createTime 2023/11/3 17:43 + **/ +public enum SignPlanServiceOrderPlanDetailStateEnum { + /** + * 本计划详情还未使用 + */ + NOT_USED, + + /** + * 本计划详情使用中,已有对应的服务订单 + */ + USING, + + /** + * 本计划详情已使用,对应的服务订单已完成支付 + */ + USED, + + /** + * 本计划详情已取消使用,对应的服务订单已取消 + */ + SIGN_PLAN_DETAIL_CANCEL, + ; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderStateEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderStateEnum.java new file mode 100644 index 0000000000..1f0381dc69 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/SignPlanServiceOrderStateEnum.java @@ -0,0 +1,36 @@ +package com.github.binarywang.wxpay.bean.payscore.enums; + +/** + * @author UltramanNoa + * @className SignPlanServiceOrderStateEnum + * @description 签约计划服务订单状态 + * @createTime 2023/11/3 15:28 + **/ +public enum SignPlanServiceOrderStateEnum { + + /** + * 商户已创建服务订单 + */ + CREATED, + + /** + * 服务订单进行中 + */ + DOING, + + /** + * 服务订单完成 + */ + DONE, + + /** + * 商户取消服务订单 + */ + REVOKED, + + /** + * 服务订单已失效 + */ + EXPIRED, + ; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/UserSignPlanCancelSignTypeEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/UserSignPlanCancelSignTypeEnum.java new file mode 100644 index 0000000000..f5669f95df --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/enums/UserSignPlanCancelSignTypeEnum.java @@ -0,0 +1,30 @@ +package com.github.binarywang.wxpay.bean.payscore.enums; + +/** + * @author UltramanNoa + * @className UserSignPlanCancelSignTypeEnum + * @description 签约计划取消类型 + * @createTime 2023/11/3 17:15 + **/ +public enum UserSignPlanCancelSignTypeEnum { + /** + * 用户已签约协议未取消 + */ + NOT_CANCEL, + + /** + * 用户取消已签约的协议 + */ + USER, + + /** + * 商户取消已签约的协议 + */ + MERCHANT, + + /** + * 用户解除服务授权时取消服务下的已签约协议 + */ + REVOKE_SERVICE, + ; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreSignPlanService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreSignPlanService.java new file mode 100644 index 0000000000..3e51ebd7f0 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/PartnerPayScoreSignPlanService.java @@ -0,0 +1,138 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; +import com.github.binarywang.wxpay.bean.payscore.PartnerUserSignPlanEntity; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreSignPlanRequest; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreSignPlanResult; +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreUserSignPlanResult; +import com.github.binarywang.wxpay.exception.WxPayException; +import org.checkerframework.checker.nullness.qual.NonNull; + +/** + * @author UltramanNoa + * @className PartnerPayScoreSignPlanService + * @description 微信支付分签约计划接口 + * @createTime 2023/11/3 09:16 + * + *
+ * @apiNote 微信支付分签约计划
+ * 
+ * 文档更新时间:2023.10.13 + *
+ * 微信支付分签约计划是不同模式的支付分接口(随着国家大力推广教培行业先享后付政策,微信支付也紧跟政策于2023.07.25上线第一版签约计划接口以适用教培行业先享后付。于2023.10.13文档推至官网文档中心) + *
+ * 免确认/需确认 用服务商创单接口 {@link PartnerPayScoreService} 需要用户授权 + *
+ * 签约计划,用单独创单接口 {@link PartnerPayScoreSignPlanService} 不需要用户授权 + *
+ **/ +public interface PartnerPayScoreSignPlanService { + + /** + *

description:创建支付分计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 11:58

+ *

version: v.1.0

+ * + * @param request {@link WxPartnerPayScoreSignPlanRequest} + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 创建支付分计划 + **/ + WxPartnerPayScoreSignPlanResult createPlans(WxPartnerPayScoreSignPlanRequest request) throws WxPayException; + + /** + *

description: 查询支付分计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 14:03

+ *

version: v.1.0

+ * + * @param merchantPlanNo 路径参数:支付分计划商户侧单号 + * @param subMchid 子商户号 + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 查询支付分计划 + **/ + WxPartnerPayScoreSignPlanResult queryPlans(@NonNull String merchantPlanNo, @NonNull String subMchid) throws WxPayException; + + /** + *

description: 停止支付分计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 14:24

+ *

version: v.1.0

+ * + * @param merchantPlanNo 路径参数:支付分计划商户侧单号 + * @param subMchid 子商户号 + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 停止支付分计划 + **/ + WxPartnerPayScoreSignPlanResult stopPlans(@NonNull String merchantPlanNo, @NonNull String subMchid) throws WxPayException; + + /** + *

description: 创建用户的签约计划详情对应的服务订单

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 14:53

+ *

version: v.1.0

+ * + * @param request {@link WxPartnerPayScoreSignPlanRequest} + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 创建用户的签约计划详情对应的服务订单 + **/ + WxPartnerPayScoreSignPlanResult signPlanServiceOrder(WxPartnerPayScoreSignPlanRequest request) throws WxPayException; + + /** + *

description: 创建用户的签约计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 17:48

+ *

version: v.1.0

+ * + * @param request {@link WxPartnerPayScoreSignPlanRequest} + * + * @return {@link WxPartnerPayScoreUserSignPlanResult} + * @apiNote 创建用户的签约计划 + **/ + WxPartnerPayScoreUserSignPlanResult createUserSignPlans(WxPartnerPayScoreSignPlanRequest request) throws WxPayException; + + /** + *

description: 查询用户的签约计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:01

+ *

version: v.1.0

+ * + * @param merchantSignPlanNo 路径参数 商户签约计划号 + * @param subMchid 子商户号 + * + * @return {@link PartnerUserSignPlanEntity} + * @apiNote 查询用户的签约计划 + **/ + PartnerUserSignPlanEntity queryUserSignPlans(@NonNull String merchantSignPlanNo, @NonNull String subMchid) throws WxPayException; + + /** + *

description: 取消用户的签约计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:01

+ *

version: v.1.0

+ * + * @param merchantSignPlanNo 路径参数 商户签约计划号 subMchid – 子商户号 + * @param subMchid 子商户号 + * @param stopReason 停止签约计划原因 + * + * @return {@link PartnerUserSignPlanEntity} + * @apiNote 取消用户的签约计划 + **/ + PartnerUserSignPlanEntity stopUserSignPlans(@NonNull String merchantSignPlanNo, @NonNull String subMchid, @NonNull String stopReason) throws WxPayException; + + /** + *

description: 回调通知校验解密

+ *

author:UltramanNoa

+ *

create Time: 2023/11/6 10:27

+ *

version: v.1.0

+ * @param + * @param notifyData + * @param header + * @return {@link PartnerUserSignPlanEntity} + **/ + PartnerUserSignPlanEntity parseSignPlanNotifyResult(String notifyData, SignatureHeader header) throws WxPayException; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java index f40d895f66..9aba25d049 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java @@ -11,6 +11,7 @@ import com.github.binarywang.wxpay.exception.WxPayException; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.HttpRequestBase; + import java.io.File; import java.io.InputStream; import java.util.Date; @@ -1529,4 +1530,9 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri */ PartnerPayScoreService getPartnerPayScoreService(); + /** + * 获取服务商直股份签约计划服务类 + * @return the partner pay score sign plan service + */ + PartnerPayScoreSignPlanService getPartnerPayScoreSignPlanService(); } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index f08f014d3b..121fd5ae0e 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java @@ -119,6 +119,9 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { @Getter private final PartnerPayScoreService partnerPayScoreService = new PartnerPayScoreServiceImpl(this); + @Getter + private final PartnerPayScoreSignPlanService partnerPayScoreSignPlanService=new PartnerPayScoreSignPlanServiceImpl(this); + @Getter private final MerchantTransferService merchantTransferService = new MerchantTransferServiceImpl(this); diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImpl.java new file mode 100644 index 0000000000..e81454bb75 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImpl.java @@ -0,0 +1,308 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; +import com.github.binarywang.wxpay.bean.payscore.*; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.PartnerPayScoreService; +import com.github.binarywang.wxpay.service.PartnerPayScoreSignPlanService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.AesUtils; +import com.google.common.collect.Maps; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; +import org.apache.commons.lang3.StringUtils; +import org.apache.http.client.utils.URIBuilder; +import org.checkerframework.checker.nullness.qual.NonNull; + +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import java.nio.charset.StandardCharsets; +import java.security.GeneralSecurityException; +import java.util.Map; +import java.util.Objects; + + +/** + * @author UltramanNoa + * @className PartnerPayScoreSignPlanServiceImpl + * @description 微信支付分签约计划接口实现 + * @createTime 2023/11/3 09:23 + * + *
+ * @apiNote 微信支付分签约计划
+ * 
+ * 文档更新时间:2023.10.13 + *
+ * 微信支付分签约计划是不同模式的支付分接口(随着国家大力推广教培行业先享后付政策,微信支付也紧跟政策于2023.07.25上线第一版签约计划接口以适用教培行业先享后付。于2023.10.13文档推至官网文档中心) + *
+ * 免确认/需确认 用服务商创单接口 {@link PartnerPayScoreService} 需要用户授权 + *
+ * 签约计划,用单独创单接口 {@link PartnerPayScoreSignPlanService} 不需要用户授权 + *
+ **/ +@RequiredArgsConstructor +public class PartnerPayScoreSignPlanServiceImpl implements PartnerPayScoreSignPlanService { + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService ; + + /** + *

description:创建支付分计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 11:58

+ *

version: v.1.0

+ * + * @param request {@link WxPartnerPayScoreSignPlanRequest} + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 创建支付分计划 + **/ + @Override + public WxPartnerPayScoreSignPlanResult createPlans(WxPartnerPayScoreSignPlanRequest request) throws WxPayException { + String url = String.format("%s/v3/payscore/plan/partner/payscore-plans", payService.getPayBaseUrl()); + + if (StringUtils.isBlank(request.getAppid())) { + request.setAppid(payService.getConfig().getAppId()); + } + if (StringUtils.isBlank((request.getServiceId()))) { + request.setServiceId(payService.getConfig().getServiceId()); + } + + String result = payService.postV3(url, request.toJson()); + return WxPartnerPayScoreSignPlanResult.fromJson(result); + } + + /** + *

description: 查询支付分计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 14:03

+ *

version: v.1.0

+ * + * @param merchantPlanNo 路径参数:支付分计划商户侧单号 + * @param subMchid 子商户号 + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 查询支付分计划 + **/ + @Override + public WxPartnerPayScoreSignPlanResult queryPlans(@NonNull String merchantPlanNo, @NonNull String subMchid) throws WxPayException { + String url = String.format("%s/v3/payscore/plan/partner/payscore-plans/merchant-plan-no/%s", payService.getPayBaseUrl(), merchantPlanNo); + + try { + URI uri = new URIBuilder(url) + .setParameter("sub_mchid", subMchid) + .build(); + + String result = payService.getV3(uri.toString()); + + return WxPartnerPayScoreSignPlanResult.fromJson(result); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + } + + /** + *

description: 停止支付分计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 14:24

+ *

version: v.1.0

+ * + * @param merchantPlanNo 路径参数:支付分计划商户侧单号 + * @param subMchid 子商户号 + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 停止支付分计划 + **/ + @Override + public WxPartnerPayScoreSignPlanResult stopPlans(@NonNull String merchantPlanNo, @NonNull String subMchid) throws WxPayException { + String url = String.format("%s/v3/payscore/plan/partner/payscore-plans/merchant-plan-no/%s/stop", payService.getPayBaseUrl(), merchantPlanNo); + + Map params = Maps.newHashMap(); + params.put("sub_mchid", subMchid); + + String result = payService.postV3(url, WxGsonBuilder.create().toJson(params)); + return WxPartnerPayScoreSignPlanResult.fromJson(result); + } + + /** + *

description: 创建用户的签约计划详情对应的服务订单

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 14:53

+ *

version: v.1.0

+ * + * @param request {@link WxPartnerPayScoreSignPlanRequest} + * + * @return {@link WxPartnerPayScoreSignPlanResult} + * @apiNote 创建用户的签约计划详情对应的服务订单 + **/ + @Override + public WxPartnerPayScoreSignPlanResult signPlanServiceOrder(WxPartnerPayScoreSignPlanRequest request) throws WxPayException { + String url = String.format("%s/v3/payscore/sign-plan/partner/serviceorder", payService.getPayBaseUrl()); + + if (StringUtils.isBlank(request.getAppid())) { + request.setAppid(payService.getConfig().getAppId()); + } + if (StringUtils.isBlank((request.getServiceId()))) { + request.setServiceId(payService.getConfig().getServiceId()); + } + + String result = payService.postV3(url, request.toJson()); + return WxPartnerPayScoreSignPlanResult.fromJson(result); + } + + /** + *

description: 创建用户的签约计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 17:48

+ *

version: v.1.0

+ * + * @param request {@link WxPartnerPayScoreSignPlanRequest} + * + * @return {@link WxPartnerPayScoreUserSignPlanResult} + * @apiNote 创建用户的签约计划 + **/ + @Override + public WxPartnerPayScoreUserSignPlanResult createUserSignPlans(WxPartnerPayScoreSignPlanRequest request) throws WxPayException { + String url = String.format("%s/v3/payscore/sign-plan/partner/user-sign-plans", payService.getPayBaseUrl()); + + if (StringUtils.isBlank(request.getAppid())) { + request.setAppid(payService.getConfig().getAppId()); + } + if (StringUtils.isBlank((request.getServiceId()))) { + request.setServiceId(payService.getConfig().getServiceId()); + } + + String result = payService.postV3(url, request.toJson()); + return WxPartnerPayScoreUserSignPlanResult.fromJson(result); + } + + /** + *

description: 查询用户的签约计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:01

+ *

version: v.1.0

+ * + * @param merchantSignPlanNo 路径参数 商户签约计划号 + * @param subMchid 子商户号 + * + * @return {@link PartnerUserSignPlanEntity} + * @apiNote 查询用户的签约计划 + **/ + @Override + public PartnerUserSignPlanEntity queryUserSignPlans(@NonNull String merchantSignPlanNo, @NonNull String subMchid) throws WxPayException { + String url = String.format("%s/v3/payscore/sign-plan/partner/user-sign-plans/merchant-sign-plan-no/%s", payService.getPayBaseUrl(), merchantSignPlanNo); + + try { + URI uri = new URIBuilder(url) + .setParameter("sub_mchid", subMchid) + .build(); + + String result = payService.getV3(uri.toString()); + + return PartnerUserSignPlanEntity.fromJson(result); + } catch (URISyntaxException e) { + throw new WxPayException("未知异常!", e); + } + } + + /** + *

description: 取消用户的签约计划

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:01

+ *

version: v.1.0

+ * + * @param merchantSignPlanNo 路径参数 商户签约计划号 subMchid – 子商户号 + * @param subMchid 子商户号 + * @param stopReason 停止签约计划原因 + * + * @return {@link PartnerUserSignPlanEntity} + * @apiNote 取消用户的签约计划 + **/ + @Override + public PartnerUserSignPlanEntity stopUserSignPlans(@NonNull String merchantSignPlanNo, @NonNull String subMchid, @NonNull String stopReason) throws WxPayException { + String url = String.format("%s/v3/payscore/sign-plan/partner/user-sign-plans/merchant-sign-plan-no/%s/stop", payService.getPayBaseUrl(), merchantSignPlanNo); + + Map params = Maps.newHashMap(); + params.put("sub_mchid", subMchid); + params.put("stop_reason", stopReason); + + String result = payService.postV3(url, WxGsonBuilder.create().toJson(params)); + return PartnerUserSignPlanEntity.fromJson(result); + } + + + /** + *

description:回调通知

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:28

+ *

version: v.1.0

+ * + * @param notifyData 回调参数 + * @param header 签名 + * + * @return {@link PartnerUserSignPlanEntity} + **/ + @Override + public PartnerUserSignPlanEntity parseSignPlanNotifyResult(String notifyData, SignatureHeader header) throws WxPayException { + PayScoreNotifyData response = parseNotifyData(notifyData, header); + return decryptNotifyDataResource(response); + } + + /** + *

description: 检验并解析通知参数

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:30

+ *

version: v.1.0

+ * @param data + * @param header + * @return {@link PayScoreNotifyData} + **/ + public PayScoreNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException { + if (Objects.nonNull(header) && !verifyNotifySign(header, data)) { + throw new WxPayException("非法请求,头部信息验证失败"); + } + return GSON.fromJson(data, PayScoreNotifyData.class); + } + + /** + *

description: 解析回调通知参数

+ *

author:UltramanNoa

+ *

create Time: 2023/11/3 18:27

+ *

version: v.1.0

+ * + * @param data {@link PayScoreNotifyData} + * + * @return {@link PartnerUserSignPlanEntity} + **/ + public PartnerUserSignPlanEntity decryptNotifyDataResource(PayScoreNotifyData data) throws WxPayException { + PayScoreNotifyData.Resource resource = data.getResource(); + String cipherText = resource.getCipherText(); + String associatedData = resource.getAssociatedData(); + String nonce = resource.getNonce(); + String apiV3Key = payService.getConfig().getApiV3Key(); + try { + return PartnerUserSignPlanEntity.fromJson(AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key)); + } catch (GeneralSecurityException | IOException e) { + throw new WxPayException("解析报文异常!", e); + } + } + + /** + * 校验通知签名 + * + * @param header 通知头信息 + * @param data 通知数据 + * + * @return true:校验通过 false:校验不通过 + */ + private boolean verifyNotifySign(SignatureHeader header, String data) { + String beforeSign = String.format("%s\n%s\n%s\n", header.getTimeStamp(), header.getNonce(), data); + return this.payService.getConfig().getVerifier().verify( + header.getSerialNo(), + beforeSign.getBytes(StandardCharsets.UTF_8), + header.getSigned() + ); + } +} diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImplTest.java new file mode 100644 index 0000000000..c10884049d --- /dev/null +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PartnerPayScoreSignPlanServiceImplTest.java @@ -0,0 +1,76 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.payscore.WxPartnerPayScoreSignPlanRequest; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.PartnerPayScoreSignPlanService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.testbase.ApiTestModule; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.inject.Inject; +import lombok.extern.slf4j.Slf4j; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +/** + * @className PartnerPayScoreSignPlanServiceImplTest + * @description + * @author + * @createTime 2023/11/6 10:30 + **/ +@Slf4j +@Test +@Guice(modules = ApiTestModule.class) +public class PartnerPayScoreSignPlanServiceImplTest { + @Inject + private WxPayService wxPayService; + + private static final Gson GSON = new GsonBuilder().create(); + + @Test + public void testcreatePlans()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + WxPartnerPayScoreSignPlanRequest request=new WxPartnerPayScoreSignPlanRequest(); + request.setSubMchid("子商户号"); + scoreSignPlan.createPlans(request); + } + + @Test + public void testqueryPlans()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + scoreSignPlan.queryPlans("merchantPlanNo","子商户号"); + } + + @Test + public void teststopPlans()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + scoreSignPlan.stopPlans("merchantPlanNo","子商户号"); + } + + @Test + public void testsignPlanServiceOrder()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + WxPartnerPayScoreSignPlanRequest request=new WxPartnerPayScoreSignPlanRequest(); + + scoreSignPlan.signPlanServiceOrder(request); + } + + @Test + public void testcreateUserSignPlans()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + WxPartnerPayScoreSignPlanRequest request=new WxPartnerPayScoreSignPlanRequest(); + scoreSignPlan.createUserSignPlans(request); + } + + @Test + public void testqueryUserSignPlans()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + scoreSignPlan.queryUserSignPlans("merchantPlanNo","子商户号"); + } + + @Test + public void teststopUserSignPlans()throws WxPayException{ + PartnerPayScoreSignPlanService scoreSignPlan=new PartnerPayScoreSignPlanServiceImpl(wxPayService); + scoreSignPlan.stopUserSignPlans("merchantPlanNo","子商户号","测试取消"); + } +} From 473d2c14c334e6d1c69887c560cce7b81d7b4b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E9=B9=A4?= Date: Mon, 13 Nov 2023 03:08:47 +0000 Subject: [PATCH 609/622] =?UTF-8?q?:art:=20=E3=80=90=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E5=8F=B7=E3=80=91=E8=A7=86=E9=A2=91=E5=8F=B7=E5=B0=8F=E5=BA=97?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=20!113?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channel/bean/order/OrderDetailInfo.java | 4 ++ .../channel/bean/order/OrderPriceInfo.java | 8 ++++ .../bean/order/OrderProductExtraService.java | 28 ++++++++++++ .../channel/bean/order/OrderProductInfo.java | 17 +++++++ .../bean/order/OrderSkuDeliverInfo.java | 28 ++++++++++++ .../channel/bean/order/OrderSkuShareInfo.java | 44 +++++++++++++++++++ 6 files changed, 129 insertions(+) create mode 100644 weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductExtraService.java create mode 100644 weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuDeliverInfo.java create mode 100644 weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuShareInfo.java diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderDetailInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderDetailInfo.java index 1f4d55924d..8a17140cc1 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderDetailInfo.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderDetailInfo.java @@ -52,4 +52,8 @@ public class OrderDetailInfo implements Serializable { @JsonProperty("settle_info") private OrderSettleInfo settleInfo; + /** 分享员信息 */ + @JsonProperty("sku_sharer_infos") + private List skuSharerInfos; + } diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java index 89bef2daed..64e6690a66 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java @@ -55,4 +55,12 @@ public class OrderPriceInfo implements Serializable { @JsonProperty("is_change_freight") private Boolean changeFreighted; + /** 是否使用了会员积分抵扣 */ + @JsonProperty("use_deduction") + private Boolean useDeduction; + + /** 会员积分抵扣金额,单位为分 */ + @JsonProperty("deduction_price") + private Integer deductionPrice; + } diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductExtraService.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductExtraService.java new file mode 100644 index 0000000000..ff413a9646 --- /dev/null +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductExtraService.java @@ -0,0 +1,28 @@ +package me.chanjar.weixin.channel.bean.order; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 商品额外服务信息 + * + * @author 北鹤M + */ +@Data +@NoArgsConstructor +public class OrderProductExtraService implements Serializable { + + private static final long serialVersionUID = -8752053507170277156L; + + /** 7天无理由:0:不支持,1:支持 */ + @JsonProperty("seven_day_return") + private Integer sevenDayReturn; + + /** 商家运费险:0:不支持,1:支持 */ + @JsonProperty("freight_insurance") + private Integer freightInsurance; + +} diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductInfo.java index 3d5d7a92cb..acef8cc4f6 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductInfo.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductInfo.java @@ -92,4 +92,21 @@ public class OrderProductInfo implements Serializable { /** 区域库存id */ @JsonProperty("out_warehouse_id") private String outWarehouseId; + + /** 商品发货信息 */ + @JsonProperty("sku_deliver_info") + private OrderSkuDeliverInfo skuDeliverInfo; + + /** 商品额外服务信息 */ + @JsonProperty("extra_service") + private OrderProductExtraService extraService; + + /** 是否使用了会员积分抵扣 */ + @JsonProperty("use_deduction") + private Boolean useDeduction; + + /** 会员积分抵扣金额,单位为分 */ + @JsonProperty("deduction_price") + private Integer deductionPrice; + } diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuDeliverInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuDeliverInfo.java new file mode 100644 index 0000000000..6dd46c9a39 --- /dev/null +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuDeliverInfo.java @@ -0,0 +1,28 @@ +package me.chanjar.weixin.channel.bean.order; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * 商品发货信息 + * + * @author 北鹤M + */ +@Data +@NoArgsConstructor +public class OrderSkuDeliverInfo implements Serializable { + + private static final long serialVersionUID = 4075897806362929800L; + + /** 商品发货类型:0:现货,1:全款预售 */ + @JsonProperty("stock_type") + private Integer stockType; + + /** 预计发货时间(stock_type=1时返回该字段) */ + @JsonProperty("predict_delivery_time") + private String predictDeliveryTime; + +} diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuShareInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuShareInfo.java new file mode 100644 index 0000000000..7912e53348 --- /dev/null +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderSkuShareInfo.java @@ -0,0 +1,44 @@ +package me.chanjar.weixin.channel.bean.order; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * Sku层分享信息 + * + * @author 北鹤M + */ +@Data +@NoArgsConstructor +public class OrderSkuShareInfo implements Serializable { + + private static final long serialVersionUID = 705312408112124476L; + + /** 分享员openid */ + @JsonProperty("sharer_openid") + private String sharerOpenid; + + /** 分享员unionid */ + @JsonProperty("sharer_unionid") + private String sharerUnionid; + + /** 分享员类型,0:普通分享员,1:店铺分享员 */ + @JsonProperty("sharer_type") + private Integer sharerType; + + /** 分享场景 {@link me.chanjar.weixin.channel.enums.ShareScene} */ + @JsonProperty("share_scene") + private Integer shareScene; + + /** 商品skuid */ + @JsonProperty("sku_id") + private String skuId; + + /** 是否来自企微分享 */ + @JsonProperty("from_wecom") + private Boolean fromWecom; + +} From b9bd619e6f5eddd36b22a25274acc65df450d301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=95=87=E6=B6=9B?= Date: Mon, 13 Nov 2023 23:44:19 +0800 Subject: [PATCH 610/622] =?UTF-8?q?:new:=20#3124=20=E3=80=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=AE=9E=E7=8E=B0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=20URL=20Link=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx/miniapp/api/WxMaLinkService.java | 12 +++ .../miniapp/api/impl/WxMaLinkServiceImpl.java | 10 +++ .../urllink/request/QueryUrlLinkRequest.java | 35 ++++++++ .../response/QueryUrlLinkResponse.java | 79 +++++++++++++++++++ .../miniapp/constant/WxMaApiUrlConstants.java | 1 + .../api/impl/WxMaLinkServiceImplTest.java | 20 +++++ 6 files changed, 157 insertions(+) create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/request/QueryUrlLinkRequest.java create mode 100644 weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/response/QueryUrlLinkResponse.java diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLinkService.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLinkService.java index 090ac95e35..f72645d290 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLinkService.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaLinkService.java @@ -3,6 +3,8 @@ import cn.binarywang.wx.miniapp.bean.shortlink.GenerateShortLinkRequest; import cn.binarywang.wx.miniapp.bean.urllink.GenerateUrlLinkRequest; +import cn.binarywang.wx.miniapp.bean.urllink.request.QueryUrlLinkRequest; +import cn.binarywang.wx.miniapp.bean.urllink.response.QueryUrlLinkResponse; import me.chanjar.weixin.common.error.WxErrorException; /** @@ -29,4 +31,14 @@ public interface WxMaLinkService { * @throws WxErrorException . */ String generateShortLink(GenerateShortLinkRequest request) throws WxErrorException; + + /** + * 查询 URL Link + * 接口文档: https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-link/queryUrlLink.html + * + * @param request 请求 + * @return link地址 + * @throws WxErrorException . + */ + QueryUrlLinkResponse queryUrlLink(QueryUrlLinkRequest request) throws WxErrorException; } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java index 156795d4ca..c316148621 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImpl.java @@ -4,12 +4,16 @@ import cn.binarywang.wx.miniapp.api.WxMaService; import cn.binarywang.wx.miniapp.bean.shortlink.GenerateShortLinkRequest; import cn.binarywang.wx.miniapp.bean.urllink.GenerateUrlLinkRequest; +import cn.binarywang.wx.miniapp.bean.urllink.request.QueryUrlLinkRequest; +import cn.binarywang.wx.miniapp.bean.urllink.response.QueryUrlLinkResponse; import com.google.gson.JsonObject; import lombok.AllArgsConstructor; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.json.GsonParser; +import me.chanjar.weixin.common.util.json.WxGsonBuilder; import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Link.GENERATE_URLLINK_URL; +import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.Link.QUERY_URLLINK_URL; import static cn.binarywang.wx.miniapp.constant.WxMaApiUrlConstants.ShortLink.GENERATE_SHORT_LINK_URL; /** @@ -44,4 +48,10 @@ public String generateShortLink(GenerateShortLinkRequest request) throws WxError } throw new WxErrorException("无link"); } + + @Override + public QueryUrlLinkResponse queryUrlLink(QueryUrlLinkRequest request) throws WxErrorException { + String result = this.wxMaService.post(QUERY_URLLINK_URL, request); + return WxGsonBuilder.create().fromJson(result, QueryUrlLinkResponse.class); + } } diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/request/QueryUrlLinkRequest.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/request/QueryUrlLinkRequest.java new file mode 100644 index 0000000000..cea89f9fdc --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/request/QueryUrlLinkRequest.java @@ -0,0 +1,35 @@ +package cn.binarywang.wx.miniapp.bean.urllink.request; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + *
+ * 查询小程序 URL Link参数对象
+ * 
+ * @author imyzt + * @since 2023-11-13 + */ +@Data +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class QueryUrlLinkRequest implements Serializable { + + /** + * 小程序 url_link + *
+   * 是否必填: 是
+   * 
+ */ + @SerializedName("url_link") + private String urlLink; + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/response/QueryUrlLinkResponse.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/response/QueryUrlLinkResponse.java new file mode 100644 index 0000000000..340192eb57 --- /dev/null +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/response/QueryUrlLinkResponse.java @@ -0,0 +1,79 @@ +package cn.binarywang.wx.miniapp.bean.urllink.response; + +import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + *
+ * 查询小程序 URL Link响应对象
+ * 
+ * @author imyzt + * @since 2023-11-13 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@Builder +@Accessors(chain = true) +@NoArgsConstructor +@AllArgsConstructor +public class QueryUrlLinkResponse extends WxMaBaseResponse implements Serializable { + + /** + * 访问Link的用户openid,为空表示未被访问过 + */ + @SerializedName("visit_openid") + private String visitOpenid; + + /** + * url_link 配置 + */ + @SerializedName("url_link_info") + private UrlLinkInfo urlLinkInfo; + + @Data + @Builder + public static class UrlLinkInfo { + + /** + * 小程序 appid + */ + private String appid; + + /** + * 小程序页面路径 + */ + private String path; + + /** + * 小程序页面query + */ + private String query; + + /** + * 创建时间,为 Unix 时间戳 + */ + @SerializedName("create_time") + private Long createTime; + + /** + * 到期失效时间,为 Unix 时间戳,0 表示永久生效 + */ + @SerializedName("expire_time") + private Long expireTime; + + /** + * 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop" + */ + @SerializedName("env_version") + private String envVersion; + } + +} diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java index e51879d8ed..858ace8bd6 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/constant/WxMaApiUrlConstants.java @@ -344,6 +344,7 @@ public interface Scheme { public interface Link { String GENERATE_URLLINK_URL = "https://api.weixin.qq.com/wxa/generate_urllink"; + String QUERY_URLLINK_URL = "https://api.weixin.qq.com/wxa/query_urllink"; } public interface ShortLink { diff --git a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java index 5c9f9b5347..45ea9e2279 100644 --- a/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java +++ b/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaLinkServiceImplTest.java @@ -3,10 +3,13 @@ import cn.binarywang.wx.miniapp.api.WxMaService; import cn.binarywang.wx.miniapp.bean.shortlink.GenerateShortLinkRequest; import cn.binarywang.wx.miniapp.bean.urllink.GenerateUrlLinkRequest; +import cn.binarywang.wx.miniapp.bean.urllink.request.QueryUrlLinkRequest; +import cn.binarywang.wx.miniapp.bean.urllink.response.QueryUrlLinkResponse; import cn.binarywang.wx.miniapp.test.ApiTestModule; import com.google.inject.Inject; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.error.WxErrorException; +import org.testng.Assert; import org.testng.annotations.Guice; import org.testng.annotations.Test; @@ -53,4 +56,21 @@ public void testGenerateMultiEnvUrlLink() throws WxErrorException { .build()); log.info("generate url link = {}", url); } + + @Test + public void testQueryUrlLink() throws WxErrorException { + + String path = "pages/index"; + String urlLink = this.wxMaService.getLinkService().generateUrlLink(GenerateUrlLinkRequest.builder() + .path(path) + .expireTime(LocalDateTime.now().plusDays(5).atZone(ZoneId.systemDefault()).toEpochSecond()) //增加有效期,此行可注释 + .build()); + System.out.println("urlLink: " + urlLink); + + QueryUrlLinkResponse queryUrlLinkResponse = this.wxMaService.getLinkService() + .queryUrlLink(QueryUrlLinkRequest.builder().urlLink(urlLink).build()); + System.out.println("linkInfo: " + queryUrlLinkResponse.toString()); + + Assert.assertEquals(path, queryUrlLinkResponse.getUrlLinkInfo().getPath()); + } } From 9f21f59d758259fdcccf8901b41218935423f790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E9=B9=A4?= Date: Wed, 15 Nov 2023 10:24:31 +0000 Subject: [PATCH 611/622] =?UTF-8?q?:new:=20=E3=80=90=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E5=8F=B7=E3=80=91=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91=E5=8F=B7?= =?UTF-8?q?=E5=B0=8F=E5=BA=97=E7=9A=84=E5=90=8C=E6=84=8F=E5=92=8C=E6=8B=92?= =?UTF-8?q?=E7=BB=9D=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20!114?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channel/api/WxChannelOrderService.java | 20 +++++++++++++++++ .../api/impl/WxChannelOrderServiceImpl.java | 22 +++++++++++++------ .../channel/bean/order/OrderDeliveryInfo.java | 12 ++++++++++ .../constant/WxChannelApiUrlConstants.java | 4 ++++ .../impl/WxChannelOrderServiceImplTest.java | 18 +++++++++++++++ 5 files changed, 69 insertions(+), 7 deletions(-) diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelOrderService.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelOrderService.java index e280ace2fc..6179510e78 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelOrderService.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/WxChannelOrderService.java @@ -96,6 +96,26 @@ WxChannelBaseResponse updatePrice(String orderId, Integer expressFee, List Date: Fri, 17 Nov 2023 00:39:38 +0800 Subject: [PATCH 612/622] =?UTF-8?q?:art:=20#3167=20=E3=80=90=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=8F=B7=E3=80=91=E8=A7=86=E9=A2=91=E5=8F=B7=E5=B0=8F?= =?UTF-8?q?=E5=BA=97=E5=88=86=E4=BA=AB=E5=91=98=E8=AE=A2=E5=8D=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0=E5=87=A0=E4=B8=AA=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=8F=82=E6=95=B0=EF=BC=8C=E5=B9=B6=E4=BF=AE=E5=A4=8Dopenid?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/impl/WxChannelSharerServiceImpl.java | 7 ++- .../channel/bean/sharer/SharerOrder.java | 44 ++++++++++++++++--- .../channel/bean/sharer/SharerOrderParam.java | 2 +- 3 files changed, 44 insertions(+), 9 deletions(-) diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelSharerServiceImpl.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelSharerServiceImpl.java index 96438ae00f..676b310288 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelSharerServiceImpl.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelSharerServiceImpl.java @@ -7,6 +7,7 @@ import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Share.SEARCH_SHARER_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Share.UNBIND_SHARER_URL; +import com.google.gson.JsonObject; import java.util.List; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxChannelSharerService; @@ -21,6 +22,7 @@ import me.chanjar.weixin.channel.bean.sharer.SharerUnbindResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.util.json.GsonHelper; /** * 视频号小店 分享员服务实现 @@ -39,8 +41,9 @@ public WxChannelSharerServiceImpl(BaseWxChannelServiceImpl shopService) { @Override public SharerBindResponse bindSharer(String username) throws WxErrorException { - String reqJson = "{\"username\": " + username + "}"; - String resJson = shopService.post(BIND_SHARER_URL, reqJson); + JsonObject jsonObject = GsonHelper.buildJsonObject("username", username); + + String resJson = shopService.post(BIND_SHARER_URL, jsonObject); return ResponseUtils.decode(resJson, SharerBindResponse.class); } diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrder.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrder.java index b184187b35..682753e64f 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrder.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrder.java @@ -15,24 +15,56 @@ public class SharerOrder implements Serializable { private static final long serialVersionUID = 1528673402572025670L; - /** 订单号 */ + /** + * 订单号 + */ @JsonProperty("order_id") private String orderId; - /** 分享场景 {@link me.chanjar.weixin.channel.enums.ShareScene} */ - @JsonProperty("sharer_scene") + /** + * 分享场景 {@link me.chanjar.weixin.channel.enums.ShareScene} + */ + @JsonProperty("share_scene") private Integer sharerScene; - /** 分享员openid */ + /** + * 分享员openid + */ @JsonProperty("sharer_openid") private String sharerOpenid; - /** 分享员类型 {@link me.chanjar.weixin.channel.enums.SharerType} */ + /** + * 分享员类型 {@link me.chanjar.weixin.channel.enums.SharerType} + */ @JsonProperty("sharer_type") private Integer sharerType; - /** 视频号场景信息 */ + /** + * 商品sku_id + */ + @JsonProperty("sku_id") + private String skuId; + + + /** + * 商品唯一id + */ + @JsonProperty("product_id") + private String productId; + + + /** + * 是否从企微分享 + */ + @JsonProperty("from_wecom") + private Boolean fromWxWork; + + + /** + * 视频号场景信息 + */ @JsonProperty("finder_scene_info") private FinderSceneInfo sceneInfo; + } diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrderParam.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrderParam.java index 191dfc6ec3..5ada6e3bcf 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrderParam.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/sharer/SharerOrderParam.java @@ -20,7 +20,7 @@ public class SharerOrderParam extends PageParam { private static final long serialVersionUID = 5240085870008898601L; /** 分享员openid */ @JsonProperty("openid") - private Integer openid; + private String openid; /** 分享场景 */ @JsonProperty("share_scene") From c4a834f685d6c53627829bafd8ffddac86f45d04 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 17 Nov 2023 01:12:04 +0800 Subject: [PATCH 613/622] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=204.5.7?= =?UTF-8?q?.B=20=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- spring-boot-starters/pom.xml | 2 +- .../wx-java-channel-spring-boot-starter/pom.xml | 2 +- .../wx-java-cp-multi-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml | 2 +- .../wx-java-miniapp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml | 2 +- spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml | 2 +- weixin-graal/pom.xml | 2 +- weixin-java-channel/pom.xml | 2 +- weixin-java-common/pom.xml | 2 +- weixin-java-cp/pom.xml | 2 +- weixin-java-miniapp/pom.xml | 2 +- weixin-java-mp/pom.xml | 2 +- weixin-java-open/pom.xml | 2 +- weixin-java-pay/pom.xml | 2 +- weixin-java-qidian/pom.xml | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index 0e4e981eec..b5212fcbcd 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B pom WxJava - Weixin/Wechat Java SDK 微信开发Java SDK diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 20715b391b..2a0abc777b 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B pom wx-java-spring-boot-starters diff --git a/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml index 3b841ca68c..4477d79e09 100644 --- a/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-channel-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml index b336ef9ee0..693dd1624c 100644 --- a/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-multi-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml index 13b2e5561e..d64aec432c 100644 --- a/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-cp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml index 6dff622ec4..6149c253e7 100644 --- a/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-miniapp-spring-boot-starter/pom.xml @@ -4,7 +4,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml index df8df4cb5e..c24a097c14 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml index 29d4c80c0c..d537af929b 100644 --- a/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-open-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml index 64ef51ecad..5c3fc0df26 100644 --- a/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-pay-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml index bdf67372f0..b1da6f2505 100644 --- a/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml +++ b/spring-boot-starters/wx-java-qidian-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ wx-java-spring-boot-starters com.github.binarywang - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/weixin-graal/pom.xml b/weixin-graal/pom.xml index 1f02daf7c0..66a177f87b 100644 --- a/weixin-graal/pom.xml +++ b/weixin-graal/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-graal diff --git a/weixin-java-channel/pom.xml b/weixin-java-channel/pom.xml index a93d5144bf..e797a03da1 100644 --- a/weixin-java-channel/pom.xml +++ b/weixin-java-channel/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-channel diff --git a/weixin-java-common/pom.xml b/weixin-java-common/pom.xml index a970c05531..ceab4048fd 100644 --- a/weixin-java-common/pom.xml +++ b/weixin-java-common/pom.xml @@ -6,7 +6,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-common diff --git a/weixin-java-cp/pom.xml b/weixin-java-cp/pom.xml index 9d9c9c124b..0fb5ab62d2 100644 --- a/weixin-java-cp/pom.xml +++ b/weixin-java-cp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-cp diff --git a/weixin-java-miniapp/pom.xml b/weixin-java-miniapp/pom.xml index 97d9676b22..fe1715dc1d 100644 --- a/weixin-java-miniapp/pom.xml +++ b/weixin-java-miniapp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-miniapp diff --git a/weixin-java-mp/pom.xml b/weixin-java-mp/pom.xml index 6c4016cae4..7efadd173d 100644 --- a/weixin-java-mp/pom.xml +++ b/weixin-java-mp/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-mp diff --git a/weixin-java-open/pom.xml b/weixin-java-open/pom.xml index 62a2aaf9fa..079f821ca6 100644 --- a/weixin-java-open/pom.xml +++ b/weixin-java-open/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-open diff --git a/weixin-java-pay/pom.xml b/weixin-java-pay/pom.xml index 100718c44a..648f2836ad 100644 --- a/weixin-java-pay/pom.xml +++ b/weixin-java-pay/pom.xml @@ -5,7 +5,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B 4.0.0 diff --git a/weixin-java-qidian/pom.xml b/weixin-java-qidian/pom.xml index 484ca815f7..b33e1e80af 100644 --- a/weixin-java-qidian/pom.xml +++ b/weixin-java-qidian/pom.xml @@ -7,7 +7,7 @@ com.github.binarywang wx-java - 4.5.6.B + 4.5.7.B weixin-java-qidian From 01e93d68f7ee25336463b09311b38f0072a562dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=BB=E4=BB=B2?= <406676933@qq.com> Date: Sat, 18 Nov 2023 14:11:23 +0000 Subject: [PATCH 614/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8java.nio.file.Files=E6=89=93=E5=BC=80=E5=85=AC?= =?UTF-8?q?=E7=A7=81=E9=92=A5=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E5=8F=A5=E6=9F=84=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/binarywang/wxpay/config/WxPayConfig.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java index f97421cb43..daf8592f60 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java @@ -16,10 +16,7 @@ import org.apache.http.ssl.SSLContexts; import javax.net.ssl.SSLContext; -import java.io.ByteArrayInputStream; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; +import java.io.*; import java.net.URL; import java.nio.charset.StandardCharsets; import java.nio.file.Files; @@ -385,7 +382,8 @@ private InputStream loadConfigInputStream(String configPath) throws WxPayExcepti throw new WxPayException(fileNotFoundMsg); } - return Files.newInputStream(file.toPath()); +// return Files.newInputStream(file.toPath()); + return new FileInputStream(file); } catch (IOException e) { throw new WxPayException(fileHasProblemMsg, e); } From da12f4d460c9629b97bb06b1552b23b1454012ea Mon Sep 17 00:00:00 2001 From: czt Date: Sat, 18 Nov 2023 14:12:40 +0000 Subject: [PATCH 615/622] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=9D=A5=E8=87=AA=E5=BE=AE=E4=BF=A1=E5=BC=80=E6=94=BE?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=9A=84=E5=BC=82=E6=AD=A5=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E5=9B=A0=E4=B8=BAconfigStorageMap=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E4=BB=BB=E4=BD=95=E5=85=AC=E4=BC=97=E5=8F=B7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=9C=80=E7=BB=88=E4=BC=9A?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E6=8A=9B=E5=87=BA=E6=97=A0=E6=B3=95=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E5=AF=B9=E5=BA=94=E5=85=AC=E4=BC=97=E5=8F=B7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/open/api/impl/WxOpenMpServiceImpl.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpServiceImpl.java index c0e6cb9cb8..576db4a22c 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMpServiceImpl.java @@ -5,7 +5,9 @@ import com.google.gson.JsonObject; import lombok.SneakyThrows; import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.mp.api.WxMpService; import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; +import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage; import me.chanjar.weixin.mp.config.WxMpConfigStorage; import me.chanjar.weixin.open.api.WxOpenComponentService; import me.chanjar.weixin.open.api.WxOpenMpService; @@ -14,7 +16,9 @@ import me.chanjar.weixin.open.bean.result.WxOpenResult; import java.net.URLEncoder; +import java.util.Map; import java.util.Objects; +import java.util.function.Function; /** * @author 007 @@ -24,13 +28,23 @@ public class WxOpenMpServiceImpl extends WxMpServiceImpl implements WxOpenMpServ private WxMpConfigStorage wxMpConfigStorage; private String appId; + /** + * + * @param wxOpenComponentService + * @param appId + * @param wxMpConfigStorage + */ public WxOpenMpServiceImpl(WxOpenComponentService wxOpenComponentService, String appId, WxMpConfigStorage wxMpConfigStorage) { // wxOpenComponentService.oauth2getAccessToken(appId) this.wxOpenComponentService = wxOpenComponentService; this.appId = appId; this.wxMpConfigStorage = wxMpConfigStorage; setOAuth2Service(new WxOpenMpOAuth2ServiceImpl(wxOpenComponentService, getOAuth2Service(), wxMpConfigStorage)); + //添加addConfigStorage是为了解决处理来自微信开放平台的异步消息时调用WxMpServiceImpl.switchoverTo(String, Function),因为configStorageMap没有任何公众号配置信息,最终会主动抛出无法找到对应公众号配置异常的问题。 + //Issue:https://gitee.com/binary/weixin-java-tools/issues/I81AAF + addConfigStorage(appId,wxMpConfigStorage); initHttp(); + } @Override From 28436e779d927edb9716ef2f79fed2b43933e851 Mon Sep 17 00:00:00 2001 From: kingYiFan <41459980+KingYiFan@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:10:41 +0800 Subject: [PATCH 616/622] =?UTF-8?q?:bug:=20#3170=E3=80=90=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E3=80=91=E4=BF=AE=E5=A4=8Dis=5Fsnapshotuser(?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E4=B8=BA=E5=BF=AB=E7=85=A7=E9=A1=B5=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E8=99=9A=E6=8B=9F=E8=B4=A6=E5=8F=B7)=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=BD=8D=E7=BD=AE=EF=BC=8C=E5=9C=A8getAccessToken?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=E6=97=B6=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java | 6 +----- .../weixin/common/bean/oauth2/WxOAuth2AccessToken.java | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java index 63e568d3f4..906e9de2b1 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java @@ -58,11 +58,7 @@ public class WxOAuth2UserInfo implements Serializable { */ @SerializedName("privilege") private String[] privileges; - /** - * is_snapshotuser 是否为快照页模式虚拟账号,值为0时是普通用户,1时是虚拟帐号 - */ - @SerializedName("is_snapshotuser") - private Integer snapshotUser; + public static WxOAuth2UserInfo fromJson(String json) { return WxGsonBuilder.create().fromJson(json, WxOAuth2UserInfo.class); diff --git a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java index 4faf9df375..c08a49063d 100644 --- a/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java +++ b/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java @@ -29,7 +29,9 @@ public class WxOAuth2AccessToken implements Serializable { @SerializedName("scope") private String scope; - + /** + * 是否为快照页模式虚拟账号,只有当用户是快照页模式虚拟账号时返回,值为1 + */ @SerializedName("is_snapshotuser") private Integer snapshotUser; From f9306e12a236cd99e44ca107516c172f7cef6909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=AE=89?= Date: Mon, 20 Nov 2023 15:11:56 +0800 Subject: [PATCH 617/622] =?UTF-8?q?:new:=20#3169=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E6=96=B0=E5=A2=9E=E5=95=86?= =?UTF-8?q?=E6=88=B7=E5=BC=80=E6=88=B7=E6=84=8F=E6=84=BF=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.提交申请单 - 通过此接口向微信支付提交商户的联系人信息、主体信息以及联系人信息实现商户开户意愿确认。 2.撤销申请单 - 通过此接口撤销商户开户意愿确认申请单。 3.查询申请单审核结果 - 通过此接口查询申请单的审核状态。 4.获取商户开户意愿确认状态 - 通过此接口获取商户开户意愿确认状态。 Co-authored-by: longchen --- .../ApplySubjectConfirmCreateRequest.java | 819 ++++++++++++++++++ .../ApplySubjectConfirmCreateResult.java | 31 + ...ubjectConfirmMerchantStateQueryResult.java | 30 + .../ApplySubjectConfirmStateQueryResult.java | 45 + .../enums/AuthorizeStateEnum.java | 18 + .../service/Apply4SubjectConfirmService.java | 97 +++ .../impl/Apply4SubjectConfirmServiceImpl.java | 132 +++ 7 files changed, 1172 insertions(+) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmMerchantStateQueryResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmStateQueryResult.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/enums/AuthorizeStateEnum.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Apply4SubjectConfirmService.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Apply4SubjectConfirmServiceImpl.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateRequest.java new file mode 100644 index 0000000000..b95061461c --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateRequest.java @@ -0,0 +1,819 @@ +package com.github.binarywang.wxpay.bean.applyconfirm; + +import com.github.binarywang.wxpay.bean.applyment.enums.*; +import com.github.binarywang.wxpay.v3.SpecEncrypt; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * 间连商户开户意愿确认 提交申请对象 + * + * @author Mr.Pan + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class ApplySubjectConfirmCreateRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 渠道商户号 + * 1、微信支付分配的渠道商户唯一标识 + * 2、当从业机构调用时,该字段必填,需填写从业机构下的渠道商户号 + * 3、当渠道商户调用时,该字段无需填写 + * 示例值:20001111 + */ + @SerializedName("channel_id") + private String channelId; + + /** + * 业务申请编号 + * 1、只能由数字、字母或下划线组成 + * 2、服务商自定义的唯一编号。每个编号对应一个申请单 + * 3、建议前缀带上服务商商户号,参看示例值 + * 示例值:1900013511_10000 + */ + @SerializedName("business_code") + private String businessCode; + /** + * 联系人信息 + * 联系人信息,联系人是商户的联系人,将接收开户信息及日常重要管理信息, + * 请确定联系人为商户法定代表人或经营者再进行操作。如联系人非商户法定代表人或经营者, + * 请提交经办人身份证件和业务办理授权函。 + */ + @SerializedName("contact_info") + @SpecEncrypt + private ApplySubConfirmContactInfo contactInfo; + + /** + * 主体资料 + */ + @SerializedName("subject_info") + @SpecEncrypt + private ApplySubConfirmSubjectInfo subjectInfo; + + /** + * 法人身份信息 + */ + @SerializedName("identification_info") + @SpecEncrypt + private ApplySubConfirmIdentificationInfo identityInfo; + + /** + * 最终受益人信息列表(UBO) + */ + @SerializedName("ubo_info_list") + @SpecEncrypt + private List uboInfoList; + + /** + * 补充材料 + */ + @SerializedName("addition_info") + private ApplySubConfirmAdditionInfo additionInfo; + + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmIdentificationInfo implements Serializable { + private static final long serialVersionUID = 1683704338370383827L; + + /** + * 证件持有人类型 + * 1. 主体类型为政府机关、事业单位时选传: + * (1)若上传的是法人证件,则不需要上传该字段。 + * (2)若因特殊情况,无法提供法人证件时,可上传经办人。 (经办人:经商户授权办理微信支付业务的人员,授权范围包括但不限于签约,入驻过程需完成账户验证)。 + * 2. 主体类型为企业、个体户、社会组织时,默认为经营者/法人,不需要上传该字段。 + * LEGAL:经营者/法人 + * SUPER:经办人 + * 示例值:LEGAL + * @see com.github.binarywang.wxpay.bean.ecommerce.ApplymentsRequest 字段idHolderType + */ + @SerializedName("id_holder_type") + private String idHolderType; + + /** + * 证件类型 + * 1、当证件持有人类型为法人时,填写。其他情况,无需上传。 + * 2、个体户/企业/事业单位/社会组织:可选择任一证件类型,政府机关、小微仅支持中国大陆居民-身份证类型。 + * 枚举值: + * IDENTIFICATION_TYPE_IDCARD:中国大陆居民-身份证 + * IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照 + * IDENTIFICATION_TYPE_HONGKONG_PASSPORT:中国香港居民-来往内地通行证 + * IDENTIFICATION_TYPE_MACAO_PASSPORT:中国澳门居民-来往内地通行证 + * IDENTIFICATION_TYPE_TAIWAN_PASSPORT:中国台湾居民-来往大陆通行证 + * IDENTIFICATION_TYPE_FOREIGN_RESIDENT:外国人居留证 + * IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT:港澳居民证 + * IDENTIFICATION_TYPE_TAIWAN_RESIDENT:台湾居民证 + * 示例值:IDENTIFICATION_TYPE_IDCARD + */ + @SerializedName("id_doc_type") + private IdTypeEnum idDocType; + + /** + * 法定代表人说明函 + */ + @SerializedName("authorize_letter_copy") + private String authorizeLetterCopy; + + /** + * 证件姓名 + * 1、当证件持有人类型为法人时,请填写法人证件上的姓名。其他情况,无需上传。 + * 2、长度为2-100个字符 + * 3、前后不能有空格、制表符、换行符 + * 4、不能仅含数字、特殊字符 + * 5、仅能填写数字、英文字母、汉字及特殊字符 + * 6、该字段需进行加密处理,加密方法详见《敏感信息加密说明》 + * 示例值:pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg== + */ + @SerializedName("identification_name") + @SpecEncrypt + private String identificationName; + + /** + * 证件号码 + * 1、当证件持有人类型为法人时,请填写法人证件上的证件号码。其他情况,无需上传。 + * 2、可传身份证、来往内地通行证、来往大陆通行证、护照等证件号码,号码规范如下: + * 身份证(限中国大陆居民):17位数字+1位数字|X + * 护照(限境外人士):4-15位 数字|字母|连字符 + * 中国香港居民--来往内地通行证:H/h开头+8或10位数字/字母 + * 中国澳门居民--来往内地通行证:M/m开头+8或10位数字/字母 + * 中国台湾居民--来往大陆通行证:8位数字或10位数字 + * 外国人居留证:15位 数字|字母 + * 港澳居住证/台湾居住证:17位数字+1位数字|X + * 3、该字段需进行加密处理,加密方法详见《敏感信息加密说明》 + * 示例值:pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg== + */ + @SerializedName("identification_number") + @SpecEncrypt + private String identificationNumber; + + /** + * 证件有效日期 + * 1、日期格式应满足合法的YYYY-MM-DD格式,参见示例值 + * 2、若证件有效期为长期,请填写:fovever。 + * 3、开始时间不能大于等于当前日期,结束时间需大于开始时间。 + * 示例值:[\"2017-10-28\",\"forever\"] + */ + @SerializedName("identification_valid_date") + private String identificationValidDate; + + /** + * 证件有效日期 + * 1、主体类型为企业时,需要填写。其他主体类型,无需上传。 + * 2、请按照身份证住址填写,如广东省深圳市南山区xx路xx号xx室 + * 3、长度为4-128个字符 + * 4、前后不能有空格、制表符、换行符 + * 5、不能仅含数字、特殊字符 + * 6、仅能填写数字、英文字母、汉字及特殊字符 + * 7、仅支持utf-8格式 + * 8、该字段需进行加密处理,加密方法详见《敏感信息加密说明》。 + * 示例值:pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ib0NVa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg== + */ + @SerializedName("identification_address") + @SpecEncrypt + private String identificationAddress; + + + /** + * 证件正面照片 + */ + @SerializedName("identification_front_copy") + private String identificationFrontCopy; + + /** + * 证件反面照片 + */ + @SerializedName("identification_back_copy") + private String identificationBackCopy; + + /** + * 经营者/法人是否为受益人 + */ + @SerializedName("owner") + private Boolean owner; + + } + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmUboInfo implements Serializable { + private static final long serialVersionUID = 7918585690831975042L; + /** + * 证件类型 + */ + @SerializedName("ubo_id_doc_type") + private IdTypeEnum uboIdDocType; + /** + * 证件正面照片 + */ + @SerializedName("ubo_id_doc_copy") + private String uboIdDocCopy; + /** + * 证件反面照片 + */ + @SerializedName("ubo_id_doc_copy_back") + private String uboIdDocCopyBack; + /** + * 证件姓名 + */ + @SerializedName("ubo_id_doc_name") + @SpecEncrypt + private String uboIdDocName; + /** + * 证件号码 + */ + @SerializedName("ubo_id_doc_number") + @SpecEncrypt + private String uboIdDocNumber; + /** + * 证件居住地址 + */ + @SerializedName("ubo_id_doc_address") + @SpecEncrypt + private String uboIdDocAddress; + /** + * 证件有效期开始时间 + */ + @SerializedName("ubo_period_begin") + private String uboPeriodBegin; + /** + * 证件有效期结束时间 + */ + @SerializedName("ubo_period_end") + private String uboPeriodEnd; + } + + + /** + * 超级管理员需在开户后进行签约,并接收日常重要管理信息和进行资金操作,请确定其为商户法定代表人或负责人。 + */ + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmContactInfo implements Serializable { + + private static final long serialVersionUID = -480297586102445959L; + /** + * 联系人类型 + * 1、主体为“小微/个人卖家 ”,可选择: + * LEGAL:经营者/法人。 + * 2、主体为“个体工商户/企业/政府机关/事业单位/社会组织”,可选择: + * LEGAL:经营者/法人、 + * SUPER:经办人。 (经办人:经商户授权办理微信支付业务的人员)。 + * 示例值:LEGAL + */ + @SerializedName("contact_type") + private String contactType; + + /** + * 超级管理员姓名 + */ + @SerializedName("name") + @SpecEncrypt + private String name; + + /** + * 联系人证件类型 + * 当联系人类型是经办人时,请上传联系人证件类型。 + * 枚举值: + * IDENTIFICATION_TYPE_IDCARD:中国大陆居民-身份证 + * IDENTIFICATION_TYPE_OVERSEA_PASSPORT:其他国家或地区居民-护照 + * IDENTIFICATION_TYPE_HONGKONG_PASSPORT:中国香港居民-来往内地通行证 + * IDENTIFICATION_TYPE_MACAO_PASSPORT:中国澳门居民-来往内地通行证 + * IDENTIFICATION_TYPE_TAIWAN_PASSPORT:中国台湾居民-来往大陆通行证 + * IDENTIFICATION_TYPE_FOREIGN_RESIDENT:外国人居留证 + * IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT:港澳居民证 + * IDENTIFICATION_TYPE_TAIWAN_RESIDENT:台湾居民证 + * 示例值:IDENTIFICATION_TYPE_IDCARD + */ + @SerializedName("contact_id_doc_type") + private String contactIdDocType; + + /** + * 联系人证件号码 + * 1、若联系人类型为法人,则该身份证号码需与法人身份证号码一致。若联系人类型为经办人,则可填写实际经办人的身份证号码。 + * 2、可传身份证、来往内地通行证、来往大陆通行证、护照等证件号码,规范如下: + * 身份证(限中国大陆居民):17位数字+1位数字|X + * 护照(限境外人士):4-15位 数字|字母|连字符 + * 中国香港居民--来往内地通行证:H/h开头+8或10位数字/字母 + * 中国澳门居民--来往内地通行证:M/m开头+8或10位数字/字母 + * 中国台湾居民--来往大陆通行证:8位数字或10位数字 + * 外国人居留证:15位 数字|字母 + * 港澳居住证/台湾居住证:17位数字+1位数字|X + * 3、联系人签约时,校验微信号绑定的银行卡实名信息,是否与该证件号码一致。 + * 4、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial) + * 示例值:pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg== + */ + @SerializedName("id_card_number") + @SpecEncrypt + private String contactIdNumber; + + /** + * 联系人证件正面照片 + * 1、当联系人类型是经办人时,请上传联系人证件的正面照片。 + * 2、若证件类型为身份证,请上传人像面照片。 + * 3、正面拍摄、清晰、四角完整、无反光或遮挡;不得翻拍、截图、镜像、PS。 + * 4、请上传彩色照片or彩色扫描件,复印件需加盖公章鲜章,可添加“微信支付”相关水印(如微信支付认证),见【指引文档】 + * 5、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。 + * 示例值:jTpGmxUXqRTvDujqhThn4ReFxikqJ5YW6zFQ + */ + @SerializedName("contact_id_doc_copy") + private String contactIdDocCopy; + + /** + * 1、当联系人类型是经办人时,请上传联系人证件的反面照片。 + * 2、若证件类型为护照,无需上传反面照片。 + * 3、正面拍摄、清晰、四角完整、无反光或遮挡;不得翻拍、截图、镜像、PS。 + * 4、请上传彩色照片or彩色扫描件,复印件需加盖公章鲜章,可添加“微信支付”相关水印(如微信支付认证),见【指引文档】 + * 5、可上传1张图片,请填写通过图片上传API预先上传图片生成好的MediaID。 + * 示例值:jTpGmxUX3FBWVQ5NJTZvvDujqhThn4ReFxikqJ5YW6zFQ + */ + @SerializedName("contact_id_doc_copy_back") + private String contactIdDocCopyBack; + + /** + * 联系人证件有效期开始时间 + * 1、当超级管理员类型是经办人时,请上传证件有效期开始时间。 + * 2、请按照示例值填写,日期格式应满足合法的YYYY-MM-DD格式 + * 3、开始时间不能小于1900-01-01,开始时间不能大于等于当前日期。 + * 示例值:2019-06-06 + */ + @SerializedName("contact_period_begin") + private String contactPeriodBegin; + + /** + * 联系人证件有效期结束时间 + * 1、当超级管理员类型是经办人时,请上传证件有效期结束时间。 + * 2、请按照示例值填写,日期格式应满足合法的YYYY-MM-DD格式,若证件有效期为长期,请填写:长期。 + * 3、结束时间大于开始时间。 + * 示例值:2026-06-06 + */ + @SerializedName("contact_period_end") + private String contactPeriodEnd; + + + /** + * 联系人手机号 + * 1、11位数字。 + * 2、用于接收微信支付的重要管理信息及日常操作验证码。 + */ + @SerializedName("mobile") + @SpecEncrypt + private String mobile; + + } + + /** + * 主体资料 + */ + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmSubjectInfo implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 主体类型 + * 主体类型需与营业执照/登记证书上一致,可参考选择主体指引。 + * SUBJECT_TYPE_ENTERPRISE:企业 + * SUBJECT_TYPE_INSTITUTIONS_CLONED:事业单位 + * SUBJECT_TYPE_INDIVIDUAL:个体工商户 + * SUBJECT_TYPE_OTHERS:社会组织 + * SUBJECT_TYPE_MICRO:小微商户 + * SUBJECT_TYPE_GOVERNMENT:政府机关 + * 示例值:SUBJECT_TYPE_ENTERPRISE + */ + @SerializedName("subject_type") + private SubjectTypeEnum subjectType; + + /** + * 是否是金融机构 + * 选填,请根据申请主体的实际情况填写,可参考选择金融机构指引: + * 1、若商户主体是金融机构,则填写:true。 + * 2、若商户主体不是金融机构,则填写:false。 + * 若未传入将默认填写:false。 + * 示例值:true + */ + @SerializedName("finance_institution") + private Boolean financeInstitution; + + /** + * 营业执照 + */ + @SerializedName("business_license_info") + private ApplySubConfirmBusinessLicenseInfo businessLicenseInfo; + /** + * 登记证书 + */ + @SerializedName("certificate_info") + private ApplySubConfirmCertificateInfo certificateInfo; + + /** + * 单位证明函照片 + * 1、主体类型为政府机关/事业单位时,单位证明函照片必填。 + * 2、单位证明函格式参考示例 + * 3、请填写通过《图片上传API》预先上传图片生成好的MediaID + * 示例值:0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjmVtCz7ScmhEIThCaV-4BBgVwtNkCHO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo + */ + @SerializedName("company_prove_copy") + private String companyProveCopy; + + /** + * 辅助证明材料信息 + * 主体类型为小微商户时,辅助证明材料信息必填 + */ + @SerializedName("assist_prove_info") + private ApplySubConfirmAssistProveInfo assistProveInfo; + + /** + * 经营许可证 + */ + @SerializedName("special_operation_list") + private List specialOperationList; + + /** + * 金融机构许可证信息 + */ + @SerializedName("finance_institution_info") + private ApplySubConfirmFinanceInstitutionInfo financeInstitutionInfo; + + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmBusinessLicenseInfo implements Serializable { + private static final long serialVersionUID = -1016615300418945838L; + /** + * 注册号/统一社会信用代码 + * 1、主体为“个体工商户”时,请填写营业执照上的注册号/统一社会信用代码,格式需满足以下任一条件: + * -15位数字 + * -18位阿拉伯数字或大写英文字母(不得包含英文字母I/O/Z/S/V),并且以9开头 + * 2、主体为“企业”时,请填写营业执照上的注册号/统一社会信用代码,格式如下: + * -18位阿拉伯数字或大写英文字母(不得包含英文字母I/O/Z/S/V),并且以9开头 + * 示例值:914201123033363296 + */ + @SerializedName("license_number") + private String licenseNumber; + + /** + * 营业执照照片 + * 1、照片应正面拍摄、清晰、四角完整、无反光或遮挡;不得翻拍、截图、镜像、PS; + * 2、上传彩色照片、彩色扫描件,复印件需加盖公章鲜章。 + * 3、水印仅限于微信支付业务相关。 + * 4、指引与示例可参考【指引文档】 + * 5、请填写通过《图片上传API》预先上传图片生成好的MediaID + * 示例值:0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjmVtCz7ScmhEIThCaV-4BBgVwtNkCHO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo + */ + @SerializedName("license_copy") + private String licenseCopy; + + /** + * 商户名称 + * 1、长度为2-128个字符 + * 2、前后不能有空格、制表符、换行符 + * 3、不能仅含数字、特殊字符 + * 4、仅能填写数字、英文字母、汉字及特殊字符 + * 5、仅支持utf-8格式 + * 6、个体户证件为以下情况时,按照个体户XXX命名(XXX是营业执照经营人姓名):营业执照登记名称为空、仅含数字、仅含特殊字符、“无”、“无字号” + * 7、个体户不能使用“企业”“公司”或“农民专业合作社”结尾 + * 示例值:李四网络有限公司 + */ + @SerializedName("merchant_name") + private String merchantName; + /** + * 法人姓名 + * 请填写营业执照的经营者/法定代表人姓名 + * 1、长度为2-100个字符 + * 2、前后不能有空格、制表符、换行符 + * 3、不能仅含特殊字符 + * 4、仅能填写数字、英文字母、汉字及特殊字符 + * 示例值:李四 + */ + @SerializedName("legal_person") + private String legalPerson; + /** + * 注册地址 + * 建议填写营业执照的注册地址 + * 1、长度为4-128个字符 + * 2、前后不能有空格、制表符、换行符 + * 3、不能仅含数字、特殊字符 + * 4、仅能填写数字、英文字母、汉字及特殊字符 + * 5、仅支持utf-8格式 + * 示例值:广东省深圳市南山区xx路xx号 + */ + @SerializedName("company_address") + private String companyAddress; + /** + * 营业执照有效日期 + * 1、日期格式应满足合法的YYYY-MM-DD格式,参见示例值 + * 2、开始时间不能小于1900-01-01 + * 3、若证件有效期为长期,请填写:fovever。 + * 4、开始时间不能大于等于当前日期,结束时间需大于开始时间。 + * 示例值:[\"2017-10-28\",\"2037-10-28\"] + * + */ + @SerializedName("licence_valid_date") + private String periodBegin; + } + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmCertificateInfo implements Serializable { + private static final long serialVersionUID = 5080675335337916895L; + + /** + * 登记证书照片 + * 1、照片应正面拍摄、清晰、四角完整、无反光或遮挡;不得翻拍、截图、镜像、PS; + * 2、上传彩色照片、彩色扫描件,复印件需加盖公章鲜章。 + * 3、水印仅限于微信支付业务相关。 + * 4、指引与示例可参考【指引文档】 + * 5、请填写通过《图片上传API》预先上传图片生成好的MediaID + * 示例值:0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjmVtCz7ScmhEIThCaV-4BBgVwtNkCHO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo + */ + @SerializedName("cert_copy") + private String certCopy; + + /** + * 登记证书类型 + * 登记证书的类型。 + * 1、主体为“政府机关/事业单位/社会组织”时,请上传登记证书类型。 + * + * 当主体为事业单位时,选择此枚举值: + * CERTIFICATE_TYPE_2388:事业单位法人证书 + * + * 当主体为政府机关,选择此枚举值: + * CERTIFICATE_TYPE_2389:统一社会信用代码证书 + * + * 当主体为社会组织,选择以下枚举值之一: + * CERTIFICATE_TYPE_2389:统一社会信用代码证书 + * CERTIFICATE_TYPE_2394:社会团体法人登记证书 + * CERTIFICATE_TYPE_2395:民办非企业单位登记证书 + * CERTIFICATE_TYPE_2396:基金会法人登记证书 + * CERTIFICATE_TYPE_2520:执业许可证/执业证 + * CERTIFICATE_TYPE_2521:基层群众性自治组织特别法人统一社会信用代码证 + * CERTIFICATE_TYPE_2522:农村集体经济组织登记证 + * CERTIFICATE_TYPE_2399:宗教活动场所登记证 + * CERTIFICATE_TYPE_2400:政府部门下发的其他有效证明文件 + * 示例值:CERTIFICATE_TYPE_2388 + */ + @SerializedName("cert_type") + private CertTypeEnum certType; + + + /** + * 证书号 + * 请输入与所选证书类型相匹配且符合国家标准规范的证书号,其中除政府证明文件外,需满足18位阿拉伯数字或大写英文字母(不得包含英文字母I/O/Z/S/V) + * 示例值:111111111111 + */ + @SerializedName("cert_number") + private String certNumber; + + + /** + * 商户名称 + * 请填写登记证书上的商户名称 + * 1、长度为2-128个字符 + * 2、前后不能有空格、制表符、换行符 + * 3、不能仅含数字、特殊字符 + * 4、仅能填写数字、英文字母、汉字及特殊字符 + * 5、仅支持utf-8格式 + * 示例值:xx公益团体 + */ + @SerializedName("merchant_name") + private String merchantName; + + + /** + * 注册地址 + */ + @SerializedName("company_address") + private String companyAddress; + + + /** + * 法人姓名 + * 请填写登记证书上的法定代表人姓名 + * 1、长度为2-100个字符 + * 2、前后不能有空格、制表符、换行符 + * 3、不能仅含特殊字符 + * 4、仅能填写数字、英文字母、汉字及特殊字符 + * 示例值:李四 + */ + @SerializedName("legal_person") + private String legalPerson; + + + /** + * 证书有效日期 + * 1、日期格式应满足合法的YYYY-MM-DD格式,参见示例值 + * 2、若证件有效期为长期,请填写:fovever。 + * 3、开始时间不能大于等于当前日期,结束时间需大于开始时间。 + * 示例值:["2017-10-28","2037-10-28"] + */ + @SerializedName("cert_valid_date") + private String certValidDate; + + } + + /** + * 辅助证明材料信息 + */ + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmAssistProveInfo implements Serializable { + + private static final long serialVersionUID = -3394274542660805766L; + /** + * 小微经营类型 + * MICRO_TYPE_STORE:门店场所 + * MICRO_TYPE_MOBILE:流动经营/便民服务 + * MICRO_TYPE_ONLINE:线上商品/服务交易 + * 示例值:MICRO_TYPE_STORE + */ + @SerializedName("micro_biz_type") + private String microBizType; + /** + * 门店名称 + * 1、填写规范: + * 门店场所:填写门店名称 + * 流动经营/便民服务:填写经营/服务名称 + * 线上商品/服务交易:填写线上店铺名称 + * 2、格式规范: + * 长度为1-50个字符 + * 前后不能有空格、制表符、换行符 + * 不能仅含数字、特殊字符 + * 仅能填写数字、英文字母、汉字及特殊字符 + * 仅支持utf-8格式 + * 示例值:大郎烧饼 + */ + @SerializedName("store_name") + private String storeName; + /** + * 门店省市编码 + * 1、只能由数字组成 + * 2、详细参见微信支付提供的省市对照表 + * 3、填写规范: + * 门店场所:填写门店省市编码 + * 流动经营/便民服务:填写经营/服务所在地省市编码 + * 线上商品/服务交易:填写卖家所在地省市编码 + * 示例值:440305 + */ + @SerializedName("store_address_code") + private String storeAddressCode; + /** + * 门店地址 + * 1、填写规范: + * 门店场所:填写店铺详细地址,具体区/县及街道门牌号或大厦楼层 + * 流动经营/便民服务:填写“无” + * 线上商品/服务交易:填写电商平台名称 + * 2、格式规范: + * 长度为4-512个字符 + * 前后不能有空格、制表符、换行符 + * 不能仅含数字、特殊字符 + * 仅能填写数字、英文字母、汉字及特殊字符 + * 仅支持utf-8格式 + * 示例值:广东省深圳市南山区xx大厦x层xxxx室 + */ + @SerializedName("store_address") + private String storeAddress; + /** + * 门店门头照片 + * 1、请上传门头正面照片(要求门店招牌、门框完整、清晰、可辨识);若为停车场等无固定门头照片的经营场所,可上传岗亭/出入闸口。具体参考【指引文档】; + * 2、请填写通过《图片上传API》预先上传图片生成好的MediaID + * 示例值:0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjmVtCz7ScmhEIThCaV-4BBgVwtNkCHO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo + */ + @SerializedName("store_header_copy") + private String storeHeaderCopy; + /** + * 店内环境照片 + * 1、请上传门店内部环境照片(可辨识经营内容)。若为停车场等无固定门头的经营场所,可上传停车场内部照片。具体参考【指引文档】; + * 2、请填写通过《图片上传API》预先上传图片生成好的MediaID + * 示例值:0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjmVtCz7ScmhEIThCaV-4BBgVwtNkCHO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo + */ + @SerializedName("store_indoor_copy") + private String storeIndoorCopy; + + } + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmSpecialOperationList implements Serializable { + + private static final long serialVersionUID = 6016563999835704297L; + /** + * 行业类目id + * 参看微信支付提供的特殊行业id对照表 + * 示例值:100 + */ + @SerializedName("finance_type") + private Integer financeType; + + /** + * 行业经营许可证资质照片 + * 1、请根据特殊行业id对照表内指引,仅当所选择的行业为【必填经营许可证】的行业时,才需上传该项资料 + * 2、请填写通过《图片上传API》预先上传图片生成好的MediaID + * 3、每个行业最多支持5张资质照片 + * 示例值:0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjmVtCz7ScmhEIThCaV-4BBgVwtNkCHO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo + */ + @SerializedName("operation_copy_list") + private List financeLicensePics; + } + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmFinanceInstitutionInfo implements Serializable { + + private static final long serialVersionUID = 6016563999835704297L; + /** + * 金融机构类型 + * + * @see FinanceTypeEnum + */ + @SerializedName("finance_type") + private FinanceTypeEnum financeType; + + /** + * 金融机构许可证图片 + */ + @SerializedName("finance_license_pics") + private List financeLicensePics; + } + + + + + } + + + /** + * 补充材料 + */ + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + @Accessors(chain = true) + public static class ApplySubConfirmAdditionInfo implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 法人开户承诺函 + */ + @SerializedName("legal_person_commitment") + private String legalPersonCommitment; + + /** + * 法人开户意愿视频 + */ + @SerializedName("legal_person_video") + private String legalPersonVideo; + + /** + * 补充材料 + */ + @SerializedName("business_addition_pics") + private List businessAdditionPics; + + /** + * 补充说明 + */ + @SerializedName("business_addition_msg") + private String businessAdditionMsg; + + } + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateResult.java new file mode 100644 index 0000000000..5fc4930d29 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmCreateResult.java @@ -0,0 +1,31 @@ +package com.github.binarywang.wxpay.bean.applyconfirm; + +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + + +/** + * 间连商户开户意愿确认 提交申请结果响应 + * + * @author Mr.Pan + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class ApplySubjectConfirmCreateResult implements Serializable { + + private static final long serialVersionUID = 6171290256346697399L; + /** + * 微信支付申请单号 + */ + @SerializedName("applyment_id") + private String applymentId; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmMerchantStateQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmMerchantStateQueryResult.java new file mode 100644 index 0000000000..c155e1e6cd --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmMerchantStateQueryResult.java @@ -0,0 +1,30 @@ +package com.github.binarywang.wxpay.bean.applyconfirm; + +import com.github.binarywang.wxpay.bean.applyconfirm.enums.AuthorizeStateEnum; +import com.github.binarywang.wxpay.bean.applyment.enums.ApplymentStateEnum; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + *获取商户开户意愿确认状态返回对象信息 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class ApplySubjectConfirmMerchantStateQueryResult implements Serializable { + private static final long serialVersionUID = 3842134912775708112L; + + /** + * 授权状态 + */ + @SerializedName("authorize_state") + private AuthorizeStateEnum applymentState; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmStateQueryResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmStateQueryResult.java new file mode 100644 index 0000000000..77ee4c51eb --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/ApplySubjectConfirmStateQueryResult.java @@ -0,0 +1,45 @@ +package com.github.binarywang.wxpay.bean.applyconfirm; + +import com.github.binarywang.wxpay.bean.applyment.enums.ApplymentStateEnum; +import com.google.gson.annotations.SerializedName; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * 查询申请单状态返回对象信息 + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +public class ApplySubjectConfirmStateQueryResult implements Serializable { + private static final long serialVersionUID = 3842134912775708112L; + + /** + * 申请单状态 + */ + @SerializedName("applyment_state") + private ApplymentStateEnum applymentState; + /** + * 二维码图片 + */ + @SerializedName("qrcode_data") + private String qrcodeData; + /** + * 驳回参数 + */ + @SerializedName("reject_param") + private String rejectParam; + /** + * 驳回原因 + */ + @SerializedName("reject_reason") + private String rejectReason; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/enums/AuthorizeStateEnum.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/enums/AuthorizeStateEnum.java new file mode 100644 index 0000000000..10542ce705 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/applyconfirm/enums/AuthorizeStateEnum.java @@ -0,0 +1,18 @@ +package com.github.binarywang.wxpay.bean.applyconfirm.enums; + + +/** + * 授权状态枚举类 + */ +public enum AuthorizeStateEnum { + /** + * 未授权 + */ + AUTHORIZE_STATE_UNAUTHORIZED, + + /** + * 已授权 + */ + AUTHORIZE_STATE_AUTHORIZED, + ; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Apply4SubjectConfirmService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Apply4SubjectConfirmService.java new file mode 100644 index 0000000000..bb124bbd22 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/Apply4SubjectConfirmService.java @@ -0,0 +1,97 @@ +package com.github.binarywang.wxpay.service; + +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmCreateRequest; +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmCreateResult; +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmMerchantStateQueryResult; +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmStateQueryResult; +import com.github.binarywang.wxpay.exception.WxPayException; + +/** + *
+ * 商户开户意愿确认
+ * 产品文档:商户开户意愿确认流程
+ * 
+ * + * @author Mr.Pan + */ +public interface Apply4SubjectConfirmService { + + /** + *
+   * 提交申请单
+   * 详情请见: 间连商户开户意愿确认(提交申请单)
+   * 
+ * + * @param request 申请请求参数 + * @return 审核结果 + * @throws WxPayException 异常 + */ + ApplySubjectConfirmCreateResult applyment(ApplySubjectConfirmCreateRequest request) throws WxPayException; + + /** + * + *
+   * 查询申请单审核结果
+   * 详情请见: 查询申请单审核结果
+   * 
+ * + * @param businessCode 业务申请编号 + * @return 审核结果 + * @throws WxPayException 异常 + */ + ApplySubjectConfirmStateQueryResult queryApplyStatusByBusinessCode(String businessCode) throws WxPayException; + + /** + * + *
+   * 查询申请单审核结果
+   * 详情请见: 查询申请单审核结果
+   * 
+ * + * @param applymentId 申请编号 + * @return 审核结果 + * @throws WxPayException 异常 + */ + ApplySubjectConfirmStateQueryResult queryApplyStatusByApplymentId(String applymentId) throws WxPayException; + + + /** + * + *
+   * 获取商户开户意愿确认状态
+   * 详情请见: 获取商户开户意愿确认状态API
+   * 
+ * + * @param subMchId 微信支付分配的特约商户的唯一标识。 + * @return 确认状态结果 + * @throws WxPayException 异常 + */ + ApplySubjectConfirmMerchantStateQueryResult queryMerchantApplyStatusByMchId(String subMchId) throws WxPayException; + + + /** + * + *
+   * 撤销申请单
+   * 详情请见: 撤销申请单API
+   * 
+ * + * @param businessCode 业务申请编号 + * @throws WxPayException 异常 + */ + void cancelApplyByBusinessCode(String businessCode) throws WxPayException; + + /** + * + *
+   * 撤销申请单
+   * 详情请见: 撤销申请单API
+   * 
+ * + * @param applymentId 申请编号 + * @throws WxPayException 异常 + */ + void cancelApplyByApplymentId(String applymentId) throws WxPayException; + + +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Apply4SubjectConfirmServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Apply4SubjectConfirmServiceImpl.java new file mode 100644 index 0000000000..55af095f66 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/Apply4SubjectConfirmServiceImpl.java @@ -0,0 +1,132 @@ +package com.github.binarywang.wxpay.service.impl; + +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmCreateRequest; +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmCreateResult; +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmMerchantStateQueryResult; +import com.github.binarywang.wxpay.bean.applyconfirm.ApplySubjectConfirmStateQueryResult; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.Apply4SubjectConfirmService; +import com.github.binarywang.wxpay.service.WxPayService; +import com.github.binarywang.wxpay.v3.util.RsaCryptoUtil; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + + +/** + *
+ * 商户开户意愿确认
+ * 产品文档:商户开户意愿确认流程
+ * 
+ * + * @author Mr.Pan + */ +@Slf4j +@RequiredArgsConstructor +public class Apply4SubjectConfirmServiceImpl implements Apply4SubjectConfirmService { + + private static final Gson GSON = new GsonBuilder().create(); + private final WxPayService payService; + + /** + *
+   * 提交申请单
+   * 详情请见: 间连商户开户意愿确认(提交申请单)
+   * 
+ * + * @param request 申请请求参数 + * @return 审核结果 + * @throws WxPayException 异常 + */ + @Override + public ApplySubjectConfirmCreateResult applyment(ApplySubjectConfirmCreateRequest request) throws WxPayException { + String url = String.format("%s/v3/apply4subject/applyment", this.payService.getPayBaseUrl()); + RsaCryptoUtil.encryptFields(request, this.payService.getConfig().getVerifier().getValidCertificate()); + String result = payService.postV3WithWechatpaySerial(url, GSON.toJson(request)); + return GSON.fromJson(result, ApplySubjectConfirmCreateResult.class); + } + + /** + *
+   * 查询申请单审核结果
+   * 详情请见: 查询申请单审核结果
+   * 
+ * + * @param businessCode 业务申请编号 + * @return 审核结果 + * @throws WxPayException 异常 + */ + @Override + public ApplySubjectConfirmStateQueryResult queryApplyStatusByBusinessCode(String businessCode) throws WxPayException { + String url = String.format("%s/v3/apply4subject/applyment?business_code=%s", this.payService.getPayBaseUrl(), businessCode); + String result = payService.getV3(url); + return GSON.fromJson(result, ApplySubjectConfirmStateQueryResult.class); + } + + /** + *
+   * 查询申请单审核结果
+   * 详情请见: 查询申请单审核结果
+   * 
+ * + * @param applymentId 申请编号 + * @return 审核结果 + * @throws WxPayException 异常 + */ + @Override + public ApplySubjectConfirmStateQueryResult queryApplyStatusByApplymentId(String applymentId) throws WxPayException { + String url = String.format("%s/v3/apply4subject/applyment?applyment_id=%s", this.payService.getPayBaseUrl(), applymentId); + String result = payService.getV3(url); + return GSON.fromJson(result, ApplySubjectConfirmStateQueryResult.class); + } + + /** + *
+   * 获取商户开户意愿确认状态
+   * 详情请见: 获取商户开户意愿确认状态API
+   * 
+ * + * @param subMchId 微信支付分配的特约商户的唯一标识。 + * @return 确认状态结果 + * @throws WxPayException 异常 + */ + @Override + public ApplySubjectConfirmMerchantStateQueryResult queryMerchantApplyStatusByMchId(String subMchId) throws WxPayException { + String url = String.format("%s/v3/apply4subject/applyment/merchants/%s/state", this.payService.getPayBaseUrl(), subMchId); + String result = payService.getV3(url); + return GSON.fromJson(result, ApplySubjectConfirmMerchantStateQueryResult.class); + } + + /** + *
+   * 撤销申请单
+   * 详情请见: 撤销申请单API
+   * 
+ * + * @param businessCode 业务申请编号 + * @return 返回结果 + * @throws WxPayException 异常 + */ + @Override + public void cancelApplyByBusinessCode(String businessCode) throws WxPayException { + String url = String.format("%s/v3/apply4subject/applyment/%s/cancel", this.payService.getPayBaseUrl(), businessCode); + payService.postV3WithWechatpaySerial(url, ""); + } + + /** + *
+   * 撤销申请单
+   * 详情请见: 撤销申请单API
+   * 
+ * + * @param applymentId 申请编号 + * @return 返回结果 + * @throws WxPayException 异常 + */ + @Override + public void cancelApplyByApplymentId(String applymentId) throws WxPayException { + String url = String.format("%s/v3/apply4subject/applyment/%s/cancel", this.payService.getPayBaseUrl(), applymentId); + payService.postV3WithWechatpaySerial(url, ""); + } +} From c73fac0754b36149e0079a04f1ceff240a12d326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BA=86=E9=9C=87?= <69037747+zhangqzchn@users.noreply.github.com> Date: Wed, 22 Nov 2023 22:01:13 +0800 Subject: [PATCH 618/622] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WxCpUserExternalUserBehaviorStatistic.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java index 4c2a41383a..b23208504b 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java @@ -39,43 +39,43 @@ public static class Behavior implements Serializable { * 聊天总数, 成员有主动发送过消息的聊天数,包括单聊和群聊。 */ @SerializedName("chat_cnt") - private int chatCnt; + private Integer chatCnt; /** * 发送消息数,成员在单聊和群聊中发送的消息总数。 */ @SerializedName("message_cnt") - private int messageCnt; + private Integer messageCnt; /** * 已回复聊天占比,客户主动发起聊天后,成员在一个自然日内有回复过消息的聊天数/客户主动发起的聊天数比例,不包括群聊,仅在确有回复时返回。 */ @SerializedName("reply_percentage") - private double replyPercentage; + private Double replyPercentage; /** * 平均首次回复时长,单位为分钟,即客户主动发起聊天后,成员在一个自然日内首次回复的时长间隔为首次回复时长,所有聊天的首次回复总时长/已回复的聊天总数即为平均首次回复时长,不包括群聊,仅在确有回复时返回。 */ @SerializedName("avg_reply_time") - private int avgReplyTime; + private Integer avgReplyTime; /** * 删除/拉黑成员的客户数,即将成员删除或加入黑名单的客户数。 */ @SerializedName("negative_feedback_cnt") - private int negativeFeedbackCnt; + private Integer negativeFeedbackCnt; /** * 发起申请数,成员通过「搜索手机号」、「扫一扫」、「从微信好友中添加」、「从群聊中添加」、「添加共享、分配给我的客户」、「添加单向、双向删除好友关系的好友」、「从新的联系人推荐中添加」等渠道主动向客户发起的好友申请数量。 */ @SerializedName("new_apply_cnt") - private int newApplyCnt; + private Integer newApplyCnt; /** * 新增客户数,成员新添加的客户数量。 */ @SerializedName("new_contact_cnt") - private int newContactCnt; + private Integer newContactCnt; } /** From 8268fc83e7a5ededb23af78c307c4fd3fcba34f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=BC=E7=A6=84=C2=B7saber=C2=B7=E6=BD=8D=E7=B4=8D?= =?UTF-8?q?=E6=96=AF?= Date: Thu, 23 Nov 2023 10:33:09 +0800 Subject: [PATCH 619/622] =?UTF-8?q?:art:=20#3171=20=E3=80=90=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E3=80=91=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E5=88=86=E7=AD=BE=E7=BA=A6=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payscore/PartnerUserSignPlanDetail.java | 2 +- .../bean/payscore/PayScoreNotifyData.java | 2 +- .../payscore/PayScorePlanDetailRequest.java | 43 +++++++++++++++++++ .../payscore/PayScorePlanDetailResult.java | 25 +++++++++++ .../WxPartnerPayScoreSignPlanRequest.java | 2 +- .../WxPartnerPayScoreSignPlanResult.java | 2 +- 6 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailRequest.java create mode 100644 weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailResult.java diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java index d006f15a0c..a17fb9d833 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PartnerUserSignPlanDetail.java @@ -66,7 +66,7 @@ public class PartnerUserSignPlanDetail implements Serializable { * 计划详情名称 */ @SerializedName("plan_detail_name") - private Integer planDetailName; + private String planDetailName; /** * 计划明细对应订单实际支付金额(单位分) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java index 18b6975383..c16f397daf 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScoreNotifyData.java @@ -36,7 +36,7 @@ public class PayScoreNotifyData implements Serializable { *

3、用户确认成功通知的类型为PAYSCORE.USER_CONFIRM

*

4、支付成功通知的类型为PAYSCORE.USER_PAID

*

5、取消签约成功通知类型为PAYSCORE.USER_CANCEL_SIGN_PLAN

- *

6、签约计划成功通知类型为PAYSCORE

+ *

6、签约计划成功通知类型为PAYSCORE.USER_SIGN_PLAN

*/ @SerializedName("event_type") private String eventType; diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailRequest.java new file mode 100644 index 0000000000..2f639e7668 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailRequest.java @@ -0,0 +1,43 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author UltramanNoa + * @className PayScorePlanDetail + * @description 支付分计划明细列表 + * @createTime 2023/11/3 11:22 + **/ +@Data +@NoArgsConstructor +public class PayScorePlanDetailRequest implements Serializable { + + private static final long serialVersionUID = 999251141141181820L; + /** + * 计划明细原支付金额(单位分) + */ + @SerializedName("original_price") + private Integer originalPrice; + + /** + * 计划明细优惠说明 + */ + @SerializedName("plan_discount_description") + private String planDiscountDescription; + + /** + * 计划明细实际支付金额(单位分) + */ + @SerializedName("actual_price") + private Long actualPrice; + + /** + * 计划明细名称 + */ + @SerializedName("plan_detail_name") + private String planDetailName; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailResult.java new file mode 100644 index 0000000000..c4b3d3c042 --- /dev/null +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/PayScorePlanDetailResult.java @@ -0,0 +1,25 @@ +package com.github.binarywang.wxpay.bean.payscore; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author UltramanNoa + * @className PayScorePlanDetail + * @description 支付分计划明细列表 + * @createTime 2023/11/3 11:22 + **/ +@Data +@NoArgsConstructor +public class PayScorePlanDetailResult extends PayScorePlanDetailRequest implements Serializable { + + private static final long serialVersionUID = -2195861995542633650L; + /** + * 计划明细序号(返回参数) + */ + @SerializedName("plan_detail_no") + private Integer planDetailNo; +} diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java index 02733e2993..145dc8d2fb 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanRequest.java @@ -82,7 +82,7 @@ public String toJson() { * 支付分计划明细列表 */ @SerializedName("plan_detail_list") - private List planDetailList; + private List planDetailList; /** * 商户侧计划号 diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java index b5bcd51503..294add7bad 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/WxPartnerPayScoreSignPlanResult.java @@ -88,7 +88,7 @@ public static WxPartnerPayScoreSignPlanResult fromJson(String json) { * 支付分计划明细列表 */ @SerializedName("plan_detail_list") - private List planDetailList; + private List planDetailList; /** * 终止方商户号 From 786a78ea264e36c22a6f18327be43a0dfea98bd0 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 23 Nov 2023 18:19:17 +0800 Subject: [PATCH 620/622] =?UTF-8?q?:art:=20#3174=20=E3=80=90=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E3=80=91=E6=89=B9=E9=87=8F=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=AE=A1=E6=89=B9=E5=8D=95=E5=8F=B7=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=B8=AD=E7=9A=84=E7=AD=9B=E9=80=89=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=A2=9E=E5=8A=A0=E5=AE=A1=E6=89=B9=E5=8D=95=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/oa/WxCpApprovalInfoQueryFilter.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java index 888266c87c..306350d569 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalInfoQueryFilter.java @@ -2,6 +2,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; +import lombok.Getter; import me.chanjar.weixin.common.util.json.WxGsonBuilder; import java.io.Serializable; @@ -21,7 +22,7 @@ public class WxCpApprovalInfoQueryFilter implements Serializable { private static final long serialVersionUID = 3318064927980231802L; - private WxCpApprovalInfoQueryFilter.KEY key; + private KEY key; private Object value; @@ -37,6 +38,7 @@ public String toJson() { /** * The enum Key. */ + @Getter public enum KEY { /** @@ -58,7 +60,12 @@ public enum KEY { * sp_status - 审批状态。 */ @SerializedName("sp_status") - SP_STATUS("sp_status"); + SP_STATUS("sp_status"), + /** + * record_type - 审批单类型属性,1-请假;2-打卡补卡;3-出差;4-外出;5-加班; 6- 调班;7-会议室预定;8-退款审批;9-红包报销审批。 + */ + @SerializedName("record_type") + record_type("record_type"); private final String value; From beec6031af47b5861953e42c42216ad8110d16ad Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sat, 25 Nov 2023 22:25:30 +0800 Subject: [PATCH 621/622] =?UTF-8?q?:art:=20=E8=B5=84=E9=87=91=E5=AF=B9?= =?UTF-8?q?=E8=B4=A6=E5=8D=95=E4=B8=8B=E8=BD=BD=E6=8E=A5=E5=8F=A3v2?= =?UTF-8?q?=E5=92=8Cv3=E6=89=80=E9=9C=80=E8=B5=84=E9=87=91=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E7=B1=BB=E5=9E=8B=E6=9E=9A=E4=B8=BE=E5=80=BC=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=EF=BC=8C=E5=88=86=E5=BC=80=E5=AD=98=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WxPayApplyFundFlowBillV3Request.java | 19 +++++++++++++ .../request/WxPayDownloadFundFlowRequest.java | 27 ++++++++++++++++--- .../wxpay/constant/WxPayConstants.java | 18 ------------- .../service/impl/BaseWxPayServiceImpl.java | 1 - .../impl/BaseWxPayServiceImplTest.java | 2 +- 5 files changed, 44 insertions(+), 23 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayApplyFundFlowBillV3Request.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayApplyFundFlowBillV3Request.java index 251465e72e..4da2c9b55f 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayApplyFundFlowBillV3Request.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayApplyFundFlowBillV3Request.java @@ -16,6 +16,25 @@ @Data @NoArgsConstructor public class WxPayApplyFundFlowBillV3Request implements Serializable { + /** + * 账户类型 + */ + public static class AccountType { + /** + * BASIC:基本账户 + */ + public static final String BASIC = "BASIC"; + /** + * OPERATION:运营账户 + */ + public static final String OPERATION = "OPERATION"; + /** + * FEES:手续费账户 + */ + public static final String FEES = "FEES"; + } + + private static final long serialVersionUID = 1L; /** *
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayDownloadFundFlowRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayDownloadFundFlowRequest.java
index efb14fc7c0..5a75b1e484 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayDownloadFundFlowRequest.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayDownloadFundFlowRequest.java
@@ -1,6 +1,5 @@
 package com.github.binarywang.wxpay.bean.request;
 
-import com.github.binarywang.wxpay.constant.WxPayConstants.AccountType;
 import com.github.binarywang.wxpay.exception.WxPayException;
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import lombok.*;
@@ -26,6 +25,27 @@
 @AllArgsConstructor
 @XStreamAlias("xml")
 public class WxPayDownloadFundFlowRequest extends BaseWxPayRequest {
+
+  /**
+   * 账户类型
+   */
+  public static class AccountType {
+    /**
+     * BASIC:基本账户
+     */
+    public static final String BASIC = "Basic";
+    /**
+     * OPERATION:运营账户
+     */
+    public static final String OPERATION = "Operation";
+    /**
+     * FEES:手续费账户
+     */
+    public static final String FEES = "Fees";
+  }
+
+  private static final long serialVersionUID = -8352717499328292952L;
+
   private static final String[] ACCOUNT_TYPES = new String[]{AccountType.BASIC, AccountType.OPERATION, AccountType.FEES};
   private static final String SIGN_TYPE_HMAC_SHA256 = "HMAC-SHA256";
   private static final String TAR_TYPE_GZIP = "GZIP";
@@ -83,8 +103,9 @@ protected void checkConstraints() throws WxPayException {
       throw new WxPayException(String.format("account_type必须为%s其中之一,实际值:%s",
         Arrays.toString(ACCOUNT_TYPES), this.getAccountType()));
     }
-    /**
-     * 目前仅支持HMAC-SHA256
+
+    /*
+      目前仅支持HMAC-SHA256
      */
     this.setSignType(SIGN_TYPE_HMAC_SHA256);
   }
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java
index 60a56d1000..819cdfe731 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/constant/WxPayConstants.java
@@ -170,24 +170,6 @@ public String getType() {
     }
   }
 
-  /**
-   * 账户类型
-   */
-  public static class AccountType {
-    /**
-     * BASIC:基本账户
-     */
-    public static final String BASIC = "BASIC";
-    /**
-     * OPERATION:运营账户
-     */
-    public static final String OPERATION = "OPERATION";
-    /**
-     * FEES:手续费账户
-     */
-    public static final String FEES = "FEES";
-  }
-
   /**
    * 签名类型.
    */
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
index 121fd5ae0e..8466a5e91e 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
@@ -971,7 +971,6 @@ private String handleGzipBill(String url, String requestStr) throws WxPayExcepti
 
   @Override
   public WxPayFundFlowResult downloadFundFlow(String billDate, String accountType, String tarType) throws WxPayException {
-
     WxPayDownloadFundFlowRequest request = new WxPayDownloadFundFlowRequest();
     request.setBillDate(billDate);
     request.setAccountType(accountType);
diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
index e04f146c5f..3990f5b61e 100644
--- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
+++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java
@@ -11,7 +11,7 @@
 import com.github.binarywang.wxpay.bean.result.enums.TradeTypeEnum;
 import com.github.binarywang.wxpay.config.WxPayConfig;
 import com.github.binarywang.wxpay.constant.WxPayConstants;
-import com.github.binarywang.wxpay.constant.WxPayConstants.AccountType;
+import com.github.binarywang.wxpay.bean.request.WxPayDownloadFundFlowRequest.AccountType;
 import com.github.binarywang.wxpay.constant.WxPayConstants.BillType;
 import com.github.binarywang.wxpay.constant.WxPayConstants.SignType;
 import com.github.binarywang.wxpay.constant.WxPayConstants.TradeType;

From 344263bc5e455f0d5bdf8bf02073134ee65c6a4d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 30 Nov 2023 12:00:44 +0800
Subject: [PATCH 622/622] :arrow_up: Bump ch.qos.logback:logback-classic from
 1.2.9 to 1.3.12

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b5212fcbcd..dd4d91bb9b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -220,7 +220,7 @@
       
         ch.qos.logback
         logback-classic
-        1.2.9
+        1.3.12
         test