...
|
...
|
@@ -61,7 +61,7 @@ class App { |
|
|
* 错误
|
|
|
* @var array
|
|
|
*/
|
|
|
public array $error;
|
|
|
private array $error = [];
|
|
|
|
|
|
/**
|
|
|
* App constructor.
|
...
|
...
|
@@ -283,6 +283,10 @@ class App { |
|
|
}
|
|
|
}
|
|
|
|
|
|
public function getError(){
|
|
|
return $this->error;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 结束
|
|
|
* @author:dc
|
...
|
...
|
@@ -310,9 +314,9 @@ class App { |
|
|
self::echo($data,502);
|
|
|
|
|
|
}else{
|
|
|
if($app->error){
|
|
|
if($app->getError()){
|
|
|
logs(
|
|
|
is_string($app->error) ? $app->error : implode(PHP_EOL,$app->error),
|
|
|
is_string($app->getError()) ? $app->getError() : implode(PHP_EOL,$app->getError()),
|
|
|
$filename
|
|
|
);
|
|
|
}
|
...
|
...
|
|