Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
1067ce86
Commit
1067ce86
authored
Apr 15, 2019
by
汪睦雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文案,爆款专区展示活动
parent
b8bf495b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
application/api/controller/Project.php
+4
-4
No files found.
application/api/controller/Project.php
View file @
1067ce86
...
...
@@ -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
)
{
//地域
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment