From 66e442dcabc2f5c204f9059796c209404bf2edde Mon Sep 17 00:00:00 2001 From: Unicorn369 <3038572935@qq.com> Date: Wed, 10 Dec 2025 10:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E7=99=BB=E5=BD=9572?= =?UTF-8?q?0p=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/androidURL.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/utils/androidURL.js b/utils/androidURL.js index 13485f6..7ce8ec1 100644 --- a/utils/androidURL.js +++ b/utils/androidURL.js @@ -220,19 +220,20 @@ async function getAndroidURL(userId, token, pid, rateType) { */ async function getAndroidURL720p(pid) { // 获取url - const timestramp = Date.now() - const appVersion = "26000009" + const timestramp = Math.round(Date.now()).toString() + const appVersion = "2600033500" + const appVersionID = appVersion + "-99000-201600010010027" let headers = { - AppVersion: 2600000900, + AppVersion: `${appVersion}`, TerminalId: "android", - "X-UP-CLIENT-CHANNEL-ID": "2600000900-99000-201600010010027" + "X-UP-CLIENT-CHANNEL-ID": `${appVersionID}` } // console.log(headers) - const str = timestramp + pid + appVersion + const str = timestramp + pid + appVersion.substring(0, 8) const md5 = getStringMD5(str) - const salt = 66666601 - const suffix = "770fafdf5ba04d279a59ef1600baae98migu6666" + const salt = String( Math.floor(Math.random() * 1000000) ).padStart(6, '0') + '80' + const suffix = "16d4328df21a4138859388418bd252c2migu" + salt.substring(0, 4) const sign = getStringMD5(md5 + suffix) let rateType = 3