feat: 完善后台管理+搜索功能+分销系统
主要更新: - 后台菜单精简(9项→6项) - 新增搜索功能(敏感信息过滤) - 分销绑定和提现系统完善 - 数据库初始化API(自动修复表结构) - 用户管理:显示绑定关系详情 - 小程序:上下章导航优化、匹配页面重构 - 修复hydration和数据类型问题
This commit is contained in:
@@ -562,9 +562,6 @@ export const useStore = create<StoreState>()(
|
||||
updatedUser.purchasedSections = [...updatedUser.purchasedSections, purchaseData.sectionId]
|
||||
}
|
||||
|
||||
// 更新 users 数组
|
||||
const updatedUsers = state.users?.map((u) => (u.id === updatedUser.id ? updatedUser : u)) || []
|
||||
|
||||
return {
|
||||
purchases: [...state.purchases, newPurchase],
|
||||
user: updatedUser,
|
||||
|
||||
Reference in New Issue
Block a user