fix: 删除广告,增添无记录显示

This commit is contained in:
H3CoF6
2026-04-03 04:48:39 +08:00
parent 617b400884
commit 17b8af4bc4
2 changed files with 14 additions and 8 deletions

View File

@@ -194,12 +194,14 @@ export class BizService {
for (const acc of result) if (typeMap[acc.username] !== undefined) acc.type = typeMap[acc.username]
}
}
return result.sort((a, b) => {
if (a.username === 'gh_3dfda90e39d6') return -1
if (b.username === 'gh_3dfda90e39d6') return 1
return b.last_time - a.last_time
})
// 6. 排序与过滤:微信支付置顶,过滤朋友圈广告,其余按时间降序
return result
.filter(acc => !acc.name.includes('朋友圈广告'))
.sort((a, b) => {
if (a.username === 'gh_3dfda90e39d6') return -1
if (b.username === 'gh_3dfda90e39d6') return 1
return b.last_time - a.last_time
})
} catch (e) { return [] }
}