新增加内部消息通知工具GenericMessageListener测试方法,待完整测试

This commit is contained in:
2025-08-22 17:24:04 +08:00
parent 5ca7473d6a
commit 5481897076
4 changed files with 128 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ public class WeChatUtil {
String url = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=" + accessToken;
JSONObject msg = new JSONObject();
msg.put("touser", "2023429229");
msg.put("touser", toUser);
msg.put("msgtype", "text");
msg.put("agentid", weChatConfig.getAgentId());