This commit is contained in:
Alone
2024-09-14 15:10:43 +08:00
parent 6c64bbd82a
commit 610dee88cd
4241 changed files with 0 additions and 622695 deletions
-32
View File
@@ -1,32 +0,0 @@
<?php
namespace app\index\controller;
use app\index\QfShop;
use think\facade\View;
class Error extends QfShop
{
public function __call($method, $args)
{
$error = $this->authorize();
if ($error) {
return $error;
}
View::assign('wechat', $this->wechat);
if (file_exists(app_path() . "/view/" . strtolower($this->request->controller()) . "/" . $method . ".html")) {
if (key_exists('callback', $args)) {
View::assign('callback', $args['callback']);
} else {
View::assign('callback', '/admin');
}
return View::fetch();
} else {
return 404;
}
}
public static function show($msg = null)
{
View::assign('msg', $msg);
return View::fetch("/error");
}
}