Commit 67334f9b authored by zhuwei's avatar zhuwei

1

parent d95a5806
......@@ -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);
}
......
......@@ -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;
}
......
......@@ -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']],
......
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