CN111346371B - Information processing method and device and computer readable storage medium - Google Patents

Information processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111346371B
CN111346371B CN202010136264.5A CN202010136264A CN111346371B CN 111346371 B CN111346371 B CN 111346371B CN 202010136264 A CN202010136264 A CN 202010136264A CN 111346371 B CN111346371 B CN 111346371B
Authority
CN
China
Prior art keywords
information
preset
position information
detected
updating
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.)
Active
Application number
CN202010136264.5A
Other languages
Chinese (zh)
Other versions
CN111346371A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010136264.5A priority Critical patent/CN111346371B/en
Publication of CN111346371A publication Critical patent/CN111346371A/en
Application granted granted Critical
Publication of CN111346371B publication Critical patent/CN111346371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • 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/75Enforcing rules, e.g. detecting foul play or generating lists of cheating players
    • 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/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/51Server architecture
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5586Details of game data or player data management for enforcing rights or rules, e.g. to prevent foul play
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Abstract

The embodiment of the application discloses an information processing method, an information processing device and a computer readable storage medium, and the embodiment of the application receives virtual operation information and corresponding first position information uploaded by a terminal; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with a preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position. Therefore, under the condition of keeping an updating mechanism for preventing abnormal conditions, the trusted virtual operation information uploaded by the terminal and the corresponding first position information are fully utilized for carrying out quick updating, the expense of server mobile verification is saved, and the information processing efficiency is greatly improved.

Description

