|
@@ -404,8 +404,8 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
* role follower leader
|
|
|
*/
|
|
|
@Override
|
|
|
- public void inOrOutRoom(String roomId, String role, Integer type,String userId,String platform) {
|
|
|
- log.info("inOrOutRoom--roomId:{},role:{},type:{},userId:{},platform:{}",roomId,role,type,userId,platform);
|
|
|
+ public void inOrOutRoom(String roomId, String role, Integer type,String userId) {
|
|
|
+ log.info("inOrOutRoom--roomId:{},role:{},type:{},userId:{}",roomId,role,type,userId);
|
|
|
if(roomId == null || StringUtils.isBlank(role)
|
|
|
|| ( !role.equals("leader") && !role.equals("customer")) ){
|
|
|
throw new BusinessException(ResultCode.PARAM_MISS);
|
|
@@ -421,6 +421,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
if(room == null){
|
|
|
throw new BusinessException(ResultCode.ROOM_MISS);
|
|
|
}
|
|
|
+ String platform = room.getPlatform();
|
|
|
|
|
|
if(room.getUseStartTime() != null && room.getUseStartTime().getTime() > new Date().getTime()){
|
|
|
throw new BusinessException(ResultCode.ROOM_TIME_ERROR);
|