45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
|
|
/*
|
|
<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;
|
|
}
|
|
}
|
|
}
|