diff --git a/utils/kongfz.js b/utils/kongfz.js index 03002ae..b7bd3a9 100644 --- a/utils/kongfz.js +++ b/utils/kongfz.js @@ -280,6 +280,7 @@ export function searchCategories(keyword, options = {}) { 'Cookie': phpsessid ? `PHPSESSID=${phpsessid}` : '' }, success: (res) => { + console.log('【孔网分类搜索】keyword:', keyword, '响应:', JSON.stringify(res.data)) if (res.statusCode === 200 && res.data && res.data.status === 1 && res.data.data) { var categories = res.data.data.categories || [] // 找到 normal 组(图书分类) @@ -347,6 +348,7 @@ export function searchPresses(keyword, options = {}) { 'Cookie': phpsessid ? `PHPSESSID=${phpsessid}` : '' }, success: (res) => { + console.log('【孔网出版社搜索】keyword:', keyword, '响应:', JSON.stringify(res.data)) if (res.statusCode === 200 && res.data && res.data.status === 1 && res.data.data) { var labels = res.data.data.labels || [] resolve(labels.map(function(item) { @@ -401,6 +403,7 @@ export function searchAuthors(keyword, options = {}) { 'Cookie': phpsessid ? `PHPSESSID=${phpsessid}` : '' }, success: (res) => { + console.log('【孔网作者搜索】keyword:', keyword, '响应:', JSON.stringify(res.data)) if (res.statusCode === 200 && res.data && res.data.status === 1 && res.data.data) { var labels = res.data.data.labels || [] resolve(labels.map(function(item) {