|
|
@@ -53,13 +53,19 @@ public class VideoService {
|
|
|
case hasAd:
|
|
|
videoStatus = VideoStatus.hasAd.getValue();
|
|
|
break;
|
|
|
+ case needRestore:
|
|
|
+ videoStatus = VideoStatus.needRestore.getValue();
|
|
|
+ break;
|
|
|
default:
|
|
|
return Result.fail("unknown errorType");
|
|
|
}
|
|
|
|
|
|
videoPostMapper.updateVideoStatus(videoId, videoStatus);
|
|
|
- VideoError videoError = new VideoError(videoErrorReport);
|
|
|
- videoErrorMapper.save(videoError);
|
|
|
+ if (videoStatus != VideoStatus.revoke.getValue() || videoStatus != VideoStatus.needRestore.getValue()) {
|
|
|
+ VideoError videoError = new VideoError(videoErrorReport);
|
|
|
+ videoErrorMapper.save(videoError);
|
|
|
+ }
|
|
|
+
|
|
|
return Result.success();
|
|
|
}
|
|
|
|