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
3936c37c
Commit
3936c37c
authored
Sep 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除过期绑定关系
parent
7290a911
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+2
-8
No files found.
application/task/controller/PrivacyNumber.php
View file @
3936c37c
...
@@ -267,9 +267,8 @@ class PrivacyNumber
...
@@ -267,9 +267,8 @@ class PrivacyNumber
}
}
/**
/**
*
检查绑定关系,去除表中不存在的
绑定关系
*
去除过期
绑定关系
*
*
* @throws \Aliyun\Core\Exception\ClientException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
...
@@ -280,16 +279,11 @@ class PrivacyNumber
...
@@ -280,16 +279,11 @@ class PrivacyNumber
$m_bind
=
new
BindingPhone
();
$m_bind
=
new
BindingPhone
();
$where
[
'a.status'
]
=
1
;
$where
[
'a.status'
]
=
1
;
$where
[
'a.type'
]
=
1
;
$where
[
'a.expiry_date'
]
=
[
'<'
,
date
(
'Y-m-d H:i:s'
)
];
$where
[
'a.expiry_date'
]
=
[
'<'
,
date
(
'Y-m-d H:i:s'
)
];
$select_data
=
$m_bind
->
getBindingPhoneList
(
'a.id,a.aliYun_phone_id,b.phone_x,a.subsId,a.expiry_date'
,
$where
);
$select_data
=
$m_bind
->
getBindingPhoneList
(
'a.id,a.aliYun_phone_id'
,
$where
);
foreach
(
$select_data
[
'data'
]
as
$k
=>
$v
)
{
foreach
(
$select_data
[
'data'
]
as
$k
=>
$v
)
{
$query_status
=
PlsDemo
::
querySubscriptionDetail
(
$v
[
'subsId'
],
$v
[
'phone_x'
]);
if
(
isset
(
$query_status
->
Code
)
&&
(
$query_status
->
Code
!=
'OK'
))
{
$m_bind
->
unBindTable
(
$v
[
'id'
],
$v
[
'aliYun_phone_id'
]);
$m_bind
->
unBindTable
(
$v
[
'id'
],
$v
[
'aliYun_phone_id'
]);
}
}
}
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