Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
cb60dbcc
Commit
cb60dbcc
authored
Mar 05, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试流控功能
parent
a874b032
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
base-manager/pom.xml
base-manager/pom.xml
+2
-0
base-manager/src/main/java/com/mortals/xhx/busiz/message/impl/MessageServiceImpl.java
...om/mortals/xhx/busiz/message/impl/MessageServiceImpl.java
+11
-1
No files found.
base-manager/pom.xml
View file @
cb60dbcc
...
...
@@ -244,11 +244,13 @@
<!-- Spring Boot Data Elasticsearch依赖 -->
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
<version>2.7.18</version>
</dependency>
-->
</dependencies>
...
...
base-manager/src/main/java/com/mortals/xhx/busiz/message/impl/MessageServiceImpl.java
View file @
cb60dbcc
...
...
@@ -80,7 +80,17 @@ public class MessageServiceImpl implements MessageService {
messageReq
.
setKey
(
req
.
getPassword
());
messageReq
.
setDecryptContent
(
decryptContent
);
return
messageReq
;
}
else
if
(
"SM4"
.
equalsIgnoreCase
(
req
.
getAlgorithm
()))
{
}
else
if
(
"SM4"
.
equalsIgnoreCase
(
req
.
getAlgorithm
()))
{
String
decryptContent
=
null
;
try
{
decryptContent
=
encryptSM4
(
req
.
getPassword
(),
req
.
getContent
());
}
catch
(
Exception
e
)
{
throw
new
AppException
(
"加密异常"
+
e
.
getMessage
());
}
messageReq
.
setKey
(
req
.
getKey
());
messageReq
.
setDecryptContent
(
decryptContent
);
return
messageReq
;
}
else
if
(
"SM4new"
.
equalsIgnoreCase
(
req
.
getAlgorithm
()))
{
//加密数据 并请求 再解密数据
JSONObject
jsonObject
=
JSON
.
parseObject
(
req
.
getContent
());
JSONObject
bizJson
=
jsonObject
.
getJSONObject
(
"biz_content"
);
...
...
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