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
46ef8d5d
Commit
46ef8d5d
authored
Aug 15, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6a4fdee6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Broker.php
application/api/controller/Broker.php
+8
-4
No files found.
application/api/controller/Broker.php
View file @
46ef8d5d
...
@@ -137,10 +137,14 @@ class Broker extends Basic
...
@@ -137,10 +137,14 @@ class Broker extends Basic
$agent_client
=
0
;
$agent_client
=
0
;
if
(
!
empty
(
$this
->
userId
)
&&
(
$this
->
params
[
'source'
]
!=
'B-APP'
)
&&
$this
->
params
[
'site_id'
])
{
if
(
!
empty
(
$this
->
userId
)
&&
(
$this
->
params
[
'source'
]
!=
'B-APP'
)
&&
$this
->
params
[
'site_id'
])
{
$client_where
[
'c.id'
]
=
$this
->
userId
;
$client_where
[
'd.user_id'
]
=
$this
->
userId
;
$client_where
[
'a.status'
]
=
0
;
$client_where
[
'd.site_id'
]
=
$this
->
params
[
'site_id'
];
$client_where
[
'd.site_id'
]
=
$this
->
params
[
'site_id'
];
$agent_client
=
$agents
->
getAgentClientCity
(
$fields
,
$client_where
);
$client_where
[
'd.is_del'
]
=
0
;
$client
=
$agents
->
getAgentUser
(
'a.id,a.name,a.img,a.phone'
,
$client_where
);
//客方
if
(
!
empty
(
$client
)){
$client
[
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
array_push
(
$list
,
$client
);
}
}
}
//去除分享的商铺
//去除分享的商铺
...
@@ -259,7 +263,7 @@ class Broker extends Basic
...
@@ -259,7 +263,7 @@ class Broker extends Basic
default
:
default
:
return
$this
->
response
(
101
,
'参数错误'
);
return
$this
->
response
(
101
,
'参数错误'
);
}
}
$client_where
[
'd.is_del'
]
=
0
;
$client_where
[
'd.site_id'
]
=
$site_id
;
$client_where
[
'd.site_id'
]
=
$site_id
;
$client
=
$agents
->
getAgentUser
(
$fields
,
$client_where
);
//客方
$client
=
$agents
->
getAgentUser
(
$fields
,
$client_where
);
//客方
if
(
!
empty
(
$client
)){
if
(
!
empty
(
$client
)){
...
...
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