Information processing method and device and computer readable storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an information processing method, an information processing apparatus, and a computer-readable storage medium.
Background
With the rapid development of the internet technology, the processing capacity of the intelligent terminal processor is also stronger and stronger, so that many applications for realizing control on a large screen or a super-large screen based on human-computer interaction are derived, for example, First-person shooting games (FPS) games, and the games can support a plurality of players to be online simultaneously and perform vivid interactive entertainment based on rich scenes.
In the prior art, in an online FPS game, game theme logic is run on a server, including Artificial Intelligence (AI) decisions, positions and states of virtual units, and the like, and movement and position information of each player is calculated and updated by the server, that is, a client sends the local position of the player and the input of the player to the server at regular time, and the server simulates according to the input of the player to determine or correct the local position of the client, thereby preventing cheating and disconnection of the client.
In the research and practice process of the prior art, the inventor of the present application finds that, in the prior art, a server needs to calculate a large amount of information, and the calculation process involves complex scene interaction, which results in high calculation overhead and low information processing efficiency.
Disclosure of Invention
The embodiment of the application provides an information processing method, an information processing device and a computer readable storage medium, aiming at improving the efficiency of information processing.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
an information processing method comprising:
receiving virtual operation information and corresponding first position information uploaded by a terminal;
determining a current updating state according to the virtual operation information and the first position information;
when the current updating state is detected to accord with a preset condition, calculating according to the virtual operation information to obtain corresponding second position information;
and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position.
An information processing apparatus comprising:
the receiving unit is used for receiving the virtual operation information uploaded by the terminal and corresponding first position information;
the determining unit is used for determining the current updating state according to the virtual operation information and the first position information;
the calculating unit is used for calculating according to the virtual operation information when the current updating state is detected to meet the preset condition, so as to obtain corresponding second position information;
and the updating unit is used for updating the position by using the virtual operation information and the first position information when the current updating state is detected to be not in accordance with the preset condition.
In some embodiments, the apparatus further comprises a first verification unit for:
acquiring the distance between the first position information and the second position information;
when the distance is detected to be smaller than a first preset threshold value, the second position information is stored, the preset updating time is increased, and success information is fed back to the terminal;
when the distance is detected to be not smaller than a preset threshold value, detecting whether the mobile terminal is in a special moving state;
when the mobile terminal is detected to be in a special moving state, changing the first preset threshold value into a second preset threshold value for position detection, wherein the second preset threshold value is larger than the first preset threshold value;
and when the special moving state is detected, verifying the first position information through the target function.
In some embodiments, the first verification unit is further configured to:
acquiring the distance between the first position information and the second position information;
when the distance is detected to be smaller than a first preset threshold value, the second position information is stored, the preset updating time is increased, and success information is fed back to the terminal;
when the distance is detected to be not smaller than a first preset threshold value, whether the mobile terminal is in a special moving state is detected;
when the mobile terminal is detected to be in a special moving state, detecting whether the distance is smaller than a second preset threshold value;
when the distance is detected to be smaller than a second preset threshold value, the second position information is stored, and success information is fed back to the terminal;
when the distance is detected to be not smaller than a second preset threshold value, a step of verifying the first position information through a target function is executed;
and when the special moving state is detected, verifying the first position information through the target function.
In some embodiments, the apparatus further comprises a second verification unit for:
detecting whether the mobile terminal is in a special moving state;
when the mobile terminal is detected to be in a special moving state, calculating according to the virtual operation information to obtain corresponding second position information for storage, and feeding back success information to the terminal;
and when the mobile terminal is detected not to be in the special moving state, executing the step of updating the position by using the virtual operation information and the first position information, and feeding back success information to the terminal.
A computer readable storage medium, storing a plurality of instructions, the instructions being suitable for being loaded by a processor to execute the steps of the information processing method.
The method comprises the steps that virtual operation information and corresponding first position information uploaded by a terminal are received; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with a preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position. Therefore, compared with the scheme that the existing server needs to calculate and verify each piece of information uploaded by the terminal, the embodiment of the application can fully utilize the trusted virtual operation information and the corresponding first position information uploaded by the terminal to perform quick update under the condition of keeping an update mechanism for preventing abnormal conditions, saves the overhead of server mobile verification, and greatly improves the efficiency of information processing.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a scenario of an information processing system provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of an information processing method provided in an embodiment of the present application;
FIG. 3 is another schematic flow chart diagram of an information processing method provided in an embodiment of the present application;
fig. 4 is a scene schematic diagram of an information processing method provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an information processing apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Fig. 7 is an alternative structure diagram of the distributed system 100 applied to the blockchain system according to the embodiment of the present invention.
Fig. 8 is an alternative Block Structure according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The embodiment of the application provides an information processing method, an information processing device and a computer readable storage medium.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of an information processing system according to an embodiment of the present application, including: the terminal a and the server (the information processing system may also include other terminals besides the terminal a, and the specific number of the terminals is not limited herein), the terminal a and the server may be connected through a communication network, which may include a wireless network and a wired network, wherein the wireless network includes one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal area network. The network includes network entities such as routers, gateways, etc., which are not shown in the figure. The terminal a may perform information interaction with the server through a communication network, for example, when the terminal a runs a PFS-type game, the terminal a may collect a control operation corresponding to a virtual resource in the game by a user, control the virtual resource to execute a corresponding action according to the control operation, and send virtual operation information of the user and a position (i.e., first position information) of the virtual resource after the action is executed to the server for verification.
The information processing system may include an information processing apparatus, which may be specifically integrated in a server, in fig. 1, the server is mainly configured to receive virtual operation information and corresponding first location information uploaded by a terminal a, determine a current update state according to the virtual operation information and the first location information, indicate that there may be a problem with the first location information when detecting that the current update state meets a preset condition, require the server to perform calculation according to the virtual operation information to obtain corresponding second location information, enable subsequent location verification according to the second location information, indicate that the first location information is trustworthy when detecting that the current update state does not meet the preset condition, skip server verification, and directly use the virtual operation information and the first location information to perform location update, and finally, the position verification result is fed back to the terminal A, so that the task amount of the server for calculating the position of the client player can be reduced, trusted client data can be fully utilized under the condition of keeping anti-cheating, and the calculation overhead of the server is greatly saved.
The information processing system can also comprise a terminal A, the terminal A can be provided with various applications required by users, such as an FPS game application and the like, when the terminal A runs the FPS game, the users can control virtual resources in the FPS game through touch control and the like, so that the virtual resources execute corresponding actions on a game map, and the virtual operation information and the first position information of each frame are sent to the server for verification.
It should be noted that the scenario diagram of the information processing system shown in fig. 1 is only an example, and the information processing system and the scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first embodiment,
In the present embodiment, description will be made from the viewpoint of an information processing apparatus which can be integrated specifically in a server having a storage unit and a microprocessor mounted thereon and having an arithmetic capability.
An information processing method comprising: acquiring a pushed information click sample of a target user in a preset time period, wherein the pushed information click sample at least comprises a pushed information click time characteristic, a flow main identification characteristic and a pushed information identification characteristic; calculating a first statistical distribution corresponding to the flow main identification feature, a second statistical distribution corresponding to the push information identification feature and a time interval sequence set corresponding to the push information click time feature; analyzing the first statistical distribution, determining a first dispersion degree corresponding to the flow main identification, analyzing the second statistical distribution, determining a second dispersion degree corresponding to the push information identification, analyzing the time interval sequence set, and determining a difference degree corresponding to the push information click time; and when the first dispersion degree, the second dispersion degree and the difference degree meet preset conditions, judging that the target user is a cheating user.
Referring to fig. 2, fig. 2 is a schematic flow chart of an information processing method according to an embodiment of the present disclosure. The information processing method includes:
in step 101, virtual operation information uploaded by a terminal and corresponding first position information are received.
In the online FPS game, game theme logic can run on a server side, AI decision is included, the AI decision includes the position and the state of each virtual resource, the virtual resources can be virtual game characters, each frame of a client side of each terminal can send virtual operation information corresponding to the virtual resources and corresponding first position information to a server, and overall verification is carried out by the server. Because a plurality of terminals can be supported to be online simultaneously in the FPS game, and the corresponding frame rate is higher and higher along with the improvement of the performance of the terminals, the server may receive a lot of information in one second, and therefore the calculation pressure of the server is higher and higher.
In step 102, a current update status is determined based on the virtual operation information and the first location information.
It can be understood that, in the prior art, the movement and position information of each frame of each virtual resource is calculated and updated by the server, and in the calculation process, complex scene interaction is involved, such as scene object collision, etc., so that the calculation of each frame of the server for verifying the position information of the virtual resource can obtain one third of the total overhead.
The reason that the efficiency of the verification method is not high is that the virtual operation information and the first position information uploaded by the terminal are always mechanically simulated and verified without using the first position information given by the terminal, and the embodiment of the application provides a method for simplifying the verification process of the server, when receiving the virtual operation information and the first position information, determining the current update state according to the virtual operation information and the information attached to the first position information, namely, whether the virtual operation information and the first position information uploaded by the terminal are trustworthy is determined by the virtual operation information and the first position information, when the current update state meets the preset condition, the virtual operation information and the first position information are not trustworthy, and the first position information uploaded by the terminal needs to be verified through the server, so that cheating or disconnection at the terminal side is prevented. And when the current updating state does not meet the preset condition, the virtual operation information and the first position information are worth trusting, the server does not need to verify the first position information uploaded by the terminal, and the calculation expense of the server is saved.
In an embodiment, the dimension for determining the current update state may include a time dimension and a mobile state dimension, where the time dimension refers to that the server may verify the virtual operation information and the first location information uploaded by the terminal at regular intervals of a preset time, the preset time may be adjusted according to the trust level of the terminal and the server load, the preset time may be increased appropriately when the trust level of the terminal is high, and the preset time may be decreased appropriately when the trust level of the terminal is low. When the load is high, the preset time can be properly increased to relieve the pressure of the server, and when the load is low, the preset time can be properly reduced to ensure the correctness of data. The moving state dimension means that moving rationality verification can be performed on virtual operation information and first position information uploaded by the terminal, when the moving state obviously has errors, the fact that the terminal possibly has problems is indicated, verification calculation needs to be performed through a server, and terminal cheating or disconnection is prevented.
In some embodiments, the step of determining the current update status based on the virtual operation information and the first location information comprises:
(1) acquiring operation time corresponding to the virtual operation information, and determining corresponding movement information according to the first position information;
(2) detecting whether the operation time reaches a preset updating time or not;
(3) when the operation time reaches the preset updating time, judging that the current updating state meets the preset condition, and recalculating the preset updating time;
(4) and when the operation time is detected not to reach the preset updating time, determining the current updating state according to the movement information.
It should be noted that, in order to prevent from being not updated for a long time, the server needs to periodically check the first location information uploaded by the terminal, that is, verify the virtual operation information and the first location information uploaded by the terminal at preset time intervals, for example, at 1 second intervals, where the preset time is flexible and may be increased or decreased according to the trust level of the server on the terminal or fine-tuned according to the load of the server.
The server may obtain a corresponding operation time when the terminal uploads the virtual operation information, and determine corresponding movement information according to the first position information and the position information of the previous frame stored in the server, where the movement information is state information of the movement of the virtual resource, such as a movement distance and whether a collision occurs.
Further, the server records the time of automatic updating of the last time passing time, adds the preset time to the time of automatic updating to obtain the preset updating time, so as to detect whether the operation time reaches the preset updating time, determines that the current updating state meets the preset condition when the operation time reaches the preset updating time, and the server needs to verify the virtual operation information and the first position information and recalculate the preset updating time of the next automatic updating according to the current time and the preset time. When it is detected that the operation time does not reach the preset update time, it indicates that the server does not need to automatically detect for a while, and at this time, it needs to determine the current update state according to whether the movement information is abnormal, and in an embodiment, the determination dimension of the movement information may be a movement distance and whether an object collision occurs in the movement process.
In some embodiments, the step of determining the current update status according to the movement information may include:
(1.1) detecting whether the movement information accords with a preset movement rule;
(1.2) when the movement information is detected to accord with the preset movement rule, judging that the current updating state does not accord with the preset condition;
and (1.3) when the movement information is detected to be not in accordance with the preset movement rule, judging that the current updating state is in accordance with the preset condition.
When the mobile information is detected to be in accordance with the preset mobile rule, it is indicated that the virtual operation information and the first location information of the client are trusted information, and the server is not required to update, and it is determined that the current update state does not comply with the preset condition. When the mobile information is detected to be not in accordance with the preset mobile rule, the virtual operation information and the first position information of the client are untrustworthy information, verification and updating are required to be carried out through the server, and the current updating state is settled to be in accordance with the preset condition.
In some embodiments, the step of detecting whether the movement information conforms to a preset movement rule may include:
(2.1) acquiring displacement data between the current target position information and the first position information;
(2.2) when the displacement data is detected to be larger than the preset distance data, judging that the movement information does not accord with a preset movement rule;
(2.3) when it is detected that the displacement data is not greater than the preset distance data, detecting whether an object collision occurs between the target position information and the first position information;
(2.4) when a collision of the object between the target position information and the first position information is detected, determining that the movement information does not conform to a preset movement rule;
and (2.5) when the object collision between the target position information and the first position information is detected, determining that the movement information conforms to the preset movement rule.
The method includes the steps that displacement data between current target position information and first position information can be obtained, the current target position information is position information stored in a server in a previous frame, the displacement data is distance data, the distance data of a virtual resource and the first position information is a theoretical maximum value, the theoretical maximum value is preset distance data, when the displacement data is detected to be larger than the preset distance data, the fact that the virtual resource of a client is abnormal in movement needs to be verified and revised, the fact that the movement information does not accord with preset movement rules is judged, and the current updating state accords with preset conditions.
Further, when the position data is not larger than the preset distance data, it is indicated that the moving distance of the virtual resource of the client is within the normal range, and whether object collision occurs in the moving distance is continuously detected, because if object collision occurs, it is indicated that a series of problems such as wall penetration may exist, when object collision between the target position information and the first position information is detected, it is determined that the moving information does not conform to the preset moving rule, and the current update state conforms to the preset condition. When the object collision between the target position information and the first position information is detected, the moving distance is normal and the object collision does not occur in the moving process, the moving information is judged to accord with the preset moving rule without being updated, and the current updating state does not accord with the preset condition.
In some embodiments, when receiving the forced update instruction and the special moving state suspension instruction, the server also determines that the current update state meets the preset condition, and verifies the virtual operation information and the first position information uploaded by the terminal.
In step 103, when it is detected that the current update state meets the preset condition, calculation is performed according to the virtual operation information to obtain corresponding second position information.
When the current updating state is detected to meet the preset condition, the server needs to verify the virtual operation information and the first position information uploaded by the terminal, so that the server can verify the reliability of the virtual operation information firstly, mainly time comparison is carried out, and if the reliability of the virtual operation information passes, the virtual resource of a frame on the server is simulated according to the virtual operation information, and the second position information of the virtual resource on the server is calculated.
Further, the second location information and the first location information may be verified and compared, if the error between the second location information and the first location information is within an allowable range, the terminal verification success information is fed back, the first location information of the virtual resource on the terminal is not modified, if the error between the second location information and the first location information is not within the allowable range, the terminal failure message is fed back, and the server sends the second location information calculated by the server for the virtual resource to the terminal together, so that the terminal performs location adjustment of the virtual resource.
In some embodiments, after the step of calculating according to the virtual operation information to obtain the corresponding second location information, the method may further include:
(1) acquiring the distance between the first position information and the second position information;
(2) when the distance is detected to be smaller than a first preset threshold value, the second position information is stored, the preset updating time is increased, and success information is fed back to the terminal;
(3) when the distance is detected to be not smaller than a first preset threshold value, whether the mobile terminal is in a special moving state or not is detected;
(4) when the mobile terminal is detected to be in a special moving state, changing the first preset threshold value into a second preset threshold value to carry out position detection;
(5) and when the special moving state is detected, verifying the first position information through the target function.
After the server simulates according to the virtual operation information to obtain the second position information, the distance between the first position information and the second position information is obtained, and the smaller the distance is, the smaller the error between the first position information and the second position information is, and the larger the distance is, the larger the distance between the first position information and the second position information is. The first preset threshold is a threshold defining whether the distance between the first location information and the second location information is within an acceptable range, for example, 0.03 cm, when the distance is detected to be smaller than the first preset threshold, it indicates that the error of the distance between the first location information and the second location information is acceptable and almost consistent, the server stores the second location information for updating, and simultaneously increases the reliability of the terminal, increases the preset updating time, prolongs the automatic verification period, and feeds back success information to the terminal. When the distance is detected to be not less than the first preset threshold, it is indicated that the error of the distance between the virtual resource and the virtual resource is unacceptable, and then whether the movement of the virtual resource is in a special movement state is detected, wherein the special movement state can include the processes of wall turning, rolling and playing various animation montages. And when the mobile terminal is detected not to be in the special moving state and the distance is greater than a first preset threshold value, performing position verification by using an original objective function ServerCheckClientError ().
In some embodiments, the step of changing the first preset threshold to the second preset threshold for position detection may include:
(1.1) detecting whether the distance is smaller than a second preset threshold value;
(1.2) when the distance is detected to be smaller than a second preset threshold value, storing the second position information, and feeding back success information to the terminal;
(1.3) when the distance is detected to be not less than a second preset threshold, executing the step of verifying the first position through the target function.
When the distance is detected to be smaller than the second preset threshold, the server stores the second position information for updating, wherein the second preset threshold is a value larger than the first preset threshold, and is a threshold defining whether the distance between the first position information and the second position information in the special movement state is within an acceptable range, for example, 3 cm. When the distance is detected to be not smaller than the second preset threshold, the error of the distance and the error of the target object in the special moving state are still not acceptable, and the original objective function ServerCheckClientError () is used for position verification.
In some embodiments, the step of verifying the first location information by the objective function may include:
(2.1) when the first position information is verified to be passed through the target function and is in a special moving state, retaining the second position information and feeding back success information to the terminal;
(2.2) when the first position information is verified to be passed through the target function and is not in the special moving state, reserving the first position information and feeding back success information to the terminal;
and (2.3) when the first position information is detected to be failed to be verified through the target function, retaining second position information, reducing the preset updating time, and feeding back failure information to the terminal, wherein the failure information comprises the second position information, so that the terminal performs position adjustment according to the second position information.
And when the first position information is detected to pass the verification of the original target function ServerCheckClientError (), the first position information is still verified and passed finally. And when detecting that the verification of the first position information by the original objective function ServerCheckClientError () is failed, the server indicates that the first position information is abnormal, the server needs to use the second position information which is verified and calculated by the server to perform retention and update, the reliability of the terminal corresponding to the first position information is reduced, the preset updating time is reduced, the automatic verification period is shortened, and failure information is fed back to the terminal, the failure information comprises the second position information which is calculated by the server, so that the terminal can perform position adjustment according to the second position information, and the situations of terminal cheating and disconnection are avoided.
Further, when it is detected that the first location information is verified through the original objective function ServerCheckClientError (), it is indicated that the first location information is valid, it is further required to continuously detect whether the virtual character is currently in the special moving state, when it is detected that the first location information is verified through the objective function and is in the special moving state, the server directly feeds back success information to the terminal in order to ensure the fluency of the client in the special moving state, and in order to ensure the verification after the special moving state is terminated, the server keeps the second location information for updating. When the first position information is verified to be passed through the target function and is not in the special moving state, the fact that the second position information calculated by the server is still within an acceptable range though the difference between the second position information and the first position information of the terminal is larger is shown, and at the moment, in order to prevent position errors between the server and the terminal from being accumulated, the server directly updates the first position information uploaded by the terminal and feeds back success information to the terminal.
In step 104, when it is detected that the current update state does not meet the preset condition, the location update is performed using the virtual operation information and the first location information.
When the current updating state is detected to be not in accordance with the preset condition, the server does not need to verify the virtual operation information and the first position information uploaded by the terminal, so that the position can be updated by directly utilizing the virtual operation information and the first position information uploaded by the terminal, the trusted information is fully utilized for updating, and the calculation overhead of the server is reduced.
In some embodiments, before the step of performing the location update using the virtual operation information and the first location information, the method further includes:
(1) detecting whether the mobile terminal is in a special moving state;
(2) when the mobile terminal is detected to be in a special moving state, calculating according to the virtual operation information to obtain corresponding second position information for storage, and feeding back success information to the terminal;
(3) and when the mobile terminal is detected not to be in the special moving state, executing the step of updating the position by using the virtual operation information and the first position information, and feeding back success information to the terminal.
In order to ensure the fluency of the virtual resources on the terminal in the special moving state, namely when the virtual resources are detected to be in the special moving state, calculation is carried out according to the virtual operation information to obtain corresponding second position information for storage and backup, and successful information is fed back to the terminal, so that the fluency of the terminal is not affected.
Furthermore, when it is detected that the server does not need to be updated and is not in a special moving state, it is indicated that the current virtual operation information and the first location information are trusted, the server does not need to perform location update on the virtual operation information and the first location information uploaded by the terminal, directly performs a step of performing location update using the virtual operation information and the first location information, and feeds back success information to the terminal, thereby greatly saving the calculation overhead of the server.
As can be seen from the above, in the embodiment of the present application, the virtual operation information and the corresponding first location information uploaded by the terminal are received; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with the preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position. Therefore, compared with the scheme that the existing server needs to calculate and verify each piece of information uploaded by the terminal, the embodiment of the application can fully utilize the trusted virtual operation information and the corresponding first position information uploaded by the terminal to perform quick update under the condition of keeping an update mechanism for preventing abnormal conditions, saves the overhead of server mobile verification, and greatly improves the efficiency of information processing.
Example II,
The method described in the first embodiment is further illustrated by way of example.
In the present embodiment, an example will be described in which the information processing apparatus is specifically integrated in a server.
Referring to fig. 3, fig. 3 is another schematic flow chart of an information processing method according to an embodiment of the present disclosure.
The method flow can comprise the following steps:
in step 201, the server receives the virtual operation information uploaded by the terminal and corresponding first location information.
As shown in fig. 4, in the FPS online game provided in the embodiment of the present application, 48 virtual resources 11 can be simultaneously supported, where the virtual resources 11 are virtual characters, a user can control the virtual resources to perform a series of actions such as walking, running, rolling, turning over a wall, and the like as required, and the terminal records virtual operation information corresponding to the virtual resources 11 and corresponding first position information of each frame of user, and sends the virtual operation information and the corresponding first position information to the server for receiving.
In step 202, the server detects whether a special mobility state suspend instruction is received.
In the embodiment of the present application, in order to ensure the fluency of the special state of the client, when the virtual resource 11 of the client is in the special moving state, no error correction is performed, and after the special moving state is terminated, that is, the special moving state is exited, a special moving state termination instruction is immediately generated, when the server detects that the special moving state termination instruction is received, the server needs to update and verify, and if the current updating state meets the preset condition, step 209 is executed. When the server detects that the special moving state stopping instruction is not received, the server continues to perform verification of other dimensions, and step 203 is executed.
In step 203, the server obtains the operation time corresponding to the virtual operation information, and determines corresponding movement information according to the first position information.
The server needs to perform spot check on the first position information uploaded by the terminal periodically, that is, the virtual operation information and the first position information uploaded by the terminal can be verified at intervals of preset time, the preset time is variable and ranges from 0 to 1.5 seconds, for example, 1 second, so that the server needs to obtain the operation time corresponding to the virtual operation information for subsequent spot check, and meanwhile, corresponding movement information is determined according to the first position information and the last frame of position information stored in the server, and the movement information can be displacement data and collision detection data.
In step 204, the server detects whether the operation time reaches a preset update time.
The server records the last preset update time, for example, 9 points 41 minutes 01 seconds, adds the preset time 1 second to the last preset update time to obtain the current preset update time of 9 points 41 minutes 02 seconds, when the server detects that the operation time reaches the preset update time, step 209 is executed, and when the server detects that the operation time reaches the preset update time, step 205 is executed.
In step 205, the server detects whether the movement information conforms to a preset movement rule.
The preset movement rule may include a movement distance rule and a rule of whether an object collision occurs during the movement process. Namely, the moving distance of the virtual character needs to be regulated at a certain distance, and the moving process also needs to meet the requirement of no object collision. The server may obtain the target position information stored in the server in the previous frame of the virtual character, determine corresponding displacement data, that is, a displacement distance, according to the target position information and the first position information uploaded by the terminal, when it is detected that the displacement data is greater than the preset distance data, it is determined that the displacement data is abnormal, and it is determined that the displacement information does not conform to the preset movement rule, step 209 is executed. When detecting that the displacement data is not greater than the preset distance data, it is determined that no abnormality occurs, and it is continuously detected whether an object collision occurs between the target position information and the first position information, where the object collision is an illegal action such as crossing an obstacle, for example, passing through a wall, etc. in the game, when detecting that an object collision occurs between the target position information and the first position information, it is determined that the illegal action occurs, it is determined that the movement information does not comply with the preset movement rule, step 209 is performed, when detecting that no object collision occurs between the target position information and the first position information, it is determined that the movement information complies with the preset movement rule, and step 206 is performed.
In step 206, the server checks whether it is currently in a special mobility state.
In order to ensure the fluency of the virtual character in the special movement state on the terminal, the special movement state may be within 0.1 second of the special movement state and the special movement exit state, the non-special movement state may be outside 0.1 second of the special movement exit state, the virtual character in the special movement state needs to be subjected to displacement protection, that is, special movement state detection needs to be performed in advance, and when the server detects that the virtual character is currently in the special movement state, step 207 is executed. When the server detects that it is not currently in a special mobility state, step 208 is performed.
In step 207, the server performs calculation according to the virtual operation information, obtains corresponding second location information for storage, and feeds back success information to the terminal.
When the virtual character of the game on the terminal is detected to be in the special moving state, the position of the virtual character on the terminal is not adjusted in order to guarantee fluency, namely, successful information is directly fed back to the terminal, meanwhile, in order to guarantee later position verification, the server needs to calculate the virtual operation information at the moment, obtain corresponding second position information to store, and therefore when the special moving state is finished subsequently, real position information can be compared and referred.
In step 208, the server performs location update using the virtual operation information and the first location information.
When the server is not updated and is not in a special moving state, the first position information is indicated to be trusted, the virtual operation information uploaded by the client and the first position information are directly used for updating, and meanwhile, success information is directly fed back to the terminal.
In step 209, the server performs calculation according to the virtual operation information to obtain corresponding second location information.
When the server detects that the updating is needed, simulation calculation can be carried out according to the virtual operation information, and a verification position obtained by the server according to the virtual operation information is obtained and is used for subsequent detection.
In step 210, the server obtains a distance between the first location information and the second location information.
Since the movement of the virtual character in one frame is limited, the distance between the first position information and the second position information uploaded by the terminal can be obtained first.
In step 211, the server detects whether the distance is less than a first preset threshold.
The first preset threshold may be a smaller check value, such as 0.03 cm, and when the server detects that the distance is less than 0.03 cm, step 212 is executed, and when the server detects that the distance is not less than 0.03 cm, step 214 is executed.
In step 212, the server saves the second location information, increases the preset update time, and feeds back success information to the terminal.
When the server detects that the distance is less than 0.03 cm, the position of the virtual character of the terminal is very close to the position of the virtual character of the server, and the server is verified, so that the second position information can be directly stored, the reliability of the terminal is increased, the preset time is increased, the purpose of increasing the preset updating time is achieved, the verification period is prolonged, and the successful information is fed back to the terminal.
In step 213, the server detects whether it is in a special mobility state.
In the special moving state, the moving distance of each frame is increased, so that the server is required to continuously detect whether the mobile terminal is in the special moving state, when the server detects that the mobile terminal is in the special moving state, step 214 is executed, and when the server detects that the mobile terminal is not in the special moving state, step 216 is executed.
In step 214, the server detects whether the distance is less than a second preset threshold.
When the server detects that the virtual character is in the special movement state, the movement distance increases, and the verification condition needs to be relaxed, so that the first preset threshold needs to be changed to a second preset threshold, where the second preset threshold is greater than the first preset threshold, such as 3 cm, when the server detects that the distance is less than 3 cm, step 215 is executed, and when the server detects that the distance is not less than 3 cm, step 216 is executed.
In step 215, the server stores the second location information and feeds back success information to the terminal.
The server detects that the distance is less than 3 centimeters in a special moving state, the description error is in an allowable range, the server can store the second position information and feed back success information to the terminal to indicate that the position verification is passed.
In step 216, the server verifies whether the first location information is valid through the objective function.
When the server detects that the server is not in the special moving state and the distance is not less than 0.03 cm or is in the special moving state and the distance is greater than 3 cm, the first position is described, position verification needs to be performed through an original objective function ServerCheckClientError (), the original objective function is a standardized verification function for verifying position information, when the server verifies that the first position information is valid through the objective function, step 217 is executed, and when the server verifies that the first position information is invalid through the objective function, step 217 is executed.
In step 217, when the server detects that the first location information is verified by the objective function and is in the special moving state, the server retains the second location information and feeds back success information to the terminal, and when the server detects that the first location information is verified by the objective function and is not in the special moving state, the server retains the first location information and feeds back success information to the terminal.
When the server verifies that the first position information is valid through the objective function, the first position information is still valid, at the moment, if the virtual character is in the special moving state, the server can directly reserve the second position information and feed back successful information to the terminal, and if the virtual character is not in the special moving state, the first position information passes verification, the second position information and the successful information are in accordance with verification conditions, but the error is large, at the moment, in order to eliminate the error, the first position information of the terminal can be directly used for updating, and the successful information is fed back to the terminal.
In step 218, the server retains the second location information, reduces the preset update time, and feeds back failure information to the terminal.
When the server verifies that the first position information is not effective through the target function, the server indicates that the first position information has problems, at the moment, the reliability of the terminal is reduced, the preset time is shortened, the purpose of increasing the preset updating time is achieved, the verification period is shortened, failure information is fed back to the terminal, the failure information comprises second position information, the terminal corrects the virtual character in the game according to the failure information, and the problem of the position of the character is avoided.
As can be seen from the above, in the embodiment of the present application, the virtual operation information and the corresponding first location information uploaded by the terminal are received; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with the preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position. Therefore, compared with the scheme that the existing server needs to calculate and verify each piece of information uploaded by the terminal, the embodiment of the application can fully utilize the trusted virtual operation information and the corresponding first position information uploaded by the terminal to perform quick update under the condition of keeping an update mechanism for preventing abnormal conditions, saves the overhead of server mobile verification, and greatly improves the efficiency of information processing.
Example III,
In order to better implement the information processing method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the information processing method. The terms are the same as those in the above-described information processing method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present disclosure, where the information processing apparatus may include a receiving unit 301, a determining unit 302, a calculating unit 303, an updating unit 304, and the like.
A receiving unit 301, configured to receive the virtual operation information and the corresponding first location information uploaded by the terminal.
A determining unit 302, configured to determine a current update state according to the virtual operation information and the first location information.
In some embodiments, the determining unit 302 may include an acquiring subunit, a first detecting subunit, a first determining subunit, and a determining subunit, as follows:
the acquisition subunit is used for acquiring the operation time corresponding to the virtual operation information and determining corresponding movement information according to the first position information;
the first detection subunit is used for detecting whether the operation time reaches preset updating time or not;
the first judging subunit, when detecting that the operation time reaches the preset updating time, judges that the current updating state meets the preset condition, and recalculates the preset updating time;
and the determining subunit is used for determining the current updating state according to the movement information when the operation time is detected not to reach the preset updating time.
In some embodiments, a determination subunit is configured to: when detecting that the operation time does not reach the preset updating time, detecting whether the movement information accords with a preset movement rule; when the mobile information is detected to accord with a preset mobile rule, judging that the current updating state does not accord with a preset condition; and when the mobile information is detected to be not in accordance with the preset mobile rule, judging that the current updating state is in accordance with the preset condition.
In some embodiments, the determining subunit is further configured to: when the operation time is detected not to reach the preset updating time, acquiring displacement data between the current target position information and the first position information; when the displacement data is detected to be larger than the preset distance data, judging that the movement information does not accord with a preset movement rule; when the displacement data is not larger than the preset distance data, whether object collision occurs between the target position information and the first position information is detected; when the collision of the object between the target position information and the first position information is detected, judging that the movement information does not accord with a preset movement rule; when detecting that no object collision occurs between the target position information and the first position information, determining that the movement information conforms to a preset movement rule; when the mobile information is detected to accord with a preset mobile rule, judging that the current updating state does not accord with a preset condition; and when the mobile information is detected to be not in accordance with the preset mobile rule, judging that the current updating state is in accordance with the preset condition.
In some embodiments, the determining unit 302 further comprises a second detecting subunit configured to:
detecting whether a special moving state stopping instruction is received or not; when detecting that a special moving state stopping instruction is received, judging that the current updating state meets a preset condition; and when detecting that the special moving state stopping instruction is not received, executing the step of determining the current updating state according to the moving information.
The calculating unit 303 is configured to, when it is detected that the current update state meets a preset condition, perform calculation according to the virtual operation information to obtain corresponding second location information.
An updating unit 304, configured to perform location updating using the virtual operation information and the first location information when it is detected that the current update state does not meet a preset condition.
In some embodiments, the apparatus further comprises a first verification unit for: acquiring the distance between the first position information and the second position information; when the distance is detected to be smaller than a first preset threshold value, the second position information is stored, the preset updating time is increased, and success information is fed back to the terminal; when the distance is detected to be not smaller than a preset threshold value, whether the mobile terminal is in a special moving state is detected; when the mobile terminal is detected to be in a special moving state, changing the first preset threshold value into a second preset threshold value for position detection, wherein the second preset threshold value is larger than the first preset threshold value; and when the special moving state is detected, verifying the first position information through the target function.
In some embodiments, the first verification unit is further configured to: acquiring the distance between the first position information and the second position information; when the distance is detected to be smaller than a first preset threshold value, the second position information is stored, the preset updating time is increased, and success information is fed back to the terminal; when the distance is detected to be not smaller than a first preset threshold value, whether the mobile terminal is in a special moving state or not is detected; when the special moving state is detected, detecting whether the distance is smaller than a second preset threshold value; when the distance is detected to be smaller than a second preset threshold value, the second position information is stored, and success information is fed back to the terminal; when the distance is detected to be not smaller than a second preset threshold value, a step of verifying the first position information through the target function is executed; and when the special moving state is detected, verifying the first position information through the target function.
In some embodiments, the apparatus further comprises a second verification unit for: detecting whether the mobile terminal is in a special moving state; when the mobile terminal is detected to be in a special moving state, calculating according to the virtual operation information to obtain corresponding second position information for storage, and feeding back success information to the terminal; and when the mobile terminal is detected not to be in the special moving state, executing the step of updating the position by using the virtual operation information and the first position information, and feeding back success information to the terminal.
The specific implementation of each unit can refer to the previous embodiment, and is not described herein again.
As can be seen from the above, in the embodiment of the present application, the receiving unit 301 receives the virtual operation information and the corresponding first location information uploaded by the terminal; the determining unit 302 determines a current update state according to the virtual operation information and the first position information; when detecting that the current update state meets the preset condition, the calculating unit 303 performs calculation according to the virtual operation information to obtain corresponding second position information; the updating unit 304 performs location updating using the virtual operation information and the first location information when detecting that the current update state does not meet a preset condition. Therefore, compared with the scheme that the existing server needs to calculate and verify each piece of information uploaded by the terminal, the embodiment of the application can fully utilize the trusted virtual operation information and the corresponding first position information uploaded by the terminal to perform quick update under the condition of keeping an update mechanism for preventing abnormal conditions, saves the overhead of server mobile verification, and greatly improves the efficiency of information processing.
Example four,
The embodiment of the present application further provides a server, as shown in fig. 6, which shows a schematic structural diagram of the server according to the embodiment of the present application, specifically:
the server may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the server architecture shown in FIG. 6 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Wherein:
the processor 401 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the server. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The server further includes a power supply 403 for supplying power to each component, and preferably, the power supply 403 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The server may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 401 in the server loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
receiving virtual operation information and corresponding first position information uploaded by a terminal; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with the preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the information processing method, and are not described herein again.
As can be seen from the above, the server according to the embodiment of the present application may receive the virtual operation information and the corresponding first location information uploaded by the terminal; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with the preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position. Therefore, compared with the scheme that the existing server needs to calculate and verify each piece of information uploaded by the terminal, the embodiment of the application can fully utilize the trusted virtual operation information and the corresponding first position information uploaded by the terminal to perform quick update under the condition of keeping an update mechanism for preventing abnormal conditions, saves the overhead of server mobile verification, and greatly improves the efficiency of information processing.
Referring To fig. 7, fig. 7 is an optional structural diagram of the distributed system 100 applied To a blockchain system, which is formed by a plurality of nodes (computing devices in any form in an access network, such as servers) and clients, where the nodes are servers, and a Peer-To-Peer (P2P) network is formed between the nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 7, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the remaining electronic money in the electronic money address;
and 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 8, fig. 8 is an optional schematic diagram of a Block Structure (Block Structure) according to an embodiment of the present invention, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
Example V,
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the information processing methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
receiving virtual operation information and corresponding first position information uploaded by a terminal; determining a current updating state according to the virtual operation information and the first position information; when the current updating state is detected to accord with the preset condition, calculating according to the virtual operation information to obtain corresponding second position information; and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any information processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any information processing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the details, see the foregoing embodiments.
The foregoing detailed description is directed to an information processing method, an information processing apparatus, and a computer-readable storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. An information processing method characterized by comprising:
receiving virtual operation information and corresponding first position information uploaded by a terminal;
acquiring operation time corresponding to the virtual operation information, and determining corresponding movement information according to the first position information;
detecting whether the operation time reaches a preset updating time or not;
when the operation time reaches the preset updating time, judging that the current updating state meets the preset condition, and recalculating the preset updating time;
when the operation time is detected not to reach the preset updating time, determining the current updating state according to the movement information;
when the current updating state is detected to accord with a preset condition, calculating according to the virtual operation information to obtain corresponding second position information;
and when the current updating state is detected to be not in accordance with the preset condition, the virtual operation information and the first position information are used for updating the position.
2. The information processing method according to claim 1, wherein the step of determining the current update status based on the movement information includes:
detecting whether the mobile information accords with a preset mobile rule;
when the mobile information is detected to accord with a preset mobile rule, judging that the current updating state does not accord with a preset condition;
and when the mobile information is detected to be not in accordance with the preset mobile rule, judging that the current updating state is in accordance with the preset condition.
3. The information processing method according to claim 2, wherein the step of detecting whether the movement information complies with a preset movement rule includes:
acquiring displacement data between the current target position information and the first position information;
when the displacement data is detected to be larger than the preset distance data, judging that the movement information does not accord with a preset movement rule;
when the displacement data is not larger than the preset distance data, whether object collision occurs between the target position information and the first position information is detected;
when organism collision between the target position information and the first position information is detected, judging that the movement information does not accord with a preset movement rule;
and when detecting that no object collision occurs between the target position information and the first position information, determining that the movement information conforms to a preset movement rule.
4. The information processing method according to claim 1, wherein the step of determining the current update status based on the movement information is preceded by:
detecting whether a special moving state stopping instruction is received or not;
when detecting that a special moving state stopping instruction is received, judging that the current updating state meets a preset condition;
and when detecting that the special moving state stopping instruction is not received, executing the step of determining the current updating state according to the moving information.
5. The information processing method according to claim 1, wherein after the step of performing calculation based on the virtual operation information to obtain the corresponding second location information, the method further comprises:
acquiring the distance between the first position information and the second position information;
when the distance is detected to be smaller than a first preset threshold value, the second position information is stored, the preset updating time is increased, and success information is fed back to the terminal;
when the distance is detected to be not smaller than a first preset threshold value, whether the mobile terminal is in a special moving state is detected;
when the mobile terminal is detected to be in a special moving state, changing the first preset threshold value into a second preset threshold value for position detection, wherein the second preset threshold value is larger than the first preset threshold value;
and when the special moving state is detected, verifying the first position information through the target function.
6. The information processing method according to claim 5, wherein the step of changing the first preset threshold to a second preset threshold for position detection includes:
detecting whether the distance is smaller than a second preset threshold value;
when the distance is detected to be smaller than a second preset threshold value, the second position information is stored, and success information is fed back to the terminal;
and when the distance is not smaller than a second preset threshold value, executing the step of verifying the first position information through the target function.
7. The information processing method according to claim 6, wherein the step of verifying the first position information by the objective function includes:
when the first position information is verified to pass through the target function and is in a special moving state, retaining the second position information and feeding back success information to the terminal;
when the first position information is verified to pass through the target function and is not in a special moving state, the first position information is reserved, and success information is fed back to the terminal;
when the first position information is detected to be failed to be verified through the target function, second position information is reserved, the preset updating time is shortened, and the failure information is fed back to the terminal, wherein the failure information comprises the second position information, so that the terminal can adjust the position according to the second position information.
8. The information processing method according to any one of claims 1 to 7, wherein the step of performing location update using the virtual operation information and the first location information is preceded by:
detecting whether the mobile terminal is in a special moving state;
when the mobile terminal is detected to be in a special moving state, calculating according to the virtual operation information to obtain corresponding second position information for storage, and feeding back success information to the terminal;
and when the mobile terminal is detected not to be in the special moving state, executing the step of updating the position by using the virtual operation information and the first position information, and feeding back success information to the terminal.
9. An information processing apparatus characterized by comprising:
the receiving unit is used for receiving the virtual operation information uploaded by the terminal and corresponding first position information;
the determining unit is used for determining the current updating state according to the virtual operation information and the first position information;
the determination unit includes:
the acquiring subunit is configured to acquire an operation time corresponding to the virtual operation information, and determine corresponding movement information according to the first position information;
the first detection subunit is used for detecting whether the operation time reaches preset updating time or not;
the first judgment subunit is used for judging that the current updating state meets the preset condition when the operation time is detected to reach the preset updating time, and recalculating the preset updating time;
the determining subunit is used for determining the current updating state according to the movement information when the operation time is detected not to reach the preset updating time;
the calculating unit is used for calculating according to the virtual operation information when the current updating state is detected to meet the preset condition, so as to obtain corresponding second position information;
and the updating unit is used for updating the position by using the virtual operation information and the first position information when the current updating state is detected to be not in accordance with the preset condition.
10. The information processing apparatus according to claim 9, wherein the determination subunit is configured to:
when the operation time is detected not to reach the preset updating time, detecting whether the movement information accords with a preset movement rule;
when the mobile information is detected to accord with a preset mobile rule, judging that the current updating state does not accord with a preset condition;
and when the mobile information is detected to be not in accordance with the preset mobile rule, judging that the current updating state is in accordance with the preset condition.
11. The information processing apparatus of claim 10, wherein the determining subunit is further configured to:
when the operation time is detected not to reach the preset updating time, acquiring displacement data between the current target position information and the first position information;
when the displacement data is detected to be larger than the preset distance data, judging that the movement information does not accord with a preset movement rule;
when the displacement data is not larger than the preset distance data, whether object collision occurs between the target position information and the first position information is detected;
when organism collision between the target position information and the first position information is detected, judging that the movement information does not accord with a preset movement rule;
when detecting that no object collision occurs between the target position information and the first position information, determining that the movement information conforms to a preset movement rule;
when the mobile information is detected to accord with a preset mobile rule, judging that the current updating state does not accord with a preset condition;
and when the mobile information is detected to be not in accordance with the preset mobile rule, judging that the current updating state is in accordance with the preset condition.
12. The information processing apparatus according to claim 9, wherein the determination unit further comprises a second detection subunit operable to:
detecting whether a special moving state stopping instruction is received or not;
when detecting that a special moving state stopping instruction is received, judging that the current updating state meets a preset condition;
and when detecting that the special moving state stopping instruction is not received, executing the step of determining the current updating state according to the moving information.
13. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the information processing method according to any one of claims 1 to 8.
CN202010136264.5A 2020-03-02 2020-03-02 Information processing method and device and computer readable storage medium Active CN111346371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010136264.5A CN111346371B (en) 2020-03-02 2020-03-02 Information processing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010136264.5A CN111346371B (en) 2020-03-02 2020-03-02 Information processing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111346371A CN111346371A (en) 2020-06-30
CN111346371B true CN111346371B (en) 2021-01-01

