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

1

parent 64878728
......@@ -1239,7 +1239,7 @@ public class StringUtil {
*/
public static boolean checkTimeStamp_13(int minute,String timestamp) {
try {
//获取当前时间的时间戳
/*//获取当前时间的时间戳
long currentTime = System.currentTimeMillis();
//计算时间戳范围
......@@ -1255,6 +1255,12 @@ public class StringUtil {
}else {
//不在有效时间内
return false;
}*/
if(System.currentTimeMillis() - Long.valueOf(timestamp) > (1000 * 60 * 5 )) {
return false;
}else {
return true;
}
} catch (Exception e) {
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