Roc 8 ay önce
ebeveyn
işleme
c59b4138df
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      controllers/user/user_controller.go

+ 3 - 1
controllers/user/user_controller.go

@@ -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())