修改基类

This commit is contained in:
wuyanwen
2020-01-09 08:22:38 +08:00
parent 4fa1c9638e
commit 9bcb7466bd
3 changed files with 63 additions and 45 deletions

View File

@@ -7,10 +7,10 @@ use think\facade\View;
abstract class CatchController
{
public function __construct()
/**public function __construct()
{
$this->loadConfig();
}
}*/
/**
@@ -19,7 +19,7 @@ abstract class CatchController
* @time 2019年12月15日
* @return void
*/
protected function loadConfig()
protected function loadConfig(): void
{
$module = explode('\\', get_class($this))[1];