From d5e73c34634be11722ba5a669bb400614f4567aa Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 30 May 2016 21:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convention.php | 2 +- library/think/Request.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/convention.php b/convention.php index 25fab9ed..c86e1ea5 100644 --- a/convention.php +++ b/convention.php @@ -84,7 +84,7 @@ return [ // 是否自动转换URL中的操作名 'url_action_convert' => true, // 表单请求类型伪装变量 - 'method_var' => '_method', + 'var_method' => '_method', // +---------------------------------------------------------------------- // | 模板引擎设置 diff --git a/library/think/Request.php b/library/think/Request.php index 4c5f305d..df023124 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -417,7 +417,7 @@ class Request $this->method = $method; return; } elseif (!$this->method) { - $mask = $this->param(Config::get('method_var')); + $mask = $this->param(Config::get('var_method')); if ($mask) { $this->method = $mask; } else {