|
@@ -171,14 +171,14 @@ extractNJSFunction = async (baseJsUrl, platform) => {
|
|
return findFunction(baseJsContent, /([a-zA-Z0-9]+)=function\([a-zA-Z0-9]+\)\{var b=a\.split\(""\)[\s\S]*?};/);
|
|
return findFunction(baseJsContent, /([a-zA-Z0-9]+)=function\([a-zA-Z0-9]+\)\{var b=a\.split\(""\)[\s\S]*?};/);
|
|
}
|
|
}
|
|
|
|
|
|
-signUrl = async (signatureCipher, baseJsUrl, platfrom) => {
|
|
|
|
|
|
+signUrl = async (signatureCipher, baseJsUrl, platform) => {
|
|
const searchParams = {}
|
|
const searchParams = {}
|
|
for (const item of signatureCipher.split('&')) {
|
|
for (const item of signatureCipher.split('&')) {
|
|
const [key, value] = item.split('=');
|
|
const [key, value] = item.split('=');
|
|
searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
}
|
|
}
|
|
const [url, signature, sp] = [searchParams['url'], searchParams['s'], searchParams['sp']];
|
|
const [url, signature, sp] = [searchParams['url'], searchParams['s'], searchParams['sp']];
|
|
- const decipher = await extractJSSignatureFunction(baseJsUrl, platfrom);
|
|
|
|
|
|
+ const decipher = await extractJSSignatureFunction(baseJsUrl, platform);
|
|
if (!decipher) {
|
|
if (!decipher) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
@@ -202,7 +202,7 @@ signUrl = async (signatureCipher, baseJsUrl, platfrom) => {
|
|
searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
searchParams[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
}
|
|
}
|
|
|
|
|
|
- const nFunction = await extractNJSFunction(baseJsUrl, platfrom);
|
|
|
|
|
|
+ const nFunction = await extractNJSFunction(baseJsUrl, platform);
|
|
const n = searchParams['n']
|
|
const n = searchParams['n']
|
|
if (n && nFunction) {
|
|
if (n && nFunction) {
|
|
const newN = nFunction(n);
|
|
const newN = nFunction(n);
|