You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
546B

  1. package main
  2. func (ss *openIDSessionData) serveEvents(in InWechatMsg) (processed bool) {
  3. processed = false
  4. e := in.body.(EventMsg)
  5. switch e.Event {
  6. case "subscribe":
  7. in.replyText("/::D, 来啦")
  8. processed = true
  9. onSubscribe(in)
  10. return
  11. case "unsubscribe":
  12. processed = true
  13. in.replyText("")
  14. onUnSubscribe(in)
  15. return
  16. case "SCAN":
  17. case "LOCATION":
  18. processed = true
  19. in.replyText("LOCATION")
  20. case "CLICK":
  21. case "VIEW":
  22. case "TEMPLATESENDJOBFINISH":
  23. processed = true
  24. in.replyText("TEMPLATESENDJOBFINISH")
  25. }
  26. return
  27. }