* [misc] fix bug of tips in dashboard.

This commit is contained in:
zhouxin
2025-02-08 14:40:12 +08:00
committed by 周鑫
parent dacf44911b
commit f9ad63bb81
+1 -1
View File
@@ -110,7 +110,7 @@ class block extends control
$this->view->longBlock = $block->width >= 2;
$this->view->isExternalCall = $this->blockZen->isExternalCall();
$this->view->params = $params;
$this->view->metricTime = $this->dao->select('lastTime')->from(TABLE_CRON)->where('command')->eq('moduleName=metric&methodName=updateMetricLib')->fetch('lastTime');
$this->view->metricTime = $this->dao->select('lastTime')->from(TABLE_CRON)->where('command')->eq('moduleName=metric&methodName=updateDashboardMetricLib')->fetch('lastTime');
/* 根据 viewType 值 ,判断是否需要返回 json 数据。 */
$viewType = (isset($block->params->viewType) && $block->params->viewType == 'json') ? 'json' : 'html';