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
df05afb2
Commit
df05afb2
authored
Sep 10, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断是否纯房东
parent
33ae74ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
User.php
application/api_broker/controller/User.php
+10
-1
No files found.
application/api_broker/controller/User.php
View file @
df05afb2
...
@@ -82,7 +82,7 @@ class User extends Basic
...
@@ -82,7 +82,7 @@ class User extends Basic
"pageSize" => 15,
"pageSize" => 15,
"status" => 0,
"status" => 0,
);*/
);*/
$field
=
"id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip"
;
$field
=
"id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip
,source
"
;
$conditions
=
[];
$conditions
=
[];
...
@@ -154,6 +154,15 @@ class User extends Basic
...
@@ -154,6 +154,15 @@ class User extends Basic
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
();
foreach
(
$userList
as
$k
=>
$v
)
{
foreach
(
$userList
as
$k
=>
$v
)
{
/*判断是否纯房东 0:否 1:是 start*/
$is_single_homeowner
=
0
;
if
(
$v
[
'source'
]
==
41
)
{
//source 41纯房东
$is_single_homeowner
=
1
;
}
$userList
[
$k
][
'is_single_homeowner'
]
=
$is_single_homeowner
;
/*判断是否纯房东 end*/
$is_show
=
$clientService
->
dialTotal
(
$v
[
"user_id"
]);
$is_show
=
$clientService
->
dialTotal
(
$v
[
"user_id"
]);
$userList
[
$k
][
'sign_call'
]
=
$is_show
?
0
:
1
;
$userList
[
$k
][
'sign_call'
]
=
$is_show
?
0
:
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