Commit 1067ce86 by 汪睦雄

修改文案,爆款专区展示活动

parent b8bf495b
......@@ -154,7 +154,7 @@ class Project extends Base
->limit(6);
});
$heatProjects = $heatProjects ? collection($heatProjects)->visible(['id', 'title', 'poster', 'night_num', 'price', 'vip_price'])->toArray() : [];
// 酒店预订
$businessProjects = ProjectModel::all(function ($query) {
$query->where('catalog_id', 5)
......@@ -192,11 +192,11 @@ class Project extends Base
}
/**
* 最新活动
* 最新活动 - 爆款专区
* @url /api/project/newProjects
* @param int $p 默认1 表示第几页
* @param int $page 默认8 每页显示条数
* @param int $type 1是最新活动 爆款专区
* @param int $type 1-最新活动 2-爆款专区
* @return json
*/
public function newProjects($p = 1, $page = 8)
......@@ -224,7 +224,7 @@ class Project extends Base
});
} elseif ($type == 2) {
$newProjects = ProjectModel::all(function ($query) use ($p, $page) {
$query->where('type', 2)
$query->where('type', 1) // 2019-04-15 littlebear 更改为爆款活动,2-->1
->where('is_transfer', 0)
->where(function ($query) {
//地域
......
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