Commit e00f6e6d by zhangxingmin

push

parent 59331b17
...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment