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
23f97bbe
Commit
23f97bbe
authored
Jun 28, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户拨打经纪人手机号1天不重复计入拨打数量
parent
d373bd84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
VerifyRepetitionService.php
application/api_broker/service/VerifyRepetitionService.php
+7
-4
No files found.
application/api_broker/service/VerifyRepetitionService.php
View file @
23f97bbe
...
...
@@ -30,13 +30,16 @@ class VerifyRepetitionService
if
(
!
$this
->
redis_
)
{
return
true
;
}
$key
=
""
;
$key
=
""
;
$time
=
60
;
switch
(
$type
)
{
case
1
:
//进场
$key
=
self
::
MARCH_IN_KEY
;
$key
=
self
::
MARCH_IN_KEY
;
$time
=
self
::
TIME_OUT
;
break
;
case
2
:
$key
=
self
::
CALL_NUMBER
;
$key
=
self
::
CALL_NUMBER
;
$time
=
strtotime
(
date
(
'Y-m-d'
)
.
' 23:59:59'
)
-
time
();
break
;
case
3
:
break
;
...
...
@@ -46,7 +49,7 @@ class VerifyRepetitionService
if
(
$this
->
redis_
->
get
(
$agent_id
.
$key
.
$order_id
))
{
return
false
;
}
else
{
$this
->
redis_
->
set
(
$agent_id
.
$key
.
$order_id
,
1
,
self
::
TIME_OUT
);
$this
->
redis_
->
set
(
$agent_id
.
$key
.
$order_id
,
1
,
$time
);
return
true
;
}
...
...
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