liujunchi hace 3 años
padre
commit
bdc8417913

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

@@ -455,6 +455,7 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
         }
         //修改房间状态
         room.setLiveState(2);
+        room.setRoomState(1);
         this.updateById(room);
 
         String speakerIdStr = room.getSpeakerId().toString();
@@ -792,7 +793,7 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
         //校验房间是否存在
         RBucket<RoomInfoCache> roomInfoCache = this.getLiveRoomInfo(roomUid);
         if (!roomInfoCache.isExists()) {
-            throw new BizException("直播还未开始!");
+            throw new BizException("直播还未开始或已结束!");
         }
         RoomInfoCache roomInfo = roomInfoCache.get();
         //校验观看者是否买过课,如果是非临时直播间,则校验是否已经买过课