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
72b4651c
Commit
72b4651c
authored
Oct 31, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_vip
parent
0a1473b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Shop.php
application/api_broker/controller/Shop.php
+2
-2
Houses.php
application/index/controller/Houses.php
+3
-3
No files found.
application/api_broker/controller/Shop.php
View file @
72b4651c
...
@@ -101,7 +101,7 @@ class Shop extends Basic
...
@@ -101,7 +101,7 @@ class Shop extends Basic
// $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
// $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
$field
=
"id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
$field
=
"id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,is_exclusive_type,vip"
;
,is_exclusive_type,
is_
vip"
;
$conditions
[
"city"
]
=
trim
(
$this
->
city
);
$conditions
[
"city"
]
=
trim
(
$this
->
city
);
}
}
...
@@ -417,7 +417,7 @@ class Shop extends Basic
...
@@ -417,7 +417,7 @@ class Shop extends Basic
$field
.=
',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth,
$field
.=
',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth,
b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source
b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source
,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.vip'
;
,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.
is_
vip'
;
$result
=
$this
->
gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
$result
=
$this
->
gHousesModel
->
getHouseDetailById
(
$field
,
$conditions
);
if
(
count
(
$result
)
<=
0
)
{
if
(
count
(
$result
)
<=
0
)
{
return
$this
->
response
(
"101"
,
'此楼盘不存在'
);
return
$this
->
response
(
"101"
,
'此楼盘不存在'
);
...
...
application/index/controller/Houses.php
View file @
72b4651c
...
@@ -794,14 +794,14 @@ class Houses extends Basic
...
@@ -794,14 +794,14 @@ class Houses extends Basic
try
{
try
{
$house
=
new
GHouses
();
$house
=
new
GHouses
();
$house_data
=
$house
->
getHouseDetail
(
'id,vip'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
$house_data
=
$house
->
getHouseDetail
(
'id,
is_
vip'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
if
(
empty
(
$house_data
[
'id'
]))
{
if
(
empty
(
$house_data
[
'id'
]))
{
$code
=
101
;
$code
=
101
;
$msg
=
'没有该商铺'
;
$msg
=
'没有该商铺'
;
}
else
{
}
else
{
if
(
$house_data
[
'vip'
]
!=
$this
->
params
[
'vip'
])
{
if
(
$house_data
[
'
is_
vip'
]
!=
$this
->
params
[
'vip'
])
{
$house
->
editData
([
'vip'
=>
$this
->
params
[
'vip'
]],
$this
->
params
[
'id'
]);
$house
->
editData
([
'
is_
vip'
=>
$this
->
params
[
'vip'
]],
$this
->
params
[
'id'
]);
}
}
}
}
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
...
...
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