81041
2018-11-20 680fa8d2c3fd3d509fa2832a983afab8d2b4cd25
gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -379,12 +379,9 @@
   
   //跨域访问获取所有电池组的信息<-------跨域----------->
   public String searchInform_ky(){
      HttpServletResponse res = ActionUtil.getResponse();
      res.setHeader("Access-Control-Allow-Origin", "*");            //允许跨域访问
      res.setHeader("Access-Control-Allow-Headers", "X-Requested-With,content-type,token");
      res.setHeader("Access-Control-Allow-Methods", "GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH");
      ServiceModel model;
      model = service.searchInform_ky();
      isAllowHeaders();                     //允许跨域访问
      ServiceModel model = new ServiceModel();
      model = service.searchInform_ky();
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }