mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 22:53:09 +00:00
fix: lint error
This commit is contained in:
parent
50ab628751
commit
7eccaa2c07
@ -28,10 +28,12 @@ module.exports = async (query, request) => {
|
|||||||
// 上传
|
// 上传
|
||||||
const objectKey = tokenRes.body.result.objectKey.replace('/', '%2F')
|
const objectKey = tokenRes.body.result.objectKey.replace('/', '%2F')
|
||||||
try {
|
try {
|
||||||
const lbs = (await axios({
|
const lbs = (
|
||||||
method: 'get',
|
await axios({
|
||||||
url: `https://wanproxy.127.net/lbs?version=1.0&bucketname=${bucket}`,
|
method: 'get',
|
||||||
})).data;
|
url: `https://wanproxy.127.net/lbs?version=1.0&bucketname=${bucket}`,
|
||||||
|
})
|
||||||
|
).data
|
||||||
await axios({
|
await axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: `http://${lbs.upload[0]}/${bucket}/${objectKey}?offset=0&complete=true&version=1.0`,
|
url: `http://${lbs.upload[0]}/${bucket}/${objectKey}?offset=0&complete=true&version=1.0`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user