fix:添加作者/出版社/分类请求日志打印
This commit is contained in:
parent
bed7f39d56
commit
e53323923a
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user