From ab8cfc437346ab393cafd89360eacb6a2036d332 Mon Sep 17 00:00:00 2001 From: xuquan <1099815072@qq.com> Date: Fri, 18 Oct 2024 17:25:44 +0800 Subject: [PATCH] 修改提交 --- cloud/haikangface/src/main/java/com/sincere/haikangface/service/impl/UserOperateServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/haikangface/src/main/java/com/sincere/haikangface/service/impl/UserOperateServiceImpl.java b/cloud/haikangface/src/main/java/com/sincere/haikangface/service/impl/UserOperateServiceImpl.java index 1669991..aa04ac6 100644 --- a/cloud/haikangface/src/main/java/com/sincere/haikangface/service/impl/UserOperateServiceImpl.java +++ b/cloud/haikangface/src/main/java/com/sincere/haikangface/service/impl/UserOperateServiceImpl.java @@ -377,7 +377,7 @@ public class UserOperateServiceImpl implements UserOperateService { //以学籍号为名的文件名 String fileName = studentCode + ".png"; String facePath = ""; - if(file.isEmpty()) facePath = baseService.getFilePath(schoolId,typeName,fileName,file); + if(!file.isEmpty()) facePath = baseService.getFilePath(schoolId,typeName,fileName,file); else facePath = baseService.checkUserFace(studentBean,userType,schoolId); String targetPath = FileUtils.picPathComp + file.getName(); try { -- libgit2 0.21.0