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
6982583d
Commit
6982583d
authored
Dec 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0f7536d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Broker.php
application/index/controller/Broker.php
+5
-0
AAgents.php
application/model/AAgents.php
+15
-0
No files found.
application/index/controller/Broker.php
View file @
6982583d
...
...
@@ -930,6 +930,11 @@ class Broker extends Basic
if
(
$data
[
'status'
]
==
'fail'
)
{
return
$this
->
response
(
"101"
,
$data
[
'msg'
]);
}
//根据id查经纪人手机号
$m_agent
=
new
AAgents
();
$agnet_phone
=
$m_agent
->
getPhoneById
(
$params
[
'agents_id'
],
'phone'
);
//把手机号相同的账号状态全改
$m_agent
->
updateStatus
(
$agnet_phone
);
//先判断是否已经存在数据
$field
=
'id,status'
;
...
...
application/model/AAgents.php
View file @
6982583d
...
...
@@ -1557,4 +1557,18 @@ class AAgents extends BaseModel
->
select
();
}
public
function
getPhoneById
(
$id
,
$fields
)
{
$return
=
$this
->
where
(
'id'
,
$id
)
->
value
(
$fields
);
return
$return
;
}
public
function
updateStatus
(
$phone
,
$params
=
[
'status'
=>
4
])
{
$result
=
$this
->
where
(
'phone'
,
$phone
)
->
update
(
$params
);
//dump($this->getLastSql());
// big_log($this->getLastSql());
return
$result
;
}
}
\ No newline at end of file
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