| | |
| | | } |
| | | |
| | | public AppVzanLiveEntryVO createEntry(Long userId) { |
| | | Long sessionUserId = null; |
| | | try { |
| | | sessionUserId = appAuthSessionService.getLoginUserId(); |
| | | } catch (RuntimeException ex) { |
| | | log.warn("微赞直播入口会话userId获取失败,请检查APP Token格式,前端userId={}", userId, ex); |
| | | } |
| | | log.info("微赞直播入口userId对比,请求体userId={},会话userId={},是否一致={}", |
| | | userId, sessionUserId, java.util.Objects.equals(userId, sessionUserId)); |
| | | // APP 发版完成后改为从登录会话获取用户ID,避免客户端指定其他用户。 |
| | | // Long userId = appAuthSessionService.getLoginUserId(); |
| | | LiveRoomSettingVO setting = liveRoomSettingService.current(); |
| | | String liveRoomUrl = setting == null ? null : StrUtil.trim(setting.getLiveRoomUrl()); |
| | | validateLiveRoomUrl(liveRoomUrl); |