mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-06-13 18:55:07 +00:00
18 lines
547 B
JavaScript
18 lines
547 B
JavaScript
const createOption = (query, crypto = '') => {
|
|
return {
|
|
crypto: query.crypto || crypto || '',
|
|
cookie: query.cookie || process.env.NETEASE_COOKIE,
|
|
ua: query.ua || '',
|
|
proxy: query.proxy,
|
|
realIP: query.realIP,
|
|
randomCNIP:
|
|
process.env.ENABLE_RANDOM_CN_IP === 'true'
|
|
? !['false', false].includes(query.randomCNIP)
|
|
: ['true', true].includes(query.randomCNIP),
|
|
e_r: query.e_r || undefined,
|
|
domain: query.domain || '',
|
|
checkToken: query.checkToken || false,
|
|
}
|
|
}
|
|
module.exports = createOption
|