Commit 1f9a4321 authored by clone's avatar clone

bug

parent 61588225
......@@ -48,7 +48,11 @@ class Shop extends Basic
public function getShopList()
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
$params = array(
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备
);
/*$params = array(
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备
// "title" => "vv", //1,2 external_title ,3,4internal_title
......@@ -174,7 +178,7 @@ class Shop extends Basic
}
}
}
$order_ = "id desc";
$order_ = "status asc,id desc";
break;
default:
return $this->response("101", "请求数据异常");
......@@ -193,6 +197,7 @@ class Shop extends Basic
$conditions['status'] = !empty($params['status']) ? $params['status'] : array( 'in', "1,2" ); //只显示上架或下架的
}
$result = $this->gHousesModel->getHousesList($pageNo, $pageSize, $order_, $field, $conditions, $spTagArr);
//获取图片信息
foreach ($result as $key => $val) {
$result[$key]["api_path"] = CK_IMG_URL . 'images/';
......
......@@ -844,7 +844,6 @@ class GHouses extends BaseModel
->where($where_)
->group("a.id ")
->select();
//echo Db::table($this->table)->getLastSql();
return $result;
}
......
......@@ -46,7 +46,7 @@ class UpdateShopStatusTask
} else {
return null;
}
echo $day;
$field = "a.id,b.id as order_id";
$params = [];
$time_ = date('Y-m-d', strtotime("-$day day"));
......
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