10284 【后台】服务器名重名时加_serverID进行区分;
| | |
| | | [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
|
| | |
|
| | |
| | | if ($MainServerID > 0) { |
| | | $optinArray["MainServer"] = $MainServerID; |
| | | } |
| | | if (array_key_exists($ServerName, $channelServerIniArray)) { |
| | | $channelServerIniArray[$ServerName . "_" . $ServerID] = $optinArray; |
| | | } else { |
| | | $channelServerIniArray[$ServerName] = $optinArray; |
| | | } |
| | | array_push($channelServerIDArray, $ServerID); |
| | | |
| | | // 更新合服映射 |
| | |
| | | if (count($refreshJsonFileArray) > 0) { |
| | | AddSuccessLog($Channel, $UserAccount, \User\Permission::P_OPSRefreshServer, array("JsonBranchList" => $JsonBranchList)); |
| | | } |
| | | RefreshServerListIni($Channel); |
| | | return $refreshJsonFileArray; |
| | | } |
| | | |