刘韬 2 年之前
父節點
當前提交
cc6be08a50
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      DataFusion/src/com/zskk/control/ViewController.java

+ 7 - 7
DataFusion/src/com/zskk/control/ViewController.java

@@ -46,16 +46,16 @@ public class ViewController extends Controller {
 	public void testget() {
 		try {
 			Map <String,String> map = new HashMap<String,String>();
-	    	map.put("institution_id", PropKit.get("institution_id"));
+	    	map.put("institution_id", "73090004");
 	    	map.put("num","30");
 			String content = postWithParameters("https://117.156.67.61:9600/butt/getExam", map);
-		    JSONObject jsonObject = JSON.parseObject(content);
-		    if (!jsonObject.getString("msg").equals("success")) {
-//				return null;
-			}
-			JSONArray jsonArray = JSON.parseArray(jsonObject.getString("data"));		
+//		    JSONObject jsonObject = JSON.parseObject(content);
+//		    if (!jsonObject.getString("msg").equals("success")) {
+////				return null;
+//			}
+//			JSONArray jsonArray = JSON.parseArray(jsonObject.getString("data"));		
 //			return jsonArray;
-			this.renderJson(jsonArray);
+			this.renderText(content);
 		} catch (Exception e) {
 			// TODO: handle exception
 			this.renderText(e.toString());