mirror of
https://github.com/CoreUnion/CoreShop.git
synced 2026-10-20 15:51:28 +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、【接口】增加微信消息推送的实现及事件处理方法,目前只做了用户发送文字信息转发客服,其他可自行进行拓展。
54 lines
1.9 KiB
C#
54 lines
1.9 KiB
C#
/***********************************************************************
|
|
* Project: CoreCms
|
|
* ProjectName: 核心内容管理系统
|
|
* Web: https://www.corecms.net
|
|
* Author: 大灰灰
|
|
* Email: jianweie@163.com
|
|
* CreateTime: 2021/7/29 21:25:25
|
|
* Description: 暂无
|
|
***********************************************************************/
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CoreCms.Net.WeChat.Service.Models
|
|
{
|
|
/// <summary>接收加密信息统一基类(同时也支持非加密信息)</summary>
|
|
public abstract class EncryptPostModel : IEncryptPostModel
|
|
{
|
|
/// <summary>指定当前服务账号的唯一领域定义(主要为 APM 服务),例如 AppId</summary>
|
|
public abstract string DomainId { get; set; }
|
|
|
|
/// <summary>Signature</summary>
|
|
public string Signature { get; set; }
|
|
|
|
/// <summary>Msg_Signature</summary>
|
|
public string Msg_Signature { get; set; }
|
|
|
|
/// <summary>Timestamp</summary>
|
|
public string Timestamp { get; set; }
|
|
|
|
/// <summary>Nonce</summary>
|
|
public string Nonce { get; set; }
|
|
|
|
/// <summary>Token</summary>
|
|
public string Token { get; set; }
|
|
|
|
/// <summary>EncodingAESKey</summary>
|
|
public string EncodingAESKey { get; set; }
|
|
|
|
/// <summary>设置服务器内部保密信息</summary>
|
|
/// <param name="token"></param>
|
|
/// <param name="encodingAESKey"></param>
|
|
public virtual void SetSecretInfo(string token, string encodingAESKey)
|
|
{
|
|
this.Token = token;
|
|
this.EncodingAESKey = encodingAESKey;
|
|
}
|
|
}
|
|
}
|