Skip to content

Commit

Permalink
fix: kg源在海外无法搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq authored Nov 11, 2023
1 parent 3e31a78 commit 5f670d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/utils/musicSdk/kg/musicSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
page: 0,
allPage: 1,
musicSearch(str, page, limit) {
const searchRequest = httpFetch(`https://songsearch.kugou.com/song_search_v2?keyword=${encodeURIComponent(str)}&page=${page}&pagesize=${limit}&userid=0&clientver=&platform=WebFilter&filter=2&iscorrection=1&privilege_filter=0`)
const searchRequest = httpFetch(`https://songsearch.kugou.com/song_search_v2?keyword=${encodeURIComponent(str)}&page=${page}&pagesize=${limit}&userid=0&clientver=&platform=WebFilter&filter=2&iscorrection=1&privilege_filter=0&area_code=1`)
return searchRequest.promise.then(({ body }) => body)
},
filterData(rawData) {
Expand Down

0 comments on commit 5f670d7

Please sign in to comment.