加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
boss.html 4.89 KB
一键复制 编辑 原始数据 按行查看 历史
Kite 提交于 2024-09-06 22:33 . 1
<html lang="zh-CN"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>咸鱼VIP Boss查询</title>
<style>
.red {
color: rgb(199, 40, 33);
font-weight: 900;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #000;
margin: 0;
padding: 0;
}
.container {
max-width: 480px;
margin: 0 auto;
padding: 20px;
background-color: white;
border-radius: 10px;
margin-top: 50px;
}
h1 {
text-align: center;
font-size: 24px;
color: #333;
}
label {
font-size: 16px;
color: #666;
}
input, button {
width: 100%;
margin: 10px 0;
padding: 15px;
border-radius: 8px;
border: none;
outline: none;
font-size: 16px;
}
input {
background-color: #f2f2f2;
}
button {
background-color: rgb(199, 40, 33);
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}
.result-box {
margin-top: 20px;
background-color: #eee;
padding: 20px;
border-radius: 8px;
color: #333;
font-size: 16px;
}
.result-box p {
margin: 0;
padding: 5px 0;
}
.highlight {
font-weight: bold;
color: rgb(199, 40, 33);
}
@media (max-width: 480px) {
.container {
padding: 10px;
margin-top: 20px;
}
h1 {
font-size: 20px;
}
input, button {
padding: 12px;
font-size: 14px;
}
}
</style>
</head>
<body>
<div class="container">
<h1>咸鱼俱乐部Boss查询</h1>
<label for="roleId">请输入咸鱼ID:</label>
<input type="text" id="roleId" placeholder="例如: 88888888">
<button onclick="fetchVipBoss()">查询</button>
<p>抄自:作者 苏御</p>
<p class="red">粉丝群自用的,请勿外传!使用人数过多就会停止使用</p>
<div id="result" class="result-box" style="display:none;">
<p>历史最高:<span class="highlight" id="lastNum"></span></p>
<p>未获得奖励的俱乐部BOSS编号:<span class="highlight" id="notObtainedNum"></span></p>
<p>温馨提示:<span class="highlight" id="notObtainedNum"></span></p>
<p>仅支持查询当前登录渠道角色的俱乐部BOSS,如有疑问请联系对应专属客服咨询<span class="highlight" id="notObtainedNum"></span></p>
</div>
</div>
<script>
function fetchVipBoss() {
const roleId = document.getElementById('roleId').value;
if (!roleId) {
alert('请输入Role ID');
return;
}
const url = `https://community-server.hortorgames.com/community-server/api/v1/vip/boss?gameId=xyzw_mix&roleId=${roleId}`;
fetch(url, {
method: 'GET',
headers: {
'Accept': '*/*',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Connection': 'keep-alive',
'Host': 'community-server.hortorgames.com',
'Origin': 'https://link.hortorgames.com',
'Referer': 'https://link.hortorgames.com/',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-site',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090b19)XWEB/11253',
'token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE5NjkwLCJnYW1lSWQiOiJ4eXp3c3FfbWluaWdhbWUiLCJ1bmlvbklkIjoibzN4WDc2Z3BCaGxvMldFWGJZdnZMdzYxYUZoZyIsInVuaXF1ZUlkIjoiNDJjYWY0ZTljMTQ1YWZiNzFiMTFiMzAwZGYwNzAzMzEiLCJleHAiOjE3MjYyMzE4OTh9.pYqLPByQJRlQUUZlCLGc336lAiAsGYddVA_k37fmClU'
}
})
.then(response => response.json())
.then(data => {
if (data.meta.errCode === 0) {
document.getElementById('lastNum').textContent = data.data.lastNum;
document.getElementById('notObtainedNum').textContent = data.data.notObtainedNum.join(', ');
document.getElementById('result').style.display = 'block';
} else {
alert(`查询错误: ${data.meta.errMsg}`);
}
})
.catch(error => {
alert(`Error: ${error}`);
});
}
</script>
</body></html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化