This commit is contained in:
Leo
2024-11-16 22:59:02 +08:00
parent 5bc8e276fd
commit d316243d24

View File

@@ -96,7 +96,7 @@ public class WXUtil {
// 发送文本消息 msgType 1:私聊 2:群发 // 发送文本消息 msgType 1:私聊 2:群发
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: {} wxid: {} fromwxid: {} content: {}", msgType, wxid, fromwxid, content);
List<String> strings = splitStringByLength(content, 3072); List<String> strings = splitStringByLength(content, 3072);
int count = 1; int count = 1;
for (String string : strings) { for (String string : strings) {
@@ -142,7 +142,7 @@ public class WXUtil {
.body(JSON.toJSONString(jsonObject)).execute().body(); .body(JSON.toJSONString(jsonObject)).execute().body();
if (ObjectUtil.isNotEmpty(responseStr)) { if (ObjectUtil.isNotEmpty(responseStr)) {
JSONObject response = JSON.parseObject(responseStr); JSONObject response = JSON.parseObject(responseStr);
logger.info("消息响应:" + response.toString()); logger.info("消息响应:{}", response.toString());
//return response; //return response;
continue; continue;
} }
@@ -245,7 +245,7 @@ public class WXUtil {
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
private class WxReqDate { private static class WxReqDate {
//{ //{
// "type": "X0000", // "type": "X0000",
// "data": {} // "data": {}