mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:13:26 +08:00
添加项目文件。
This commit is contained in:
72
CoreCms.Net.WeChat.Service/Configuration/EventType.cs
Normal file
72
CoreCms.Net.WeChat.Service/Configuration/EventType.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/7/30 14:19:49
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CoreCms.Net.WeChat.Service.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 常见消息类型
|
||||
/// </summary>
|
||||
public static class EventType
|
||||
{
|
||||
|
||||
#region 公众号类型
|
||||
|
||||
/// <summary>
|
||||
/// 关注
|
||||
/// </summary>
|
||||
public const string Subscribe = "subscribe";
|
||||
/// <summary>
|
||||
/// 取消订阅
|
||||
/// </summary>
|
||||
public const string Unsubscribe = "unsubscribe";
|
||||
/// <summary>
|
||||
/// 上报地理位置事件
|
||||
/// 用户同意上报地理位置后,每次进入公众号会话时,都会在进入时上报地理位置,或在进入会话后每5秒上报一次地理位置,公众号可以在公众平台网站中修改以上设置。上报地理位置时,微信会将上报地理位置事件推送到开发者填写的URL。
|
||||
/// </summary>
|
||||
public const string Localtion = "LOCATION";
|
||||
|
||||
/// <summary>
|
||||
/// 自定义菜单事件-用户点击自定义菜单后,微信会把点击事件推送给开发者,请注意,点击菜单弹出子菜单,不会产生上报。
|
||||
/// </summary>
|
||||
public const string Click = "CLICK";
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 小程序
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义交易组件
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 图片消息
|
||||
/// </summary>
|
||||
public const string Image = "image";
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
69
CoreCms.Net.WeChat.Service/Configuration/RequestMsgType.cs
Normal file
69
CoreCms.Net.WeChat.Service/Configuration/RequestMsgType.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/7/30 14:19:49
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CoreCms.Net.WeChat.Service.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 常用常量配置
|
||||
/// </summary>
|
||||
public static class RequestMsgType
|
||||
{
|
||||
// 各种消息类型,除了扫带二维码事件
|
||||
/// <summary>
|
||||
/// 文本消息
|
||||
/// </summary>
|
||||
public const string Text = "text";
|
||||
|
||||
/// <summary>
|
||||
/// 图片消息
|
||||
/// </summary>
|
||||
public const string Image = "image";
|
||||
|
||||
/// <summary>
|
||||
/// 语音消息
|
||||
/// </summary>
|
||||
public const string Voice = "voice";
|
||||
|
||||
/// <summary>
|
||||
/// 视频消息
|
||||
/// </summary>
|
||||
public const string Video = "video";
|
||||
|
||||
/// <summary>
|
||||
/// 小视频消息
|
||||
/// </summary>
|
||||
public const string ShortVideo = "shortvideo";
|
||||
|
||||
/// <summary>
|
||||
/// 地理位置消息
|
||||
/// </summary>
|
||||
public const string Location = "location";
|
||||
|
||||
/// <summary>
|
||||
/// 链接消息
|
||||
/// </summary>
|
||||
public const string Link = "link";
|
||||
|
||||
/// <summary>
|
||||
/// 事件推送消息
|
||||
/// </summary>
|
||||
public const string MessageEvent = "event";
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user