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
b0292e1f
Commit
b0292e1f
authored
Sep 06, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a5ea2508
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
52 deletions
+6
-52
LookShop.php
application/api_broker/controller/LookShop.php
+2
-26
Shop.php
application/api_broker/controller/Shop.php
+0
-3
LookShopService.php
application/api_broker/service/LookShopService.php
+2
-21
AmercementService.php
application/index/service/AmercementService.php
+1
-1
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/LookShop.php
View file @
b0292e1f
...
@@ -161,36 +161,12 @@ class LookShop extends Basic
...
@@ -161,36 +161,12 @@ class LookShop extends Basic
}
}
/**
* 客户浏览记录
* @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();
// $field = 'a.type,a.create_time,b.buyer_nick,b.buyer_img,c.id as user_id';
// $conditions['a.source'] = 1;
// $conditions['a.house_id'] = $params['house_id'];
// $result = $s_look_Shop->getLookShopList($conditions,$field,$pageNo, $pageSize);
// if($result){
// return $this->response("200", "success", $result);
// }else{
// return $this->response("101", "暂无数据", []);
// }
// }
/**
/**
* 客户浏览记录
* 客户浏览记录
* @return \think\Response
* @return \think\Response
*/
*/
public
function
get
LookShopListV2
()
public
function
get
ShopUserVisitLog
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$checkResult
=
$this
->
validate
(
$params
,
"UserLookShopValidate.getLookShopList"
);
$checkResult
=
$this
->
validate
(
$params
,
"UserLookShopValidate.getLookShopList"
);
...
@@ -200,7 +176,7 @@ class LookShop extends Basic
...
@@ -200,7 +176,7 @@ class LookShop extends Basic
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$s_look_Shop
=
new
LookShopService
();
$s_look_Shop
=
new
LookShopService
();
$result
=
$s_look_Shop
->
get
LookShopListV2
(
$params
,
$pageNo
,
$pageSize
);
$result
=
$s_look_Shop
->
get
ShopUserVisitLog
(
$params
,
$pageNo
,
$pageSize
);
if
(
$result
){
if
(
$result
){
return
$this
->
response
(
"200"
,
"success"
,
$result
);
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
}
else
{
...
...
application/api_broker/controller/Shop.php
View file @
b0292e1f
...
@@ -1356,14 +1356,11 @@ class Shop extends Basic
...
@@ -1356,14 +1356,11 @@ class Shop extends Basic
if
(
!
isset
(
$params
[
"house_id"
]))
{
if
(
!
isset
(
$params
[
"house_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
//t_look_shop_user
$lookShopUserModel
=
new
TLookShopUser
();
$lookShopUserModel
=
new
TLookShopUser
();
$where_
[
"house_id"
]
=
$params
[
"house_id"
];
$where_
[
"house_id"
]
=
$params
[
"house_id"
];
// $where_["source"] = 0;
$logArr
=
$lookShopUserModel
->
getLogList
(
$where_
,
"id,user_id,type,house_id,create_time as look_day"
,
$pageNo
,
$pageSize
);
$logArr
=
$lookShopUserModel
->
getLogList
(
$where_
,
"id,user_id,type,house_id,create_time as look_day"
,
$pageNo
,
$pageSize
);
return
$this
->
response
(
"200"
,
"success"
,
$logArr
);
return
$this
->
response
(
"200"
,
"success"
,
$logArr
);
}
}
/**
/**
...
...
application/api_broker/service/LookShopService.php
View file @
b0292e1f
...
@@ -237,26 +237,6 @@ class LookShopService
...
@@ -237,26 +237,6 @@ class LookShopService
}
}
/**
* 客户浏览记录
* @param $conditions
* @param $field
* @param $pageNo
* @param $pageSize
* @return bool
*/
// public function getLookShopList($conditions,$field,$pageNo, $pageSize)
// {
// $m_look_shop = new TLookShopUser();
// $list = $m_look_shop->getLookShopList($conditions, $field, $pageNo, $pageSize);
// if (!$list) {
// return false;
// }
// // $count = $m_look_shop->getLookShopListCount($conditions,$field);
// // $result["list"] = $list;
// // $result["total"] = $count;
// return $list;
// }
/**
/**
* 客户浏览记录
* 客户浏览记录
...
@@ -265,7 +245,7 @@ class LookShopService
...
@@ -265,7 +245,7 @@ class LookShopService
* @param $pageSize
* @param $pageSize
* @return bool|false|\PDOStatement|string|\think\Collection
* @return bool|false|\PDOStatement|string|\think\Collection
*/
*/
public
function
get
LookShopListV2
(
$conditions
,
$pageNo
,
$pageSize
)
public
function
get
ShopUserVisitLog
(
$conditions
,
$pageNo
,
$pageSize
)
{
{
$m_look_shop
=
new
TLookShopUser
();
$m_look_shop
=
new
TLookShopUser
();
$field
=
'a.type,a.user_id,a.create_time,a.source,b.buyer_nick,b.buyer_img,c.id'
;
$field
=
'a.type,a.user_id,a.create_time,a.source,b.buyer_nick,b.buyer_img,c.id'
;
...
@@ -284,6 +264,7 @@ class LookShopService
...
@@ -284,6 +264,7 @@ class LookShopService
}
else
{
}
else
{
$list
[
$k
][
'user_id'
]
=
$v
[
'id'
];
$list
[
$k
][
'user_id'
]
=
$v
[
'id'
];
}
}
unset
(
$list
[
$k
][
'id'
]);
}
}
return
$list
;
return
$list
;
}
}
...
...
application/index/service/AmercementService.php
View file @
b0292e1f
...
@@ -327,7 +327,7 @@ class AmercementService
...
@@ -327,7 +327,7 @@ class AmercementService
//2转已支付
//2转已支付
$this
->
consummationAmercement
(
$id
,
$operation_id
);
$this
->
consummationAmercement
(
$id
,
$operation_id
);
}
}
return
[
'code'
=>
101
,
'msg'
=>
'成功'
];
return
[
'code'
=>
200
,
'msg'
=>
'成功'
];
}
}
/**
/**
...
...
application/route.php
View file @
b0292e1f
...
@@ -942,7 +942,7 @@ Route::group('broker', [
...
@@ -942,7 +942,7 @@ Route::group('broker', [
'getAgentsResidueNumList'
=>
[
'api_broker/LookShop/getAgentsResidueNumList'
,
[
'method'
=>
'get'
]],
//经纪人列表
'getAgentsResidueNumList'
=>
[
'api_broker/LookShop/getAgentsResidueNumList'
,
[
'method'
=>
'get'
]],
//经纪人列表
'getAgentsResidueNumListV2'
=>
[
'api_broker/LookShop/getAgentsResidueNumListV2'
,
[
'method'
=>
'get'
]],
//经纪人列表
'getAgentsResidueNumListV2'
=>
[
'api_broker/LookShop/getAgentsResidueNumListV2'
,
[
'method'
=>
'get'
]],
//经纪人列表
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]],
//设置经纪人的看铺数量
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]],
//设置经纪人的看铺数量
'get
LookShopList'
=>
[
'api_broker/LookShop/getLookShopListV2
'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
'get
ShopUserVisitLog'
=>
[
'api_broker/LookShop/getShopUserVisitLog
'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
'getShopLookList'
=>
[
'api_broker/LookShop/getShopLookList'
,
[
'method'
=>
'POST|GET'
]],
//设置经纪人的看铺数量
'getShopLookList'
=>
[
'api_broker/LookShop/getShopLookList'
,
[
'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