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
87f518a0
Commit
87f518a0
authored
Apr 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录音下载修改
parent
89e173ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+10
-10
No files found.
application/task/controller/PrivacyNumber.php
View file @
87f518a0
...
@@ -62,7 +62,7 @@ class PrivacyNumber
...
@@ -62,7 +62,7 @@ class PrivacyNumber
$result_data
=
PlsDemo
::
queryRecordFileDownloadUrl
(
$v
[
'call_id'
],
$v
[
'call_time'
]);
$result_data
=
PlsDemo
::
queryRecordFileDownloadUrl
(
$v
[
'call_id'
],
$v
[
'call_time'
]);
if
(
$result_data
->
Message
==
'OK'
)
{
if
(
$result_data
->
Message
==
'OK'
)
{
$down_url
=
explode
(
'?'
,
$result_data
->
DownloadUrl
);
$down_url
=
explode
(
'?'
,
$result_data
->
DownloadUrl
);
$is_down
=
down_file
(
$
down_url
[
0
]
,
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'voice'
,
basename
(
$down_url
[
0
]));
$is_down
=
down_file
(
$
result_data
->
DownloadUrl
,
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'voice'
,
basename
(
$down_url
[
0
]));
if
(
file_exists
(
$is_down
))
{
if
(
file_exists
(
$is_down
))
{
$data
[
'id'
]
=
$v
[
'id'
];
$data
[
'id'
]
=
$v
[
'id'
];
...
@@ -74,20 +74,20 @@ class PrivacyNumber
...
@@ -74,20 +74,20 @@ class PrivacyNumber
}
}
/*容联云音频下载*/
/*容联云音频下载*/
$rongRecord
=
new
RongBilledInform
();
$rongRecord
=
new
RongBilledInform
();
$ids
=
array
()
;
$ids
=
[]
;
$field
=
'id,voice_file
'
;
$field
=
'id,mp3_url
'
;
$where
=
'record_down
=0'
;
$where
=
'download
=0'
;
$down_data2
=
$rongRecord
->
getArr
(
$field
,
$where
);
$down_data2
=
$rongRecord
->
getArr
(
$field
,
$where
);
if
(
$down_data2
)
{
if
(
$down_data2
)
{
foreach
(
$down_data2
as
$k
=>
$v
)
{
foreach
(
$down_data2
as
$k
=>
$v
)
{
$ids
[]
=
$v
[
'id'
];
$ids
[]
=
$v
[
'id'
];
$down_url2
=
explode
(
'/'
,
$v
[
'
voice_file
'
]);
$down_url2
=
explode
(
'/'
,
$v
[
'
mp3_url
'
]);
down_file
(
$v
[
'
voice_file
'
],
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'voice'
,
array_pop
(
$down_url2
));
down_file
(
$v
[
'
mp3_url
'
],
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'voice'
,
array_pop
(
$down_url2
));
}
}
}
}
$id_str
=
implode
(
','
,
$ids
);
$id_str
=
implode
(
','
,
$ids
);
$update
[
'
record_down'
]
=
1
;
$update
[
'
download'
]
=
1
;
$where
=
" id in(
$id_str
)"
;
$where
=
" id in(
$id_str
)"
;
$rongRecord
->
save
(
$update
,
$where
);
$rongRecord
->
save
(
$update
,
$where
);
return
;
return
;
...
...
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