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: