빙의 안되는 버그 수정, 가입/빙의 시 락

This commit is contained in:
2019-08-18 18:01:11 +09:00
parent 28d5a5c39a
commit fb7c67f317
3 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ $gameStor = KVStorage::getStorage($db, 'game_env');
$gameStor->cacheValues(['year','month','maxgeneral','scenario','show_img_level','turnterm','turntime','genius','npcmode']);
########## 동일 정보 존재여부 확인. ##########
$db->query("lock tables plock write");
$db->query("lock tables general write, city read, storage read");
$gencount = $db->queryFirstField('SELECT count(`no`) FROM general WHERE npc<2');
$oldGeneral = $db->queryFirstField('SELECT `no` FROM general WHERE `owner`=%i', $userID);