com.jfinal.weixin.sdk.jfinal

## 类 MsgController

- java.lang.Object
- - com.jfinal.core.Controller
  - - com.jfinal.weixin.sdk.jfinal.MsgController

- 直接已知子类:
    MsgControllerAdapter

      public abstract class MsgController
      extends com.jfinal.core.Controller

  接收微信服务器消息，自动解析成 InMsg 并分发到相应的处理方法

- - ### 构造器概要

    构造器
    构造器和说明
    `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)` 消息输出

    - ### 从类继承的方法 com.jfinal.core.Controller

      `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`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### MsgController

          public MsgController()

  - ### 方法详细资料

    - #### index

          public void index()

      weixin 公众号服务器调用唯一入口，即在开发者中心输入的 URL 必须要指向此 action

    - #### render

          public void render(OutMsg outMsg)

      在接收到微信服务器的 InMsg 消息后后响应 OutMsg 消息
      参数:
        `outMsg` - 输出对象

    - #### renderOutTextMsg

          public void renderOutTextMsg(String content)

      消息输出
      参数:
        `content` - 输出的消息

    - #### getInMsgXml

          public String getInMsgXml()

    - #### getInMsg

          public InMsg getInMsg()

    - #### processInTextMsg

          protected abstract void processInTextMsg(InTextMsg inTextMsg)

      处理接收到的文本消息
      参数:
        `inTextMsg` - 处理接收到的文本消息

    - #### processInImageMsg

          protected abstract void processInImageMsg(InImageMsg inImageMsg)

      处理接收到的图片消息
      参数:
        `inImageMsg` - 处理接收到的图片消息

    - #### processInVoiceMsg

          protected abstract void processInVoiceMsg(InVoiceMsg inVoiceMsg)

      处理接收到的语音消息
      参数:
        `inVoiceMsg` - 处理接收到的语音消息

    - #### processInVideoMsg

          protected abstract void processInVideoMsg(InVideoMsg inVideoMsg)

      处理接收到的视频消息
      参数:
        `inVideoMsg` - 处理接收到的视频消息

    - #### processInShortVideoMsg

          protected abstract void processInShortVideoMsg(InShortVideoMsg inShortVideoMsg)

      处理接收到的小视频消息
      参数:
        `inShortVideoMsg` - 处理接收到的小视频消息

    - #### processInLocationMsg

          protected abstract void processInLocationMsg(InLocationMsg inLocationMsg)

      处理接收到的地址位置消息
      参数:
        `inLocationMsg` - 处理接收到的地址位置消息

    - #### processInLinkMsg

          protected abstract void processInLinkMsg(InLinkMsg inLinkMsg)

      处理接收到的链接消息
      参数:
        `inLinkMsg` - 处理接收到的链接消息

    - #### processInCustomEvent

          protected abstract void processInCustomEvent(InCustomEvent inCustomEvent)

      处理接收到的多客服管理事件
      参数:
        `inCustomEvent` - 处理接收到的多客服管理事件

    - #### processInFollowEvent

          protected abstract void processInFollowEvent(InFollowEvent inFollowEvent)

      处理接收到的关注/取消关注事件
      参数:
        `inFollowEvent` - 处理接收到的关注/取消关注事件

    - #### processInQrCodeEvent

          protected abstract void processInQrCodeEvent(InQrCodeEvent inQrCodeEvent)

      处理接收到的扫描带参数二维码事件
      参数:
        `inQrCodeEvent` - 处理接收到的扫描带参数二维码事件

    - #### processInLocationEvent

          protected abstract void processInLocationEvent(InLocationEvent inLocationEvent)

      处理接收到的上报地理位置事件
      参数:
        `inLocationEvent` - 处理接收到的上报地理位置事件

    - #### processInMassEvent

          protected abstract void processInMassEvent(InMassEvent inMassEvent)

      处理接收到的群发任务结束时通知事件
      参数:
        `inMassEvent` - 处理接收到的群发任务结束时通知事件

    - #### processInMenuEvent

          protected abstract void processInMenuEvent(InMenuEvent inMenuEvent)

      处理接收到的自定义菜单事件
      参数:
        `inMenuEvent` - 处理接收到的自定义菜单事件

    - #### processInSpeechRecognitionResults

          protected abstract void processInSpeechRecognitionResults(InSpeechRecognitionResults inSpeechRecognitionResults)

      处理接收到的语音识别结果
      参数:
        `inSpeechRecognitionResults` - 处理接收到的语音识别结果

    - #### processInTemplateMsgEvent

          protected abstract void processInTemplateMsgEvent(InTemplateMsgEvent inTemplateMsgEvent)

      处理接收到的模板消息是否送达成功通知事件
      参数:
        `inTemplateMsgEvent` - 处理接收到的模板消息是否送达成功通知事件

    - #### processInShakearoundUserShakeEvent

          protected abstract void processInShakearoundUserShakeEvent(InShakearoundUserShakeEvent inShakearoundUserShakeEvent)

      处理微信摇一摇事件
      参数:
        `inShakearoundUserShakeEvent` - 处理微信摇一摇事件

    - #### processInVerifySuccessEvent

          protected abstract void processInVerifySuccessEvent(InVerifySuccessEvent inVerifySuccessEvent)

      资质认证成功 || 名称认证成功 || 年审通知 || 认证过期失效通知
      参数:
        `inVerifySuccessEvent` - 资质认证成功 || 名称认证成功 || 年审通知 || 认证过期失效通知

    - #### processInVerifyFailEvent

          protected abstract void processInVerifyFailEvent(InVerifyFailEvent inVerifyFailEvent)

      资质认证失败 || 名称认证失败
      参数:
        `inVerifyFailEvent` - 资质认证失败 || 名称认证失败

    - #### processInPoiCheckNotifyEvent

          protected abstract void processInPoiCheckNotifyEvent(InPoiCheckNotifyEvent inPoiCheckNotifyEvent)

      门店在审核事件消息
      参数:
        `inPoiCheckNotifyEvent` - 门店在审核事件消息

    - #### processInWifiEvent

          protected abstract void processInWifiEvent(InWifiEvent inWifiEvent)

      WIFI连网后下发消息 by unas at 2016-1-29
      参数:
        `inWifiEvent` - WIFI连网后下发消息

    - #### processInUserCardEvent

          protected abstract void processInUserCardEvent(InUserCardEvent inUserCardEvent)

      1. 微信会员卡二维码扫描领取接口 2. 微信会员卡激活接口 3. 卡券删除事件推送 4. 从卡券进入公众号会话事件推送
      参数:
        `inUserCardEvent` - InUserCardEvent

    - #### processInUpdateMemberCardEvent

          protected abstract void processInUpdateMemberCardEvent(InUpdateMemberCardEvent inUpdateMemberCardEvent)

      微信会员卡积分变更
      参数:
        `inUpdateMemberCardEvent` - 微信会员卡积分变更

    - #### processInUserPayFromCardEvent

          protected abstract void processInUserPayFromCardEvent(InUserPayFromCardEvent inUserPayFromCardEvent)

      微信会员卡快速买单
      参数:
        `inUserPayFromCardEvent` - 微信会员卡快速买单

    - #### processInMerChantOrderEvent

          protected abstract void processInMerChantOrderEvent(InMerChantOrderEvent inMerChantOrderEvent)

      微信小店订单支付成功接口消息
      参数:
        `inMerChantOrderEvent` - 微信小店订单支付成功接口消息

    - #### processIsNotDefinedEvent

          protected abstract void processIsNotDefinedEvent(InNotDefinedEvent inNotDefinedEvent)

      没有找到对应的事件消息
      参数:
        `inNotDefinedEvent` - 没有对应的事件消息

    - #### processIsNotDefinedMsg

          protected abstract void processIsNotDefinedMsg(InNotDefinedMsg inNotDefinedMsg)

      没有找到对应的消息
      参数:
        `inNotDefinedMsg` - 没有对应消息

    - #### processInUserGiftingCardEvent

          protected abstract void processInUserGiftingCardEvent(InUserGiftingCardEvent msg)

      卡券转赠事件推送
      参数:
        `msg` - 卡券转赠事件推送

    - #### processInUserGetCardEvent

          protected abstract void processInUserGetCardEvent(InUserGetCardEvent msg)

      卡券领取事件推送
      参数:
        `msg` - 卡券领取事件推送

    - #### processInUserConsumeCardEvent

          protected abstract void processInUserConsumeCardEvent(InUserConsumeCardEvent msg)

      卡券核销事件推送
      参数:
        `msg` - 卡券核销事件推送

    - #### processInCardSkuRemindEvent

          protected abstract void processInCardSkuRemindEvent(InCardSkuRemindEvent msg)

      卡券库存报警事件
      参数:
        `msg` - 卡券库存报警事件

    - #### processInCardPayOrderEvent

          protected abstract void processInCardPayOrderEvent(InCardPayOrderEvent msg)

      券点流水详情事件
      参数:
        `msg` - 券点流水详情事件

    - #### processInCardPassCheckEvent

          protected abstract void processInCardPassCheckEvent(InCardPassCheckEvent msg)

      审核事件推送
      参数:
        `msg` - 审核事件推送

    - #### processInEqubindEvent

          protected abstract void processInEqubindEvent(InEqubindEvent msg)

      处理微信硬件绑定和解绑事件
      参数:
        `msg` - 处理微信硬件绑定和解绑事件

    - #### processInEquDataMsg

          protected abstract void processInEquDataMsg(InEquDataMsg msg)

      处理微信硬件发来数据
      参数:
        `msg` - 处理微信硬件发来数据

Copyright © 2017. All rights reserved.