|
@@ -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());
|