feat: 增加反馈消息闭环相关功能及文件

新增反馈目标登录白名单、账户切换守卫、待确认反馈存储、缓存生命周期管理,补充相关文档及截图,完善消息跳转逻辑
This commit is contained in:
hujun
2026-10-05 20:11:24 +08:00
parent 6b16d4fd55
commit 1723363b7e
154 changed files with 16407 additions and 114 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
export const FEEDBACK_PENDING_KEY = 'content.feedback.pending'
// 只清理指定账户命名空间,不触及其他账户或旧匿名草稿。
export function clearAccountCache(userId: string): void {
if (userId.length == 0) return
const prefix = 'airz:v1:user:' + userId + ':'
const pendingCheckIn = prefix + 'finance.points.checkin.pending'
const pendingFeedback = prefix + FEEDBACK_PENDING_KEY
uni.getStorageInfoSync().keys.forEach((key: string) => {
// 未确认的签到是恢复用命令上下文,仅保留原键/业务日/规则,重新登录后仍须服务端鉴权。
if (key.startsWith(prefix) && key != pendingCheckIn) uni.removeStorageSync(key)
// 只保留未确认命令:签到三字段、反馈原键/原文;恢复须重新登录原账户,不保留Token或列表。
if (key.startsWith(prefix) && key != pendingCheckIn && key != pendingFeedback) uni.removeStorageSync(key)
})
}