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
81a5dad8
Commit
81a5dad8
authored
Jun 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解绑处理
parent
68191517
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
CellPhone.php
application/api_broker/controller/CellPhone.php
+1
-1
BindingPhone.php
application/model/BindingPhone.php
+7
-3
No files found.
application/api_broker/controller/CellPhone.php
View file @
81a5dad8
...
...
@@ -84,7 +84,7 @@ class CellPhone extends Basic
$this
->
data
=
[
'phone'
=>
$phone_x
[
'phone_x'
]];
}
else
{
$phone_x_array
=
[
];
$phone_x_array
[]
=
$phone_x
[
'phone_x'
];
//尝试5次绑定
for
(
$i
=
1
;
$i
<
5
;
$i
++
)
{
$phone_x
=
$aliYunPhone
->
getAliYunPhone
(
$phone_a
,
$phone_b
,
$setting
[
'is_privacy'
],
$phone_x_array
);
...
...
application/model/BindingPhone.php
View file @
81a5dad8
...
...
@@ -28,16 +28,20 @@ class BindingPhone extends BaseModel
$where
[
'a.status'
]
=
$status
;
if
(
$phone_a
)
{
$where
[
'phone_a'
]
=
$phone_a
;
$where
[
'
a.
phone_a'
]
=
$phone_a
;
}
if
(
$phone_b
){
$where
[
'phone_b'
]
=
$phone_b
;
$where
[
'
a.
phone_b'
]
=
$phone_b
;
}
if
(
$phone_x
)
{
$where
[
'b.phone_x'
]
=
$phone_x
;
}
$subsId
=
$this
->
alias
(
'a'
)
->
join
(
'aliYun_phone b'
,
'a.aliYun_phone_id=b.id'
,
'left'
)
->
where
(
$where
)
->
value
(
$phoneId
);
}
else
{
$subsId
=
false
;
}
...
...
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