locations-bugs #17
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user