修改代码
This commit is contained in:
@@ -332,9 +332,17 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||
{
|
||||
|
||||
var JsonData = JsonConvert.DeserializeObject<IDictionary<string, object>>(json);
|
||||
|
||||
foreach (var item in keyValues)
|
||||
{
|
||||
JsonData.Add(item.Key, item.Value);
|
||||
if (JsonData.ContainsKey(item.Key))
|
||||
{
|
||||
JsonData[item.Key] = item.Value;
|
||||
}
|
||||
else {
|
||||
JsonData.Add(item.Key, item.Value);
|
||||
}
|
||||
|
||||
}
|
||||
return JsonConvert.SerializeObject(JsonData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user