Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
ccc2531d
Commit
ccc2531d
authored
Aug 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增独家方
parent
006e8c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
Houses.php
application/index/controller/Houses.php
+21
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Houses.php
View file @
ccc2531d
...
...
@@ -412,6 +412,27 @@ class Houses extends Basic
return
$this
->
response
(
$this
->
code
,
$this
->
msg
,
$this
->
data
);
}
/**
* 商铺列表添加独家
*
* @return \think\Response
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
addExclusive
()
{
if
(
$this
->
params
[
'houses_id'
])
{
$this
->
data
=
$this
->
house
->
exclusive
(
$this
->
params
,
$this
->
params
[
'houses_id'
]);
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'houses_id is null'
;
}
return
$this
->
response
(
$this
->
code
,
$this
->
msg
,
$this
->
data
);
}
/**
* 获取独家方
*
...
...
application/route.php
View file @
ccc2531d
...
...
@@ -163,6 +163,7 @@ Route::group('index', [
'getHouseList'
=>
[
'index/houses/getHouseList'
,
[
'method'
=>
'get'
]
],
//楼盘列表
'carefullyChosen'
=>
[
'index/houses/carefullyChosen'
,
[
'method'
=>
'post'
]
],
//设置精选楼盘
'editExclusive'
=>
[
'index/houses/editExclusive'
,
[
'method'
=>
'post'
]
],
//添加和编辑楼盘独家
'addExclusive'
=>
[
'index/houses/addExclusive'
,
[
'method'
=>
'post'
]
],
//添加楼盘独家
'getExclusive'
=>
[
'index/houses/getExclusive'
,
[
'method'
=>
'get'
]
],
//获取楼盘独家
'getRecords'
=>
[
'index/houses/getRecords'
,
[
'method'
=>
'get'
]
],
//操作记录
'delHouseFile'
=>
[
'index/houses/delHouseFile'
,
[
'method'
=>
'post'
]
],
//操作记录
...
...
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