Browse Source

文案修改

懒得勤快 5 years ago
parent
commit
4378da2ced

+ 2 - 2
src/Masuit.MyBlogs.Core/Extensions/ActivityMiddleware.cs

@@ -43,8 +43,8 @@ namespace Masuit.MyBlogs.Core.Extensions
 
             var ip = context.Connection.RemoteIpAddress.MapToIPv4().ToString();
             RedisHelper.SAddAsync("Share:" + mail, ip).ContinueWith(task => RedisHelper.Expire("Share:" + mail, TimeSpan.FromDays(8)));
-            var query = req.Query.Where(x => x.Key != "share").Select(x => x.Key + "=" + x.Value).Join("&");
-            context.Response.Redirect((req.Path + "?" + query).Trim('?'));
+            //var query = req.Query.Where(x => x.Key != "share").Select(x => x.Key + "=" + x.Value).Join("&");
+            //context.Response.Redirect((req.Path + "?" + query).Trim('?'));
         }
     }
 }

+ 1 - 1
src/Masuit.MyBlogs.Core/Extensions/FirewallAttribute.cs

@@ -31,7 +31,7 @@ namespace Masuit.MyBlogs.Core.Extensions
             if (!string.IsNullOrEmpty(trueip) && ip != trueip)
             {
                 AccessDeny(trueip, request, "客户端请求不合法,伪造IP:" + ip);
-                context.Result = new BadRequestObjectResult("您当前所在的网络环境不支持访问本站!");
+                context.Result = new BadRequestObjectResult("当前请求已被非法篡改,本站阻止访问!");
                 return;
             }