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
d76bd547
Commit
d76bd547
authored
Jan 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
array
parent
66395107
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
PhoneFollowUpService.php
application/index/service/PhoneFollowUpService.php
+11
-10
Users.php
application/model/Users.php
+4
-0
No files found.
application/index/service/PhoneFollowUpService.php
View file @
d76bd547
...
@@ -49,15 +49,15 @@ class PhoneFollowUpService
...
@@ -49,15 +49,15 @@ class PhoneFollowUpService
$page_no
=
isset
(
$params
[
'page_no'
])
?
$params
[
'page_no'
]
:
1
;
$page_no
=
isset
(
$params
[
'page_no'
])
?
$params
[
'page_no'
]
:
1
;
$page_size
=
isset
(
$params
[
'page_size'
])
?
$params
[
'page_size'
]
:
15
;
$page_size
=
isset
(
$params
[
'page_size'
])
?
$params
[
'page_size'
]
:
15
;
$is_check
=
$vrs
->
followUpClick
(
$agent_id
);
//
$is_check = $vrs->followUpClick($agent_id);
if
(
$page_no
==
1
&&
!
$is_check
){
//
if($page_no == 1 && !$is_check){
$is_bool
=
$vrs
->
getCurrTimeSection
();
//
$is_bool = $vrs->getCurrTimeSection();
$msg
=
"请勿频繁请求"
;
//
$msg = "请勿频繁请求";
if
(
$is_bool
)
{
//
if($is_bool) {
$msg
=
"高峰期间每10秒钟只能搜索一次(6.30-8.30)"
;
//
$msg = "高峰期间每10秒钟只能搜索一次(6.30-8.30)";
}
//
}
return
[
'code'
=>
'101'
,
'data'
=>
$msg
];
//
return ['code'=>'101','data'=>$msg];
}
//
}
$where
=
' 1=1 '
;
$where
=
' 1=1 '
;
if
(
empty
(
$start_time
)
||
empty
(
$end_time
))
{
if
(
empty
(
$start_time
)
||
empty
(
$end_time
))
{
return
[
'code'
=>
'101'
,
'data'
=>
'时间不能为空'
];
return
[
'code'
=>
'101'
,
'data'
=>
'时间不能为空'
];
...
@@ -93,7 +93,8 @@ class PhoneFollowUpService
...
@@ -93,7 +93,8 @@ class PhoneFollowUpService
if
(
empty
(
$agent_id
))
{
if
(
empty
(
$agent_id
))
{
return
[
'code'
=>
'101'
,
'data'
=>
'暂无数据'
];
return
[
'code'
=>
'101'
,
'data'
=>
'暂无数据'
];
}
else
{
}
else
{
$where
.=
" AND agent_id in {implode(',',
$agent_id
)}"
;
$agent_id_string
=
implode
(
','
,
$agent_id
);
$where
.=
" AND agent_id in (
{
$agent_id_string
}
)"
;
}
}
}
}
...
...
application/model/Users.php
View file @
d76bd547
...
@@ -163,6 +163,7 @@ class Users extends Model
...
@@ -163,6 +163,7 @@ class Users extends Model
}
}
//echo Db::table($this->table)->getLastSql();
//echo Db::table($this->table)->getLastSql();
$s_phone_follow_up
=
new
UPhoneFollowUp
(
$site_id
);
$s_phone_follow_up
=
new
UPhoneFollowUp
(
$site_id
);
$s_phone_follow_temp
=
new
UPhoneFollowUpTemporary
(
$site_id
);
foreach
(
$result
as
$k
=>
$v
)
{
foreach
(
$result
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
->
getData
();
$data
[
$k
]
=
$v
->
getData
();
...
@@ -179,7 +180,10 @@ class Users extends Model
...
@@ -179,7 +180,10 @@ class Users extends Model
$params_
[
'user_id'
]
=
$data
[
$k
][
'id'
];
$params_
[
'user_id'
]
=
$data
[
$k
][
'id'
];
$order
=
'id desc'
;
$order
=
'id desc'
;
$res
=
$s_phone_follow_temp
->
getPhoneFollowData
(
'create_time'
,
$params_
,
$order
);
if
(
empty
(
$res
))
{
$res
=
$s_phone_follow_up
->
getPhoneFollowData
(
'create_time'
,
$params_
,
$order
);
$res
=
$s_phone_follow_up
->
getPhoneFollowData
(
'create_time'
,
$params_
,
$order
);
}
$data
[
$k
][
'follow_time'
]
=
$res
[
0
][
'create_time'
];
$data
[
$k
][
'follow_time'
]
=
$res
[
0
][
'create_time'
];
}
}
return
$data
;
return
$data
;
...
...
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