Реализация ChatMessageDTO.
This commit is contained in:
+8
-6
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user