Ver código fonte

Merge remote-tracking branch 'origin/dev_1_2_20220802' into dev_1_2_20220802

liweifan 3 anos atrás
pai
commit
6b915ca2f4

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/LiveRoomServiceImpl.java

@@ -274,8 +274,8 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
         String roomTitle = WrapperUtil.toStr(param, "roomTitle", "房间标题不能为空!");
         String liveRemark = WrapperUtil.toStr(param, "liveRemark", "直播间描述不能为空!");
         Integer liveTime = WrapperUtil.toInt(param, "liveTime", "请选择直播时长!");
-        if (roomTitle.length() > 12) {
-            throw new BizException("房间标题不能超出20个字");
+        if (roomTitle.length() > 20) {
+            throw new BizException("直播标题不能超出20个字");
         }
         Date liveStartTime = new Date();
         Date liveEndTime = DateUtil.addMinutes(liveStartTime, liveTime);