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
708cb0d4
Commit
708cb0d4
authored
Aug 03, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拨打统计redis
parent
8c0ea58f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
ClientService.php
application/api_broker/service/ClientService.php
+10
-3
No files found.
application/api_broker/service/ClientService.php
View file @
708cb0d4
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
app\api_broker\service
;
namespace
app\api_broker\service
;
use
app\extra\RedisExt
;
use
app\model\UPhoneFollowPp
;
use
app\model\UPhoneFollowPp
;
/**
/**
...
@@ -14,17 +15,23 @@ use app\model\UPhoneFollowPp;
...
@@ -14,17 +15,23 @@ use app\model\UPhoneFollowPp;
class
ClientService
class
ClientService
{
{
private
$uPhoneFollowUpModel
;
private
$uPhoneFollowUpModel
;
private
$redis
;
public
function
__construct
()
public
function
__construct
()
{
{
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
();
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
();
$this
->
redis
=
RedisExt
::
getRedis
();
}
}
public
function
dialTotal
(
$user_id
)
public
function
dialTotal
(
$user_id
)
{
{
//todo 拨打次数统计
$day
=
1
;
$day
=
1
;
$num
=
5
;
$num
=
5
;
if
(
$this
->
redis
&&
$this
->
redis
->
get
(
"s_agent_call_day"
)
>
0
&&
$this
->
redis
->
get
(
"s_agent_call_number"
)
>
0
)
{
$day
=
$this
->
redis
->
get
(
"s_agent_call_day"
);
$num
=
$this
->
redis
->
get
(
"s_agent_call_number"
);
}
$start_time
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"-
$day
day"
));
$start_time
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"-
$day
day"
));
$end_time
=
date
(
"Y-m-d H:i:s"
,
time
());
$end_time
=
date
(
"Y-m-d H:i:s"
,
time
());
$params
[
"create_time"
]
=
array
(
"between"
,
array
(
$start_time
,
$end_time
)
);
$params
[
"create_time"
]
=
array
(
"between"
,
array
(
$start_time
,
$end_time
)
);
...
...
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