We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfaec76 commit 4a00bd2Copy full SHA for 4a00bd2
1 file changed
APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/DemoFunction.java
@@ -103,6 +103,11 @@ public static void forceUseable() { // throws UnsupportedOperationException {
103
//Function[]>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
104
105
JSONObject response = new DemoParser(RequestMethod.GET, true).parseResponse(request);
106
+ if (JSONResponse.isSuccess(response) == false) {
107
+ Log.e(TAG, "\n\n\n\n\n !!!! 查询远程函数异常 !!!\n" + response.getString(JSONResponse.KEY_MSG) + "\n\n\n\n\n");
108
+ return;
109
+ }
110
+
111
JSONArray fl = response.getJSONArray("Function[]");
112
if (fl == null || fl.isEmpty()) {
113
Log.d(TAG, "没有可用的远程函数");
0 commit comments