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
fa3c9174
Commit
fa3c9174
authored
Aug 01, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
被拨打10次不显示
parent
7ad5dbb3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
Client.php
application/api_broker/controller/Client.php
+0
-0
ClientService.php
application/api_broker/service/ClientService.php
+43
-0
No files found.
application/api_broker/controller/Client.php
View file @
fa3c9174
This diff is collapsed.
Click to expand it.
application/api_broker/service/ClientService.php
0 → 100644
View file @
fa3c9174
<?php
namespace
app\api_broker\service
;
use
app\model\UPhoneFollowPp
;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/8/1
* Time : 13:50
* Intro:
*/
class
ClientService
{
private
$uPhoneFollowUpModel
;
public
function
__construct
()
{
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
();
}
public
function
dialTotal
(
$user_id
)
{
//todo 拨打次数统计
$day
=
1
;
$num
=
10
;
$start_time
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"-
$day
day"
));
$end_time
=
date
(
"Y-m-d H:i:s"
,
time
());
$params
[
"create_time"
]
=
array
(
"between"
,
array
(
$start_time
,
$end_time
)
);
$params
[
"user_id"
]
=
$user_id
;
$total
=
$this
->
uPhoneFollowUpModel
->
getSearchCount
(
""
,
$params
);
if
(
$total
>
$num
)
{
return
false
;
}
else
{
return
true
;
}
}
}
\ No newline at end of file
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