开放腾讯源128k音源直接播放
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import kw_api_temp from './kw/api-temp'
|
||||
import kw_api_test from './kw/api-test'
|
||||
// import tx_api_messoer from './tx/api-messoer'
|
||||
import tx_api_test from './tx/api-test'
|
||||
import kg_api_test from './kg/api-test'
|
||||
import wy_api_test from './wy/api-test'
|
||||
import bd_api_test from './bd/api-test'
|
||||
@@ -12,7 +12,7 @@ import bd_api_test from './bd/api-test'
|
||||
|
||||
const apis = {
|
||||
kw_api_test,
|
||||
// tx_api_messoer,
|
||||
tx_api_test,
|
||||
kg_api_test,
|
||||
wy_api_test,
|
||||
bd_api_test,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { httpFetch } from '../../request'
|
||||
import { requestMsg } from '../../message'
|
||||
import { headers, timeout } from '../messoer'
|
||||
import { headers, timeout } from '../options'
|
||||
|
||||
const api_messoer = {
|
||||
getMusicUrl(songInfo, type) {
|
||||
const requestObj = httpFetch(`https://v1.itooi.cn/tencent/url?id=${songInfo.strMediaMid}&quality=${type.replace(/k$/, '')}`, {
|
||||
const requestObj = httpFetch(`http://ts.tempmusic.tk/url/tx/${songInfo.strMediaMid}/${type}`, {
|
||||
method: 'get',
|
||||
timeout,
|
||||
headers,
|
||||
|
||||
@@ -9,6 +9,7 @@ export const getMusicType = (info, type) => {
|
||||
switch (window.globalObj.apiSource) {
|
||||
case 'kg':
|
||||
case 'wy':
|
||||
case 'tx':
|
||||
return '128k'
|
||||
}
|
||||
const rangeType = types.slice(types.indexOf(type))
|
||||
|
||||
Reference in New Issue
Block a user