This commit is contained in:
2018-11-06 16:36:00 +08:00
parent c5b64d5466
commit df3597792d
2 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ namespace COMCMS.Web.Filter
var notVali = ValiSignature(context.HttpContext);
if (notVali == null)
if (notVali != null)
{
await context.HttpContext.Response.WriteAsync(notVali.ToJson());
}
@@ -74,7 +74,7 @@ namespace COMCMS.Web.Filter
}
//没有签名返回错误
if (string.IsNullOrEmpty(signature))
throw new Exception("signature Is Null");
return new ReJson(40004, "signature 为空!");
if (!MySign.CheckSign(pars, signature))
{