diff --git a/类库/Grant.Framework/GrantClient.cs b/类库/Grant.Framework/GrantClient.cs index 02adb5e..10d307c 100644 --- a/类库/Grant.Framework/GrantClient.cs +++ b/类库/Grant.Framework/GrantClient.cs @@ -795,6 +795,7 @@ namespace Grant.Framework { lock (sendpackObj) { + string html = string.Empty; if (m == null) return new WebResult() { message = server }; int number = 0; WebResult web = null; @@ -851,7 +852,7 @@ namespace Grant.Framework }; CsharpHttpHelper.HttpResult result = http.GetHtml(item); - var html = result.Html; + html = result.Html; var reg = Regex.Match(html, "^[A-Za-z0-9]+$"); if (!reg.Success) { @@ -865,7 +866,7 @@ namespace Grant.Framework web = tea.json.Deserialize(json_data); } if (!web.ok) - throw new Exception(web.message.ToString()); + throw new Exception($"{web.message.ToString()}_,{html}"); return web; } catch (Exception ex) @@ -877,12 +878,10 @@ namespace Grant.Framework } if (!tryException) - throw ex; + throw new Exception($"{ex.Message}_,{html}"); } return null; } - - } public Icon Ico { get; private set; } public Dictionary About { get; private set; }