Commit 360ac3b1 authored by 赵啸非's avatar 赵啸非

提交配置校验

parent bed2e20b
......@@ -348,6 +348,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
zip.flush();
zip.closeEntry();
} catch (Exception e) {
log.error("异常", e.getMessage());
}
}
......@@ -390,7 +391,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
}
String appIconPath = appEntity.getAppIconPath();
filePath = uploadService.getFilePath(appIconPath);
file = new File(filePath);
file = new File(filePath);
if (file.exists()) {
try {
zip.putNextEntry(new ZipEntry(StrUtil.subAfter(appIconPath, "/", false)));
......@@ -423,7 +424,6 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
}
IOUtils.closeQuietly(zip);
return Rest.ok(outputStream.toByteArray());
}
......@@ -445,7 +445,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
skinBaseEntity.setPreviewImagePath(StrUtil.prependIfMissing(skinBaseEntity.getPreviewImagePath(), "/"));
}
if(!ObjectUtils.isEmpty(query.getPrependPath())){
if (!ObjectUtils.isEmpty(query.getPrependPath())) {
}
......@@ -463,6 +463,21 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
}
skinFieldService.update(skinFieldEntities, context);
List<AppEntity> appEntityList = appService.find(new AppQuery());
for (AppEntity appEntity : appEntityList) {
if (!ObjectUtils.isEmpty(appEntity.getAppIconPath())) {
appEntity.setAppIconPath(StrUtil.prependIfMissing(appEntity.getAppIconPath(), "/"));
}
}
appService.update(appEntityList, context);
List<ModelEntity> modelEntities = modelService.find(new ModelQuery());
for (ModelEntity modelEntity : modelEntities) {
if (!ObjectUtils.isEmpty(modelEntity.getModelIcon())) {
modelEntity.setModelIcon(StrUtil.prependIfMissing(modelEntity.getModelIcon(), "/"));
}
}
modelService.update(modelEntities, context);
return Rest.ok();
}
......@@ -475,7 +490,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
System.out.println(result);*/
String str = "/file/upload/12332.png";
String str = "file/upload/12332.png";
String s1 = StrUtil.subAfter(str, "/", false);
......
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