From 3246b9db47308cc809df595a5cb704fc82c96439 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 17 十二月 2020 16:18:48 +0800 Subject: [PATCH] Merge branch 'NewFilePath' into CJL --- HDL_ON/Common/HDLCommon.cs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index d3f1eba..0be5c25 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -366,6 +366,17 @@ break; } } + + + /// <summary> + /// + /// </summary> + /// <param name="userName"></param> + /// <returns></returns> + public string GetUserName(string userName) + { + return string.IsNullOrEmpty(userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : userName; + } #endregion } } -- Gitblit v1.8.0