forked from devsam/core
메시지 타이밍 정책 일부 수정
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user