diff --git a/.collaboration b/.collaboration index fd5989e99b51c6e508c4cc0b357e2a6f26093cb3..06ab323808f32d12094e769d573e570404b89b47 100644 --- a/.collaboration +++ b/.collaboration @@ -1,34 +1,14 @@ [ { "ModuleName": "Table/chat_log", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:40:42.7000106+08:00", "ModuleType": 7, "IconType": 24, - "ToRemoveFiles": [ - "Tables\\chat_log.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "Table/sys_log", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:40:42.6999781+08:00", "ModuleType": 7, "IconType": 24, - "ToRemoveFiles": [ - "Tables\\sys_log.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { @@ -188,31 +168,8 @@ }, { "ModuleName": "ServerCommand/sendFile", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:19:49.6615176+08:00", "ModuleType": 15, - "IconType": 15, - "ToRemoveFiles": [ - "ServerCommands\\会话\\sendFile.json" - ] - }, - { - "ModuleName": "ServerCommandPrivate/tryListenToMQTT", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T13:55:30.9672969+08:00", - "ModuleType": 27, - "IconType": 16, - "ToRemoveFiles": [ - "ServerCommands\\监听\\tryListenToMQTT.json" - ] + "IconType": 15 }, { "ModuleName": "ServerCommandPrivate/onRecieved", @@ -226,18 +183,8 @@ }, { "ModuleName": "ApplicationSetting", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:19:49.6610402+08:00", "ModuleType": 8, - "IconType": 10, - "ToRemoveFiles": [ - "ApplicationSettings.json", - "favicon.ico" - ] + "IconType": 10 }, { "ModuleName": "Theme", @@ -301,20 +248,8 @@ }, { "ModuleName": "Upload", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:40:42.7007726+08:00", "ModuleType": 26, - "IconType": 30, - "ToRemoveFiles": [ - "Upload\\.arsenal-keep", - "Upload\\agents-out", - "Upload\\aios-agent-outbox", - "Upload\\arsenal\\data\\1779769183737.sqlite3" - ] + "IconType": 30 }, { "ModuleName": "PublishConfiguration", @@ -336,24 +271,10 @@ "ModuleType": 44, "IconType": 45 }, - { - "ModuleName": "TaskScheduler/resetMQTTConnectionCache", - "ModuleType": 16, - "IconType": 19 - }, { "ModuleName": "ServerCommand/getAvailableAgents", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:19:49.6612179+08:00", "ModuleType": 15, - "IconType": 15, - "ToRemoveFiles": [ - "ServerCommands\\AIOS集成\\getAvailableAgents.json" - ] + "IconType": 15 }, { "ModuleName": "ServerCommands/AIOS集成", @@ -362,17 +283,8 @@ }, { "ModuleName": "ServerCommandPrivate/getContextBySessionId", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:19:49.6612239+08:00", "ModuleType": 27, - "IconType": 16, - "ToRemoveFiles": [ - "ServerCommands\\AIOS集成\\getContextBySessionId.json" - ] + "IconType": 16 }, { "ModuleName": "ServerCommands/监听", @@ -386,31 +298,13 @@ }, { "ModuleName": "ServerCommand/generateDownloadLink", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:19:49.6613015+08:00", "ModuleType": 15, - "IconType": 15, - "ToRemoveFiles": [ - "ServerCommands\\其他\\generateDownloadLink.json" - ] + "IconType": 15 }, { "ModuleName": "ServerCommandPrivate/getSession", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-16T14:19:49.6612048+08:00", "ModuleType": 27, - "IconType": 16, - "ToRemoveFiles": [ - "ServerCommands\\AIOS集成\\getSession.json" - ] + "IconType": 16 }, { "ModuleName": "PCPage/index", @@ -451,5 +345,15 @@ "ModuleName": "Image/1780641538_bot_white_lines.png", "ModuleType": 38, "IconType": 41 + }, + { + "ModuleName": "ServerCommandPrivate/ensureMQTTConnection", + "ModuleType": 27, + "IconType": 16 + }, + { + "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", + "ModuleType": 27, + "IconType": 16 } ] \ No newline at end of file diff --git a/ApplicationSettings.json b/ApplicationSettings.json index 3a03ee7813c1a772fb8660ee11dab9468c596b86..67ffdd1667140b195c570687ea56375362660b78 100644 --- a/ApplicationSettings.json +++ b/ApplicationSettings.json @@ -7,38 +7,48 @@ "ServerPropertySecurityID": "760c9e08-2483-42cb-b234-1dd3b3d8f1f1", "GlobalProperties": [ { - "Name": "AIOS_MQTT_CHANNEL_HOST", - "Value": "10.32.4.202", + "Name": "AIOS_SERVER_IP", + "Value": "localhost", "Remark": "" }, { - "Name": "AIOS_MQTT_CHANNEL_PORT", - "Value": "1884", + "Name": "AIOS_MQTT_CHANNEL_PASSWORD", + "Value": "R2CZBOJcNPnqSU-zIZoAv_bL3cFuBCBH", "Remark": "" }, { - "Name": "AIOS_MQTT_CHANNEL_SCHEMA", - "Value": "mqtt", + "Name": "AIOS_S3_SECRET_ACCESS_KEY", + "Value": "jFLF69i_PNnjAkkwS3oaHlQLZ7h0zn8t", "Remark": "" }, { - "Name": "AIOS_MQTT_CHANNEL_USERNAME", - "Value": "aios", + "Name": "AIOS_MANAGEMENT_CONSOLE_TOKEN", + "Value": "sk--ey_cQBhOAK26u8OQZ4GcekF", "Remark": "" }, { - "Name": "AIOS_MQTT_CHANNEL_PASSWORD", - "Value": "F7pQHAY30rUans_y2WXQqWa6VGYfUcOz", + "Name": "以上必须修改", + "Value": "------------", "Remark": "" }, { - "Name": "AIOS_S3_ENDPOINT", - "Value": "http://10.32.4.202:9001", + "Name": "AIOS_MQTT_CHANNEL_PORT", + "Value": "1883", "Remark": "" }, { - "Name": "AIOS_S3_REGION", - "Value": "local", + "Name": "AIOS_S3_PORT", + "Value": "9000", + "Remark": "" + }, + { + "Name": "AIOS_MANAGEMENT_CONSOLE_PORT", + "Value": "3030", + "Remark": "" + }, + { + "Name": "AIOS_MQTT_CHANNEL_USERNAME", + "Value": "aios", "Remark": "" }, { @@ -47,8 +57,8 @@ "Remark": "" }, { - "Name": "AIOS_S3_SECRET_ACCESS_KEY", - "Value": "zgyeoLPSclZGpY0UJeUfchtXpvjr3XZG", + "Name": "AIOS_S3_REGION", + "Value": "local", "Remark": "" }, { @@ -66,16 +76,6 @@ "Value": "aios-agent-outbox", "Remark": "" }, - { - "Name": "AIOS_MANAGEMENT_CONSOLE_BASE_URL", - "Value": "http://10.32.4.202:3031", - "Remark": "" - }, - { - "Name": "AIOS_MANAGEMENT_CONSOLE_TOKEN", - "Value": "sk-1234567890qwertyuiop", - "Remark": "" - }, { "Name": "MQTT_CONNECTION_NAME", "Value": "aios_conn_", diff --git a/ForguncyDB.sqlite3 b/ForguncyDB.sqlite3 index 6c08af525c8cecc506045c9e282b598bda76937b..2707a515da1800ad2006a42cd5401ab02d333377 100644 Binary files a/ForguncyDB.sqlite3 and b/ForguncyDB.sqlite3 differ diff --git "a/Plugin/\346\226\207\344\273\266\350\257\273\345\206\231-11_0_102_0(1).zip" "b/Plugin/\346\226\207\344\273\266\350\257\273\345\206\231-11_0_102_0(3).zip" similarity index 84% rename from "Plugin/\346\226\207\344\273\266\350\257\273\345\206\231-11_0_102_0(1).zip" rename to "Plugin/\346\226\207\344\273\266\350\257\273\345\206\231-11_0_102_0(3).zip" index 2e4aea6716dce3f0a2120e3cd8742fb0e31598fa..d22356dca9db40f949d1bc4cc2274d749d4a72dc 100644 Binary files "a/Plugin/\346\226\207\344\273\266\350\257\273\345\206\231-11_0_102_0(1).zip" and "b/Plugin/\346\226\207\344\273\266\350\257\273\345\206\231-11_0_102_0(3).zip" differ diff --git "a/Plugin/\346\234\215\345\212\241\347\253\257\347\274\223\345\255\230\346\223\215\344\275\234\345\267\245\345\205\267\345\272\223-8_0_3_0(1).zip" "b/Plugin/\346\234\215\345\212\241\347\253\257\347\274\223\345\255\230\346\223\215\344\275\234\345\267\245\345\205\267\345\272\223-8_0_3_0(1).zip" deleted file mode 100644 index ced746aec17c599c1d9b1b5abe6481712d0534fa..0000000000000000000000000000000000000000 Binary files "a/Plugin/\346\234\215\345\212\241\347\253\257\347\274\223\345\255\230\346\223\215\344\275\234\345\267\245\345\205\267\345\272\223-8_0_3_0(1).zip" and /dev/null differ diff --git a/SchedulerTasks/resetMQTTConnectionCache.json b/SchedulerTasks/resetMQTTConnectionCache.json deleted file mode 100644 index f135c4adcf564991738a0b76cc99070185eed446..0000000000000000000000000000000000000000 --- a/SchedulerTasks/resetMQTTConnectionCache.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "Name": "resetMQTTConnectionCache", - "Enabled": true, - "Triggers": [ - { - "$type": "Forguncy.SaveLoad.AppReStartTriggerSaveData, ServerDesignerCommon" - } - ], - "Commands": [ - { - "$type": "CacheOperationCommand.CacheDeleteCommand, CacheOperationCommand", - "CacheKeyStr": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "ParamName": "code", - "BreakpointIdentity": "a7deea1c-83a4-466c-a6c0-63e5826a1d71" - } - ], - "ReturnProperties": [] -} \ No newline at end of file diff --git "a/ServerCommands/AIOS\351\233\206\346\210\220/getAvailableAgents.json" "b/ServerCommands/AIOS\351\233\206\346\210\220/getAvailableAgents.json" index 9411b107e2205419d6b358e33805788c06d40c7c..f43608ce3ec878c68f0dfaef217c9fb5e1de700d 100644 --- "a/ServerCommands/AIOS\351\233\206\346\210\220/getAvailableAgents.json" +++ "b/ServerCommands/AIOS\351\233\206\346\210\220/getAvailableAgents.json" @@ -40,7 +40,7 @@ "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "userName", "ParameterValue": "%CurrentUser%", - "ID": "99b0675e8aa24542b393f3392b1661bc", + "ID": "b81a3c82c0324121b2dd50376ff352cf", "BreakpointIdentity": "afd1443d-571a-49b6-be3a-5b6983f101d6" }, { @@ -58,7 +58,7 @@ }, "WebUrl": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MANAGEMENT_CONSOLE_BASE_URL&\"/api/external/agents?userName=\"&userName" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_MANAGEMENT_CONSOLE_PORT&\"/api/external/agents?userName=\"&userName" }, "Method": "GET", "SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);", diff --git "a/ServerCommands/AIOS\351\233\206\346\210\220/getContextBySessionId.json" "b/ServerCommands/AIOS\351\233\206\346\210\220/getContextBySessionId.json" index d4851118f9d681670b03807aa928d1d989c8867f..1f46a24f9c128c2823a8cc72f7a2d285bf36e219 100644 --- "a/ServerCommands/AIOS\351\233\206\346\210\220/getContextBySessionId.json" +++ "b/ServerCommands/AIOS\351\233\206\346\210\220/getContextBySessionId.json" @@ -40,7 +40,7 @@ }, "WebUrl": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MANAGEMENT_CONSOLE_BASE_URL&\"/api/external/context?sessionId=\"&sessionId" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_MANAGEMENT_CONSOLE_PORT&\"/api/external/context?sessionId=\"&sessionId" }, "Method": "GET", "SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);", diff --git "a/ServerCommands/AIOS\351\233\206\346\210\220/getSession.json" "b/ServerCommands/AIOS\351\233\206\346\210\220/getSession.json" index 214ab123ae1d994cc1c34681c6ee990e56a3c1a4..feedb1f62fec9a84c1d09c5a91a9ba69ca2868c1 100644 --- "a/ServerCommands/AIOS\351\233\206\346\210\220/getSession.json" +++ "b/ServerCommands/AIOS\351\233\206\346\210\220/getSession.json" @@ -53,7 +53,7 @@ }, "WebUrl": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MANAGEMENT_CONSOLE_BASE_URL&\"/api/external/session?userName=\"&userName&\"&agentId=\"&agentId&\"&cookie=\"&cookie" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_MANAGEMENT_CONSOLE_PORT&\"/api/external/session?userName=\"&userName&\"&agentId=\"&agentId&\"&cookie=\"&cookie" }, "Method": "GET", "SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);", diff --git "a/ServerCommands/\344\274\232\350\257\235/sendFile.json" "b/ServerCommands/\344\274\232\350\257\235/sendFile.json" index 73c071603df0857c65b9a4b697d2e3068c1f606d..620c102b7390ce36fafe89614e36056bb3ea1c0f 100644 --- "a/ServerCommands/\344\274\232\350\257\235/sendFile.json" +++ "b/ServerCommands/\344\274\232\350\257\235/sendFile.json" @@ -113,7 +113,14 @@ }, { "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "tryListenToMQTT", + "ServerCommandName": "ensureMQTTConnection", + "RefreshAfterFinish": true, + "CheckDataValidation": true, + "BreakpointIdentity": "6c13e896-b563-4bee-8b01-f5375da45eae" + }, + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "ensureMQTTSubscription", "Parameters": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ @@ -136,7 +143,7 @@ "ReturnTo": "BucketNameList", "EndpointExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_S3_ENDPOINT" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_S3_PORT" }, "RegionExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -204,7 +211,7 @@ }, "EndpointExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_S3_ENDPOINT" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_S3_PORT" }, "RegionExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -222,7 +229,7 @@ } ] }, - "ID": "caa677f3-2bb6-45c3-b765-904e667c11f0" + "ID": "3fc1cbca-24bd-472b-bacd-1844fe45fd93" } ] }, @@ -297,7 +304,7 @@ }, "EndpointExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_S3_ENDPOINT" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_S3_PORT" }, "RegionExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", diff --git "a/ServerCommands/\344\274\232\350\257\235/sendMessage.json" "b/ServerCommands/\344\274\232\350\257\235/sendMessage.json" index a54635a864801fb2635d682b75001cbd5499e0a6..a799b9896c9c42b8849ad4e084a2b53e55c8e5ff 100644 --- "a/ServerCommands/\344\274\232\350\257\235/sendMessage.json" +++ "b/ServerCommands/\344\274\232\350\257\235/sendMessage.json" @@ -106,7 +106,14 @@ }, { "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "tryListenToMQTT", + "ServerCommandName": "ensureMQTTConnection", + "RefreshAfterFinish": true, + "CheckDataValidation": true, + "BreakpointIdentity": "c338ae15-ad16-4d2d-8018-8153f5429b4e" + }, + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "ensureMQTTSubscription", "Parameters": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ @@ -158,7 +165,7 @@ } ] }, - "ID": "c9b90afc-fe26-4be1-b47c-6f5591b3f9e9" + "ID": "1ce8f78d-4a65-4504-9756-f06aca264a8e" } ] }, diff --git "a/ServerCommands/\345\205\266\344\273\226/generateDownloadLink.json" "b/ServerCommands/\345\205\266\344\273\226/generateDownloadLink.json" index c7daa0351532d348861277c5a07bc1848a770939..482c86208658aa79b4468d8087c5908693a789e9 100644 --- "a/ServerCommands/\345\205\266\344\273\226/generateDownloadLink.json" +++ "b/ServerCommands/\345\205\266\344\273\226/generateDownloadLink.json" @@ -60,7 +60,7 @@ "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=SUBSTITUTE(SUBSTITUTE(text,CHAR(10),\" \"),CHAR(13),\" \")" }, - "ID": "50cf989a6ea444cda46820211c0975e0", + "ID": "f82b3b5eccc8475fa911875859aa4dae", "BreakpointIdentity": "c235cf52-bc81-4fb5-8861-c97558e3947e" }, { @@ -70,7 +70,7 @@ "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=IF(ISERROR(FIND(\"file_output://\",text)),\"\",TRIM(IF(ISERROR(FIND(\" \",SUBSTITUTE(MID(text,FIND(\"file_output://\",text),LEN(text)),\"`\",\"\"))),SUBSTITUTE(MID(text,FIND(\"file_output://\",text),LEN(text)),\"`\",\"\"),LEFT(SUBSTITUTE(MID(text,FIND(\"file_output://\",text),LEN(text)),\"`\",\"\"),FIND(\" \",SUBSTITUTE(MID(text,FIND(\"file_output://\",text),LEN(text)),\"`\",\"\"))-1))))" }, - "ID": "e5a21838658547bb94d8495831d9f0bf", + "ID": "f97d62546f104f9fabd5834b8e942aa2", "BreakpointIdentity": "7291a6d5-2d14-41c0-a4fb-0024b32b85a5" }, { @@ -115,7 +115,7 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "log_entry", - "GUID": "ac192ea3-f4db-4758-9030-5c18578e217f" + "GUID": "c59a42e7-3f97-4143-b8d8-88fb75d7ccb9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -133,7 +133,7 @@ "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=SUBSTITUTE(uri,\"file_output://\"&AIOS_S3_AGENT_OUTBOX_BUCKET&\"/\",\"\")" }, - "ID": "c9a5632a9b224858aa69d3c77f761d57", + "ID": "36f06927e6304868b0691e6c86c72ef9", "BreakpointIdentity": "333949e5-3faa-4e02-8a8f-22dd107212b6" }, { @@ -171,7 +171,7 @@ }, "EndpointExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_S3_ENDPOINT" + "SerializeProperty": "=\"http://\"&AIOS_SERVER_IP&\":\"&AIOS_S3_PORT" }, "RegionExpr": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -238,7 +238,7 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "log_entry", - "GUID": "7aa65f98-a042-4ce5-aa8b-97c7f6527cab" + "GUID": "6f88cce5-2bf7-4b10-915f-622199c577fa" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -287,7 +287,7 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "log_entry", - "GUID": "d34ec42e-f0de-4063-aff7-0c3bd02de4fc" + "GUID": "8713de2d-80c1-45e3-ac2c-2bfa5dfc97a4" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -319,7 +319,7 @@ } ] }, - "ID": "beb2de8b-fffa-4e1a-a387-6d906986c413" + "ID": "02c89254-00ed-4980-add0-5b0e51b606d4" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", @@ -342,7 +342,7 @@ } ] }, - "ID": "3e051769-9c1b-4a72-b336-fc33da9680c2" + "ID": "458b4118-0310-49f4-a882-214c8d1b2f49" } ] }, diff --git "a/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" new file mode 100644 index 0000000000000000000000000000000000000000..66f5aba6e1d5cf33153b043ad721840d36e58066 --- /dev/null +++ "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" @@ -0,0 +1,139 @@ +{ + "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", + "Name": "ensureMQTTConnection", + "Enabled": true, + "Triggers": { + "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon" + } + ] + }, + "Commands": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon", + "TryCommandPart": { + "$type": "Forguncy.Model.ExceptionCommandBaseNode, ServerDesignerCommon", + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "MQTTClient.MqttPublishCommand, MQTTClient", + "ConnectionName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=MQTT_CONNECTION_NAME" + }, + "Topic": "health_check", + "Payload": "ping", + "ExecuteStatusCode": "code", + "BreakpointIdentity": "3ccd31eb-3bc2-4373-9464-c6f4697cb0b0" + } + ] + } + }, + "CatchCommandPart": { + "$type": "Forguncy.Model.CatchCommandNode, ServerDesignerCommon", + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$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": "=ExceptionCode" + } + }, + "value": "1006" + }, + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "MQTTClient.MqttConnectCommand, MQTTClient", + "ConnectionName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=MQTT_CONNECTION_NAME" + }, + "BrokerAddress": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=AIOS_SERVER_IP" + }, + "UserName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=AIOS_MQTT_CHANNEL_USERNAME" + }, + "Password": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=AIOS_MQTT_CHANNEL_PASSWORD" + }, + "EnableRetry": true, + "RetryCount": 600, + "ExecuteStatusCode": "subCode", + "BreakpointIdentity": "3b26753c-dda3-4e4a-8b72-d6bbf3c36790" + }, + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "sys_log", + "UpdateType": "add", + "UpdateBindingValues": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "log_entry", + "GUID": "1b5c5630-8c13-47ef-9fe7-486c4c82b3d5" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"建立连接(\"&AIOS_SERVER_IP&\":\"&AIOS_MQTT_CHANNEL_PORT&\")>> \"&subCode" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "user_name", + "GUID": "10260618-2529-4ba7-969c-d39afec1256b" + }, + "Value": "%CurrentUser.UserName%" + } + ] + }, + "BreakpointIdentity": "ebda3b7e-f005-42e4-ad0b-a6a90ade11ac" + } + ] + }, + "ID": "aa1133ee-2d9c-4fde-8512-9410474ad157" + } + ] + }, + "BreakpointIdentity": "0226be42-3efb-4c48-9d94-05aae1a82372" + } + ] + } + }, + "BreakpointIdentity": "9ee36fe5-b506-460b-bf90-2534443551db" + } + ] + }, + "ReturnProperties": { + "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [] + } +} \ No newline at end of file diff --git "a/ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" new file mode 100644 index 0000000000000000000000000000000000000000..b81ec4b7cb1e1b29ef90dcdfb946fe0e38ee03c9 --- /dev/null +++ "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" @@ -0,0 +1,139 @@ +{ + "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", + "Name": "ensureMQTTSubscription", + "Enabled": true, + "Triggers": { + "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", + "Parameters": { + "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", + "Name": "outboundTopic", + "DataValidationInfo": { + "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" + } + } + ] + } + } + ] + }, + "Commands": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon", + "TryCommandPart": { + "$type": "Forguncy.Model.ExceptionCommandBaseNode, ServerDesignerCommon", + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "MQTTClient.MqttUnsubscribeTopicCommand, MQTTClient", + "ConnectionName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=MQTT_CONNECTION_NAME" + }, + "TopicName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=outboundTopic" + }, + "BreakpointIdentity": "88d4b7ba-f7ec-4163-9e7d-89110c76e79b" + } + ] + } + }, + "BreakpointIdentity": "6994e41c-ea08-43a5-ac84-107f96adef94" + }, + { + "$type": "MQTTClient.MqttSubscribeCommand, MQTTClient", + "ConnectionName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=MQTT_CONNECTION_NAME" + }, + "TopicName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=outboundTopic" + }, + "QoS": 1, + "ReceiveMessageCallBack": { + "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", + "Commands": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "onRecieved", + "Parameters": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "messageInJSON", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=接受消息" + } + } + ] + }, + "RefreshAfterFinish": true, + "CheckDataValidation": true, + "BreakpointIdentity": "26296a3d-2254-4398-930c-008a1d09d588" + } + ] + }, + "ParamProperties": { + "$type": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", + "receiveMessage": "接受消息", + "receiveTopic": "接受主题" + } + }, + "ExecuteStatusCode": "subCode", + "BreakpointIdentity": "127cd98a-11e7-45eb-b066-f4cfc3e381db" + }, + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "sys_log", + "UpdateType": "add", + "UpdateBindingValues": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "log_entry", + "GUID": "ec3721fd-55f0-4c24-832b-5497b415084e" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"重新建立监听(\"&outboundTopic&\") >> \"&subCode" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "user_name", + "GUID": "59e98127-8132-4939-86a9-d918408f8363" + }, + "Value": "%CurrentUser.UserName%" + } + ] + }, + "BreakpointIdentity": "467b0818-3bfb-4072-a4a3-71bbd8230af3" + } + ] + }, + "ReturnProperties": { + "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [] + } +} \ No newline at end of file diff --git "a/ServerCommands/\347\233\221\345\220\254/tryListenToMQTT.json" "b/ServerCommands/\347\233\221\345\220\254/tryListenToMQTT.json" deleted file mode 100644 index f579696bcc5ab25aec30e3f1327f363de717085a..0000000000000000000000000000000000000000 --- "a/ServerCommands/\347\233\221\345\220\254/tryListenToMQTT.json" +++ /dev/null @@ -1,342 +0,0 @@ -{ - "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", - "Name": "tryListenToMQTT", - "Enabled": true, - "Triggers": { - "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", - "Name": "outboundTopic", - "DataValidationInfo": { - "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" - } - } - ] - } - } - ] - }, - "Commands": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "CacheOperationCommand.CacheGetCommand, CacheOperationCommand", - "CacheKeyStr": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "ParamName": "globalCache", - "BreakpointIdentity": "327bbcca-d778-4169-9a69-2f1f33386e28" - }, - { - "$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": "=globalCache" - } - }, - "value": "%Null%" - }, - "CommandList": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$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": "=AIOS_MQTT_CHANNEL_SCHEMA" - } - }, - "value": "mqtt" - }, - "CommandList": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "MQTTClient.MqttConnectCommand, MQTTClient", - "ConnectionName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "BrokerAddress": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_HOST" - }, - "Port": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_PORT" - }, - "UserName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_USERNAME" - }, - "Password": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_PASSWORD" - }, - "ExecuteStatusCode": "connCode", - "BreakpointIdentity": "7f066028-f14e-4e55-9025-ff94386e35b8" - } - ] - }, - "ID": "f20d87c5-090f-45dd-93cf-23a3e204ea9f" - }, - { - "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", - "CommandList": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "MQTTClient.MqttConnectCommand, MQTTClient", - "ConnectionName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "BrokerAddress": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_HOST" - }, - "Port": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_PORT" - }, - "UserName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_USERNAME" - }, - "Password": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=AIOS_MQTT_CHANNEL_PASSWORD" - }, - "EnableSSL": true, - "ExecuteStatusCode": "connCode", - "BreakpointIdentity": "fd6a48b1-5551-42a2-a075-055857ccb4d9" - } - ] - }, - "ID": "f3944a18-aa40-4a1b-a88a-0330667fd386" - } - ] - }, - "BreakpointIdentity": "0b91ded3-44bf-47df-9a7d-f986fc58d75a" - }, - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "sys_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "log_entry", - "GUID": "dea39358-228e-4c74-b982-068db5826a9c" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"建立MQTT链接 >> \"&connCode" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "user_name", - "GUID": "92851e8b-d83c-4aa9-9a21-2acedb03e5d0" - }, - "Value": "%CurrentUser.UserName%" - } - ] - }, - "BreakpointIdentity": "e6595f4e-26e4-456b-9222-e66e77024a7f" - }, - { - "$type": "CacheOperationCommand.CacheAddCommand, CacheOperationCommand", - "CacheKeyStr": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "CacheValue": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=NOW()" - }, - "CacheSeconds": "0", - "ParamName": "cacheCode", - "BreakpointIdentity": "8fb2622e-ea1e-4108-ba3f-d3fc1e96795f" - } - ] - }, - "ID": "406dc3d4-e0c2-4e94-a899-539d003dfb81" - } - ] - }, - "BreakpointIdentity": "77701ae4-a247-4f1e-8f46-5b38dc88240e" - }, - { - "$type": "CacheOperationCommand.CacheGetCommand, CacheOperationCommand", - "CacheKeyStr": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME&outboundTopic" - }, - "ParamName": "outboundCache", - "BreakpointIdentity": "a4ca5bb4-2a5d-434d-8fa6-29893875bdf9" - }, - { - "$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": "=outboundCache" - } - }, - "value": "%Null%" - }, - "CommandList": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "MQTTClient.MqttSubscribeCommand, MQTTClient", - "ConnectionName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "TopicName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=outboundTopic" - }, - "QoS": 1, - "ReceiveMessageCallBack": { - "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", - "Commands": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "onRecieved", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "messageInJSON", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=接受消息" - } - } - ] - }, - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "ee53f962-10bb-46a7-a54e-a42cbba965e4" - } - ] - }, - "ParamProperties": { - "$type": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", - "receiveMessage": "接受消息", - "receiveTopic": "接受主题" - } - }, - "ExecuteStatusCode": "subCode", - "BreakpointIdentity": "15415511-fdee-4e53-8b21-ceef9bbebb20" - }, - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "sys_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "log_entry", - "GUID": "5f35386d-ad20-452b-984c-87fdcc9e0831" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"建立监听(\"&outboundTopic&\") >> \"&subCode" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "user_name", - "GUID": "f90cd411-d910-4436-810d-873e549410f9" - }, - "Value": "%CurrentUser.UserName%" - } - ] - }, - "BreakpointIdentity": "b33a49a0-aca0-4f9a-a37d-29aa5051a0c7" - }, - { - "$type": "CacheOperationCommand.CacheAddCommand, CacheOperationCommand", - "CacheKeyStr": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME&outboundTopic" - }, - "CacheValue": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=NOW()" - }, - "CacheSeconds": "0", - "ParamName": "cacheCode", - "BreakpointIdentity": "ea9bb06f-0f20-464e-b0b8-ecd281d42eb9" - } - ] - }, - "ID": "e6c9727d-d15a-4222-bcff-ed9f40012adc" - } - ] - }, - "BreakpointIdentity": "1e87c94d-b233-4918-a377-f9b98d7fe9c0" - } - ] - }, - "ReturnProperties": { - "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [] - } -} \ No newline at end of file