mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
完成内容管理
This commit is contained in:
@@ -125,7 +125,10 @@ abstract class BaseController
|
||||
|
||||
if(\request()->isAjax()){
|
||||
$data['jump_to_url'] = (string)$jump_to_url;
|
||||
throw new HttpResponseException(json_message($data,0,$msg));
|
||||
if($code == 200){
|
||||
$code = 0;
|
||||
}
|
||||
throw new HttpResponseException(json_message($data,$code,$msg));
|
||||
}
|
||||
|
||||
View::assign($data);
|
||||
@@ -154,7 +157,10 @@ abstract class BaseController
|
||||
|
||||
if(\request()->isAjax()){
|
||||
$data['jump_to_url'] = (string)$jump_to_url;
|
||||
throw new HttpResponseException(json_message($data,0,$msg));
|
||||
if($code == 200){
|
||||
$code = 0;
|
||||
}
|
||||
throw new HttpResponseException(json_message($data,$code,$msg));
|
||||
}
|
||||
|
||||
View::assign($data);
|
||||
|
||||
Reference in New Issue
Block a user