记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
49ea3e53
Commit
49ea3e53
authored
Jul 30, 2021
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单请求加密增加日志
parent
a7860f8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
DecryptAndVerifyAspect.java
...net/service/base/codec/aspect/DecryptAndVerifyAspect.java
+3
-0
No files found.
liquidnet-bus-common/liquidnet-common-service-base/src/main/java/com/liquidnet/service/base/codec/aspect/DecryptAndVerifyAspect.java
View file @
49ea3e53
package
com
.
liquidnet
.
service
.
base
.
codec
.
aspect
;
package
com
.
liquidnet
.
service
.
base
.
codec
.
aspect
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.base.codec.annotation.DecryptAndVerify
;
import
com.liquidnet.service.base.codec.annotation.DecryptAndVerify
;
import
com.liquidnet.service.base.codec.exception.DecryptAndVerifyException
;
import
com.liquidnet.service.base.codec.exception.DecryptAndVerifyException
;
import
com.liquidnet.service.base.codec.util.CodecUtil
;
import
com.liquidnet.service.base.codec.util.CodecUtil
;
...
@@ -42,7 +43,9 @@ public class DecryptAndVerifyAspect {
...
@@ -42,7 +43,9 @@ public class DecryptAndVerifyAspect {
if
(
encryptedReq
==
null
)
{
if
(
encryptedReq
==
null
)
{
throw
new
DecryptAndVerifyException
(
joinPoint
.
getSignature
().
getName
()
+
",参数中无待解密类"
);
throw
new
DecryptAndVerifyException
(
joinPoint
.
getSignature
().
getName
()
+
",参数中无待解密类"
);
}
}
log
.
info
(
"DecryptAndVerifyAspect 解密前 下单request:{}"
,
JsonUtils
.
toJson
(
encryptedReq
));
String
decryptedData
=
decryptAndVerify
(
encryptedReq
);
String
decryptedData
=
decryptAndVerify
(
encryptedReq
);
log
.
info
(
"DecryptAndVerifyAspect 解密后 下单request:{}"
,
decryptedData
);
MethodSignature
methodSignature
=
(
MethodSignature
)
joinPoint
.
getSignature
();
MethodSignature
methodSignature
=
(
MethodSignature
)
joinPoint
.
getSignature
();
DecryptAndVerify
annotation
=
methodSignature
.
getMethod
().
getAnnotation
(
DecryptAndVerify
.
class
);
DecryptAndVerify
annotation
=
methodSignature
.
getMethod
().
getAnnotation
(
DecryptAndVerify
.
class
);
if
(
annotation
==
null
||
annotation
.
decryptedClass
()
==
null
)
{
if
(
annotation
==
null
||
annotation
.
decryptedClass
()
==
null
)
{
...
...
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