refactor(webapp): 优化代码格式和日志输出

-调整代码缩进和空格,提高可读性
- 优化日志输出,移除冗余信息
- 统一异常处理方式
This commit is contained in:
liuy 2024-10-28 11:09:53 +08:00
parent c1786b7cb8
commit 14a21b3168
1 changed files with 18 additions and 16 deletions

View File

@ -138,7 +138,8 @@ public class EntranceServiceImpl implements IEntranceService {
} }
JsonResultEntity jsonResultEntity; JsonResultEntity jsonResultEntity;
try { try {
logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>请求的参数jsonObject" + jsonObject.toJSONString()); // logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>请求的参数jsonObject" + jsonObject.toJSONString());
logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
jsonResultEntity = (JsonResultEntity) m.invoke(object, jsonObject); jsonResultEntity = (JsonResultEntity) m.invoke(object, jsonObject);
logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
return jsonResultEntity; return jsonResultEntity;
@ -243,6 +244,7 @@ public class EntranceServiceImpl implements IEntranceService {
FileDownloadEntity fileDownloadEntity = fileDownloadService.pluginZipUpate(fileUploadDto); FileDownloadEntity fileDownloadEntity = fileDownloadService.pluginZipUpate(fileUploadDto);
return BaseResult.getSuccessMessageEntity("插件更新成功", fileDownloadEntity); return BaseResult.getSuccessMessageEntity("插件更新成功", fileDownloadEntity);
} }
@Override @Override
public JsonResultEntity fileUpload(MultipartFile file, FileResultEntity entity, ServletRequest servletRequest, ServletResponse servletResponse) throws Exception { public JsonResultEntity fileUpload(MultipartFile file, FileResultEntity entity, ServletRequest servletRequest, ServletResponse servletResponse) throws Exception {
entity = fileUploadService.fileUpload(file, entity); entity = fileUploadService.fileUpload(file, entity);