CN111111198A - Logic code execution method, device, server and medium - Google Patents

Logic code execution method, device, server and medium Download PDF

Info

Publication number
CN111111198A
CN111111198A CN201911359478.2A CN201911359478A CN111111198A CN 111111198 A CN111111198 A CN 111111198A CN 201911359478 A CN201911359478 A CN 201911359478A CN 111111198 A CN111111198 A CN 111111198A
Authority
CN
China
Prior art keywords
user
logic code
logic
executed
identity information
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.)
Granted
Application number
CN201911359478.2A
Other languages
Chinese (zh)
Other versions
CN111111198B (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.)
Shanghai Mihayou Network Science And Technology Co ltd
Original Assignee
Shanghai Mihayou Network Science And Technology 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 Shanghai Mihayou Network Science And Technology Co ltd filed Critical Shanghai Mihayou Network Science And Technology Co ltd
Priority to CN201911359478.2A priority Critical patent/CN111111198B/en
Publication of CN111111198A publication Critical patent/CN111111198A/en
Application granted granted Critical
Publication of CN111111198B publication Critical patent/CN111111198B/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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • 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/60Methods for processing data by generating or executing the game program
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a logic code execution method, a logic code execution device, a logic code execution server and a logic code execution medium. The method comprises the following steps: when the operation that a user starts a target application program is detected, acquiring identity information of the user; acquiring at least one section of logic code to be executed corresponding to a user from a logic database according to the identity information of the user; and executing the logic code to be executed. The problem that the user can modify the data only by offline is solved, online data modification on part of users is realized, and the effect of data coverage risk is avoided.

Description

