动态头像-mp4-提交转码异步任务

This commit is contained in:
2025-09-05 19:24:44 +08:00
parent 723b1c57d8
commit bddcb51404
5 changed files with 84 additions and 1 deletions

View File

@@ -977,4 +977,8 @@ public class MyApiService {
Date cycleDateTime = StringUtils.isNotBlank(cycleDate) ? DateTimeUtil.convertStrToDate(cycleDate, DateTimeUtil.DEFAULT_DATE_PATTERN): null;
guildCrystalSettlementService.settlement(PartitionEnum.TURKEY.getId(), cycleDateTime, waitSecond);
}
public void mp4TransferGif(String url) {
SpringContextHolder.getBean(UploadAvatarService.class).reviewAvatar(null, url, null, null, null, null);
}
}

View File

@@ -385,4 +385,14 @@ public class MyApiController {
myApiService.guildCrystalSettlement(cycleDate, waitSecond);
return BusiResult.success();
}
@GetMapping("/mp4TransferGif")
public BusiResult<Void> mp4TransferGif(Long roomId) {
if (null == roomId || !roomId.equals(603L)) {
throw new AdminServiceException(BusiStatus.PARAMERROR);
}
String url = "https://image.molistar.xyz/64854f73-ea1b-426f-8230-34de49571b8a.mp4";
myApiService.mp4TransferGif(url);
return BusiResult.success();
}
}