From 406344e134a2087ccf9db862162b7bd627f56782 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 2 May 2017 15:15:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E6=B7=BB=E5=8A=A0=E7=99=BE?= =?UTF-8?q?=E5=BA=A6=E7=BB=9F=E8=AE=A1=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/hook/FilterView.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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); + } } /**