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

This commit is contained in:
2018-11-30 19:03:26 +09:00
parent a717a021c2
commit bf34b2f1ca
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(