1231123
This commit is contained in:
@@ -18,8 +18,6 @@ public class CaiFileUtils {
|
||||
private String suffix;
|
||||
}
|
||||
|
||||
private static String BASE_URL = "https://nono-1257812345.cos.ap-shanghai.myqcloud.com/";
|
||||
|
||||
public static FileSize getFastFileSize(String url){
|
||||
return new FileSize();
|
||||
}
|
||||
@@ -29,7 +27,7 @@ public class CaiFileUtils {
|
||||
String suffix = StringUtils.substring(url, url.lastIndexOf("."), url.length());
|
||||
fileSize.setSuffix(suffix);
|
||||
try {
|
||||
URL imageUrl = new URL(BASE_URL+url); // 替换为实际的图片 URL
|
||||
URL imageUrl = new URL(url); // 替换为实际的图片 URL
|
||||
BufferedImage image = ImageIO.read(imageUrl);
|
||||
int width = image.getWidth();
|
||||
int height = image.getHeight();
|
||||
|
||||
Reference in New Issue
Block a user