Commit 7fc5c153 authored by hujun's avatar hujun

//

parent 58438bad
...@@ -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
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