修改删除状态
This commit is contained in:
parent
eacad6e370
commit
f9d822bb11
@ -262,7 +262,12 @@ public class VlogUploadController extends BaseInfoProperties {
|
|||||||
|
|
||||||
// 调用服务层方法
|
// 调用服务层方法
|
||||||
vlogUploadService.forbidMediaDistribution(fileIds, operation);
|
vlogUploadService.forbidMediaDistribution(fileIds, operation);
|
||||||
|
// 如果是禁播操作,将数据库中的状态改为4(删除)
|
||||||
|
if ("forbid".equals(operation)) {
|
||||||
|
for (String fileId : fileIds) {
|
||||||
|
vlogService.updateVlogStatus(fileId, 4, "视频已被禁播");
|
||||||
|
}
|
||||||
|
}
|
||||||
// 返回成功结果
|
// 返回成功结果
|
||||||
return R.ok("操作成功");
|
return R.ok("操作成功");
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user