hejianhao
2026-09-01 a67bed7c530e546392f9f84c1e64b124765513a4
tcm-training-admin-backend/src/main/java/com/tcm/training/admin/app/home/service/AppVzanLiveEntryService.java
@@ -49,15 +49,8 @@
        this.appAuthSessionService = appAuthSessionService;
    }
    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));
    public AppVzanLiveEntryVO createEntry() {
        Long userId = appAuthSessionService.getLoginUserId();
        LiveRoomSettingVO setting = liveRoomSettingService.current();
        String liveRoomUrl = setting == null ? null : StrUtil.trim(setting.getLiveRoomUrl());
        validateLiveRoomUrl(liveRoomUrl);