no message
Showing
1 changed file
with
6 additions
and
7 deletions
| ... | @@ -40,10 +40,7 @@ import javax.servlet.http.HttpServletResponse; | ... | @@ -40,10 +40,7 @@ import javax.servlet.http.HttpServletResponse; |
| 40 | import java.io.File; | 40 | import java.io.File; |
| 41 | import java.io.IOException; | 41 | import java.io.IOException; |
| 42 | import java.io.InputStream; | 42 | import java.io.InputStream; |
| 43 | import java.util.ArrayList; | 43 | import java.util.*; |
| 44 | import java.util.Collection; | ||
| 45 | import java.util.List; | ||
| 46 | import java.util.Map; | ||
| 47 | import java.util.stream.Collectors; | 44 | import java.util.stream.Collectors; |
| 48 | 45 | ||
| 49 | /** | 46 | /** |
| ... | @@ -80,9 +77,11 @@ public class SysOssServiceImpl implements ISysOssService, OssService { | ... | @@ -80,9 +77,11 @@ public class SysOssServiceImpl implements ISysOssService, OssService { |
| 80 | 77 | ||
| 81 | private void repUrl(SysOssVo vo) { | 78 | private void repUrl(SysOssVo vo) { |
| 82 | String baseUrl = configService.getConfigValue("sys.oss.baseUrl"); | 79 | String baseUrl = configService.getConfigValue("sys.oss.baseUrl"); |
| 83 | String url = vo.getUrl(); | 80 | if(Objects.nonNull(vo)) { |
| 84 | if (StrUtil.isNotBlank(url) && StrUtil.isNotBlank(baseUrl)) { | 81 | String url = vo.getUrl(); |
| 85 | vo.setUrl(url.replace("127.0.0.1:9000", baseUrl)); | 82 | if (StrUtil.isNotBlank(url) && StrUtil.isNotBlank(baseUrl)) { |
| 83 | vo.setUrl(url.replace("127.0.0.1:9000", baseUrl)); | ||
| 84 | } | ||
| 86 | } | 85 | } |
| 87 | } | 86 | } |
| 88 | 87 | ... | ... |
-
Please register or sign in to post a comment