[更新]修复更新导致资源加载的问题

This commit is contained in:
Anyon 2017-09-09 09:46:42 +08:00
parent 292d00a026
commit 81aa5ac121

View File

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