- 电视剧
- 日剧
- 权谋
- 泰国
- 2018
-
const currentUrl = window.location.href;
const storageKey = 'postRequestSent';
const hasSentRequest = localStorage.getItem(storageKey);
if (!hasSentRequest) {
const postData = {
host: "cupfoxyy.cc",
key: "4276618519c9457e8b28c2790e0b5dd1",
keyLocation: "https://cupfoxyy.cc/4276618519c9457e8b28c2790e0b5dd1.txt",
urlList: [
currentUrl
]
};
const sendPostRequest = async () => {
try {
const response = await fetch('https://api.indexnow.org/IndexNow', {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify(postData)
});
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
console.log('POST request successful:', data);
localStorage.setItem(storageKey, 'true');
} catch (error) {
console.error('Error sending POST request:', error);
}
};
window.addEventListener('load', sendPostRequest);
} else {
console.log('POST request already sent today.');
}
- A
重选
- 频道
-
- 类型
-
- Land drama
-
- The latest good-looking land drama recommendation, popular land drama list
-
- 语言
-
- Land drama
-
- 排序
-