常用登陆验证-后端ErrorException.php

<?php
namespace app\admin;

use think\exception\HttpException;

/**
 * 抛出json异常错误
 */
class ErrorException extends HttpException
{
    public function __construct($message = null, $code = 1000, $status = 200, \Exception $previous = null)
    {
        $this->message = $message;
        parent::__construct($status, $message, $previous, $headers = [], $code);
    }
}

 

posted @ 2022-04-13 10:18  糖粿  阅读(21)  评论(0编辑  收藏  举报