mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
修改错误默认状态码
This commit is contained in:
@@ -158,7 +158,7 @@ abstract class BaseController
|
|||||||
if(\request()->isAjax()){
|
if(\request()->isAjax()){
|
||||||
$data['jump_to_url'] = (string)$jump_to_url;
|
$data['jump_to_url'] = (string)$jump_to_url;
|
||||||
if($code == 200){
|
if($code == 200){
|
||||||
$code = 0;
|
$code = 500;
|
||||||
}
|
}
|
||||||
throw new HttpResponseException(json_message($data,$code,$msg));
|
throw new HttpResponseException(json_message($data,$code,$msg));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user