{"Message":"更新自动获取版本号","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/项目列表"},{"State":1,"Type":1,"Name":"PCPage/项目标题"},{"State":1,"Type":1,"Name":"PCPage/项目菜单"},{"State":1,"Type":1,"Name":"PCPage/个人中心-基本信息"},{"State":1,"Type":1,"Name":"PCPage/首页"},{"State":1,"Type":16,"Name":"TaskScheduler/应用部署时"},{"State":1,"Type":15,"Name":"ServerCommand/GetLastVersion"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/自动更新版本号"}],"Version":"v1"}
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "3"
|
||||
"TestData": "10"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
@@ -40,66 +40,46 @@
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "发布记录",
|
||||
"ParameterName": "版本信息",
|
||||
"TableValue": {
|
||||
"TableName": "项目发布记录",
|
||||
"TableName": "项目版本",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "e490990f-353d-4170-9e1b-c4f4bca77d4d",
|
||||
"GUID": "7012707e-bbc1-41d0-b694-d1ffe9830a45",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布版本号",
|
||||
"GUID": "d1e35776-8739-42fd-9997-1374868138b6"
|
||||
"TableName": "项目版本",
|
||||
"ColumnName": "版本名称",
|
||||
"GUID": "cbacf8c3-4fbd-4adb-ba66-e8ff4eaa24d5"
|
||||
},
|
||||
"ColumnName": "发布版本号"
|
||||
"ColumnName": "版本名称"
|
||||
},
|
||||
{
|
||||
"GUID": "3708d24e-1c19-4bfd-a614-899534a9b90b",
|
||||
"GUID": "ac4ca567-675f-4f20-b14f-11bf75701ff2",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布内容",
|
||||
"GUID": "5e9c4f6c-4e2f-4201-9698-f0cc041eb4a1"
|
||||
"TableName": "项目版本",
|
||||
"ColumnName": "最新版本号",
|
||||
"GUID": "9a23966c-b7a9-4215-b2f7-440f758b4378"
|
||||
},
|
||||
"ColumnName": "发布内容"
|
||||
},
|
||||
{
|
||||
"GUID": "ce782a5e-90c4-43e2-b11a-430fbb1619e7",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布时间",
|
||||
"GUID": "dc2ecef9-b45c-4a2a-a95e-ba984b1184da"
|
||||
},
|
||||
"ColumnName": "发布时间"
|
||||
"ColumnName": "最新版本号"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "版本ID",
|
||||
"GUID": "134d3057-174e-46db-8116-659909846ed7"
|
||||
"TableName": "项目版本",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "25283357-364e-4d23-9da1-b71f1404bb43"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=VersionID"
|
||||
}
|
||||
},
|
||||
"TopCount": "1",
|
||||
"OrderBySqlCondition": {
|
||||
"OrderByColumns": [
|
||||
{
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布时间",
|
||||
"GUID": "f9bfd6bb-e955-4628-800b-fa543a76f07d"
|
||||
},
|
||||
"Order": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "c5b3754d659a478faf8d5da196c40f2d"
|
||||
"ID": "47916a825b804a50ae33c8b8ccfdcc51"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -111,7 +91,7 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=发布记录"
|
||||
"SerializeProperty": "=版本信息"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
@@ -119,36 +99,157 @@
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "success",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "Name",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=发布记录.发布版本号"
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "发布记录",
|
||||
"TableValue": {
|
||||
"TableName": "项目发布记录",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "c445fe14-fb48-461e-a3a0-24f90d769266",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布内容",
|
||||
"GUID": "001e4788-6a22-4c62-a1a7-9858d2716820"
|
||||
},
|
||||
"ColumnName": "发布内容"
|
||||
},
|
||||
"Remark": "发布ID\r\n="
|
||||
{
|
||||
"GUID": "7df5c484-b325-4ee4-be6d-f8363150c446",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布时间",
|
||||
"GUID": "68acba91-bcd4-48b6-a40a-628dd8a5f466"
|
||||
},
|
||||
"ColumnName": "发布时间"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "版本ID",
|
||||
"GUID": "3cf21cf5-28e7-4d7f-9aaa-9dea6337b3be"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=VersionID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "项目发布记录",
|
||||
"ColumnName": "发布版本号",
|
||||
"GUID": "11945b2f-e908-4bad-96ca-ce6854fb84f2"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=版本信息.最新版本号"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "99f45e29fc6e41d3aafcaf5ed34987a5"
|
||||
},
|
||||
{
|
||||
"$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": "=发布记录"
|
||||
}
|
||||
},
|
||||
"value": "%Null%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "success",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "Name",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=版本信息.版本名称"
|
||||
},
|
||||
"Remark": "发布ID\r\n="
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Version",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=版本信息.最新版本号"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Update"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Content"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "76a2c4dd-79b4-453a-b46e-1abb1dbdc768"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Update",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=TEXT(发布记录.发布时间,\"yyyy-mm-dd HH:mm:ss\")"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Content",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=发布记录.发布内容"
|
||||
}
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "success",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "Name",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=版本信息.版本名称"
|
||||
},
|
||||
"Remark": "发布ID\r\n="
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Version",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=版本信息.最新版本号"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Update",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=TEXT(发布记录.发布时间,\"yyyy-mm-dd HH:mm:ss\")"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Content",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=发布记录.发布内容"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "1e8ef81d-a954-484a-9801-99ef8b6a195f"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "f8c6af05-6701-480b-8a93-7aa0d4e896da"
|
||||
"ID": "eb7fa344-98ce-4193-8133-d71ec10140c6"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -161,6 +262,9 @@
|
||||
"ReturnPropertyName": "Name",
|
||||
"Remark": "发布ID\r\n="
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Version"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "Update"
|
||||
},
|
||||
@@ -170,7 +274,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "a3b5cf05-adde-47db-a00b-e8c96c571ebe"
|
||||
"ID": "c1e7e882-db2c-4e9b-b989-83daf945dfd1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -180,6 +284,9 @@
|
||||
"Name": "Name",
|
||||
"Remark": "发布ID\r\n="
|
||||
},
|
||||
{
|
||||
"Name": "Version"
|
||||
},
|
||||
{
|
||||
"Name": "Update"
|
||||
},
|
||||
|
||||
133
ServerCommands/OPENAPI/自动更新版本号.json
Normal file
133
ServerCommands/OPENAPI/自动更新版本号.json
Normal 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": "9d9ea2cc-3e3c-4230-8c85-1040f02399ec"
|
||||
},
|
||||
{
|
||||
"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": "8fe2f285-ded2-4f09-869f-2cdb0e8626d0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user