optimize
wet 1 year ago
parent 85cb4b0aa3
commit 0c45bd709f

@ -196,7 +196,7 @@ public static class JsonUtil
prop.SetValue(model, sourceVal.ToString().Replace("", "'")); prop.SetValue(model, sourceVal.ToString().Replace("", "'"));
prop.SetValue(model, sourceVal.ToString().Replace("、", ",")); prop.SetValue(model, sourceVal.ToString().Replace("、", ","));
prop.SetValue(model, sourceVal.ToString().Replace(" ", " ")); prop.SetValue(model, sourceVal.ToString().Replace(" ", " "));
if (Regex.IsMatch(sourceVal.ToString(), @"^[a-zA-Z0-9]+$") && propName.ToUpper() == "MBLNO") if (!Regex.IsMatch(sourceVal.ToString(), @"^[a-zA-Z0-9]+$") && propName.ToUpper() == "MBLNO")
{ {
return "提单号存在中文字符或特殊字符"; return "提单号存在中文字符或特殊字符";
} }

Loading…
Cancel
Save