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
67334f9b
Commit
67334f9b
authored
Sep 06, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d95a5806
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
LookShop.php
application/api_broker/controller/LookShop.php
+22
-6
LookShopService.php
application/api_broker/service/LookShopService.php
+0
-3
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/LookShop.php
View file @
67334f9b
...
...
@@ -163,7 +163,8 @@ class LookShop extends Basic
/**
* 客户浏览记录
* 客户浏览记录 商铺详情点进去查看哪些客户看了的
* PC后台调
* @return \think\Response
*/
public
function
getShopUserVisitLog
()
...
...
@@ -180,6 +181,25 @@ class LookShop extends Basic
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
/**
* 客户浏览记录 商铺详情点进去查看哪些客户看了的
* APP调
* @return \think\Response
*/
public
function
getLookShopList
()
{
$params
=
$this
->
params
;
$checkResult
=
$this
->
validate
(
$params
,
"UserLookShopValidate.getLookShopList"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$s_look_Shop
=
new
LookShopService
();
$result
=
$s_look_Shop
->
getShopUserVisitLog
(
$params
,
$pageNo
,
$pageSize
);
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
/**
* 我的看铺记录
* @return \think\Response
...
...
@@ -195,11 +215,7 @@ class LookShop extends Basic
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$s_look_Shop
=
new
LookShopService
();
$result
=
$s_look_Shop
->
getShopLookList
(
$params
[
'user_id'
],
$pageNo
,
$pageSize
);
if
(
$result
){
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
return
$this
->
response
(
"101"
,
"暂无数据"
,
[]);
}
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
...
...
application/api_broker/service/LookShopService.php
View file @
67334f9b
...
...
@@ -290,9 +290,6 @@ class LookShopService
$field
=
'a.type,a.create_time,a.house_id'
;
$m_look_shop
=
new
TLookShopUser
();
$list
=
$m_look_shop
->
getLookShopList
(
$conditions
,
$field
,
$pageNo
,
$pageSize
);
if
(
!
$list
)
{
return
false
;
}
return
$list
;
}
...
...
application/route.php
View file @
67334f9b
...
...
@@ -945,6 +945,7 @@ Route::group('broker', [
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]],
//设置经纪人的看铺数量
'getShopUserVisitLog'
=>
[
'api_broker/LookShop/getShopUserVisitLog'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
'getShopLookList'
=>
[
'api_broker/LookShop/getShopLookList'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
'getLookShopList'
=>
[
'api_broker/LookShop/getLookShopList'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
//首页跟进记录
'userFollowUpList'
=>
[
'api_broker/HomePageLog/userFollowUpList'
,
[
'method'
=>
'post|get'
]],
...
...
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