jekins 推送测试
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -77,6 +77,10 @@
|
|||||||
<artifactId>UserAgentUtils</artifactId>
|
<artifactId>UserAgentUtils</artifactId>
|
||||||
<version>1.21</version>
|
<version>1.21</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public class WxSendUtil {
|
|||||||
HashMap<String, String> articles = new HashMap<>();
|
HashMap<String, String> articles = new HashMap<>();
|
||||||
articles.put("title", title);
|
articles.put("title", title);
|
||||||
articles.put("thumb_media_id", "258F4sbTUwwHLRtKDDr4yqH2PzfYPlHPbOLCazHou_3JCgq7Dh1f9PMvrIaIv2oHk");
|
articles.put("thumb_media_id", "258F4sbTUwwHLRtKDDr4yqH2PzfYPlHPbOLCazHou_3JCgq7Dh1f9PMvrIaIv2oHk");
|
||||||
articles.put("content", text);
|
articles.put("content",text.replaceAll("\\\\n", System.getProperty("line.separator")));
|
||||||
articlesList.add(articles);
|
articlesList.add(articles);
|
||||||
HashMap<Object, Object> mpnews = new HashMap<>();
|
HashMap<Object, Object> mpnews = new HashMap<>();
|
||||||
mpnews.put("articles", articlesList);
|
mpnews.put("articles", articlesList);
|
||||||
|
|||||||
21
src/main/java/cn/van333/wxsend/util/xcx/Msg.java
Normal file
21
src/main/java/cn/van333/wxsend/util/xcx/Msg.java
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
package cn.van333.wxsend.util.xcx;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class Msg {
|
||||||
|
private String id;
|
||||||
|
private String type;
|
||||||
|
private String tid;
|
||||||
|
private String hot;
|
||||||
|
private String title;
|
||||||
|
private String picname;
|
||||||
|
private String content;
|
||||||
|
private String count;
|
||||||
|
private String dizhi;
|
||||||
|
private String price;
|
||||||
|
private String addtime;
|
||||||
|
private String status;
|
||||||
|
private String hackpID;
|
||||||
|
private Object buygoods;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package cn.van333.wxsend.util.xcx;
|
||||||
|
|
||||||
|
@lombok.Data
|
||||||
|
public class respoenseModel {
|
||||||
|
private String code;
|
||||||
|
private Msg msg;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user