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

提交配置校验

parent bed2e20b
...@@ -348,6 +348,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk ...@@ -348,6 +348,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
zip.flush(); zip.flush();
zip.closeEntry(); zip.closeEntry();
} catch (Exception e) { } catch (Exception e) {
log.error("异常", e.getMessage()); log.error("异常", e.getMessage());
} }
} }
...@@ -423,7 +424,6 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk ...@@ -423,7 +424,6 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
} }
IOUtils.closeQuietly(zip); IOUtils.closeQuietly(zip);
return Rest.ok(outputStream.toByteArray()); return Rest.ok(outputStream.toByteArray());
} }
...@@ -445,7 +445,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk ...@@ -445,7 +445,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
skinBaseEntity.setPreviewImagePath(StrUtil.prependIfMissing(skinBaseEntity.getPreviewImagePath(), "/")); 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 ...@@ -463,6 +463,21 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
} }
skinFieldService.update(skinFieldEntities, context); 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(); return Rest.ok();
} }
...@@ -475,7 +490,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk ...@@ -475,7 +490,7 @@ public class SkinBaseServiceImpl extends AbstractCRUDServiceImpl<SkinBaseDao, Sk
System.out.println(result);*/ System.out.println(result);*/
String str = "/file/upload/12332.png"; String str = "file/upload/12332.png";
String s1 = StrUtil.subAfter(str, "/", false); 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