Commit d6ec2880 authored by 赵啸非's avatar 赵啸非

添加产品资源枚举类

parent d707674e
...@@ -192,6 +192,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec ...@@ -192,6 +192,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
ZipUtil.unzip(inputStream, destDir, Charset.defaultCharset()); ZipUtil.unzip(inputStream, destDir, Charset.defaultCharset());
}catch (IllegalArgumentException e){ }catch (IllegalArgumentException e){
log.error("zip文件编码异常,尝试使用GBK编码,异常:{}",e.getMessage()); log.error("zip文件编码异常,尝试使用GBK编码,异常:{}",e.getMessage());
inputStream = FileUtil.getInputStream(file);
ZipUtil.unzip(inputStream, destDir, Charset.forName("GBK")); ZipUtil.unzip(inputStream, destDir, Charset.forName("GBK"));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment