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
c4335164
Commit
c4335164
authored
Jul 15, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time
parent
21d417a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+7
-1
No files found.
application/task/controller/PrivacyNumber.php
View file @
c4335164
...
@@ -800,7 +800,7 @@ class PrivacyNumber
...
@@ -800,7 +800,7 @@ class PrivacyNumber
$where
[
'is_down'
]
=
1
;
$where
[
'is_down'
]
=
1
;
}
}
$where
[
'is_del'
]
=
0
;
$where
[
'is_del'
]
=
0
;
$where
[
'call_time'
]
=
[
'
<'
,
date
(
'Y-m-d H:i:s'
,
time
()
-
900
)
];
$where
[
'call_time'
]
=
[
'
between'
,
[
date
(
'Y-m-d H:i:s'
,
strtotime
(
"-15 day"
)),
date
(
'Y-m-d H:i:s'
,
time
()
-
900
)]
];
$field
=
'id,call_id,call_time,voice_file,type,mp3_url,is_down'
;
$field
=
'id,call_id,call_time,voice_file,type,mp3_url,is_down'
;
$list
=
$this
->
m_down
->
getList
(
1
,
3000
,
''
,
$field
,
$where
);
$list
=
$this
->
m_down
->
getList
(
1
,
3000
,
''
,
$field
,
$where
);
return
Response
::
create
([
'code'
=>
200
,
'msg'
=>
''
,
'data'
=>
$list
],
'json'
);
return
Response
::
create
([
'code'
=>
200
,
'msg'
=>
''
,
'data'
=>
$list
],
'json'
);
...
@@ -959,6 +959,12 @@ class PrivacyNumber
...
@@ -959,6 +959,12 @@ class PrivacyNumber
$update_data
=
[];
$update_data
=
[];
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
if
(
file_exists
(
PHONE_VOICE
.
'/'
.
$v
[
'voice_file'
])
&&
!
empty
(
$v
[
'voice_file'
]))
{
if
(
file_exists
(
PHONE_VOICE
.
'/'
.
$v
[
'voice_file'
])
&&
!
empty
(
$v
[
'voice_file'
]))
{
$update_data
[]
=
[
'id'
=>
$v
[
'id'
],
'voice_file'
=>
$save_path
,
'call_time'
=>
$v
[
'call_time'
],
'call_id'
=>
$v
[
'call_id'
]
];
continue
;
continue
;
}
}
...
...
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