CN112587933A - Real-time online PK method, device, server and storage medium for spinning - Google Patents

Real-time online PK method, device, server and storage medium for spinning Download PDF

Info

Publication number
CN112587933A
CN112587933A CN202011600374.9A CN202011600374A CN112587933A CN 112587933 A CN112587933 A CN 112587933A CN 202011600374 A CN202011600374 A CN 202011600374A CN 112587933 A CN112587933 A CN 112587933A
Authority
CN
China
Prior art keywords
room
request
real
competition
spinning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011600374.9A
Other languages
Chinese (zh)
Inventor
秦星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Cloth Bag Health Management Co ltd
Original Assignee
Nanjing Cloth Bag Health Management Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Cloth Bag Health Management Co ltd filed Critical Nanjing Cloth Bag Health Management Co ltd
Priority to CN202011600374.9A priority Critical patent/CN112587933A/en
Publication of CN112587933A publication Critical patent/CN112587933A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/795Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for finding other players; for building a team; for providing a buddy list
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B22/00Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements
    • A63B22/06Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with support elements performing a rotating cycling movement, i.e. a closed path movement
    • A63B22/0605Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with support elements performing a rotating cycling movement, i.e. a closed path movement performing a circular movement, e.g. ergometers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/843Special adaptations for executing a specific game genre or game mode involving concurrently two or more players on the same game device, e.g. requiring the use of a plurality of controllers or of a specific view of game data for each player
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management

Abstract

The invention discloses a real-time online PK method, a real-time online PK device, a server and a storage medium for a spinning, and relates to the technical field of fitness equipment of the Internet of things, wherein the real-time online PK method for the spinning comprises the following steps: receiving a competition system instruction and a PK request; constructing a PK room based on the PK request; monitoring riding data, and updating PK data of a room in real time; check the PK room race status and push the race status or race results. Different from the existing fitness products based on the Internet of things, the invention connects different users using the spinning based on the Internet of things together, so that different users can perform interactive competition on the Internet, such as competition in a random matching mode or competition in an online user invitation mode, the users can interact online while exercising, and the interactive experience and entertainment experience of the users when using the spinning are improved.

Description

