From c652f7ddbc5fd3762b930b41fcd1ae7879d120ca Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Tue, 25 Apr 2017 15:59:20 +0800 Subject: [PATCH] =?UTF-8?q?added=20=E5=AE=8C=E5=96=84=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/ApiController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Home/Controller/ApiController.class.php b/Application/Home/Controller/ApiController.class.php index caba45f..99a293c 100644 --- a/Application/Home/Controller/ApiController.class.php +++ b/Application/Home/Controller/ApiController.class.php @@ -61,7 +61,7 @@ class ApiController extends BaseController { $this->param = $getArr; break; } - if ($this->header['USER-AGENT'] == 'wx') { + if ($this->header['AGENT'] == 'wx') { $data = file_get_contents("php://input"); $data = json_decode($data, true); $this->param = $data;