Реализация ChatMessageDTO.

This commit is contained in:
2023-01-28 04:24:37 +02:00
parent d9ec810f7f
commit 99b90a198b
105 changed files with 11492 additions and 10578 deletions
+8 -6
View File
@@ -142,12 +142,14 @@ if (isset($_GET['bet'])) {
$gid = mysql_insert_id();
//
if ($win > 0) {
mysql_query(
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','" . $u->info['city'] . "','390','','','<small>[<b><font color=0066ff>Крупье</font></b>] Игрок <b>" . mysql_real_escape_string(
$u->info['login']
) . "</b> выиграл <b>" . ($s * $win) . ".00</b> екр., ставка: " . $s . ".00 екр., игра №" . $gid . "</small>','" . time(
) . "','6','0')"
);
$prize = $s * $win;
$chatDto = new ChatMessage();
$chatDto->setCity($u->info['city']);
$chatDto->setRoom(390);
$chatDto->setLogin('<span style="color: #0066FF">Крупье</span>');
$chatDto->setText("<small>Игрок {$u->info['login']} выиграл $prize екр, ставка $s екр, игра №$gid</small>");
$chatDto->setType(6);
(new Chat())->sendMsg($chatDto);
}
//
$r .= 'cash=' . floor($u->bank['money2']);