Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
1245963e
Commit
1245963e
authored
May 12, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI试戴优化
parent
63714ba3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
AiTryon.php
addons/shopro/controller/user/AiTryon.php
+6
-1
AiVideoGen.php
addons/shopro/job/AiVideoGen.php
+1
-1
No files found.
addons/shopro/controller/user/AiTryon.php
View file @
1245963e
...
@@ -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
);
}
}
}
...
...
addons/shopro/job/AiVideoGen.php
View file @
1245963e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment