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
d0180cd1
Commit
d0180cd1
authored
May 19, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3D试戴优化4
parent
af3b9b39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Ai.php
addons/shopro/service/user/Ai.php
+9
-7
No files found.
addons/shopro/service/user/Ai.php
View file @
d0180cd1
...
@@ -7,6 +7,7 @@ use addons\shopro\notification\ai\AiVideoSuccess;
...
@@ -7,6 +7,7 @@ use addons\shopro\notification\ai\AiVideoSuccess;
use
app\admin\model\shopro\AiTryon
as
AiTryOnModel
;
use
app\admin\model\shopro\AiTryon
as
AiTryOnModel
;
use
app\admin\model\shopro\user\User
;
use
app\admin\model\shopro\user\User
;
use
think\Config
;
use
think\Config
;
use
think\exception\HttpResponseException
;
use
think\Log
;
use
think\Log
;
...
@@ -195,12 +196,12 @@ class Ai
...
@@ -195,12 +196,12 @@ class Ai
'data'
=>
$response_format
==
'b64_json'
?
$result
[
'data'
][
0
][
'b64_json'
]
:
$result
[
'data'
][
0
][
'url'
]
'data'
=>
$response_format
==
'b64_json'
?
$result
[
'data'
][
0
][
'b64_json'
]
:
$result
[
'data'
][
0
][
'url'
]
];
];
}
catch
(
\Exception
$e
)
{
}
catch
(
HttpResponseException
$e
)
{
$data
=
$e
->
getResponse
()
->
getData
();
$data
=
$e
->
getResponse
()
->
getData
();
$message
=
$data
?
(
$data
[
'msg'
]
??
''
)
:
$e
->
getMessage
();
$message
=
$data
?
(
$data
[
'msg'
]
??
''
)
:
$e
->
getMessage
();
format_log_error_custom_name
(
$e
,
'[AI生成图片接口异常]'
,
'用户ID:'
.
$userId
.
' response_format'
.
$response_format
,
$message
,
'gen_ai'
);
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'
);
return
[
return
[
'code'
=>
0
,
'code'
=>
0
,
'msg'
=>
'图片生成失败'
'msg'
=>
'图片生成失败'
...
@@ -280,14 +281,15 @@ class Ai
...
@@ -280,14 +281,15 @@ class Ai
'data'
=>
$result
[
'id'
]
??
''
'data'
=>
$result
[
'id'
]
??
''
];
];
}
catch
(
\
Exception
$e
)
{
}
catch
(
HttpResponse
Exception
$e
)
{
$data
=
$e
->
getResponse
()
->
getData
();
$data
=
$e
->
getResponse
()
->
getData
();
$message
=
$data
?
(
$data
[
'msg'
]
??
''
)
:
$e
->
getMessage
();
$message
=
$data
?
(
$data
[
'msg'
]
??
''
)
:
$e
->
getMessage
();
format_log_error_custom_name
(
$e
,
'[AI生成视频接口异常]'
,
'用户ID:'
.
$userId
,
$message
,
'gen_ai'
);
format_log_error_custom_name
(
$e
,
'[AI生成视频接口异常]'
,
'用户ID:'
.
$userId
,
$message
,
'gen_ai'
);
}
catch
(
\Exception
$e
)
{
format_log_error_custom_name
(
$e
,
'[AI生成视频接口异常]'
,
'用户ID:'
.
$userId
,
''
,
'gen_ai'
);
return
[
return
[
'code'
=>
0
,
'code'
=>
0
,
'msg'
=>
'
图片
生成失败'
'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