feat: 接入积分服务端真实接口并完成隔离联调

新增积分服务端接口封装、积分中心页面,支持登录回跳、签到恢复、积分明细等功能。清理缓存时保留未确认签到键,新增ApiRequestError错误类型区分业务状态,更新开发文档记录积分页面联调完成情况。
This commit is contained in:
hujun
2026-10-04 08:29:53 +08:00
parent 2a9ff403c4
commit 6b16d4fd55
9 changed files with 555 additions and 150 deletions
+3 -1
View File
@@ -2,8 +2,10 @@
export function clearAccountCache(userId: string): void {
if (userId.length == 0) return
const prefix = 'airz:v1:user:' + userId + ':'
const pendingCheckIn = prefix + 'finance.points.checkin.pending'
uni.getStorageInfoSync().keys.forEach((key: string) => {
if (key.startsWith(prefix)) uni.removeStorageSync(key)
// 未确认的签到是恢复用命令上下文,仅保留原键/业务日/规则,重新登录后仍须服务端鉴权。
if (key.startsWith(prefix) && key != pendingCheckIn) uni.removeStorageSync(key)
})
}