/// <summary> /// 通知参数处理 /// </summary> public void NotifyArgToClient() { var apiProject = Solution.Projects.FirstOrDefault(p => p.Name == "NofityData"); if (apiProject == null) { Solution.Projects.Add(apiProject = new ProjectConfig { Name = "NofityData", Caption = "消息通知数据" }); } foreach (var item in Solution.NotifyItems) { var friend = GlobalConfig.GetEntity(item.NotifyEntity); if (friend == null) { item.ClientEntity = null; continue; } if (item.IsCommandResult) { FindNityfyApi(item, friend); } else { item.CommandId = null; } friend.Tag = Solution.Tag + "," + friend.Name; if (friend.Properties.Count == 0) { item.ClientEntity = null; continue; } FindNitifyClientEntity(friend, apiProject, item); } ConfigWriter writer = new ConfigWriter { Solution = Solution, Directory = Path.GetDirectoryName(Solution.FileName) }; writer.SaveNotifies(); writer.SaveProject(apiProject, false); }