update 优化使用 SystemConstants 替代硬编码的状态值

This commit is contained in:
AprilWind
2026-03-18 13:07:41 +08:00
parent 4b3fa35993
commit 72ac989614
7 changed files with 13 additions and 26 deletions

View File

@@ -18,25 +18,15 @@ public interface SystemConstants {
String DISABLE = "1";
/**
* 是否为系统默认(是)
* 是
*/
String YES = "Y";
/**
* 是否为系统默认(否)
*
*/
String NO = "N";
/**
* 是否菜单外链(是)
*/
String YES_FRAME = "Y";
/**
* 是否菜单外链(否)
*/
String NO_FRAME = "N";
/**
* 菜单类型(目录)
*/

View File

@@ -32,9 +32,4 @@ public interface OssConstant {
*/
String[] CLOUD_SERVICE = new String[] {"aliyun", "qcloud", "qiniu", "obs"};
/**
* https 状态
*/
String IS_HTTPS = "Y";
}

View File

@@ -4,6 +4,7 @@ import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.IdUtil;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.constant.Constants;
import org.dromara.common.core.constant.SystemConstants;
import org.dromara.common.core.utils.DateUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.core.utils.file.FileUtils;
@@ -542,7 +543,7 @@ public class OssClient {
* @return 协议头部,根据是否使用 HTTPS 返回 "https://" 或 "http://"
*/
public String getIsHttps() {
return OssConstant.IS_HTTPS.equals(properties.getIsHttps()) ? Constants.HTTPS : Constants.HTTP;
return SystemConstants.YES.equals(properties.getIsHttps()) ? Constants.HTTPS : Constants.HTTP;
}
/**