|
@@ -175,9 +175,9 @@ public class VideoPostServiceImpl implements VideoPostService {
|
|
|
for (VideoUrlDto videoUrlDto : list) {
|
|
for (VideoUrlDto videoUrlDto : list) {
|
|
|
String videoFileId = videoUrlDto.getObjectId();
|
|
String videoFileId = videoUrlDto.getObjectId();
|
|
|
try {
|
|
try {
|
|
|
- int channelId = videoUrlDto.getChannelCode();
|
|
|
|
|
|
|
+ int channelCode = videoUrlDto.getChannelCode();
|
|
|
int scope = videoScopeUpdate.getScope();
|
|
int scope = videoScopeUpdate.getScope();
|
|
|
- ossService.setObjectScope(channelId, videoFileId, scope);
|
|
|
|
|
|
|
+ ossService.setObjectScope(channelCode, videoFileId, scope);
|
|
|
videoPostMapper.updateVideoScope(videoScopeUpdate);
|
|
videoPostMapper.updateVideoScope(videoScopeUpdate);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -204,8 +204,8 @@ public class VideoPostServiceImpl implements VideoPostService {
|
|
|
|
|
|
|
|
String coverFileId = videoCoverUpdate.getCoverFileId();
|
|
String coverFileId = videoCoverUpdate.getCoverFileId();
|
|
|
try {
|
|
try {
|
|
|
- int channelId = 105;
|
|
|
|
|
- ImageInfo imageInfo = ossService.getImageInfo(channelId, coverFileId);
|
|
|
|
|
|
|
+ int channelCode = 105;
|
|
|
|
|
+ ImageInfo imageInfo = ossService.getImageInfo(channelCode, coverFileId);
|
|
|
if (imageInfo == null) {
|
|
if (imageInfo == null) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -238,8 +238,8 @@ public class VideoPostServiceImpl implements VideoPostService {
|
|
|
for (VideoUrlDto videoUrlDto : list) {
|
|
for (VideoUrlDto videoUrlDto : list) {
|
|
|
String videoFileId = videoFileUpdate.getVideoFileId();
|
|
String videoFileId = videoFileUpdate.getVideoFileId();
|
|
|
try {
|
|
try {
|
|
|
- int channelId = 101;
|
|
|
|
|
- VideoInfo videoInfo = ossService.getVideoInfo(channelId, videoFileId);
|
|
|
|
|
|
|
+ int channelCode = 101;
|
|
|
|
|
+ VideoInfo videoInfo = ossService.getVideoInfo(channelCode, videoFileId);
|
|
|
if (videoInfo == null) {
|
|
if (videoInfo == null) {
|
|
|
log.error("{} not exist", videoFileId);
|
|
log.error("{} not exist", videoFileId);
|
|
|
return;
|
|
return;
|
|
@@ -248,10 +248,10 @@ public class VideoPostServiceImpl implements VideoPostService {
|
|
|
videoPostMapper.updateVideoFile(videoId, videoInfo);
|
|
videoPostMapper.updateVideoFile(videoId, videoInfo);
|
|
|
int scope = videoPost.getScope();
|
|
int scope = videoPost.getScope();
|
|
|
if (scope != PostScope.PRIVATE.getCode()) {
|
|
if (scope != PostScope.PRIVATE.getCode()) {
|
|
|
- ossService.setObjectScope(channelId, videoId, scope);
|
|
|
|
|
|
|
+ ossService.setObjectScope(channelCode, videoId, scope);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- ossService.deleteByObjectId(channelId, videoFileId);
|
|
|
|
|
|
|
+ ossService.deleteByObjectId(channelCode, videoFileId);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|
|
@@ -271,8 +271,8 @@ public class VideoPostServiceImpl implements VideoPostService {
|
|
|
for (VideoUrlDto videoUrlDto : list) {
|
|
for (VideoUrlDto videoUrlDto : list) {
|
|
|
String videoFileId = videoUrlDto.getObjectId();
|
|
String videoFileId = videoUrlDto.getObjectId();
|
|
|
try {
|
|
try {
|
|
|
- int channelId = videoUrlDto.getChannelCode();
|
|
|
|
|
- ossService.deleteByObjectId(channelId, videoFileId);
|
|
|
|
|
|
|
+ int channelCode = videoUrlDto.getChannelCode();
|
|
|
|
|
+ ossService.deleteByObjectId(channelCode, videoFileId);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|