mirror of
https://github.com/woodchen-ink/openai-billing-query.git
synced 2025-07-19 14:32:00 +08:00
update
This commit is contained in:
parent
918213a64e
commit
e3abc00e1b
@ -52,8 +52,8 @@
|
|||||||
<div class="left-drawer-main">
|
<div class="left-drawer-main">
|
||||||
<h3>输入 API KEY</h3>
|
<h3>输入 API KEY</h3>
|
||||||
<p>本站不保存 KEY 信息,查询后请自行保存</p>
|
<p>本站不保存 KEY 信息,查询后请自行保存</p>
|
||||||
<mdui-text-field id="api-key-input" placeholder="请输入 API-KEY或sessID,多个可直接粘贴" rows="8"
|
<mdui-text-field id="api-key-input" placeholder="请输入 API-KEY或sessID,多个可直接粘贴"
|
||||||
label="API-KEY或sessID"></mdui-text-field>
|
label="API-KEY或sessID" rows="6"></mdui-text-field>
|
||||||
|
|
||||||
<mdui-select id="api-url-select" icon="airline_stops" label="查询线路" value="https://api.openai.com"
|
<mdui-select id="api-url-select" icon="airline_stops" label="查询线路" value="https://api.openai.com"
|
||||||
onchange="toggleCustomUrlInput()">
|
onchange="toggleCustomUrlInput()">
|
||||||
|
@ -13,11 +13,13 @@ mdui-button {
|
|||||||
.left-drawer-main{
|
.left-drawer-main{
|
||||||
padding:20px 10px 0 10px;
|
padding:20px 10px 0 10px;
|
||||||
/* background-color: rgba(var(--mdui-color-primary), 0.1); */
|
/* background-color: rgba(var(--mdui-color-primary), 0.1); */
|
||||||
height:calc(100vh - 84px);
|
/* height:calc(100vh - 84px); */
|
||||||
}
|
}
|
||||||
.mdui-main-container{
|
.mdui-main-container{
|
||||||
width:96%;
|
width:92%;
|
||||||
padding:20px auto 0 auto;
|
/* padding:20px auto 0 auto; */
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
|
@ -360,7 +360,11 @@ function sendRequest() {
|
|||||||
let apiKey = apiKeys[i].trim();
|
let apiKey = apiKeys[i].trim();
|
||||||
|
|
||||||
if (queriedApiKeys.includes(apiKey)) {
|
if (queriedApiKeys.includes(apiKey)) {
|
||||||
console.log(`API KEY ${apiKey} 已查询过,跳过此次查询`);
|
mdui.alert({
|
||||||
|
headline: "重复提示",
|
||||||
|
description: `API KEY ${apiKey} 已查询过,跳过此次查询`,
|
||||||
|
confirmText: "OK"
|
||||||
|
})
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
queriedApiKeys.push(apiKey);
|
queriedApiKeys.push(apiKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user