From 51bcadcc5ece12fc430f0f09bf649326360febb7 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 03 九月 2025 17:43:52 +0800 Subject: [PATCH] feat: 钱包 --- packages/utils/common.ts | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/packages/utils/common.ts b/packages/utils/common.ts index cbf1993..13bbb46 100644 --- a/packages/utils/common.ts +++ b/packages/utils/common.ts @@ -135,3 +135,8 @@ if (!realIDNumber) return ''; return realIDNumber.replace(/^(\d+)(.{6})$/, '$1******'); }; + +export const hiddenPhone = (phone: string) => { + if (!phone) return ''; + return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); +}; -- Gitblit v1.9.1