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
d2d985e8
Commit
d2d985e8
authored
Sep 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
锁盘
parent
d05b6a8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Shop.php
application/api_broker/controller/Shop.php
+18
-1
No files found.
application/api_broker/controller/Shop.php
View file @
d2d985e8
...
...
@@ -96,7 +96,7 @@ class Shop extends Basic
}
else
{
$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"
;
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price
,is_lock
"
;
$conditions
[
"city"
]
=
trim
(
$this
->
city
);
}
...
...
@@ -248,6 +248,23 @@ class Shop extends Basic
$isLook
=
$this
->
lookShopService_
->
isLooked
(
$this
->
agentId
,
$val
[
"id"
]);
$result
[
$key
][
"is_look"
]
=
$isLook
;
}
//锁盘后,盘方、独家方、有权限的可以查看
if
(
isset
(
$val
[
'is_lock'
])
&&
$val
[
'is_lock'
]
==
1
)
{
$vip
=
new
VipService
();
if
(
!
$vip
->
vip
(
$this
->
agentId
,
'index/lockHouse'
)
)
{
$result
[
$key
][
"look_lock"
]
=
1
;
}
$m_agent
=
new
GHousesToAgents
();
$agent_data
=
$m_agent
->
getAgentsHouseField
(
'a.id'
,
[
'a.agents_id'
=>
$this
->
agentId
,
'a.type'
=>
[
'in'
,
'2,3'
]]);
foreach
(
$agent_data
as
$vvv
)
{
if
(
$vvv
>
0
){
$result
[
$key
][
"look_lock"
]
=
1
;
}
}
}
}
...
...
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