81041
2018-12-26 6ca12d78daab3ad1dec7f5bd6e1f26b6b5fd2f11
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);