|
@@ -1006,25 +1006,25 @@ public class Network {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- public static JSONObject delete_editor(String request_url,Bundle params) {
|
|
|
|
|
-
|
|
|
|
|
- if (request_url == null || request_url.isEmpty() || params == null) {
|
|
|
|
|
- return null;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- String json_string = getJson(request_url,params,REQUEST_TIMEOUT);
|
|
|
|
|
-
|
|
|
|
|
- if (json_string == null || json_string.isEmpty()) {
|
|
|
|
|
- json_string = "{\"result\" : \"1\"}";
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- try {
|
|
|
|
|
- return new JSONObject(json_string);
|
|
|
|
|
- } catch (JSONException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- return null;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// public static JSONObject delete_editor(String request_url,Bundle params) {
|
|
|
|
|
+//
|
|
|
|
|
+// if (request_url == null || request_url.isEmpty() || params == null) {
|
|
|
|
|
+// return null;
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// String json_string = getJson(request_url,params,REQUEST_TIMEOUT);
|
|
|
|
|
+//
|
|
|
|
|
+// if (json_string == null || json_string.isEmpty()) {
|
|
|
|
|
+// json_string = "{\"result\" : \"1\"}";
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// try {
|
|
|
|
|
+// return new JSONObject(json_string);
|
|
|
|
|
+// } catch (JSONException e) {
|
|
|
|
|
+// e.printStackTrace();
|
|
|
|
|
+// return null;
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
// public static JSONObject submit_editor(String request_url,Bundle params) {
|
|
// public static JSONObject submit_editor(String request_url,Bundle params) {
|
|
|
//
|
|
//
|
|
|
// if (request_url == null || request_url.isEmpty() || params == null) {
|
|
// if (request_url == null || request_url.isEmpty() || params == null) {
|