Commit 9614ad10 authored by 张永's avatar 张永

1

parent 64878728
...@@ -1239,7 +1239,7 @@ public class StringUtil { ...@@ -1239,7 +1239,7 @@ public class StringUtil {
*/ */
public static boolean checkTimeStamp_13(int minute,String timestamp) { public static boolean checkTimeStamp_13(int minute,String timestamp) {
try { try {
//获取当前时间的时间戳 /*//获取当前时间的时间戳
long currentTime = System.currentTimeMillis(); long currentTime = System.currentTimeMillis();
//计算时间戳范围 //计算时间戳范围
...@@ -1255,6 +1255,12 @@ public class StringUtil { ...@@ -1255,6 +1255,12 @@ public class StringUtil {
}else { }else {
//不在有效时间内 //不在有效时间内
return false; return false;
}*/
if(System.currentTimeMillis() - Long.valueOf(timestamp) > (1000 * 60 * 5 )) {
return false;
}else {
return true;
} }
} catch (Exception e) { } catch (Exception e) {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment