From ad6e3ad9d3618e238d4dd0f633724f949f532029 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Mon, 26 Aug 2019 17:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Search.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/index/controller/Search.php b/application/index/controller/Search.php index 822da7ee6..a4f9ea8a0 100755 --- a/application/index/controller/Search.php +++ b/application/index/controller/Search.php @@ -147,6 +147,12 @@ class Search extends Common */ public function GoodsList() { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + // 参数初始化 $this->ParamsInit();