File tree Expand file tree Collapse file tree 2 files changed +52
-1
lines changed
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change
1
+ package me .chanjar .weixin .mp .bean .message ;
2
+
3
+ import com .thoughtworks .xstream .annotations .XStreamAlias ;
4
+ import com .thoughtworks .xstream .annotations .XStreamConverter ;
5
+ import lombok .Data ;
6
+ import me .chanjar .weixin .common .util .xml .XStreamCDataConverter ;
7
+ import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
8
+
9
+ import java .io .Serializable ;
10
+ import java .util .List ;
11
+
12
+ /**
13
+ * @author plw on 2021/9/7 10:39 AM.
14
+ * @version 1.0
15
+ */
16
+ @ XStreamAlias ("ArticleUrlResult" )
17
+ @ Data
18
+ public class ArticleUrlResult implements Serializable {
19
+
20
+ @ XStreamAlias ("ResultList" )
21
+ private List <Item > resultList ;
22
+
23
+ @ XStreamAlias ("Count" )
24
+ private Long count ;
25
+
26
+ @ Override
27
+ public String toString () {
28
+ return WxMpGsonBuilder .create ().toJson (this );
29
+ }
30
+
31
+ @ XStreamAlias ("item" )
32
+ @ Data
33
+ public static class Item implements Serializable {
34
+
35
+ @ XStreamAlias ("ArticleIdx" )
36
+ private String articleIdx ;
37
+
38
+ @ XStreamAlias ("ArticleUrl" )
39
+ @ XStreamConverter (value = XStreamCDataConverter .class )
40
+ private String articleUrl ;
41
+
42
+ @ Override
43
+ public String toString () {
44
+ return WxMpGsonBuilder .create ().toJson (this );
45
+ }
46
+
47
+ }
48
+ }
Original file line number Diff line number Diff line change @@ -353,6 +353,9 @@ public class WxMpXmlMessage implements Serializable {
353
353
@ XStreamAlias ("SendLocationInfo" )
354
354
private SendLocationInfo sendLocationInfo = new SendLocationInfo ();
355
355
356
+ @ XStreamAlias ("ArticleUrlResult" )
357
+ private ArticleUrlResult articleUrlResult = new ArticleUrlResult ();
358
+
356
359
/**
357
360
* 审核不通过原因
358
361
*/
@@ -446,7 +449,7 @@ public class WxMpXmlMessage implements Serializable {
446
449
447
450
/**
448
451
* 审核结果,成功succ 或失败fail.
449
- *
452
+ * <p>
450
453
* 在商品审核结果推送时,verify_ok表示审核通过,verify_not_pass表示审核未通过。
451
454
*/
452
455
@ XStreamAlias ("Result" )
You can’t perform that action at this time.
0 commit comments