From 232b2bcdef9942bcf5f4d9c846414997fc761fb0 Mon Sep 17 00:00:00 2001 From: LiuChangFreeman Date: Wed, 10 Aug 2022 21:48:37 +0800 Subject: [PATCH] fix search bug --- routes/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/search.js b/routes/search.js index e16af74..b65db30 100644 --- a/routes/search.js +++ b/routes/search.js @@ -30,7 +30,7 @@ module.exports = { pageNo - 1 }&num_per_page=${pageSize}&query=${key}`, // 3: 'http://c.y.qq.com/soso/fcgi-bin/client_search_user', - }[t] || 'http://c.y.qq.com/soso/fcgi-bin/client_search_cp'; + }[t] || 'http://c.y.qq.com/soso/fcgi-bin/search_for_qq_cp'; const typeMap = { 0: 'song', @@ -71,7 +71,7 @@ module.exports = { method: 'get', data, headers: { - Referer: 'https://y.qq.com', + Referer: 'http://m.y.qq.com' }, });