locations-bugs #17

Merged
lopar merged 12 commits from locations-bugs into master 2020-10-28 20:25:45 +00:00
Showing only changes of commit 4251027063 - Show all commits

View File

@ -79,7 +79,7 @@ class Bank
$text = self::LOG_WITHDRAW . " Комиссия: " . $this->bankComission($amount);
}
db::c()->query('INSERT INTO `bank_logs` (sender_id, receiver_id, amount, type, text)
db::c()->query('INSERT INTO `bank_logs` (sender_id, receiver_id, amount_result, type, text)
VALUES (?i, ?i, ?i, "?s", "?s")', $senderId, $receiverId, $amount, $operationType, $text);
}
@ -183,7 +183,7 @@ class Bank
{
db::c()->query('UPDATE bank SET money = ?i WHERE user_id = ?i', $amount, $user_id);
if ($operationType) {
(new Bank)->bankLogs(0, $amount, $operationType);
(new Bank($user_id))->bankLogs(0, $amount, $operationType);
}
}