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
4469ffa6
Commit
4469ffa6
authored
Dec 22, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取经纪人列表
parent
e2bd8d3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
Broker.php
application/api/controller/Broker.php
+1
-1
Broker.php
application/index/controller/Broker.php
+49
-0
No files found.
application/api/controller/Broker.php
View file @
4469ffa6
...
...
@@ -99,7 +99,7 @@ class Broker extends Basic{
$evaluate
=
new
Evaluate
();
$evaluate
->
save
([
'user_id'
=>
$
params
[
'user_id'
]
,
'user_id'
=>
$
this
->
userId
,
'agents_id'
=>
$params
[
'agents_id'
],
'source'
=>
$params
[
'source'
],
'record_id'
=>
$params
[
'record_id'
],
...
...
application/index/controller/Broker.php
0 → 100644
View file @
4469ffa6
<?php
/**
* Created by PhpStorm.
* User: fuju
* Date: 2017/12/22
* Time: 14:44
*/
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\model\Agents
;
class
Broker
extends
Basic
{
/**
* 获取经纪人列表
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getBroker
()
{
$data
[
'status'
]
=
200
;
$data
[
'data'
]
=
''
;
$data
[
'code'
]
=
''
;
$data
[
'msg'
]
=
''
;
$house_id
=
$this
->
request
->
param
(
'house_id'
);
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
if
(
$house_id
)
{
$agent
=
new
Agents
();
$field
=
'father_id,realname,phone'
;
$params
=
''
;
$data
[
'data'
]
=
$agent
->
getAgents
(
$pageNo
,
$pageSize
,
''
,
$field
,
$params
,
$house_id
);
}
else
{
$data
[
'msg'
]
=
'没有该楼盘信息'
;
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
\ 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