更新api
This commit is contained in:
1 parent
c41f114392
commit
32922bbf4b
4 files changed
+12
-3
No files matched your search
@@ -19,3 +19,6 @@
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
glass-player.zip
|
||||
package-lock.json
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "正在打包..."
|
||||
npm run build
|
||||
zip -r -q ./glass-player.zip ./build/*
|
||||
echo "打包完成!"
|
||||
@@ -1,7 +1,7 @@
|
||||
import { urlFetch, parseLyric} from './Util';
|
||||
|
||||
//const host = 'https://node.dengtongyu.com';
|
||||
const host = '/kugou';
|
||||
const host = 'https://api.dengtongyu.com/music/kugou';
|
||||
|
||||
const searchUrl = host + '/songSearch';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { urlFetch, parseLyric} from './Util';
|
||||
|
||||
const host = '/netease';
|
||||
const host = 'https://api.dengtongyu.com/music/netease';
|
||||
|
||||
const searchUrl = host + '/search';
|
||||
|
||||
@@ -51,7 +51,7 @@ let getNeteaseSearchSongList = async function(keyWord, page, size) {
|
||||
}
|
||||
|
||||
let getNeteaseHotSongList = async function() {
|
||||
let url = rankUrl + '?idx=1';
|
||||
let url = rankUrl + '?id=3778678';
|
||||
let response = await urlFetch(url);
|
||||
try {
|
||||
let data = await response.json();
|
||||
|
||||
Reference in new issue
Block a user