Commit c3e43ada by 周海峰

封面路径

parent 20457d3f
...@@ -362,16 +362,16 @@ public class ExternalController { ...@@ -362,16 +362,16 @@ public class ExternalController {
fileDownDTO.setColumnInfo(jsonObject.getString("columnInfo")); fileDownDTO.setColumnInfo(jsonObject.getString("columnInfo"));
fileDownDTO.setCommentNum(jsonObject.getString("commentNum")); fileDownDTO.setCommentNum(jsonObject.getString("commentNum"));
fileDownDTO.setCreateByCom(jsonObject.getString("createByCom")); fileDownDTO.setCreateByCom(jsonObject.getString("createByCom"));
JSONArray coverFilejsonArray =json.getJSONArray("coverFile");
JSONObject coverFilejson =(JSONObject)( jsonObject.get("coverFile")) ; JSONObject coverFilejson =(JSONObject)( jsonObject.get("coverFile")) ;
if (coverFilejson!=null){ if (coverFilejson!=null){
String filepath=coverFilejson.getString("filePath"); String filepath=coverFilejson.getString("filePath");
if(filepath==null) { if(filepath==null) {
fileDownDTO.setFilepath(""); fileDownDTO.setFilepath("");
} else if (filepath.contains("http")) { } else if (filepath.contains("http")) {
fileDownDTO.setFilepath(coverFilejson.getString("filePath")); fileDownDTO.setFilepath(filepath);
}else { }else {
fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath); // fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath);
fileDownDTO.setFilepath(filepath);
} }
}else{ }else{
fileDownDTO.setFilepath(""); fileDownDTO.setFilepath("");
...@@ -444,7 +444,8 @@ public class ExternalController { ...@@ -444,7 +444,8 @@ public class ExternalController {
} else if (filepath.contains("http")) { } else if (filepath.contains("http")) {
fileDownDTO.setFilepath(coverFilejson.getString("filePath")); fileDownDTO.setFilepath(coverFilejson.getString("filePath"));
}else { }else {
fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath); // fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath);
fileDownDTO.setFilepath(filepath);
} }
}else{ }else{
fileDownDTO.setFilepath(""); fileDownDTO.setFilepath("");
...@@ -584,7 +585,8 @@ public class ExternalController { ...@@ -584,7 +585,8 @@ public class ExternalController {
} else if (filepath.contains("http")) { } else if (filepath.contains("http")) {
fileDownDTO.setFilepath(coverFilejson.getString("filePath")); fileDownDTO.setFilepath(coverFilejson.getString("filePath"));
}else { }else {
fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath); // fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath);
fileDownDTO.setFilepath(filepath);
} }
}else{ }else{
fileDownDTO.setFilepath(""); fileDownDTO.setFilepath("");
...@@ -653,7 +655,8 @@ public class ExternalController { ...@@ -653,7 +655,8 @@ public class ExternalController {
} else if (filepath.contains("http")) { } else if (filepath.contains("http")) {
fileDownDTO.setFilepath(coverFilejson.getString("filePath")); fileDownDTO.setFilepath(coverFilejson.getString("filePath"));
}else { }else {
fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath); // fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath);
fileDownDTO.setFilepath(filepath);
} }
}else{ }else{
fileDownDTO.setFilepath(""); fileDownDTO.setFilepath("");
...@@ -720,7 +723,8 @@ public class ExternalController { ...@@ -720,7 +723,8 @@ public class ExternalController {
} else if (filepath.contains("http")) { } else if (filepath.contains("http")) {
fileDownDTO.setFilepath(coverFilejson.getString("filePath")); fileDownDTO.setFilepath(coverFilejson.getString("filePath"));
}else { }else {
fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath); // fileDownDTO.setFilepath(PlatformUrlManager.API_IMGURL + filepath);
fileDownDTO.setFilepath(filepath);
} }
}else{ }else{
fileDownDTO.setFilepath(""); fileDownDTO.setFilepath("");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论