Skip to content

Commit 01dcc41

Browse files
committed
fix RestParam bug
1 parent a6c86d4 commit 01dcc41

File tree

6 files changed

+5
-21
lines changed

6 files changed

+5
-21
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.codingapi.springboot</groupId>
1414
<artifactId>springboot-parent</artifactId>
15-
<version>2.7.4</version>
15+
<version>2.7.5</version>
1616

1717
<url>https://github.com/codingapi/springboot-framewrok</url>
1818
<name>springboot-parent</name>

springboot-starter-data-fast/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>2.7.4</version>
8+
<version>2.7.5</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-id-generator/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>2.7.4</version>
8+
<version>2.7.5</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-security-jwt/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.7.4</version>
9+
<version>2.7.5</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-security-jwt</artifactId>

springboot-starter/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>springboot-parent</artifactId>
8-
<version>2.7.4</version>
8+
<version>2.7.5</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

springboot-starter/src/main/java/com/codingapi/springboot/framework/rest/param/RestParam.java

-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.codingapi.springboot.framework.rest.param;
22

3-
import com.alibaba.fastjson.JSONArray;
43
import com.alibaba.fastjson.JSONObject;
54
import lombok.SneakyThrows;
65
import org.springframework.util.LinkedMultiValueMap;
@@ -35,21 +34,6 @@ private static void fetch(JSONObject object, RestParam builder) {
3534
Object value = object.getObject(key, Object.class);
3635
if (value != null) {
3736
builder.add(key, value);
38-
39-
if (value instanceof JSONObject) {
40-
JSONObject jsonObject = (JSONObject) value;
41-
fetch(jsonObject, builder);
42-
}
43-
44-
if (value instanceof JSONArray) {
45-
JSONArray jsonArray = (JSONArray) value;
46-
for (Object o : jsonArray) {
47-
if (o instanceof JSONObject) {
48-
JSONObject jsonObject = (JSONObject) o;
49-
fetch(jsonObject, builder);
50-
}
51-
}
52-
}
5337
}
5438
}
5539
}

0 commit comments

Comments
 (0)