Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
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
quanku
qk_backend
Commits
e56e5d97
Commit
e56e5d97
authored
Dec 11, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录后返回手机号,缓存查询更改为玩物得志接口
parent
615ce4b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ch-core/src/main/java/com/wwdz/ch/core/util/CacheUtil.java
ch-core/src/main/java/com/wwdz/ch/core/util/CacheUtil.java
+8
-8
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
+1
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/util/CacheUtil.java
View file @
e56e5d97
...
@@ -132,11 +132,11 @@ public class CacheUtil {
...
@@ -132,11 +132,11 @@ public class CacheUtil {
* @return
* @return
*/
*/
public
String
getAppletUserList
(
long
key
)
{
public
String
getAppletUserList
(
long
key
)
{
/*
User user = dtsUserDao.findById(key);
User
user
=
dtsUserDao
.
findById
(
key
);
return user.getNickname();
*/
return
user
.
getNickname
();
List
<
User
>
userList
=
dtsUserDao
.
findAll
();
/*
List<User> userList = dtsUserDao.findAll();
Map<Long, String> map = userList.stream().collect(Collectors.toMap(User::getId, User::getNickname, (k1, k2) -> k2));
Map<Long, String> map = userList.stream().collect(Collectors.toMap(User::getId, User::getNickname, (k1, k2) -> k2));
return
map
.
get
(
key
);
return map.get(key);
*/
}
}
/* public String getAppletUserList(long key) {
/* public String getAppletUserList(long key) {
...
@@ -151,11 +151,11 @@ public class CacheUtil {
...
@@ -151,11 +151,11 @@ public class CacheUtil {
* @return
* @return
*/
*/
public
User
getAppletUsers
(
long
key
)
{
public
User
getAppletUsers
(
long
key
)
{
/*
User user = dtsUserDao.findById(key);
User
user
=
dtsUserDao
.
findById
(
key
);
return user;
*/
return
user
;
List
<
User
>
userList
=
dtsUserDao
.
findAll
();
/*
List<User> userList = dtsUserDao.findAll();
Map<Long, User> map = userList.stream().collect(Collectors.toMap(User::getId, Function.identity(), (k1, k2) -> k2));
Map<Long, User> map = userList.stream().collect(Collectors.toMap(User::getId, Function.identity(), (k1, k2) -> k2));
return
map
.
get
(
key
);
return map.get(key);
*/
}
}
/**
/**
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
View file @
e56e5d97
...
@@ -210,6 +210,7 @@ public class UserServiceImpl implements UserService {
...
@@ -210,6 +210,7 @@ public class UserServiceImpl implements UserService {
result
.
put
(
"isInvited"
,
true
);
result
.
put
(
"isInvited"
,
true
);
User
user
=
userDao
.
queryById
(
dto
.
getUserId
());
User
user
=
userDao
.
queryById
(
dto
.
getUserId
());
logger
.
info
(
"登录用户的信息:{}"
,
JsonUtils
.
from
(
user
));
logger
.
info
(
"登录用户的信息:{}"
,
JsonUtils
.
from
(
user
));
result
.
put
(
"phone"
,
user
.
getMobile
());
// 缓存用户信息
// 缓存用户信息
String
userKey
=
MessageFormat
.
format
(
CacheCodeConstants
.
USER_INFO_KEY
,
user
.
getId
());
String
userKey
=
MessageFormat
.
format
(
CacheCodeConstants
.
USER_INFO_KEY
,
user
.
getId
());
redisUtil
.
set
(
userKey
,
user
,
2
*
60
*
60
);
redisUtil
.
set
(
userKey
,
user
,
2
*
60
*
60
);
...
...
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