Explorar el Código

爬虫不记录

tags/6.2.1
tianya hace 2 años
padre
commit
f29ed29dd5
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/system/libraries/statistics.class.php

+ 4
- 0
src/system/libraries/statistics.class.php Ver fichero

@@ -20,6 +20,10 @@ class DedeStatistics {
{
global $envs,$cfg_cookie_encode;
$agent = new Agent();
//不记录爬虫
if ($agent->isRobot()) {
return "";
}
$pm = array();
$pm['dduuid'] = GetCookie("DedeStUUID");
if (empty($pm['dduuid'])) {


Cargando…
Cancelar
Guardar