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,12 +1,12 @@
|
||||
// 注册账号
|
||||
const crypto = require('crypto')
|
||||
const CryptoJS = require('crypto-js')
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
const data = {
|
||||
captcha: query.captcha,
|
||||
phone: query.phone,
|
||||
password: crypto.createHash('md5').update(query.password).digest('hex'),
|
||||
password: CryptoJS.MD5(query.password).toString(),
|
||||
nickname: query.nickname,
|
||||
countrycode: query.countrycode || '86',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user