클라이언트 잘못된 데이터 반환 버그 수정
This commit is contained in:
parent
ec0ec91c20
commit
828664196e
|
|
@ -29,20 +29,14 @@ namespace Server.Git
|
|||
break;
|
||||
case "client":
|
||||
clientSheetList.Add(sheets[m].name, sheets[m].dicViewer);
|
||||
Console.WriteLine("client : " + sheets[m].name);
|
||||
break;
|
||||
case "all":
|
||||
//수정할것 이렇게 작업되면 데이터가 2개로 나눠지는것이 아닌 한개의 데이터가 중복으로 제거됨.
|
||||
string name = sheets[m].name;
|
||||
Dictionary<long, Dictionary<string, object>> serverSheet = sheets[m].dicViewer;
|
||||
Dictionary<long, Dictionary<string, object>> clientSheet = sheets[m].dicViewer;
|
||||
for (int i = 1; i < sheets[m].dataEnum.Count; i++)
|
||||
{
|
||||
if (sheets[m].dataEnum[i] == "client")
|
||||
{
|
||||
foreach (var item in serverSheet)
|
||||
{
|
||||
item.Value.Remove(sheets[m].variable[i]);
|
||||
}
|
||||
}
|
||||
if (sheets[m].dataEnum[i] == "server")
|
||||
{
|
||||
foreach (var item in clientSheet)
|
||||
|
|
@ -50,7 +44,6 @@ namespace Server.Git
|
|||
item.Value.Remove(sheets[m].variable[i]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
serverSheetList.Add(sheets[m]);
|
||||
clientSheetList.Add(name, clientSheet);
|
||||
|
|
|
|||
Loading…
Reference in New Issue