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
6297ca98
Commit
6297ca98
authored
Aug 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台商铺列表
parent
3d7cec59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
Houses.php
application/index/controller/Houses.php
+15
-1
No files found.
application/index/controller/Houses.php
View file @
6297ca98
...
@@ -285,7 +285,21 @@ class Houses extends Basic
...
@@ -285,7 +285,21 @@ class Houses extends Basic
$look_shop
=
new
LookShopService
();
$look_shop
=
new
LookShopService
();
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
$data
[
'data'
][
'list'
][
$k
][
"is_look"
]
=
$look_shop
->
isLooked
(
$this
->
userId
,
$v
[
"id"
]);;
$data
[
'data'
][
'list'
][
$k
][
"is_look"
]
=
$look_shop
->
isLooked
(
$this
->
userId
,
$v
[
"id"
]);
//是否被收藏
$data
[
'data'
][
'list'
][
$k
][
"is_collect"
]
=
2
;
if
(
$this
->
params
[
'agent_id'
]
)
{
//先判断是否已经存在数据
$field
=
'id,status'
;
$get_params
[
'agents_id'
]
=
$this
->
params
[
"agent_id"
];
$get_params
[
'house_id'
]
=
$v
[
"id"
];
$collect_house
=
new
ACollectHouse
();
$res
=
$collect_house
->
getCollectHouse
(
$field
,
$get_params
);
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
))
{
//如果存在
$data
[
'data'
][
'list'
][
$k
][
"is_collect"
]
=
1
;
}
}
}
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
...
...
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