Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
extend
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
park
extend
Commits
7bbab3c5
Commit
7bbab3c5
authored
Jun 22, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回参数校对
parent
e8c03071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/ToolController.java
+6
-6
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/ToolController.java
View file @
7bbab3c5
...
...
@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
**/
@Slf4j
@RestController
@RequestMapping
(
"/tool"
)
@RequestMapping
(
"/tool"
)
public
class
ToolController
{
@Autowired
SignKeyConfigBean
signKeyConfigBean
;
...
...
@@ -29,8 +29,8 @@ public class ToolController {
* @param plain 明文
* @return
*/
@GetMapping
(
value
=
"encrypt"
)
public
String
encrypt
(
String
plain
)
{
@GetMapping
(
value
=
"encrypt"
)
public
String
encrypt
(
String
plain
)
{
return
EncryptStringAes
.
encryptAes
(
plain
,
signKeyConfigBean
.
getKey
());
}
...
...
@@ -40,8 +40,8 @@ public class ToolController {
* @param cipher 密文
* @return
*/
@
PostMapping
(
value
=
"decrypt"
)
public
String
decrypt
(
String
cipher
)
{
@
GetMapping
(
value
=
"decrypt"
)
public
String
decrypt
(
String
cipher
)
{
return
EncryptStringAes
.
decryptAes
(
cipher
,
signKeyConfigBean
.
getKey
());
}
...
...
@@ -50,7 +50,7 @@ public class ToolController {
*
* @return
*/
@GetMapping
(
value
=
"timestamp"
)
@GetMapping
(
value
=
"timestamp"
)
public
String
timestamp
()
{
return
String
.
valueOf
(
System
.
currentTimeMillis
());
}
...
...
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