Family

ID=71188821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010136264.5A Active CN111346371B (en) 2020-03-02 2020-03-02 Information processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111346371B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398190B (en) * 2021-12-21 2024-01-30 北方华录文化科技(北京)有限公司 Interaction method and device based on virtual interaction space, electronic equipment and medium
WO2023150933A1 (en) * 2022-02-09 2023-08-17 Telefonaktiebolaget Lm Ericsson (Publ) Trust validation of location information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183161A (en) * 2015-09-02 2015-12-23 胡剑颖 Synchronized moving method for user in real environment and virtual environment
CN105214306A (en) * 2015-09-02 2016-01-06 网易(杭州)网络有限公司 The control method of a kind of game role control method and a kind of virtual controlling parts
US10130888B1 (en) * 2012-07-31 2018-11-20 Niantic, Inc. Game data validation
CN110812836A (en) * 2019-10-31 2020-02-21 广州市网星信息技术有限公司 Game synchronization method and device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569605B (en) * 2016-11-03 2019-06-18 腾讯科技(深圳)有限公司 Control method and device based on virtual reality
CN109814791B (en) * 2018-12-20 2020-11-13 东软集团股份有限公司 Method and device for processing flow nodes, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10130888B1 (en) * 2012-07-31 2018-11-20 Niantic, Inc. Game data validation
CN105183161A (en) * 2015-09-02 2015-12-23 胡剑颖 Synchronized moving method for user in real environment and virtual environment
CN105214306A (en) * 2015-09-02 2016-01-06 网易(杭州)网络有限公司 The control method of a kind of game role control method and a kind of virtual controlling parts
CN110812836A (en) * 2019-10-31 2020-02-21 广州市网星信息技术有限公司 Game synchronization method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111346371A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN111405304B (en) Anchor interaction method and device, computer equipment and storage medium
Lei et al. Reputation-based byzantine fault-tolerance for consortium blockchain
Yuan et al. CSEdge: Enabling collaborative edge storage for multi-access edge computing based on blockchain
CN110830735B (en) Video generation method and device, computer equipment and storage medium
CN109829718B (en) Block chain multi-level framework based on storage application scene and operation method thereof
CN105488665A (en) Decentralized transaction method
CN110611701B (en) Parameter configuration and transaction processing method based on block chain
CN111346371B (en) Information processing method and device and computer readable storage medium
CN108961052A (en) Verification method, storage method, device, equipment and the medium of block chain data
CN108960797B (en) Block generation and verification method, device, equipment and storage medium
CN111382456A (en) Proposal message processing method, device, equipment and storage medium
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
CN111199481A (en) Distributed transaction network based on asynchronous directed acyclic graph
CN103312549A (en) Transaction management method, device and system
CN111327414A (en) Block chain consensus method and system, computer storage medium and electronic device
WO2020065242A1 (en) Method and system for transaction processing in decentralized network by network nodes in collaborative decision-making
CN111290965B (en) Test method, test device, computer equipment and storage medium
CN111818181A (en) Data processing method and device based on block chain and computer readable storage medium
CN110717761B (en) Data processing method and device and computer storage medium
CN112101919A (en) Data processing method and device, electronic equipment and storage medium
CN112565370B (en) Method and system for verifying calculation result based on wireless communication and block chain scene
CN106203179A (en) A kind of completeness check system and method to file
CN113014499A (en) Data transmission method and device, electronic equipment and storage medium
CN114418133A (en) Asynchronous federal learning method, system, equipment and medium based on block chain
KR102130900B1 (en) Fast consensus method in block chain system

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024164

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant