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
f600f945
Commit
f600f945
authored
Mar 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
b8080247
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Shop.php
application/api_broker/controller/Shop.php
+7
-5
No files found.
application/api_broker/controller/Shop.php
View file @
f600f945
...
@@ -38,8 +38,8 @@ class Shop extends Basic
...
@@ -38,8 +38,8 @@ class Shop extends Basic
*/
*/
public
function
getShopList
()
public
function
getShopList
()
{
{
/*
$params = array(
/*
$params = array(
"site_area" =>
1
, //来源 1c首页 2c搜索 3b首页 4b搜索
"site_area" =>
4
, //来源 1c首页 2c搜索 3b首页 4b搜索
"title" => "vv", //1,2 external_title ,3,4internal_title
"title" => "vv", //1,2 external_title ,3,4internal_title
"is_carefully_chosen" => 0, //精选商铺--0否1是
"is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺)
"shop_type" => 0, //商铺类型(0商场,1街铺)
...
@@ -50,7 +50,7 @@ class Shop extends Basic
...
@@ -50,7 +50,7 @@ class Shop extends Basic
"rent_price_start" => 1000,//租金 rent_price
"rent_price_start" => 1000,//租金 rent_price
"rent_price_end" => 10000,//租金
"rent_price_end" => 10000,//租金
"shop_sign" => "临近地铁,临近地铁2",
"shop_sign" => "临近地铁,临近地铁2",
"agent_id" =>
1
, //添加经纪人id
"agent_id" =>
630
, //添加经纪人id
"pageNo" => 1,
"pageNo" => 1,
"pageSize" => 15
"pageSize" => 15
);*/
);*/
...
@@ -142,13 +142,15 @@ class Shop extends Basic
...
@@ -142,13 +142,15 @@ class Shop extends Basic
default
:
default
:
$this
->
response
(
"101"
,
"请求数据异常"
);
$this
->
response
(
"101"
,
"请求数据异常"
);
}
}
if
(
!
empty
(
$conditions
))
{
if
(
!
empty
(
$conditions
)
)
{
$conditions
[
'status'
]
=
array
(
'eq'
,
1
);
//只显示上架
$conditions
[
'status'
]
=
array
(
'eq'
,
1
);
//只显示上架
if
(
$params
[
'site_area'
]
==
1
||
$params
[
'site_area'
]
==
2
)
if
(
$params
[
'site_area'
]
==
1
||
$params
[
'site_area'
]
==
2
)
$conditions
[
'is_show'
]
=
array
(
'eq'
,
0
);
//c端只显示可显示的楼盘
$conditions
[
'is_show'
]
=
array
(
'eq'
,
0
);
//c端只显示可显示的楼盘
}
}
if
(
isset
(
$conditions
[
'upload_id'
])){
unset
(
$conditions
[
'status'
]);
}
$result
=
$this
->
gHousesModel
->
getHousesList
(
$pageNo
,
$pageSize
,
$order_
,
$field
,
$conditions
,
$spTagArr
);
$result
=
$this
->
gHousesModel
->
getHousesList
(
$pageNo
,
$pageSize
,
$order_
,
$field
,
$conditions
,
$spTagArr
);
//获取图片信息
//获取图片信息
foreach
(
$result
as
$key
=>
$val
)
{
foreach
(
$result
as
$key
=>
$val
)
{
...
...
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