hxp
2025-01-18 b343ec3396078e00b23d380a224f2b70b03a3a1b
10284 【后台】服务器名重名时加_serverID进行区分;
2个文件已修改
117 ■■■■■ 已修改文件
Account/Server/Server_test.ini 110 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Common/ServerOPS.php 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Account/Server/Server_test.ini
@@ -1,48 +1,62 @@
[chengxukf]
Page=http://vm-chengxukf/Server/Tool.php
[ale 86]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=86
[ale 87]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=87
[ale 89]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=89
MainServer=87
[ale 90]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=90
MainServer=87
[ale 100]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=100
[ale 187]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=187
[公共服]
Page=http://mobile.173on.com:30080/Server/Tool.php
[mobile-hzr]
Page=http://mobile-hzr/Server/Tool.php
[s1-阿双冠名]
Page=http://s1.sohagame.secondworld.net.cn:55080/Server/Tool.php
ServerID=1
[s2-冠名GM]
Page=http://s2.sohagame.secondworld.net.cn:55080/Server/Tool.php
ServerID=2
MainServer=1
[s3-阿双丰收]
Page=http://s3.sohagame.secondworld.net.cn:55080/Server/Tool.php
ServerID=3
[chengxukf]
Page=http://vm-chengxukf/Server/Tool.php
[ale 86]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=86
[ale 87]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=87
[ale 89]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=89
MainServer=87
[ale 90]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=90
MainServer=87
[ale 100]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=100
[ale 187]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=187
[公共服]
Page=http://mobile.173on.com:30080/Server/Tool.php
[mobile-hzr]
Page=http://mobile-hzr/Server/Tool.php
[s1]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=1
[s2]
Page=http://vm-mobile/Server/Tool.php
ServerID=2
[s3]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=3
[s1_1001]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=1001
MainServer=1001
[s2_1002]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=1002
MainServer=1001
[s3_1003]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=1003
MainServer=1001
Common/ServerOPS.php
@@ -89,7 +89,11 @@
        if ($MainServerID > 0) {
            $optinArray["MainServer"] = $MainServerID;
        }
        $channelServerIniArray[$ServerName] = $optinArray;
        if (array_key_exists($ServerName, $channelServerIniArray)) {
            $channelServerIniArray[$ServerName . "_" . $ServerID] = $optinArray;
        } else {
            $channelServerIniArray[$ServerName] = $optinArray;
        }
        array_push($channelServerIDArray, $ServerID);
        // 更新合服映射
@@ -275,6 +279,7 @@
    if (count($refreshJsonFileArray) > 0) {
        AddSuccessLog($Channel, $UserAccount, \User\Permission::P_OPSRefreshServer, array("JsonBranchList" => $JsonBranchList));
    }
    RefreshServerListIni($Channel);
    return $refreshJsonFileArray;
}