From 0f8d8c435f53cd2e7d4243608745f0e6cb152289 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 11 八月 2025 10:00:09 +0800
Subject: [PATCH] feat: 接口对接

---
 packages/utils/common.ts |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/packages/utils/common.ts b/packages/utils/common.ts
index c36c689..bd11db4 100644
--- a/packages/utils/common.ts
+++ b/packages/utils/common.ts
@@ -53,6 +53,7 @@
  * @returns
  */
 export function addStarForString(str: string, start = 0, end = 0) {
+  if (!str) return '';
   return str.substring(0, start) + '*'.repeat(end - start) + str.substring(end);
 }
 

--
Gitblit v1.9.1