jekins 推送测试

This commit is contained in:
Leo
2023-12-08 11:06:07 +08:00
parent 5583a846d7
commit 25d57c1657
4 changed files with 33 additions and 1 deletions

View File

@@ -77,6 +77,10 @@
<artifactId>UserAgentUtils</artifactId>
<version>1.21</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<dependencyManagement>

View File

@@ -107,7 +107,7 @@ public class WxSendUtil {
HashMap<String, String> articles = new HashMap<>();
articles.put("title", title);
articles.put("thumb_media_id", "258F4sbTUwwHLRtKDDr4yqH2PzfYPlHPbOLCazHou_3JCgq7Dh1f9PMvrIaIv2oHk");
articles.put("content", text);
articles.put("content",text.replaceAll("\\\\n", System.getProperty("line.separator")));
articlesList.add(articles);
HashMap<Object, Object> mpnews = new HashMap<>();
mpnews.put("articles", articlesList);

View 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;
}

View File

@@ -0,0 +1,7 @@
package cn.van333.wxsend.util.xcx;
@lombok.Data
public class respoenseModel {
private String code;
private Msg msg;
}