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
ec152cba
Commit
ec152cba
authored
Jul 31, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
0c952f52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
SaveLookShopHistoryTask.php
application/task/controller/SaveLookShopHistoryTask.php
+2
-3
No files found.
application/task/controller/SaveLookShopHistoryTask.php
View file @
ec152cba
...
@@ -43,18 +43,17 @@ class SaveLookShopHistoryTask
...
@@ -43,18 +43,17 @@ class SaveLookShopHistoryTask
public
function
saveLookShop
()
public
function
saveLookShop
()
{
{
if
(
!
$this
->
redis
)
{
if
(
!
$this
->
redis
)
{
return
false
;
return
;
}
}
$day
=
date
(
"Y-m-d"
,
time
());
$day
=
date
(
"Y-m-d"
,
time
());
if
(
$this
->
redis
->
get
(
"run_save_look"
.
$day
))
{
if
(
$this
->
redis
->
get
(
"run_save_look"
.
$day
))
{
return
false
;
return
;
}
}
$this
->
redis
->
set
(
"run_save_look"
.
$day
,
1
,
24
*
3600
);
$this
->
redis
->
set
(
"run_save_look"
.
$day
,
1
,
24
*
3600
);
//todo 1.拿到每个经纪人的看铺记录 2.根据看铺记录统计出已看铺数量,3.根据经纪人id 拿到可看铺总数
//todo 1.拿到每个经纪人的看铺记录 2.根据看铺记录统计出已看铺数量,3.根据经纪人id 拿到可看铺总数
$total
=
$this
->
agentsModel
->
getAgentsCountByTask
();
$total
=
$this
->
agentsModel
->
getAgentsCountByTask
();
$pageSize
=
100
;
$pageSize
=
100
;
$pageTotal
=
ceil
(
$total
/
$pageSize
);
$pageTotal
=
ceil
(
$total
/
$pageSize
);
for
(
$pageNo
=
1
;
$pageNo
<=
$pageTotal
;
$pageNo
++
)
{
for
(
$pageNo
=
1
;
$pageNo
<=
$pageTotal
;
$pageNo
++
)
{
...
...
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