| | |
| | | @Value("${uploadSwitch}") |
| | | private Integer uploadSwitch; |
| | | |
| | | @Value("${fileUpload}") |
| | | private String fileUpload; |
| | | |
| | | @Value("${profile}") |
| | | private String profile; |
| | | |
| | | @Value("${spring.profiles.active}") |
| | | private String active; |
| | | |
| | | /** |
| | | * 通用下载请求 |
| | | * |
| | |
| | | // 上传并返回新文件名称 |
| | | String fileName = FileUploadUtils.uploadSort(filePath, file); |
| | | String url = null; |
| | | //新华医院特殊,这个视频的访问得转 |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | String xhPath = fileUpload + profile; |
| | | |
| | | if (uploadSwitch == 1) { |
| | | String fn = fileName.replaceAll("/profile", ""); |
| | | url = xhPath + fn; |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | String url = null; |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | String xhPath = fileUpload + profile; |
| | | if (uploadSwitch == 1) { |
| | | url = xhPath + "/upload/show/" + fileName.split("\\.", 2)[0] + "/" + fileName; |
| | | } else { |