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
4f9ada3f
Commit
4f9ada3f
authored
Feb 12, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
0cadd511
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
CellPhone.php
application/index/controller/CellPhone.php
+9
-3
No files found.
application/index/controller/CellPhone.php
View file @
4f9ada3f
...
@@ -98,7 +98,9 @@ class CellPhone extends Basic
...
@@ -98,7 +98,9 @@ class CellPhone extends Basic
$list
=
$report
->
getCallList
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$list
=
$report
->
getCallList
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$m_user
=
new
Users
();
$m_user
=
new
Users
();
$m_phone_follow
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$m_phone_follow
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$m_phone_follow_temp
=
new
UPhoneFollowUpTemporary
(
$this
->
siteId
);
if
(
$this
->
params
[
'end_date'
]
>=
date
(
'Y-m-d'
,
time
())){
$m_phone_follow_temp
=
new
UPhoneFollowUpTemporary
(
$this
->
siteId
);
}
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
foreach
(
$list
as
$k
=>
$v
)
{
foreach
(
$list
as
$k
=>
$v
)
{
if
(
empty
(
$v
[
'agents_id'
]))
{
if
(
empty
(
$v
[
'agents_id'
]))
{
...
@@ -148,8 +150,12 @@ class CellPhone extends Basic
...
@@ -148,8 +150,12 @@ class CellPhone extends Basic
$where_follow
[
'user_id'
]
=
$v
[
'users_id'
];
$where_follow
[
'user_id'
]
=
$v
[
'users_id'
];
$where_follow
[
'type'
]
=
0
;
$where_follow
[
'type'
]
=
0
;
$where_follow
[
'agent_id'
]
=
$v
[
'agents_id'
];
$where_follow
[
'agent_id'
]
=
$v
[
'agents_id'
];
$result
[
$k
][
'content'
]
=
$m_phone_follow_temp
->
getUserFollowKey
(
'content'
,
$where_follow
,
'id DESC'
);
if
(
$this
->
params
[
'end_date'
]
>=
date
(
'Y-m-d'
,
time
())){
if
(
empty
(
$result
[
$k
][
'content'
]))
{
$result
[
$k
][
'content'
]
=
$m_phone_follow_temp
->
getUserFollowKey
(
'content'
,
$where_follow
,
'id DESC'
);
if
(
empty
(
$result
[
$k
][
'content'
]))
{
$result
[
$k
][
'content'
]
=
$m_phone_follow
->
getUserFollowKey
(
'content'
,
$where_follow
,
'id DESC'
);
}
}
else
{
$result
[
$k
][
'content'
]
=
$m_phone_follow
->
getUserFollowKey
(
'content'
,
$where_follow
,
'id DESC'
);
$result
[
$k
][
'content'
]
=
$m_phone_follow
->
getUserFollowKey
(
'content'
,
$where_follow
,
'id DESC'
);
}
}
}
else
{
}
else
{
...
...
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