jekins 推送测试

This commit is contained in:
Leo
2023-12-08 11:15:09 +08:00
parent da5e0b8926
commit 79706cd57f

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.replaceAll("\\\\n", System.getProperty("line.separator")));
articles.put("content",text.replaceAll("\n", System.getProperty("line.separator")));
articlesList.add(articles);
HashMap<Object, Object> mpnews = new HashMap<>();
mpnews.put("articles", articlesList);