|
|
@ -59,11 +59,11 @@ public class PushSystemUsage {
|
|
|
|
System.out.println(output);
|
|
|
|
System.out.println(output);
|
|
|
|
JSONObject outputjson= new JSONObject(output);
|
|
|
|
JSONObject outputjson= new JSONObject(output);
|
|
|
|
if (response.getStatus() != 200 || outputjson ==null || !outputjson.getBoolean("success")) {
|
|
|
|
if (response.getStatus() != 200 || outputjson ==null || !outputjson.getBoolean("success")) {
|
|
|
|
throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
|
|
|
|
// throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e) {
|
|
|
|
catch (Exception e) {
|
|
|
|
throw e;
|
|
|
|
// throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|