fix:打印完整请求URL
This commit is contained in:
parent
e53323923a
commit
bb7f104231
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user