국적 변경시 permission 초기화

This commit is contained in:
2019-01-25 20:30:02 +09:00
parent 82f59ef5a2
commit ffbf2d0a93
5 changed files with 8 additions and 1 deletions
+1
View File
@@ -150,6 +150,7 @@ if($btn == "추방") {
'level'=>0,
'nation'=>0,
'belong'=>0,
'permission'=>'normal',
], 'no=%i', $general['no']);
}
else{
+3 -1
View File
@@ -12,7 +12,9 @@ $gameStor = KVStorage::getStorage($db, 'game_env');
$killturn = $gameStor->killturn;
$db->update('general', ['killturn'=>$killturn*3], 'owner=%i', $userID);
$db->update('general', [
'killturn'=>$killturn*3,
], 'owner=%i', $userID);
header('location:b_myPage.php');
+1
View File
@@ -1953,6 +1953,7 @@ function updateTurntime($no) {
'npc'=>$general['npc_org'],
'killturn'=>$general['killturn'],
'mode'=>2,
'permission'=>'normal',
'name2'=>null
], 'no=%i',$no);
+2
View File
@@ -776,6 +776,7 @@ function checkMerge() {
$db->update('general', [
'nation'=>0,
'permission'=>'normal',
], 'nation=%i AND npc = 5', $me['nation']);
$query = "delete from nation where nation='{$me['nation']}'";
@@ -922,6 +923,7 @@ function checkSurrender() {
$db->update('general', [
'nation'=>0,
'permission'=>'normal',
], 'nation=%i AND npc = 5', $me['nation']);
$query = "delete from nation where nation='{$me['nation']}'";
+1
View File
@@ -77,6 +77,7 @@ $db->update('general', [
'npc'=>1,
'killturn'=>6,
'mode'=>2,
'permission'=>'normal',
'owner'=>$userID,
], 'owner <= 0 AND npc = 2 AND no = %i', $pick);