public abstract class MsgController
extends com.jfinal.core.Controller
构造器和说明 |
---|
MsgController() |
限定符和类型 | 方法和说明 |
---|---|
InMsg |
getInMsg() |
String |
getInMsgXml() |
void |
index()
weixin 公众号服务器调用唯一入口,即在开发者中心输入的 URL 必须要指向此 action
|
protected abstract void |
processInCardPassCheckEvent(InCardPassCheckEvent msg)
审核事件推送
|
protected abstract void |
processInCardPayOrderEvent(InCardPayOrderEvent msg)
券点流水详情事件
|
protected abstract void |
processInCardSkuRemindEvent(InCardSkuRemindEvent msg)
卡券库存报警事件
|
protected abstract void |
processInCustomEvent(InCustomEvent inCustomEvent)
处理接收到的多客服管理事件
|
protected abstract void |
processInEqubindEvent(InEqubindEvent msg)
处理微信硬件绑定和解绑事件
|
protected abstract void |
processInEquDataMsg(InEquDataMsg msg)
处理微信硬件发来数据
|
protected abstract void |
processInFollowEvent(InFollowEvent inFollowEvent)
处理接收到的关注/取消关注事件
|
protected abstract void |
processInImageMsg(InImageMsg inImageMsg)
处理接收到的图片消息
|
protected abstract void |
processInLinkMsg(InLinkMsg inLinkMsg)
处理接收到的链接消息
|
protected abstract void |
processInLocationEvent(InLocationEvent inLocationEvent)
处理接收到的上报地理位置事件
|
protected abstract void |
processInLocationMsg(InLocationMsg inLocationMsg)
处理接收到的地址位置消息
|
protected abstract void |
processInMassEvent(InMassEvent inMassEvent)
处理接收到的群发任务结束时通知事件
|
protected abstract void |
processInMenuEvent(InMenuEvent inMenuEvent)
处理接收到的自定义菜单事件
|
protected abstract void |
processInMerChantOrderEvent(InMerChantOrderEvent inMerChantOrderEvent)
微信小店订单支付成功接口消息
|
protected abstract void |
processInPoiCheckNotifyEvent(InPoiCheckNotifyEvent inPoiCheckNotifyEvent)
门店在审核事件消息
|
protected abstract void |
processInQrCodeEvent(InQrCodeEvent inQrCodeEvent)
处理接收到的扫描带参数二维码事件
|
protected abstract void |
processInShakearoundUserShakeEvent(InShakearoundUserShakeEvent inShakearoundUserShakeEvent)
处理微信摇一摇事件
|
protected abstract void |
processInShortVideoMsg(InShortVideoMsg inShortVideoMsg)
处理接收到的小视频消息
|
protected abstract void |
processInSpeechRecognitionResults(InSpeechRecognitionResults inSpeechRecognitionResults)
处理接收到的语音识别结果
|
protected abstract void |
processInTemplateMsgEvent(InTemplateMsgEvent inTemplateMsgEvent)
处理接收到的模板消息是否送达成功通知事件
|
protected abstract void |
processInTextMsg(InTextMsg inTextMsg)
处理接收到的文本消息
|
protected abstract void |
processInUpdateMemberCardEvent(InUpdateMemberCardEvent inUpdateMemberCardEvent)
微信会员卡积分变更
|
protected abstract void |
processInUserCardEvent(InUserCardEvent inUserCardEvent)
1.
|
protected abstract void |
processInUserConsumeCardEvent(InUserConsumeCardEvent msg)
卡券核销事件推送
|
protected abstract void |
processInUserGetCardEvent(InUserGetCardEvent msg)
卡券领取事件推送
|
protected abstract void |
processInUserGiftingCardEvent(InUserGiftingCardEvent msg)
卡券转赠事件推送
|
protected abstract void |
processInUserPayFromCardEvent(InUserPayFromCardEvent inUserPayFromCardEvent)
微信会员卡快速买单
|
protected abstract void |
processInVerifyFailEvent(InVerifyFailEvent inVerifyFailEvent)
资质认证失败 || 名称认证失败
|
protected abstract void |
processInVerifySuccessEvent(InVerifySuccessEvent inVerifySuccessEvent)
资质认证成功 || 名称认证成功 || 年审通知 || 认证过期失效通知
|
protected abstract void |
processInVideoMsg(InVideoMsg inVideoMsg)
处理接收到的视频消息
|
protected abstract void |
processInVoiceMsg(InVoiceMsg inVoiceMsg)
处理接收到的语音消息
|
protected abstract void |
processInWifiEvent(InWifiEvent inWifiEvent)
WIFI连网后下发消息 by unas at 2016-1-29
|
protected abstract void |
processIsNotDefinedEvent(InNotDefinedEvent inNotDefinedEvent)
没有找到对应的事件消息
|
protected abstract void |
processIsNotDefinedMsg(InNotDefinedMsg inNotDefinedMsg)
没有找到对应的消息
|
void |
render(OutMsg outMsg)
在接收到微信服务器的 InMsg 消息后后响应 OutMsg 消息
|
void |
renderOutTextMsg(String content)
消息输出
|
checkUrlPara, checkUrlPara, createToken, createToken, createToken, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, enhance, forwardAction, getAttr, getAttrForInt, getAttrForStr, getAttrNames, getBean, getBean, getBean, getBean, getCookie, getCookie, getCookieObject, getCookieObjects, getCookieToInt, getCookieToInt, getCookieToLong, getCookieToLong, getFile, getFile, getFile, getFile, getFile, getFiles, getFiles, getFiles, getFiles, getHeader, getModel, getModel, getModel, getModel, getPara, getPara, getPara, getPara, getPara, getParaMap, getParaNames, getParaToBoolean, getParaToBoolean, getParaToBoolean, getParaToBoolean, getParaToBoolean, getParaToDate, getParaToDate, getParaToDate, getParaToInt, getParaToInt, getParaToInt, getParaToInt, getParaToInt, getParaToLong, getParaToLong, getParaToLong, getParaToLong, getParaToLong, getParaValues, getParaValuesToInt, getParaValuesToLong, getRender, getRequest, getResponse, getSession, getSession, getSessionAttr, isParaBlank, isParaBlank, isParaExists, isParaExists, keepBean, keepBean, keepModel, keepModel, keepPara, keepPara, keepPara, keepPara, redirect, redirect, redirect301, redirect301, removeAttr, removeCookie, removeCookie, removeCookie, removeSessionAttr, render, render, render, renderCaptcha, renderError, renderError, renderError, renderFile, renderFile, renderFile, renderFile, renderFreeMarker, renderHtml, renderJavascript, renderJson, renderJson, renderJson, renderJson, renderJson, renderJsp, renderNull, renderQrCode, renderQrCode, renderTemplate, renderText, renderText, renderText, renderToString, renderVelocity, renderXml, setAttr, setAttrs, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setHttpServletRequest, setHttpServletResponse, setSessionAttr, setUrlPara, validateCaptcha, validateToken, validateToken
public void index()
public void render(OutMsg outMsg)
outMsg
- 输出对象public void renderOutTextMsg(String content)
content
- 输出的消息public String getInMsgXml()
public InMsg getInMsg()
protected abstract void processInTextMsg(InTextMsg inTextMsg)
inTextMsg
- 处理接收到的文本消息protected abstract void processInImageMsg(InImageMsg inImageMsg)
inImageMsg
- 处理接收到的图片消息protected abstract void processInVoiceMsg(InVoiceMsg inVoiceMsg)
inVoiceMsg
- 处理接收到的语音消息protected abstract void processInVideoMsg(InVideoMsg inVideoMsg)
inVideoMsg
- 处理接收到的视频消息protected abstract void processInShortVideoMsg(InShortVideoMsg inShortVideoMsg)
inShortVideoMsg
- 处理接收到的小视频消息protected abstract void processInLocationMsg(InLocationMsg inLocationMsg)
inLocationMsg
- 处理接收到的地址位置消息protected abstract void processInLinkMsg(InLinkMsg inLinkMsg)
inLinkMsg
- 处理接收到的链接消息protected abstract void processInCustomEvent(InCustomEvent inCustomEvent)
inCustomEvent
- 处理接收到的多客服管理事件protected abstract void processInFollowEvent(InFollowEvent inFollowEvent)
inFollowEvent
- 处理接收到的关注/取消关注事件protected abstract void processInQrCodeEvent(InQrCodeEvent inQrCodeEvent)
inQrCodeEvent
- 处理接收到的扫描带参数二维码事件protected abstract void processInLocationEvent(InLocationEvent inLocationEvent)
inLocationEvent
- 处理接收到的上报地理位置事件protected abstract void processInMassEvent(InMassEvent inMassEvent)
inMassEvent
- 处理接收到的群发任务结束时通知事件protected abstract void processInMenuEvent(InMenuEvent inMenuEvent)
inMenuEvent
- 处理接收到的自定义菜单事件protected abstract void processInSpeechRecognitionResults(InSpeechRecognitionResults inSpeechRecognitionResults)
inSpeechRecognitionResults
- 处理接收到的语音识别结果protected abstract void processInTemplateMsgEvent(InTemplateMsgEvent inTemplateMsgEvent)
inTemplateMsgEvent
- 处理接收到的模板消息是否送达成功通知事件protected abstract void processInShakearoundUserShakeEvent(InShakearoundUserShakeEvent inShakearoundUserShakeEvent)
inShakearoundUserShakeEvent
- 处理微信摇一摇事件protected abstract void processInVerifySuccessEvent(InVerifySuccessEvent inVerifySuccessEvent)
inVerifySuccessEvent
- 资质认证成功 || 名称认证成功 || 年审通知 || 认证过期失效通知protected abstract void processInVerifyFailEvent(InVerifyFailEvent inVerifyFailEvent)
inVerifyFailEvent
- 资质认证失败 || 名称认证失败protected abstract void processInPoiCheckNotifyEvent(InPoiCheckNotifyEvent inPoiCheckNotifyEvent)
inPoiCheckNotifyEvent
- 门店在审核事件消息protected abstract void processInWifiEvent(InWifiEvent inWifiEvent)
inWifiEvent
- WIFI连网后下发消息protected abstract void processInUserCardEvent(InUserCardEvent inUserCardEvent)
inUserCardEvent
- InUserCardEventprotected abstract void processInUpdateMemberCardEvent(InUpdateMemberCardEvent inUpdateMemberCardEvent)
inUpdateMemberCardEvent
- 微信会员卡积分变更protected abstract void processInUserPayFromCardEvent(InUserPayFromCardEvent inUserPayFromCardEvent)
inUserPayFromCardEvent
- 微信会员卡快速买单protected abstract void processInMerChantOrderEvent(InMerChantOrderEvent inMerChantOrderEvent)
inMerChantOrderEvent
- 微信小店订单支付成功接口消息protected abstract void processIsNotDefinedEvent(InNotDefinedEvent inNotDefinedEvent)
inNotDefinedEvent
- 没有对应的事件消息protected abstract void processIsNotDefinedMsg(InNotDefinedMsg inNotDefinedMsg)
inNotDefinedMsg
- 没有对应消息protected abstract void processInUserGiftingCardEvent(InUserGiftingCardEvent msg)
msg
- 卡券转赠事件推送protected abstract void processInUserGetCardEvent(InUserGetCardEvent msg)
msg
- 卡券领取事件推送protected abstract void processInUserConsumeCardEvent(InUserConsumeCardEvent msg)
msg
- 卡券核销事件推送protected abstract void processInCardSkuRemindEvent(InCardSkuRemindEvent msg)
msg
- 卡券库存报警事件protected abstract void processInCardPayOrderEvent(InCardPayOrderEvent msg)
msg
- 券点流水详情事件protected abstract void processInCardPassCheckEvent(InCardPassCheckEvent msg)
msg
- 审核事件推送protected abstract void processInEqubindEvent(InEqubindEvent msg)
msg
- 处理微信硬件绑定和解绑事件protected abstract void processInEquDataMsg(InEquDataMsg msg)
msg
- 处理微信硬件发来数据Copyright © 2017. All rights reserved.