From bb7f1042316493ab5fb44ec2afaef8a78c33e555 Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Wed, 1 Jul 2026 14:56:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=89=93=E5=8D=B0=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E8=AF=B7=E6=B1=82URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/kongfz.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/kongfz.js b/utils/kongfz.js index b7bd3a9..6198ead 100644 --- a/utils/kongfz.js +++ b/utils/kongfz.js @@ -280,7 +280,7 @@ export function searchCategories(keyword, options = {}) { 'Cookie': phpsessid ? `PHPSESSID=${phpsessid}` : '' }, success: (res) => { - console.log('【孔网分类搜索】keyword:', keyword, '响应:', JSON.stringify(res.data)) + console.log('【孔网分类搜索】URL: https://search.kongfz.com/pc-gw/search-web/client/pc/product/keyword/normal/facet?dataType=0&keyword=' + encodeURIComponent(keyword) + '&page=1&userArea=' + userArea, '| 响应:', JSON.stringify(res.data)) if (res.statusCode === 200 && res.data && res.data.status === 1 && res.data.data) { var categories = res.data.data.categories || [] // 找到 normal 组(图书分类) @@ -348,7 +348,7 @@ export function searchPresses(keyword, options = {}) { 'Cookie': phpsessid ? `PHPSESSID=${phpsessid}` : '' }, success: (res) => { - console.log('【孔网出版社搜索】keyword:', keyword, '响应:', JSON.stringify(res.data)) + console.log('【孔网出版社搜索】URL: https://search.kongfz.com/pc-gw/search-web/client/pc/product/keyword/more/press/facet?keyword=' + encodeURIComponent(keyword) + '&page=1&size=50&userArea=' + userArea + '&filterType=press', '| 响应:', 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) { @@ -403,7 +403,7 @@ export function searchAuthors(keyword, options = {}) { 'Cookie': phpsessid ? `PHPSESSID=${phpsessid}` : '' }, success: (res) => { - console.log('【孔网作者搜索】keyword:', keyword, '响应:', JSON.stringify(res.data)) + console.log('【孔网作者搜索】URL: https://search.kongfz.com/pc-gw/search-web/client/pc/product/keyword/more/author/facet?keyword=' + encodeURIComponent(keyword) + '&page=1&size=50&userArea=' + userArea + '&filterType=author', '| 响应:', 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) {