Commit 1245963e authored by 刘小敏's avatar 刘小敏

AI试戴优化

parent 63714ba3
...@@ -184,7 +184,12 @@ class AiTryon extends Common ...@@ -184,7 +184,12 @@ class AiTryon extends Common
$res = AiTryOnModel::get($params['id']); $res = AiTryOnModel::get($params['id']);
$this->success('AI试戴详情', $res); if (!$res->ai_url){
$this->error('视频生成中');
} else {
$this->success('AI试戴详情', $res);
}
} }
......
...@@ -174,7 +174,7 @@ class AiVideoGen extends BaseJob ...@@ -174,7 +174,7 @@ class AiVideoGen extends BaseJob
} }
// 更新我的试戴 // 更新我的试戴
AiTryOnModel::where('user_id', $user_id)->where('ai_task_id', $taskid)->update(['ai_status' => 1,'ai_url' => $video_url, 'ai_err_msg' => '视频生成成功']); AiTryOnModel::where('user_id', $user_id)->where('ai_task_id', $taskid)->update(['ai_status' => 1,'ai_url' => config('shopro.api_host').$video_url, 'ai_err_msg' => '视频生成成功']);
debug_echo('[AI视频]保存本地视频成功sql:'.db()->getLastSql()); debug_echo('[AI视频]保存本地视频成功sql:'.db()->getLastSql());
// 删除队列job // 删除队列job
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment