커맨드 버튼 재 구성.
$session 접근하는 변수에 Instance 지정
This commit is contained in:
@@ -455,6 +455,7 @@ function getCoreTurn($nation, $level) {
|
||||
|
||||
|
||||
function processCommand($no) {
|
||||
$session = Session::Instance();
|
||||
$db = DB::db();
|
||||
$connect=$db->get();
|
||||
|
||||
@@ -684,6 +685,7 @@ where nation='{$general['nation']}'
|
||||
function command_Single($turn, $command) {
|
||||
$db = DB::db();
|
||||
$connect=$db->get();
|
||||
$session = Session::Instance();
|
||||
|
||||
$command = EncodeCommand(0, 0, 0, $command);
|
||||
|
||||
@@ -702,6 +704,7 @@ function command_Single($turn, $command) {
|
||||
function command_Chief($turn, $command) {
|
||||
$db = DB::db();
|
||||
$connect=$db->get();
|
||||
$session = Session::Instance();
|
||||
|
||||
$command = EncodeCommand(0, 0, 0, $command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user