mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 10:42:07 +08:00
参数调整
This commit is contained in:
@ -2,7 +2,7 @@ const { eapiResDecrypt, eapiReqDecrypt } = require('../util/crypto')
|
||||
|
||||
module.exports = async (query, request) => {
|
||||
const hexString = query.hexString
|
||||
const isFormat = query.isFormat != 'false'
|
||||
const isReq = query.isReq != 'false'
|
||||
if (!hexString) {
|
||||
return {
|
||||
status: 400,
|
||||
@ -18,7 +18,7 @@ module.exports = async (query, request) => {
|
||||
status: 200,
|
||||
body: {
|
||||
code: 200,
|
||||
data: isFormat
|
||||
data: isReq
|
||||
? eapiReqDecrypt(pureHexString)
|
||||
: eapiResDecrypt(pureHexString),
|
||||
},
|
||||
|
Reference in New Issue
Block a user