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
6eeb6be9
Commit
6eeb6be9
authored
Nov 08, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status=0
parent
de0e66cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
BindingPhone.php
application/model/BindingPhone.php
+1
-4
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+6
-3
No files found.
application/model/BindingPhone.php
View file @
6eeb6be9
...
@@ -165,11 +165,8 @@ class BindingPhone extends BaseModel
...
@@ -165,11 +165,8 @@ class BindingPhone extends BaseModel
*
*
* @param $id
* @param $id
* @param $aliYun_phone_id
* @param $aliYun_phone_id
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
unBindTable
(
$id
,
$aliYun_phone_id
)
public
function
unBindTable
(
$id
,
$aliYun_phone_id
=
0
)
{
{
//由虚拟号码提供
//由虚拟号码提供
// $phone = new AliYunPhone();
// $phone = new AliYunPhone();
...
...
application/task/controller/PrivacyNumber.php
View file @
6eeb6be9
...
@@ -176,7 +176,8 @@ class PrivacyNumber
...
@@ -176,7 +176,8 @@ class PrivacyNumber
//释放阿里云隐私号码
//释放阿里云隐私号码
$result
=
PlsDemo
::
unbindSubscription
(
$v
[
'subsId'
],
$v
[
'phone_x'
]);
$result
=
PlsDemo
::
unbindSubscription
(
$v
[
'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);
$bind
->
unBindTable
(
$v
[
'id'
]);
$binding_phone_id
[
$k
]
=
$v
[
'id'
];
$binding_phone_id
[
$k
]
=
$v
[
'id'
];
$phone_id
[
$k
]
=
$v
[
'aliYun_phone_id'
];
$phone_id
[
$k
]
=
$v
[
'aliYun_phone_id'
];
}
}
...
@@ -188,13 +189,15 @@ class PrivacyNumber
...
@@ -188,13 +189,15 @@ class PrivacyNumber
$tong_xun
=
new
RongDemo
();
$tong_xun
=
new
RongDemo
();
$result
=
$tong_xun
->
releaseNumber
(
$v
[
'mappingId'
]);
/*解绑*/
$result
=
$tong_xun
->
releaseNumber
(
$v
[
'mappingId'
]);
/*解绑*/
if
(
$result
[
'statusCode'
]
==
'000000'
)
{
if
(
$result
[
'statusCode'
]
==
'000000'
)
{
$bind
->
unBind
(
$v
[
'phone_x'
],
$v
[
'phone_a'
],
$v
[
'phone_b'
]);
// $bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b']);
$bind
->
unBindTable
(
$v
[
'id'
]);
$binding_phone_id
[
$k
]
=
$v
[
'id'
];
$binding_phone_id
[
$k
]
=
$v
[
'id'
];
$phone_id
[
$k
]
=
$v
[
'aliYun_phone_id'
];
$phone_id
[
$k
]
=
$v
[
'aliYun_phone_id'
];
}
else
{
}
else
{
$yun_result
=
$tong_xun
->
getBindInfo
(
$v
[
'phone_a'
],
$v
[
'phone_b'
],
$v
[
'phone_x'
],
$v
[
'mappingId'
]);
$yun_result
=
$tong_xun
->
getBindInfo
(
$v
[
'phone_a'
],
$v
[
'phone_b'
],
$v
[
'phone_x'
],
$v
[
'mappingId'
]);
if
(
empty
(
$yun_result
[
'data'
][
'mappingId'
]))
{
if
(
empty
(
$yun_result
[
'data'
][
'mappingId'
]))
{
$bind
->
unBind
(
$v
[
'phone_x'
],
$v
[
'phone_a'
],
$v
[
'phone_b'
]);
// $bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b']);
$bind
->
unBindTable
(
$v
[
'id'
]);
}
}
}
}
...
...
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