Commit 947a5017 authored by clone's avatar clone

1

parent bb0f3e42
......@@ -24,7 +24,10 @@ class VerifyService
/**
* 经纪人身份验证 获取经纪人
* @param $agent_id
* @return null|string
* @return string|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsByAgentId($agent_id)
{
......@@ -59,6 +62,14 @@ class VerifyService
return null;
}
/**
* @param $agent_id
* @param $type
* @return string|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsByAgentIdAndType($agent_id,$type)
{
$params["id"] = $agent_id;
......@@ -177,6 +188,15 @@ class VerifyService
return null;
}
/**
* @param $id
* @param $type
* @return string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsByAgentIdPcInfo($id, $type)
{
$arr_list = [];
......@@ -207,7 +227,10 @@ class VerifyService
/**
* 获取我的案场权限人
* @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getCaseHouseIdByAgentId($agent_id)
{
......@@ -228,7 +251,10 @@ class VerifyService
/**
* 获取我的案场权限人,盘方和独家
* @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getCaseHouseIdByAgentIdV2($agent_id)
{
......@@ -249,7 +275,10 @@ class VerifyService
/**
* 获取我的盘方和独家
* @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getPanpartyAndExclusiveHouseIdByAgentId($agent_id)
{
......@@ -270,7 +299,10 @@ class VerifyService
/**
* 获取我的盘方 楼盘
* @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection
* @return string|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getPanpartyByAgentId($agent_id)
{
......@@ -295,6 +327,9 @@ class VerifyService
* 获取盘方经纪人ids
* @param $house_id
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getPanpartyAgentsByHouseId($house_id)
{
......
......@@ -10,6 +10,7 @@ namespace app\index\controller;
* Intro:
*/
use app\api_broker\service\VerifyService;
use app\index\extend\Basic;
use app\model\TLookShopModel;
use app\model\TLookShopUser;
......@@ -85,9 +86,12 @@ class LookShop extends Basic
"user_id" => 11,
"user_name" => "",
"user_phone" => "",
"agent_id" => 123,
"page_no" => 1,
"page_size" => 15
);*/
//验证权限
$verifyAgent = new VerifyService();
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
$pageSize = empty($params['page_size']) ? 25 : $params['page_size'];
......
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