hxp
2025-01-18 b343ec3396078e00b23d380a224f2b70b03a3a1b
10284 【后台】服务器名重名时加_serverID进行区分;
2个文件已修改
33 ■■■■ 已修改文件
Account/Server/Server_test.ini 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Common/ServerOPS.php 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Account/Server/Server_test.ini
@@ -33,16 +33,30 @@
[mobile-hzr]
Page=http://mobile-hzr/Server/Tool.php
[s1-阿双冠名]
Page=http://s1.sohagame.secondworld.net.cn:55080/Server/Tool.php
[s1]
Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php
ServerID=1
[s2-冠名GM]
Page=http://s2.sohagame.secondworld.net.cn:55080/Server/Tool.php
[s2]
Page=http://vm-mobile/Server/Tool.php
ServerID=2
MainServer=1
[s3-阿双丰收]
Page=http://s3.sohagame.secondworld.net.cn:55080/Server/Tool.php
[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;
        }
        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;
}