refactor(order): 简化faceId获取逻辑

- 移除通过task获取faceId的中间步骤
- 直接从video实体获取faceId
- 更新相关服务和控制器中的调用逻辑
- 优化日志记录中的faceId来源
- 提高代码可读性和执行效率
This commit is contained in:
2025-12-15 17:07:37 +08:00
parent 7348994427
commit 832f6a2339
7 changed files with 46 additions and 63 deletions

View File

@@ -104,10 +104,7 @@ public class OrderBiz {
if (video == null) {
return null;
}
TaskEntity task = videoTaskRepository.getTaskById(video.getTaskId());
if (task != null) {
priceObj.setFaceId(task.getFaceId());
}
priceObj.setFaceId(video.getFaceId());
TemplateRespVO template = templateRepository.getTemplate(video.getTemplateId());
if (template == null) {
return priceObj;