瀏覽代碼

素材同步

yumeng 5 年之前
父節點
當前提交
90ac7306d3

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/service/impl/FileInfoServiceImpl.java

@@ -308,7 +308,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
         String savePath = this.imageUploadPath + fileName;
         String savePath = this.imageUploadPath + fileName;
         try {
         try {
             /*将网络资源地址传给,即赋值给url*/
             /*将网络资源地址传给,即赋值给url*/
-            URL url = new URL("https:" + fileUrl);
+            URL url = new URL(fileUrl);
             /*此为联系获得网络资源的固定格式用法,以便后面的in变量获得url截取网络资源的输入流*/
             /*此为联系获得网络资源的固定格式用法,以便后面的in变量获得url截取网络资源的输入流*/
             HttpURLConnection connection = (HttpURLConnection) url.openConnection();
             HttpURLConnection connection = (HttpURLConnection) url.openConnection();
             DataInputStream in = new DataInputStream(connection.getInputStream());
             DataInputStream in = new DataInputStream(connection.getInputStream());