fix: support authenticated video citation playback
This commit is contained in:
@@ -9,7 +9,7 @@ import type {
|
||||
SummaryCardResponse,
|
||||
KnowledgeCitationDetail
|
||||
} from '@/types/api';
|
||||
import { apiRequest, apiUrl, authHeaders, readTextPayload } from './api';
|
||||
import { apiMediaUrl, apiRequest, apiUrl, authHeaders, readTextPayload } from './api';
|
||||
import { getSelectedPosition } from './auth';
|
||||
import { fileSelectionFailure } from '../utils/file-selection';
|
||||
import { withPlatformFileSelection } from './file-selection-lifecycle';
|
||||
@@ -264,7 +264,7 @@ export const loadKnowledgeCitationMediaUrl = async (detailRef: string) => {
|
||||
clearAuthOnUnauthorized: false
|
||||
});
|
||||
if (!response.url?.startsWith('/api/knowledge/resources/')) throw new Error('视频地址无效');
|
||||
return apiUrl(response.url);
|
||||
return apiMediaUrl(response.url);
|
||||
};
|
||||
|
||||
const normalizeUnifiedResponse = (response: UnifiedKnowledgeResponse): KnowledgeSearchResponse => {
|
||||
|
||||
Reference in New Issue
Block a user