feat: 完善pc的刷新

master
yin5th 2023-08-23 10:57:05 +08:00
parent 892a4871a8
commit f7ce387a06
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?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');
}
}