Skip to content

Commit 25f0bc2

Browse files
committed
Java:升级 APIJSON 和 apijson-framework 分别至 4.4.7 和 4.4.9
1 parent d0dcf08 commit 25f0bc2

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

APIJSON-Java-Server/APIJSONBoot/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.boot</groupId>
77
<artifactId>apijson-boot</artifactId>
8-
<version>4.4.6</version>
8+
<version>4.4.9</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONBoot</name>
@@ -41,12 +41,12 @@
4141
<dependency>
4242
<groupId>com.github.Tencent</groupId>
4343
<artifactId>APIJSON</artifactId>
44-
<version>4.3.1</version>
44+
<version>4.4.7</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>com.github.APIJSON</groupId>
4848
<artifactId>apijson-framework</artifactId>
49-
<version>4.4.6</version>
49+
<version>4.4.9</version>
5050
</dependency>
5151
<!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> -->
5252

APIJSON-Java-Server/APIJSONFinal/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>apijson.jfinal</groupId>
55
<artifactId>apijson-final</artifactId>
66
<packaging>jar</packaging>
7-
<version>4.4.6</version>
7+
<version>4.4.9</version>
88
<name>Demo project for APIJSON Server based on JFinal</name>
99
<url>http://maven.apache.org</url>
1010
<dependencies>
@@ -24,12 +24,12 @@
2424
<dependency>
2525
<groupId>com.github.Tencent</groupId>
2626
<artifactId>APIJSON</artifactId>
27-
<version>4.3.1</version>
27+
<version>4.4.7</version>
2828
</dependency>
2929
<dependency>
3030
<groupId>com.github.APIJSON</groupId>
3131
<artifactId>apijson-framework</artifactId>
32-
<version>4.4.6</version>
32+
<version>4.4.9</version>
3333
</dependency>
3434
<!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> -->
3535

APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoFunctionParser.java

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public DemoFunctionParser(RequestMethod method, String tag, int version, JSONObj
5252
*/
5353
public Object verifyIdList(@NotNull JSONObject current, @NotNull String idList) throws Exception {
5454
Object obj = current.get(idList);
55+
if (obj == null) {
56+
return null;
57+
}
58+
5559
if (obj instanceof Collection == false) {
5660
throw new IllegalArgumentException(idList + " 不符合 Array 类型! 结构必须是 [] !");
5761
}
@@ -74,6 +78,10 @@ public Object verifyIdList(@NotNull JSONObject current, @NotNull String idList)
7478
*/
7579
public Object verifyURLList(@NotNull JSONObject current, @NotNull String urlList) throws Exception {
7680
Object obj = current.get(urlList);
81+
if (obj == null) {
82+
return null;
83+
}
84+
7785
if (obj instanceof Collection == false) {
7886
throw new IllegalArgumentException(urlList + " 不符合 Array 类型! 结构必须是 [] !");
7987
}

0 commit comments

Comments
 (0)