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
640d8353
Commit
640d8353
authored
Aug 16, 2022
by
AfirSraftGarrier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-yx' of
http://120.77.240.215:9701/tianlai3/ioc_sixiang_license
into for-yx
parents
6997a031
cf7965c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ApplyController.java
.../java/iot/sixiang/license/controller/ApplyController.java
+3
-2
UserController.java
...n/java/iot/sixiang/license/controller/UserController.java
+2
-1
No files found.
license/src/main/java/iot/sixiang/license/controller/ApplyController.java
View file @
640d8353
...
@@ -98,9 +98,10 @@ public class ApplyController {
...
@@ -98,9 +98,10 @@ public class ApplyController {
pages
=
pages
+
1
;
pages
=
pages
+
1
;
}
}
List
<
AppVo
>
result
=
records
.
getResult
();
List
<
AppVo
>
result
=
records
.
getResult
();
String
str
=
"n647dBvogC5ps9r0zePShkExRMGyIZlqFUuWNL1Qt8XVja3A"
;
for
(
AppVo
u
:
result
)
{
for
(
AppVo
u
:
result
)
{
u
.
setAppKey
(
DigestUtils
.
md5DigestAsHex
(
u
.
getAppKey
().
getBytes
(
)));
u
.
setAppKey
(
DigestUtils
.
md5DigestAsHex
(
((
str
+
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 @
640d8353
...
@@ -146,8 +146,9 @@ public class UserController {
...
@@ -146,8 +146,9 @@ public class UserController {
pages
=
pages
+
1
;
pages
=
pages
+
1
;
}
}
List
<
UserVo
>
result
=
records
.
getResult
();
List
<
UserVo
>
result
=
records
.
getResult
();
String
str
=
"uBtWZTiPMYkQLsp7rNly3RUIXKGqFbjnSg56H8ve49AC0mfO"
;
for
(
UserVo
u
:
result
)
{
for
(
UserVo
u
:
result
)
{
u
.
setPassword
(
DigestUtils
.
md5DigestAsHex
(
u
.
getPassword
(
).
getBytes
()));
u
.
setPassword
(
DigestUtils
.
md5DigestAsHex
(
(
str
+
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