From 35fefed0792c40cb99b8d15fa5811bbb5992bff9 Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期一, 21 一月 2019 10:42:24 +0800 Subject: [PATCH] 修改 --- gx_tieta/src/com/fgkj/actions/User_infAction.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/gx_tieta/src/com/fgkj/actions/User_infAction.java b/gx_tieta/src/com/fgkj/actions/User_infAction.java index 1b732d0..748dcfc 100644 --- a/gx_tieta/src/com/fgkj/actions/User_infAction.java +++ b/gx_tieta/src/com/fgkj/actions/User_infAction.java @@ -1,5 +1,7 @@ package com.fgkj.actions; +import java.text.SimpleDateFormat; +import java.util.Date; import java.util.List; import com.fgkj.dao.UinfDaoFactory; @@ -212,6 +214,29 @@ public String checkService(){ return SUCCESS; } + + //鑾峰彇鏈嶅姟鍣ㄧ殑鏃堕棿 + public String searchServerTime(){ + ServiceModel model = new ServiceModel(); + model.setCode(1); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + model.setMsg(sdf.format(new Date())); + result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model); + 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