This commit is contained in:
2026-01-27 14:12:40 +08:00
parent d12ef20726
commit 414f2cd320

View File

@@ -954,7 +954,13 @@
// 获取URL参数 // 获取URL参数
function getProviderIdFromUrl() { function getProviderIdFromUrl() {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
return urlParams.get('providerId') || null; // return urlParams.get('providerId') || null;
let providerId = urlParams.get('providerId');
// 处理URL格式错误的情况如 ?providerId=33041?token=xxx第二个?应该是&
if (providerId && providerId.includes('?')) {
providerId = providerId.split('?')[0];
}
return providerId || null;
} }
// 读取JSON文件 // 读取JSON文件