From 7d174fc58bcc9c136548c789fbdf350a3c6fe52b Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期四, 15 十一月 2018 13:11:43 +0800
Subject: [PATCH] Merge branch 'dev_lxw' of https://whychdw@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw

---
 gx_tieta/src/com/fgkj/actions/BattInfAction.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/gx_tieta/src/com/fgkj/actions/BattInfAction.java b/gx_tieta/src/com/fgkj/actions/BattInfAction.java
index 5cf8ab1..ee929e1 100644
--- a/gx_tieta/src/com/fgkj/actions/BattInfAction.java
+++ b/gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -379,12 +379,15 @@
 	
 	//璺ㄥ煙璁块棶鑾峰彇鎵�鏈夌數姹犵粍鐨勪俊鎭�<-------璺ㄥ煙----------->
 	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();							//鍏佽璺ㄥ煙璁块棶
+		//System.out.println(key+"@@@@@@@@@@@@@@@@@@@@@@");
+		ServiceModel model = new ServiceModel();
+		if(key != null && CROSS_DOMAIN_KEY.equals(key)){
+			model = service.searchInform_ky();			
+		}else{			
+			model.setCode(0);
+			model.setMsg("璇嗗埆鐮侀敊璇�");
+		}
 		result = ActionUtil.tojson(model);
 		return SUCCESS;
 	}

--
Gitblit v1.9.1