🐛 Fix bugs

This commit is contained in:
2025-09-08 02:22:03 +08:00
parent 92e4988114
commit ad062828ff

View File

@@ -192,12 +192,14 @@ public class PaymentService(
Notification = new PushNotification Notification = new PushNotification
{ {
Topic = "wallets.transactions", Topic = "wallets.transactions",
Title = transaction.Amount > 0 Title = localizer["TransactionNewTitle", readableTransactionRemark],
? localizer["TransactionNewBodyMinus", readableTransactionRemark] Body = transaction.Amount > 0
: localizer["TransactionNewBodyPlus", readableTransactionRemark], ? localizer["TransactionNewBodyMinus",
Body = localizer["TransactionNewTitle", transaction.Amount.ToString(CultureInfo.InvariantCulture),
transaction.Amount.ToString(CultureInfo.InvariantCulture), transaction.Currency]
transaction.Currency], : localizer["TransactionNewBodyPlus",
transaction.Amount.ToString(CultureInfo.InvariantCulture),
transaction.Currency],
IsSavable = true IsSavable = true
} }
} }
@@ -224,12 +226,14 @@ public class PaymentService(
Notification = new PushNotification Notification = new PushNotification
{ {
Topic = "wallets.transactions", Topic = "wallets.transactions",
Title = transaction.Amount > 0 Title = localizer["TransactionNewTitle", readableTransactionRemark],
? localizer["TransactionNewBodyPlus", readableTransactionRemark] Body = transaction.Amount > 0
: localizer["TransactionNewBodyMinus", readableTransactionRemark], ? localizer["TransactionNewBodyPlus",
Body = localizer["TransactionNewTitle", transaction.Amount.ToString(CultureInfo.InvariantCulture),
transaction.Amount.ToString(CultureInfo.InvariantCulture), transaction.Currency]
transaction.Currency], : localizer["TransactionNewBodyMinus",
transaction.Amount.ToString(CultureInfo.InvariantCulture),
transaction.Currency],
IsSavable = true IsSavable = true
} }
} }