浏览代码

内网上传

qianxb 2 年之前
父节点
当前提交
ecf3832cd2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      blade-common/src/main/java/org/springblade/common/utils/CommonUtil.java

+ 1 - 1
blade-common/src/main/java/org/springblade/common/utils/CommonUtil.java

@@ -112,7 +112,7 @@ public class CommonUtil {
      */
      */
     public static InputStream getOSSInputStream(String urlStr) throws Exception {
     public static InputStream getOSSInputStream(String urlStr) throws Exception {
         //获取OSS文件流
         //获取OSS文件流
-//        urlStr = replaceOssUrl(urlStr);
+        urlStr = replaceOssUrl(urlStr);
         URL imageUrl = new URL(urlStr);
         URL imageUrl = new URL(urlStr);
         try {
         try {
             HttpURLConnection conn = (HttpURLConnection) imageUrl.openConnection();
             HttpURLConnection conn = (HttpURLConnection) imageUrl.openConnection();