zjk
2026-09-29 54dcf0a82e7490fa58b1c056d5c0b9cb739c2931
tcm-training-admin-backend/src/main/java/com/tcm/training/admin/app/home/service/AppVzanLiveEntryService.java
@@ -50,14 +50,8 @@
    }
    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);