diff --git a/extend/hook/FilterView.php b/extend/hook/FilterView.php index 3f6cac1a3..29a267667 100644 --- a/extend/hook/FilterView.php +++ b/extend/hook/FilterView.php @@ -46,7 +46,20 @@ class FilterView { * @param $params */ public function baidu(&$params) { - // @todo 百度统计 + if (!IS_CLI && ($key = sysconf('tongji_baidu_key'))) { + $script = << +SCRIPT; + $params = preg_replace('||i', "{$script}\n ", $params); + } } /**