{ "$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 \"版本名\": \"Develop\",\r\n \"版本号\": \"\",\r\n \"版本ID\":1\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": "a4257aea-6f19-4855-9239-700d12f9eed5" }, { "$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": "2c91e2a4-34db-4d54-bce1-813bfda8abd8" } ] }, "BreakpointIdentity": "5bb83e6e-ac95-45e7-bfac-6510c141b487" } ] }, "ID": "55d7e2cd-5a90-4b4b-8688-12b46bccd166" }, { "$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": "8d2baa55-6054-4c4a-9f33-a52fc6a9f4fe" } ] }, "BreakpointIdentity": "2fb85a94-82a1-44ac-87ca-d5d4b7cdd2a6" } ] } }