Real-time online PK method, device, server and storage medium for spinning
Technical Field
The invention relates to the technical field of fitness equipment of the Internet of things, in particular to a real-time online PK method, a real-time online PK device, a real-time online PK server and a real-time online PK storage medium for a spinning.
Background
At present, fitness products of the Internet of things are mature from equipment to services, but most research and development modes of similar products on the market are close to the traditional fitness mode, namely, a fitness room type isolation fitness environment is constructed on line through integrating fragment time, but few people solve the problems existing in the traditional fitness mode. From the angle of the new platform of the internet of things technology, the body building industry is newly researched and researched, and the problems that the time cost is high, the process is dull and the body building experience is greatly improved in the traditional body building mode can be found. On one hand, the physical space limitation can be broken through by the technology of the internet of things; on the other hand, a more convenient interaction mode can be provided for the user during body building, and body building experience is improved. However, the existing fitness bicycle with internet of things does not have a real-time online PK function for improving user interaction experience and entertainment experience.
Disclosure of Invention
Therefore, the invention provides a real-time online PK method, a real-time online PK device, a real-time online PK server and a storage medium for a spinning, and aims to solve the problem that the existing fitness bicycle of the Internet of things does not have a real-time online PK function for improving user interaction experience and entertainment experience.
In order to achieve the above purpose, the invention provides the following technical scheme:
in a first aspect of the present invention, a spinning real-time online PK method comprises:
receiving a competition system instruction and a PK request;
constructing a PK room based on the PK request;
monitoring riding data, and updating PK data of a room in real time;
check the PK room race status and push the race status or race results.
Further, the constructing a PK room based on PK requests specifically includes:
it is determined that the PK request is a PK match request,
querying the platform database for stored data; the stored data is the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system;
arranging to obtain an effective request unit, and storing the effective request unit in a PK request Redis queue; the effective request unit is obtained based on the competition system information, the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system;
performing a user dequeue check; if the PK request Redis queue has a request to be matched, reading a matching item, and matching successfully; if the PK request Redis queue does not have a request to be matched, re-executing user dequeuing check;
displaying a PK matching result; if the result of successful matching is PK between users, directly displaying a PK matching result; if the result of successful matching is a single user, distributing simulation training, and then displaying a PK matching result;
and constructing a PK room according to the PK matching result, and caching the PK room to form a PK room Redis cache database.
Further, the constructing a PK room based on PK requests specifically includes:
determine the PK request is PK invite:
receiving an instruction that an invited user accepts the PK invitation, and displaying a PK invitation result; if the platform does not receive the instruction that the invited user accepts the PK invitation, the platform re-receives the PK invitation sent by the user until the instruction that the invited user accepts the PK invitation is received;
and constructing a PK room according to the PK invitation result, and caching the PK room to form a PK room Redis cache database.
Further, the monitoring of the riding data and the real-time updating of the PK data of the room specifically include:
monitoring riding data of users of both parties;
receiving new riding data;
the new room PK data is followed in the PK room Redis cache database.
Further, the checking of the PK room race status and the pushing of the race status or the race result specifically includes:
checking the PK room match state at a fixed frequency from a PK room Redis cache database;
judging whether the competition is finished or not, and if not, pushing the competition state to the PK user; and if the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the PK user.
In a second aspect of the invention, the invention provides a real-time online PK device of a spinning, which comprises a riding data acquisition unit, a human-computer interaction unit, a PK room processing unit and a PK state pushing unit, wherein the riding data acquisition unit is used for acquiring riding data;
the riding data acquisition unit is used for acquiring riding data;
the human-computer interaction unit is used for receiving a competition system instruction and a PK request, displaying a PK matching result or a PK invitation result, and displaying a competition state or a competition result;
the PK room processing unit is used for: constructing a PK room based on the PK request; monitoring riding data, and updating PK data of a room in real time;
the PK state pushing unit is used for: checking the PK room match state at a fixed frequency from a PK room Redis cache database; if the match is not finished, pushing the match state to the man-machine interaction unit; and after the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the human-computer interaction unit.
Further, when the PK room processing unit receives a PK match request, the following operations are specifically performed:
querying the platform database for stored data; the stored data is the similarity between the current posture of the user who sends out the PK matching request and the standard posture and the historical battle performance score of the PK of the user in the competition system;
arranging to obtain an effective request unit, and storing the effective request unit in a PK request Redis queue; the effective request unit is obtained based on the competition system information, the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system;
performing a user dequeue check; if the PK request Redis queue has a request to be matched, reading a matching item, and matching successfully; if the PK request Redis queue does not have a request to be matched, re-executing user dequeuing check;
if the result of successful matching is PK between users, directly pushing a PK matching result to the human-computer interaction unit; if the result of successful matching is a single user, distributing simulated training, and then pushing a PK matching result to the human-computer interaction unit;
and constructing a PK room according to the PK matching result, and caching the PK room to form a PK room Redis cache database.
Further, when the PK room processing unit receives a PK invitation, specifically perform the following operations:
receiving a PK invitation receiving instruction of an invited user, and pushing a PK invitation result to a human-computer interaction unit; if the instruction that the invited user accepts the PK invitation is not received, re-receiving the PK invitation sent by the user until the instruction that the invited user accepts the PK invitation is received;
and constructing a PK room according to the PK invitation result, and caching the PK room to form a PK room Redis cache database.
In a third aspect of the present invention, a spinning real-time online PK server comprises a processor and a memory; the memory is used for storing the program of the real-time online PK method for the spinning according to the first aspect of the present invention, and the server is used for executing the method according to the first aspect of the present invention after being powered on and running the program of the real-time online PK method for the spinning through the processor.
In a fourth aspect of the present invention, a real-time online PK storage medium for a spinning is stored with a program of the real-time online PK method for a spinning according to the first aspect of the present invention, wherein the program executes the method according to the first aspect of the present invention when running.
The invention has the following advantages:
the user sends out a PK request, the platform constructs a PK room based on the PK request, and after the PK room is constructed, the user can play a competition and can check the competition state and the competition result. Different from the existing fitness products based on the Internet of things, the invention connects different users using the spinning based on the Internet of things together, so that different users can perform interactive competition on the Internet, such as competition in a random matching mode or competition in an online user invitation mode, the users can interact online while exercising, and the interactive experience and entertainment experience of the users when using the spinning are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
FIG. 1 is a matching flow chart of a spinning real-time online PK method under a free matching PK method;
FIG. 2 is a PK flow diagram of a real-time online PK method for a spinning;
FIG. 3 is a PK flow interaction sequence diagram of a spinning real-time online PK method under a free matching PK method;
FIG. 4 is a flow chart of the user's operation under the free matching PK method;
FIG. 5 is a flowchart of the operation of the user in the invite user PK method;
FIG. 6 is a flow chart of a second spinning real-time online PK method;
fig. 7 is a flowchart of a third spinning real-time online PK method;
fig. 8 is a schematic diagram of a spinning real-time online PK device;
fig. 9 is a schematic diagram of a spinning real-time online PK server.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A real-time online PK method for a spinning comprises a user free matching PK method and a user invitation PK method.
As shown in fig. 1, 2 and 3, the spinning real-time online PK method under the PK method for freely matching by a user starts from a sequence of user use and platform internal processing, and includes the following steps:
the user selects the race system and issues a PK match request.
The stored data is queried at the platform database. Wherein the stored data is the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system.
And arranging the effective request units to be stored in a PK request Redis queue. The effective request unit is obtained based on the competition system information, the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system.
The user checks for dequeue. And if the PK request Redis queue has a request to be matched, reading a matching item, and successfully matching. And if the PK request Redis queue does not have the request to be matched, re-executing the user dequeuing check.
PK match results are shown. And if the result of successful matching is the PK between the users, directly displaying the PK matching result. If the matching result is a single user, simulation training is assigned, and then the PK matching result is displayed.
And constructing a PK room according to the PK matching result, and caching the PK room to form a PK room Redis cache database.
The user starts the race.
The platform monitors riding data of the users of the two parties, and updates PK data of the room in real time.
The platform checks the PK room race status and pushes the race status or race results to the PK users.
And monitoring riding data of the users of the two parties.
And accepting new riding data.
The PK room competition state is checked from the PK room Redis cache database at regular frequency along with the PK data of the new room in the PK room Redis cache database.
And judging whether the competition is finished or not. And if the competition is not finished, pushing the competition state to the PK user. And if the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the PK user.
The similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system are pre-stored in the platform.
As shown in fig. 4, under this PK method, the user can use the following operations on the spinning (terminal):
s101, scanning the two-dimensional code by a user, unlocking and entering a riding page;
s102, selecting a PK match system, entering matching and waiting for a matching result;
s103, after matching is successful, the page enters a PK state, and PK data are displayed in real time;
s104, after the PK is finished, checking the popped PK result and acquiring the reward distributed by the platform.
In the midway, the user can freely quit or close the locking list; in PK, users can mutually send expressions and phrases for interaction.
Referring to fig. 2, the spinning real-time online PK method under the user invitation PK method includes the following steps:
the user selects the race system and sends out PK invitations to other online users.
The invited user accepts the PK invitation, and the invitation is successful; if the invited user rejects the PK invitation, the PK invitation is reissued until the invitation is successful.
The PK invite result is displayed.
And constructing a PK room according to the PK invitation result, and caching the PK room to form a PK room Redis cache database.
The user starts the race.
The platform monitors riding data of the users of the two parties, and updates PK data of the room in real time.
The platform checks the PK room race status and pushes the race status or race results to the PK users.
And monitoring riding data of the users of the two parties.
And accepting new riding data.
The PK room competition state is checked from the PK room Redis cache database at regular frequency along with the PK data of the new room in the PK room Redis cache database.
And judging whether the competition is finished or not. And if the competition is not finished, pushing the competition state to the PK user. And if the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the PK user.
As shown in fig. 5, under this PK method, the user can use the following operations on the spinning (terminal):
s201, scanning the two-dimensional code by a user, unlocking and entering a riding page;
s202, opening an online user list, wherein the list can display the public user information of the online state;
s203, selecting a user, selecting a PK competition system, and inviting the user PK;
s204, entering a PK state after the user agrees, and displaying PK data in real time;
s205, after the PK is finished, checking the popped PK result and acquiring the distributed reward.
The user can switch privacy states in the room configuration; in the midway, the user can freely quit or close the locking list; in PK, users can send expressions and phrases to interact with each other; and returning to the riding page after the result information display is overtime.
The spinning that the user used is based on the thing networking, with platform internet access, the data of riding of spinning can be monitored (gathered) to the platform. The platform provides PK competitions with various rules and motion parameters, each competition system is specifically configured with a corresponding exercise effect expectation, and final exercise effect feedback is given according to the final competition result of the user. For different users' posture data, exercise data and exercise expectations, the user would be preferentially recommended the PK race most suitable for him. The user can select a free matching mode to match other users to enter the common competition system PK, and can also actively invite a certain user to enter the PK, so that interaction machines among strange users can be increased, and similar convenient interaction among friends can be realized. Users can select own PK behaviors to broadcast in the room publicly, other users can enter the room to watch PK conditions, interaction entertainment is greatly improved, the users can invite friends to enter the own room to watch PK, and the users can enter other rooms to watch PK while exercising. And randomly matching PK, namely preferentially matching PK opponents with equivalent capability according to the physical characteristics and historical battle performance of the user, and providing the user with the PK experience which is most suitable for the user. For users of PK for the first time, the users can preferentially recommend middle data users, and if the number of matched users is small, the users can be allocated with data simulation training. The reward is configured for the PK competition system, the higher the difficulty is, the richer the reward is, and therefore the user is encouraged to participate in the PK competition at the upper limit of the self ability range, and a better exercise effect is achieved.
The user sends out a PK request, the platform constructs a PK room based on the PK request, and after the PK room is constructed, the user can play a competition and can check the competition state and the competition result. Different from the existing fitness products based on the Internet of things, the invention connects different users using the spinning based on the Internet of things together, so that different users can perform interactive competition on the Internet, such as competition in a random matching mode or competition in an online user invitation mode, the users can interact online while exercising, and the interactive experience and entertainment experience of the users when using the spinning are improved.
In the second real-time online spinning PK method provided in this embodiment, as shown in fig. 6, the method includes the following steps:
s301, a user selects a race system and sends out a PK matching request or a PK invitation;
s302, after a PK room is built on the platform, a user starts to ride the vehicle;
s303, the user receives the competition state or competition result pushed by the platform.
In the third real-time online PK method for spinning provided in this embodiment, starting from the internal processing sequence of the platform, as shown in fig. 7, the method includes the following steps:
s401, the platform receives a competition system instruction selected by a user and a PK matching request or a PK invitation sent by the user;
s402, the platform constructs a PK room based on a PK request of a user;
two methods for constructing a PK room based on a PK request of a user specifically comprise the following steps:
determining that the PK request is a PK matching request;
querying the platform database for stored data; the stored data is the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system;
the platform is arranged to obtain an effective request unit which is stored in a PK request Redis queue; the effective request unit is obtained based on the competition system information, the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system;
the platform executes user dequeue check; if the PK request Redis queue has a request to be matched, reading a matching item, and matching successfully; if the PK request Redis queue does not have a request to be matched, re-executing user dequeuing check;
the platform displays the PK matching result; if the result of successful matching is PK between users, directly displaying a PK matching result; if the result of successful matching is a single user, distributing simulation training, and then displaying a PK matching result;
the platform constructs a PK room according to the PK matching result, and the PK room is cached to form a PK room Redis cache database;
two methods for constructing a PK room based on a PK request of a user specifically comprise the following steps:
determining the PK request as a PK invitation;
the platform receives an instruction that the invited user accepts the PK invitation and displays a PK invitation result; if the platform does not receive the instruction that the invited user accepts the PK invitation, the platform re-receives the PK invitation sent by the user until the instruction that the invited user accepts the PK invitation is received;
the platform constructs a PK room according to the PK invitation result, and caches the PK room to form a PK room Redis cache database;
s403, after the user starts to ride, the platform monitors riding data of both users, and updates the PK data of the room in real time, which specifically includes:
the platform monitors riding data of users of both parties;
the platform receives new riding data;
the PK data of the new room is followed in a PK room Redis cache database;
s404, the platform checks the PK room competition state and pushes the competition state or competition result to the PK user, and the method specifically comprises the following steps:
the platform checks the PK room match state at a fixed frequency from a PK room Redis cache database;
the platform judges whether the competition is finished or not, and if the competition is not finished, the competition state is pushed to the PK user; and if the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the PK user.
The embodiment also provides a real-time online PK device for a spinning, as shown in fig. 8, which includes a riding data acquisition unit 501, a human-computer interaction unit 502, a PK room processing unit 503 and a PK state pushing unit 504.
The riding data acquisition unit 501 is used for acquiring riding data.
The human-computer interaction unit 502 is configured to: inputting user information and the like, such as identity authentication information and current posture information; receiving a competition system instruction selected by a user and a PK matching request or a PK invitation sent by the user in modes of voice or key input and the like; displaying a PK match result or a PK invitation result; and displaying the competition state or the competition result.
The PK room processing unit 503 constructs PK rooms according to the following method based on the PK matching request or PK invitation received by the human-computer interaction unit 502.
When the PK room processing unit 503 receives a PK match request, it is configured to:
querying the platform database for stored data; the stored data is the similarity between the current posture of the user who sends out the PK matching request and the standard posture and the historical battle performance score of the PK of the user in the competition system;
arranging to obtain an effective request unit, and storing the effective request unit in a PK request Redis queue; the effective request unit is obtained based on the competition system information, the similarity between the current posture of the user and the standard posture and the PK historical battle performance score of the user in the competition system;
performing a user dequeue check; if the PK request Redis queue has a request to be matched, reading a matching item, and matching successfully; if the PK request Redis queue does not have a request to be matched, re-executing user dequeuing check;
if the result of successful matching is PK between users, directly pushing a PK matching result to the human-computer interaction unit; if the result of successful matching is a single user, distributing simulated training, and then pushing a PK matching result to the human-computer interaction unit;
and constructing a PK room according to the PK matching result, and caching the PK room to form a PK room Redis cache database.
The PK room processing unit 503, when receiving the PK invitation, is configured to perform the following operations:
receiving a PK invitation receiving instruction of an invited user, and pushing a PK invitation result to a human-computer interaction unit; if the instruction that the invited user accepts the PK invitation is not received, re-receiving the PK invitation sent by the user until the instruction that the invited user accepts the PK invitation is received;
and constructing a PK room according to the PK invitation result, and caching the PK room to form a PK room Redis cache database.
The PK room processing unit 503 is also used to listen to riding data and update the room PK data in real time. Monitoring riding data of users of both sides; receiving new riding data; the new room PK data is followed in the PK room Redis cache database.
The PK status push unit 504 is configured to: checking the PK room match state at a fixed frequency from a PK room Redis cache database; judging whether the competition is finished or not, and if not, pushing the competition state to the man-machine interaction unit; and if the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the man-machine interaction unit.
The embodiment also provides a spinning real-time online PK server, as shown in fig. 9, including a processor 601 and a memory 602; the memory is used for storing a program of the real-time online PK method of the spinning, and the server is powered on and runs the program of the real-time online PK method of the spinning through the processor to execute steps S401 to S404.
The embodiment also provides a real-time online PK storage medium for a spinning, which stores a program of the real-time online PK method for the spinning, and the program executes steps S401 to S404 when running.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.

