mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 03:42:07 +08:00
fix: 修复vercel无文件创建权限问题 #1796
This commit is contained in:
@ -6,7 +6,12 @@ const http = require('http')
|
||||
const https = require('https')
|
||||
const tunnel = require('tunnel')
|
||||
const fs = require('fs')
|
||||
const anonymous_token = fs.readFileSync('./anonymous_token', 'utf-8')
|
||||
const path = require('path')
|
||||
const tmpPath = require('os').tmpdir()
|
||||
const anonymous_token = fs.readFileSync(
|
||||
path.resolve(tmpPath, './anonymous_token'),
|
||||
'utf-8',
|
||||
)
|
||||
console.log(anonymous_token)
|
||||
const { URLSearchParams, URL } = require('url')
|
||||
// request.debug = true // 开启可看到更详细信息
|
||||
|
Reference in New Issue
Block a user