From 42880b1af55c07f2997744fd66072ffe331e065c Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Sun, 24 Jul 2022 15:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E8=AF=A2token=20WechatAccessToken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handle/replyImage.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/handle/replyImage.go b/handle/replyImage.go index 88f8e02..ad3a315 100644 --- a/handle/replyImage.go +++ b/handle/replyImage.go @@ -1,20 +1,14 @@ package handle import ( + "WechatGateWay/global" "WechatGateWay/third_part" "fmt" "net/http" ) func replyImage(msgContent MsgContent, timestamp, nonce string, w http.ResponseWriter) { - fmt.Println(msgContent.ToUsername) - fmt.Println(msgContent.FromUsername) - fmt.Println(msgContent.CreateTime) - fmt.Println(msgContent.MsgType) - fmt.Println(msgContent.Content) - fmt.Println(msgContent.Msgid) - fmt.Println(msgContent.Agentid) - + fmt.Println(global.WechatAccessToken) third_part.SendTextPost(msgContent.ToUsername, "你好") third_part.SendPicFile(msgContent.FromUsername, "/app/data/ygg.jpg") }