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
88dfd1c9
Commit
88dfd1c9
authored
Jun 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参数
parent
2ca2a78b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CellPhone.php
application/api_broker/controller/CellPhone.php
+2
-1
AliYunPhone.php
application/model/AliYunPhone.php
+1
-1
No files found.
application/api_broker/controller/CellPhone.php
View file @
88dfd1c9
...
@@ -84,9 +84,10 @@ class CellPhone extends Basic
...
@@ -84,9 +84,10 @@ class CellPhone extends Basic
$this
->
data
=
[
'phone'
=>
$phone_x
[
'phone_x'
]];
$this
->
data
=
[
'phone'
=>
$phone_x
[
'phone_x'
]];
}
else
{
}
else
{
$phone_x_array
=
[];
//尝试5次绑定
//尝试5次绑定
for
(
$i
=
1
;
$i
<
5
;
$i
++
)
{
for
(
$i
=
1
;
$i
<
5
;
$i
++
)
{
$phone_x
=
$aliYunPhone
->
getAliYunPhone
(
$phone_a
,
$phone_b
,
$setting
[
'is_privacy'
],
$phone_x
);
$phone_x
=
$aliYunPhone
->
getAliYunPhone
(
$phone_a
,
$phone_b
,
$setting
[
'is_privacy'
],
$phone_x
_array
);
$result
=
PlsDemo
::
bindAxb
(
$phone_a
,
$phone_b
,
$time
,
$record
,
$phone_x
);
//再尝试一下
$result
=
PlsDemo
::
bindAxb
(
$phone_a
,
$phone_b
,
$time
,
$record
,
$phone_x
);
//再尝试一下
if
(
$result
->
Message
==
'OK'
)
{
if
(
$result
->
Message
==
'OK'
)
{
$aliYunPhone
->
editStatus
(
$phone_x
,
$phone_a
,
$phone_b
,
$record
,
$time
,
$result
,
''
,
$setting
[
'is_privacy'
]);
//记录绑定
$aliYunPhone
->
editStatus
(
$phone_x
,
$phone_a
,
$phone_b
,
$record
,
$time
,
$result
,
''
,
$setting
[
'is_privacy'
]);
//记录绑定
...
...
application/model/AliYunPhone.php
View file @
88dfd1c9
...
@@ -27,7 +27,7 @@ class AliYunPhone extends BaseModel
...
@@ -27,7 +27,7 @@ class AliYunPhone extends BaseModel
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
getAliYunPhone
(
$phone_a
,
$phone_b
,
$type
=
1
,
array
$phone_x
=
[])
{
public
function
getAliYunPhone
(
$phone_a
,
$phone_b
,
$type
=
1
,
$phone_x
=
[])
{
//找到phone_a和phone_b出现在两个字段中
//找到phone_a和phone_b出现在两个字段中
$where_bind
[]
=
[
'EXP'
,
"(a.phone_a='
{
$phone_a
}
' or a.phone_b='
{
$phone_a
}
') or (a.phone_a='
{
$phone_b
}
' or a.phone_b='
{
$phone_b
}
')"
];
$where_bind
[]
=
[
'EXP'
,
"(a.phone_a='
{
$phone_a
}
' or a.phone_b='
{
$phone_a
}
') or (a.phone_a='
{
$phone_b
}
' or a.phone_b='
{
$phone_b
}
')"
];
$where_bind
[
'a.status'
]
=
1
;
$where_bind
[
'a.status'
]
=
1
;
...
...
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