Commit 591b0528e6dd438aaad45010681f85304533406e
1 parent
9481e0acad
Exists in
master
and in
6 other branches
智能建档
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
591b052
| ... | ... | @@ -2112,7 +2112,7 @@ |
| 2112 | 2112 | String imgPath = DateUtil.getYmd(new Date()); |
| 2113 | 2113 | String filename = StringUtils.uuid()+".jpg"; |
| 2114 | 2114 | |
| 2115 | - String fileAllPath = BASE_IMG_PATH+File.separator+imgPath+File.separator+filename; | |
| 2115 | + String fileAllPath = BASE_IMG_PATH+File.separator+"id_photo"+File.separator+imgPath+File.separator+filename; | |
| 2116 | 2116 | System.out.println("fileAllPath=" + fileAllPath); |
| 2117 | 2117 | File filepath = new File(fileAllPath); |
| 2118 | 2118 | //判断路径是否存在,如果不存在就创建一个 |
| ... | ... | @@ -2120,7 +2120,7 @@ |
| 2120 | 2120 | filepath.getParentFile().mkdirs(); |
| 2121 | 2121 | } |
| 2122 | 2122 | FileUtil.generateImage(imgRequest.getImg(),fileAllPath); |
| 2123 | - objectResponse.setData(imgPath + "/" + filename); | |
| 2123 | + objectResponse.setData("id_photo" + "/" + imgPath + "/" + filename); | |
| 2124 | 2124 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
| 2125 | 2125 | objectResponse.setErrormsg("成功"); |
| 2126 | 2126 | return objectResponse; |