|
@@ -530,8 +530,10 @@ public class WeComMessageDataJob {
|
|
JSONObject text = new JSONObject();
|
|
JSONObject text = new JSONObject();
|
|
// String content = messageService.getMessageText();
|
|
// String content = messageService.getMessageText();
|
|
// text.put("content", content);
|
|
// text.put("content", content);
|
|
- text.put("content", "现在有空唠唠嗑、解解闷吗?\uD83C\uDF39\n" +
|
|
|
|
- "芳华这儿还藏着【养生秘诀】和【搞笑段子】!您想先看哪个?");
|
|
|
|
|
|
+ text.put("content", "芳华给您留了女神节专属礼遇✨\n" +
|
|
|
|
+ "① 母女养生操视频(送女儿看加倍贴心)\n" +
|
|
|
|
+ "② 妈妈辈经典笑话库(逗乐全家就现在)\n" +
|
|
|
|
+ "回复【1】领秘诀,回复【2】笑开花");
|
|
jsonObject.put("text", text);
|
|
jsonObject.put("text", text);
|
|
jsonObject.put("sender", staff.getCarrierId());
|
|
jsonObject.put("sender", staff.getCarrierId());
|
|
JSONArray attachments = new JSONArray();
|
|
JSONArray attachments = new JSONArray();
|
|
@@ -540,14 +542,14 @@ public class WeComMessageDataJob {
|
|
attachment.put("msgtype", "miniprogram");
|
|
attachment.put("msgtype", "miniprogram");
|
|
JSONObject miniprogram = new JSONObject();
|
|
JSONObject miniprogram = new JSONObject();
|
|
miniprogram.put("appid", MessageConstant.appid);
|
|
miniprogram.put("appid", MessageConstant.appid);
|
|
- String title = "男人饭桌讲话金句频出,太有才了";
|
|
|
|
|
|
+ String title = "\uD83D\uDD34男人过“3。8妇女节”,比女人们还嗨❗❗";
|
|
if (title.getBytes(StandardCharsets.UTF_8).length > MAX_BYTES) {
|
|
if (title.getBytes(StandardCharsets.UTF_8).length > MAX_BYTES) {
|
|
title = ToolUtils.truncateString(title, MAX_BYTES - 3) + "...";
|
|
title = ToolUtils.truncateString(title, MAX_BYTES - 3) + "...";
|
|
}
|
|
}
|
|
miniprogram.put("title", title);
|
|
miniprogram.put("title", title);
|
|
- String picMediaId = "3759FYrByynA2Nnv5zaDQMHCqzCrap1abCrgp_vzXYFEAu2v6UFvIHfDHnjeUEOoUu_1boMvU_FXwh4f4fDRLtg";
|
|
|
|
|
|
+ String picMediaId = "3aWlupE1pKiTUEFaGFYpat6wZV5FcweClgqbhMwR0maBd6fLTOyBEiN-3Z6mqZkFIOmFtvxEczxu77AuQXlkeFQ";
|
|
miniprogram.put("pic_media_id", picMediaId);
|
|
miniprogram.put("pic_media_id", picMediaId);
|
|
- String page = "pages/category?jumpPage=pages%2Fuser-videos%3Fid%3D11480732%26fromGzh%3D1%26rootShareId%3D66019eef-d3fa-47ec-90a1-afca78f91cea%26shareId%3D66019eef-d3fa-47ec-90a1-afca78f91cea%26rootSourceId%3Dai_aiqw_20250306_11480732_10d6eefa";
|
|
|
|
|
|
+ String page = "pages/category?jumpPage=pages%2Fuser-videos%3Fid%3D13712103%26fromGzh%3D1%26rootShareId%3D49ca7599-60c1-4b5d-bc82-6b2341d282f2%26shareId%3D49ca7599-60c1-4b5d-bc82-6b2341d282f2%26rootSourceId%3Dai_aiqw_20250307_13712103_87f2a55a";
|
|
miniprogram.put("page", page);
|
|
miniprogram.put("page", page);
|
|
attachment.put("miniprogram", miniprogram);
|
|
attachment.put("miniprogram", miniprogram);
|
|
attachments.add(0, attachment);
|
|
attachments.add(0, attachment);
|
|
@@ -566,7 +568,7 @@ public class WeComMessageDataJob {
|
|
if (hasImage) {
|
|
if (hasImage) {
|
|
JSONObject imageAttachment = new JSONObject();
|
|
JSONObject imageAttachment = new JSONObject();
|
|
JSONObject image = new JSONObject();
|
|
JSONObject image = new JSONObject();
|
|
- image.put("media_id", "37l52AubJfiaB5hWxpB0LrQrx1PuXm7GgrOAMXYZ2HoZgh7Qwr7_QHsic13SbRgtXQvK2LenXV6_qHBQeFDfk3g");
|
|
|
|
|
|
+ image.put("media_id", "3QQuGlmUWb0e0QAZBYdFyNrn6J4Yu51ePdrVK9uLkYwmOX-mISdh6HmaEVtRYyts-L0lUYNSQeML9umwgXysCgA");
|
|
imageAttachment.put("msgtype", "image");
|
|
imageAttachment.put("msgtype", "image");
|
|
imageAttachment.put("image", image);
|
|
imageAttachment.put("image", image);
|
|
attachments.add(imageAttachment);
|
|
attachments.add(imageAttachment);
|