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
004e8bf0
Commit
004e8bf0
authored
Mar 08, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载路径修改
parent
0452af13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
common.php
application/common.php
+9
-2
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+8
-2
No files found.
application/common.php
View file @
004e8bf0
...
...
@@ -66,14 +66,21 @@ function download_file($archivo, $downloadfilename = null) {
* @param $url
* @param $dir
* @param string $filename
* @param $date
* @return bool|string
*/
function
down_file
(
$url
,
$dir
,
$filename
=
''
){
function
down_file
(
$url
,
$dir
,
$filename
=
''
,
$date
){
if
(
empty
(
$url
)){
return
false
;
}
$date
=
date
(
'Ymd'
);
if
(
empty
(
$date
))
{
$date
=
date
(
'Ymd'
);
}
else
{
$date
=
date
(
'Ymd'
,
strtotime
(
$date
));
}
$ext
=
strrchr
(
$url
,
'.'
);
$dir
=
$dir
.
DS
.
$date
;
...
...
application/task/controller/PrivacyNumber.php
View file @
004e8bf0
...
...
@@ -202,12 +202,18 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
}
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
);
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$date
);
}
}
elseif
(
$v
[
'type'
]
==
2
)
{
/*容联云音频下载*/
if
(
!
empty
(
$v
[
'mp3_url'
]))
{
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
);
if
(
$param
[
'record_down'
]
==
1
)
{
$file_name
=
basename
(
$v
[
'mp3_url'
]);
}
else
{
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
}
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$date
);
}
}
...
...
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