Explorar o código

添加部分代码

yuanrf hai 1 ano
pai
achega
1ca972f896
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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)