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
929aabe2
Commit
929aabe2
authored
Oct 18, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取站点列表
parent
69e7d879
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
Site.php
application/api_broker/controller/Site.php
+50
-0
route.php
application/route.php
+3
-0
No files found.
application/api_broker/controller/Site.php
0 → 100644
View file @
929aabe2
<?php
namespace
app\api_broker\controller
;
/**
* Created by PhpStorm.
* User: zhuwei
* Date:2018-10-18
* Time:10:50:55
*/
use
app\api_broker\extend\Basic
;
use
app\model\ASite
;
use
think\Request
;
class
Site
extends
Basic
{
protected
$aSite
;
public
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
aSite
=
new
ASite
();
}
/**
* 获取站点列表
* User: 朱伟
* Date:2018-10-18
* Time:10:50:55
*/
public
function
getSiteList
()
{
$params
=
$this
->
params
;
/*$params = array(
"id" => 5740
);*/
$field
=
'id,name,city'
;
$get_params
[
'is_del'
]
=
0
;
$res
=
$this
->
aSite
->
getSite
(
$field
,
$params
);
$data
[
'list'
]
=
$res
;
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
}
\ No newline at end of file
application/route.php
View file @
929aabe2
...
...
@@ -640,6 +640,9 @@ Route::group('broker', [
'addUserCallAgent'
=>
[
'api_broker/CallAgent/addUserCallAgent'
,
[
'method'
=>
'POST|GET'
]
],
//客户来电记录
//站点相关
'getSiteList'
=>
[
'api_broker/Site/getSiteList'
,
[
'method'
=>
'POST|GET'
]
],
//获取站点列表 朱伟 2018-10-18
]);
...
...
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