Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
f8633e15
Commit
f8633e15
authored
Aug 05, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决敏感信息泄漏-两个列表
parent
f2518ab7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
ApplyController.java
.../java/iot/sixiang/license/controller/ApplyController.java
+4
-0
UserController.java
...n/java/iot/sixiang/license/controller/UserController.java
+4
-0
No files found.
license/src/main/java/iot/sixiang/license/controller/ApplyController.java
View file @
f8633e15
...
@@ -18,6 +18,7 @@ import iot.sixiang.license.model.vo.AppVo;
...
@@ -18,6 +18,7 @@ import iot.sixiang.license.model.vo.AppVo;
import
iot.sixiang.license.service.ApplyService
;
import
iot.sixiang.license.service.ApplyService
;
import
iot.sixiang.license.xss.XssUtil
;
import
iot.sixiang.license.xss.XssUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.DigestUtils
;
import
org.springframework.web.bind.WebDataBinder
;
import
org.springframework.web.bind.WebDataBinder
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -97,6 +98,9 @@ public class ApplyController {
...
@@ -97,6 +98,9 @@ public class ApplyController {
pages
=
pages
+
1
;
pages
=
pages
+
1
;
}
}
List
<
AppVo
>
result
=
records
.
getResult
();
List
<
AppVo
>
result
=
records
.
getResult
();
for
(
AppVo
u
:
result
)
{
u
.
setAppKey
(
DigestUtils
.
md5DigestAsHex
(
u
.
getAppKey
().
getBytes
()));
}
return
new
PageResult
(
200
,
"查找成功"
,
pageNo
,
pages
,
total
,
result
);
return
new
PageResult
(
200
,
"查找成功"
,
pageNo
,
pages
,
total
,
result
);
}
}
}
}
\ No newline at end of file
license/src/main/java/iot/sixiang/license/controller/UserController.java
View file @
f8633e15
...
@@ -19,6 +19,7 @@ import iot.sixiang.license.service.UserService;
...
@@ -19,6 +19,7 @@ import iot.sixiang.license.service.UserService;
import
iot.sixiang.license.util.CommonUtil
;
import
iot.sixiang.license.util.CommonUtil
;
import
iot.sixiang.license.xss.XssUtil
;
import
iot.sixiang.license.xss.XssUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.DigestUtils
;
import
org.springframework.web.bind.WebDataBinder
;
import
org.springframework.web.bind.WebDataBinder
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -145,6 +146,9 @@ public class UserController {
...
@@ -145,6 +146,9 @@ public class UserController {
pages
=
pages
+
1
;
pages
=
pages
+
1
;
}
}
List
<
UserVo
>
result
=
records
.
getResult
();
List
<
UserVo
>
result
=
records
.
getResult
();
for
(
UserVo
u
:
result
)
{
u
.
setPassword
(
DigestUtils
.
md5DigestAsHex
(
u
.
getPassword
().
getBytes
()));
}
return
new
PageResult
(
200
,
"查找成功"
,
pageNo
,
pages
,
total
,
result
);
return
new
PageResult
(
200
,
"查找成功"
,
pageNo
,
pages
,
total
,
result
);
}
}
}
}
...
...
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