From 165388a4b207067b3b30ca187283f8bdd4c3fe8b Mon Sep 17 00:00:00 2001
From: whyclj <1525436766@qq.com>
Date: 星期三, 26 十二月 2018 10:24:46 +0800
Subject: [PATCH] 监测session
---
gx_tieta/src/com/fgkj/actions/User_infAction.java | 12 ++++++++++++
gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/User_infAction.class | 0
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/User_infAction.class b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/User_infAction.class
index e2740b9..789d48e 100644
--- a/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/User_infAction.class
+++ b/gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/User_infAction.class
Binary files differ
diff --git a/gx_tieta/src/com/fgkj/actions/User_infAction.java b/gx_tieta/src/com/fgkj/actions/User_infAction.java
index cb1ab3b..748dcfc 100644
--- a/gx_tieta/src/com/fgkj/actions/User_infAction.java
+++ b/gx_tieta/src/com/fgkj/actions/User_infAction.java
@@ -225,6 +225,18 @@
return SUCCESS;
}
+ public String checkSession() {
+ model = new ServiceModel();
+ Object obj = ActionUtil.getUser();
+ if(obj != null) {
+ model.setCode(1);
+ }else {
+ model.setCode(0);
+ }
+ result = ActionUtil.tojson(model);
+ return SUCCESS;
+ }
+
public String test(){
System.out.println(upjson);
System.out.println(uif);
--
Gitblit v1.9.1