메시지 타이밍 정책 일부 수정

This commit is contained in:
2019-04-07 21:01:17 +09:00
parent 793df087ae
commit ffe4374519
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -44,11 +44,11 @@ if(count($lastMsgGet) >= 10){
}
$lastMsgGet[] = $now;
$session->lastMsgGet = Json::encode($lastMsgGet);
$session->setReadOnly();
if($delayTime){
sleep(1);
}
$session->setReadOnly();
list($generalID, $nationID, $generalName) = DB::db()->queryFirstList(
'select `no`, `nation`, `name` from `general` where owner = %i',
+2 -2
View File
@@ -30,11 +30,11 @@ if(count($lastMsgGet) >= 10){
}
$lastMsgGet[] = $now;
$session->lastMsgGet = Json::encode($lastMsgGet);
$session->setReadOnly();
if($delayTime){
sleep(0.1);
sleep(0.2);
}
$session->setReadOnly();
list($generalID, $nationID, $generalName) = DB::db()->queryFirstList(