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") }