常用登陆验证-后端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); } }
作者:糖粿
来源:博客园
转载请注明原文链接:https://www.cnblogs.com/silen0119/p/16139011.html
声援博主: 如果您觉得文章对您有帮助,可以点击文章右下角【推荐】一下。