忽略
This commit is contained in:
@@ -1,44 +1,44 @@
|
||||
|
||||
/*
|
||||
<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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
<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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user