This commit is contained in:
张成
2025-12-19 16:45:42 +08:00
parent 5e04c591d6
commit 46ba6e12c3
2 changed files with 4 additions and 6 deletions

View File

@@ -274,6 +274,7 @@ async function sendEmailCode(email) {
// Redis key // Redis key
const redis_key = `email_code:${email_lower}`; const redis_key = `email_code:${email_lower}`;
// 验证码数据 // 验证码数据
const code_data = { const code_data = {

View File

@@ -27,12 +27,9 @@ module.exports = {
// Redis配置 // Redis配置
redis: { redis: {
host: process.env.REDIS_HOST || 'localhost', "host": "192.144.167.231",
port: process.env.REDIS_PORT || 6379, "port": "6379",
password: process.env.REDIS_PASSWORD || '', "pwd": "zc123"
db: process.env.REDIS_DB || 0,
keyPrefix: 'autowork:', // key前缀
ttl: 60 * 60 * 24 * 7 // 默认过期时间(7天)
}, },
oos: { oos: {
"accessKeyId": "LTAI5tENEdLxFU7Ne9wGazsk", "accessKeyId": "LTAI5tENEdLxFU7Ne9wGazsk",