|
@@ -468,7 +468,7 @@ type BindGzhReq struct {
|
|
|
Code string `json:"Code"`
|
|
|
}
|
|
|
|
|
|
-// ReadMessages 微信公众号回调
|
|
|
+// Notify 微信公众号回调
|
|
|
// @Summary 微信公众号回调
|
|
|
// @Description 微信公众号回调
|
|
|
// @Success 200 {object} controllers.BaseResponse
|
|
@@ -476,9 +476,11 @@ type BindGzhReq struct {
|
|
|
func (u *UserController) Notify() {
|
|
|
echostr := u.GetString("echostr")
|
|
|
method := u.Ctx.Input.Method()
|
|
|
+ logger.Info("wx notify")
|
|
|
if method == "POST" {
|
|
|
body := u.Ctx.Input.RequestBody
|
|
|
item := new(Notify)
|
|
|
+ logger.Info("wx notify body:", string(body))
|
|
|
err := xml.Unmarshal(body, &item)
|
|
|
if err != nil {
|
|
|
logger.Info("xml.Unmarshal:" + err.Error())
|