|
|
@@ -231,7 +231,10 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
theFileName = innerExtractFileName;
|
|
|
}else {
|
|
|
//如果当前压缩文件最终一级则
|
|
|
- unZipPath = unZipPath.replace("/"+theFileName, "");
|
|
|
+ unZipPath = unZipPath.replace(theFileName, "");
|
|
|
+ if(StringUtils.isNotBlank(unZipPath) && (unZipPath.endsWith("/")||unZipPath.endsWith("\\"))){
|
|
|
+ unZipPath = unZipPath.substring(0, unZipPath.length() - 1);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
CadastreFile cadastreFile = new CadastreFile();
|