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
947a5017
Commit
947a5017
authored
May 13, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bb0f3e42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
5 deletions
+44
-5
VerifyService.php
application/api_broker/service/VerifyService.php
+40
-5
LookShop.php
application/index/controller/LookShop.php
+4
-0
No files found.
application/api_broker/service/VerifyService.php
View file @
947a5017
...
@@ -24,7 +24,10 @@ class VerifyService
...
@@ -24,7 +24,10 @@ class VerifyService
/**
/**
* 经纪人身份验证 获取经纪人
* 经纪人身份验证 获取经纪人
* @param $agent_id
* @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
)
public
function
getAgentsByAgentId
(
$agent_id
)
{
{
...
@@ -59,6 +62,14 @@ class VerifyService
...
@@ -59,6 +62,14 @@ class VerifyService
return
null
;
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
)
public
function
getAgentsByAgentIdAndType
(
$agent_id
,
$type
)
{
{
$params
[
"id"
]
=
$agent_id
;
$params
[
"id"
]
=
$agent_id
;
...
@@ -177,6 +188,15 @@ class VerifyService
...
@@ -177,6 +188,15 @@ class VerifyService
return
null
;
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
)
public
function
getAgentsByAgentIdPcInfo
(
$id
,
$type
)
{
{
$arr_list
=
[];
$arr_list
=
[];
...
@@ -207,7 +227,10 @@ class VerifyService
...
@@ -207,7 +227,10 @@ class VerifyService
/**
/**
* 获取我的案场权限人
* 获取我的案场权限人
* @param $agent_id
* @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
)
public
function
getCaseHouseIdByAgentId
(
$agent_id
)
{
{
...
@@ -228,7 +251,10 @@ class VerifyService
...
@@ -228,7 +251,10 @@ class VerifyService
/**
/**
* 获取我的案场权限人,盘方和独家
* 获取我的案场权限人,盘方和独家
* @param $agent_id
* @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
)
public
function
getCaseHouseIdByAgentIdV2
(
$agent_id
)
{
{
...
@@ -249,7 +275,10 @@ class VerifyService
...
@@ -249,7 +275,10 @@ class VerifyService
/**
/**
* 获取我的盘方和独家
* 获取我的盘方和独家
* @param $agent_id
* @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
)
public
function
getPanpartyAndExclusiveHouseIdByAgentId
(
$agent_id
)
{
{
...
@@ -270,7 +299,10 @@ class VerifyService
...
@@ -270,7 +299,10 @@ class VerifyService
/**
/**
* 获取我的盘方 楼盘
* 获取我的盘方 楼盘
* @param $agent_id
* @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
)
public
function
getPanpartyByAgentId
(
$agent_id
)
{
{
...
@@ -295,6 +327,9 @@ class VerifyService
...
@@ -295,6 +327,9 @@ class VerifyService
* 获取盘方经纪人ids
* 获取盘方经纪人ids
* @param $house_id
* @param $house_id
* @return false|\PDOStatement|string|\think\Collection
* @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
)
public
function
getPanpartyAgentsByHouseId
(
$house_id
)
{
{
...
...
application/index/controller/LookShop.php
View file @
947a5017
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
* Intro:
* Intro:
*/
*/
use
app\api_broker\service\VerifyService
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\TLookShopModel
;
use
app\model\TLookShopModel
;
use
app\model\TLookShopUser
;
use
app\model\TLookShopUser
;
...
@@ -85,9 +86,12 @@ class LookShop extends Basic
...
@@ -85,9 +86,12 @@ class LookShop extends Basic
"user_id" => 11,
"user_id" => 11,
"user_name" => "",
"user_name" => "",
"user_phone" => "",
"user_phone" => "",
"agent_id" => 123,
"page_no" => 1,
"page_no" => 1,
"page_size" => 15
"page_size" => 15
);*/
);*/
//验证权限
$verifyAgent
=
new
VerifyService
();
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
25
:
$params
[
'page_size'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
25
:
$params
[
'page_size'
];
...
...
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