Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
26008324
Commit
26008324
authored
Apr 09, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除微信缓存
parent
5f25b397
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
WechatServiceImpl.java
...uantgroup/xyqb/service/wechat/impl/WechatServiceImpl.java
+0
-3
AESUtil.java
src/main/java/cn/quantgroup/xyqb/util/AESUtil.java
+3
-3
No files found.
src/main/java/cn/quantgroup/xyqb/service/wechat/impl/WechatServiceImpl.java
View file @
26008324
...
...
@@ -117,13 +117,11 @@ public class WechatServiceImpl implements IWechatService {
}
@Override
@Cacheable
(
value
=
"WechatUserInfo"
,
key
=
"'openId:' + #openId"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
public
WechatUserInfo
findWechatUserInfoFromDb
(
String
openId
)
{
return
weChatUserRepository
.
findByOpenId
(
openId
);
}
@Override
@CacheEvict
(
value
=
"WechatUserInfo"
,
key
=
"'openId:' + #userInfo.openId"
,
cacheManager
=
"cacheManager"
)
@Transactional
public
WechatUserInfo
saveWechatUserInfo
(
WechatUserInfo
userInfo
)
{
if
(
Objects
.
isNull
(
userInfo
)
||
Objects
.
isNull
(
userInfo
.
getOpenId
())){
...
...
@@ -141,7 +139,6 @@ public class WechatServiceImpl implements IWechatService {
}
@Override
@CacheEvict
(
value
=
"WechatUserInfo"
,
key
=
"'openId:' + #openId"
,
cacheManager
=
"cacheManager"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
int
relateUser
(
Long
userId
,
String
phoneNo
,
String
openId
)
{
if
(
Objects
.
isNull
(
userId
)
||
Objects
.
isNull
(
openId
)
||
StringUtils
.
isBlank
(
openId
)){
...
...
src/main/java/cn/quantgroup/xyqb/util/AESUtil.java
View file @
26008324
...
...
@@ -126,9 +126,9 @@ public class AESUtil {
}
public
static
void
main
(
String
[]
args
){
System
.
out
.
println
(
encryptAndBase64Encode
(
"
21297546
"
,
Constants
.
AES_KEY
));
System
.
out
.
println
(
encryptAndBase64Encode
(
"1861
0277039
"
,
Constants
.
AES_KEY
));
System
.
out
.
println
(
encryptAndBase64Encode
(
"15
010086580
"
,
Constants
.
AES_KEY
));
System
.
out
.
println
(
encryptAndBase64Encode
(
"
45949139
"
,
Constants
.
AES_KEY
));
System
.
out
.
println
(
encryptAndBase64Encode
(
"1861
1428880
"
,
Constants
.
AES_KEY
));
System
.
out
.
println
(
encryptAndBase64Encode
(
"15
810672369
"
,
Constants
.
AES_KEY
));
}
}
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