fix0901: 进入直播间接口打印token的userid
| | |
| | | } |
| | | |
| | | public AppVzanLiveEntryVO createEntry(Long userId) { |
| | | Long sessionUserId = appAuthSessionService.getLoginUserId(); |
| | | 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)); |
| | | LiveRoomSettingVO setting = liveRoomSettingService.current(); |
| | |
| | | '/api/app/home/', |
| | | '/api/v1/app/home/', |
| | | ] |
| | | const AUTHENTICATED_APP_URLS = [ |
| | | '/api/app/home/live-room-entry', |
| | | '/api/v1/app/home/live-room-entry', |
| | | ] |
| | | |
| | | const waitingList = [] |
| | | const excutingList = [] |
| | |
| | | * 首页公共接口允许游客访问,不能被本地旧登录态或 token 刷新失败影响。 |
| | | */ |
| | | function isPublicAppUrl(url) { |
| | | return PUBLIC_APP_URL_PREFIXES.some((prefix) => url.startsWith(prefix)) |
| | | return !AUTHENTICATED_APP_URLS.includes(url) |
| | | && PUBLIC_APP_URL_PREFIXES.some((prefix) => url.startsWith(prefix)) |
| | | } |
| | | |
| | | /** |