From 7eccaa2c07036fcf0d4a9fa2a66905f2725beba3 Mon Sep 17 00:00:00 2001 From: binaryify Date: Tue, 12 Dec 2023 12:38:35 +0800 Subject: [PATCH] fix: lint error --- plugins/songUpload.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/songUpload.js b/plugins/songUpload.js index cf34210..7d9c784 100644 --- a/plugins/songUpload.js +++ b/plugins/songUpload.js @@ -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`,