You've already forked FrameTour-BE
fix(video): 修复任务状态查询逻辑并优化Redis过期策略
- 修改人脸模板渲染状态存储逻辑,增加默认过期时间 - 移除AppTaskController中冗余的JwtInfo获取代码 - 优化GoodsServiceImpl中任务状态判断逻辑,增强空值检查 - 修复视频任务状态返回不准确的问题,完善边界条件处理
This commit is contained in:
@@ -27,7 +27,6 @@ public class AppTaskController {
|
||||
@GetMapping("/face/{faceId}")
|
||||
@IgnoreLogReq
|
||||
public ApiResponse<VideoTaskStatusVO> getTaskStatusByFaceId(@PathVariable("faceId") Long faceId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return ApiResponse.success(goodsService.getTaskStatusByFaceId(faceId));
|
||||
}
|
||||
@GetMapping("/scenic/{scenicId}")
|
||||
@@ -49,7 +48,6 @@ public class AppTaskController {
|
||||
@GetMapping("/face/{faceId}/template/{templateId}")
|
||||
@IgnoreLogReq
|
||||
public ApiResponse<VideoTaskStatusVO> getTemplateTaskStatus(@PathVariable("faceId") Long faceId, @PathVariable("templateId") Long templateId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return ApiResponse.success(goodsService.getTaskStatusByTemplateId(faceId, templateId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user