修复爬虫检测不正确的问题

This commit is contained in:
Zhai Yiming 2017-07-13 18:56:02 +08:00
parent 7230c18988
commit 01cffa4289

View File

@ -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 !== '';
}