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
7fc5c153
Commit
7fc5c153
authored
Sep 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
//
parent
58438bad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
UserLogService.php
application/index/service/UserLogService.php
+9
-8
No files found.
application/index/service/UserLogService.php
View file @
7fc5c153
...
@@ -562,16 +562,16 @@ class UserLogService
...
@@ -562,16 +562,16 @@ class UserLogService
}
}
$m_look_user
=
new
TLookAgentUserModel
();
$m_look_user
=
new
TLookAgentUserModel
();
$redis_ext
=
RedisExt
::
getRedis
();
//
$redis_ext = RedisExt::getRedis();
$key
=
't_look_agent_user_'
.
$agent_id
.
'_'
.
$user_id
;
//
$key = 't_look_agent_user_' . $agent_id.'_'.$user_id;
$num
=
$redis_ext
->
get
(
$key
);
//
$num = $redis_ext->get($key);
if
(
empty
(
$num
))
{
//
if (empty($num)) {
$id
=
$m_look_user
->
insertData
(
$user_id
,
$agent_id
,
$source
);
$id
=
$m_look_user
->
insertData
(
$user_id
,
$agent_id
,
$source
);
$today_time
=
strtotime
(
date
(
'Y-m-d'
)
.
' 23:59:59'
)
-
time
();
//到0点剩余时间
//
$today_time = strtotime(date('Y-m-d') . ' 23:59:59') - time(); //到0点剩余时间
$redis_ext
->
set
(
$key
,
$id
,
$today_time
);
//
$redis_ext->set($key, $id, $today_time);
}
//
}
return
true
;
return
$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