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);