mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
给箭头改成对号
This commit is contained in:
@@ -2431,8 +2431,23 @@ class ChatService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解析付款方名称:群昵称 > 备注 > 昵称 > alias > wxid
|
// 获取当前用户 wxid,用于识别"自己"
|
||||||
|
const myWxid = this.configService.get('myWxid')
|
||||||
|
const cleanedMyWxid = myWxid ? this.cleanAccountDirName(myWxid) : ''
|
||||||
|
|
||||||
|
// 解析付款方名称:自己 > 群昵称 > 备注 > 昵称 > alias > wxid
|
||||||
const resolveName = async (username: string): Promise<string> => {
|
const resolveName = async (username: string): Promise<string> => {
|
||||||
|
// 特判:如果是当前用户自己(contact 表通常不包含自己)
|
||||||
|
if (myWxid && (username === myWxid || username === cleanedMyWxid)) {
|
||||||
|
// 先查群昵称中是否有自己
|
||||||
|
const myGroupNick = groupNicknames[username]
|
||||||
|
if (myGroupNick) return myGroupNick
|
||||||
|
// 尝试从缓存获取自己的昵称
|
||||||
|
const cached = this.avatarCache.get(username) || this.avatarCache.get(myWxid)
|
||||||
|
if (cached?.displayName) return cached.displayName
|
||||||
|
return '我'
|
||||||
|
}
|
||||||
|
|
||||||
// 先查群昵称
|
// 先查群昵称
|
||||||
const groupNick = groupNicknames[username]
|
const groupNick = groupNicknames[username]
|
||||||
if (groupNick) return groupNick
|
if (groupNick) return groupNick
|
||||||
|
|||||||
@@ -3187,10 +3187,17 @@ function MessageBubble({ message, session, showTime, myAvatarUrl, isGroupChat, o
|
|||||||
return (
|
return (
|
||||||
<div className={`transfer-message ${isReceived ? 'received' : ''}`}>
|
<div className={`transfer-message ${isReceived ? 'received' : ''}`}>
|
||||||
<div className="transfer-icon">
|
<div className="transfer-icon">
|
||||||
|
{isReceived ? (
|
||||||
|
<svg width="32" height="32" viewBox="0 0 40 40" fill="none">
|
||||||
|
<circle cx="20" cy="20" r="18" stroke="white" strokeWidth="2" />
|
||||||
|
<path d="M12 20l6 6 10-12" stroke="white" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />
|
||||||
|
</svg>
|
||||||
|
) : (
|
||||||
<svg width="32" height="32" viewBox="0 0 40 40" fill="none">
|
<svg width="32" height="32" viewBox="0 0 40 40" fill="none">
|
||||||
<circle cx="20" cy="20" r="18" stroke="white" strokeWidth="2" />
|
<circle cx="20" cy="20" r="18" stroke="white" strokeWidth="2" />
|
||||||
<path d="M12 20h16M20 12l8 8-8 8" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
|
<path d="M12 20h16M20 12l8 8-8 8" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
|
||||||
</svg>
|
</svg>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="transfer-info">
|
<div className="transfer-info">
|
||||||
<div className="transfer-amount">{displayAmount}</div>
|
<div className="transfer-amount">{displayAmount}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user