버그 수정
This commit is contained in:
+2
-1
@@ -983,8 +983,9 @@ function increaseRefresh($type = "", $cnt = 1)
|
|||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
$gameStor->refresh = $gameStor->refresh + $cnt; //TODO: +로 증가하는 값은 별도로 분리
|
$gameStor->refresh = $gameStor->refresh + $cnt; //TODO: +로 증가하는 값은 별도로 분리
|
||||||
$isunited = $gameStor->isunited;
|
$isunited = $gameStor->isunited;
|
||||||
|
$opentime = $gameStor->opentime;
|
||||||
|
|
||||||
if ($isunited != 2 && $generalID && $userGrade < 6) {
|
if ($isunited != 2 && $generalID && $userGrade < 6 && $opentime <= TimeUtil::DatetimeNow()) {
|
||||||
$db->update('general', [
|
$db->update('general', [
|
||||||
'lastrefresh' => $date,
|
'lastrefresh' => $date,
|
||||||
'con' => $db->sqleval('con + %i', $cnt),
|
'con' => $db->sqleval('con + %i', $cnt),
|
||||||
|
|||||||
Reference in New Issue
Block a user