video_id 추가
This commit is contained in:
1 parent
05dc2e1cc2
commit
1569ead56c
3 files changed
+19
-2
No files matched your search
@@ -45,6 +45,7 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
|
||||
|
||||
// 소셜 미디어 포스팅 모달
|
||||
const [showSocialModal, setShowSocialModal] = useState(false);
|
||||
const [videoDbId, setVideoDbId] = useState<number | null>(null);
|
||||
|
||||
// 저장된 완료 데이터
|
||||
const [songCompletionData, setSongCompletionData] = useState<{
|
||||
@@ -203,6 +204,10 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
|
||||
|
||||
if (videoUrlFromResponse) {
|
||||
setVideoUrl(videoUrlFromResponse);
|
||||
const videoId = statusResponse.render_data?.video_id;
|
||||
if (videoId) {
|
||||
setVideoDbId(videoId);
|
||||
}
|
||||
setVideoStatus('complete');
|
||||
setStatusMessage('');
|
||||
saveToStorage(videoTaskId, currentSongTaskId, 'complete', videoUrlFromResponse);
|
||||
@@ -515,8 +520,8 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
|
||||
<SocialPostingModal
|
||||
isOpen={showSocialModal}
|
||||
onClose={handleCloseSocialConnect}
|
||||
video={videoUrl ? {
|
||||
video_id: 0,
|
||||
video={videoUrl && videoDbId ? {
|
||||
video_id: videoDbId,
|
||||
store_name: songCompletionData?.businessName || '',
|
||||
region: '',
|
||||
task_id: songTaskId || '',
|
||||
|
||||
Reference in new issue
Block a user