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
6548ee14
Commit
6548ee14
authored
Dec 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9bd8fd70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+5
-3
No files found.
application/task/controller/PrivacyNumber.php
View file @
6548ee14
...
...
@@ -587,16 +587,18 @@ class PrivacyNumber
* 处理经纪人号码用完释放
*/
public
function
delBindPhone
()
{
Request
::
instance
()
->
get
();
if
(
empty
(
$_GET
[
'phone_a'
])
||
empty
(
$_GET
[
'start_time'
])
||
empty
(
$_GET
[
'end_time'
]))
{
die
(
'参数错误'
);
}
$where
[
'phone_a'
]
=
$_GET
[
'phone_a'
];
$start_time
=
date
(
'Y-m-d'
,
strtotime
(
$_GET
[
'start_time'
]));
$end_time
=
date
(
'Y-m-d'
,
strtotime
(
$_GET
[
'end_time'
]));
$where
[
'a.create_time'
]
=
[
'between'
,
[
$start_time
.
' 00:00:00'
,
$end_time
.
' 23:59:59'
]];
$data
=
$this
->
m_bind
->
getBindingPhoneList
(
'a.phone_a,a.phone_b,b.phone_x,
b
.subsId'
,
$where
);
$data
=
$this
->
m_bind
->
getBindingPhoneList
(
'a.phone_a,a.phone_b,b.phone_x,
a
.subsId'
,
$where
);
$key
=
0
;
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
$agent_where
[
'phone'
]
=
$v
[
'phone_a'
];
$agent_where
[
'status'
]
=
0
;
$agent_id
=
$this
->
m_agent
->
getAgentsByWhere
(
$agent_where
,
'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