Skip to content

Commit 87f2057

Browse files
authored
Merge pull request #32 from codingapi/3.x
fix RestParam bug
2 parents ff6f570 + 19f75c8 commit 87f2057

File tree

6 files changed

+5
-19
lines changed

6 files changed

+5
-19
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>3.1.5</version>
15+
<version>3.1.6</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>3.1.5</version>
8+
<version>3.1.6</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>3.1.5</version>
8+
<version>3.1.6</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>3.1.5</version>
9+
<version>3.1.6</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>3.1.5</version>
8+
<version>3.1.6</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

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

-14
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 org.springframework.util.LinkedMultiValueMap;
65
import org.springframework.util.MultiValueMap;
@@ -35,19 +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 jsonArray) {
45-
for (Object o : jsonArray) {
46-
if (o instanceof JSONObject jsonObject) {
47-
fetch(jsonObject, builder);
48-
}
49-
}
50-
}
5137
}
5238
}
5339
}

0 commit comments

Comments
 (0)