👔 Adjust the thought wage
This commit is contained in:
@@ -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}",
|
||||||
|
|||||||
Reference in New Issue
Block a user