Оказывается time(-1) = time().

This commit is contained in:
2023-02-01 12:14:21 +02:00
parent acf6a2d167
commit 00c76de9d5
5 changed files with 3 additions and 8 deletions
+3 -2
View File
@@ -395,8 +395,9 @@ class ChatMessage
{
$params = json_decode($json, true);
foreach ($params as $param => $value) {
if (property_exists($this, $param)) {
$this->$param = $value;
$method = 'set' . ucfirst($param);
if (method_exists(self::class, $method)) {
$this->$method($value);
}
}
}
-1
View File
@@ -211,7 +211,6 @@ class GameDealer
$chatDto->setTo($user['login']);
$chatDto->setText($r);
$chatDto->setType(5);
$chatDto->setTime(-1);
(new Chat())->sendMsg($chatDto);
} else {
$this->BACK = [['gdanswer', [['status', '-1'], ['desc', 'У пользователя отсутствует банк'], ['id', $this->c['id']]]]];
-2
View File
@@ -880,7 +880,6 @@ class Quests
$chatDto->setTo($u->info['login']);
$chatDto->setText($r);
$chatDto->setType(5);
$chatDto->setTime(-1);
(new Chat())->sendMsg($chatDto);
return $r;
@@ -1003,7 +1002,6 @@ class Quests
$chatDto->setTo($u->info['login']);
$chatDto->setText($r);
$chatDto->setType(5);
$chatDto->setTime(-1);
(new Chat())->sendMsg($chatDto);
}
}
-1
View File
@@ -41,7 +41,6 @@ if ($u->info['login'] == $usr['login']) {
$chatDto->setTo($usr['login']);
$chatDto->setText("Персонаж <b>{$u->info['login']}</b> украл у вас эффект {$eff['name']}.");
$chatDto->setType(6);
$chatDto->setTime(-1);
(new Chat())->sendMsg($chatDto);
$chatDto = new ChatMessage();