mirror of
https://github.com/woodchen-ink/openai-billing-query.git
synced 2025-07-18 14:01:59 +08:00
修改查询结果的key打码规则,支持sess查询
This commit is contained in:
parent
efff200e23
commit
7e6b926887
@ -536,7 +536,8 @@
|
|||||||
row.appendChild(serialNumberCell); // 将序列号单元格添加到行中
|
row.appendChild(serialNumberCell); // 将序列号单元格添加到行中
|
||||||
|
|
||||||
let apiKeyCell = document.createElement("td");
|
let apiKeyCell = document.createElement("td");
|
||||||
apiKeyCell.textContent = apiKey.replace(/^(sk-[a-zA-Z0-9]{4})[a-zA-Z0-9]*(.{6})$/, "$1***$2");
|
// apiKeyCell.textContent = apiKey.replace(/^(sk-[a-zA-Z0-9]{4})[a-zA-Z0-9]*(.{6})$/, "$1***$2");
|
||||||
|
apiKeyCell.textContent = apiKey.replace(/^(.{5}).*(.{4})$/, "$1***$2");
|
||||||
row.appendChild(apiKeyCell);
|
row.appendChild(apiKeyCell);
|
||||||
|
|
||||||
console.log(data); // 添加 console.log 以查看 data 的值
|
console.log(data); // 添加 console.log 以查看 data 的值
|
||||||
|
Loading…
x
Reference in New Issue
Block a user