Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
cloud-backend
Commits
276d7302
Commit
276d7302
authored
Apr 08, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.0
parent
ad4701b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
api-server/src/main/java/com/zq/api/form/ApiForm.java
+10
-6
No files found.
api-server/src/main/java/com/zq/api/form/ApiForm.java
View file @
276d7302
...
...
@@ -40,7 +40,11 @@ public class ApiForm {
private
ApiTokenVo
apiTokenVo
;
public
JSONObject
getBizContentJson
()
{
return
JSON
.
parseObject
(
bizContent
);
JSONObject
object
=
JSON
.
parseObject
(
bizContent
);
if
(
object
==
null
)
{
return
new
JSONObject
();
}
return
object
;
}
/**
...
...
@@ -143,8 +147,8 @@ public class ApiForm {
*
* @return
*/
public
Map
<
String
,
Object
>
getParamsMap
(
boolean
isSet
App
UserId
)
{
return
getParamsMap
(
isSet
App
UserId
,
null
);
public
Map
<
String
,
Object
>
getParamsMap
(
boolean
isSetUserId
)
{
return
getParamsMap
(
isSetUserId
,
null
);
}
/**
...
...
@@ -152,11 +156,11 @@ public class ApiForm {
*
* @return
*/
public
Map
<
String
,
Object
>
getParamsMap
(
boolean
isSet
App
UserId
,
String
key
)
{
public
Map
<
String
,
Object
>
getParamsMap
(
boolean
isSetUserId
,
String
key
)
{
JSONObject
json
=
getBizContentJson
();
Map
<
String
,
Object
>
innerMap
=
json
.
getInnerMap
();
innerMap
.
put
(
"token"
,
getToken
());
if
(
isSet
App
UserId
)
{
if
(
isSetUserId
)
{
if
(
StringUtils
.
isBlank
(
key
))
{
innerMap
.
put
(
"userId"
,
userId
);
}
else
{
...
...
@@ -182,7 +186,7 @@ public class ApiForm {
bizContent
=
ApiUtils
.
decode
(
bizContent
);
}
}
catch
(
UnsupportedEncodingException
e
)
{
log
.
error
(
"
p
参数解析失败"
,
e
);
log
.
error
(
"
bizContent
参数解析失败"
,
e
);
}
treeMap
.
put
(
"bizContent"
,
bizContent
);
...
...
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