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