Merge pull request #13 from lxmusics/dev

Dev
This commit is contained in:
Folltoshe 2023-06-10 17:59:05 +08:00 committed by GitHub
commit 9b90a2d325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,10 +1,15 @@
import { filterMusicInfoItem } from './util' import { filterMusicInfoItem } from './util'
import { httpFetch } from '../../request' import { httpFetch } from '../../request'
export const getMusicInfo = (id) => { export const getMusicInfo = id => {
return httpFetch('https://u.y.qq.com/cgi-bin/musicu.fcg', { return httpFetch('https://u.y.qq.com/cgi-bin/musicu.fcg', {
method: 'POST', method: 'POST',
body: { body: {
comm: {
ct: '19',
cv: '1859',
uin: '0',
},
req: { req: {
module: 'music.pf_song_detail_svr', module: 'music.pf_song_detail_svr',
method: 'get_song_detail_yqq', method: 'get_song_detail_yqq',

View File

@ -1,4 +1,3 @@
import { httpFetch } from '../../request'
import { formatPlayTime, sizeFormate } from '../../index' import { formatPlayTime, sizeFormate } from '../../index'
import { formatSingerName } from '../utils' import { formatSingerName } from '../utils'