v1.0
This commit is contained in:
@@ -51,13 +51,6 @@ export class GwezzChangdunovel implements INodeType {
|
|||||||
inputs: ['main'],
|
inputs: ['main'],
|
||||||
outputs: ['main'],
|
outputs: ['main'],
|
||||||
credentials: [{ name: 'gwezzChangdunovelApi', required: true }],
|
credentials: [{ name: 'gwezzChangdunovelApi', required: true }],
|
||||||
requestDefaults: {
|
|
||||||
baseURL: 'https://www.changdunovel.com/novelsale/openapi',
|
|
||||||
headers: {
|
|
||||||
Accept: 'application/json',
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
displayName: '资源',
|
displayName: '资源',
|
||||||
@@ -80,6 +73,8 @@ export class GwezzChangdunovel implements INodeType {
|
|||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
const returnData: INodeExecutionData[] = [];
|
const returnData: INodeExecutionData[] = [];
|
||||||
|
|
||||||
|
const baseURL: string = 'https://www.changdunovel.com/novelsale/openapi';
|
||||||
|
|
||||||
const resource = this.getNodeParameter('resource', 0);
|
const resource = this.getNodeParameter('resource', 0);
|
||||||
const operation = this.getNodeParameter('operation', 0);
|
const operation = this.getNodeParameter('operation', 0);
|
||||||
|
|
||||||
@@ -102,8 +97,9 @@ export class GwezzChangdunovel implements INodeType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
responseData = await this.helpers.httpRequest({
|
responseData = await this.helpers.httpRequest({
|
||||||
|
baseURL: baseURL,
|
||||||
|
url: '/content/book_meta/v1/',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: '/v1/content/book/meta',
|
|
||||||
qs,
|
qs,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user