Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xzxt-app-report
Commits
ad815608
Commit
ad815608
authored
Feb 27, 2024
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统一访问接口json判断
parent
3668f4d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/main/java/org/springblade/founder/dzbl/controller/TbStAppDzblController.java
+1
-1
src/main/java/org/springblade/founder/forward/controller/ForwardController.java
+4
-4
No files found.
src/main/java/org/springblade/founder/dzbl/controller/TbStAppDzblController.java
View file @
ad815608
...
...
@@ -22,7 +22,7 @@ public class TbStAppDzblController {
@PostMapping
(
"/saveNewDzbl"
)
@LogOper
(
czxxLbdm
=
"02"
,
yymcJyqk
=
"0710"
,
czxxJyqk
=
"新增电子笔录"
)
public
R
saveNewDzbl
(
TbStAppDzbl
dzbl
)
{
public
R
saveNewDzbl
(
@RequestBody
TbStAppDzbl
dzbl
)
{
try
{
String
xxzjbh
=
tbStAppDzblService
.
saveNewDzbl
(
dzbl
);
return
R
.
ok
().
data
(
"xxzjbh"
,
xxzjbh
);
...
...
src/main/java/org/springblade/founder/forward/controller/ForwardController.java
View file @
ad815608
...
...
@@ -19,9 +19,7 @@ import java.io.InputStreamReader;
import
java.net.InetAddress
;
import
java.net.URLDecoder
;
import
java.nio.charset.StandardCharsets
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.*
;
/**
* TODO
...
...
@@ -37,6 +35,8 @@ public class ForwardController {
@RequestMapping
(
"/method"
)
public
R
method
(
HttpServletRequest
request
,
@RequestParam
(
required
=
false
)
String
sjdata
)
{
Set
<
String
>
jsonUrlSet
=
new
HashSet
<>();
jsonUrlSet
.
add
(
"/dzbl/saveNewDzbl"
);
String
url
=
request
.
getHeader
(
"url"
);
if
(
StringUtils
.
isEmpty
(
url
))
{
return
R
.
error
(
"url不能为空"
);
...
...
@@ -86,7 +86,7 @@ public class ForwardController {
headers
.
put
(
"userIp"
,
ip
);
if
(
"post"
.
equalsIgnoreCase
(
type
))
{
String
contentType
=
request
.
getContentType
();
if
(
"application/json"
.
equals
(
contentType
))
{
if
(
"application/json"
.
equals
(
contentType
)
||
jsonUrlSet
.
contains
(
url
)
)
{
try
{
// BufferedReader streamReader = new BufferedReader(new InputStreamReader(request.getInputStream(), StandardCharsets.UTF_8));
// StringBuilder sb = new StringBuilder();
...
...
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