diff --git a/src/main/java/cn/van/business/util/WXUtil.java b/src/main/java/cn/van/business/util/WXUtil.java index 12c1d2a..08cd436 100644 --- a/src/main/java/cn/van/business/util/WXUtil.java +++ b/src/main/java/cn/van/business/util/WXUtil.java @@ -96,7 +96,7 @@ public class WXUtil { // 发送文本消息 msgType 1:私聊 2:群发 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 strings = splitStringByLength(content, 3072); int count = 1; for (String string : strings) { @@ -142,7 +142,7 @@ public class WXUtil { .body(JSON.toJSONString(jsonObject)).execute().body(); if (ObjectUtil.isNotEmpty(responseStr)) { JSONObject response = JSON.parseObject(responseStr); - logger.info("消息响应:" + response.toString()); + logger.info("消息响应:{}", response.toString()); //return response; continue; } @@ -245,7 +245,7 @@ public class WXUtil { @Data @AllArgsConstructor @NoArgsConstructor - private class WxReqDate { + private static class WxReqDate { //{ // "type": "X0000", // "data": {}