try fix business error
This commit is contained in:
@@ -66,21 +66,21 @@ namespace reallife_gamemode.Server.Managers
|
|||||||
|
|
||||||
if (senderAccount.Balance < amount) return TransactionResult.SENDER_NOT_ENOUGH_MONEY;
|
if (senderAccount.Balance < amount) return TransactionResult.SENDER_NOT_ENOUGH_MONEY;
|
||||||
|
|
||||||
var transactionLog = new Logs.BankAccountTransactionHistory
|
//var transactionLog = new Logs.BankAccountTransactionHistory
|
||||||
{
|
//{
|
||||||
Sender = sender.Name,
|
// Sender = sender.Name,
|
||||||
SenderBalance = senderAccount.Balance,
|
// SenderBalance = senderAccount.Balance,
|
||||||
Receiver = receiver.Name,
|
// Receiver = receiver.Name,
|
||||||
ReceiverBalance = receiverAccount.Balance,
|
// ReceiverBalance = receiverAccount.Balance,
|
||||||
NewReceiverBalance = receiverAccount.Balance + amount,
|
// NewReceiverBalance = receiverAccount.Balance + amount,
|
||||||
NewSenderBalance = senderAccount.Balance - amount,
|
// NewSenderBalance = senderAccount.Balance - amount,
|
||||||
MoneySent = amount,
|
// MoneySent = amount,
|
||||||
Fee = 0,
|
// Fee = 0,
|
||||||
Origin = origin
|
// Origin = origin
|
||||||
};
|
//};
|
||||||
|
|
||||||
// add log
|
//// add log
|
||||||
transferMoney.BankAccountTransactionLogs.Add(transactionLog);
|
//transferMoney.BankAccountTransactionLogs.Add(transactionLog);
|
||||||
|
|
||||||
senderAccount.Balance -= amount;
|
senderAccount.Balance -= amount;
|
||||||
receiverAccount.Balance += amount;
|
receiverAccount.Balance += amount;
|
||||||
|
|||||||
Reference in New Issue
Block a user