diff --git a/composer.lock b/composer.lock
index 7d94c8080..8d4cdc3cc 100644
--- a/composer.lock
+++ b/composer.lock
@@ -909,12 +909,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/zoujingli/ThinkLibrary.git",
-                "reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429"
+                "reference": "e313082651d91f411caf10b77d0b786ef4784445"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/13fabbc1826f03e5ee13dfc74776ccc54da8f429",
-                "reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429",
+                "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/e313082651d91f411caf10b77d0b786ef4784445",
+                "reference": "e313082651d91f411caf10b77d0b786ef4784445",
                 "shasum": "",
                 "mirrors": [
                     {
@@ -958,7 +958,7 @@
             ],
             "description": "ThinkPHP v6.0 Development Library",
             "homepage": "http://framework.thinkadmin.top",
-            "time": "2020-05-06T02:04:54+00:00"
+            "time": "2020-05-06T02:31:00+00:00"
         },
         {
             "name": "zoujingli/wechat-developer",
diff --git a/public/index.php b/public/index.php
index 9cf165e9b..af5ed6d45 100644
--- a/public/index.php
+++ b/public/index.php
@@ -19,12 +19,4 @@ use think\admin\service\SystemService;
 
 require __DIR__ . '/../vendor/autoload.php';
 
-$app = new App();
-
-$debug = SystemService::instance()->isDebug();
-
-$response = $app->debug($debug)->http->run();
-
-$response->send();
-
-$app->http->end($response);
\ No newline at end of file
+SystemService::instance()->doInit(new App());
\ No newline at end of file
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 6a95f7aa8..b343bc5c0 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -935,12 +935,12 @@
         "source": {
             "type": "git",
             "url": "https://github.com/zoujingli/ThinkLibrary.git",
-            "reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429"
+            "reference": "e313082651d91f411caf10b77d0b786ef4784445"
         },
         "dist": {
             "type": "zip",
-            "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/13fabbc1826f03e5ee13dfc74776ccc54da8f429",
-            "reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429",
+            "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/e313082651d91f411caf10b77d0b786ef4784445",
+            "reference": "e313082651d91f411caf10b77d0b786ef4784445",
             "shasum": "",
             "mirrors": [
                 {
@@ -956,7 +956,7 @@
             "ext-json": "*",
             "topthink/framework": "^6.0"
         },
-        "time": "2020-05-06T02:04:54+00:00",
+        "time": "2020-05-06T02:31:00+00:00",
         "type": "library",
         "extra": {
             "think": {
diff --git a/vendor/services.php b/vendor/services.php
index fd7a3f3fb..89f6bccc6 100644
--- a/vendor/services.php
+++ b/vendor/services.php
@@ -1,5 +1,5 @@
 <?php 
-// This file is automatically generated at:2020-05-06 10:16:56
+// This file is automatically generated at:2020-05-06 10:34:23
 declare (strict_types = 1);
 return array (
   0 => 'think\\app\\Service',
diff --git a/vendor/zoujingli/think-library/src/service/SystemService.php b/vendor/zoujingli/think-library/src/service/SystemService.php
index afd0cb90d..8ed786029 100644
--- a/vendor/zoujingli/think-library/src/service/SystemService.php
+++ b/vendor/zoujingli/think-library/src/service/SystemService.php
@@ -305,4 +305,15 @@ class SystemService extends Service
         return $this->getRuntime('app_run') !== 'product';
     }
 
+    /**
+     * 初始化并运行应用
+     * @param \think\App $app
+     */
+    public function doInit(\think\App $app)
+    {
+        $app->debug($this->isDebug());
+        $response = $app->http->run();
+        $response->send();
+        $app->http->end($response);
+    }
 }
\ No newline at end of file