Commit 5d6e8c05 by zhouhaibao

[+]去掉时间戳校验

1 parent 7516440e
...@@ -73,9 +73,9 @@ public class AuthController { ...@@ -73,9 +73,9 @@ public class AuthController {
} }
//验证时间戳 //验证时间戳
long diff = System.currentTimeMillis() - request.getTimestamp().getTime(); long diff = System.currentTimeMillis() - request.getTimestamp().getTime();
if (diff < 0 || diff > 5 * 60 * 1000L) { //if (diff < 0 || diff > 5 * 60 * 1000L) {
throw ResultException.create("请求参数timestamp不在系统允许的范围内"); //throw ResultException.create("请求参数timestamp不在系统允许的范围内");
} //}
//验证secret //验证secret
if ("SM3".equals(request.getGrantType())) { if ("SM3".equals(request.getGrantType())) {
if (!SM3Utils.verify(gatewayService.getSecret(), request.getAppSecret(), gatewayService.getAppKey())) { if (!SM3Utils.verify(gatewayService.getSecret(), request.getAppSecret(), gatewayService.getAppKey())) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!