Skip to content

Commit 2e90adc

Browse files
committed
fix: 添加通过PandoraNext获取sess
1 parent 6df15c2 commit 2e90adc

File tree

5 files changed

+387
-10
lines changed

5 files changed

+387
-10
lines changed

get_sess.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,12 @@ <h3>输入 API KEY</h3>
8080
<!-- 下半部分 -->
8181
<h4>页面列表</h4>
8282
<mdui-menu style="width:100%;margin-top:20px;">
83-
<mdui-menu-item icon="search" href="index.html">查API信息</mdui-menu-item>
84-
<mdui-menu-item icon="vpn_key" href="get_sess.html">通过access token获取sess</mdui-menu-item>
85-
<mdui-menu-item icon="build" href="https://woodchen.ink/1266.html"
86-
target="_blank">手动获取sess的方法</mdui-menu-item>
87-
<mdui-menu-item icon="account_tree" href="https://github.com/pandora-next/deploy"
88-
target="_blank">pandora无痛获取access</mdui-menu-item>
89-
</mdui-menu>
83+
<mdui-menu-item icon="search" href="index.html">查API信息</mdui-menu-item>
84+
<mdui-menu-item icon="vpn_key" href="get_sess.html">通过access token获取sess</mdui-menu-item>
85+
<mdui-menu-item icon="vpn_key" href="get_sess2.html">通过PandoraNext获取sess</mdui-menu-item>
86+
<mdui-menu-item icon="build" href="https://woodchen.ink/1266.html"
87+
target="_blank">手动获取sess的方法</mdui-menu-item>
88+
</mdui-menu>
9089

9190
<div style="margin-top:20px;">
9291
<mdui-chip elevated icon="code"> 本网页由<a href="https://woodchen.ink"

