fix bug
This commit is contained in:
@@ -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