Bladeren bron

历史记录改为历史峰值

tags/6.2.8
tianya 1 jaar geleden
bovenliggende
commit
00a46cee8d
3 gewijzigde bestanden met toevoegingen van 7 en 10 verwijderingen
  1. +1
    -1
      src/admin/index_body.php
  2. +1
    -1
      src/admin/templets/index_body.htm
  3. +5
    -8
      src/system/libraries/statistics.class.php

+ 1
- 1
src/admin/index_body.php Bestand weergeven

@@ -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" => "当前站点已授权社区版,获取更多官方技术支持,请选择<a href='https://www.dedebiz.com/auth' class='text-primary'>商业版</a>",


+ 1
- 1
src/admin/templets/index_body.htm Bestand weergeven

@@ -50,7 +50,7 @@
<td id="yestoday_vv">0</td>
</tr>
<tr>
<td>历史记录</td>
<td>历史峰值</td>
<td id="total_pv">0</td>
<td id="total_uv">0</td>
<td id="total_ip">0</td>


+ 5
- 8
src/system/libraries/statistics.class.php Bestand weergeven

@@ -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());


Laden…
Annuleren
Opslaan