Browse Source

Merge branch 'master' of http://git.ius.plus/Project-Wing/WingCloudServer

Jeremy 2 years ago
parent
commit
886cf5ccfb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/InteractionCenter/FastestServerInteractionCenterService.cs

+ 2 - 1
src/InteractionCenter/FastestServerInteractionCenterService.cs

@@ -186,9 +186,10 @@ namespace WingCloudServer.InteractionCenter
                     }
                     else if (absPath.Contains("GetServerConfig"))
                     {
+                        var isDistributed = ConfigurationManager.IsDistributed;
                         List<ServerInfoDTO> serverList = await GetServerInfoFromCacheAsync(new QueryServerInfoRequest());
                         var jsonStr = Newtonsoft.Json.JsonConvert.SerializeObject(serverList);
-                        var msgContent = "{\"Result\":\"Success\",\"Data\":" + jsonStr + "}";
+                        var msgContent = "{\"Result\":\"Success\",\"IsDistributed\":\"" + isDistributed + "\",\"ServerList\":" + jsonStr + "}";
                         ResponseContent(context, true, msgContent);
                         return;
                     }