feat:修复获取订单素材bug
This commit is contained in:
+6
-6
@@ -714,7 +714,7 @@ public class OrderController {
|
|||||||
.toList();
|
.toList();
|
||||||
String aiVideoUrl = null;
|
String aiVideoUrl = null;
|
||||||
if (!aiVideoFiles.isEmpty()) {
|
if (!aiVideoFiles.isEmpty()) {
|
||||||
aiVideoUrl = fileCenterService.getViewUrlByPath(aiVideoFiles.get(0).getFilePath()).replace(cdnOssUrl, cdnUrl);
|
aiVideoUrl = fileCenterService.getFileViewUrl(aiVideoFiles.get(0).getFileId());
|
||||||
}
|
}
|
||||||
orderFileMap.put("aiVideo", aiVideoUrl);
|
orderFileMap.put("aiVideo", aiVideoUrl);
|
||||||
|
|
||||||
@@ -727,11 +727,11 @@ public class OrderController {
|
|||||||
fileMap.put("style", fileStyle);
|
fileMap.put("style", fileStyle);
|
||||||
for (OrderFile orderFile : imgFiles){
|
for (OrderFile orderFile : imgFiles){
|
||||||
Map<String,String> imgMap = new HashMap<>();
|
Map<String,String> imgMap = new HashMap<>();
|
||||||
String url = fileCenterService.getViewUrlByPath(orderFile.getFilePath());
|
String url = fileCenterService.getFileViewUrl(orderFile.getFileId());
|
||||||
imgMap.put("url", url.replace(cdnOssUrl, cdnUrl));
|
imgMap.put("url", url);
|
||||||
imgMap.put("contentType", orderFile.getFileType());
|
imgMap.put("contentType", orderFile.getFileType());
|
||||||
imgMap.put("path", orderFile.getFilePath());
|
imgMap.put("path", orderFile.getFilePath());
|
||||||
fileMap.put("path",orderFile.getFilePath());
|
fileMap.put("fileId",orderFile.getFileId());
|
||||||
imgMap.put("viewUrl", fileCenterService.getViewUrlByPathStyle(fileMap));
|
imgMap.put("viewUrl", fileCenterService.getViewUrlByPathStyle(fileMap));
|
||||||
imgList.add(imgMap);
|
imgList.add(imgMap);
|
||||||
}
|
}
|
||||||
@@ -745,8 +745,8 @@ public class OrderController {
|
|||||||
for (int i = 0; i < videoFiles.size(); i++){
|
for (int i = 0; i < videoFiles.size(); i++){
|
||||||
OrderFile orderFile = videoFiles.get(i);
|
OrderFile orderFile = videoFiles.get(i);
|
||||||
Map<String,String> videoMap = new HashMap<>();
|
Map<String,String> videoMap = new HashMap<>();
|
||||||
String url = fileCenterService.getViewUrlByPath(orderFile.getFilePath());
|
String url = fileCenterService.getFileViewUrl(orderFile.getFileId());
|
||||||
videoMap.put("url", url.replace(cdnOssUrl, cdnUrl));
|
videoMap.put("url", url);
|
||||||
videoMap.put("contentType", orderFile.getFileType());
|
videoMap.put("contentType", orderFile.getFileType());
|
||||||
videoMap.put("path", orderFile.getFilePath());
|
videoMap.put("path", orderFile.getFilePath());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user