mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
增加http助手函数 改进App类
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
use think\exception\HttpException;
|
||||
|
||||
class Loader
|
||||
{
|
||||
// 类名映射
|
||||
@@ -319,7 +321,7 @@ class Loader
|
||||
} elseif ($empty && class_exists($emptyClass = self::parseClass($module, $layer, $empty, $appendSuffix))) {
|
||||
return new $emptyClass(Request::instance());
|
||||
} else {
|
||||
throw new Exception('class [ ' . $class . ' ] not exists', 10001);
|
||||
throw new HttpException(404, 'class [ ' . $class . ' ] not exists');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user