👔 Adjust the thought wage

This commit is contained in:
2025-11-01 12:52:34 +08:00
parent b46a010e73
commit 47722cfd57

View File

@@ -134,7 +134,7 @@ public class ThoughtService(
{ {
var accountId = accountGroup.Key; var accountId = accountGroup.Key;
var totalUnpaidTokens = accountGroup.Sum(s => s.TotalToken - s.PaidToken); var totalUnpaidTokens = accountGroup.Sum(s => s.TotalToken - s.PaidToken);
var cost = (long)Math.Ceiling(totalUnpaidTokens / 1000.0); var cost = (long)Math.Ceiling(totalUnpaidTokens / 10.0);
if (cost == 0) if (cost == 0)
continue; continue;
@@ -145,7 +145,7 @@ public class ThoughtService(
await paymentService.CreateTransactionWithAccountAsync( await paymentService.CreateTransactionWithAccountAsync(
new CreateTransactionWithAccountRequest new CreateTransactionWithAccountRequest
{ {
PayeeAccountId = accountId.ToString(), PayerAccountId = accountId.ToString(),
Currency = WalletCurrency.SourcePoint, Currency = WalletCurrency.SourcePoint,
Amount = cost.ToString(), Amount = cost.ToString(),
Remarks = $"Wage for SN-chan on {date}", Remarks = $"Wage for SN-chan on {date}",