From 715de9518b93a54ecff5f31e1e94058e446ad432 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 13 Jul 2017 18:45:22 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/hook/FilterView.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extend/hook/FilterView.php b/extend/hook/FilterView.php index 9527cf969..d28b43d7e 100644 --- a/extend/hook/FilterView.php +++ b/extend/hook/FilterView.php @@ -56,13 +56,14 @@ class FilterView public function baidu(&$params) { if (($key = sysconf('tongji_baidu_key'))) { + $https = Request::instance()->isSsl() ? 'https' : 'http'; $script = <<