| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent da1b21d commit a32d5f4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,6 @@ | |||
| 70 | 70 | import apijson.orm.model.SysColumn; | |
| 71 | 71 | import apijson.orm.model.SysTable; | |
| 72 | 72 | import apijson.orm.model.Table; | |
| 73 | - import apijson.orm.model.Test; | ||
| 74 | 73 | import apijson.orm.model.TestRecord; | |
| 75 | 74 | ||
| 76 | 75 | /**校验器(权限、请求参数、返回结果等) | |
@@ -121,7 +120,6 @@ public abstract class AbstractVerifier<T> implements Verifier<T>, IdCallback { | |||
| 121 | 120 | SYSTEM_ACCESS_MAP.put(Function.class.getSimpleName(), getAccessMap(Function.class.getAnnotation(MethodAccess.class))); | |
| 122 | 121 | SYSTEM_ACCESS_MAP.put(Request.class.getSimpleName(), getAccessMap(Request.class.getAnnotation(MethodAccess.class))); | |
| 123 | 122 | SYSTEM_ACCESS_MAP.put(Response.class.getSimpleName(), getAccessMap(Response.class.getAnnotation(MethodAccess.class))); | |
| 124 | - SYSTEM_ACCESS_MAP.put(Test.class.getSimpleName(), getAccessMap(Test.class.getAnnotation(MethodAccess.class))); | ||
| 125 | 123 | ||
| 126 | 124 | if (Log.DEBUG) { | |
| 127 | 125 | SYSTEM_ACCESS_MAP.put(Table.class.getSimpleName(), getAccessMap(Table.class.getAnnotation(MethodAccess.class))); | |
@@ -724,7 +722,12 @@ public static JSONObject verifyResponse(@NotNull final RequestMethod method, fin | |||
| 724 | 722 | } | |
| 725 | 723 | ||
| 726 | 724 | //解析 | |
| 727 | - return parse(method, name, target, response, database, schema, idKeyCallback, creator, callback != null ? callback : new OnParseCallback() {}); | ||
| 725 | + return parse(method, name, target, response, database, schema, idKeyCallback, creator, callback != null ? callback : new OnParseCallback() { | ||
| 726 | + @Override | ||
| 727 | + protected JSONObject onParseJSONObject(String key, JSONObject tobj, JSONObject robj) throws Exception { | ||
| 728 | + return verifyResponse(method, key, tobj, robj, database, schema, idKeyCallback, creator, callback); | ||
| 729 | + } | ||
| 730 | + }); | ||
| 728 | 731 | } | |
| 729 | 732 | ||
| 730 | 733 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments