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
509a5110
Commit
509a5110
authored
May 19, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3D试戴 调试7
parent
4a2bf5aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
helper.php
addons/shopro/helper/helper.php
+1
-1
Ai.php
addons/shopro/service/user/Ai.php
+5
-3
No files found.
addons/shopro/helper/helper.php
View file @
509a5110
...
...
@@ -644,7 +644,7 @@ if (!function_exists('format_log_error_custom_name')) {
{
$logInfo
=
[
"==========
$name
LOG INFO BEGIN =========="
,
'[ Message ] '
.
var_export
(
'['
.
$error
->
getCode
()
.
']
getMessage:'
.
$error
->
getMessage
()
.
' fullmess
:'
.
$message
,
true
),
'[ Message ] '
.
var_export
(
'['
.
$error
->
getCode
()
.
']
getMessage:'
.
$error
->
getMessage
()
.
' fullMessage
:'
.
$message
,
true
),
'[ File ] '
.
var_export
(
$error
->
getFile
()
.
':'
.
$error
->
getLine
(),
true
),
'[ Trace ] '
.
var_export
(
$error
->
getTraceAsString
(),
true
),
"=============================================
$name
LOG INFO ENDED =========="
,
...
...
addons/shopro/service/user/Ai.php
View file @
509a5110
...
...
@@ -221,17 +221,19 @@ class Ai
}
// 记录完整错误
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
$
fullMessage
,
'gen_ai'
);
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
$
body
,
'gen_ai'
);
}
catch
(
\Exception
$jsonE
)
{
// 非JSON响应
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
$
e
->
getMessage
(),
'gen_ai'
);
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
$
jsonE
->
getMessage
(),
'gen_ai'
);
}
// $message = $data ? ($data['msg'] ?? '') : $e->getMessage();
// format_log_error_custom_name($e, '[AI生成图片接口异常]'.' user_id:'. $userId , $message , 'gen_ai');
}
catch
(
\Exception
$e
)
{
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
'用户ID:'
.
$userId
.
' response_format'
.
$response_format
,
'gen_ai'
);
$response
=
$e
->
getResponse
();
$body
=
(
string
)
$response
->
getData
();
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
'用户ID:'
.
$userId
.
' response_format'
.
$response_format
.
' 全错误信息:'
.
$body
,
'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