Skip to content

Commit 5dd188d

Browse files
committed
🎨 【企业微信】修复获取审批模板详情接口异常的问题:Expected BEGIN_OBJECT but was BEGIN_ARRAY
1 parent a881de5 commit 5dd188d

File tree

3 files changed

+396
-8
lines changed

3 files changed

+396
-8
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaApprovalTemplateResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* 审批模板详情
1919
*
20-
* @author gyv12345 @163.com / Wang_Wong
20+
* @author [email protected] / Wang_Wong
2121
*/
2222
@Data
2323
@Builder
@@ -121,7 +121,7 @@ public static class TemplateOption implements Serializable {
121121

122122
/**
123123
* 获取审批模板详情,value为list类型
124-
* https://developer.work.weixin.qq.com/document/path/91982
124+
* <a href="https://developer.work.weixin.qq.com/document/path/91982">文档链接</a>
125125
*/
126126
@SerializedName("value")
127127
private List<TemplateTitle> value;

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/templatedata/TemplateOptions.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import lombok.Data;
44

55
import java.io.Serializable;
6+
import java.util.List;
67

78
/**
89
* The type Template options.
@@ -17,11 +18,8 @@ public class TemplateOptions implements Serializable {
1718
private String key;
1819

1920
/**
20-
* 创建审批模板,value为对象类型
21-
* https://developer.work.weixin.qq.com/document/path/97437#%E9%99%845-%E5%8D%95%E9%80%89%E5%A4%9A%E9%80%89%E6%8E%A7%E4%BB%B6%EF%BC%88control%E5%8F%82%E6%95%B0%E4%B8%BAselector%EF%BC%89
22-
*
23-
* 获取审批模板详情,value为list类型
24-
* https://developer.work.weixin.qq.com/document/path/91982
21+
* <a href="https://developer.work.weixin.qq.com/document/path/97437#%E9%99%845-%E5%8D%95%E9%80%89%E5%A4%9A%E9%80%89%E6%8E%A7%E4%BB%B6%EF%BC%88control%E5%8F%82%E6%95%B0%E4%B8%BAselector%EF%BC%89">创建审批模板,value为对象类型</a>
22+
* <a href="https://developer.work.weixin.qq.com/document/path/91982">获取审批模板详情,value为list类型</a>
2523
**/
26-
private TemplateTitle value;
24+
private List<TemplateTitle> value;
2725
}

0 commit comments

Comments
 (0)