[更新]后台CDN资源切入

This commit is contained in:
Anyon 2017-08-23 16:28:21 +08:00
parent 748f629275
commit a0aa6db9f1

View File

@ -41,7 +41,6 @@ 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 = (Request::instance()->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);