This commit is contained in:
suyl
2021-09-07 17:42:00 +08:00
parent 0fcc8291eb
commit 5f6cccbd0a

View File

@@ -1,6 +1,8 @@
package controllers
import (
"git.rosy.net.cn/baseapi/utils"
"io/ioutil"
"net/http"
"git.rosy.net.cn/jx-callback/globals"
@@ -26,3 +28,12 @@ func (c *WeixinController) Msg() {
c.ServeJSON()
}
}
func (c *WeixinController) WifiMsg() {
data, _ := ioutil.ReadAll(c.Ctx.Request.Body)
values, _ := utils.HTTPBody2Values(data, false)
mapData := utils.URLValues2Map(values)
globals.SugarLogger.Debugf("weixin URL check is:%v", mapData)
c.Data["json"] = "ok"
c.ServeJSON()
}