From 4251027063c0ee0a3a073146a438890a6b4f669e Mon Sep 17 00:00:00 2001 From: lopar Date: Wed, 28 Oct 2020 00:59:37 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=8F=D1=87=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B1=D0=B0=D0=B7=D1=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/Bank.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Bank.php b/classes/Bank.php index e7fe40b..b5c1c37 100644 --- a/classes/Bank.php +++ b/classes/Bank.php @@ -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); } }