{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":2,"Type":15,"Name":"ServerCommand/获取版本号"},{"State":4,"Type":27,"Name":"ServerCommandPrivate/自动更新版本号"}],"Version":"v1"}

This commit is contained in:
超哥
2024-07-03 09:09:51 +08:00
parent bac74790dc
commit 68c4815048
4 changed files with 84 additions and 191 deletions

View File

@@ -0,0 +1,133 @@
{
"Name": "自动更新版本号",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
"PostData": {
"DataItemType": 1,
"Data": {
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
"Data": [
{
"Name": "VersionID",
"DataItemType": 0,
"Data": 1
}
]
}
},
"WebUrl": "https://develop.gridfriend.cn/clue/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": [],
"Timeout": 100.0
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"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": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局_业务配置"
},
"SampleJson": "{\r\n \"版本名\": \"Develop\",\r\n \"版本号\": \"\"\r\n}",
"ToParameter": "业务配置"
},
{
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"Operation": 4,
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=业务配置"
},
"OperationParamaterPairs": [
{
"Name": "版本名",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.Name"
}
},
{
"Name": "版本号",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.Version"
}
}
],
"OutParamaterName": "新业务配置"
},
{
"$type": "JsonUtilityCommand.JsonSerializeCommand, JsonUtilityCommand",
"SourceObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新业务配置"
},
"ToParameter": "新业务配置字符串"
},
{
"$type": "Forguncy.Model.Commands.ServerChangeGlobalPropertyCommand, ServerDesignerCommon",
"ChangedGlobalProperties": [
{
"Name": "全局_业务配置",
"Formula": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新业务配置字符串"
}
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "设置成功"
}
],
"ID": "79dce003-18a0-4571-91a5-88f376530dc4"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.ErrCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.Message"
}
}
],
"ID": "9a647215-dd71-4e8c-9935-4858e4ec4f54"
}
]
}
]
}

View File

@@ -1,55 +0,0 @@
{
"Name": "获取版本号",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": [
"FGC_LoginUser"
]
}
]
}
}
}
],
"Commands": [
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局_业务配置"
},
"SampleJson": "{\"版本名\":\"Develop\",\"版本号\":\"\"}",
"ToParameter": "业务配置"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "获取成功",
"CustomReturns": [
{
"ReturnPropertyName": "版本号",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=业务配置.版本名&\" v\"&业务配置.版本号"
}
}
]
}
],
"ReturnProperties": [
{
"Name": "版本号"
}
]
}