Merge remote-tracking branch 'origin/dev2.0' into dev2.0

dev2.0
黄泽腾 2 years ago
commit b0db44345e

@ -35,6 +35,7 @@ public class uploadController {
@Value("${minio_url}")
private String minioUrl;
/**
* PDF
*/
@ -125,8 +126,9 @@ public class uploadController {
return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件只能是 jpg,png,doc,pdf 格式");
}
String newName = UUID.randomUUID() + fileType;//生成新文件名
String savePath = filePath + "/register/" + type;
String savePath = filePath + "/register/file/" + type;
String savePath1 = fileLpath + "?type=" + type;
String fileFullName = savePath + "/" + newName;
File file1 = new File(savePath);
if (!file1.exists()) {// 判断目录是否存在
@ -141,7 +143,7 @@ public class uploadController {
rMap.put("name", fileUrl + savePath1 + "&name=" + newName);
rMap.put("type", type);
return ResultVOUtils.success(rMap);
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
}
return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传失败");

@ -48,8 +48,8 @@ logging:
com.glxp.api.dao: debug
file_path: D:/udi/udiwms/udiwmsfile/
file_url: http://127.0.0.1:9993
file_lpath: /udiwms/image/register/file/getImage
file_url: http://127.0.0.1:9993
minio_path: /udi
minio_url: http://139.9.219.60:9000
err_path: d:/udi/udiwms/err/

Loading…
Cancel
Save