异常类规范 增加异常类 改进Query类的value和column的缓存冲突问题

This commit is contained in:
thinkphp
2016-06-12 16:35:42 +08:00
parent 659900ab91
commit b10635e22e
33 changed files with 236 additions and 79 deletions

View File

@@ -14,6 +14,7 @@ namespace think;
\think\Loader::import('controller/Jump', TRAIT_PATH, EXT);
use think\Exception;
use think\Exception\ValidateException;
use think\Request;
use think\View;
@@ -190,7 +191,7 @@ class Controller
if (!$v->check($data)) {
if ($this->failException) {
throw new Exception($v->getError());
throw new ValidateException($v->getError());
} else {
return $v->getError();
}