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
86e31aa7
Commit
86e31aa7
authored
Aug 24, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
70cbba42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
LookShopService.php
application/api_broker/service/LookShopService.php
+6
-3
No files found.
application/api_broker/service/LookShopService.php
View file @
86e31aa7
...
@@ -56,13 +56,13 @@ class LookShopService
...
@@ -56,13 +56,13 @@ class LookShopService
if
(
!
$this
->
redis
)
{
if
(
!
$this
->
redis
)
{
return
[];
return
[];
}
}
//todo 过滤掉店长以上的经纪人
//todo 过滤掉店长以上的经纪人
0824所有的都看铺限制
$agentInfo
=
$this
->
agentsModel
->
getAgentById
(
"id,level"
,
[
"agent_id"
=>
$agent_id
]);
/*
$agentInfo = $this->agentsModel->getAgentById("id,level", [ "agent_id" => $agent_id ]);
Log::record('info ----countLookShopNum-------' . json_encode($agentInfo), "info");
Log::record('info ----countLookShopNum-------' . json_encode($agentInfo), "info");
if ($agentInfo && $agentInfo[0]["level"] > 10) {
if ($agentInfo && $agentInfo[0]["level"] > 10) {
Log::record('info ----countLookShopNum------123-', "info");
Log::record('info ----countLookShopNum------123-', "info");
return [];
return [];
}
}
*/
//过滤掉盘方为自己的
//过滤掉盘方为自己的
$params
[
"houses_id"
]
=
$house_id
;
$params
[
"houses_id"
]
=
$house_id
;
$params
[
"agents_id"
]
=
$agent_id
;
$params
[
"agents_id"
]
=
$agent_id
;
...
@@ -183,6 +183,9 @@ class LookShopService
...
@@ -183,6 +183,9 @@ class LookShopService
return
false
;
return
false
;
}
}
$agentUpNum
=
$this
->
redis
->
hGet
(
self
::
LOOK_UP_NUM
.
$this
->
nowTime
,
$agent_id
);
$agentUpNum
=
$this
->
redis
->
hGet
(
self
::
LOOK_UP_NUM
.
$this
->
nowTime
,
$agent_id
);
if
(
$agentUpNum
>=
1
){
return
false
;
}
$upLookNum
=
(
int
)
$agentUpNum
+
1
;
$upLookNum
=
(
int
)
$agentUpNum
+
1
;
$this
->
redis
->
hSet
(
self
::
LOOK_UP_NUM
.
$this
->
nowTime
,
$agent_id
,
$upLookNum
);
$this
->
redis
->
hSet
(
self
::
LOOK_UP_NUM
.
$this
->
nowTime
,
$agent_id
,
$upLookNum
);
return
true
;
return
true
;
...
...
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