这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
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.
 
 
 
 
 
 

1.4 KiB

LINGYUN.Abp.WeChat.Official.Handlers

WeChat Official Account message handling module, providing basic implementation for WeChat Official Account message and event handling.

Features

  • Text message handling
  • Image message handling
  • Voice message handling
  • Video message handling
  • Short video message handling
  • Location message handling
  • Link message handling
  • Subscribe/Unsubscribe event handling
  • QR code scan event handling
  • Location report event handling
  • Custom menu event handling
  • Template message event handling

Module Reference

[DependsOn(typeof(AbpWeChatOfficialHandlersModule))]
public class YouProjectModule : AbpModule
{
  // other
}

Configuration

{
  "WeChat": {
    "Official": {
      "Handlers": {
        "DefaultResponseType": "text",  // Default response type: text/image/voice/video/music/news
        "DefaultResponse": "",          // Default response content
        "EnableDefaultResponse": true   // Whether to enable default response
      }
    }
  }
}

Custom Handlers

To implement custom message handlers, inherit from the corresponding base class:

  • Text message: WeChatOfficialTextMessageHandlerBase
  • Image message: WeChatOfficialImageMessageHandlerBase
  • Voice message: WeChatOfficialVoiceMessageHandlerBase
  • Video message: WeChatOfficialVideoMessageHandlerBase
  • Event message: WeChatOfficialEventMessageHandlerBase

More Documentation