From 09542900534645e28c23f16caa94aa8a2c20cc5b Mon Sep 17 00:00:00 2001
From: payne <bzrlw2012@163.com>
Date: 周五, 03 5月 2024 16:10:02 +0800
Subject: [PATCH] 往来单位助记码功能调整为 中文名称输入立即调用接口实现

---
 iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Util/ChineseSpell/MnemonicCodeUtil.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Util/ChineseSpell/MnemonicCodeUtil.cs b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Util/ChineseSpell/MnemonicCodeUtil.cs
index 2d6ef48..861d235 100644
--- a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Util/ChineseSpell/MnemonicCodeUtil.cs
+++ b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Util/ChineseSpell/MnemonicCodeUtil.cs
@@ -155,6 +155,10 @@
         /// <returns></returns>
         public static string funChineseSpell(string strChinese, bool IsName)
         {
+            if (string.IsNullOrWhiteSpace(strChinese))
+            {
+                return string.Empty;
+            }
             string strSpell, strThis;
             int i, numCount, numIndex;
             char[] chrWord;

--
Gitblit v1.9.3