From 7e6b92688789854857ffed0473728089c6a4c5c2 Mon Sep 17 00:00:00 2001 From: wood Date: Sat, 22 Jul 2023 01:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=9A=84key=E6=89=93=E7=A0=81=E8=A7=84=E5=88=99?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81sess=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 52e71d1..d8f2314 100644 --- a/index.html +++ b/index.html @@ -536,7 +536,8 @@ row.appendChild(serialNumberCell); // 将序列号单元格添加到行中 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); console.log(data); // 添加 console.log 以查看 data 的值