|
|
@@ -151,9 +151,12 @@ public class AliyunVideoExcutor implements VideoExcutor { |
|
|
|
}else{ |
|
|
|
VideUploadResult result = getVideoDetailFromApi(videoId); |
|
|
|
if(this.videoStatus.equals(result.getStatus())){ |
|
|
|
if(StringUtils.isNotBlank(result.getDuration()) && !"0.0".equals(result.getDuration())){ |
|
|
|
if(StringUtils.isNotBlank(result.getVideoUrl())){ |
|
|
|
UploadCacheHelper.cacheVideoDetail(redisTemplate, videoId,result); |
|
|
|
} |
|
|
|
// if(StringUtils.isNotBlank(result.getDuration()) && !"0.0".equals(result.getDuration())){ |
|
|
|
// UploadCacheHelper.cacheVideoDetail(redisTemplate, videoId,result); |
|
|
|
// } |
|
|
|
}else{ |
|
|
|
//还不能播放 |
|
|
|
result.setSuccess(false); |
|
|
|