hxp
2025-06-09 6c3f6335c70859ded94a1ad8d218acb0ac34239c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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.";
}
?>