function generateSubscriptionUrl() {
const getCookie = (name) => {
const value = '; ' + document.cookie;
const parts = value.split('; ' + name + '=');
if (parts.length === 2) {
return parts.pop().split(';').shift();
}
};
const user_id = getCookie('userId');
const user_token = getCookie('P00001');
if (user_id && user_token) {
url = `https://livednow.org/iqiyi/list?id=${user_id}&token=${user_token}`;
console.log('你的订阅配置为:', url);
return url;
} else {
console.log('One or more cookies are missing');
}
}
generateSubscriptionUrl();