BUGFIX
This commit is contained in:
@@ -253,32 +253,7 @@ public class SavedCollectionController {
|
||||
@Operation(summary = "relight")
|
||||
@PostMapping("/relight")
|
||||
public Response<List<ToProductImageResultVO>> relight(@Valid @RequestBody ToProductImageDTO toProductImageDTO) {
|
||||
log.info("【relight请求】收到relight请求, projectId={}, isDefaultLike={}, taskCount={}",
|
||||
toProductImageDTO.getProjectId(),
|
||||
toProductImageDTO.getIsDefaultLike(),
|
||||
toProductImageDTO.getToProductImageVOList() != null ? toProductImageDTO.getToProductImageVOList().size() : 0);
|
||||
long startTime = System.currentTimeMillis();
|
||||
List<ToProductImageResultVO> result = userLikeGroupService.relight(toProductImageDTO);
|
||||
long costTime = System.currentTimeMillis() - startTime;
|
||||
log.info("【relight请求】relight请求处理完成, projectId={}, 返回结果数={}, 耗时={}ms",
|
||||
toProductImageDTO.getProjectId(),
|
||||
result != null ? result.size() : 0,
|
||||
costTime);
|
||||
// 打印返回结果中的关键信息,用于追踪 collection_sort 变动
|
||||
if (result != null) {
|
||||
for (int i = 0; i < result.size(); i++) {
|
||||
ToProductImageResultVO vo = result.get(i);
|
||||
log.info("【relight请求】第{}个结果: id={}, taskId={}, isLike={}, parentId={}, sort={}, status={}",
|
||||
i + 1,
|
||||
vo.getId(),
|
||||
vo.getTaskId(),
|
||||
vo.getIsLike(),
|
||||
vo.getParentId(),
|
||||
vo.getSort(),
|
||||
vo.getStatus());
|
||||
}
|
||||
}
|
||||
return Response.success(result);
|
||||
return Response.success(userLikeGroupService.relight(toProductImageDTO));
|
||||
}
|
||||
|
||||
@Operation(summary = "转relight元素")
|
||||
@@ -290,27 +265,7 @@ public class SavedCollectionController {
|
||||
@Operation(summary = "获取relight结果")
|
||||
@PostMapping("/relightResult")
|
||||
public Response<List<MagicToolResultVO>> getRelightResult(@Valid @RequestBody List<String> taskIdList) {
|
||||
log.info("【getRelightResult请求】收到获取relight结果请求, taskIdList={}", taskIdList);
|
||||
long startTime = System.currentTimeMillis();
|
||||
List<MagicToolResultVO> magicToolResultVOList = userLikeGroupService.getRelightResult(taskIdList);
|
||||
long costTime = System.currentTimeMillis() - startTime;
|
||||
log.info("【getRelightResult请求】获取relight结果处理完成, taskIdList={}, 返回结果数={}, 耗时={}ms",
|
||||
taskIdList,
|
||||
magicToolResultVOList != null ? magicToolResultVOList.size() : 0,
|
||||
costTime);
|
||||
// 打印返回结果中的关键信息,用于追踪 collection_sort 变动
|
||||
if (magicToolResultVOList != null) {
|
||||
for (int i = 0; i < magicToolResultVOList.size(); i++) {
|
||||
MagicToolResultVO vo = magicToolResultVOList.get(i);
|
||||
log.info("【getRelightResult请求】第{}个结果: taskId={}, status={}, id={}, parentId={}, url={}",
|
||||
i + 1,
|
||||
vo.getTaskId(),
|
||||
vo.getStatus(),
|
||||
vo.getId(),
|
||||
vo.getParentId(),
|
||||
vo.getUrl() != null ? (vo.getUrl().length() > 50 ? vo.getUrl().substring(0, 50) + "..." : vo.getUrl()) : null);
|
||||
}
|
||||
}
|
||||
return Response.success(magicToolResultVOList);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user