CN113240471B - Method and device for generating prize-exchanging code, electronic equipment and storage medium - Google Patents
Method and device for generating prize-exchanging code, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113240471B CN113240471B CN202110546096.1A CN202110546096A CN113240471B CN 113240471 B CN113240471 B CN 113240471B CN 202110546096 A CN202110546096 A CN 202110546096A CN 113240471 B CN113240471 B CN 113240471B
- Authority
- CN
- China
- Prior art keywords
- prize
- redemption
- code
- exchanging
- character set
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0208—Trade or exchange of goods or services in exchange for incentives or rewards
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/75—Enforcing rules, e.g. detecting foul play or generating lists of cheating players
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0225—Avoiding frauds
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/50—Features 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/55—Details of game data or player data management
- A63F2300/5586—Details of game data or player data management for enforcing rights or rules, e.g. to prevent foul play
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Economics (AREA)
- Multimedia (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Pinball Game Machines (AREA)
Abstract
The invention discloses a game machine which comprises a game server, a prize exchanging code issuing server and a prize exchanging code generating server, wherein the prize exchanging code issuing server and the game server are arranged in the same limiting network, and the prize exchanging code generating server is used for acquiring configuration information for generating a prize exchanging code; processing the target character set by adopting an exhaustion segmentation method to obtain a target prize exchanging code set meeting configuration information; the game server is used for generating a prize redemption request according to the prize redemption codeword string when receiving the prize redemption codeword string sent by the game client and sending the prize redemption request to the prize redemption code issuing server; the lottery ticket redemption code issuing server is used for receiving and storing a target lottery ticket redemption code set and verifying the lottery ticket redemption information carried by the lottery ticket redemption request when the lottery ticket redemption request is received; when the verification is passed, the generated prize exchanging confirmation information is sent to the game server; and the game server is used for receiving the prize-exchanging confirmation information and exchanging the prize for the target player corresponding to the player identifier.
Description
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for generating a prize redemption code, an electronic device, and a storage medium.
Background
With the rapid development of computers, game applications in computers are being promoted to be more and more, and in order to attract users and give users better experiences, promotion activities are usually performed, wherein, the prize-exchanging code is an effective promotion means. The gaming application typically sends virtual redemption codes on each platform, which the user uses to redeem the virtual redemption code for the corresponding virtual good or virtual currency in the game.
In the prior art, when the game is applied to promotion through the redemption code, tools such as the redemption code generator, the CDK redemption code generation tool and the like are generally used for generating the redemption code, at the moment, the number and the length of the redemption code according to the requirement are set automatically, so that the generated redemption code is not uniform in standard, and the generated redemption code usually has repeated random numbers when the redemption code is generated, so that repeated checking processing is required after the redemption code is generated, the efficiency of generating the redemption code is lower, the problem of non-uniform redemption code standard is caused, and the problems of confusion of the standardization and poor safety of the redemption code are also caused.
Disclosure of Invention
The embodiment of the invention provides a generation method, a generation device, electronic equipment and a storage medium for a prize exchanging code, which can effectively improve the generation efficiency of generating the prize exchanging code.
The first aspect of the embodiment of the present invention further provides a system for providing a redemption code, including a game server, a redemption code providing server and a redemption code generating server, where the redemption code providing server and the game server are disposed in the same constraint network, and the system further includes:
The prize exchanging code generating server is used for acquiring configuration information for generating the prize exchanging code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting the configuration information, wherein the coverage rate of the target lottery code set is smaller than a set coverage rate, and transmitting the generated target lottery code set to the lottery code issuing server;
the game server is used for generating a prize redemption request according to the prize redemption codeword string when receiving the prize redemption codeword string sent by the game client, and sending the prize redemption request to the prize redemption code issuing server, wherein the prize redemption request carries the prize redemption codeword string, a player identifier and a player identifier;
the prize exchanging code issuing server is used for receiving and storing the target prize exchanging code set and verifying prize exchanging information carried by the prize exchanging request by utilizing the target prize exchanging code set when the prize exchanging request is received; when the verification is passed, the generated prize exchanging confirmation information is sent to the game server;
The game server is used for receiving the prize-exchanging confirmation information and exchanging the prize for the target player corresponding to the player identification according to the prize-exchanging confirmation information.
Optionally, the game server is configured to, when performing the redemption on the target player corresponding to the player identifier according to the redemption confirmation information, perform the redemption on the target player according to the redemption confirmation information if it is determined that the redemption object is in the redemption content white list; and if the awarded article is not in the awarded content white list, forbidding awarding.
Optionally, after judging that the awarded items are in the awarded content white list, if judging that the awarding times of the target player are within the set times within the set time period, the game server awards the target player according to the awarding confirmation information; and if the number of times of the prize exchange is not within the set number of times, forbidding the prize exchange.
Optionally, the prize redemption code issuing server verifies prize redemption information carried by the prize redemption request, including:
The prize exchanging code issuing server is used for checking whether the prize exchanging codeword string in the prize exchanging request is valid or not by utilizing the target prize exchanging code set, checking whether the world identifier of the player corresponds to the game server or not, and checking whether the prize exchanging codeword string meets a prize exchanging setting rule or not.
A second aspect of the embodiment of the present invention provides a method for generating a redemption code, which is applied to a redemption code generation server, where the method includes: acquiring configuration information for generating a prize exchanging code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; and processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting the configuration information, wherein the coverage rate of the target lottery code set is smaller than the set coverage rate.
Optionally, the processing the target character by using an exhaustion segmentation method to obtain a target redemption code set meeting the configuration information includes:
Generating an initial arrangement character set with a set character length based on the target character set;
performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed;
Sampling the modified ordered character set to obtain a sampled ordered character set;
And performing character conversion on the sampling sequence character set to obtain a converted character set serving as the target prize-redemption code set.
Optionally, the performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed, including:
Acquiring a set number of the initial sequencing character set;
And removing sequencing characters smaller than a set value from the initial sequencing character set according to the set number of the system, and obtaining the modified sequencing character set, wherein the coverage rate of the initial sequencing character set is smaller than the set coverage rate.
Optionally, the sampling the modified ordered character set to obtain a sampled ordered character set includes:
And sampling the modified ordered character set on the character total length according to the average offset on the character total length of the initial ordered character set, so as to obtain the sampled ordered character set.
Optionally, the performing character conversion on the sampling ordered character set to obtain a converted character set as the target redemption code set includes:
and performing character conversion on the sampling ordering character set to obtain a conversion character set, adjusting the ordering of each group of characters in the conversion character set, and taking the conversion character set after the ordering adjustment as the target prize-exchanging code set.
A third aspect of the embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, where the one or more programs include operation instructions corresponding to a method for generating a redemption code as provided in the first aspect.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs steps corresponding to the method for generating a redemption code as provided in the first aspect.
The above technical solutions in the embodiments of the present application at least have the following technical effects:
Based on the technical scheme, the prize exchanging code generating server is used for acquiring configuration information for generating the prize exchanging code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting the configuration information, and generating a lottery request and sending the lottery request to a lottery code issuing server when receiving a lottery codeword string sent by a game client; the prize exchanging code issuing server is used for receiving and storing the target prize exchanging code set and verifying prize exchanging information carried by the prize exchanging request by utilizing the target prize exchanging code set when the prize exchanging request is received; when the verification is passed, the generated prize exchanging confirmation information is sent to the game server; the game server is used for receiving the lottery ticket exchange confirmation information and conducting lottery ticket exchange on the target player corresponding to the player identifier according to the lottery ticket exchange confirmation information; in this way, in the generation stage of the lottery ticket exchanging code, the target character set is processed by adopting the exhaustion segmentation method, so that the target lottery ticket exchanging code set is obtained by sampling on the basis of segmentation, the situation that the obtained target lottery ticket exchanging code is repeated can be effectively avoided, the repeated checking processing is not needed under the situation that the target lottery ticket exchanging code is repeated is avoided, the generation efficiency of generating the lottery ticket exchanging code can be effectively improved, the coverage rate of the target lottery ticket exchanging code set is smaller than the set coverage rate, the probability that the lottery ticket exchanging code is guessed can be effectively reduced, and the security of the lottery ticket exchanging code is improved; in the prize-exchanging stage of the prize-exchanging code, the security and standardization of the prize-exchanging code can be effectively ensured through the interaction of the prize-exchanging code issuing server, the game server and the game server, and the prize-exchanging code generating server generates all the prize-exchanging codes, so that the standard of the prize-exchanging codes is unified, the prize-exchanging code can be applied to a plurality of games, and the universality and the expansibility of the prize-exchanging code issuing system can be effectively improved.
Drawings
FIG. 1 is a system architecture diagram of a redemption code dispensing system in accordance with an embodiment of the present application;
FIG. 2 is a flow chart of a method for generating a target redemption code set using an exhaustive segmentation method according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for generating a redemption code according to an embodiment of the present application;
FIG. 4 is a block diagram of a generating device of a redemption code provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The main implementation principle, the specific implementation manner and the corresponding beneficial effects of the technical scheme of the embodiment of the application are described in detail below with reference to the accompanying drawings.
Example 1
Referring to fig. 1, an embodiment of the present application provides a prize redemption code delivery system, including a game server 10, a prize redemption code delivery server 20 and a prize redemption code generation server 30, where the prize redemption code delivery server 20 and the game server 10 are disposed in the same constraint network, and the system further includes:
A redemption code generation server 30 for acquiring configuration information for generating the redemption code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting configuration information, wherein the coverage rate of the target lottery code set is smaller than the set coverage rate, and transmitting the generated target lottery code set to a lottery code issuing server 20;
The game server 10 is configured to generate a redemption request corresponding to the game server 10 according to the redemption codeword string when receiving the redemption codeword string sent by the game client, and send the redemption request to the redemption code issuing server 20, where the redemption request carries the redemption codeword string, a world identifier where the player is located, and a player identifier;
The prize redemption code issuing server 20 is configured to receive and store a target prize redemption code set, and to verify prize redemption information carried by the prize redemption request using the target prize redemption code set when the prize redemption request is received; when the verification is passed, the generated prize exchanging confirmation information is sent to the game server;
the game server 10 is used for receiving the prize-exchanging confirmation information and exchanging the prize for the target player corresponding to the player identification according to the prize-exchanging confirmation information.
When receiving the prize-exchanging code character string sent by the game client, the game server 10 generates a prize-exchanging request according to the prize-exchanging code character string, and at this time, the prize-exchanging request is prompted to carry the prize-exchanging code character string, the world identifier of the player and the player identifier, and at this time, when the games are different, the world identifiers of the players in the prize-exchanging request are different, and the player identifiers are also different under the normal condition, so that the same prize-exchanging code can be applied to a plurality of games; in addition, since the redemption request corresponds to a game server, a game server is typically used in a large area in a game, so that the same redemption code can be used in the same effective different area. Therefore, the prize exchanging code issuing system provided by the embodiment of the specification has strong universality, and can be used in a plurality of areas of one game, so that a plurality of games can be used at the same time; parameters can be flexibly adjusted according to requirements, and the issuing requirements of the lottery ticket exchange codes in the game (including batch acquisition, world acquisition, time limitation, multiple acquisition, specific acquisition and the like) can be met.
In addition, a redemption code generation server 30 for acquiring configuration information for generating the redemption code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; processing the target character set by adopting an exhaustion segmentation method to obtain a target prize exchanging code set meeting configuration information; therefore, the target character set is processed by adopting the exhaustion segmentation method, so that the target prize exchanging code set is obtained by sampling on the segmentation basis, the situation that the obtained target prize exchanging code is repeated can be effectively avoided, the repeated checking processing is not needed under the situation that the target prize exchanging code is prevented from being repeated, the generation efficiency of generating the prize exchanging code can be further effectively improved, the coverage rate of the target prize exchanging code set is smaller than the set coverage rate, the probability that the prize exchanging code is guessed can be effectively reduced, and the security of the prize exchanging code is improved.
In the embodiment of the present disclosure, the redemption code generating server 30 first obtains configuration information for generating the redemption codes in the process of generating the target redemption code set, where the configuration information may include the redemption code length, number, batch, server, rewards, and receiving rules. The configuration information may be obtained according to a user instruction, for example, a configuration instruction input by a user through a configuration page may be obtained to obtain the configuration information.
The redemption code generation server 30, upon acquiring the configuration information, may generate a target redemption code set using the redemption code generation tool 301 in the redemption code generation server 30. In the process of generating the target redemption code set by using the redemption code generating tool 301, characters used by the redemption code generating tool 301 are target character sets from which misleading characters are removed, so as to avoid misleading caused by different fonts when each channel or platform is displayed to a player, especially misleading caused by different fonts on different iOS and Android devices, so that the accuracy of the redemption code input by a user is higher, the input efficiency of inputting the redemption code is improved, and the user experience is better.
In the embodiment of the present specification, the misunderstandable characters may be "0", "O", "I", and "Z", or "0", "O", and "I", etc. Further, the preset character set may include english characters and numerals, for example, 26 english letters and numerals of 0 to 9. For example, when the misinterpreted characters are "0", "O", "I" and "Z" and the preset character set includes 26 english letters and numbers of 0-9, the target character set may be to remove the english letters and numbers other than "0", "O", "I" and "Z" from the 26 english letters and the numbers of 0-9, and the english letters in the 32 characters are typically uppercase english letters, so as to reduce the probability of misinterpretation due to lowercase english letters.
In the embodiment of the present disclosure, in the process of generating the target redemption code set by using the redemption code generating tool 301, the redemption code generating server 30 further needs to process the target characters by using an exhaustive segmentation method after obtaining the target character set, so as to obtain the target redemption code set satisfying the configuration information.
In the embodiment of the present disclosure, in the process of processing the target characters by using the exhaustion segmentation method by the redemption code generation server 30 to obtain the target redemption code set satisfying the configuration information, as shown in fig. 2, the redemption code generation server 30 specifically performs the following steps:
s201, generating an initial arrangement character set with a set character length based on a target character set;
s202, performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed;
s203, sampling the modified ordered character set to obtain a sampled ordered character set;
S204, performing character conversion on the sampling sequence character set to obtain a converted character set as a target prize-exchanging code set.
In step S201, the set character length may be set by the user or the device, or may be set according to the actual requirement, and the set character length may be, for example, 10 characters, 12 characters, 20 characters, or the like, which is not specifically limited in this specification.
Specifically, a plurality of sets of arrangement characters of a set character length are randomly selected from the target character set, and the randomly selected plurality of sets of arrangement characters are used as an initial arrangement character set. The number of the plurality of groups of arrangement characters can be determined according to the number of the lottery numbers in the configuration information, and the number of the plurality of groups of arrangement characters is generally larger than the number of the lottery numbers in the configuration information, and of course, the number of the lottery numbers in the configuration information can also be equal to the number of the lottery numbers in the configuration information.
In the embodiment of the present specification, the plural sets refer to 2 sets and more than 2 sets.
For example, when the number of the redemption codes in the configuration information is 1000 and the character length is set to 10 characters, 1200 sets of arrangement characters with the length of 10 characters can be randomly selected from the target character set, and the selected 1200 sets of arrangement characters are used as the initial arrangement character set.
After the initial arrangement character set is acquired, step S202 is performed.
In step S202, firstly, a set number corresponding to the initial arrangement character set may be obtained; and performing decimal value removal from the initial sorting character set according to the set decimal number to obtain a modified sorting character set, wherein the coverage rate of the initial sorting character set is smaller than the set coverage rate.
In the embodiment of the present specification, the set number is usually a 32-system number, but may be a 16-system number, a 64-system number, or the like, which is not particularly limited in the present specification. The following specifically takes the setting of the number to be a 32-system number as an example.
In the embodiment of the specification, the setting coverage rate can be set manually or by equipment, or can be set according to actual requirements.
Specifically, the total number of the generated redemption codes can be determined according to the character length corresponding to the initial arrangement character set and the target character set; acquiring the coverage rate of the initial sequencing character set according to the total number and the number of characters in the initial sequencing character set; wherein the coverage of the initial ordered character set is less than the set coverage, for example, the set coverage is 10%, and the coverage of the initial ordered character set is less than 10%.
Specifically, the coverage of the initial ordered character set may be the quotient of the number of redemption codes in the configuration information divided by the total number of ordered characters. In addition, when the coverage rate of the initial sorting character set is detected to be larger than the set coverage rate, the generation of the initial sorting character set is directly stopped.
For example, if the total number of characters in the target character set corresponding to the initial arrangement character set is 32, and at this time, the character length of each ordered character is 10, each bit in the ordered characters may be one of the 32 characters, then it is determined that the total number of the generatable redemption codes is 32 10 in decimal scale, and if at this time, the number of characters in the generated initial arrangement character set is 10000, then it is determined that the coverage of the initial arrangement character set is 10000/32 10, so that the coverage of the initial arrangement character set is less than 10% of the set coverage.
At this time, the coverage rate of the initial sorting character set is smaller than the set coverage rate, so that the coverage rate of the final target lottery code set is smaller than the set coverage rate, and the probability of being guessed is higher when the coverage rate is higher, so that the probability of being guessed when the coverage rate of the target lottery code set is smaller than the set coverage rate can be effectively reduced, and the security of the lottery code is improved.
Specifically, after the set number of the binary numbers corresponding to the initial arrangement character set is obtained, part of the small-value arrangement characters in the initial arrangement character set can be removed, and then the probability of occurrence of the condition that the length of the converted lottery code is not matched with the length of the lottery code in the configuration information is reduced when the converted lottery code is converted into the lottery code later, so that the validity of the generated lottery code is ensured.
Specifically, the set number of the initial sequence character set can be obtained first; and removing sequencing characters smaller than the set value from the initial sequencing character set according to the set number to obtain a modified sequencing character set, wherein the coverage rate of the initial sequencing character set is smaller than the set coverage rate. In the embodiment of the present disclosure, the setting value may be set according to actual requirements.
For example, taking the case of setting the number of the binary digits to 32 and setting the character length to 10 as an example, if the generated initial arrangement character set has 000001, 0000001000 and 0000000100 ordered characters, if the set value is 0001000000, 0000000001, 0000001000 and 0000000100 are all smaller than 0001000000, so that 0000000001, 0000001000 and 0000000100 are removed from the initial ordered character set, and the problem that the converted exchange code and other exchange codes have large difference due to the fact that the value of the ordered character is too small is solved.
In the present embodiment, the modified character set includes multiple sets of ordered characters. Further, the plural sets means 2 sets or more than 2 sets.
After the modified character set is acquired, step S203 is performed.
In step S203, the total character length of the initial ordered character set may be first obtained, and then the modified ordered character set may be sampled on the total character length according to the average offset on the total character length of the initial ordered character set, to obtain a sampled ordered character set.
Specifically, the sampling parameters may be set to sequentially sample the modified ordered character set over the total length of the character according to the average offset over the total length of the character, resulting in a sampled ordered character set. The setting of sampling parameters comprises continuous value taking, random offset and other parameters. Therefore, the modified ordered character set is sampled according to the average offset on the total length of the characters to obtain the sampled ordered character set, and the situation that the sampled ordered characters are repeated can be effectively avoided, so that the repeated situation of the converted lottery is avoided when the lottery is converted in the follow-up process.
In the present embodiment, the sample ordering character set includes multiple sets of ordering characters.
After the sample ordering character set is obtained, step S204 is performed.
In step S204, the character conversion is performed on the sampling sequence character set to obtain a converted character set, the sequence of each group of characters in the converted character set is adjusted, and the converted character set after the sequence adjustment is used as a target prize-exchanging code set.
Specifically, each group of sequencing characters in the sequencing character set is converted according to the set characters, each converted set character set is obtained to serve as a conversion character set, the sequencing of each group of characters in the conversion character set is adjusted, and the conversion character set after sequencing adjustment is used as a target prize-exchanging code set.
Specifically, when the ordering of each group of characters in the converted character set is performed, each group of characters in the converted character set can be randomly disturbed, so that the converted character set after the ordering is adjusted is obtained, and the situation that the similarity of adjacent lottery-exchanging codes is large is avoided, so that misunderstanding possibly caused during distribution is avoided.
In the embodiment of the present disclosure, after generating the target redemption code set using the redemption code generating tool 301, the redemption code generating server 30 generates a final redemption file according to the target redemption code set, where the final redemption file may include an Excel table including the target redemption code set and data deployment scripts and files (files with suffix names txt, sql, etc.).
In this way, in the process of generating the target redemption code set by using the redemption code generating tool 301, the redemption code generating server 30 first obtains configuration information for generating the redemption code, and then removes misunderstood characters from the preset character set for generating the redemption code, thereby obtaining the target character set for generating the redemption code; processing the target character set by adopting an exhaustion segmentation method to obtain a target prize exchanging code set meeting configuration information; therefore, the target character set is processed by adopting the exhaustion segmentation method, so that the target prize exchanging code set is obtained by sampling on the segmentation basis, the situation that the obtained target prize exchanging code is repeated can be effectively avoided, the repeated checking processing is not needed under the situation that the target prize exchanging code is prevented from being repeated, the generation efficiency of generating the prize exchanging code can be further effectively improved, the coverage rate of the target prize exchanging code set is smaller than the set coverage rate, the probability that the prize exchanging code is guessed can be effectively reduced, and the security of the prize exchanging code is improved.
In the embodiment of the present disclosure, after the target redemption code set generated by the redemption code generating server 30, the generated target redemption code set is transmitted to the redemption code providing server 20, so that the redemption code providing server 20 receives the target redemption code set and stores the target redemption code set. So that the prize exchanging verification is carried out through the target prize exchanging code set when the prize exchanging request is received later.
In the embodiment of the specification, when a user performs a prize exchanging, a prize exchanging codeword string is input into a game client, and the game client receives the prize exchanging codeword string and then transmits the prize exchanging codeword string to a game server; the game server transmits the received redemption codeword string to the game server 10, thereby enabling the game server 10 to receive the redemption codeword string transmitted by the game client. And when receiving the prize-exchanging codeword string sent by the game client, the game server 10 generates a prize-exchanging request corresponding to the game server according to the prize-exchanging codeword string, and sends the prize-exchanging request to the prize-exchanging code issuing server 20, wherein the prize-exchanging request carries the prize-exchanging codeword string, the world identifier of the player and the player identifier.
Because the lottery request carries the lottery codeword string, the world identifier of the player and the player identifier, when the games are different, the world identifiers of the players in the lottery request are different, and the player identifiers are also different under normal conditions, so that the same lottery code can be applied to a plurality of games; in addition, since the redemption request corresponds to a game server, a game server is typically used in a large area in a game, so that the same redemption code can be used in the same effective different area.
Specifically, the player identifier may be a player identifier of the user obtained by the game client when the game client receives the redemption code string, and the player identifier may specifically be a player ID.
In the embodiment of the present specification, the world identifier of the player is typically the world ID of the player.
Specifically, when receiving the prize-redemption codeword string sent by the game client, the game server 10 generally carries the world identifier and the player identifier of the player, so that a prize-redemption request can be generated according to the world identifier and the player identifier of the player and then sent to the prize-redemption code issuing server 20.
In the embodiment of the present disclosure, when generating the redemption request, the game server 10 generally encrypts the redemption request, so that after the redemption request is received by the redemption code providing server 20, decryption is required to obtain the redemption codeword string in the redemption request, and the player's world identifier and the player's identifier, so as to improve the security of verification.
For example, taking the game as a best-quality galloping, the user ID is 51254, the user inputs the prize-exchanging codeword string as "espdg9ufhsdo" in the game, so that the game client receives "espdg9ufhsdo" input by 51254 and transmits it to the game server, at this time, the game server acquires the world number of the best-quality galloping, for example, 1120015, and then sends "51254", "espdg9ufhsdo" and "1120015" to the game server 10, and the game server 10 generates a prize-exchanging request according to the received "51254", "espdg9ufhsdo" and "1120015" and sends the prize-exchanging request to the prize-exchanging code issuing server 20.
In the embodiment of the present disclosure, when receiving the redemption request, the redemption code server 20 verifies the redemption information carried by the redemption request using the stored target redemption code set; and when the verification is passed, the generated prize-exchanging confirmation information is sent to the game server. And the game server 10 receives the redemption confirmation information and then awards the player to the target player corresponding to the player identification according to the redemption confirmation information. Of course, after receiving the redemption confirmation information, the redemption confirmation server 10 may also send the redemption confirmation information to the game server, so that the game server may redeem the target player corresponding to the player identifier according to the redemption confirmation information, which is not particularly limited in this specification.
In the embodiment of the present disclosure, when the game server 10 awards the target player corresponding to the player identifier according to the redemption confirmation information, if it determines that the redemption object is in the redemption content white list, the game server awards the target player according to the redemption confirmation information; and if the awarded items are not in the awarded content white list, forbidding awarding.
Specifically, when the game server 10 performs the redemption, it may first acquire the redemption item, then determine whether the redemption item is on the redemption content white list, if so, perform the redemption, and otherwise, prohibit the redemption.
Specifically, since the prize configuration of the redemption code is manually filled in, there is a possibility of errors, and a rationality check is required when finally awarding the prize to the player. At this time, a redemption content white list may be set in the game server, where the redemption content white list includes information including a class and a number of redemption, and ensures that a force of the prize delivery is controllable, thereby effectively preventing an inadvertent theft problem.
In the embodiment of the present disclosure, after determining that the redemption object is in the redemption content white list, if the game server 10 determines that the number of redemption times of the target player is within the set number of times in the set period of time, the game server performs the redemption on the target player according to the redemption confirmation information; and if the number of times of the prize exchange is not within the set number of times, prohibiting the prize exchange.
Specifically, the present invention relates to
In the embodiment of the specification, the prize exchanging code issuing system can also provide only one interface entry for inputting the prize exchanging code for the user at the client, and can further provide the function of copying from the pasting plate so as to improve the user experience and simplify the operation steps of inputting the prize exchanging code for the user. The prize exchanging code issuing system simplifies the realization part of the client, gives a large amount of complex contents to the rear end of the server, is convenient for subsequent flexible structure adjustment, and ensures that the implantation cost of the client can be very low.
Specifically, the game server 10 determines whether the number of times the target player has awarded the prize is within the set number of times during the set period of time when the game is awarded, and if so, the game is awarded, and if not, the game indicates that the number of times the target player has awarded the prize exceeds the set number of times, and if not, the game is awarded. The set number of times is usually the maximum number of times that the user can pay a prize, for example, an integer of not less than 1 such as 5, 6, and 10 times.
In the embodiment of the present specification, the set period of time may be set according to actual demands, for example, daily or every month or weekly, etc., and the present specification is not particularly limited.
Thus, the maximum number of times of winning the target user in the set time period can be ensured through the set times, and the probability of occurrence of accidents that one person repeatedly wins the lottery is reduced. And the cooling time of inputting the lottery ticket exchanging code can be set, so that the situation that a player maliciously guesses the lottery ticket exchanging code is avoided, and the lottery ticket exchanging safety is further improved.
In this embodiment of the present disclosure, a functional switch may be further provided in the game, which may dynamically turn on or off the prize-exchanging code function, block the player from using the prize-exchanging code, and give a reasonable prompt, for example, when the verification code function has a problem, the game server 10 may send an instruction to the client to close the prize-exchanging code function, further close the prize-exchanging code function, and display a prompt at the client, and may be prompted when the prize-exchanging code function is closed or when the prize-exchanging code function can be used. In addition, when the functional switch fails to be turned on, the maximum winning number of the day can be set for each user, so that the situation that the winning number of the same user is larger than the maximum winning number can be avoided under unexpected conditions. Furthermore, the cooling time for repeatedly inputting the prize exchanging code can be increased at the game side, the situation that a player maliciously guesses the prize exchanging code is avoided, and the safety is further improved.
In the embodiment of the present disclosure, the prize redemption code delivery server 20 is usually placed in the same constraint network as the game server 10 (GAMESERVER), and is not open to the public network interface, but only communicates with the game server, so as to improve security, avoid being detected by the external network, and effectively improve the security of the prize redemption code delivery server 20. The redemption code delivery server 20 is essentially a Web server that is configured from LAMP (linux+apache+mysql+php).
In the embodiment of the present disclosure, the redemption code delivery server 20 may be an electronic device such as a notebook computer, a desktop computer, or an all-in-one machine. Further, the game server 10 may be an electronic device such as a notebook computer, a desktop computer, or an all-in-one machine. And, the redemption code generating server 30 may be an electronic device such as a notebook computer, a desktop computer, an all-in-one machine, or the like.
Specifically, the redemption code delivery server 20, upon receiving the redemption request, may utilize a pre-stored target redemption code set to verify that the redemption code word strings in the redemption request are valid, that the player's world identification corresponds to the game server, and that the redemption code word strings satisfy the redemption setting rules.
Specifically, when the redemption request is encrypted at the game server 10, verification means such as detecting whether the redemption request is encrypted by a specified encryption method, and detecting whether a redemption codeword string in the redemption request exists are also required.
In the embodiment of the present disclosure, the redemption setting rules may include that only one batch can be fetched, etc.
For example, taking the game as a best-quality galloping, and taking the user ID 51254 as an example, the game server 10 generates a redemption request according to the received "51254", "espdg ufhsdo" and "1120015", encrypts the redemption request, and sends the encrypted redemption request to the redemption code issuing server 20; after receiving the encrypted redemption request, the redemption code delivery server 20 first detects whether the redemption request is encrypted in a specified encryption manner, and if so, decrypts the redemption request; whether data exists in the prize-exchanging codeword string of the decrypted prize-exchanging request or not, and if so, determining that a prize-exchanging code exists; after determining that the redemption code exists, extracting a redemption codeword string ' espdg & lt ufhsdo & gt from the decrypted redemption request, searching from a pre-stored target redemption code set by taking ' espdg & lt 9 & gt ufhsdo ' as a search keyword, and determining that the redemption code is effective if the redemption code is found; extracting 1120015 after determining that the prize exchanging code is effective, judging whether 1120015 corresponds to a game server for sending the prize exchanging request, and if so, determining that the world number is correct; finally judging whether the lottery ticket exchanging code meets the lottery ticket exchanging setting rule, if so, verifying to pass; otherwise, the verification is not passed.
Because the game server 10 generates the redemption request according to the redemption codeword string when receiving the redemption code codeword string sent by the game client, the redemption request is prompted to carry the redemption codeword string, the world identifier of the player and the player identifier, and further, when the game is different, the world identifiers of the players in the redemption request are different, and in general, the player identifiers are also different. Thus, the same prize exchanging code can be applied to a plurality of games; in addition, since the redemption request corresponds to a game server, a game server is typically used in a large area in a game, so that the same redemption code can be used in the same effective different area. Therefore, the prize-exchanging code issuing system provided by the embodiment of the specification has strong universality, and can be used in a plurality of areas of one game, so that a plurality of games can be used at the same time, and the universality of the prize-exchanging code can be effectively improved.
Based on the technical scheme, the prize exchanging code generating server is used for acquiring configuration information for generating the prize exchanging code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting the configuration information, and generating a lottery request and sending the lottery request to a lottery code issuing server when receiving a lottery codeword string sent by a game client; the prize exchanging code issuing server is used for receiving and storing the target prize exchanging code set and verifying prize exchanging information carried by the prize exchanging request by utilizing the target prize exchanging code set when the prize exchanging request is received; when the verification is passed, the generated prize exchanging confirmation information is sent to the game server; the game server is used for receiving the lottery ticket exchange confirmation information and conducting lottery ticket exchange on the target player corresponding to the player identifier according to the lottery ticket exchange confirmation information; in this way, in the generation stage of the lottery ticket exchanging code, the target character set is processed by adopting the exhaustion segmentation method, so that the target lottery ticket exchanging code set is obtained by sampling on the basis of segmentation, the situation that the obtained target lottery ticket exchanging code is repeated can be effectively avoided, the repeated checking processing is not needed under the situation that the target lottery ticket exchanging code is repeated is avoided, the generation efficiency of generating the lottery ticket exchanging code can be effectively improved, the coverage rate of the target lottery ticket exchanging code set is smaller than the set coverage rate, the probability that the lottery ticket exchanging code is guessed can be effectively reduced, and the security of the lottery ticket exchanging code is improved; in the prize-exchanging stage of the prize-exchanging code, the security and standardization of the prize-exchanging code can be effectively ensured through the interaction of the prize-exchanging code issuing server, the game server and the game server, and the prize-exchanging code generating server generates all the prize-exchanging codes, so that the standard of the prize-exchanging codes is unified, the prize-exchanging code can be applied to a plurality of games, and the universality and the expansibility of the prize-exchanging code issuing system can be effectively improved.
Example two
Referring to fig. 3, an embodiment of the present application provides a method for generating a redemption code, which is applied to a redemption code generation server, and includes:
S301, acquiring configuration information for generating a prize exchanging code;
S302, removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code;
S303, processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting the configuration information, wherein the coverage rate of the target lottery code set is smaller than the set coverage rate.
In an alternative embodiment, the processing the target character by using an exhaustion segmentation method to obtain a target prize-redemption code set meeting the configuration information includes:
Generating an initial arrangement character set with a set character length based on the target character set;
performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed;
Sampling the modified ordered character set to obtain a sampled ordered character set;
And performing character conversion on the sampling sequence character set to obtain a converted character set serving as the target prize-redemption code set.
In an alternative embodiment, the performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed includes:
Acquiring a set number of the initial sequencing character set;
And removing sequencing characters smaller than a set value from the initial sequencing character set according to the set number of the system, and obtaining the modified sequencing character set, wherein the coverage rate of the initial sequencing character set is smaller than the set coverage rate.
In an alternative embodiment, the sampling the modified ordered character set to obtain a sampled ordered character set includes:
And sampling the modified ordered character set on the character total length according to the average offset on the character total length of the initial ordered character set, so as to obtain the sampled ordered character set.
In an optional implementation manner, the performing character conversion on the sampling ordering character set to obtain a converted character set as the target redemption code set includes:
and performing character conversion on the sampling ordering character set to obtain a conversion character set, adjusting the ordering of each group of characters in the conversion character set, and taking the conversion character set after the ordering adjustment as the target prize-exchanging code set.
Example III
Referring to fig. 4, an embodiment of the present application provides a generating device for a redemption code, where the device includes:
A configuration information obtaining unit 401, configured to obtain configuration information for generating a redemption code;
a character generating unit 402, configured to remove misleading characters from a preset character set for generating the redemption code, so as to obtain a target character set for generating the redemption code;
And the prize exchanging code obtaining unit 403 is configured to process the target character set by using an exhaustion segmentation method to obtain a target prize exchanging code set meeting the configuration information, where a coverage rate of the target prize exchanging code set is smaller than a set coverage rate.
In an alternative embodiment, the prize-redemption code acquisition unit 403 is configured to generate an initial arrangement character set with a set character length based on the target character set; performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed; sampling the modified ordered character set to obtain a sampled ordered character set; and performing character conversion on the sampling sequence character set to obtain a converted character set serving as the target prize-redemption code set.
In an alternative embodiment, the prize-redemption code acquisition unit 403 is configured to acquire a set number of digits of the initial ordered character set; and removing sequencing characters smaller than a set value from the initial sequencing character set according to the set number of the system, and obtaining the modified sequencing character set, wherein the coverage rate of the initial sequencing character set is smaller than the set coverage rate.
In an alternative embodiment, the prize-redemption code acquiring unit 403 is configured to sample the modified ordered character set over the total length of the characters according to an average offset over the total length of the characters of the initial ordered character set, to obtain the sampled ordered character set.
In an alternative embodiment, the redemption code obtaining unit 403 is configured to perform character conversion on the sampled ordered character set to obtain a converted character set, adjust an ordering of each group of characters in the converted character set, and use the converted character set after the ordering is adjusted as the target redemption code set.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 5 is a block diagram of an electronic device 800 illustrating a method for generating a redemption code in accordance with an exemplary embodiment. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/presentation (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides a presentation interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to present and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for rendering audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication part 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform a method of generating a redemption code, the method comprising:
acquiring configuration information for generating a prize exchanging code;
removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code;
and processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery code set meeting the configuration information, wherein the coverage rate of the target lottery code set is smaller than the set coverage rate.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.
Claims (9)
1. A redemption code delivery system comprising a game server, a redemption code delivery server and a redemption code generation server, the redemption code delivery server and the game server being disposed in the same restricted network, wherein the system further comprises:
The prize exchanging code generating server is used for acquiring configuration information for generating the prize exchanging code; removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code; processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery-exchanging code set meeting the configuration information, wherein the coverage rate of the target lottery-exchanging code set is smaller than the set coverage rate, and the generated target lottery-exchanging code set is sent to the lottery-exchanging code issuing server; wherein, based on the target character set, an initial ordering character set with a set character length is generated; performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed; acquiring the total length of characters of the initial sequencing character set, setting sampling parameters according to the average offset on the total length of the characters, and sampling the modified sequencing character set on the total length of the characters according to the sequence to obtain a sampling sequencing character set; performing character conversion on the sampling ordering character set to obtain a converted character set serving as the target prize-redemption code set;
the game server is used for generating a prize redemption request according to the prize redemption codeword string when receiving the prize redemption codeword string sent by the game client, and sending the prize redemption request to the prize redemption code issuing server, wherein the prize redemption request carries the prize redemption codeword string, a player identifier and a player identifier;
the prize exchanging code issuing server is used for receiving and storing the target prize exchanging code set and verifying prize exchanging information carried by the prize exchanging request by utilizing the target prize exchanging code set when the prize exchanging request is received; when the verification is passed, the generated prize exchanging confirmation information is sent to the game server;
The game server is used for receiving the prize-exchanging confirmation information and exchanging the prize for the target player corresponding to the player identification according to the prize-exchanging confirmation information.
2. The system of claim 1, wherein the game server is configured to, when a target player corresponding to the player identifier is awarded according to the redemption confirmation information, if it is determined that a redemption object is in a redemption content white list, awarding the target player according to the redemption confirmation information; and if the awarded article is not in the awarded content white list, forbidding awarding.
3. The system of claim 2, wherein the game server, after determining that the redemption content white list is for the redemption item, if determining that the number of redemption times for the target player is within a set number of times within a set period of time, performs redemption on the target player based on the redemption validation information; and if the number of times of the prize exchange is not within the set number of times, forbidding the prize exchange.
4. The system of claim 1, wherein the redemption code delivery server verifies redemption information carried by the redemption request, comprising:
The prize exchanging code issuing server is used for checking whether the prize exchanging codeword string in the prize exchanging request is valid or not by utilizing the target prize exchanging code set, checking whether the world identifier of the player corresponds to the game server or not, and checking whether the prize exchanging codeword string meets a prize exchanging setting rule or not.
5. A method for generating a redemption code applied to a redemption code generation server, the method comprising:
acquiring configuration information for generating a prize exchanging code;
removing misleading characters from a preset character set for generating the lottery code to obtain a target character set for generating the lottery code;
processing the target character set by adopting an exhaustion segmentation method to obtain a target lottery-exchanging code set meeting the configuration information, wherein the coverage rate of the target lottery-exchanging code set is smaller than a set coverage rate; wherein, based on the target character set, an initial ordering character set with a set character length is generated; performing decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with decimal values removed; acquiring the total length of characters of the initial sequencing character set, setting sampling parameters according to the average offset on the total length of the characters, and sampling the modified sequencing character set on the total length of the characters according to the sequence to obtain a sampling sequencing character set; and performing character conversion on the sampling sequence character set to obtain a converted character set serving as the target prize-redemption code set.
6. The method of claim 5, wherein performing the decimal value removal on the ordered characters in the initial ordered character set to obtain a modified ordered character set with the decimal values removed, comprises:
Acquiring a set number of the initial sequencing character set;
And removing sequencing characters smaller than a set value from the initial sequencing character set according to the set number of the system, and obtaining the modified sequencing character set, wherein the coverage rate of the initial sequencing character set is smaller than the set coverage rate.
7. The method of claim 6, wherein said character converting said sample ordered character set to obtain a converted character set as said target redemption code set comprises:
and performing character conversion on the sampling ordering character set to obtain a conversion character set, adjusting the ordering of each group of characters in the conversion character set, and taking the conversion character set after the ordering adjustment as the target prize-exchanging code set.
8. An electronic device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, where the one or more programs include instructions for performing the method according to any one of claims 5-7.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the corresponding steps of the method according to any of claims 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110546096.1A CN113240471B (en) | 2021-05-19 | 2021-05-19 | Method and device for generating prize-exchanging code, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110546096.1A CN113240471B (en) | 2021-05-19 | 2021-05-19 | Method and device for generating prize-exchanging code, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113240471A CN113240471A (en) | 2021-08-10 |
CN113240471B true CN113240471B (en) | 2024-10-15 |
Family
ID=77137568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110546096.1A Active CN113240471B (en) | 2021-05-19 | 2021-05-19 | Method and device for generating prize-exchanging code, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113240471B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116271846B (en) * | 2022-09-08 | 2025-08-22 | 网易(杭州)网络有限公司 | Game beta test qualification issuance method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838753A (en) * | 2012-11-23 | 2014-06-04 | 腾讯科技(北京)有限公司 | Storage and verification method and device for exchange codes |
CN104751398A (en) * | 2015-03-28 | 2015-07-01 | 薛刚 | Fair lottery number drawing method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6758755B2 (en) * | 1996-11-14 | 2004-07-06 | Arcade Planet, Inc. | Prize redemption system for games executed over a wide area network |
CN105574737A (en) * | 2015-12-15 | 2016-05-11 | 中国建设银行股份有限公司 | Data processing system and method for generating and maintaining redeem codes |
CN106559222A (en) * | 2016-11-28 | 2017-04-05 | 广东省信息安全测评中心 | Target password rule set acquisition methods and system in method of exhaustion decryption |
CN108573402B (en) * | 2018-03-12 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Exchange code issuing method, server and system |
CN111723360B (en) * | 2019-03-18 | 2023-11-03 | 北京京东尚科信息技术有限公司 | Credential code processing method, device and storage medium |
CN110677239B (en) * | 2019-08-26 | 2022-09-06 | 深圳市共进电子股份有限公司 | Verification code generation method and device |
CN110738513B (en) * | 2019-09-11 | 2022-08-02 | 完美世界(北京)软件科技发展有限公司 | Method and device for generating and verifying redemption code |
CN111539502B (en) * | 2020-03-25 | 2021-10-15 | 中国平安财产保险股份有限公司 | Anti-counterfeiting two-dimensional code generation method and device, server and storage medium |
CN112380810A (en) * | 2020-11-24 | 2021-02-19 | 深圳技福教育科技有限公司 | Exchange code generation method and system |
-
2021
- 2021-05-19 CN CN202110546096.1A patent/CN113240471B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838753A (en) * | 2012-11-23 | 2014-06-04 | 腾讯科技(北京)有限公司 | Storage and verification method and device for exchange codes |
CN104751398A (en) * | 2015-03-28 | 2015-07-01 | 薛刚 | Fair lottery number drawing method |
Also Published As
Publication number | Publication date |
---|---|
CN113240471A (en) | 2021-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109039990B (en) | Behavior verification method and device based on verification code | |
EP3300407B1 (en) | Method and device for processing verification code | |
HK1207188A1 (en) | Method, terminal, server and system for information registration | |
US20120276976A1 (en) | Method for tracking lottery purchases and notifying winners electronically | |
JP7444219B2 (en) | Biometric data matching system | |
CN105263126B (en) | Short-message verification method, apparatus and system | |
KR20140145178A (en) | Improvements relating to security methods using mobile devices | |
CN113240471B (en) | Method and device for generating prize-exchanging code, electronic equipment and storage medium | |
EP3145152B1 (en) | Short message service reading method and device | |
JP2009136350A (en) | Game system, server and program | |
CN111669744A (en) | Information processing method, device and electronic device | |
CN104853030A (en) | Information processing method and mobile terminal | |
EP2070234B1 (en) | Securing of code for personal entity | |
JP2024120007A (en) | Information processing system, server, and program | |
CN113935753B (en) | Gas station receipt anti-counterfeiting method, device and electronic equipment | |
BE1026342B9 (en) | DEVICE AND METHOD FOR SECURE IDENTIFICATION OF A USER | |
JP2007226665A (en) | Authentication device and mobile phone terminal | |
EP3877878A1 (en) | Device and method to control access to protected functionality of applications | |
CN106712960B (en) | Processing method and device of verification code information | |
CN110086761B (en) | Method and equipment for providing resources | |
CN113626837A (en) | Parameter management method, equipment and computer readable storage medium | |
CN112351131A (en) | Control method and device of electronic equipment, electronic equipment and storage medium | |
CN113283264B (en) | Identification code sharing method and device | |
CN112529560A (en) | Offline cash registering system, method and device and electronic equipment | |
JP2021012620A (en) | Processing method, portable terminal, payment server, payment method, and program |
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 |