|
@@ -277,7 +277,7 @@ public class WeComMessageDataJob {
|
|
List<Long> staffIds = new ArrayList<>();
|
|
List<Long> staffIds = new ArrayList<>();
|
|
staffIds.add(staffId);
|
|
staffIds.add(staffId);
|
|
init(staffIds);
|
|
init(staffIds);
|
|
- List<WeComUser> weComUserList = weComUserMapper.selectUserList(staffId, (byte) 1, (pageNum - 1) * pageSize, pageSize);
|
|
|
|
|
|
+ List<WeComUser> weComUserList = weComUserMapper.selectUserList(staffId, (byte) 2, (pageNum - 1) * pageSize, pageSize);
|
|
// if (isSend) {
|
|
// if (isSend) {
|
|
// weComUserList = weComUserMapper.selectSendUserList(staffId, (byte) 1, (pageNum - 1) * pageSize, pageSize);
|
|
// weComUserList = weComUserMapper.selectSendUserList(staffId, (byte) 1, (pageNum - 1) * pageSize, pageSize);
|
|
// } else {
|
|
// } else {
|
|
@@ -530,10 +530,12 @@ 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", "芳华给您留了女神节专属礼遇✨\n" +
|
|
|
|
- "① 母女养生操视频(送女儿看加倍贴心)\n" +
|
|
|
|
- "② 妈妈辈经典笑话库(逗乐全家就现在)\n" +
|
|
|
|
- "回复【1】领秘诀,回复【2】笑开花");
|
|
|
|
|
|
+ text.put("content", "您知道吗?养老金就像炖老火汤——火候(缴费年限)、料足不足(缴费基数)都影响滋味!\n" +
|
|
|
|
+ "回复【1】一键领取:\n" +
|
|
|
|
+ "↓ 免费领您三样东西 ↓\n" +
|
|
|
|
+ "① 养老金‘少算500块’自检表(对照这5项立马找出漏算项目)\n" +
|
|
|
|
+ "② 工龄折算技巧(知青/退伍兵多领800+案例)\n" +
|
|
|
|
+ "③ 私聊领《2025补发对照表》(附社保局最新批文截图)");
|
|
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();
|
|
@@ -542,14 +544,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 = "\uD83D\uDD34男人过“3。8妇女节”,比女人们还嗨❗❗";
|
|
|
|
|
|
+ String title = "退休后最好的关系、最好的朋友、最好的状态…";
|
|
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 = "3aWlupE1pKiTUEFaGFYpat6wZV5FcweClgqbhMwR0maBd6fLTOyBEiN-3Z6mqZkFIOmFtvxEczxu77AuQXlkeFQ";
|
|
|
|
|
|
+ String picMediaId = "3HrvXTXgP0viHaSnzK_ru2PO10S9HqVZb3VXwQt4IppLK8hKTylU5bySnYyz6dwZpiATXeUUQPJTPAC_dbYiL_Q";
|
|
miniprogram.put("pic_media_id", picMediaId);
|
|
miniprogram.put("pic_media_id", picMediaId);
|
|
- 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";
|
|
|
|
|
|
+ String page = "pages/category?jumpPage=pages%2Fuser-videos%3Fid%3D12067577%26fromGzh%3D1%26rootShareId%3D1995238b-39ab-4099-fb26-d2bb02b6eaac%26shareId%3D1995238b-39ab-4099-fb26-d2bb02b6eaac%26rootSourceId%3Dai_aiqw_20250310_12067577_83acdcb2";
|
|
miniprogram.put("page", page);
|
|
miniprogram.put("page", page);
|
|
attachment.put("miniprogram", miniprogram);
|
|
attachment.put("miniprogram", miniprogram);
|
|
attachments.add(0, attachment);
|
|
attachments.add(0, attachment);
|