1231123
This commit is contained in:
@@ -95,7 +95,7 @@ public enum SystemConfigEnum {
|
||||
VIP_PRIVATE_PLUS("0", "开启VIP隐私模式增强模式",SystemConfigGroupEnum.SYSTEM,new BooleanSystemConfigCheck()),
|
||||
OPEN_USER_CHAT_COUNT("0", "开启用户主动消息统计",SystemConfigGroupEnum.SYSTEM,new BooleanSystemConfigCheck()),
|
||||
IM_FILTER_PLUS("0", "IM拦截配置(勿动,开发配置)",SystemConfigGroupEnum.SYSTEM),
|
||||
COS_DOMAIN("http://nono-1257812345.cos.ap-shanghai.myqcloud.com/", "文件系统域名前缀",SystemConfigGroupEnum.SYSTEM),
|
||||
COS_DOMAIN("http://ap-shanghai.myqcloud.com/", "文件系统域名前缀",SystemConfigGroupEnum.SYSTEM),
|
||||
SYSTEM_CUSTOMER_SERVICE("2,4", "系统客服",SystemConfigGroupEnum.SYSTEM),
|
||||
PRIVACY_AGREEMENT("/#/agreement/privacy", "隐私协议地址",SystemConfigGroupEnum.SYSTEM),
|
||||
USER_AGREEMENT("/#/agreement/user", "用户协议地址",SystemConfigGroupEnum.SYSTEM),
|
||||
|
||||
@@ -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