|
@@ -316,7 +316,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
public void inOrOutRoom(String roomId, String role, Integer type,String userId) {
|
|
public void inOrOutRoom(String roomId, String role, Integer type,String userId) {
|
|
//log.info("inOrOutRoom--roomId:{},role:{},type:{},userId:{}",roomId,role,type,userId);
|
|
//log.info("inOrOutRoom--roomId:{},role:{},type:{},userId:{}",roomId,role,type,userId);
|
|
if(roomId == null || StringUtils.isBlank(role)
|
|
if(roomId == null || StringUtils.isBlank(role)
|
|
- || ( !role.equals("leader") && !role.equals("follower")) ){
|
|
|
|
|
|
+ || ( !role.equals("leader") && !role.equals("customer")) ){
|
|
throw new BusinessException(ResultCode.PARAM_MISS);
|
|
throw new BusinessException(ResultCode.PARAM_MISS);
|
|
}
|
|
}
|
|
String wxRoomId = roomId;
|
|
String wxRoomId = roomId;
|
|
@@ -339,7 +339,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
throw new BusinessException(ResultCode.ROOM_END_EX);
|
|
throw new BusinessException(ResultCode.ROOM_END_EX);
|
|
}
|
|
}
|
|
|
|
|
|
- if(role.equals("follower")){
|
|
|
|
|
|
+ if(role.equals("customer")){
|
|
if(type == 0 ){
|
|
if(type == 0 ){
|
|
room.setRoomViewCount(room.getRoomViewCount() + 1);
|
|
room.setRoomViewCount(room.getRoomViewCount() + 1);
|
|
}
|
|
}
|