v2.1.1发布,限制发送弹幕长度

This commit is contained in:
xiongxiaoyang 2019-12-19 13:41:06 +08:00
parent eac0ce9302
commit 9b4f58630b
2 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,7 @@
</parent>
<groupId>xyz.zinglizingli</groupId>
<artifactId>novel-front</artifactId>
<version>2.1.0.beta</version>
<version>2.1.1.beta</version>
<name>novel-front</name>
<description>小说精品楼-前台web网站</description>

View File

@ -208,6 +208,10 @@
var bullet = $("#screenBulletText").val();
var contentId = $("#contentIdHidden").val();
if (bullet && contentId) {
if(bullet.length > 100){
layer.alert("发送内容过长");
return;
}
$.ajax({
type: "POST",
url: "/book/sendBullet",