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
e00f6e6d
Commit
e00f6e6d
authored
Aug 05, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
59331b17
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
yd-communication-api/src/main/java/com/yd/communication/api/service/impl/ApiRecordingTaskServiceImpl.java
+4
-3
No files found.
yd-communication-api/src/main/java/com/yd/communication/api/service/impl/ApiRecordingTaskServiceImpl.java
View file @
e00f6e6d
...
@@ -114,14 +114,15 @@ public class ApiRecordingTaskServiceImpl implements ApiRecordingTaskService {
...
@@ -114,14 +114,15 @@ public class ApiRecordingTaskServiceImpl implements ApiRecordingTaskService {
throw
new
BusinessException
(
"上传成功但未返回文件信息"
);
throw
new
BusinessException
(
"上传成功但未返回文件信息"
);
}
}
String
fileUrl
=
(
String
)
data
.
get
(
"fileUrl"
);
String
fileUrl
=
(
String
)
data
.
get
(
"fileUrl"
);
Long
fileSize
=
(
Long
)
data
.
get
(
"fileSize"
);
// 安全获取 fileSize(可能是 Integer 或 Long)
Number
fileSizeNumber
=
(
Number
)
data
.
get
(
"fileSize"
);
Long
fileSize
=
fileSizeNumber
!=
null
?
fileSizeNumber
.
longValue
()
:
null
;
String
fileKey
=
(
String
)
data
.
get
(
"fileKey"
);
String
fileKey
=
(
String
)
data
.
get
(
"fileKey"
);
// 更新录制任务
// 更新录制任务
task
.
setFileUrl
(
fileUrl
);
task
.
setFileUrl
(
fileUrl
);
task
.
setFileSize
(
fileSize
);
task
.
setFileSize
(
fileSize
);
task
.
setStatus
(
"3"
);
// 已录制
task
.
setStatus
(
"3"
);
// 已录制
// 根据实际文件格式设置,可扩展
task
.
setFileFormat
(
"webm"
);
task
.
setFileFormat
(
"webm"
);
task
.
setStopTime
(
LocalDateTime
.
now
());
task
.
setStopTime
(
LocalDateTime
.
now
());
iRecordingTaskService
.
updateById
(
task
);
iRecordingTaskService
.
updateById
(
task
);
...
@@ -134,7 +135,7 @@ public class ApiRecordingTaskServiceImpl implements ApiRecordingTaskService {
...
@@ -134,7 +135,7 @@ public class ApiRecordingTaskServiceImpl implements ApiRecordingTaskService {
log
.
info
(
"录制文件上传成功,fileUrl={}"
,
fileUrl
);
log
.
info
(
"录制文件上传成功,fileUrl={}"
,
fileUrl
);
//
6.
生成协同操作日志
// 生成协同操作日志
operationLogService
.
log
(
operationLogService
.
log
(
task
.
getBizId
(),
task
.
getBizId
(),
"system"
,
"system"
,
...
...
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