TASK:万相补偿获取结果之后通知用户

This commit is contained in:
2025-08-26 09:35:18 +08:00
parent 6d0c29f5c3
commit 54b09b4940

View File

@@ -105,6 +105,7 @@ public class GenerateTask {
// 万相 -> pose transformation 补偿 一小时执行一次
@Scheduled(fixedDelay = 5 * 60 * 1000)
public void wxCompensationMechanism(){
log.info("万相补偿机制开始执行");
List<APIGenerate> apiGenerates = apiGenerateService.getPendingTaskByStatus("wx");
if (apiGenerates != null && !apiGenerates.isEmpty()){
for (APIGenerate apiGenerate : apiGenerates){
@@ -117,6 +118,7 @@ public class GenerateTask {
// 方法中已经完成了pose_transformation和api_generate表的更新不用额外做处理
PoseTransformationVO animateResult = generateService.getAnimateResult(taskId);
if (animateResult.getStatus().equals("Success")){
log.info("补偿获取结果成功,发送系统消息");
sendSysMsgToUser(poseTransformation.getAccountId(), "您的姿势变换生成任务已完成");
}
} catch (BusinessException e){