mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-07 06:52:16 +08:00
新增自定义源,但需要注意的是,移动端自定义源的环境与PC端不同,某些API不可用
This commit is contained in:
@ -47,6 +47,7 @@ for (const api of apiSourceInfo) {
|
||||
const getAPI = source => apiList[`${settingState.setting['common.apiSource']}_api_${source}`]
|
||||
|
||||
const apis = source => {
|
||||
if (/^user_api/.test(settingState.setting['common.apiSource'])) return global.lx.apis[source]
|
||||
const api = getAPI(source)
|
||||
if (api) return api
|
||||
throw new Error('Api is not found')
|
||||
|
Reference in New Issue
Block a user