Ver código fonte

give click events to use in.Reply

master
Patrick Peng Sun 8 anos atrás
pai
commit
6ca1dd78df
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      serveEvents.go

+ 2
- 1
serveEvents.go Ver arquivo

@@ -22,8 +22,8 @@ func (ss *openIDSessionData) serveEvents(in *InWechatMsg) (processed bool) {
in.replyText("")
onLocation(in)
case "CLICK":
in.replyText("")
onClick(ss, in)
in.replyText("") //safeguard
case "VIEW":
in.replyText("VIEW" + e.EventKey)
case "TEMPLATESENDJOBFINISH":
@@ -36,6 +36,7 @@ func (ss *openIDSessionData) serveEvents(in *InWechatMsg) (processed bool) {
// <Status><![CDATA[success]]></Status>
// </xml>
//in.replyText("TEMPLATESENDJOBFINISH")
in.replyText("")
}
return
}

Carregando…
Cancelar
Salvar