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
244a7005
Commit
244a7005
authored
Jul 18, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
date
parent
79e80a63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+5
-4
No files found.
application/task/controller/PrivacyNumber.php
View file @
244a7005
...
@@ -177,10 +177,11 @@ class PrivacyNumber
...
@@ -177,10 +177,11 @@ class PrivacyNumber
$is_down
=
''
;
$is_down
=
''
;
foreach
(
$down_data
as
$k
=>
$v
)
{
foreach
(
$down_data
as
$k
=>
$v
)
{
$date_path
=
date
(
'Ymd'
,
strtotime
(
$v
[
'call_time'
]));
if
(
file_exists
(
PHONE_VOICE
.
'/'
.
$v
[
'voice_file'
])
&&
!
empty
(
$v
[
'voice_file'
]))
{
if
(
file_exists
(
PHONE_VOICE
.
'/'
.
$v
[
'voice_file'
])
&&
!
empty
(
$v
[
'voice_file'
]))
{
$data
[
'record_down'
]
=
empty
(
$v
[
'record_down'
])
?
1
:
2
;
$data
[
'record_down'
]
=
empty
(
$v
[
'record_down'
])
?
1
:
2
;
if
(
$data
[
'record_down'
]
==
1
)
{
if
(
$data
[
'record_down'
]
==
1
)
{
$data
[
'voice_file'
]
=
date
(
'Ymd'
)
.
'/'
.
basename
(
$is_down
);
$data
[
'voice_file'
]
=
$date_path
.
'/'
.
basename
(
$is_down
);
}
}
$this
->
m_secret_report
->
updateDownStatus
(
$v
[
'id'
],
$data
);
$this
->
m_secret_report
->
updateDownStatus
(
$v
[
'id'
],
$data
);
continue
;
continue
;
...
@@ -205,7 +206,7 @@ class PrivacyNumber
...
@@ -205,7 +206,7 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
$file_name
=
$file_name
[
1
];
}
}
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$
create_time
);
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$
date_path
);
}
}
}
elseif
(
$v
[
'type'
]
==
2
)
{
}
elseif
(
$v
[
'type'
]
==
2
)
{
/*容联云音频下载*/
/*容联云音频下载*/
...
@@ -216,14 +217,14 @@ class PrivacyNumber
...
@@ -216,14 +217,14 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
$file_name
=
$file_name
[
1
];
}
}
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$
create_time
);
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$
date_path
);
}
}
}
}
if
(
file_exists
(
$is_down
))
{
if
(
file_exists
(
$is_down
))
{
$data
[
'record_down'
]
=
empty
(
$v
[
'record_down'
])
?
1
:
2
;
$data
[
'record_down'
]
=
empty
(
$v
[
'record_down'
])
?
1
:
2
;
if
(
$data
[
'record_down'
]
==
1
)
{
if
(
$data
[
'record_down'
]
==
1
)
{
$data
[
'voice_file'
]
=
date
(
'Ymd'
)
.
'/'
.
basename
(
$is_down
);
$data
[
'voice_file'
]
=
$date_path
.
'/'
.
basename
(
$is_down
);
}
}
$this
->
m_secret_report
->
updateDownStatus
(
$v
[
'id'
],
$data
);
$this
->
m_secret_report
->
updateDownStatus
(
$v
[
'id'
],
$data
);
}
}
...
...
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