//输出替换
'tpl_replace_string' => [
'__STATIC__'=>$_SERVER['REQUEST_SCHEME'] .'://' . $_SERVER['HTTP_HOST'] . str_replace('/index.php' ,'' ,$_SERVER['SCRIPT_NAME']) . '/static',
'__IMG__'=>$_SERVER['REQUEST_SCHEME'] .'://' . $_SERVER['HTTP_HOST'] . str_replace('/index.php' ,'' ,$_SERVER['SCRIPT_NAME']) . '/uploads',
],
我解决了
建议你用入口文件的相对路径来引入静态文件,我看第一个是没问题的,你在页面吧_STATIC_打印一下看看
//输出替换
'tpl_replace_string' => [
'__STATIC__'=>$_SERVER['REQUEST_SCHEME'] .'://' . $_SERVER['HTTP_HOST'] . str_replace('/index.php' ,'' ,$_SERVER['SCRIPT_NAME']) . '/static',
'__IMG__'=>$_SERVER['REQUEST_SCHEME'] .'://' . $_SERVER['HTTP_HOST'] . str_replace('/index.php' ,'' ,$_SERVER['SCRIPT_NAME']) . '/uploads',
],
我解决了
建议你用入口文件的相对路径来引入静态文件,我看第一个是没问题的,你在页面吧_STATIC_打印一下看看