기본 커맨드를 새 turn 테이블 기준으로 변경

This commit is contained in:
2018-09-30 03:17:55 +09:00
parent a02454e2b4
commit 731a6e9587
5 changed files with 17 additions and 115 deletions
+4 -6
View File
@@ -8,12 +8,10 @@ $session = Session::requireGameLogin()->setReadOnly();
$userID = Session::getUserID();
$db = DB::db();
$connect=$db->get();
$me = $db->queryFirstRow('SELECT no,nation,level FROM general WHERE owner=%i', $userID);
$query = "select no from general where owner='{$userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
backupdateCommand($me['no'], 2);
if($me['level'] >= 5 && $me['nation'] > 0){
pushNationCommand($me['nation'], $me['level']);
}
header('location:b_chiefcenter.php');