更换后台UI,使用adminlteUI

This commit is contained in:
2020-04-07 12:47:03 +08:00
parent 209af6285a
commit c12a265034
462 changed files with 111399 additions and 948 deletions

View File

@@ -31,7 +31,7 @@ class Validate {
$scene = strtolower($controller[0]) . $request->action();
$validate = "app\\http\\validate\\" . ucfirst($controller[1]);
//仅当验证器存在时 进行校验
if (class_exists($validate) && $request->isPost()) {
if (class_exists($validate) && (strtolower($controller[0]) == 'admin' && $request->isPost())) {
$v = new $validate;
//仅当存在验证场景才校验
if ($v->hasScene($scene)) {