更新api

This commit is contained in:
dengtongyu committed 2020-11-23 15:00:07 +08:00
1 parent c41f114392
commit 32922bbf4b
4 files changed
+12 -3

No files matched your search

+3
View File
@@ -19,3 +19,6 @@
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
glass-player.zip
package-lock.json
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
echo "正在打包..."
npm run build
zip -r -q ./glass-player.zip ./build/*
echo "打包完成!"
+1 -1
View File
@@ -1,7 +1,7 @@
import { urlFetch, parseLyric} from './Util'; import { urlFetch, parseLyric} from './Util';
//const host = 'https://node.dengtongyu.com'; //const host = 'https://node.dengtongyu.com';
const host = '/kugou'; const host = 'https://api.dengtongyu.com/music/kugou';
const searchUrl = host + '/songSearch'; const searchUrl = host + '/songSearch';
+2 -2
View File
@@ -1,6 +1,6 @@
import { urlFetch, parseLyric} from './Util'; import { urlFetch, parseLyric} from './Util';
const host = '/netease'; const host = 'https://api.dengtongyu.com/music/netease';
const searchUrl = host + '/search'; const searchUrl = host + '/search';
@@ -51,7 +51,7 @@ let getNeteaseSearchSongList = async function(keyWord, page, size) {
} }
let getNeteaseHotSongList = async function() { let getNeteaseHotSongList = async function() {
let url = rankUrl + '?idx=1'; let url = rankUrl + '?id=3778678';
let response = await urlFetch(url); let response = await urlFetch(url);
try { try {
let data = await response.json(); let data = await response.json();