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

修改同步事项

parent 446bf4f6
...@@ -333,13 +333,15 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk ...@@ -333,13 +333,15 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
List<String> cssLines = FileUtil.readUtf8Lines(file); List<String> cssLines = FileUtil.readUtf8Lines(file);
for (String cssLine : cssLines) { for (String cssLine : cssLines) {
String cssFileUrl = StrUtil.subBetween(cssLine, "url(", ")"); String cssFileUrl = StrUtil.subBetween(cssLine, "url(", ")");
log.info("cssFileUrl:{}", cssFileUrl);
if (!ObjectUtils.isEmpty(cssFileUrl)) { if (!ObjectUtils.isEmpty(cssFileUrl)) {
log.info("cssFileUrl:{}", cssFileUrl);
String cssFileUrlPath = uploadService.getFilePath(cssFileUrl); String cssFileUrlPath = uploadService.getFilePath(cssFileUrl);
File cssFile = new File(cssFileUrlPath); File cssFile = new File(cssFileUrlPath);
if (cssFile.exists()) { if (cssFile.exists()) {
zip.putNextEntry(new ZipEntry(StrUtil.removePrefix(cssFileUrlPath, "/"))); zip.putNextEntry(new ZipEntry(StrUtil.removePrefix(cssFileUrlPath, "/")));
IOUtils.write(FileUtil.readBytes(file), zip); IOUtils.write(FileUtil.readBytes(file), zip);
zip.flush();
zip.closeEntry();
} }
} }
} }
......
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