Explorar o código

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

Hcsy %!s(int64=7) %!d(string=hai) anos
pai
achega
f2551a5879
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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