refactor: request无需传入请求方式

This commit is contained in:
overwriter
2024-07-31 08:55:35 +08:00
parent 0fc4057a81
commit c1011b8602
273 changed files with 146 additions and 903 deletions
-2
View File
@@ -13,7 +13,6 @@ module.exports = async (query, request) => {
try {
const res = await request(
'POST',
`/api/playlist/manipulate/tracks`,
data,
createOption(query, 'weapi'),
@@ -27,7 +26,6 @@ module.exports = async (query, request) => {
} catch (error) {
if (error.body.code === 512) {
return request(
'POST',
`/api/playlist/manipulate/tracks`,
{
op: query.op, // del,add