简化webapi

This commit is contained in:
2018-12-04 21:39:11 +08:00
parent 9fe99a0843
commit fdd55859a8
5 changed files with 100 additions and 55 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ namespace COMCMS.Web.Filter
string timeStamp = pars["timeStamp"];
//判断时间有效性
DateTime postTime = Utils.StampToDateTime(timeStamp);
if (postTime < DateTime.Now.AddSeconds(-120))//30秒有效期
if (postTime < DateTime.UtcNow.AddSeconds(-120))//30秒有效期
{
return new ReJson(40004, "signature 错误!", 1);
}