1.授权添加日志
This commit is contained in:
parent
a7fb0b0872
commit
a340625d58
|
@ -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<WebResult>(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<string, object> About { get; private set; }
|
||||
|
|
Loading…
Reference in New Issue