type(); $is_json = str_contains($acceptType, 'json'); if (!$is_json) { return false; } if (!Config::get('app.auto_parse_api')) { return true; } if ($this->has('get_page_data')) { return false; } return true; } /** * 仅通过实际请求参数判断请求 * * @return bool */ public function isJsonPure() { return parent::isJson(); } }