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
285b276b
Commit
285b276b
authored
May 14, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI视频队列程序日志优化;
parent
ab7732df
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
AiTryon.php
addons/shopro/controller/user/AiTryon.php
+1
-0
helper.php
addons/shopro/helper/helper.php
+1
-2
AiVideoGen.php
addons/shopro/job/AiVideoGen.php
+0
-0
common.php
application/common.php
+20
-0
No files found.
addons/shopro/controller/user/AiTryon.php
View file @
285b276b
...
@@ -226,6 +226,7 @@ class AiTryon extends Common
...
@@ -226,6 +226,7 @@ class AiTryon extends Common
$user
=
auth_user
();
$user
=
auth_user
();
// \think\Queue::push('\addons\shopro\job\AiVideoGen@save', ['taskid' => 'cgt-20260506113558-x6wtq', 'user' => $user], 'shopro-high');
// \think\Queue::push('\addons\shopro\job\AiVideoGen@save', ['taskid' => 'cgt-20260506113558-x6wtq', 'user' => $user], 'shopro-high');
// $this->success('推送队列成功');
// $this->success('推送队列成功');
// exit;
// exit;
...
...
addons/shopro/helper/helper.php
View file @
285b276b
...
@@ -926,9 +926,8 @@ if (!function_exists('operate_disabled')) {
...
@@ -926,9 +926,8 @@ if (!function_exists('operate_disabled')) {
// 调试输出
// 调试输出
if
(
!
function_exists
(
'debug_echo'
))
{
if
(
!
function_exists
(
'debug_echo'
))
{
function
debug_echo
(
$text
=
''
)
function
debug_echo
(
$text
=
''
,
$name
=
'gen_ai'
)
{
{
echo
PHP_EOL
.
'------'
.
$text
.
'------'
.
PHP_EOL
;
echo
PHP_EOL
.
'------'
.
$text
.
'------'
.
PHP_EOL
;
\think\Log
::
info
(
$text
);
}
}
}
}
addons/shopro/job/AiVideoGen.php
View file @
285b276b
This diff is collapsed.
Click to expand it.
application/common.php
View file @
285b276b
...
@@ -507,3 +507,23 @@ EOT;
...
@@ -507,3 +507,23 @@ EOT;
return
$icon
;
return
$icon
;
}
}
}
}
if
(
!
function_exists
(
'custom_log'
))
{
/**
* 自定义日志文件名
* @param string $content 日志内容
* @param string $name 文件名(不需要 .log)
* @param string $level 级别 info/error/debug
*/
function
custom_log
(
$content
,
$name
=
'custom'
,
$level
=
'info'
)
{
\think\Log
::
init
([
'type'
=>
'File'
,
'path'
=>
RUNTIME_PATH
.
'log/'
.
date
(
'Ym'
)
.
'/'
,
'single'
=>
$name
.
'_'
.
date
(
'Ymd'
)
.
'_'
,
'max_files'
=>
0
,
]);
\think\Log
::
record
(
$content
,
$level
);
}
}
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