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
fb3982b7
Commit
fb3982b7
authored
May 25, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心优化
parent
0193fcfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.html
application/admin/view/shopro/dashboard/index.html
+1
-1
DataStatsCenter.php
application/command/DataStatsCenter.php
+3
-3
No files found.
application/admin/view/shopro/dashboard/index.html
View file @
fb3982b7
...
...
@@ -394,7 +394,7 @@
<i
class=
"fa fa-bar-chart"
></i>
数据统计中心
</div>
<div
class=
"stats-center-time"
>
实时业务数据监控 · 更新于
<span
id=
"update-time"
>
{:date('Y-m-d H:i:s')}
</span></div>
<div
class=
"stats-center-time"
>
实时业务数据监控 · 更新于
<span
id=
"update-time"
></span></div>
</div>
<div
class=
"header-right"
>
<!-- <div class="data-status">
...
...
application/command/DataStatsCenter.php
View file @
fb3982b7
...
...
@@ -83,7 +83,7 @@ class DataStatsCenter extends Command
}
// 记录到自定义日志文件
custom_log
(
$message
,
'stat'
,
$level
);
custom_log
(
$message
,
'stat
_center
'
,
$level
);
}
/**
...
...
@@ -92,7 +92,7 @@ class DataStatsCenter extends Command
* @param Input $input 输入参数
* @param Output $output 输出对象
*/
p
rotected
function
execute
(
Input
$input
,
Output
$output
)
p
ublic
function
execute
(
Input
$input
,
Output
$output
)
{
$this
->
output
=
$output
;
$this
->
customLog
(
'info'
,
'========== 开始执行数据统计中心定时任务 =========='
);
...
...
@@ -129,7 +129,7 @@ class DataStatsCenter extends Command
$this
->
customLog
(
'info'
,
'['
.
date
(
'Y-m-d H:i:s'
)
.
']数据统计中心定时任务执行完成'
);
}
catch
(
\Exception
$e
)
{
// 记录异常日志并输出到控制台
format_log_error_custom_name
(
$e
,
'[数据统计中心定时任务执行失败]'
,
''
,
'stat'
);
format_log_error_custom_name
(
$e
,
'[数据统计中心定时任务执行失败]'
,
''
,
'stat
_center
'
);
}
}
...
...
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