mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
update: 使用 crypto-js 重构 crypto 部分
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
const CryptoJS = require('crypto-js')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
phone: query.phone,
|
||||
countrycode: query.countrycode || '86',
|
||||
captcha: query.captcha,
|
||||
password: query.password
|
||||
? crypto.createHash('md5').update(query.password).digest('hex')
|
||||
: '',
|
||||
password: query.password ? CryptoJS.MD5(query.password).toString() : '',
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
|
||||
Reference in New Issue
Block a user