1
This commit is contained in:
@@ -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<String> 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": {}
|
||||
|
||||
Reference in New Issue
Block a user