mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
默认输出类型 为 json
This commit is contained in:
parent
2fc82f7acf
commit
5c494bc01f
@ -30,7 +30,7 @@ class Base extends Controller {
|
||||
$return['debug'] = $this->debug;
|
||||
}
|
||||
|
||||
return json($return);
|
||||
return $return;
|
||||
}
|
||||
|
||||
public function buildFailed($code, $msg, $data = []) {
|
||||
@ -43,7 +43,7 @@ class Base extends Controller {
|
||||
$return['debug'] = $this->debug;
|
||||
}
|
||||
|
||||
return json($return);
|
||||
return $return;
|
||||
}
|
||||
|
||||
protected function debug($data) {
|
||||
|
@ -27,7 +27,7 @@ class Base extends Controller {
|
||||
'data' => $data
|
||||
];
|
||||
|
||||
return json($return);
|
||||
return $return;
|
||||
}
|
||||
|
||||
public function buildFailed($code, $msg, $data = []) {
|
||||
@ -37,7 +37,7 @@ class Base extends Controller {
|
||||
'data' => $data
|
||||
];
|
||||
|
||||
return json($return);
|
||||
return $return;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user