广告平台(总站长使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
734 B

  1. package hdl
  2. import (
  3. "applet/app/utils"
  4. "fmt"
  5. "github.com/gin-gonic/gin"
  6. "net/http"
  7. )
  8. type ReqWxMessage struct {
  9. AppID string `xml:"AppId"`
  10. CreateTime int64 `xml:"CreateTime"`
  11. InfoType string `xml:"InfoType"`
  12. ComponentVerifyTicket string `xml:"ComponentVerifyTicket"`
  13. }
  14. func SetTicket(c *gin.Context) {
  15. params := c.QueryMap("*")
  16. utils.FilePutContents("SetTicket_Get", utils.SerializeStr(params))
  17. var wxMsg ReqWxMessage
  18. err := c.BindXML(&wxMsg)
  19. if err != nil {
  20. fmt.Println("setTicket>>>>>>>>", err.Error())
  21. }
  22. utils.FilePutContents("SetTicket_XML", utils.SerializeStr(wxMsg))
  23. c.String(http.StatusOK, "success")
  24. return
  25. }
  26. func WechatMsgRecieve(c *gin.Context) {
  27. return
  28. }