yuanrf пре 1 година
родитељ
комит
1ca972f896
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      OASystem/OASystem.Api/Controllers/BaiduOCRController.cs

+ 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)