|
@@ -456,7 +456,12 @@ public class CaseDownService {
|
|
|
// return;
|
|
|
// }
|
|
|
String path = String.format(FilePath.OFFLINE_OSS_PATH,caseId);
|
|
|
- ShellUtil.yunDownload(url,path+"/oss/"+url);
|
|
|
+ String desPath = path + "/oss/" + url;
|
|
|
+ if(!desPath.contains(".")){
|
|
|
+ ShellUtil.yunDownload(url, new File(desPath).getParentFile().getPath());
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ShellUtil.yunDownload(url,desPath);
|
|
|
}
|
|
|
|
|
|
public void downWordByTemplate(Integer caseId,XWPFTemplate template,String name){
|