mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修复更新导致资源加载的问题
This commit is contained in:
parent
292d00a026
commit
81aa5ac121
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user