m_id 추가

main
hbyang 2026-02-13 10:33:42 +09:00
parent 6fea71ba94
commit b89cf027af
4 changed files with 9 additions and 3 deletions

View File

@ -372,6 +372,7 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
}}
businessInfo={currentBusinessInfo}
imageTaskId={imageTaskId}
mId={analysisData?.m_id ?? 0}
videoGenerationStatus={videoGenerationStatus}
videoGenerationProgress={videoGenerationProgress}
/>

View File

@ -15,6 +15,7 @@ interface SoundStudioContentProps {
onNext: (songTaskId: string) => void;
businessInfo?: BusinessInfo;
imageTaskId: string | null;
mId: number;
videoGenerationStatus?: 'idle' | 'generating' | 'complete' | 'error';
videoGenerationProgress?: number;
}
@ -37,6 +38,7 @@ const SoundStudioContent: React.FC<SoundStudioContentProps> = ({
onNext,
businessInfo,
imageTaskId,
mId,
videoGenerationStatus = 'idle',
videoGenerationProgress = 0
}) => {
@ -279,6 +281,7 @@ const SoundStudioContent: React.FC<SoundStudioContentProps> = ({
customer_name: businessInfo.customer_name,
detail_region_info: businessInfo.detail_region_info,
language,
m_id: mId,
region: businessInfo.region,
task_id: imageTaskId,
});

View File

@ -35,6 +35,7 @@ export interface MarketingAnalysis {
export interface CrawlingResponse {
image_list: string[];
image_count: number;
m_id: number;
processed_info: {
customer_name: string;
region: string;
@ -63,6 +64,7 @@ export interface LyricGenerateRequest {
customer_name: string;
detail_region_info: string;
language: string;
m_id: number;
region: string;
task_id: string;
}
@ -231,6 +233,7 @@ export interface KakaoCallbackResponse {
// 토큰 갱신 응답
export interface TokenRefreshResponse {
access_token: string;
refresh_token: string;
token_type: string;
expires_in: number;
}

View File

@ -577,9 +577,8 @@ export async function refreshAccessToken(): Promise<TokenRefreshResponse> {
const data: TokenRefreshResponse = await response.json();
console.log('[Auth] Token refresh successful');
// 새 액세스 토큰 저장 (리프레시 토큰도 새로 받았으면 함께 저장)
const newRefreshToken = (data as TokenRefreshResponse & { refresh_token?: string }).refresh_token;
saveTokens(data.access_token, newRefreshToken || refreshToken);
// 새 액세스 토큰과 리프레시 토큰을 localStorage에 갱신
saveTokens(data.access_token, data.refresh_token);
return data;
}