Commit 3979554f authored by clone's avatar clone

跨域

parent 7113da60
...@@ -45,6 +45,8 @@ class Shop extends Basic ...@@ -45,6 +45,8 @@ class Shop extends Basic
*/ */
public function getShopList() public function getShopList()
{ {
header('Access-Control-Allow-Origin:*');
$params = $this->params;
/*$params = array( /*$params = array(
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备 "site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备
// "title" => "vv", //1,2 external_title ,3,4internal_title // "title" => "vv", //1,2 external_title ,3,4internal_title
...@@ -66,8 +68,6 @@ class Shop extends Basic ...@@ -66,8 +68,6 @@ class Shop extends Basic
"pageNo" => 1, "pageNo" => 1,
"pageSize" => 15 "pageSize" => 15
);*/ );*/
$params = $this->params;
$conditions = []; $conditions = [];
if (empty($params['site_area'])) { if (empty($params['site_area'])) {
return $this->response("101", "请求来源不能为空"); return $this->response("101", "请求来源不能为空");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment