| 
@@ -61,7 +61,7 @@ class App { | 
 | 
@@ -61,7 +61,7 @@ class App { | 
| 
61
 | 
      * 错误
 | 
61
 | 
      * 错误
 | 
| 
62
 | 
      * @var array
 | 
62
 | 
      * @var array
 | 
| 
63
 | 
      */
 | 
63
 | 
      */
 | 
| 
64
 | 
-    public array $error;
 | 
64
 | 
+    private array $error = [];
 | 
| 
65
 | 
 
 | 
65
 | 
 
 | 
| 
66
 | 
     /**
 | 
66
 | 
     /**
 | 
| 
67
 | 
      * App constructor.
 | 
67
 | 
      * App constructor.
 | 
 | 
@@ -283,6 +283,10 @@ class App { | 
 | 
@@ -283,6 +283,10 @@ class App { | 
| 
283
 | 
         }
 | 
283
 | 
         }
 | 
| 
284
 | 
     }
 | 
284
 | 
     }
 | 
| 
285
 | 
 
 | 
285
 | 
 
 | 
| 
 | 
   | 
286
 | 
+    public function getError(){
 | 
| 
 | 
   | 
287
 | 
+        return $this->error;
 | 
| 
 | 
   | 
288
 | 
+    }
 | 
| 
 | 
   | 
289
 | 
+
 | 
| 
286
 | 
     /**
 | 
290
 | 
     /**
 | 
| 
287
 | 
      * 结束
 | 
291
 | 
      * 结束
 | 
| 
288
 | 
      * @author:dc
 | 
292
 | 
      * @author:dc
 | 
 | 
@@ -310,9 +314,9 @@ class App { | 
 | 
@@ -310,9 +314,9 @@ class App { | 
| 
310
 | 
             self::echo($data,502);
 | 
314
 | 
             self::echo($data,502);
 | 
| 
311
 | 
 
 | 
315
 | 
 
 | 
| 
312
 | 
         }else{
 | 
316
 | 
         }else{
 | 
| 
313
 | 
-            if($app->error){
 | 
317
 | 
+            if($app->getError()){
 | 
| 
314
 | 
                 logs(
 | 
318
 | 
                 logs(
 | 
| 
315
 | 
-                    is_string($app->error) ? $app->error : implode(PHP_EOL,$app->error),
 | 
319
 | 
+                    is_string($app->getError()) ? $app->getError() : implode(PHP_EOL,$app->getError()),
 | 
| 
316
 | 
                     $filename
 | 
320
 | 
                     $filename
 | 
| 
317
 | 
                 );
 | 
321
 | 
                 );
 | 
| 
318
 | 
             }
 | 
322
 | 
             }
 |