mirror of
https://github.com/tursom/typecho-plugin-Access.git
synced 2025-02-16 06:20:13 +08:00
修复爬虫检测不正确的问题
This commit is contained in:
parent
7230c18988
commit
01cffa4289
@ -112,10 +112,10 @@ class Access_UA
|
||||
$this->robotVersion = $val;
|
||||
}
|
||||
}
|
||||
$this->robotID = $this->robotName = '';
|
||||
} else {
|
||||
$this->robotID = $this->robotName = '';
|
||||
}
|
||||
if ($this->robotID == null) $this->robotID = '';
|
||||
if ($this->robotName == null) $this->robotName = '';
|
||||
if ($this->robotVersion == null) $this->robotVersion = '';
|
||||
}
|
||||
return $this->robotID !== '' || $this->robotName !== '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user