diff --git a/application/index/controller/Search.php b/application/index/controller/Search.php index 822da7ee68d9d7e9dd0a44b4f0225aaf06ec119f..a4f9ea8a041bde4358b7dd3849cf6f72a04fd994 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();