From 143fddd0661eeb115cad7deb3b177617ab4f5006 Mon Sep 17 00:00:00 2001 From: toolor Date: Wed, 27 Mar 2024 21:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=8F=B0=E8=8A=82=E7=9B=AE=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/voice_trans.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 module/voice_trans.js diff --git a/module/voice_trans.js b/module/voice_trans.js new file mode 100644 index 0000000..ff44b20 --- /dev/null +++ b/module/voice_trans.js @@ -0,0 +1,20 @@ +module.exports = (query, request) => { + const data = { + limit: query.limit || "200", // 每页数量 + offset: query.offset || "0", // 偏移量 + radioId: query.radioId || null, // 电台id + programId: query.programId || "0", // 节目id + position: query.position || "1", // 排序编号 + }; + return request( + "POST", + `https://interface.music.163.com/api/voice/workbench/radio/program/trans`, + data, + { + crypto: "weapi", + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + } + ); +};