Claims (10)

1. A real-time online PK method for a spinning is characterized by comprising the following steps:
receiving a competition system instruction and a PK request;
constructing a PK room based on the PK request;
monitoring riding data, and updating PK data of a room in real time;
check the PK room race status and push the race status or race results.
2. The spinning real-time online PK method according to claim 1, wherein said building a PK room based on PK requests specifically comprises:
determining that the PK request is a PK matching request;
querying stored data;
arranging to obtain an effective request unit, and storing the effective request unit in a PK request Redis queue;
performing a user dequeue check;
a to-be-matched request exists in the PK request Redis queue, a matching item is read, and matching is successful;
a PK request Redis queue does not have a request to be matched, and user dequeuing check is re-executed;
displaying a PK matching result;
and constructing a PK room according to the PK matching result, and caching the PK room to form a PK room Redis cache database.
3. The spinning real-time online PK method according to claim 1, wherein said building a PK room based on PK requests specifically comprises:
determining the PK request as a PK invitation;
receiving an instruction that an invited user accepts PK invitation;
displaying a PK invitation result;
if the platform does not receive the instruction that the invited user accepts the PK invitation, the platform re-receives the PK invitation sent by the user until the instruction that the invited user accepts the PK invitation is received;
and constructing a PK room according to the PK invitation result, and caching the PK room to form a PK room Redis cache database.
4. The spinning real-time online PK method according to claim 2 or 3, wherein the monitoring of riding data and the real-time updating of the PK data of the rooms specifically comprise:
monitoring riding data of users of both parties;
receiving new riding data;
the new room PK data is followed in the PK room Redis cache database.
5. The real-time online PK method for spinning according to claim 4, wherein the step of checking the PK room race status and pushing the race status or the race result comprises the following specific steps:
checking the PK room match state at a fixed frequency from a PK room Redis cache database;
if the competition is not finished, pushing competition states to PK users;
and after the competition is finished, removing the cache of the PK room Redis cache database, and pushing competition results to PK users.
6. A real-time online PK device of a spinning is characterized by comprising a human-computer interaction unit, a PK room processing unit and a PK state pushing unit;
the human-computer interaction unit is used for receiving a competition system instruction and a PK request, displaying a PK matching result or a PK invitation result, and displaying a competition state or a competition result;
the PK room processing unit is used for: constructing a PK room based on the PK request; monitoring riding data, and updating PK data of a room in real time;
the PK state pushing unit is used for: checking the PK room match state at a fixed frequency from a PK room Redis cache database; if the match is not finished, pushing the match state to the man-machine interaction unit; and after the competition is finished, removing the cache of the PK room Redis cache database, and pushing the competition result to the human-computer interaction unit.
7. The spinning real-time online PK device according to claim 6, wherein when the PK room processing unit receives a PK match request, the following operations are specifically performed:
querying stored data;
arranging to obtain an effective request unit, and storing the effective request unit in a PK request Redis queue;
performing a user dequeue check;
a to-be-matched request exists in the PK request Redis queue, a matching item is read, and matching is successful;
a PK request Redis queue does not have a request to be matched, and user dequeuing check is re-executed;
and constructing a PK room according to the PK matching result, and caching the PK room to form a PK room Redis cache database.
8. The spinning real-time online PK device according to claim 6, wherein when the PK room processing unit receives a PK invitation, the following operations are specifically performed:
receiving a PK invitation receiving instruction of an invited user, and pushing a PK invitation result to a human-computer interaction unit; if the instruction that the invited user accepts the PK invitation is not received, re-receiving the PK invitation sent by the user until the instruction that the invited user accepts the PK invitation is received;
and constructing a PK room according to the PK invitation result, and caching the PK room to form a PK room Redis cache database.
9. The real-time online PK server for the spinning is characterized by comprising a processor and a memory; wherein the memory is used for storing a program of the spinning real-time online PK method of any one of claims 1 to 5, and the server is used for executing the method of any one of claims 1 to 5 after being powered on and running the program of the spinning real-time online PK method through the processor.
10. A spinning real-time online PK storage medium, wherein said storage medium stores a program of the spinning real-time online PK method according to any one of claims 1 to 5, which when run executes the method according to any one of claims 1 to 5.
CN202011600374.9A 2020-12-29 2020-12-29 Real-time online PK method, device, server and storage medium for spinning Pending CN112587933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011600374.9A CN112587933A (en) 2020-12-29 2020-12-29 Real-time online PK method, device, server and storage medium for spinning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011600374.9A CN112587933A (en) 2020-12-29 2020-12-29 Real-time online PK method, device, server and storage medium for spinning

