Skip to content

Commit

Permalink
Server: 打包apijson-server2.6.0.jar; DemoFunction. getIdList兼容JDK 7
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Jun 18, 2018
1 parent 705fd94 commit c2fa7d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

package apijson.demo.server;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

Expand Down Expand Up @@ -92,11 +93,11 @@ public static Object invoke(JSONObject request, String function) throws Exceptio

/**TODO 仅用来测试 "key-()":"getIdList()" 和 "key()":"getIdList()"
* @param request
* @return
* @return JSONArray 只能用JSONArray,用long[]会在SQLConfig解析崩溃
* @throws Exception
*/
public JSONArray getIdList(@NotNull JSONObject request) throws Exception {
return new JSONArray(Arrays.asList(12, 15, 301, 82001, 82002, 38710)); //只能用JSONArray,用long[]会在SQLConfig解析崩溃
return new JSONArray(new ArrayList<Object>(Arrays.asList(12, 15, 301, 82001, 82002, 38710)));
}

/**TODO 仅用来测试 "key-()":"verifyAccess()"
Expand Down

0 comments on commit c2fa7d9

Please sign in to comment.