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