修复因kw源歌词接口停用导致该源歌词获取失败的问题

This commit is contained in:
lyswhut
2021-11-18 14:51:00 +08:00
parent fe95b45820
commit 976be6d96f
5 changed files with 64 additions and 5 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { httpGet, httpFetch } from '../../request'
import { rendererInvoke, NAMES } from '../../../../common/ipc'
// import { rendererInvoke, NAMES } from '../../../../common/ipc'
const kw_token = {
token: null,
@@ -54,7 +54,7 @@ export const getToken = (retryNum = 0) => new Promise((resolve, reject) => {
})
})
export const decodeLyric = base64Data => rendererInvoke(NAMES.mainWindow.handle_kw_decode_lyric, base64Data)
// export const decodeLyric = base64Data => rendererInvoke(NAMES.mainWindow.handle_kw_decode_lyric, base64Data)
export const tokenRequest = async(url, options = {}) => {
let token = kw_token.token