From 7fe1bd7734e8a1f80523d5fce34290e3f20a7403 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Sun, 21 Aug 2022 21:09:23 +0800 Subject: [PATCH] 新增邮件消息自提醒 --- snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/context/constant/ConstantContextHolder.java | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/context/constant/ConstantContextHolder.java b/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/context/constant/ConstantContextHolder.java index f764c9e..15b540a 100644 --- a/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/context/constant/ConstantContextHolder.java +++ b/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/context/constant/ConstantContextHolder.java @@ -139,7 +139,7 @@ * @date 2020/6/19 18:08 */ public static AliyunSmsConfigs getAliyunSmsConfigs() { - String snowySmsAccesskeyId = getSysConfig("SNOWY_ALIYUN_SMS_ACCESSKEY_ID", String.class, true); + String snowySmsAccesskeyId = getSysConfig("SNOWY_ALIYUN_SMS_ACCESSKEY_ID", String.class, true); String snowySmsAccesskeySecret = getSysConfig("SNOWY_ALIYUN_SMS_ACCESSKEY_SECRET", String.class, true); String snowySmsSignName = getSysConfig("SNOWY_ALIYUN_SMS_SIGN_NAME", String.class, true); String snowySmsLoginTemplateCode = getSysConfig("SNOWY_ALIYUN_SMS_LOGIN_TEMPLATE_CODE", String.class, true); @@ -322,6 +322,7 @@ return getSysConfig("SNOWY_ONLY_OFFICE_SERVICE_URL", String.class, true); } + /** * 获取config表中的配置,如果为空返回默认值 * @@ -410,4 +411,30 @@ return cryptogramConfigs; } + /** + * 获取blog资源地址访问前缀 + * + * @return + */ + public static String getBlogSourcePrefix() { + return getSysConfig("visit", String.class, true); + } + + /** + * 授权访客密码 + * + * @author inleft + */ + public static String getAuthCode() { + return getSysConfigWithDefault("inleft_AuthCode", String.class, null); + } + + /** + * 推送内容密码 + * + * @author inleft + */ + public static String getPushCode() { + return getSysConfigWithDefault("inleft_PushCode", String.class, null); + } } -- Gitblit v1.9.1