|
@@ -505,14 +505,10 @@ public class CaseDownService {
|
|
|
String res = (String) object;
|
|
|
log.info("下载模型:{}",res);
|
|
|
res = res.replace(queryPath, "");
|
|
|
- if(res.contains(".json") || res.contains(".obj")){
|
|
|
+ if(res.contains(".json") ){
|
|
|
res = new File(res).getParentFile().getPath();
|
|
|
}
|
|
|
String desPath = path + "/oss/" + res;
|
|
|
- if(!desPath.contains(".")){
|
|
|
- ShellUtil.yunDownload(res, new File(desPath).getParentFile().getPath());
|
|
|
- return;
|
|
|
- }
|
|
|
ShellUtil.yunDownload(res, desPath);
|
|
|
}
|
|
|
}
|