Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
e949a165
Commit
e949a165
authored
Mar 17, 2021
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了之前安全防篡改,在第一次提交失败后,第二次在提交报数据篡改的缺陷
parent
292270fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
AbstractCommonController.java
...resentation/noui/controller/AbstractCommonController.java
+6
-1
No files found.
src/main/java/org/sss/presentation/noui/controller/AbstractCommonController.java
View file @
e949a165
...
...
@@ -56,8 +56,9 @@ public abstract class AbstractCommonController {
NoUiContext
context
=
null
;
Result
ret
=
null
;
String
serverEnc
=
null
;
NoUiRequest
noUiRequest
=
null
;
try
{
NoUiRequest
noUiRequest
=
new
NoUiRequest
(
request
,
mappingUrl
,
dataMap
);
noUiRequest
=
new
NoUiRequest
(
request
,
mappingUrl
,
dataMap
);
Alias
alias
=
new
Alias
(
mappingUrl
);
String
trnName
=
alias
.
getTrnName
();
...
...
@@ -177,6 +178,10 @@ public abstract class AbstractCommonController {
String
[]
pars
=
DataSecurityUtil
.
getSafeConfigByReqUrl
(
context
,
noUiRequest
,
noUiRequest
.
getReqUrl
()
+
DataSecurityUtil
.
ENCRYPT_FIX
);
serverEnc
=
DataSecurityUtil
.
encrypt
(
pars
,
noUiRequest
.
getUserId
());
afterReturnData
.
put
(
DataSecurityUtil
.
BACKGROUND_ID
,
serverEnc
);
}
else
if
(!
ErrorCodes
.
SUCCESS
.
equals
(
NoUiPresentationUtil
.
retCode
(
context
))
&&
DataSecurityUtil
.
needDecrypt
(
noUiRequest
.
getReqUrl
())){
String
[]
pars
=
DataSecurityUtil
.
getSafeConfigByReqUrl
(
context
,
noUiRequest
,
noUiRequest
.
getReqUrl
()
+
DataSecurityUtil
.
DECRYPT_FIX
);
serverEnc
=
DataSecurityUtil
.
encrypt
(
pars
,
noUiRequest
.
getUserId
());
afterReturnData
.
put
(
DataSecurityUtil
.
BACKGROUND_ID
,
serverEnc
);
}
}
...
...
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