mirror of
https://github.com/CoreUnion/CoreShop.git
synced 2026-10-20 07:38:29 +08:00
cd4c2acb05
2、【后端】因盛派过于臃肿及社区生态质量越来越低下,移除【Senparc】相关组件。启用【SKIT.FlurlHttpClient.Wechat】纯API组件,使交互更加灵活。 3、【后端】移除因依赖【Senparc】相关组件而创建的【CoreCms.Net.WeChatService】类库;增加SKIT.FlurlHttpClient.Wechat相应支撑组件的类库【CoreCms.Net.WeChat.Service】。 4、【后端】移除【sessionIdAuth】返回,直接使用【openId】作为识别码。 5、【接口】增加获取微信【AccessToken】的交互定时任务。 6、【数据库】增加【WeChatAccessToken】表备份数据库及SQL脚本。 8、【接口】增加微信消息推送的实现及事件处理方法,目前只做了用户发送文字信息转发客服,其他可自行进行拓展。
46 lines
1.6 KiB
C#
46 lines
1.6 KiB
C#
/***********************************************************************
|
|
* Project: CoreCms
|
|
* ProjectName: 核心内容管理系统
|
|
* Web: https://www.corecms.net
|
|
* Author: 大灰灰
|
|
* Email: jianweie@163.com
|
|
* CreateTime: 2021/7/29 21:25:51
|
|
* Description: 暂无
|
|
***********************************************************************/
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CoreCms.Net.WeChat.Service.Models
|
|
{
|
|
/// <summary>
|
|
/// 微信公众服务器Post过来的加密参数集合(不包括PostData)
|
|
/// <para>如需使用 NeuChar,需要在 MessageHandler 中提供 PostModel 并设置 AppId</para>
|
|
/// </summary>
|
|
public class PostModel : EncryptPostModel
|
|
{
|
|
public override string DomainId
|
|
{
|
|
get => this.AppId;
|
|
set => this.AppId = value;
|
|
}
|
|
|
|
public string AppId { get; set; }
|
|
|
|
/// <summary>设置服务器内部保密信息</summary>
|
|
/// <param name="token"></param>
|
|
/// <param name="encodingAESKey"></param>
|
|
/// <param name="appId"></param>
|
|
public void SetSecretInfo(string token, string encodingAESKey, string appId)
|
|
{
|
|
this.Token = token;
|
|
this.EncodingAESKey = encodingAESKey;
|
|
this.AppId = appId;
|
|
}
|
|
}
|
|
}
|