This commit is contained in:
“wanyongkang”
2020-12-28 14:55:48 +08:00
parent c2ec7392cb
commit 40a40b6d36
305 changed files with 20629 additions and 20629 deletions

View File

@@ -1,35 +1,35 @@
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 请求消息
/// </summary>
public class MessageMPBase : IMessageBase
{
public MessageMPBase(XDocument doc)
{
this.FromUserName = doc.Root.Element("FromUserName").Value;
this.ToUserName = doc.Root.Element("ToUserName").Value;
this.CreateTime = long.Parse(doc.Root.Element("CreateTime").Value);
}
public string AppId { get; set; }
public string FromUserName { get; set; }
public string ToUserName { 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;
}
}
}
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Hncore.Wx.Open
{
/// <summary>
/// 请求消息
/// </summary>
public class MessageMPBase : IMessageBase
{
public MessageMPBase(XDocument doc)
{
this.FromUserName = doc.Root.Element("FromUserName").Value;
this.ToUserName = doc.Root.Element("ToUserName").Value;
this.CreateTime = long.Parse(doc.Root.Element("CreateTime").Value);
}
public string AppId { get; set; }
public string FromUserName { get; set; }
public string ToUserName { 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;
}
}
}