忽略dll文件git

This commit is contained in:
“wanyongkang”
2023-07-29 10:19:42 +08:00
parent 7f97317bcc
commit b562aba2b1
3868 changed files with 63608 additions and 385427 deletions

View File

@@ -1,45 +0,0 @@
/*
<xml>
<AppId>第三方平台appid</AppId>
<CreateTime>1413192760</CreateTime>
<InfoType>authorized</InfoType>
<AuthorizerAppid>公众号appid</AuthorizerAppid>
<AuthorizationCode>授权码code</AuthorizationCode>
<AuthorizationCodeExpiredTime>过期时间</AuthorizationCodeExpiredTime>
</xml>
*/
using System;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 授权成功通知
/// </summary>
public class MessageAuthorized : MessageOpenBase
{
public MessageAuthorized(XDocument doc) : base(doc)
{
this.AuthorizerAppid = doc.Root.Element("AuthorizerAppid").Value;
this.AuthorizationCode = doc.Root.Element("AuthorizationCode").Value;
this.AuthorizationCodeExpiredTime = DateTimeOffset.Parse(doc.Root.Element("AuthorizationCodeExpiredTime").Value);
}
public override RequestInfoType InfoType
{
get { return RequestInfoType.authorized; }
}
/// <summary>
/// 公众号appid
/// </summary>
public string AuthorizerAppid { get; set; }
/// <summary>
/// 授权码code
/// </summary>
public string AuthorizationCode { get; set; }
/// <summary>
/// 过期时间
/// </summary>
public DateTimeOffset AuthorizationCodeExpiredTime { get; set; }
}
}

View File

@@ -1,32 +0,0 @@
using Hncore.Pass.MsgCenter.Constant;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
//<xml>
// <AppId> </AppId>
// <CreateTime>1413192605 </CreateTime>
// <InfoType> </InfoType>
// <ComponentVerifyTicket> </ComponentVerifyTicket>
//</xml>
public class MessageComponentVerifyTicket : MessageOpenBase
{
public MessageComponentVerifyTicket(XDocument doc):base(doc)
{
this.ComponentVerifyTicket = doc.Root.Element("ComponentVerifyTicket").Value;
}
public override RequestInfoType InfoType
{
get { return RequestInfoType.component_verify_ticket; }
}
public string ComponentVerifyTicket { get; set; }
public override async Task<bool> Handler()
{
//把ticket存入redis中
return await RedisHelper.SetAsync(ConstantConfig.Redis_Psipwechat_Ticket_Key, this.ComponentVerifyTicket);
}
}
}

View File

@@ -1,28 +0,0 @@
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 请求消息
/// </summary>
public class MessageOpenBase : IMessageBase
{
public MessageOpenBase(XDocument doc)
{
this.AppId = doc.Root.Element("AppId").Value;
this.CreateTime = long.Parse(doc.Root.Element("CreateTime").Value);
}
public string AppId { get; set; }
public long CreateTime { get; set; }
public virtual RequestInfoType InfoType
{
get { return RequestInfoType.component_verify_ticket; }
}
public virtual async Task<bool> Handler()
{
return true;
}
}
}

View File

@@ -1,70 +0,0 @@
using System;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 注册审核事件推送
/// </summary>
public class MessageThirdFasteRegister : MessageOpenBase
{
public MessageThirdFasteRegister(XDocument doc) : base(doc)
{
}
public override RequestInfoType InfoType
{
get { return RequestInfoType.notify_third_fasteregister; }
}
/// <summary>
/// 创建小程序appid
/// </summary>
public string appid { get; set; }
public string status { get; set; }
/// <summary>
/// 第三方授权码
/// </summary>
public string auth_code { get; set; }
public string msg { get; set; }
/// <summary>
/// 注册时提交的资料
/// </summary>
public info info {get;set;}
}
/// <summary>
/// 注册时提交的资料信息
/// </summary>
public class info
{
/// <summary>
/// 企业名称
/// </summary>
public string name { get; set; }
/// <summary>
/// 企业代码
/// </summary>
public string code { get; set; }
/// <summary>
/// 企业代码类型
/// </summary>
public CodeType code_type { get; set; }
/// <summary>
/// 法人微信号
/// </summary>
public string legal_persona_wechat { get; set; }
/// <summary>
/// 法人姓名
/// </summary>
public string legal_persona_name { get; set; }
/// <summary>
/// 第三方联系电话
/// </summary>
public string component_phone { get; set; }
}
}

View File

@@ -1,44 +0,0 @@
/*
<xml>
<AppId>第三方平台appid</AppId>
<CreateTime>1413192760</CreateTime>
<InfoType>unauthorized</InfoType>
<AuthorizerAppid>公众号appid</AuthorizerAppid>
</xml>
*/
using Hncore.Infrastructure.Common;
using System;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
public class MessageUnauthorized : MessageOpenBase
{
public MessageUnauthorized(XDocument doc) : base(doc)
{
this.AuthorizerAppid = doc.Root.Element("AuthorizerAppid").Value;
}
public override RequestInfoType InfoType
{
get { return RequestInfoType.unauthorized; }
}
public string AuthorizerAppid { get; set; }
public override async Task<bool> Handler()
{
if (!string.IsNullOrEmpty(this.AuthorizerAppid))
{
try
{
}
catch(Exception ex)
{
LogHelper.Error("MessageUnauthorized",ex.Message);
}
}
return false;
}
}
}

View File

@@ -1,36 +0,0 @@
using System;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 授权更新通知
/// </summary>
public class MessageUpdateAuthorized : MessageOpenBase
{
public MessageUpdateAuthorized(XDocument doc) : base(doc)
{
this.AuthorizerAppid = doc.Root.Element("AuthorizerAppid").Value;
this.AuthorizationCode = doc.Root.Element("AuthorizationCode").Value;
this.AuthorizationCodeExpiredTime = DateTimeOffset.Parse(doc.Root.Element("AuthorizationCodeExpiredTime").Value);
}
public override RequestInfoType InfoType
{
get { return RequestInfoType.updateauthorized; }
}
/// <summary>
/// 公众号appid
/// </summary>
public string AuthorizerAppid { get; set; }
/// <summary>
/// 授权码code
/// </summary>
public string AuthorizationCode { get; set; }
/// <summary>
/// 过期时间
/// </summary>
public DateTimeOffset AuthorizationCodeExpiredTime { get; set; }
}
}