新增匹配次数管理功能,优化用户匹配体验。通过服务端计算用户的匹配配额,更新用户状态以反映剩余匹配次数。同时,调整匹配页面逻辑,确保在匹配次数用尽时提示用户购买更多次数。更新相关API以支持匹配记录的存储与查询,提升系统稳定性。
This commit is contained in:
@@ -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')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user