|
@@ -283,6 +283,14 @@ public class ImLiveBroadcastRoomServiceImpl extends ServiceImpl<ImLiveBroadcastR
|
|
|
if (now.getTime() > dto.getLiveStartTime().getTime()) {
|
|
|
throw new BizException("设置的直播开始时间不能小于当前时间");
|
|
|
}
|
|
|
+
|
|
|
+ String popularizeType = dto.getPopularizeType();
|
|
|
+ if (popularizeType.equals(ImLiveBroadcastRoom.ALL)) {
|
|
|
+ dto.setPopularizeOrgIds(null);
|
|
|
+ dto.setPopularizeSchoolIds(null);
|
|
|
+ } else if (popularizeType.equals(ImLiveBroadcastRoom.ORGAN)) {
|
|
|
+ dto.setPopularizeSchoolIds(null);
|
|
|
+ }
|
|
|
BeanUtils.copyProperties(dto, obj);
|
|
|
obj.setRoomConfig(JSONObject.toJSONString(dto.getRoomConfig()));
|
|
|
log.info("update room >>> :{}", JSONObject.toJSONString(obj));
|