get_sess2.html

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<!DOCTYPE html>
2+
<html class="mdui-theme-light" lang="zh-cmn-Hans">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>通过PandoraNext来获取Sensitive Id</title>
7+
<meta
8+
name="description"
9+
content="批量快速查询OPENAI的余额,支持可视化展现已用比例、额度、已用量、未用量、是否GPT-4、是否GPT4-32K、是否绑卡、绑卡信息、组织信息、是否有效"
10+
/>
11+
<link rel="stylesheet" href="./static/css-1.css" type="text/css" />
12+
<link rel="stylesheet" href="./static/mdui/mdui.css" />
13+
<script src="./static/mdui/mdui.global.js"></script>
14+
15+
<script>
16+
mdui.setColorScheme("#0d2d44");
17+
</script>
18+
</head>
19+
20+
<body>
21+
<style>
22+
th,
23+
td {
24+
cursor: pointer; /* 添加鼠标指针样式 */
25+
white-space: normal; /* 设置为normal使内容自动换行 */
26+
word-wrap: break-word; /* 设置为break-word以确保长单词/链接被截断换行 */
27+
}
28+
/* 复制按钮样式 */
29+
.copy-button {
30+
height: 36px;
31+
cursor: pointer;
32+
background-color: #4caf50;
33+
color: white;
34+
padding: 8px;
35+
border: none;
36+
border-radius: 4px;
37+
margin: 8px 0;
38+
margin-top: 20px;
39+
}
40+
</style>
41+
<mdui-layout>
42+
<mdui-layout-main>
43+
<div class="mdui-main-container">
44+
<div style="display: flex">
45+
<h2 style="flex: 1">查询结果</h2>
46+
<button class="copy-button" onclick="copyTable()">
47+
复制全部内容
48+
</button>
49+
</div>
50+
<div class="mdui-table">
51+
<table id="result-table">
52+
<thead>
53+
<tr>
54+
<th>序号</th>
55+
<th>邮箱账户</th>
56+
<th>手机号</th>
57+
<th>Sensitive ID</th>
58+
<th>Refresh Token</th>
59+
<th>Access Token</th>
60+
<th>Sensitive ID创建时间</th>
61+
</tr>
62+
</thead>
63+
<tbody id="result-tbody" style="max-width: 100%">
64+
<!-- 表格内容 -->
65+
</tbody>
66+
</table>
67+
</div>
68+
</div>
69+
</mdui-layout-main>
70+
71+
<mdui-top-app-bar>
72+
<mdui-button-icon
73+
icon="menu"
74+
close-on-overlay-click
75+
id="toggle-button"
76+
style="color: white"
77+
></mdui-button-icon>
78+
<mdui-top-app-bar-title style="text-align: center; color: white"
79+
>通过PandoraNext来获取Sensitive Id</mdui-top-app-bar-title
80+
>
81+
</mdui-top-app-bar>
82+
83+
<mdui-navigation-drawer open class="left-drawer" close-on-overlay-click>
84+
<div class="left-drawer-main">
85+
<h3>输入 API KEY</h3>
86+
<p>本站不保存 KEY 信息,查询后请自行保存</p>
87+
<mdui-text-field
88+
id="api-key-input"
89+
placeholder="请输入账号密码,格式为'账号|密码|MFA验证码',多个请换行"
90+
label="username|password|MFA"
91+
rows="6"
92+
></mdui-text-field>
93+
94+
<mdui-text-field
95+
type="text"
96+
id="custom-url-input"
97+
placeholder="输入PandoraNext的API地址和前缀"
98+
></mdui-text-field>
99+
100+
<div style="height: 2rem"></div>
101+
102+
<mdui-button
103+
full-width
104+
id="query-button"
105+
icon="search"
106+
onclick="sendRequest()"
107+
>
108+
查询
109+
</mdui-button>
110+
111+
<!-- 下半部分 -->
112+
<h4>页面列表</h4>
113+
<mdui-menu style="width: 100%; margin-top: 20px">
114+
<mdui-menu-item icon="search" href="index.html"
115+
>查API信息</mdui-menu-item
116+
>
117+
<mdui-menu-item icon="vpn_key" href="get_sess.html"
118+
>通过access token获取sess</mdui-menu-item
119+
>
120+
<mdui-menu-item icon="vpn_key" href="get_sess2.html"
121+
>通过PandoraNext获取sess</mdui-menu-item
122+
>
123+
<mdui-menu-item
124+
icon="build"
125+
href="https://woodchen.ink/1266.html"
126+
target="_blank"
127+
>手动获取Sensitive Id的方法</mdui-menu-item
128+
>
129+
</mdui-menu>
130+
131+
<div style="margin-top: 20px">
132+
<mdui-chip elevated icon="code">
133+
本网页由<a href="https://woodchen.ink" target="_blank">woodchen</a
134+
>开源于<a
135+
href="https://github.com/woodchen-ink/openai-billing-query"
136+
target="_blank"
137+
>Github</a
138+
>
139+
</mdui-chip>
140+
</div>
141+
</div>
142+
</mdui-navigation-drawer>
143+
</mdui-layout>
144+
<script src="./static/getsess2.js"></script>
145+
</body>
146+
</html>

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ <h4>页面列表</h4>
9292
<mdui-menu style="width:100%;margin-top:20px;">
9393
<mdui-menu-item icon="search" href="index.html">查API信息</mdui-menu-item>
9494
<mdui-menu-item icon="vpn_key" href="get_sess.html">通过access token获取sess</mdui-menu-item>
95+
<mdui-menu-item icon="vpn_key" href="get_sess2.html">通过PandoraNext获取sess</mdui-menu-item>
9596
<mdui-menu-item icon="build" href="https://woodchen.ink/1266.html"
9697
target="_blank">手动获取sess的方法</mdui-menu-item>
97-
<mdui-menu-item icon="account_tree" href="https://github.com/pandora-next/deploy"
98-
target="_blank">pandora无痛获取access</mdui-menu-item>
9998
</mdui-menu>
10099

101100
<div style="margin-top:20px;">

static/getsess.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,15 @@ function hideLoadingAnimation() {
210210
// 将原始按钮元素替代回来
211211
progressElement.parentElement.replaceChild(button, progressElement);
212212
}
213-
}
213+
}
214+
215+
let isOpen = true;
216+
217+
toggleButton.addEventListener("click", () => {
218+
isOpen = !isOpen;
219+
if (isOpen) {
220+
navigationDrawer.open = true;
221+
} else {
222+
navigationDrawer.open = false;
223+
}
224+
});

0 commit comments

Comments
 (0)