uniqid(), "channel" => $channel, "action" => $action, "data" => $data, "user_id" => $userId ]; $userOnlineInfo = UserService::getInstance()->getOnlineInfo($userId); if(isset($userOnlineInfo["fd"])){ if($userOnlineInfo["fd"]>0){ $server = $userOnlineInfo["server"]; $score = time() + $delay; return Redis::zAdd(self::PUSH_QUEUE_DELAY . ":" . $server, $score, json_encode($value)); }else{ return null; } }else{ return null; } } }