mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
注释和规范化调整及完善
注释和规范化调整及完善,以及部分代码优化
This commit is contained in:
@@ -84,9 +84,11 @@ class Error
|
||||
|
||||
/**
|
||||
* 错误输出
|
||||
*
|
||||
* @param mixed $error 错误
|
||||
* @param int $errno 错误代码
|
||||
* @return void
|
||||
* @param int $code
|
||||
*
|
||||
* @internal param int $errno 错误代码
|
||||
*/
|
||||
public static function halt($error, $code = 1)
|
||||
{
|
||||
@@ -99,7 +101,8 @@ class Error
|
||||
$data['code'] = $code;
|
||||
$data['msg'] = $message;
|
||||
$data['time'] = NOW_TIME;
|
||||
exit(Response::returnData($data));
|
||||
Response::returnData($data);
|
||||
exit();
|
||||
}
|
||||
$e = [];
|
||||
if (APP_DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user