|
|
@@ -14,19 +14,24 @@ namespace RMYY_CallCenter_Api.Filter
|
|
14
|
14
|
base.OnException(context);
|
|
15
|
15
|
|
|
16
|
16
|
var rt = context.RequestContext.HttpContext.Request;
|
|
|
17
|
+
|
|
17
|
18
|
Dictionary<string, string> Params = new Dictionary<string, string>();
|
|
18
|
19
|
Params.Add("request_url", rt.Url.ToString());
|
|
19
|
20
|
|
|
20
|
|
- foreach (var key in rt.Params.AllKeys)
|
|
|
21
|
+ if (rt.HttpMethod.ToUpper() != "GET")
|
|
21
|
22
|
{
|
|
22
|
|
- if (key == "ALL_HTTP")
|
|
|
23
|
+ foreach (var key in rt.Params.AllKeys)
|
|
23
|
24
|
{
|
|
24
|
|
- break;
|
|
|
25
|
+ if (key == "ALL_HTTP")
|
|
|
26
|
+ {
|
|
|
27
|
+ break;
|
|
|
28
|
+ }
|
|
|
29
|
+ Params.Add(key, rt.Params[key]);
|
|
25
|
30
|
}
|
|
26
|
|
- Params.Add(key, rt.Params[key]);
|
|
27
|
31
|
}
|
|
28
|
32
|
|
|
29
|
33
|
LogHelper.Error("系统异常,参数:" + Params.ToJson(), context.Exception);
|
|
|
34
|
+
|
|
30
|
35
|
context.ExceptionHandled = true;
|
|
31
|
36
|
context.HttpContext.Response.StatusCode = 200;
|
|
32
|
37
|
context.Result = new ContentResult { Content = new AjaxResult { state = ResultTypes.error.ToString(), message = "系统异常,请稍后重试" }.ToJson() };
|