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
d26cf800
Commit
d26cf800
authored
Jul 11, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
ed439d69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
CollectHouse.php
application/api_broker/controller/CollectHouse.php
+9
-11
CollectUser.php
application/api_broker/controller/CollectUser.php
+7
-7
No files found.
application/api_broker/controller/CollectHouse.php
View file @
d26cf800
...
...
@@ -88,9 +88,9 @@ class CollectHouse extends Basic
{
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
"agents_id" => 2,
);
);
*/
if
(
!
isset
(
$params
[
"agents_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
...
@@ -114,9 +114,9 @@ class CollectHouse extends Basic
* is_look : true
*/
$field
=
'CollectUser.id,'
;
$field
.=
'Houses.id
as house_id
,'
;
$field
.=
'Houses.internal_title,'
;
$field
=
'CollectUser.id
as collect_user_id
,'
;
$field
.=
'Houses.id,'
;
$field
.=
'Houses.internal_title
as title
,'
;
$field
.=
'Houses.business_district_id,'
;
$field
.=
'Houses.status,'
;
$field
.=
'Houses.industry_type,'
;
...
...
@@ -128,19 +128,16 @@ class CollectHouse extends Basic
$field
.=
'Houses.rent_price'
;
$get_params
[
'agents_id'
]
=
$params
[
"agents_id"
];
$get_params
[
'CollectUser.status'
]
=
1
;
$res
=
$this
->
aCollectHouse
->
getCollectList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
$look_shop_service
=
new
LookShopService
();
foreach
(
$res
as
$key
=>
$val
)
{
$isLook
=
$look_shop_service
->
isLooked
(
$params
[
"agents_id"
],
$val
[
"
house_
id"
]);
$isLook
=
$look_shop_service
->
isLooked
(
$params
[
"agents_id"
],
$val
[
"id"
]);
$res
[
$key
][
"is_look"
]
=
$isLook
;
}
//dump($res);
if
(
$res
)
{
return
$this
->
response
(
"200"
,
"成功"
,
$res
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
return
$this
->
response
(
"200"
,
"成功"
,
$res
);
}
}
\ No newline at end of file
application/api_broker/controller/CollectUser.php
View file @
d26cf800
...
...
@@ -113,7 +113,9 @@ class CollectUser extends Basic
$field
.=
'Users.vip,'
;
$field
.=
'Users.area_demand'
;
$get_params
[
'agents_id'
]
=
$params
[
"agents_id"
];
$get_params
[
'agents_id'
]
=
$params
[
"agents_id"
];
$get_params
[
'CollectUser.status'
]
=
1
;
$res
=
$this
->
aCollectUser
->
getCollectList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
foreach
(
$res
as
$k
=>
$v
)
{
...
...
@@ -128,17 +130,14 @@ class CollectUser extends Basic
}
}
$data
[
'
list
'
]
=
$res
;
$data
[
'
user_date
'
]
=
$res
;
//dump($res);
$vip_services
=
new
VipService
();
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$params
[
'agents_id'
]);
if
(
$res
)
{
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
}
\ No newline at end of file
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