This commit is contained in:
77
2024-06-01 22:15:13 +08:00
parent 3b7afaf571
commit 687f2e574e
2 changed files with 2 additions and 4 deletions

View File

@@ -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),

View File

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