From 5a9f9fa667ef8755a6e6b5796ff805990811d034 Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Tue, 24 Sep 2024 11:52:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=E3=80=90=E3=80=90=E8=BD=A8=E8=BF=B9?= =?UTF-8?q?=E4=B8=AD=E5=8F=B0=E3=80=91kpi=E9=A2=84=E8=AD=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=A2=84=E8=AD=A6=E5=9B=A0=E7=B4=A0=E9=94=80=E5=94=AE?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E9=99=90=E5=88=B6=E4=B8=8D=E8=83=BD=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E4=B8=AD=E6=96=87=E3=80=91=20=20=20=20https://www.tap?= =?UTF-8?q?d.cn/60863849/bugtrace/bugs/view/1160863849001049573?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SJZY.Track.Application/Helpers/ForewarningHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs b/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs index f91da6db..d804518b 100644 --- a/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs +++ b/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs @@ -134,6 +134,11 @@ public class ForewarningHelper throw new BusinessException(message: "产品代码只接收字符串"); } + if (!StringHelper.IsValidEnglishString(value.ToString())) + { + throw new BusinessException(message: "产品代码只能的英文字符"); + } + rules[row].ProductCode = strValue; break; default: