diff --git a/src/admin/index_body.php b/src/admin/index_body.php
index 045d71de..1ab5202d 100644
--- a/src/admin/index_body.php
+++ b/src/admin/index_body.php
@@ -73,7 +73,7 @@ if (empty($dopost)) {
));
exit;
}
- if (empty($cfg_auth_code)) {
+ if (empty(trim($cfg_auth_code))) {
echo json_encode(array(
"code" => -1002,
"msg" => "当前站点已授权社区版,获取更多官方技术支持,请选择商业版",
diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm
index f055ac4f..006645f0 100644
--- a/src/admin/templets/index_body.htm
+++ b/src/admin/templets/index_body.htm
@@ -50,7 +50,7 @@
0 |
- 历史记录 |
+ 历史峰值 |
0 |
0 |
0 |
diff --git a/src/system/libraries/statistics.class.php b/src/system/libraries/statistics.class.php
index ce4a288f..548d27c2 100644
--- a/src/system/libraries/statistics.class.php
+++ b/src/system/libraries/statistics.class.php
@@ -137,16 +137,13 @@ class DedeStatistics {
{
global $dsql;
if ($d == -1) {
- $pv = $dsql->GetOne("SELECT SUM(pv) as total FROM `#@__statistics`");
- $uv = $dsql->GetOne("SELECT SUM(uv) as total FROM `#@__statistics`");
- $ip = $dsql->GetOne("SELECT SUM(ip) as total FROM `#@__statistics`");
- $vv = $dsql->GetOne("SELECT SUM(vv) as total FROM `#@__statistics`");
+ $row = $dsql->GetOne("SELECT * FROM `#@__statistics`ORDER BY pv DESC ");
return array(
"sdate" => $d,
- "pv" => $pv['total'],
- "uv" => $uv['total'],
- "ip" => $ip['total'],
- "vv" => $vv['total'],
+ "pv" => $row['pv'],
+ "uv" => $row['uv'],
+ "ip" => $row['ip'],
+ "vv" => $row['vv'],
);
}
$today = MyDate("Ymd",time());