This commit is contained in:
2025-10-29 22:24:25 +08:00
parent be3e4cb912
commit 4ac209379e
3 changed files with 6 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import type { ICredentialTestRequest, ICredentialType, INodeProperties, Icon } f
export class GwezzChangdunovelApi implements ICredentialType { export class GwezzChangdunovelApi implements ICredentialType {
name = 'gwezzChangdunovelApi'; name = 'gwezzChangdunovelApi';
displayName = 'Gwezz 常读分销 API'; displayName = 'Gwezz Changdu Novel API';
icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon; icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon;
@@ -31,7 +31,8 @@ export class GwezzChangdunovelApi implements ICredentialType {
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
url: 'https://www.changdunovel.com/novelsale/openapi', method: 'GET',
url: 'https://httpbin.org/status/200',
}, },
}; };
} }

View File

@@ -37,7 +37,7 @@ function createAuthParams(
export class GwezzChangdunovel implements INodeType { export class GwezzChangdunovel implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {
displayName: 'Gwezz 常读分销', displayName: 'Gwezz Changedu Novel',
name: 'gwezzChangdunovel', name: 'gwezzChangdunovel',
icon: { light: 'file:../../icons/gwezz.svg', dark: 'file:../../icons/gwezz.dark.svg' }, icon: { light: 'file:../../icons/gwezz.svg', dark: 'file:../../icons/gwezz.dark.svg' },
group: ['transform'], group: ['transform'],
@@ -45,7 +45,7 @@ export class GwezzChangdunovel implements INodeType {
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Interact with the Changdunovel API', description: 'Interact with the Changdunovel API',
defaults: { defaults: {
name: 'Gwezz 常读分销', name: 'Gwezz Changedu Novel',
}, },
usableAsTool: true, usableAsTool: true,
inputs: ['main'], inputs: ['main'],