|
@@ -547,10 +547,19 @@ class AIImageGenerationService
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 移除 b64_json 字段以避免存储大量 Base64 数据
|
|
|
|
|
+ $cleanedResponseData = $responseData;
|
|
|
|
|
+ if (isset($cleanedResponseData['data'])) {
|
|
|
|
|
+ foreach ($cleanedResponseData['data'] as &$imageData) {
|
|
|
|
|
+ unset($imageData['b64_json']); // 移除 Base64 数据
|
|
|
|
|
+ }
|
|
|
|
|
+ unset($imageData); // 解除引用
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 更新任务状态为成功
|
|
// 更新任务状态为成功
|
|
|
$task->updateStatus(MpGeneratePicTask::STATUS_SUCCESS, [
|
|
$task->updateStatus(MpGeneratePicTask::STATUS_SUCCESS, [
|
|
|
'result_url' => $result_urls,
|
|
'result_url' => $result_urls,
|
|
|
- 'result_json' => $responseData
|
|
|
|
|
|
|
+ 'result_json' => $cleanedResponseData // 保存清理后的数据
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
// 同步调整分镜图片状态和结果
|
|
// 同步调整分镜图片状态和结果
|