Ver código fonte

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

Hcsy 7 anos atrás
pai
commit
f2551a5879
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      UAS_Web/tool/RequestHandler.cs

+ 2 - 1
UAS_Web/tool/RequestHandler.cs

@@ -303,7 +303,8 @@ namespace UAS_Web.tool
             }
             }
             else
             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)
                 foreach (Match item in Match)
                 {
                 {
                     try
                     try