Commit d3f6a5d4 authored by hujun's avatar hujun

edit

parent 65f2fa65
...@@ -354,4 +354,18 @@ class Broker extends Basic ...@@ -354,4 +354,18 @@ class Broker extends Basic
$token = $jwt->createToken($phone); $token = $jwt->createToken($phone);
return $this->response(200, "", ['AuthToken'=>$token]); return $this->response(200, "", ['AuthToken'=>$token]);
} }
/**
* 获取用户信息
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsByPhone() {
$data = $this->a_agents->getInfo($this->params['phone']);
$data['openid'] = "";
return $this->response(200, "", $data);
}
} }
\ No newline at end of file
...@@ -35,7 +35,6 @@ class CellPhone extends Basic ...@@ -35,7 +35,6 @@ class CellPhone extends Basic
$phone_a = $this->params['phone_a'];//经纪人手机号 $phone_a = $this->params['phone_a'];//经纪人手机号
$phone_b = $this->params['phone_b'];//客户手机号 $phone_b = $this->params['phone_b'];//客户手机号
$record = empty($this->params['record']) ? true : false; //是否录音 $record = empty($this->params['record']) ? true : false; //是否录音
$aliYunPhone = new AliYunPhone(); $aliYunPhone = new AliYunPhone();
$bind = new BindingPhone(); $bind = new BindingPhone();
$field = 'phone_x'; $field = 'phone_x';
......
...@@ -273,6 +273,7 @@ Route::group('broker', [ ...@@ -273,6 +273,7 @@ Route::group('broker', [
'getShopDetail' => ['api_broker/Shop/getShopDetail', [ 'method' => 'get' ] ], 'getShopDetail' => ['api_broker/Shop/getShopDetail', [ 'method' => 'get' ] ],
'reportList' => ['api_broker/Report/reportList', [ 'method' => 'get' ] ], 'reportList' => ['api_broker/Report/reportList', [ 'method' => 'get' ] ],
'token' => ['api_broker/broker/token', [ 'method' => 'get' ] ], 'token' => ['api_broker/broker/token', [ 'method' => 'get' ] ],
'getAgentsByPhone' => ['api_broker/broker/getAgentsByPhone', [ 'method' => 'get' ] ],
]); ]);
......
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