Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
5d49a3d7
Commit
5d49a3d7
authored
Jul 23, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)解析表单API中参数
parent
38ebf3a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+13
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
View file @
5d49a3d7
...
@@ -483,6 +483,19 @@ public class DPSubServiceImpl {
...
@@ -483,6 +483,19 @@ public class DPSubServiceImpl {
String
url
=
apiObj
.
getString
(
"apiPath"
);
String
url
=
apiObj
.
getString
(
"apiPath"
);
String
reqType
=
!
ValidationUtil
.
isEmpty
(
apiObj
.
getString
(
"httpMethod"
))
?
apiObj
.
getString
(
"httpMethod"
)
:
"GET"
;
String
reqType
=
!
ValidationUtil
.
isEmpty
(
apiObj
.
getString
(
"httpMethod"
))
?
apiObj
.
getString
(
"httpMethod"
)
:
"GET"
;
Object
params
=
apiObj
.
get
(
"params"
);
Object
params
=
apiObj
.
get
(
"params"
);
if
(
ValidationUtil
.
isEmpty
(
params
)
&&
!
ValidationUtil
.
isEmpty
(
apiObj
.
get
(
"queryParams"
))){
JSONObject
queryParam
=
new
JSONObject
();
JSONArray
queryParams
=
apiObj
.
getJSONArray
(
"queryParams"
);
queryParams
.
stream
().
forEach
(
x
->
{
JSONObject
xObj
=
(
JSONObject
)
x
;
if
(
"staticValue"
.
equals
(
JsonValueUtils
.
getValueByKey
(
x
,
"value"
,
"value.source"
))){
queryParam
.
put
(
xObj
.
getString
(
"name"
),
xObj
.
getJSONObject
(
"value"
).
getString
(
"value"
));
}
});
if
(!
ValidationUtil
.
isEmpty
(
queryParam
)){
params
=
queryParam
;
}
}
Object
body
=
apiObj
.
get
(
"body"
);
Object
body
=
apiObj
.
get
(
"body"
);
ResponseEntity
<
String
>
responseEntity
=
null
;
ResponseEntity
<
String
>
responseEntity
=
null
;
//如果url以/开头,则调用本服务内接口
//如果url以/开头,则调用本服务内接口
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment