GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Server: 打包apijson-server2.6.0.jar; DemoFunction. getIdList兼容JDK 7 · anke522/APIJSON@c2fa7d9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • APIJSON-Java-Server/APIJSONDemo
    • libs
      • apijson-server2.6.0.jar
    • src/main/java/apijson/demo/server
      • DemoFunction.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎…APIJSONDemo/libs/apijson-server2.5.7.jar‎ ‎…APIJSONDemo/libs/apijson-server2.6.0.jar‎APIJSON-Java-Server/APIJSONDemo/libs/apijson-server2.5.7.jar renamed to APIJSON-Java-Server/APIJSONDemo/libs/apijson-server2.6.0.jar APIJSON-Java-Server/APIJSONDemo/libs/apijson-server2.5.7.jar renamed to APIJSON-Java-Server/APIJSONDemo/libs/apijson-server2.6.0.jar

Copy file name to clipboard
191 KB
Binary file not shown.
Collapse file

‎APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/DemoFunction.java‎

Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/DemoFunction.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package apijson.demo.server;
1616

17+
import java.util.ArrayList;
1718
import java.util.Arrays;
1819
import java.util.List;
1920

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

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

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

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.