新增匹配次数管理功能,优化用户匹配体验。通过服务端计算用户的匹配配额,更新用户状态以反映剩余匹配次数。同时,调整匹配页面逻辑,确保在匹配次数用尽时提示用户购买更多次数。更新相关API以支持匹配记录的存储与查询,提升系统稳定性。

This commit is contained in:
乘风
2026-02-11 16:53:17 +08:00
parent ecee1bb2bb
commit a1dcf599ee
18 changed files with 422 additions and 229 deletions

View File

@@ -32,6 +32,8 @@ App({
// 购买记录
purchasedSections: [],
hasFullBook: false,
matchCount: 0,
matchQuota: null,
// 已读章节(仅统计有权限打开过的章节,用于首页「已读/待读」)
readSectionIds: [],
@@ -482,7 +484,9 @@ App({
this.globalData.isLoggedIn = false
this.globalData.purchasedSections = []
this.globalData.hasFullBook = false
this.globalData.matchCount = 0
this.globalData.matchQuota = null
wx.removeStorageSync('userInfo')
wx.removeStorageSync('token')
},