Browse Source

供应商条码打印json数据解析BUG修改

Hcsy 7 years ago
parent
commit
f2551a5879
1 changed files with 2 additions and 1 deletions
  1. 2 1
      UAS_Web/tool/RequestHandler.cs

+ 2 - 1
UAS_Web/tool/RequestHandler.cs

@@ -303,7 +303,8 @@ namespace UAS_Web.tool
             }
             else
             {
-                MatchCollection Match = Regex.Matches(JsonData, @"""(.+?)"": {0,1}(\[[\s\S]+?\]|null|"".+?""|-{0,1}\d*)");//使用正则表达式匹配出JSON数据中的键与值 
+                MatchCollection Match = Regex.Matches(JsonData, @"""(.+?)"": {0,1}(\[[\s\S]+?\}\s*\]|null|"".+?""|-{0,1}\d*)");//使用正则表达式匹配出JSON数据中的键与值 
+
                 foreach (Match item in Match)
                 {
                     try