From bca117297d74eed91d54d34ed3b9596368c8ce62 Mon Sep 17 00:00:00 2001 From: Your Name <1@example.com> Date: Tue, 21 Oct 2025 16:37:48 +0800 Subject: [PATCH] flow --- .node-red-data/projects/zsy/flows.json | 131 ++++++++++++++++++++++++- 1 file changed, 129 insertions(+), 2 deletions(-) diff --git a/.node-red-data/projects/zsy/flows.json b/.node-red-data/projects/zsy/flows.json index 49cce0d..b6b4f55 100644 --- a/.node-red-data/projects/zsy/flows.json +++ b/.node-red-data/projects/zsy/flows.json @@ -2,7 +2,15 @@ { "id": "0ac020c7380665e7", "type": "tab", - "label": "流程 1", + "label": "测试流程", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "78d15f59dee4b6d8", + "type": "tab", + "label": "流程 2", "disabled": false, "info": "", "env": [] @@ -837,7 +845,8 @@ "y": 700, "wires": [ [ - "6585c529e8732137" + "6585c529e8732137", + "cfbf5ff4275a974e" ], [ "f80987279214f312" @@ -898,5 +907,123 @@ "x": 2000, "y": 760, "wires": [] + }, + { + "id": "c281f9583e262827", + "type": "function", + "z": "0ac020c7380665e7", + "name": "function 4", + "func": "msg.headers = { \"Content-Type\": \"application/json\", \"Authorization\": \"1\", \"Dataregion\": \"ZZLH\" }\nmsg.body={}\nmsg.rejectUnauthorized=false\nmsg.url = \"https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well/1.0.0\"\nreturn msg;", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 100, + "y": 580, + "wires": [ + [ + "5921574867140eb3" + ] + ] + }, + { + "id": "ea8a01974cede86a", + "type": "http in", + "z": "0ac020c7380665e7", + "name": "", + "url": "/test", + "method": "get", + "upload": false, + "skipBodyParsing": false, + "swaggerDoc": "", + "x": 80, + "y": 660, + "wires": [ + [ + "c281f9583e262827" + ] + ] + }, + { + "id": "fdf4a7a6166cf05c", + "type": "http response", + "z": "0ac020c7380665e7", + "name": "", + "statusCode": "", + "headers": {}, + "x": 2370, + "y": 700, + "wires": [] + }, + { + "id": "cfbf5ff4275a974e", + "type": "function", + "z": "0ac020c7380665e7", + "name": "function 5", + "func": "msg.payload = { \"code\": 0, \"message\": \"井创建删除流程测试成功\",}\nreturn msg;", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 2260, + "y": 640, + "wires": [ + [ + "fdf4a7a6166cf05c" + ] + ] + }, + { + "id": "fd3672b8ebb314ee", + "type": "http in", + "z": "78d15f59dee4b6d8", + "name": "单接口测试", + "url": "/single_test", + "method": "post", + "upload": false, + "skipBodyParsing": false, + "swaggerDoc": "", + "x": 200, + "y": 240, + "wires": [ + [ + "f414ed448fcf544b" + ] + ] + }, + { + "id": "d666851b16cf6482", + "type": "http response", + "z": "78d15f59dee4b6d8", + "name": "", + "statusCode": "", + "headers": {}, + "x": 670, + "y": 240, + "wires": [] + }, + { + "id": "f414ed448fcf544b", + "type": "function", + "z": "78d15f59dee4b6d8", + "name": "function 6", + "func": "msg.payload = { \"code\": 0, \"message\": \"单接口测试成功\",}\nreturn msg;", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 460, + "y": 300, + "wires": [ + [ + "d666851b16cf6482" + ] + ] } ] \ No newline at end of file