企业微信消息发送测试代码(截至到学校违纪委员会意见

This commit is contained in:
2025-08-20 15:33:22 +08:00
parent 3c5818dee2
commit 9eb3cfd422
9 changed files with 129 additions and 9 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", toUser);
msg.put("touser", "2023429229");
msg.put("msgtype", "text");
msg.put("agentid", weChatConfig.getAgentId());