|
|
@@ -72,7 +72,7 @@ public class RoomThirdSettingController {
|
|
|
public CommonResult<RoomThirdSettingEntity> getByRoomId(@RequestHeader("admin_token") String adminToken, @PathVariable("roomId") Long roomId) {
|
|
|
RoomThirdSettingEntity entity = thirdSettingService.findByRoomId(roomId);
|
|
|
if (entity == null) {
|
|
|
- throw new RRException(BizCodeEnume.DATA_NOT_EXIST, "当前房间没有设置相关数据");
|
|
|
+ entity = new RoomThirdSettingEntity();
|
|
|
}
|
|
|
|
|
|
return CommonResult.ok().setResult(entity);
|