修改错误默认状态码

This commit is contained in:
augushong
2020-07-11 21:25:33 +08:00
parent f2237e92f5
commit 8f74e21811

View File

@@ -158,7 +158,7 @@ abstract class BaseController
if(\request()->isAjax()){
$data['jump_to_url'] = (string)$jump_to_url;
if($code == 200){
$code = 0;
$code = 500;
}
throw new HttpResponseException(json_message($data,$code,$msg));
}