|
@@ -17,6 +17,8 @@ import java.io.InputStream;
|
|
|
import java.net.HttpURLConnection;
|
|
|
import java.net.URI;
|
|
|
import java.net.URL;
|
|
|
+import java.net.URLEncoder;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
@@ -92,7 +94,8 @@ public class OSSService {
|
|
|
ossClient.putObject(bucket, fileUrl , inputStream);
|
|
|
inputStream.reset();
|
|
|
|
|
|
- return "https://cxzx.smcic.net/" + fileUrl;
|
|
|
+ String encodedString = URLEncoder.encode(fileUrl, StandardCharsets.UTF_8);
|
|
|
+ return "https://cxzx.smcic.net/" + encodedString;
|
|
|
}
|
|
|
|
|
|
|