This commit is contained in:
雷欧(林平凡)
2024-11-15 15:54:08 +08:00
parent 01da4fc4fc
commit 3e5b2606d5

View File

@@ -97,11 +97,11 @@ public class WXUtil {
public void sendTextMessage(String wxid, String content, Integer msgType, String fromwxid) { public void sendTextMessage(String wxid, String content, Integer msgType, String fromwxid) {
// 全部打印 // 全部打印
logger.info("发送文本消息 msgType: " + msgType + " wxid: " + wxid + " fromwxid: " + fromwxid + " content: " + content); logger.info("发送文本消息 msgType: " + msgType + " wxid: " + wxid + " fromwxid: " + fromwxid + " content: " + content);
List<String> strings = splitStringByLength(content, 2048); List<String> strings = splitStringByLength(content, 4096);
int count = 0; int count = 1;
for (String string : strings) { for (String string : strings) {
if (count > 0) { if (strings.size()>1) {
string = "---长消息---第:" + count + "" + string + "\r"; string = "---长消息---第:" + count + ""+ "\r" + string ;
} }
count++; count++;
// 如果是自己的微信,所有信息都加上少爷 // 如果是自己的微信,所有信息都加上少爷