hejianhao
2026-09-01 36b50752192efda11f23e510bbb2036c405c14d5
tcm-training-admin-backend/src/main/java/com/tcm/training/admin/app/home/service/AppVzanLiveEntryService.java
@@ -49,8 +49,9 @@
        this.appAuthSessionService = appAuthSessionService;
    }
    public AppVzanLiveEntryVO createEntry() {
        Long userId = appAuthSessionService.getLoginUserId();
    public AppVzanLiveEntryVO createEntry(Long userId) {
        // APP 发版完成后改为从登录会话获取用户ID,避免客户端指定其他用户。
        // Long userId = appAuthSessionService.getLoginUserId();
        LiveRoomSettingVO setting = liveRoomSettingService.current();
        String liveRoomUrl = setting == null ? null : StrUtil.trim(setting.getLiveRoomUrl());
        validateLiveRoomUrl(liveRoomUrl);