fix bug
This commit is contained in:
@@ -11,7 +11,7 @@ export class GwezzChangdunovelApi implements ICredentialType {
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'distributor_id',
|
||||
displayName: 'Distributor ID',
|
||||
name: 'distributor_id',
|
||||
type: 'string',
|
||||
required: true,
|
||||
@@ -19,7 +19,7 @@ export class GwezzChangdunovelApi implements ICredentialType {
|
||||
description: '分销商 ID,可与常读商务同学沟通获取',
|
||||
},
|
||||
{
|
||||
displayName: 'secret_key',
|
||||
displayName: 'Secret Key',
|
||||
name: 'secret_key',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
@@ -31,7 +31,7 @@ export class GwezzChangdunovelApi implements ICredentialType {
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
url: 'https://www.changdunovel.com/novelsale/openap',
|
||||
url: 'https://www.changdunovel.com/novelsale/openapi',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -87,9 +87,10 @@ export class GwezzChangdunovel implements INodeType {
|
||||
const distributorId = credentials.distributor_id as string;
|
||||
const secretKey = credentials.secret_key as string;
|
||||
|
||||
let responseData;
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
try {
|
||||
let responseData;
|
||||
|
||||
if (resource === 'distribution') {
|
||||
if (operation === 'contentBookMetaV1') {
|
||||
const bookId = this.getNodeParameter('book_id', i) as string;
|
||||
|
||||
@@ -19,12 +19,7 @@ export const distributionDescription: INodeProperties[] = [
|
||||
name: '获取书籍信息',
|
||||
value: 'contentBookMetaV1',
|
||||
action: '获取书籍信息',
|
||||
routing: {
|
||||
request: {
|
||||
method: 'GET',
|
||||
url: '/content/book_meta/v1/',
|
||||
},
|
||||
},
|
||||
description: '通过书籍 ID 获取书籍的元信息',
|
||||
},
|
||||
],
|
||||
default: 'contentBookMetaV1',
|
||||
|
||||
Reference in New Issue
Block a user