Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Dec 12, 2023
1 parent 50ab628 commit 7eccaa2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/songUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ module.exports = async (query, request) => {
// 上传
const objectKey = tokenRes.body.result.objectKey.replace('/', '%2F')
try {
const lbs = (await axios({
method: 'get',
url: `https://wanproxy.127.net/lbs?version=1.0&bucketname=${bucket}`,
})).data;
const lbs = (
await axios({
method: 'get',
url: `https://wanproxy.127.net/lbs?version=1.0&bucketname=${bucket}`,
})
).data
await axios({
method: 'post',
url: `http://${lbs.upload[0]}/${bucket}/${objectKey}?offset=0&complete=true&version=1.0`,
Expand Down

0 comments on commit 7eccaa2

Please sign in to comment.