From d0f86d6212c84be44e551999d320b9d029efafd1 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 24 Aug 2020 12:56:02 +0800 Subject: [PATCH] Update InstallService.php --- .../zoujingli/think-library/src/service/InstallService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/zoujingli/think-library/src/service/InstallService.php b/vendor/zoujingli/think-library/src/service/InstallService.php index 76cc940e8..04f4a234b 100644 --- a/vendor/zoujingli/think-library/src/service/InstallService.php +++ b/vendor/zoujingli/think-library/src/service/InstallService.php @@ -44,6 +44,7 @@ class InstallService extends Service { $this->root = strtr($this->app->getRootPath(), '\\', '/'); $this->server = ModuleService::instance()->getServer(); + dump($this->server); } /** @@ -80,6 +81,7 @@ class InstallService extends Service $result = json_decode(HttpExtend::post("{$this->server}/admin/api.update/node", [ 'rules' => json_encode($rules1), 'ignore' => json_encode($ignore1), ]), true); + dump($result); if (!empty($result['code'])) { $new = $this->getList($result['data']['rules'], $result['data']['ignore']); foreach ($this->_grenerateDifferenceContrast($result['data']['list'], $new['list']) as $file) { @@ -88,6 +90,7 @@ class InstallService extends Service } } } + dump($data); return $data; } @@ -189,7 +192,7 @@ class InstallService extends Service private function _scanList($path, $data = []): array { foreach (NodeService::instance()->scanDirectory($path) as $file) { - $data[] = $this->_getInfo($file); + $data[] = $this->_getInfo(strtr($file, '\\', '/')); } return $data; }