style: Pint 포맷팅 적용
This commit is contained in:
@@ -40,7 +40,7 @@ public function generateClip(string $prompt, int $duration = 8): ?array
|
||||
|
||||
// 한국인 여성 등장인물 프롬프트 프리픽스 추가
|
||||
$characterPrefix = 'Featuring a young Korean woman in her 20s with natural black hair. ';
|
||||
$fullPrompt = $characterPrefix . $prompt;
|
||||
$fullPrompt = $characterPrefix.$prompt;
|
||||
|
||||
$response = Http::withToken($token)
|
||||
->timeout(60)
|
||||
@@ -118,7 +118,7 @@ public function checkOperation(string $operationName): array
|
||||
'body' => substr($response->body(), 0, 500),
|
||||
]);
|
||||
|
||||
return ['done' => false, 'video' => null, 'error' => 'HTTP ' . $response->status()];
|
||||
return ['done' => false, 'video' => null, 'error' => 'HTTP '.$response->status()];
|
||||
}
|
||||
|
||||
$data = $response->json();
|
||||
@@ -195,7 +195,7 @@ public function waitAndSave(string $operationName, string $savePath, int $maxAtt
|
||||
'operationName' => $operationName,
|
||||
]);
|
||||
|
||||
return ['path' => null, 'error' => '연속 폴링 실패: ' . $result['error']];
|
||||
return ['path' => null, 'error' => '연속 폴링 실패: '.$result['error']];
|
||||
}
|
||||
|
||||
continue;
|
||||
@@ -227,7 +227,7 @@ public function waitAndSave(string $operationName, string $savePath, int $maxAtt
|
||||
if (($i + 1) % 3 === 0) {
|
||||
Log::info('VeoVideoService: 영상 생성 대기 중', [
|
||||
'attempt' => $i + 1,
|
||||
'elapsed' => ($i + 1) * 10 . '초',
|
||||
'elapsed' => ($i + 1) * 10 .'초',
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -237,6 +237,6 @@ public function waitAndSave(string $operationName, string $savePath, int $maxAtt
|
||||
'attempts' => $maxAttempts,
|
||||
]);
|
||||
|
||||
return ['path' => null, 'error' => '타임아웃 (' . ($maxAttempts * 10) . '초)'];
|
||||
return ['path' => null, 'error' => '타임아웃 ('.($maxAttempts * 10).'초)'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user