Publications (1)

Publication Number Publication Date
CN112587933A true CN112587933A (en) 2021-04-02

Family

ID=75203888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011600374.9A Pending CN112587933A (en) 2020-12-29 2020-12-29 Real-time online PK method, device, server and storage medium for spinning

Country Status (1)

Country Link
CN (1) CN112587933A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070155488A1 (en) * 2003-12-10 2007-07-05 Konami Digital Enterainment Co., Ltd. Game progress administering system, game progress administering method, and computer-readable recording medium storing game progress administering program
CN201889024U (en) * 2010-09-13 2011-07-06 体之杰(北京)网络科技有限公司 Novel vertical exercise bike capable of networking for competitive game
CN102750435A (en) * 2011-04-20 2012-10-24 迪士尼企业公司 System and method for dynamic matchmaking population herding
EP2537568A1 (en) * 2011-06-23 2012-12-26 France Telecom Method and apparatus for enabling a user to participate in a remotely accessible electronic game
CN103550911A (en) * 2013-10-29 2014-02-05 北京踏行天际科技发展有限公司 Indoor network bicycle system for realizing multi-user networking competition and control method thereof
CN105553821A (en) * 2015-12-14 2016-05-04 网易(杭州)网络有限公司 Game battle matching method and device
CN105915569A (en) * 2015-11-12 2016-08-31 上海童舒房科技股份有限公司 Cloud-based sitting posture correction system
CN106913338A (en) * 2011-12-22 2017-07-04 阿迪达斯股份公司 The monitoring system and method for body-building
CN106975220A (en) * 2016-01-15 2017-07-25 广州爱九游信息技术有限公司 Game user and room matching process and system
CN107185214A (en) * 2017-06-22 2017-09-22 厦门钢宇工业有限公司 A kind of body building method raced based on muscle group and system
CN107547531A (en) * 2017-08-23 2018-01-05 北京闲徕互娱网络科技有限公司 Create the method and system, terminal, server in chess category online game room
CN107661628A (en) * 2016-07-27 2018-02-06 优屏亚太私人有限公司 It is a kind of to create network to promote the method and system of multi-player gaming
CN108295454A (en) * 2018-04-11 2018-07-20 深圳市汇泰科电子有限公司 A kind of wisdom body-building system and control method
CN108970124A (en) * 2018-07-05 2018-12-11 腾讯科技(深圳)有限公司 It forms a team matching process, device, system and readable medium
CN109331467A (en) * 2018-08-15 2019-02-15 宏诚盛世(天津)网络科技有限公司 A kind of game room matching process
CN111973940A (en) * 2020-08-19 2020-11-24 杭州萧跃汽车技术有限公司 Body-building method, system, interaction equipment and interactive spinning

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070155488A1 (en) * 2003-12-10 2007-07-05 Konami Digital Enterainment Co., Ltd. Game progress administering system, game progress administering method, and computer-readable recording medium storing game progress administering program
CN201889024U (en) * 2010-09-13 2011-07-06 体之杰(北京)网络科技有限公司 Novel vertical exercise bike capable of networking for competitive game
CN102750435A (en) * 2011-04-20 2012-10-24 迪士尼企业公司 System and method for dynamic matchmaking population herding
EP2537568A1 (en) * 2011-06-23 2012-12-26 France Telecom Method and apparatus for enabling a user to participate in a remotely accessible electronic game
CN106913338A (en) * 2011-12-22 2017-07-04 阿迪达斯股份公司 The monitoring system and method for body-building
CN103550911A (en) * 2013-10-29 2014-02-05 北京踏行天际科技发展有限公司 Indoor network bicycle system for realizing multi-user networking competition and control method thereof
CN105915569A (en) * 2015-11-12 2016-08-31 上海童舒房科技股份有限公司 Cloud-based sitting posture correction system
CN105553821A (en) * 2015-12-14 2016-05-04 网易(杭州)网络有限公司 Game battle matching method and device
CN106975220A (en) * 2016-01-15 2017-07-25 广州爱九游信息技术有限公司 Game user and room matching process and system
CN107661628A (en) * 2016-07-27 2018-02-06 优屏亚太私人有限公司 It is a kind of to create network to promote the method and system of multi-player gaming
CN107185214A (en) * 2017-06-22 2017-09-22 厦门钢宇工业有限公司 A kind of body building method raced based on muscle group and system
CN107547531A (en) * 2017-08-23 2018-01-05 北京闲徕互娱网络科技有限公司 Create the method and system, terminal, server in chess category online game room
CN108295454A (en) * 2018-04-11 2018-07-20 深圳市汇泰科电子有限公司 A kind of wisdom body-building system and control method
CN108970124A (en) * 2018-07-05 2018-12-11 腾讯科技(深圳)有限公司 It forms a team matching process, device, system and readable medium
CN109331467A (en) * 2018-08-15 2019-02-15 宏诚盛世(天津)网络科技有限公司 A kind of game room matching process
CN111973940A (en) * 2020-08-19 2020-11-24 杭州萧跃汽车技术有限公司 Body-building method, system, interaction equipment and interactive spinning

