From 63273558f5f899c8d24c7a810989fc4fb33f8e3e Mon Sep 17 00:00:00 2001 From: Default User Date: Mon, 2 Feb 2026 13:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=B5=E8=AF=9D=E5=8F=B7?= =?UTF-8?q?=E7=A0=81=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F=EF=BC=8C=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E9=9A=90=E8=97=8F=E4=B8=BA*=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- certificate.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/certificate.html b/certificate.html index 0988707..ae88a24 100644 --- a/certificate.html +++ b/certificate.html @@ -531,10 +531,10 @@ return dateValue; } - // 隐藏电话号码中间四位 + // 完全隐藏电话号码,全部显示为*号 function hidePhoneNumber(phone) { - if (!phone || phone.length !== 11) return phone; - return phone.substring(0, 3) + '****' + phone.substring(7); + if (!phone) return phone; + return '*'.repeat(phone.length); } // 隐藏主体名称中间部分,只显示第一个字和最后一个字