This commit is contained in:
bipproduction
2025-11-11 10:22:58 +08:00
parent 9ff2aa0fec
commit 84d8794d85
5 changed files with 80 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "n8n-nodes-jenna-mcp", "name": "n8n-nodes-jenna-mcp",
"version": "1.0.41", "version": "1.0.43",
"main": "dist/index.js", "main": "dist/index.js",
"keywords": [ "keywords": [
"n8n", "n8n",

View File

@@ -520,12 +520,23 @@ class JennaMcp {
displayOptions: { show: { operation: ["mcp_postApiPengaduanUpload"] } }, displayOptions: { show: { operation: ["mcp_postApiPengaduanUpload"] } },
}, },
{ {
displayName: "Body file", displayName: "Body data",
name: "body_file", name: "body_data",
type: "string", type: "string",
default: "", default: "",
placeholder: "file", placeholder: "data",
description: "file", description: "data",
displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
},
},
{
displayName: "Body mimetype",
name: "body_mimetype",
type: "string",
default: "",
placeholder: "mimetype",
description: "mimetype",
displayOptions: { displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] }, show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
}, },
@@ -1160,8 +1171,9 @@ class JennaMcp {
break; break;
} }
case "mcp_postApiPengaduanUpload_base64": { case "mcp_postApiPengaduanUpload_base64": {
const body_file = this.getNodeParameter("body_file", i, ""); const body_data = this.getNodeParameter("body_data", i, "");
const body = { file: body_file }; const body_mimetype = this.getNodeParameter("body_mimetype", i, "");
const body = { data: body_data, mimetype: body_mimetype };
url = baseUrl + "/api/pengaduan/upload-base64"; url = baseUrl + "/api/pengaduan/upload-base64";
method = "post"; method = "post";
axiosConfig = { axiosConfig = {

View File

@@ -1,6 +1,6 @@
{ {
"name": "n8n-nodes-jenna-mcp", "name": "n8n-nodes-jenna-mcp",
"version": "1.0.41", "version": "1.0.43",
"main": "dist/index.js", "main": "dist/index.js",
"keywords": [ "keywords": [
"n8n", "n8n",

View File

@@ -542,12 +542,24 @@ export class JennaMcp implements INodeType {
}, },
{ {
displayName: "Body file", displayName: "Body data",
name: "body_file", name: "body_data",
type: "string", type: "string",
default: "", default: "",
placeholder: "file", placeholder: "data",
description: "file", description: "data",
displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
},
},
{
displayName: "Body mimetype",
name: "body_mimetype",
type: "string",
default: "",
placeholder: "mimetype",
description: "mimetype",
displayOptions: { displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] }, show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
}, },
@@ -1290,8 +1302,13 @@ export class JennaMcp implements INodeType {
} }
case "mcp_postApiPengaduanUpload_base64": { case "mcp_postApiPengaduanUpload_base64": {
const body_file = this.getNodeParameter("body_file", i, "") as any; const body_data = this.getNodeParameter("body_data", i, "") as any;
const body = { file: body_file }; const body_mimetype = this.getNodeParameter(
"body_mimetype",
i,
"",
) as any;
const body = { data: body_data, mimetype: body_mimetype };
url = baseUrl + "/api/pengaduan/upload-base64"; url = baseUrl + "/api/pengaduan/upload-base64";
method = "post"; method = "post";
axiosConfig = { axiosConfig = {

37
x.ts Normal file

File diff suppressed because one or more lines are too long