feat: 修复 Redis 超时问题、固定小程序端口、新增人生事件模块及优化多个页面

- 修复 Redis 超时:添加 commons-pool2 依赖,启用 Lettuce 连接池,超时提升至 15s
- 固定 mini-program H5 端口为 5175,避免与 web 项目端口冲突
- 新增人生事件(life-event)模块:表单和详情页面
- 新增 EpicScript 灵感接口(Controller/Service/DTO)
- 优化登录、引导、主页、记录、剧本详情等多个页面
- 优化服务管理脚本和 Nginx 配置

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 11:38:35 +08:00
parent 507d1ebdab
commit 60c63850ee
36 changed files with 4545 additions and 3043 deletions
+6
View File
@@ -93,6 +93,11 @@ export const validateToken = async () => {
}
}
export const validateTokenStrict = async () => {
const response = await get('/auth/validateToken')
return response.data === true
}
/**
* 获取当前用户信息
* @returns {Promise<Object>} 用户信息
@@ -118,6 +123,7 @@ export default {
logout,
refreshToken,
validateToken,
validateTokenStrict,
getCurrentUserInfo,
checkPhone
}