fix: notice
This commit is contained in:
@@ -336,7 +336,7 @@ class TransferService
|
||||
private function notifyTransferTelegram(array $record, array $result): void
|
||||
{
|
||||
$operator = (string) ($record['operator'] ?? '');
|
||||
if ($operator !== 'auto') {
|
||||
if (str_starts_with($operator, 'fee-topup')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -357,6 +357,7 @@ class TransferService
|
||||
isset($record['to_address']) ? (string) $record['to_address'] : null,
|
||||
isset($record['tx_hash']) ? (string) $record['tx_hash'] : null,
|
||||
isset($record['error']) ? (string) $record['error'] : ($result['error'] ?? null),
|
||||
$operator !== '' ? $operator : null,
|
||||
);
|
||||
} catch (\Throwable) {
|
||||
// never break transfer for telegram
|
||||
|
||||
Reference in New Issue
Block a user