|
发表于 2014-11-10 09:15:12
|
显示全部楼层
把BIZ\SA\doc\logic\code\src\com\justep\doc\DocAdapter.java下面的这个时间改大点看看
public static String checkSession(String key, String path) throws Exception {
DesUtils des = new DesUtils();
String deKey = des.decrypt(key);
String[] a = deKey.split(",");
if (!Utils.isEmptyString(a[0])) {
a[0] = a[0].replace(":80/", "/");
}
if (!Utils.isEmptyString(path)) {
path = path.replace(":80/", "/");
}
if (Utils.isEmptyString(path) || !path.equals(a[0])) {
throw new DocRTException(DocMessages.SECURITYERROR);
}
long ss = (new java.util.Date().getTime() - Long.valueOf(a[1])) / 1000;
if (ss > 60) {
throw new DocRTException(DocMessages.TIMEOUT);
}
return "";
}
这里 ss如果大于60就超时了 先改成你觉得合适的值 |
|