package main func (ss *openIDSessionData) serveEvents(in* InWechatMsg) (processed bool) { processed = true e := in.body.(EventMsg) switch e.Event { case "subscribe": in.replyText("/::D, 来啦") onSubscribe(in) return case "unsubscribe": in.replyText("") onUnSubscribe(in) return case "pic_photo_or_album": in.replyText("上传图片") case "scancode_waitmsg": in.replyText("scancode_waitmsg/" + e.EventKey) case "SCAN": in.replyText("SCAN/" + e.EventKey) case "LOCATION": in.replyText("") onLocation(in) case "CLICK": in.replyText("") onClick(in) case "VIEW": in.replyText("CLICK" + e.EventKey) case "TEMPLATESENDJOBFINISH": // // // 1499150186 // // // 414001772 // // //in.replyText("TEMPLATESENDJOBFINISH") } return }