From 3bf14a7c469a7157734b25b439eb9e906522fcf9 Mon Sep 17 00:00:00 2001
From: zjk <852185829@qq.com>
Date: 星期一, 12 十月 2026 14:45:12 +0800
Subject: [PATCH] feat(miniapp, ruoyi-auth, ruoyi-user): 实现C端会员小程序登录注册与推荐码系统
---
hugray-server/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/hugray-server/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java b/hugray-server/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
index 1d2510e..2d99829 100644
--- a/hugray-server/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
+++ b/hugray-server/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
@@ -56,4 +56,29 @@
* 登录IP黑名单 cache key
*/
public static final String SYS_LOGIN_BLACKIPLIST = SYS_CONFIG_KEY + "sys.login.blackIPList";
+
+ /**
+ * 短信验证码 redis key
+ */
+ public static final String SMS_CODE_KEY = "sms_codes:";
+
+ /**
+ * 短信验证码发送频率限制 redis key
+ */
+ public static final String SMS_CODE_LIMIT_KEY = "sms_code_limits:";
+
+ /**
+ * 短信验证码错误次数 redis key
+ */
+ public static final String SMS_CODE_ERR_KEY = "sms_code_errs:";
+
+ /**
+ * C端会员注册分布式锁 redis key
+ */
+ public static final String ACCOUNT_REGISTER_LOCK_KEY = "account_register_locks:";
+
+ /**
+ * 微信小程序全局 access_token redis key
+ */
+ public static final String WECHAT_ACCESS_TOKEN_KEY = "wechat_miniapp_token:";
}
--
Gitblit v1.7.1