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
0fac941e
Commit
0fac941e
authored
May 12, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI试戴图片接口优化
parent
ba6aee69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
AiTryon.php
addons/shopro/controller/user/AiTryon.php
+1
-3
No files found.
addons/shopro/controller/user/AiTryon.php
View file @
0fac941e
...
...
@@ -107,7 +107,6 @@ class AiTryon extends Common
if
(
!
$this
->
request
->
isPost
())
{
$this
->
error
(
''
);
}
$params
=
$this
->
request
->
only
([
'person_image'
,
'jewelry_image'
,
'goods_id'
,
'goods_title'
,
'goods_subtitle'
]);
...
...
@@ -146,7 +145,6 @@ class AiTryon extends Common
$tryonData
[
'ai_status'
]
=
2
;
$tryonData
[
'ai_err_msg'
]
=
$res
[
'msg'
];
$tryonModel
->
save
(
$tryonData
);
$this
->
error
(
$res
[
'msg'
]);
}
else
{
// 保存图片到本地
...
...
@@ -171,7 +169,7 @@ class AiTryon extends Common
$userService
=
new
User
();
$res
=
$userService
->
addTryTimes
(
$user
->
id
);
$this
->
success
(
$res
[
'msg'
],
config
(
'shopro.api_host'
)
.
$attachment
[
'data'
]
);
$this
->
success
(
'图片生成成功'
,
config
(
'shopro.api_host'
)
.
$attachment
[
'data'
]
??
''
);
}
}
}
...
...
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