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
af3b9b39
Commit
af3b9b39
authored
May 19, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3D试戴优化3
parent
a9708172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Ai.php
addons/shopro/service/user/Ai.php
+9
-2
No files found.
addons/shopro/service/user/Ai.php
View file @
af3b9b39
...
...
@@ -196,7 +196,11 @@ class Ai
];
}
catch
(
\Exception
$e
)
{
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
'用户ID:'
.
$userId
.
' response_format'
.
$response_format
.
' AI生成图片异常:'
.
$e
->
getMessage
(),
'gen_ai'
);
$data
=
$e
->
getResponse
()
->
getData
();
$message
=
$data
?
(
$data
[
'msg'
]
??
''
)
:
$e
->
getMessage
();
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
'用户ID:'
.
$userId
.
' response_format'
.
$response_format
,
$message
,
'gen_ai'
);
return
[
'code'
=>
0
,
'msg'
=>
'图片生成失败'
...
...
@@ -277,7 +281,10 @@ class Ai
];
}
catch
(
\Exception
$e
)
{
format_log_error_custom_name
(
$e
,
'[AI生成视频接口异常]'
,
'用户ID:'
.
$userId
.
$e
->
getMessage
(),
'gen_ai'
);
$data
=
$e
->
getResponse
()
->
getData
();
$message
=
$data
?
(
$data
[
'msg'
]
??
''
)
:
$e
->
getMessage
();
format_log_error_custom_name
(
$e
,
'[AI生成视频接口异常]'
,
'用户ID:'
.
$userId
,
$message
,
'gen_ai'
);
return
[
'code'
=>
0
,
'msg'
=>
'图片生成失败'
...
...
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