{"Message":"增加更新日志页面","MessageType":2,"Modules":[{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/自动更新版本号"},{"State":1,"Type":8,"Name":"ApplicationSetting"},{"State":1,"Type":40,"Name":"Plugin"},{"State":3,"Type":15,"Name":"ServerCommand/GetUpdateLogs"},{"State":3,"Type":1,"Name":"PCPage/更新日志"},{"State":3,"Type":15,"Name":"ServerCommand/获取更新日志"}],"Version":"v1"}

This commit is contained in:
cuckooent
2024-09-19 10:25:05 +08:00
parent 42e117c197
commit 39935c1850
11 changed files with 2739 additions and 1554 deletions

View File

@@ -36,6 +36,10 @@
"compareType": 1
},
"CommandList": [
{
"$type": "ApplicationServerOperationCommand.GetAppBaseUrlCommand, ApplicationServerOperationCommand",
"ParamName": "baseUrl"
},
{
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
"PostData": {
@@ -54,7 +58,10 @@
]
}
},
"WebUrl": "https://develop.gridfriend.cn/clue/ServerCommand/GetLastVersion",
"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);",
@@ -136,7 +143,7 @@
"Message": "设置成功"
}
],
"ID": "1010aa00-2c8f-4270-bf12-0a78aa3fe39d"
"ID": "aed93edb-1d69-42b9-8add-fd7bc9146f26"
},
{
"CommandList": [
@@ -152,12 +159,12 @@
}
}
],
"ID": "9da64185-f30d-48b0-acfe-e5164fb75e86"
"ID": "2c2ac65d-f852-4704-928b-f678dfe574c9"
}
]
}
],
"ID": "ba03cf95-812c-458d-95b3-47831041ad2c"
"ID": "52d52cea-f412-42a0-a73b-b191997bd844"
},
{
"CommandList": [
@@ -167,7 +174,7 @@
"Message": "尚未指定版本ID"
}
],
"ID": "28d5f4a2-e117-47a3-b378-eb9dc9a38dbe"
"ID": "8667138a-b369-4ef0-b0bc-6a964c3afc0e"
}
]
}

View File

@@ -0,0 +1,170 @@
{
"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"
]
}
]
}
},
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局_业务配置"
},
"SampleJson": "{\r\n \"项目ID\":6,\r\n \"版本名\": \"Develop\",\r\n \"版本号\": 4,\r\n \"版本ID\":1\r\n}",
"ToParameter": "业务配置"
},
{
"$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": "=业务配置.版本ID"
}
},
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "ApplicationServerOperationCommand.GetAppBaseUrlCommand, ApplicationServerOperationCommand",
"ParamName": "baseUrl"
},
{
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
"PostData": {
"DataItemType": 1,
"Data": {
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
"Data": [
{
"Name": "key",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=业务配置.项目ID"
}
}
]
}
},
"WebUrl": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=baseUrl&\"/ServerCommand/GetUpdateLogs\""
},
"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": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "设置成功",
"CustomReturns": [
{
"ReturnPropertyName": "更新日志数组",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.logs"
}
}
]
}
],
"ID": "1db86dd5-c0ad-4eb1-b62c-cd9b152cea1a"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.ErrCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.Message"
},
"CustomReturns": [
{
"ReturnPropertyName": "更新日志数组"
}
]
}
],
"ID": "9fb2e014-b0cc-4f2c-a093-ad0758a20c68"
}
]
}
],
"ID": "093744d5-70ae-47de-8c84-dc30f86037b7"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "尚未指定版本ID",
"CustomReturns": [
{
"ReturnPropertyName": "更新日志数组"
}
]
}
],
"ID": "4c2dcd0b-2718-48df-89ff-bfae141b022e"
}
]
}
],
"ReturnProperties": [
{
"Name": "更新日志数组"
}
]
}