fix
This commit is contained in:
@@ -45,7 +45,7 @@ class Local implements Driver
|
||||
*/
|
||||
public function __construct($options = [])
|
||||
{
|
||||
$this->rootPath = Env::get('root_path') . 'public' . DIRECTORY_SEPARATOR;
|
||||
$this->rootPath = ROOT_PATH;
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// [ 应用入口文件 ]
|
||||
namespace think;
|
||||
|
||||
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||
|
||||
// 加载基础文件
|
||||
require __DIR__ . '/../thinkphp/base.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user