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
0a29fe78
Commit
0a29fe78
authored
Apr 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
释放号码修改
parent
d2c64206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+12
-3
No files found.
application/task/controller/PrivacyNumber.php
View file @
0a29fe78
...
@@ -56,7 +56,10 @@ class PrivacyNumber
...
@@ -56,7 +56,10 @@ class PrivacyNumber
*/
*/
public
function
queryRecordFile
()
{
public
function
queryRecordFile
()
{
$down_data
=
Db
::
table
(
'aliyun_secret_report'
)
->
field
(
'id,call_id,call_time'
)
$down_data
=
Db
::
table
(
'aliyun_secret_report'
)
->
field
(
'id,call_id,call_time'
)
->
where
(
'record_down'
,
0
)
->
whereTime
(
'call_time'
,
'<'
,
time
()
-
900
)
->
select
();
->
where
(
'record_down'
,
0
)
->
where
(
'time'
,
'<>'
,
0
)
->
whereTime
(
'call_time'
,
'<'
,
time
()
-
900
)
->
select
();
foreach
(
$down_data
as
$k
=>
$v
)
{
foreach
(
$down_data
as
$k
=>
$v
)
{
$result_data
=
PlsDemo
::
queryRecordFileDownloadUrl
(
$v
[
'call_id'
],
$v
[
'call_time'
]);
$result_data
=
PlsDemo
::
queryRecordFileDownloadUrl
(
$v
[
'call_id'
],
$v
[
'call_time'
]);
...
@@ -73,7 +76,7 @@ class PrivacyNumber
...
@@ -73,7 +76,7 @@ class PrivacyNumber
}
}
}
}
/*容联云音频下载*/
/*容联云音频下载*/
$rongRecord
=
new
RongBilledInform
();
/*
$rongRecord = new RongBilledInform();
$ids = [];
$ids = [];
$field = 'id,mp3_url';
$field = 'id,mp3_url';
$where = 'download=0';
$where = 'download=0';
...
@@ -88,7 +91,7 @@ class PrivacyNumber
...
@@ -88,7 +91,7 @@ class PrivacyNumber
$id_str = implode(',',$ids);
$id_str = implode(',',$ids);
$update['download'] = 1;
$update['download'] = 1;
$where = " id in($id_str)";
$where = " id in($id_str)";
$rongRecord
->
save
(
$update
,
$where
);
$rongRecord->save($update,$where);
*/
return
;
return
;
}
}
...
@@ -106,6 +109,7 @@ class PrivacyNumber
...
@@ -106,6 +109,7 @@ class PrivacyNumber
->
join
(
'aliyun_phone b'
,
'a.aliYun_phone_id=b.id'
,
'left'
)
->
join
(
'aliyun_phone b'
,
'a.aliYun_phone_id=b.id'
,
'left'
)
->
field
(
'a.id,aliYun_phone_id,expiry_date,phone_x,phone_a,phone_b,subsId'
)
->
field
(
'a.id,aliYun_phone_id,expiry_date,phone_x,phone_a,phone_b,subsId'
)
->
where
(
'a.status'
,
1
)
->
where
(
'a.status'
,
1
)
->
where
(
'b.type'
,
1
)
->
select
();
->
select
();
$time
=
strtotime
(
date
(
'Y-m-d'
));
//今天0点
$time
=
strtotime
(
date
(
'Y-m-d'
));
//今天0点
...
@@ -118,6 +122,11 @@ class PrivacyNumber
...
@@ -118,6 +122,11 @@ class PrivacyNumber
//解除绑定
//解除绑定
if
(
$date
<=
$time
)
{
if
(
$date
<=
$time
)
{
$subsId
=
$bind
->
getSubsId
(
$v
[
'phone_x'
],
$v
[
'phone_a'
],
$v
[
'phone_b'
],
1
);
$subsId
=
$bind
->
getSubsId
(
$v
[
'phone_x'
],
$v
[
'phone_a'
],
$v
[
'phone_b'
],
1
);
if
(
empty
(
$subsId
))
{
continue
;
}
$result
=
PlsDemo
::
unbindSubscription
(
$subsId
,
$v
[
'phone_x'
]);
$result
=
PlsDemo
::
unbindSubscription
(
$subsId
,
$v
[
'phone_x'
]);
if
(
$result
->
Message
==
'OK'
)
{
if
(
$result
->
Message
==
'OK'
)
{
$bind
->
UnBind
(
$v
[
'phone_x'
],
$v
[
'phone_a'
],
$v
[
'phone_b'
],
$result
->
RequestId
);
$bind
->
UnBind
(
$v
[
'phone_x'
],
$v
[
'phone_a'
],
$v
[
'phone_b'
],
$result
->
RequestId
);
...
...
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