|
@@ -218,24 +218,8 @@ namespace WingCloudServer.InteractionCenter
|
|
|
{
|
|
|
|
|
|
var list = new List<ServerInfoDTO>();
|
|
|
- var serverInformationList = new List<CacheDistributedServerInfosDTO>();
|
|
|
- if (request.Codes != null && request.Codes.Any())
|
|
|
- {
|
|
|
- foreach (var item in request.Codes)
|
|
|
- {
|
|
|
- var entity = CacheMaintenance.Instance.Get<IDistributedServerInfosManager>().Get(item);
|
|
|
- if (entity != null && !string.IsNullOrEmpty(entity.Code))
|
|
|
- {
|
|
|
- serverInformationList.Add(entity);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- serverInformationList = CacheMaintenance.Instance.Get<IDistributedServerInfosManager>()
|
|
|
- .Where(x => !string.IsNullOrEmpty(x.Name) && !string.IsNullOrEmpty(x.ServerUrl))?.ToList();
|
|
|
- }
|
|
|
+ var serverInformationList = CacheMaintenance.Instance.Get<IDistributedServerInfosManager>()
|
|
|
+ .Where(x => !string.IsNullOrEmpty(x.Name) && !string.IsNullOrEmpty(x.ServerUrl))?.ToList();
|
|
|
if (serverInformationList != null && serverInformationList.Any())
|
|
|
{
|
|
|
list = serverInformationList.Select(c => new ServerInfoDTO()
|