yuanrf 1 рік тому
батько
коміт
1ca972f896

+ 5 - 0
OASystem/OASystem.Api/Controllers/BaiduOCRController.cs

@@ -120,6 +120,11 @@ namespace OASystem.API.Controllers
                             string words = item.words.Replace("\\n", "");
                             string values = dicHeader[j];
 
+                            if (words.IsNullOrWhiteSpace())
+                            {
+                                continue;
+                            }
+
                             if (values.Equals("Name"))
                             {
                                 if (Regex.Matches(words, "[a-zA-Z]").Count < 1)