mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-04-02 23:15:59 +00:00
fix: 删除广告,增添无记录显示
This commit is contained in:
@@ -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 [] }
|
||||
}
|
||||
|
||||
|
||||
@@ -200,8 +200,12 @@ export const BizMessageArea: React.FC<{
|
||||
</div>
|
||||
<div className="message-container" onScroll={handleScroll} ref={messageListRef}>
|
||||
<div className="messages-wrapper">
|
||||
{messages.map((msg) => (
|
||||
<div key={msg.local_id}>
|
||||
{!loading && messages.length === 0 && (
|
||||
<div className="biz-no-record">
|
||||
<p>暂无本地记录</p>
|
||||
</div>
|
||||
)}
|
||||
{messages.map((msg) => ( <div key={msg.local_id}>
|
||||
{account.username === 'gh_3dfda90e39d6' ? (
|
||||
<div className="pay-card">
|
||||
<div className="pay-header">
|
||||
|
||||
Reference in New Issue
Block a user