Commit a47125e1 authored by 刘小敏's avatar 刘小敏

AI试戴结果接口优化

parent 9e77c608
...@@ -183,13 +183,16 @@ class AiTryon extends Common ...@@ -183,13 +183,16 @@ class AiTryon extends Common
$this->svalidate($params, ".aidetail"); $this->svalidate($params, ".aidetail");
$res = AiTryOnModel::get($params['id']); $res = AiTryOnModel::get($params['id']);
switch ($res->ai_status){
if (!$res->ai_url){ case 0:
$this->error('视频生成中'); $this->success('‘视频生成中');
} else { break;
case 1:
$this->success('AI试戴详情', $res); $this->success('AI试戴详情', $res);
break;
default:
$this->error('视频生成失败');
} }
} }
......
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