From b343ec3396078e00b23d380a224f2b70b03a3a1b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 18 一月 2025 14:47:59 +0800
Subject: [PATCH] 10284 【后台】服务器名重名时加_serverID进行区分;
---
Common/ServerOPS.php | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Common/ServerOPS.php b/Common/ServerOPS.php
index 6478fb2..4e02c15 100644
--- a/Common/ServerOPS.php
+++ b/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;
}
--
Gitblit v1.8.0