mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 22:53:09 +00:00
cloud.html逻辑优化
This commit is contained in:
parent
3cbad92d2f
commit
b0701be845
@ -8,7 +8,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<input id="file" type="file" multiple/>
|
||||
<input id="file" type="file" multiple />
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios@0.26.1/dist/axios.min.js"></script>
|
||||
<script>
|
||||
@ -50,7 +50,7 @@
|
||||
formData.append('songFile', file)
|
||||
axios({
|
||||
method: 'post',
|
||||
url: `http://localhost:3000/cloud?time=${Date.now()}`,
|
||||
url: `http://localhost:3000/cloud?time=${Date.now()}&cookie=${cookieToken}`,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
@ -68,7 +68,7 @@
|
||||
} else {
|
||||
console.error(`${file.name} 失败 ${fileUpdateTime[file.name]} 次`)
|
||||
}
|
||||
await login()
|
||||
// await login()
|
||||
upload(file, currentIndx)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user