Skip to content

Commit 78d17ba

Browse files
committed
Server:GET请求新增状态信息;RequestParser遍历多个table只要出错就抛异常到最外层message
1 parent f80ccdc commit 78d17ba

5 files changed

Lines changed: 190 additions & 135 deletions

File tree

APIJSON(Android)/APIJSON(ADT)/APIJSONDemoApp/src/apijson/demo/RequestUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ public static JSONObject newPutRequest(long id) {
5353

5454
return new JSONRequest(data).setTag(User.class.getSimpleName());
5555
}
56-
56+
5757
public static JSONObject newDeleteRequest(long id) {
5858
// 测试necessaryColumns = [id]通过
5959
// 测试对象不存在通过,存在返回success通过
6060
return new JSONRequest(new User(id <= 0 ? 10000 : id)).setTag(User.class.getSimpleName());//;// 测试必须指定tag通过
6161
}
6262

63-
64-
63+
64+
6565

6666
public static JSONObject newSingleRequest(long id) {
6767
return new JSONRequest(new User(id <= 0 ? 38710 : id));

APIJSON(Server)/APIJSON(Eclipse_JEE)/src/main/java/zuo/biao/apijson/server/QueryConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public RequestMethod getMethod() {
7575
return method;
7676
}
7777
public QueryConfig setMethod(RequestMethod method) {
78+
if (method == null) {
79+
method = RequestMethod.GET;
80+
}
7881
this.method = method;
7982
return this;
8083
}

0 commit comments

Comments
 (0)