feat: 数据概览简化 + 用户管理增加余额/提现列
- 数据概览:去掉代付统计独立卡片,总收入中以小标签显示代付金额 - 数据概览:移除余额统计区块(余额改在用户管理中展示) - 数据概览:恢复转化率卡片(唯一付费用户/总用户) - 用户管理:用户列表新增「余额/提现」列,显示钱包余额和已提现金额 - 后端:DBUsersList 增加 user_balances 查询,返回 walletBalance 字段 - 后端:User model 添加 WalletBalance 非数据库字段 - 包含之前的小程序埋点和管理后台点击统计面板 Made-with: Cursor
This commit is contained in:
@@ -46,7 +46,7 @@ func SearchGet(c *gin.Context) {
|
||||
Select("id, mid, section_title, part_title, chapter_title, price, is_free, '' as snippet").
|
||||
Where("section_title LIKE ?", pattern).
|
||||
Order("sort_order ASC, id ASC").
|
||||
Limit(30).
|
||||
Limit(3).
|
||||
Find(&titleMatches)
|
||||
|
||||
titleIDs := make(map[string]bool, len(titleMatches))
|
||||
@@ -55,7 +55,7 @@ func SearchGet(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 第二步:内容匹配(排除已命中标题的,用 SQL 提取摘要避免加载完整 content)
|
||||
remaining := 50 - len(titleMatches)
|
||||
remaining := 20 - len(titleMatches)
|
||||
var contentMatches []searchRow
|
||||
if remaining > 0 {
|
||||
contentQ := db.Model(&model.Chapter{}).
|
||||
|
||||
Reference in New Issue
Block a user