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

AI试戴结果接口优化

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