parent
a29faeb812
commit
42880b1af5
@ -1,20 +1,14 @@
|
|||||||
package handle
|
package handle
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"WechatGateWay/global"
|
||||||
"WechatGateWay/third_part"
|
"WechatGateWay/third_part"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func replyImage(msgContent MsgContent, timestamp, nonce string, w http.ResponseWriter) {
|
func replyImage(msgContent MsgContent, timestamp, nonce string, w http.ResponseWriter) {
|
||||||
fmt.Println(msgContent.ToUsername)
|
fmt.Println(global.WechatAccessToken)
|
||||||
fmt.Println(msgContent.FromUsername)
|
|
||||||
fmt.Println(msgContent.CreateTime)
|
|
||||||
fmt.Println(msgContent.MsgType)
|
|
||||||
fmt.Println(msgContent.Content)
|
|
||||||
fmt.Println(msgContent.Msgid)
|
|
||||||
fmt.Println(msgContent.Agentid)
|
|
||||||
|
|
||||||
third_part.SendTextPost(msgContent.ToUsername, "你好")
|
third_part.SendTextPost(msgContent.ToUsername, "你好")
|
||||||
third_part.SendPicFile(msgContent.FromUsername, "/app/data/ygg.jpg")
|
third_part.SendPicFile(msgContent.FromUsername, "/app/data/ygg.jpg")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in new issue