From 71c8bf4f1ecbc52e0b61c56e7c64b0880e3a5696 Mon Sep 17 00:00:00 2001 From: kasenhoo Date: Fri, 26 Apr 2019 21:58:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(#IVY9T):=20=E5=AD=97=E5=85=B8=E8=A1=A8?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E9=A1=B5=E9=9D=A2=E5=AD=97=E5=85=B8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=95=BF=E5=BA=A6=E5=A4=A7=E4=BA=8E50=E6=97=B6?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=A2=AB=E6=88=AA=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Issue https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues/IVY9T?from=project-issue #Comment close #IVY9T --- Bootstrap.DataAccess/Dict.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bootstrap.DataAccess/Dict.cs b/Bootstrap.DataAccess/Dict.cs index 46908bec..6cc87585 100644 --- a/Bootstrap.DataAccess/Dict.cs +++ b/Bootstrap.DataAccess/Dict.cs @@ -35,7 +35,8 @@ namespace Bootstrap.DataAccess { if (dict.Category.Length > 50) dict.Category = dict.Category.Substring(0, 50); if (dict.Name.Length > 50) dict.Name = dict.Name.Substring(0, 50); - if (dict.Code.Length > 50) dict.Code = dict.Code.Substring(0, 50); + + if (dict.Code.Length > 500) dict.Code = dict.Code.Substring(0, 500); DbManager.Create().Save(dict); return true;