| <?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"]); |