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
<?php
include_once "/Common/Logging.php";
include_once "/Common/CommFunc.php";
 
$channel = $_GET["channel"];
$serverID = intval($_GET["serverID"]);
 
\Logging\CreateLogging("serverops.checkOpenServer.php");
 
\Logging\LogInfo("_GET:" . print_r($_GET, true));
// 检查服务器开服相关是否正常,如开服天、版本号等
$packData = array();
$retList = \CommFunc\SendGMTToGameServers(True, "GMT_CheckOpenServer", $packData, $channel, array($serverID));
\Logging\LogInfo("retList:" . print_r($retList, true));
if (!is_array($retList)) {
    echo "{}";
    exit;
}
$ret = json_decode($retList[$serverID], true);
if (!$ret || !array_key_exists("ResultType", $ret)) {
    echo "{}";
    exit;
}
echo json_encode($ret["ResultMsg"]);