Files
juipnet/Infrastructure/WxApi/Notice/OpenMessage/MessageUnauthorized.cs
“wanyongkang” ed3b2c653e 接口文件
2024-04-10 13:55:27 +08:00

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;
}
}
}