This commit is contained in:
yan.y 2025-10-23 10:16:58 +08:00
parent 4bc9778d38
commit f595b2dd68
1 changed files with 2 additions and 1 deletions

View File

@ -1856,7 +1856,7 @@ public class AdminAction {
map.put("factoryList", factoryList); map.put("factoryList", factoryList);
String status = SysUserEnum.failed101.getKey(); String status = SysUserEnum.failed101.getKey();
try { try {
if (!fileUpload.isEmpty()) { if (fileUpload != null) {
String newImgName = System.currentTimeMillis() + ".jpg"; String newImgName = System.currentTimeMillis() + ".jpg";
IfishFileUtils.uploadFile(IfishFileDirectory.path_img_goods, newImgName, fileUpload); IfishFileUtils.uploadFile(IfishFileDirectory.path_img_goods, newImgName, fileUpload);
factoryList.setBackground(newImgName); factoryList.setBackground(newImgName);
@ -1867,6 +1867,7 @@ public class AdminAction {
return new ModelAndView("redirect:/page/admin/factoryList.do"); return new ModelAndView("redirect:/page/admin/factoryList.do");
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
map.put("status", status); map.put("status", status);
log.error("updateFactory:error message:{}", e.toString()); log.error("updateFactory:error message:{}", e.toString());
} }