修改http客户端功能

This commit is contained in:
ayflying
2025-12-24 15:33:08 +08:00
parent 6b304efc0e
commit 85d14a9489
8 changed files with 506 additions and 217 deletions

View File

@@ -34,7 +34,7 @@ func (m DingTalkMod) Send(value string) {
}
// 构建发送的消息体,包含消息类型和内容
_, err := g.Client().Discovery(nil).ContentJson().Post(ctx, url, post)
_, err := g.Client().ContentJson().Post(ctx, url, post)
if err != nil {
g.Log().Info(ctx, err)
}