{ "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", "Name": "自动更新版本号", "Enabled": true, "Triggers": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", "InvokeTriggerTestData": { "$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon", "UserName": "Administrator" } } ] }, "Commands": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand", "JsonString": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=全局_业务配置" }, "SampleJson": "{\r\n \"版本ID\": 4,\r\n \"版本名\": \"Beta\",\r\n \"版本号\": \"1.0.16\",\r\n \"自动拉会\": {\r\n \"时间阈值\": 3600,\r\n \"最大次数\": 0\r\n }\r\n}", "ToParameter": "业务配置", "BreakpointIdentity": "34aac927-9fe2-47b3-82a5-43a1fa436989" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=业务配置.版本ID" } }, "value": "%Null%", "compareType": 1 }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "ApplicationServerOperationCommand.GetAppBaseUrlCommand, ApplicationServerOperationCommand", "ParamName": "baseUrl", "BreakpointIdentity": "04154175-1688-4a02-8797-909ac8ed7bc5" }, { "$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi", "PostData": { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "DataItemType": 1, "Data": { "$type": "PostDataToWebApi.ObjectData, PostDataToWebApi", "Data": { "$type": "System.Collections.Generic.List`1[[PostDataToWebApi.DataItem, PostDataToWebApi]], System.Private.CoreLib", "$values": [ { "$type": "PostDataToWebApi.DataItem, PostDataToWebApi", "Name": "VersionID", "DataItemType": 0, "Data": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=业务配置.版本ID" } } ] } } }, "WebUrl": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=baseUrl&\"/ServerCommand/GetLastVersion\"" }, "Method": "GET", "SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);", "ErrorCallback": "// 请求中发生的错误存储在“error”变量中\r\n// 请使用“error”变量来处理异常情况 \r\nconsole.error(error);", "NewParameter": "result", "Header": { "$type": "System.Collections.Generic.List`1[[PostDataToWebApi.RequestHeaderSaveAndLoad, PostDataToWebApi]], System.Private.CoreLib", "$values": [] }, "Timeout": 100.0, "BreakpointIdentity": "6748a60c-caff-4ea8-b484-27268efb6337" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.ErrCode" } }, "value": "0" }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit", "Operation": 4, "InParamater": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=业务配置" }, "OperationParamaterPairs": { "$type": "System.Collections.Generic.List`1[[CollectionOperationKit.PropertyValueObject, CollectionOperationKit]], System.Private.CoreLib", "$values": [ { "$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit", "Name": "版本名", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.Name" } }, { "$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit", "Name": "版本号", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.Version" } }, { "$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit", "Name": "版本ID", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=业务配置.版本ID" } } ] }, "OutParamaterName": "新业务配置", "BreakpointIdentity": "597effd5-5ca6-4e99-afcb-3581686e584b" }, { "$type": "JsonUtilityCommand.JsonSerializeCommand, JsonUtilityCommand", "SourceObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新业务配置" }, "ToParameter": "新业务配置字符串", "BreakpointIdentity": "825bf9a4-1fb1-4904-bd64-548a20b2d408" }, { "$type": "Forguncy.Model.Commands.ServerChangeGlobalPropertyCommand, ServerDesignerCommon", "ChangedGlobalProperties": { "$type": "System.Collections.Generic.List`1[[CommonUtilities.GlobalPropertySetting.SetGlobalPropertyFormula, CommonUtilities]], System.Private.CoreLib", "$values": [ { "$type": "CommonUtilities.GlobalPropertySetting.SetGlobalPropertyFormula, CommonUtilities", "Name": "全局_业务配置", "Formula": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=新业务配置字符串" } } ] }, "BreakpointIdentity": "b315e93b-3e53-4934-b6c0-a2dee22140f8" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "设置成功", "BreakpointIdentity": "8e58c14a-5a03-4935-a91c-42e9ff84cbbf" } ] }, "ID": "46342144-0505-4407-81a1-eff450c72d66" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.ErrCode" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.Message" }, "BreakpointIdentity": "efe5a33d-5a9b-4622-9619-87c29353f782" } ] }, "ID": "c820593b-ebb3-41b0-b555-0641729839f6" } ] }, "BreakpointIdentity": "5bb83e6e-ac95-45e7-bfac-6510c141b487" } ] }, "ID": "30d14c64-3c16-4f4e-b43b-8a2bde9ab372" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "尚未指定版本ID", "BreakpointIdentity": "98ff6c10-ca19-4657-afcd-a357d29c6a7f" } ] }, "ID": "9e00a59c-0c60-4465-b633-326ab1cd2ea9" } ] }, "BreakpointIdentity": "2fb85a94-82a1-44ac-87ca-d5d4b7cdd2a6" } ] }, "ReturnProperties": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", "$values": [] } }