mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]后台CDN资源切入
This commit is contained in:
parent
748f629275
commit
a0aa6db9f1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user