Logic code execution method, device, server and medium
Technical Field
The embodiment of the invention relates to the technical field of game development, in particular to a logic code execution method, a logic code execution device, a logic code execution server and a logic code execution medium.
Background
Electronic games have become popular as a way of entertainment, enriching people's amateur life and bringing people rich game experience.
In the process of game operation, data of part of players sometimes need to be modified, for example, when a certain weapon used by the part of players in a game has a problem, the data can be modified after the part of players are off-line, and the problem of data coverage can also occur if the players are on-line again in the off-line modification period.
Disclosure of Invention
The embodiment of the invention provides a logic code execution method, a logic code execution device, a logic code execution server and a logic code execution medium, so that online data modification is carried out on part of users, and the risk of data coverage is avoided.
In a first aspect, an embodiment of the present invention provides a logic code execution method, where the method includes:
when the operation that a user starts a target application program is detected, acquiring identity information of the user;
acquiring at least one section of logic code to be executed corresponding to a user from a logic database according to the identity information of the user;
and executing the logic code to be executed.
In a second aspect, an embodiment of the present invention further provides a logic code execution apparatus, where the apparatus includes:
the identity information acquisition module is used for acquiring the identity information of the user when the operation that the user starts the target application program is detected;
the logic code acquisition module is used for acquiring at least one section of logic code to be executed corresponding to the user from a logic database according to the identity information of the user;
and the logic code execution module is used for executing the logic code to be executed.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the logic code execution method of any of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used for executing the logic code execution method described in any one of the embodiments of the present invention when executed by a computer processor.
The embodiment of the invention acquires the identity information of the user when detecting the operation of starting the target application program by the user; acquiring at least one section of logic code to be executed corresponding to a user from a logic database according to the identity information of the user; and executing the logic code to be executed, solving the problem that the user can modify data only by offline, realizing online data modification on part of users and avoiding the effect of data coverage risk.
Drawings
FIG. 1 is a flow chart of a method for executing logic code according to one embodiment of the present invention;
FIG. 2 is a flowchart of a method for executing logic code according to a second embodiment of the present invention;
FIG. 3 is a block diagram of a logic code execution apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a logic code execution method according to an embodiment of the present invention, where the embodiment is applicable to a case where user data is modified online, and the method may be executed by a logic code execution apparatus, and specifically includes the following steps:
s110, when the operation that the user starts the target application program is detected, the identity information of the user is obtained.
Optionally, the obtaining of the identity information of the user includes: and receiving a login request input by the user, and acquiring the identity information of the user according to the login request. When the user starts the target application program, the identity information of the user is obtained, and the identity information of the user reflects the uniqueness of the identity of the user in the target application program. For example, the identity information of the user may be account information of the user logging in the target application program, and may also be real identity information of the user, such as an identity card number.
Considering that the login information may be retained when the user frequently uses the target application program, so as to authorize the target application program to automatically login when the application program is started, when the operation that the user starts the target application program is detected, the historical login authorization information of the user can be obtained as the identity information of the user. Alternatively, attribute information of a terminal in which the target application is installed may be acquired as the identity information of the user.
S120, at least one section of logic code to be executed corresponding to the user is obtained from a logic database according to the identity information of the user.
Optionally, the obtaining, according to the identity information of the user, at least one segment of logic code to be executed corresponding to the user from a logic database includes: and judging whether a logic database has a logic code to be executed corresponding to the user according to the corresponding relation between the identity information of the user and the logic code, and if so, acquiring the logic code to be executed from the logic database according to the corresponding relation. When the user data of part of users needs to be modified, the corresponding relation between the identity information of the users and the logic code used for modifying the user data needs to be established, so that the user data can be modified for the users needing to modify the user data in a targeted manner. According to the identity information of the user, whether the user data of the user needs to be modified or not is judged firstly, and if the user data needs to be modified, at least one section of logic code corresponding to the user identity information is found from a database according to the corresponding relation between the identity information of the user and the logic code.
Optionally, the logic codes to be executed corresponding to each user are the same or different. Because the user data required to be modified by each user may be different, the logic codes to be executed are different, so that the identity information of one user may correspond to multiple sections of logic codes, and one section of logic code may also correspond to the identity information of multiple users. And the logic code corresponding to each user identity information is stored in a single database, so that the logic code is convenient to acquire.
Optionally, if at least one segment of logic code to be executed corresponding to the user is detected, and the user is in a state of logging in the target application program, storing the at least one segment of logic code to be executed in a logic database. When the user is in the state of logging in the target application program, the logic code is executed, and when the user detects that the user needs to execute at least one section of logic code to be executed to modify user data, the logic code is stored in the database, and when the user starts the target application program next time, the corresponding logic code is found from the database according to the identity information of the user, and at least one section of logic code is executed. Illustratively, the logic code may be used to modify the user data.
And S130, executing the logic code to be executed.
After the logic code corresponding to the identity information of the user is found, at least one section of logic code is executed to modify the user data. Optionally, when the logic code corresponding to the identity information of the user includes at least two segments, the logic code may be executed according to a certain order, or may be executed randomly. If the logic codes are executed in a certain order, the execution order of the logic codes needs to be preset. And finding out the logic codes corresponding to the user identity information in the database according to the execution sequence, and executing in sequence. And when the logic codes corresponding to the identity information of the user are completely executed, finishing the modification of the user data.
According to the technical scheme of the embodiment, when the operation that a user starts a target application program is detected, the identity information of the user is acquired; acquiring at least one section of logic code to be executed corresponding to a user from a logic database according to the identity information of the user; and executing the logic code to be executed, solving the problem that the user can modify the data only by offline, achieving the effects of modifying the online data of part of users and avoiding the risk of data coverage.
Example two
Fig. 2 is a flowchart of a logic code execution method according to a second embodiment of the present invention, which is further optimized based on the second embodiment, and optionally, the logic code execution method further includes: when the logic code to be executed is detected to be completely executed, executing the operation of logging in the target application program; and when the logic code is completely executed, the corresponding relation is removed, so that the repeated execution of the logic code is avoided, and the efficiency of modifying the user data is improved.
S210, when the operation that the user starts the target application program is detected, the identity information of the user is obtained.
S220, acquiring at least one section of logic code to be executed corresponding to the user from a logic database according to the identity information of the user.
And S230, executing the logic code to be executed.
S240, when the logic code is completely executed, the corresponding relation is released.
When the logic code corresponding to the user identity information is executed, the corresponding relationship between the user identity information and the logic code needs to be released. Optionally, when there are multiple sections of logic codes corresponding to the user identity information to be executed, a section of code is executed, the corresponding relationship between the section of code and the user identity information is released, and the corresponding relationship between the remaining unexecuted logic codes and the user identity information is kept unchanged until all logic codes to be executed are executed, and all the corresponding relationships between the user identity information and the logic codes are released. Optionally, when all the logic codes to be executed are executed completely, the corresponding relationship between all the logic codes to be executed and the user identity information may be removed uniformly. Preventing repeated execution of the logic code.
And S250, when the logic code to be executed is detected to be completely executed, executing the operation of logging in the target application program.
And when the execution of the logic code corresponding to the user identity information is finished, logging in the target application program. Optionally, logging in the target application includes: executing the login logic code and displaying a login interface; or executing a login logic code, acquiring the authorization information of the user, and logging in the target application program according to the authorization information. And by executing the login logic code, a login interface is displayed, so that the authorization information input by the user at the specified position can be received, and the target application program is logged in when the login trigger operation of the user is received. For example, the target application may be logged in by receiving an operation of clicking a login button of the login interface, which is input by the user. Or executing the login code to pull the authorization information of the user and directly logging in the target application program.
According to the technical scheme of the embodiment, when the operation that the user starts the target application program is detected, the identity information of the user is acquired. And acquiring at least one section of logic code to be executed corresponding to the user from a logic database according to the identity information of the user. And executing the logic code to be executed. And when the logic code to be executed is detected to be completely executed, executing the operation of logging in the target application program. And when the logic code is completely executed, the corresponding relation is released. Repeated execution of the logic code is avoided.
EXAMPLE III
Fig. 3 is a structural diagram of a logic code execution device according to a third embodiment of the present invention, where the logic code execution device includes: an identity information acquisition module 310, a logic code acquisition module 320, and a logic code execution module 330.
The identity information acquiring module 310 is configured to acquire identity information of a user when detecting that the user starts an operation of a target application program; a logic code obtaining module 320, configured to obtain, from a logic database, at least one segment of logic code to be executed corresponding to a user according to identity information of the user; a logic code executing module 330, configured to execute the logic code to be executed.
In the technical solution of the above embodiment, the logic code obtaining module 320 includes:
and the logic code judging unit is used for judging whether a logic database has a logic code to be executed corresponding to the user according to the corresponding relation between the identity information of the user and the logic code, and if so, acquiring the logic code to be executed from the logic database according to the corresponding relation.
In the technical solution of the above embodiment, the logic code execution apparatus further includes:
and the logic code storage module is used for storing at least one section of logic code to be executed in a logic database if the user is in the state of logging in the target application program when detecting at least one section of logic code to be executed corresponding to the user.
In the technical solution of the above embodiment, the identity information obtaining module 310 includes:
and the login request unit is used for receiving a login request input by the user and acquiring the identity information of the user according to the login request.
In the technical solution of the above embodiment, the logic code execution apparatus further includes:
and the target application program login module is used for executing the operation of logging in the target application program when the logic code to be executed is detected to be executed completely.
In the technical solution of the above embodiment, the logic code execution apparatus further includes:
and the corresponding relation removing device is used for removing the corresponding relation when the logic code is completely executed.
Optionally, the logic codes to be executed corresponding to each user are the same or different.
The embodiment of the invention acquires the identity information of the user by the identity information acquisition module when detecting that the user starts the operation of the target application program; the logic code acquisition module acquires at least one section of logic code to be executed corresponding to the user from a logic database according to the identity information of the user; the logic code execution module executes the logic code to be executed, so that the problem that the user can modify data only after going off the line is solved, the online data modification of part of users is realized, and the effect of data coverage risk is avoided.
The logic code execution device provided by the embodiment of the invention can execute the logic code execution method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention, as shown in fig. 4, the server includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the server may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the server may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 420 serves as a computer-readable storage medium, and may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the logic code execution method in the embodiment of the present invention (for example, the identity information acquisition module 310, the logic code acquisition module 320, and the logic code execution module 330 in the logic code execution apparatus). The processor 410 executes various functional applications of the server and data processing, i.e., implements the above-described logic code execution method, by executing software programs, instructions, and modules stored in the memory 420.
The memory 420 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 for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 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 non-volatile solid state storage device. In some examples, the memory 420 may further include memory located remotely from the processor 410, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the server. The output device 440 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for logic code execution, the method including:
when the operation that a user starts a target application program is detected, acquiring identity information of the user;
acquiring at least one section of logic code to be executed corresponding to a user from a logic database according to the identity information of the user;
and executing the logic code to be executed.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also execute the relevant operations in the logic code execution method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the logic code execution apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of logic code execution, comprising:
when the operation that a user starts a target application program is detected, acquiring identity information of the user;
acquiring at least one section of logic code to be executed corresponding to a user from a logic database according to the identity information of the user;
and executing the logic code to be executed.
2. The logic code execution method according to claim 1, wherein the obtaining at least one piece of logic code to be executed corresponding to the user from a logic database according to the identity information of the user comprises:
and judging whether a logic database has a logic code to be executed corresponding to the user according to the corresponding relation between the identity information of the user and the logic code, and if so, acquiring the logic code to be executed from the logic database according to the corresponding relation.
3. The logic code execution method of claim 1, further comprising:
and if the user is in the state of logging in the target application program when at least one section of logic code to be executed corresponding to the user is detected, storing the at least one section of logic code to be executed in a logic database.
4. The logic code execution method of claim 1, wherein the obtaining identity information of the user comprises:
and receiving a login request input by the user, and acquiring the identity information of the user according to the login request.
5. The logic code execution method of claim 1, further comprising:
and when the logic code is completely executed, the corresponding relation is released.
6. The logic code execution method of claim 5, further comprising:
and when the logic code to be executed is detected to be completely executed, executing the operation of logging in the target application program.
7. The logic code execution method according to claim 1, wherein the logic code to be executed corresponding to each user is the same or different.
8. A logic code execution apparatus, comprising:
the identity information acquisition module is used for acquiring the identity information of the user when the operation that the user starts the target application program is detected;
the logic code acquisition module is used for acquiring at least one section of logic code to be executed corresponding to the user from a logic database according to the identity information of the user;
and the logic code execution module is used for executing the logic code to be executed.
9. A server, the server comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the logic code execution method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the logic code execution method of any one of claims 1 to 7.
CN201911359478.2A 2019-12-25 2019-12-25 Logic code execution method, device, server and medium Active CN111111198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911359478.2A CN111111198B (en) 2019-12-25 2019-12-25 Logic code execution method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911359478.2A CN111111198B (en) 2019-12-25 2019-12-25 Logic code execution method, device, server and medium

