From bde86293eafdef1fe15924dd6685aeda6878dc27 Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Sun, 15 May 2022 15:58:32 +0800 Subject: [PATCH] Update CurdService.php --- src/curd/service/CurdService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curd/service/CurdService.php b/src/curd/service/CurdService.php index 6ce9461..38d8bca 100644 --- a/src/curd/service/CurdService.php +++ b/src/curd/service/CurdService.php @@ -98,12 +98,12 @@ class CurdService public function __construct(array $config) { + $this->rootPath = root_path(); $this->setParam($config); $this->tablePrefix = config('database.connections.'.$config['driver'].'.prefix'); $this->database = Config::get('database.connections' . '.' .$config['driver'] . '.database'); $this->driver = $config['driver']; $this->dir = __DIR__; - $this->rootPath = root_path(); $this->tplPath = $this->rootPath . 'vendor' . DS . 'funadmin'. DS . 'fun-addons' . DS . 'src' . DS . 'curd' . DS . 'tpl' . DS ; return $this; }