修改删除状态

This commit is contained in:
曹佳豪 2025-06-16 09:44:09 +08:00
parent eacad6e370
commit f9d822bb11

View File

@ -262,7 +262,12 @@ public class VlogUploadController extends BaseInfoProperties {
// 调用服务层方法
vlogUploadService.forbidMediaDistribution(fileIds, operation);
// 如果是禁播操作将数据库中的状态改为4删除
if ("forbid".equals(operation)) {
for (String fileId : fileIds) {
vlogService.updateVlogStatus(fileId, 4, "视频已被禁播");
}
}
// 返回成功结果
return R.ok("操作成功");
} catch (IllegalArgumentException e) {