开放腾讯源128k音源直接播放

This commit is contained in:
lyswhut
2019-09-30 15:24:00 +08:00
parent bac9439f8e
commit 6d7be78b70
7 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -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,
+2 -2
View File
@@ -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,
+1
View File
@@ -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))