Roc 1 päivä sitten
vanhempi
commit
809b9860cb
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      controllers/wechat.go

+ 2 - 1
controllers/wechat.go

@@ -481,8 +481,9 @@ func (this *WechatCommonController) Notify() {
 				break
 				break
 			default:
 			default:
 				utils.FileLog.Info("wechat notify event:" + item.Event)
 				utils.FileLog.Info("wechat notify event:" + item.Event)
+				returnResult = xmlTpl
 			}
 			}
-			this.Ctx.WriteString(xmlTpl)
+			this.Ctx.WriteString(returnResult)
 		} else if item.MsgType == "text" {
 		} else if item.MsgType == "text" {
 			textXmlTpl := `<xml>
 			textXmlTpl := `<xml>
 						  <ToUserName><![CDATA[%s]]></ToUserName>
 						  <ToUserName><![CDATA[%s]]></ToUserName>