1
This commit is contained in:
parent
f68a8438c1
commit
056de43bc7
@ -55,15 +55,6 @@ class UserImOffDelayDirectConsumer extends ConsumerMessage
|
|||||||
return Result::ACK;
|
return Result::ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取缓存
|
|
||||||
$redis = $this->container->get(Redis::class);
|
|
||||||
$redis_key = "user_im_online_" . $data['user_id'];
|
|
||||||
$res = $redis->get($redis_key);
|
|
||||||
if ($res){
|
|
||||||
Log::getInstance("queue-UserImOff")->info("用户刚上线未满30分钟,无需处理");
|
|
||||||
return Result::ACK;
|
|
||||||
}
|
|
||||||
|
|
||||||
$im_login_at = strtotime($user['im_login_at']);
|
$im_login_at = strtotime($user['im_login_at']);
|
||||||
|
|
||||||
$diff_time = time() - $im_login_at;
|
$diff_time = time() - $im_login_at;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user