Commit 1067ce86 by 汪睦雄

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

parent b8bf495b
...@@ -192,11 +192,11 @@ class Project extends Base ...@@ -192,11 +192,11 @@ class Project extends Base
} }
/** /**
* 最新活动 * 最新活动 - 爆款专区
* @url /api/project/newProjects * @url /api/project/newProjects
* @param int $p 默认1 表示第几页 * @param int $p 默认1 表示第几页
* @param int $page 默认8 每页显示条数 * @param int $page 默认8 每页显示条数
* @param int $type 1是最新活动 爆款专区 * @param int $type 1-最新活动 2-爆款专区
* @return json * @return json
*/ */
public function newProjects($p = 1, $page = 8) public function newProjects($p = 1, $page = 8)
...@@ -224,7 +224,7 @@ class Project extends Base ...@@ -224,7 +224,7 @@ class Project extends Base
}); });
} elseif ($type == 2) { } elseif ($type == 2) {
$newProjects = ProjectModel::all(function ($query) use ($p, $page) { $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('is_transfer', 0)
->where(function ($query) { ->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