17 lines
374 B
PHP
17 lines
374 B
PHP
<?php
|
|
namespace app\controller;
|
|
|
|
use think\facade\Config;
|
|
|
|
class Error
|
|
{
|
|
public function __call($method, $args)
|
|
{
|
|
$isOpen = \app\common\server\ConfigServer::get('pc', 'is_open', 1);
|
|
if(!$isOpen) {
|
|
return '';
|
|
}
|
|
Config::set(['app_trace' => false]);
|
|
return view(app()->getRootPath() . 'public/pc/index.html');
|
|
}
|
|
} |