mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
refactor: 优化后台兼容接口请求的判断
This commit is contained in:
@@ -222,7 +222,7 @@ class AdminControllerBase extends BaseController
|
||||
public function checkParseApi()
|
||||
{
|
||||
if (Config::get('app.auto_parse_api')) {
|
||||
if ($this->request->isJsonPure() && $this->request->param('get_page_data')) {
|
||||
if ($this->request->isJson() && $this->request->param('get_page_data')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user