兼容其他歌单分享方式

This commit is contained in:
lyswhut
2020-04-06 17:42:26 +08:00
parent bcbedbe053
commit 07460ba06f
2 changed files with 64 additions and 16 deletions
+4
View File
@@ -1,3 +1,5 @@
import crypto from 'crypto'
/**
* 获取音乐音质
* @param {*} info
@@ -18,3 +20,5 @@ export const getMusicType = (info, type) => {
}
return '128k'
}
export const toMD5 = str => crypto.createHash('md5').update(str).digest('hex')