Similar Documents

Publication Publication Date Title
US11504616B2 (en) Method of controlling a server, server, and non-transitory computer-readable recording medium
CN112565798A (en) Live broadcast interaction realization method and computer readable storage medium
CN113473169B (en) Group live broadcasting method and device, storage medium and computer equipment
US20170054662A1 (en) Systems and methods for facilitating gameplay within messaging feeds
JP6195093B2 (en) GAME CONTROL DEVICE, PROGRAM, GAME SYSTEM
CN108452525A (en) The monitoring method and system of chat message in a kind of game
CN111760295A (en) Information processing method and device, computer readable medium and electronic equipment
CN114896498A (en) Course recommendation method, system, terminal and storage medium
US9022868B2 (en) Method and system for creating a virtual world where user-controlled characters interact with non-player characters
KR101573327B1 (en) Social network service method and system for discussion sympathy battle among on-line community
US20130017872A1 (en) Method and system for tag-based grouping of online communities
US7980930B2 (en) On-line game based on words, making use of a search engine
JP2014050557A (en) Game controller, game control method, program and game system
JP7245213B2 (en) Program, information processing device, and control method for information processing device
US20230356082A1 (en) Method and apparatus for displaying event pop-ups, device, medium and program product
CN112587933A (en) Real-time online PK method, device, server and storage medium for spinning
JP2003033575A (en) Operation managing system for net contest type simulation games combining e mail for portable terminal
JP4493728B1 (en) Soccer prediction voting system
JP2015136552A (en) server system
JP2001043278A (en) Game to be played on communication network and point calculation system utilizing world wide web
KR101581923B1 (en) Game system, Method of providing game, and computer program for executing the method
CN112138367A (en) Mahjong playing recommendation method, system and equipment for mahjong game
KR20040074894A (en) Method for servicing online baduk by using network
CN109646960A (en) It is a kind of based on the friend recommendation method, apparatus of social platform trivial games, server
JP7265061B1 (en) Program, information processing system, and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402