From ba0a7e9b2c34fe80f27831a7d918c80a0b775276 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 2 Dec 2024 18:35:32 +0800 Subject: [PATCH] 1 --- voice/api.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 voice/api.go diff --git a/voice/api.go b/voice/api.go new file mode 100644 index 0000000..fb681e2 --- /dev/null +++ b/voice/api.go @@ -0,0 +1,13 @@ +package voice + +import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" + +func Send(no string, data map[string]string) (string, error) { + strings := zhios_third_party_utils.SerializeStr(data) + maps := map[string]string{ + "sbx_id": no, //机器编号 + "agent_id": strings, + } + post, err := zhios_third_party_utils.CurlPost("http://cs.mqlinks.com/txmsgpush/", zhios_third_party_utils.SerializeStr(maps), nil) + return string(post), err +}