浏览代码

文案修改

懒得勤快 6 年之前
父节点
当前提交
1d07c5554e

+ 1 - 2
src/Masuit.MyBlogs.Core/Controllers/CommentController.cs

@@ -15,7 +15,6 @@ using Microsoft.EntityFrameworkCore.Internal;
 using Microsoft.Net.Http.Headers;
 using System;
 using System.Collections.Generic;
-using System.IO;
 using System.Linq;
 using System.Text.RegularExpressions;
 
@@ -41,7 +40,7 @@ namespace Masuit.MyBlogs.Core.Controllers
         {
             if (Regex.Match(dto.Content, CommonHelper.BanRegex).Length > 0)
             {
-                return ResultData(null, false, "您提交的内容包含敏感词,被禁止发表,请注意改善您的言辞!");
+                return ResultData(null, false, "您提交的内容包含敏感词,被禁止发表,请检查您的内容后尝试重新提交!");
             }
 
             Post post = PostService.GetById(dto.PostId);

+ 1 - 2
src/Masuit.MyBlogs.Core/Controllers/MsgController.cs

@@ -14,7 +14,6 @@ using Microsoft.EntityFrameworkCore.Internal;
 using Microsoft.Net.Http.Headers;
 using System;
 using System.Collections.Generic;
-using System.IO;
 using System.Linq;
 using System.Text.RegularExpressions;
 
@@ -106,7 +105,7 @@ namespace Masuit.MyBlogs.Core.Controllers
         {
             if (Regex.Match(dto.Content, CommonHelper.BanRegex).Length > 0)
             {
-                return ResultData(null, false, "您提交的内容包含敏感词,被禁止发表,请注意改善您的言辞!");
+                return ResultData(null, false, "您提交的内容包含敏感词,被禁止发表,请检查您的内容后尝试重新提交!");
             }
 
             dto.Content = dto.Content.Trim().Replace("<p><br></p>", string.Empty);

+ 2 - 2
src/Masuit.MyBlogs.Core/Controllers/PostController.cs

@@ -217,9 +217,9 @@ namespace Masuit.MyBlogs.Core.Controllers
                 return ResultData(null, false, "验证码错误!");
             }
 
-            if (Regex.Match(post.Content, CommonHelper.BanRegex).Length > 0)
+            if (Regex.Match(post.Title + post.Content, CommonHelper.BanRegex).Length > 0)
             {
-                return ResultData(null, false, "您提交的内容包含敏感词,被禁止发表,请注意改善您的言辞!");
+                return ResultData(null, false, "您提交的内容包含敏感词,被禁止发表,请检查您的内容后尝试重新提交!");
             }
 
             if (!CategoryService.Any(c => c.Id == post.CategoryId))

+ 2 - 2
src/Masuit.MyBlogs.Core/wwwroot/Scripts/global/article.js

@@ -83,7 +83,7 @@
 		if ($("#name").val().trim().length <= 1 || $("#name").val().trim().length > 36) {
 			window.notie.alert({
 				type: 3,
-				text: '再怎么你也应该留个合理的名字吧,非主流的我可不喜欢!',
+				text: '昵称要求2-36个字符!',
 				time: 4
 			});
 			return;
@@ -140,7 +140,7 @@
 		if (formData["NickName"].trim().length <= 0 ||formData["NickName"].trim().length > 36) {
 			window.notie.alert({
 				type: 3,
-				text: "亲,能留个正常点的名字不!",
+				text: "昵称要求2-36个字符!",
 				time: 4
 			});
 			loadingDone();

文件差异内容过多而无法显示
+ 0 - 0
src/Masuit.MyBlogs.Core/wwwroot/Scripts/global/article.min.js


+ 2 - 2
src/Masuit.MyBlogs.Core/wwwroot/Scripts/global/leavemsg.js

@@ -21,7 +21,7 @@
         if ($("#name").val().trim().length <= 0 || $("#name").val().trim().length > 36) {
 	        window.notie.alert({
 		        type: 3,
-		        text: '再怎么你也应该留个合理的名字吧,非主流的我可不喜欢!',
+		        text: '昵称要求2-36个字符!',
 		        time: 4
 	        });
             loadingDone();
@@ -87,7 +87,7 @@
         if ($("#name2").val().trim().length <= 0 || $("#name").val().trim().length > 36) {
 	        window.notie.alert({
 		        type: 3,
-                text: "亲,能留个正常点的名字不!",
+                text: "昵称要求2-36个字符!",
 		        time: 4
 	        });
             loadingDone();

文件差异内容过多而无法显示
+ 0 - 0
src/Masuit.MyBlogs.Core/wwwroot/Scripts/global/leavemsg.min.js


+ 4 - 5
src/Masuit.MyBlogs.Core/wwwroot/Scripts/global/scripts.js

@@ -29,7 +29,7 @@ $(function() {
     popBrowserTips();
     $("img").lazyload({
         effect: "fadeIn", //渐现,show(直接显示),fadeIn(淡入),slideDown(下拉)
-        threshold: 180, //预加载,在图片距离屏幕180px时提前载入
+        threshold: 2700, //预加载,在图片距离屏幕180px时提前载入
         //event: 'click',  // 事件触发时才加载,click(点击),mouseover(鼠标划过),sporty(运动的),默认为scroll(滑动)
         //container: $("#container"), // 指定对某容器中的图片实现效果
         failure_limit: 2 //加载2张可见区域外的图片,lazyload默认在找到第一张不在可见区域里的图片时则不再继续加载,但当HTML容器混乱的时候可能出现可见区域内图片并没加载出来的情况
@@ -152,8 +152,7 @@ $(function() {
         multiWord: true, //以分隔符号分割的多关键字支持  
         separator: ",", //多关键字支持时的分隔符,默认为空格  
         getDataMethod: "url", //获取数据的方式,总是从 URL 获取  
-        url: 'https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?p=3&t=' + (new Date()).getTime() +
-            '&wd=', /*优先从url ajax 请求 json 帮助数据,注意最后一个参数为关键字请求参数*/
+        url: 'https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?p=3&t=' + (new Date()).getTime() + '&wd=', /*优先从url ajax 请求 json 帮助数据,注意最后一个参数为关键字请求参数*/
         jsonp: 'cb', //如果从 url 获取数据,并且需要跨域,则该参数必须设置  
         processData: function(json) { // url 获取数据时,对数据的处理,作为 getData 的回调函数  
             var i, data = {
@@ -192,8 +191,8 @@ $(function() {
     if (!Object.prototype.hasOwnProperty.call(window, 'event')) {
         ['mousedown', 'mouseenter', 'onmouseleave'].forEach(function(eventType) {
             window.addEventListener(eventType, function(event) {
-                    window.event = event;
-                }, true);
+                window.event = event;
+            }, true);
         });
     }
 

部分文件因为文件数量过多而无法显示