aa
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
@@ -26,3 +28,12 @@ func (c *WeixinController) Msg() {
|
|||||||
c.ServeJSON()
|
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()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user