更新驱动
This commit is contained in:
@@ -41,7 +41,7 @@ namespace COMCMS.Web.Filter
|
||||
}
|
||||
}
|
||||
|
||||
private ReJSON ValiSignature(HttpContext context)
|
||||
private ReJson ValiSignature(HttpContext context)
|
||||
{
|
||||
var Request = context.Request;
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace COMCMS.Web.Filter
|
||||
if (!MySign.CheckSign(pars, signature))
|
||||
{
|
||||
|
||||
return new ReJSON(40004, "signature 错误!");
|
||||
return new ReJson(40004, "signature 错误!");
|
||||
}
|
||||
//判断是否超时
|
||||
string timeStamp = pars["timeStamp"];
|
||||
@@ -85,7 +85,7 @@ namespace COMCMS.Web.Filter
|
||||
DateTime postTime = Utils.StampToDateTime(timeStamp);
|
||||
if (postTime < DateTime.Now.AddSeconds(-120))//30秒有效期
|
||||
{
|
||||
return new ReJSON(40004, "signature 错误!", 1);
|
||||
return new ReJson(40004, "signature 错误!", 1);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user