|
|
@@ -77,6 +77,13 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
@Qualifier("objectCommonRedisTemplate") |
|
|
|
RedisTemplate<String, Object> redisTemplate; |
|
|
|
|
|
|
|
@Value("${photo.url}") |
|
|
|
private String url; |
|
|
|
@Value("${photo.hy_url}") |
|
|
|
private String hy_url; |
|
|
|
@Value("${photo.talk}") |
|
|
|
private String talk_url; |
|
|
|
|
|
|
|
private final static String str = "\uD83D\uDD57"; |
|
|
|
|
|
|
|
@Value("${photo.callbackUrl}") |
|
|
@@ -258,8 +265,8 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
public void uploadVideo(PhotoSpeakVideo mouldVideo){ |
|
|
|
if(EnumVideoStatus.success.getCode().equals(mouldVideo.getVideoStatus()) |
|
|
|
|| EnumVideoStatus.upload_fail.getCode().equals(mouldVideo.getVideoStatus())){ |
|
|
|
String url = mouldVideo.getPhotoSpeakPathUri() + mouldVideo.getVideoPath(); |
|
|
|
VideUploadResult result = videoFactory.getExcutor(videoType).uploadVideoPath(mouldVideo.getTitle(), url); |
|
|
|
String url1 = url + mouldVideo.getVideoPath(); |
|
|
|
VideUploadResult result = videoFactory.getExcutor(videoType).uploadVideoPath(mouldVideo.getTitle(), url1); |
|
|
|
if(result.isSuccess()){ |
|
|
|
PhotoSpeakVideo videoUpd = new PhotoSpeakVideo(); |
|
|
|
videoUpd.setId(mouldVideo.getId()); |
|
|
@@ -380,7 +387,7 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
public void uploadHyVideo(PhotoSpeakVideo mouldVideo){ |
|
|
|
if(EnumVideoStatus.success.getCode().equals(mouldVideo.getVideoHyStatus()) |
|
|
|
|| EnumVideoStatus.upload_fail.getCode().equals(mouldVideo.getVideoHyStatus())){ |
|
|
|
String url = mouldVideo.getPhotoSpeakPathUri() + mouldVideo.getVideoPath(); |
|
|
|
String url = hy_url + mouldVideo.getVideoPath(); |
|
|
|
VideUploadResult result = videoFactory.getExcutor(videoType).uploadVideoPath(mouldVideo.getTitle(), url); |
|
|
|
if(result.isSuccess()){ |
|
|
|
PhotoSpeakVideo videoUpd = new PhotoSpeakVideo(); |
|
|
|