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
bb97147c
Commit
bb97147c
authored
May 12, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis
parent
bd423d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
SaveLookShopHistoryTask.php
application/task/controller/SaveLookShopHistoryTask.php
+40
-0
No files found.
application/task/controller/SaveLookShopHistoryTask.php
0 → 100644
View file @
bb97147c
<?php
namespace
app\task\controller
;
use
app\extra\RedisExt
;
use
RedisException
;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/5/9
* Time : 下午4:45
* Intro:
*/
class
SaveLookShopHistoryTask
{
private
$redis
;
private
$date_
;
const
LOOK_SHOP
=
"look_shop_"
;
//存入已看的楼盘id
const
LOOK_TOTAL
=
"look_total_"
;
//记录每个经纪人的看铺总数
function
__construct
()
{
try
{
$this
->
redis
=
RedisExt
::
getRedis
();
}
catch
(
RedisException
$exception
)
{
$this
->
redis
=
false
;
}
$this
->
date_
=
date
(
"Y-m-d"
,
strtotime
(
"-1 day"
));
}
public
function
saveLookShop
(){
//todo 1.拿到每个经纪人的看铺记录 2.根据看铺记录统计出已看铺数量,3.根据经纪人id 拿到可看铺总数
//$this->redis->sAdd(self::LOOK_SHOP . $this->nowTime . $agent_id, $house_id);//存入楼盘信息
}
}
\ No newline at end of file
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