From 8586b76ef24c346d8691a989a7bf93517987c6b1 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Jan 2025 15:41:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(node):=20=E6=B7=BB=E5=8A=A0=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=8A=82=E7=82=B9=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=20webhook=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 node_custom_config 表单中新增 webhook 字段 - 通过 REST API 接口 /node/custom/addOrUpdate 添加或更新自定义节点配置时,支持 webhook 参数 --- src/rest/custom/add.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/custom/add.js b/src/rest/custom/add.js index 7fe4d4e..1f96b32 100644 --- a/src/rest/custom/add.js +++ b/src/rest/custom/add.js @@ -3,10 +3,10 @@ module.exports = { action: "/node/custom/addOrUpdate", method: "post", execute: (request, response) => { - let {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra} = request.body + let {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra,webhook} = request.body dbUtils.addOrUpdate({ table: 'node_custom_config', - form: {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra} + form: {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra,webhook} }).then(data => { response.send({code: 0, data}) }).catch(err => {