Publications (2)

Publication Number Publication Date
CN111111198A true CN111111198A (en) 2020-05-08
CN111111198B CN111111198B (en) 2024-03-12

Family

ID=70502455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911359478.2A Active CN111111198B (en) 2019-12-25 2019-12-25 Logic code execution method, device, server and medium

Country Status (1)

Country Link
CN (1) CN111111198B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021884A (en) * 2007-03-28 2007-08-22 成都金山互动娱乐科技有限公司 Method for dynamic loading configuration files and script in network game server
CN105721450A (en) * 2016-01-27 2016-06-29 网易(杭州)网络有限公司 Method, device and system for logging in network game
CN107800740A (en) * 2016-09-06 2018-03-13 盛趣信息技术(上海)有限公司 The heat renewal of MMORPG servers
CN109298877A (en) * 2018-09-17 2019-02-01 北京智明星通科技股份有限公司 Game renewal method and system, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021884A (en) * 2007-03-28 2007-08-22 成都金山互动娱乐科技有限公司 Method for dynamic loading configuration files and script in network game server
CN105721450A (en) * 2016-01-27 2016-06-29 网易(杭州)网络有限公司 Method, device and system for logging in network game
CN107800740A (en) * 2016-09-06 2018-03-13 盛趣信息技术(上海)有限公司 The heat renewal of MMORPG servers
CN109298877A (en) * 2018-09-17 2019-02-01 北京智明星通科技股份有限公司 Game renewal method and system, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111111198B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
EP3574965A1 (en) Method for realizing user matching and related device
CN107493326B (en) Network voting processing method, device, server and computer readable storage medium
CN112532885B (en) Anti-shake method and device and electronic equipment
CN106975220A (en) Game user and room matching process and system
EP3618474B1 (en) Method for setting password for electronic cigarette, system, storage medium, and electronic cigarette
CN113542256B (en) Method, device, equipment and storage medium for updating login credentials in client
CN113304469B (en) Game player matching method and device and computer equipment
CN111111198B (en) Logic code execution method, device, server and medium
CN111142976B (en) Logic code execution method, device, server and medium
CN107968799B (en) Information acquisition method, terminal equipment and system
CN109597641B (en) Object behavior control method, device, terminal and storage medium
CN109587325B (en) Application operation control method and device, storage medium and electronic equipment
CN110532742B (en) Identity authentication method, identity authentication device, secret key equipment and storage medium
CN109522187B (en) Method and device for quickly extracting state information
CN109412931B (en) Method, device and terminal equipment for performing knowledge question answering by using instant messaging mode
CN108829824B (en) Resource processing method and device in internet operation activity
CN108848183B (en) Login method and device for simulation user
CN112559072B (en) Service function starting method and related equipment
CN112434894A (en) Real-time risk control method, computer equipment and readable storage medium
CN112187993B (en) Cross-application relationship chain extension method, device, equipment and storage medium
CN111353132A (en) Method and device for limiting use of application program
CN116351064B (en) Array capacity recommendation method and device
CN116351063B (en) Skill release processing method and device, electronic equipment and storage medium
CN114443233A (en) Transaction data processing method, device and system, electronic equipment and storage medium
CN107578583B (en) Setting method and system of payment terminal and terminal equipment

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
GR01 Patent grant
GR01 Patent grant