fix(backend): 修复上传转码与短剧发布链路(multipart 上限、转码防重、剧集发布、schema 字段)
This commit is contained in:
1 parent
1bf74bdd4c
commit
212834d59d
4 files changed
+13
-16
No files matched your search
+6
@@ -145,6 +145,12 @@ public class DramaService {
|
||||
drama.setStatus(target);
|
||||
if (ContentStatus.PUBLISHED.getCode().equals(target)) {
|
||||
drama.setPublishedAt(LocalDateTime.now());
|
||||
// 上线时把仍处于「草稿」的分集一并上线(C 端只展示 published 分集)
|
||||
dramaEpisodeMapper.update(null, Wrappers.<DramaEpisode>lambdaUpdate()
|
||||
.eq(DramaEpisode::getDramaId, id)
|
||||
.eq(DramaEpisode::getStatus, ContentStatus.DRAFT.getCode())
|
||||
.set(DramaEpisode::getStatus, ContentStatus.PUBLISHED.getCode())
|
||||
.set(DramaEpisode::getReleaseAt, LocalDateTime.now()));
|
||||
}
|
||||
dramaMapper.updateById(drama);
|
||||
|
||||
|
||||
Reference in new issue
Block a user