From 81aa5ac12128fa92bce82ebbd6655231a31108a9 Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 9 Sep 2017 09:46:42 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E5=A4=8D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AF=BC=E8=87=B4=E8=B5=84=E6=BA=90=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/hook/FilterView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/hook/FilterView.php b/extend/hook/FilterView.php index 11fe1d71a..92319644f 100644 --- a/extend/hook/FilterView.php +++ b/extend/hook/FilterView.php @@ -41,7 +41,7 @@ class FilterView $this->request = Request::instance(); list($appRoot, $uriSelf) = [$this->request->root(true), $this->request->url(true)]; $uriRoot = strpos($appRoot, EXT) ? ltrim(dirname($appRoot), DS) : $appRoot; - $uriStatic = ($this->request->isSsl() ? 'https' : 'http') . "://plugs.ctolog.com"; + $uriStatic = "{$uriRoot}/static"; $replace = ['__APP__' => $appRoot, '__SELF__' => $uriSelf, '__PUBLIC__' => $uriRoot, '__STATIC__' => $uriStatic]; $params = str_replace(array_keys($replace), array_values($replace), $params); !IS_CLI && $this->baidu($params);