Browse Source

修正统计隔天不显示的错误

tags/6.1.9
tianya 7 months ago
parent
commit
e2b8034368
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/system/libraries/statistics.class.php

+ 2
- 2
src/system/libraries/statistics.class.php View File

@@ -161,9 +161,9 @@ EOT;
$ip = $dsql->GetOne("SELECT COUNT(DISTINCT ip) as total FROM `#@__statistics_detail` WHERE created_date = $d");
$vv = $dsql->GetOne("SELECT COUNT(DISTINCT ssid) as total FROM `#@__statistics_detail` WHERE created_date = $d");
if ($d < intval($today)) {
// 缓存数据
$insql = "INSERT INTO `#@__statistics`(`sdate`,`pv`,`uv`,`ip`,`vv`) VALUES ('$d', '{$pv['total']}','{$uv['total']}','{$ip['total']}','{$vv['total']}')";
// var_dump($insql);
return $dsql->ExecuteNoneQuery($insql);
$dsql->ExecuteNoneQuery($insql);
}
return array(
"sdate" => $d,


Loading…
Cancel
Save