parent
a29faeb812
commit
42880b1af5
@ -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")
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue