<?php
|
include_once "/language/lang.php";
|
include_once "/Common/CommFunc.php";
|
include_once "/Common/Logging.php";
|
include_once "/Account/User.php";
|
|
\Logging\CreateLogging("GMT_CrossClientServerMaintain.php");
|
|
\CommFunc\SessionStart();
|
$Permission = \User\Permission::P_CrossClientServerMaintain;
|
$spid = $_SESSION['spid'];
|
$user = new \User\User($_SESSION['UserAccount']);
|
if (!$user->HavePermission($Permission)) {
|
exit;
|
}
|
|
echo "<hr>";
|
$resultInfo = $_POST;
|
$resultMsg = $resultInfo["ResultMsg"];
|
$operate = $resultMsg["operate"];
|
if ($resultMsg["error"] == 1){
|
echo "跨服服务器不能执行该操作.";
|
}
|
else if ($operate == "cross_server_state"){
|
echo "跨服服务器IP: ".$resultMsg["CrossServerIP"]."<br/>";
|
echo "是否连着跨服: ".$resultMsg["ConnState"]." (注意该状态有1分钟左右的延迟)<br/>";
|
echo "跨服服务器是否开放中: ".$resultMsg["OpenState"]."<br/>";
|
}
|
else if ($operate == "cross_pk_state"){
|
echo "服务器组ID: ".$resultMsg["GroupID"]."<br/>";
|
echo "赛区ID: ".$resultMsg["ZoneID"]."<br/>";
|
echo "赛季ID: ".$resultMsg["SeasonID"]."<br/>";
|
echo "赛季状态: ".$resultMsg["SeasonState"]."<br/>";
|
echo "匹配状态: ".$resultMsg["MatchState"]."<br/>";
|
}
|
else if ($operate == "reconn_cross_Server"){
|
if ($resultMsg["OK"] == 1){
|
echo "同步成功";
|
}else{
|
echo "同步失败";
|
}
|
}
|
else{
|
echo "Unknown operate.";
|
}
|
?>
|