Commit 929aabe2 authored by zhuwei's avatar zhuwei

获取站点列表

parent 69e7d879
<?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
......@@ -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
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment