Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
53206998
Commit
53206998
authored
May 26, 2022
by
Shadow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug
parent
9ff49d29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
core/src/main/java/com/wecloud/im/service/ImClientService.java
+1
-1
core/src/main/java/com/wecloud/im/service/impl/ImClientServiceImpl.java
+8
-2
No files found.
core/src/main/java/com/wecloud/im/service/ImClientService.java
View file @
53206998
...
@@ -123,7 +123,7 @@ public interface ImClientService extends BaseService<ImClient> {
...
@@ -123,7 +123,7 @@ public interface ImClientService extends BaseService<ImClient> {
* @return
* @return
* @throws Exception
* @throws Exception
*/
*/
boolean
deleteImClient
(
Long
id
)
throws
Exception
;
boolean
deleteImClient
(
Long
id
)
;
/**
/**
* 获取分页对象
* 获取分页对象
...
...
core/src/main/java/com/wecloud/im/service/impl/ImClientServiceImpl.java
View file @
53206998
...
@@ -63,6 +63,7 @@ import com.wecloud.im.service.ImClientService;
...
@@ -63,6 +63,7 @@ import com.wecloud.im.service.ImClientService;
import
com.wecloud.im.vo.ClientInfoVo
;
import
com.wecloud.im.vo.ClientInfoVo
;
import
com.wecloud.im.vo.GetInfoListVo
;
import
com.wecloud.im.vo.GetInfoListVo
;
import
com.wecloud.im.vo.MyInfoVo
;
import
com.wecloud.im.vo.MyInfoVo
;
import
com.wecloud.im.ws.utils.RedisUtils
;
import
com.wecloud.utils.SnowflakeUtil
;
import
com.wecloud.utils.SnowflakeUtil
;
/**
/**
...
@@ -94,6 +95,9 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
...
@@ -94,6 +95,9 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
@Autowired
@Autowired
private
ContextService
contextService
;
private
ContextService
contextService
;
@Autowired
private
RedisUtils
redisUtils
;
@Override
@Override
public
MyInfoVo
getMyInfo
()
{
public
MyInfoVo
getMyInfo
()
{
ImClient
currentClient
=
contextService
.
getImClientIfNotNullOrThrow
();
ImClient
currentClient
=
contextService
.
getImClientIfNotNullOrThrow
();
...
@@ -274,7 +278,7 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
...
@@ -274,7 +278,7 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
}
}
@Override
@Override
public
boolean
deleteImClient
(
Long
id
)
throws
Exception
{
public
boolean
deleteImClient
(
Long
id
)
{
return
super
.
removeById
(
id
);
return
super
.
removeById
(
id
);
}
}
...
@@ -395,7 +399,9 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
...
@@ -395,7 +399,9 @@ public class ImClientServiceImpl extends BaseServiceImpl<ImClientMapper, ImClien
throw
new
BusinessException
(
"用户不存在"
);
throw
new
BusinessException
(
"用户不存在"
);
}
}
targetClient
.
setAttributes
(
JSONObject
.
toJSONString
(
attributes
));
targetClient
.
setAttributes
(
JSONObject
.
toJSONString
(
attributes
));
deleteCacheImClient
(
appId
,
userId
);
// 清除client的redis缓存
redisUtils
.
delKey
(
targetClient
.
getId
()
+
""
);
redisUtils
.
delKey
(
targetClient
.
getFkAppid
()
+
targetClient
.
getClientId
());
return
this
.
updateById
(
targetClient
);
return
this
.
updateById
(
targetClient
);
}
}
}
}
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