忽略dll文件git
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace Hncore.Infrastructure.OpenApi
|
||||
{
|
||||
public class OpenApiRequestBase
|
||||
{
|
||||
[JsonProperty("appid")]
|
||||
public string AppId { get; set; }
|
||||
|
||||
[JsonProperty("timestamp")]
|
||||
public long? Timestamp { get; set; }
|
||||
|
||||
[JsonProperty("sign")]
|
||||
public string Sign { get; set; }
|
||||
|
||||
public void CheckSign(string key)
|
||||
{
|
||||
var sign = OpenApiSignUtil.CreateSign(this.Timestamp.ToLong(), key);
|
||||
|
||||
if (!String.Equals(sign, Sign, StringComparison.CurrentCultureIgnoreCase))
|
||||
{
|
||||
OpenApiException.Throw(OpenApiReturnCode.SignError);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user