Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-communication
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
xingmin
yd-communication
Commits
f288de27
Commit
f288de27
authored
Aug 11, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
3d633364
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
yd-communication-api/src/main/java/com/yd/communication/api/service/impl/ApiCoSessionServiceImpl.java
+5
-5
No files found.
yd-communication-api/src/main/java/com/yd/communication/api/service/impl/ApiCoSessionServiceImpl.java
View file @
f288de27
...
...
@@ -65,7 +65,7 @@ public class ApiCoSessionServiceImpl implements ApiCoSessionService {
@Resource
private
ApiOssFeignClient
apiOssFeignClient
;
@Value
(
"${co.room.base-url:https://
default-domain.com/co/join
}"
)
@Value
(
"${co.room.base-url:https://
mdev.zuihuibi.cn/repotKYC/#/pages/launch/index?visitType=1&targetPage=showcasePage
}"
)
private
String
roomBaseUrl
;
@Resource
...
...
@@ -238,7 +238,7 @@ public class ApiCoSessionServiceImpl implements ApiCoSessionService {
}
// 2. 构建房间链接(从配置读取)
String
roomLink
=
roomBaseUrl
+
"
?
roomId="
+
session
.
getRoomId
()
+
"&pwd="
+
session
.
getRoomPwd
();
String
roomLink
=
roomBaseUrl
+
"
&
roomId="
+
session
.
getRoomId
()
+
"&pwd="
+
session
.
getRoomPwd
();
log
.
info
(
"【创建会话】生成房间链接: {}"
,
roomLink
);
// 3. 生成二维码图片字节数组(PNG格式)
...
...
@@ -335,7 +335,7 @@ public class ApiCoSessionServiceImpl implements ApiCoSessionService {
joinResponse
.
setSessionBizId
(
session
.
getCoSessionBizId
());
// 获取资源所有者缓存中的登录信息
RoomRedisInfoDTO
roomRedisInfoDTO
=
redisUtil
.
getCacheObject
(
RedisEnum
.
ROOM
.
getPrefix
()
+
session
.
getRoomId
()
+
":"
+
session
.
getRoomPwd
());
RoomRedisInfoDTO
roomRedisInfoDTO
=
redisUtil
.
getCacheObject
(
RedisEnum
.
ROOM
.
getPrefix
()
+
session
.
getRoomId
()
+
":"
+
session
.
getRoomPwd
()
,
RoomRedisInfoDTO
.
class
);
if
(
roomRedisInfoDTO
==
null
)
{
log
.
error
(
"【加入会话】会话发起者缓存信息不存在,roomId={}"
,
session
.
getRoomId
());
throw
new
BusinessException
(
"会话发起者登录信息失效,建议联系会话发起者再次发起"
);
...
...
@@ -422,7 +422,7 @@ public class ApiCoSessionServiceImpl implements ApiCoSessionService {
log
.
info
(
"【加入会话-内部】数据库更新成功,新状态={}"
,
session
.
getStatus
());
// 更新 Redis 缓存
RoomRedisInfoDTO
roomRedisInfoDTO
=
redisUtil
.
getCacheObject
(
RedisEnum
.
ROOM
.
getPrefix
()
+
session
.
getRoomId
()
+
":"
+
session
.
getRoomPwd
());
RoomRedisInfoDTO
roomRedisInfoDTO
=
redisUtil
.
getCacheObject
(
RedisEnum
.
ROOM
.
getPrefix
()
+
session
.
getRoomId
()
+
":"
+
session
.
getRoomPwd
()
,
RoomRedisInfoDTO
.
class
);
if
(
roomRedisInfoDTO
!=
null
)
{
roomRedisInfoDTO
.
setControlHolderType
(
session
.
getControlHolderType
());
roomRedisInfoDTO
.
setControlHolderId
(
session
.
getControlHolderId
());
...
...
@@ -606,7 +606,7 @@ public class ApiCoSessionServiceImpl implements ApiCoSessionService {
session
.
getControlHolderType
(),
session
.
getControlHolderId
());
// 更新房间缓存redis信息
RoomRedisInfoDTO
roomRedisInfoDTO
=
redisUtil
.
getCacheObject
(
RedisEnum
.
ROOM
.
getPrefix
()
+
roomId
+
":"
+
session
.
getRoomPwd
());
RoomRedisInfoDTO
roomRedisInfoDTO
=
redisUtil
.
getCacheObject
(
RedisEnum
.
ROOM
.
getPrefix
()
+
roomId
+
":"
+
session
.
getRoomPwd
()
,
RoomRedisInfoDTO
.
class
);
if
(
roomRedisInfoDTO
!=
null
)
{
roomRedisInfoDTO
.
setControlHolderId
(
session
.
getControlHolderId
());
roomRedisInfoDTO
.
setControlHolderType
(
session
.
getControlHolderType
());
...
...
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