Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
b7471c50
Commit
b7471c50
authored
Dec 12, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
eeb7f35f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
OpenInterceptor.java
...va/com/egolm/shop/common/interceptor/OpenInterceptor.java
+2
-3
No files found.
src/main/java/com/egolm/shop/common/interceptor/OpenInterceptor.java
View file @
b7471c50
...
@@ -28,7 +28,7 @@ public class OpenInterceptor extends HandlerInterceptorAdapter {
...
@@ -28,7 +28,7 @@ public class OpenInterceptor extends HandlerInterceptorAdapter {
String
encoding
=
"UTF-8"
;
String
encoding
=
"UTF-8"
;
@Autowired
@Autowired
private
RedisTemplate
<
String
,
Object
>
redisTemplate
;
private
RedisTemplate
<
String
,
Object
>
redisTemplate
;
/*签名规则:1.按照参数字段名ASCII码排序;2.参数进行url拼接;3.加上签名字符串secret;4.得到字符串后进行SHA1签名;5.将签名得到的字符串加入参数列表中,字段名为sig*/
/*签名规则:1.按照参数字段名ASCII码排序;2.参数进行url拼接;3.加上签名字符串secret;4.得到字符串后进行SHA1签名;5.将签名得到的字符串加入参数列表中,字段名为sig*/
@Override
@Override
...
@@ -54,9 +54,8 @@ public class OpenInterceptor extends HandlerInterceptorAdapter {
...
@@ -54,9 +54,8 @@ public class OpenInterceptor extends HandlerInterceptorAdapter {
}
}
redisTemplate
.
opsForHash
().
put
(
"SystemCtl1111"
,
"test"
,
"111"
);
redisTemplate
.
opsForHash
().
put
(
"SystemCtl1111"
,
"test"
,
"111"
);
System
.
out
.
println
(
redisTemplate
.
opsForHash
().
get
(
"SystemCtl1111"
,
"test"
));
System
.
out
.
println
(
redisTemplate
.
opsForHash
().
get
(
"SystemCtl1111"
,
"test"
));
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
redisTemplate
.
opsForHash
().
get
(
ShopContstrant
.
SystemCtl_Redis_Base_Key
,
ShopContstrant
.
CLIENT_MD5KEY
);
Map
<
?,
?>
map
=
(
Map
<?,
?
>)
redisTemplate
.
opsForHash
().
get
(
ShopContstrant
.
SystemCtl_Redis_Base_Key
,
ShopContstrant
.
CLIENT_MD5KEY
);
System
.
out
.
println
(
map
);
System
.
out
.
println
(
map
);
if
(
map
!=
null
)
{
if
(
map
!=
null
)
{
parameters
.
put
(
"md5Key"
,
map
.
get
(
"sValue1"
)+
""
);
parameters
.
put
(
"md5Key"
,
map
.
get
(
"sValue1"
)+
""
);
...
...
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