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
efea8cba
Commit
efea8cba
authored
Mar 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
array_push
parent
7fe197f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Broker.php
application/api/controller/Broker.php
+6
-6
No files found.
application/api/controller/Broker.php
View file @
efea8cba
...
@@ -141,8 +141,8 @@ class Broker extends Basic
...
@@ -141,8 +141,8 @@ class Broker extends Basic
if
(
!
empty
(
$reception_id
[
'reception_id'
]))
{
if
(
!
empty
(
$reception_id
[
'reception_id'
]))
{
$march_agent
=
$agents
->
findByOne
(
$fields_agent
,
[
'id'
=>
$reception_id
[
'reception_id'
]]);
$march_agent
=
$agents
->
findByOne
(
$fields_agent
,
[
'id'
=>
$reception_id
[
'reception_id'
]]);
if
(
!
empty
(
$march_agent
)){
if
(
!
empty
(
$march_agent
)){
$
list
[
0
]
=
$march_agent
;
$
march_agent
[
'show_content'
]
=
'我对本铺非常了解,最近带看本铺多次'
;
$list
[
0
][
'show_content'
]
=
'我对本铺非常了解,最近带看本铺多次'
;
array_push
(
$list
,
$march_agent
)
;
}
}
}
}
...
@@ -155,8 +155,8 @@ class Broker extends Basic
...
@@ -155,8 +155,8 @@ class Broker extends Basic
$client_where
[
'a.id'
]
=
$this
->
userId
;
$client_where
[
'a.id'
]
=
$this
->
userId
;
$client
=
$agents
->
getAgentUser
(
$fields
,
$client_where
);
//客方
$client
=
$agents
->
getAgentUser
(
$fields
,
$client_where
);
//客方
if
(
!
empty
(
$client
)){
if
(
!
empty
(
$client
)){
$
list
[
1
]
=
$client
;
$
client
[
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
$list
[
1
][
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
array_push
(
$list
,
$client
)
;
}
}
}
}
...
@@ -175,8 +175,8 @@ class Broker extends Basic
...
@@ -175,8 +175,8 @@ class Broker extends Basic
$where
[
'b.type'
]
=
3
;
$where
[
'b.type'
]
=
3
;
$house_agent
=
$agents
->
getAgentHouseType
(
$fields
,
$where
);
$house_agent
=
$agents
->
getAgentHouseType
(
$fields
,
$where
);
if
(
!
empty
(
$house_agent
)){
if
(
!
empty
(
$house_agent
)){
$
list
[
2
]
=
$house_agent
;
$
house_agent
[
'show_content'
]
=
'本铺由我登记,熟悉房源信息'
;
$list
[
2
][
'show_content'
]
=
'本铺由我登记,熟悉房源信息'
;
array_push
(
$list
,
$house_agent
)
;
}
}
foreach
(
$list
as
$k
=>
$v
)
{
foreach
(
$list
as
$k
=>
$v
)
{
...
...
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