Смена названия ячейки базы.

This commit is contained in:
lopar 2020-10-28 00:59:37 +02:00
parent 5dce7c644f
commit 4251027063
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class Bank
$text = self::LOG_WITHDRAW . " Комиссия: " . $this->bankComission($amount); $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); 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); db::c()->query('UPDATE bank SET money = ?i WHERE user_id = ?i', $amount, $user_id);
if ($operationType) { if ($operationType) {
(new Bank)->bankLogs(0, $amount, $operationType); (new Bank($user_id))->bankLogs(0, $amount, $operationType);
} }
} }