|
@@ -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();
|