Method, device, electronic device and storage medium for generating prize redemption code

The target character set is processed through the exhaustive segmentation method to generate a set of prize redemption codes with a coverage rate less than the set coverage rate, which solves the problems of low efficiency and poor security of prize redemption codes in the existing technology, and achieves high efficiency, safety and security of prize redemption codes. unity.

CN113240471BActive Publication Date: 2024-10-15BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110546096.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-10-15
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

In the existing technology, the prize redemption code generation efficiency is low, the standards are not uniform, and there are problems such as duplication and poor security.

Method used

The target character set is processed using the exhaustive segmentation method to generate a target reward code set that satisfies the configuration information. The coverage rate is less than the set coverage rate. The reward code is verified and redeemed through the interaction between the reward code issuance server and the game server.

Benefits of technology

It improves the efficiency of prize redemption code generation, avoids duplication of prize redemption codes, enhances the security and standard uniformity of prize redemption codes, and improves the versatility and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113240471B_ABST
    Figure CN113240471B_ABST
Patent Text Reader

Abstract

The present invention discloses a system including a game server, a prize redemption code issuing server and a prize redemption code generating server. The prize redemption code issuing server and the game server are arranged in the same restricted network. The prize redemption code generating server is used to obtain configuration information for generating a prize redemption code; an exhaustive segmentation method is used to process a target character set to obtain a target prize redemption code set that meets the configuration information; the game server is used to generate a prize redemption request according to the prize redemption code character string when receiving a prize redemption code character string sent by a game client, and send the prize redemption request to the prize redemption code issuing server; the prize redemption code issuing server is used to receive and store the target prize redemption code set, and when receiving the prize redemption request, verify the prize redemption information carried in the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server; the game server is used to receive the prize redemption confirmation information and redeem the prize for the target player corresponding to the player identifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a method for generating a prize redemption code, a generating device, an electronic device and a storage medium. Background Art

[0002] With the rapid development of computers, there are more and more game applications in computers. In order to attract more users and give users a better experience, some promotional activities are usually carried out, among which the redemption code is an effective promotional means. Game applications usually send virtual redemption codes on various platforms. Users use virtual redemption codes to redeem prizes in the game to obtain corresponding virtual items or virtual currency.

[0003] In the prior art, when a game application uses a redemption code for promotion, it usually uses a redemption code generator and a CDK redemption code generation tool to generate the redemption code. At this time, the base number and length of the redemption code according to the requirements are set automatically, resulting in inconsistent standards for the generated redemption codes. In addition, the generated redemption codes usually contain repeated random numbers. In this way, a duplicate check needs to be performed after the redemption codes are generated, resulting in low efficiency in generating redemption codes, inconsistent standards for redemption codes, and confusing specifications and poor security of redemption codes. Summary of the invention

[0004] The embodiments of the present invention provide a method, a device, an electronic device and a storage medium for generating a prize redemption code, which can effectively improve the generation efficiency of the prize redemption code.

[0005] The first aspect of the embodiment of the present invention further provides a prize redemption code issuance system, including a game server, a prize redemption code issuance server and a prize redemption code generation server, wherein the prize redemption code issuance server and the game server are arranged in the same restricted network, wherein the system further includes:

[0006] The prize redemption code generating server is used to obtain configuration information for generating prize redemption codes; remove easily misunderstood characters from a preset character set for generating the prize redemption codes to obtain a target character set for generating the prize redemption codes; process the target character set using an exhaustive segmentation method to obtain a target prize redemption code set that meets the configuration information, wherein the coverage rate of the target prize redemption code set is less than the set coverage rate, and send the generated target prize redemption code set to the prize redemption code issuing server;

[0007] The game server is used to generate a prize redemption request according to the prize redemption code string when receiving the prize redemption code string sent by the game client, and send the prize redemption request to the prize redemption code issuing server, wherein the prize redemption request carries the prize redemption code string, the player's world identifier and the player identifier;

[0008] The prize redemption code issuing server is used to receive and store the target prize redemption code set, and when receiving the prize redemption request, use the target prize redemption code set to verify the prize redemption information carried by the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server;

[0009] The game server is used to receive the prize redemption confirmation information and to redeem the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information.

[0010] Optionally, the game server is used to, when redeeming the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information, if it is determined that the prize redemption item is in the prize redemption content whitelist, redeem the prize for the target player according to the prize redemption confirmation information; if the prize redemption item is not in the prize redemption content whitelist, prohibiting prize redemption.

[0011] Optionally, after the game server determines that the prize redemption item is in the prize redemption content whitelist, if it is determined that the target player's prize redemption times are within a set number within a set time period, the prize redemption will be performed for the target player according to the prize redemption confirmation information; if the prize redemption times are not within the set number, prize redemption is prohibited.

[0012] Optionally, the prize redemption code issuing server verifies the prize redemption information carried in the prize redemption request, including:

[0013] The redemption code issuing server is used to use the target redemption code set to verify whether the redemption code string in the redemption request is valid, whether the world identifier of the player corresponds to the game server, and whether the redemption code string meets the redemption setting rules.

[0014] A second aspect of an embodiment of the present invention provides a method for generating a redemption code, which is applied to a redemption code generation server, and the method includes: obtaining configuration information for generating a redemption code; removing easily misunderstood characters from a preset character set for generating the redemption code to obtain a target character set for generating the redemption code; using an exhaustive segmentation method to process the target character set to obtain a target redemption code set that meets the configuration information, wherein the coverage rate of the target redemption code set is less than the set coverage rate.

[0015] Optionally, the exhaustive segmentation method is used to process the target characters to obtain a target prize redemption code set that satisfies the configuration information, including:

[0016] Based on the target character set, generating an initial arranged character set of set character length;

[0017] Remove decimal values ​​from the sort characters in the initial sort character set to obtain a modified sort character set with decimal values ​​removed;

[0018] Sampling the modified sort character set to obtain a sampled sort character set;

[0019] Character conversion is performed on the sampled sorted character set to obtain a converted character set as the target prize redemption code set.

[0020] Optionally, removing decimal values ​​from the sort characters in the initial sort character set to obtain a modified sort character set with decimal values ​​removed includes:

[0021] Obtaining a set base number of the initial sort character set;

[0022] According to the set base number, sort characters whose values ​​are smaller than the set value are removed from the initial sort character set to obtain the modified sort character set, wherein the coverage of the initial sort character set is smaller than the set coverage.

[0023] Optionally, sampling the modified sort character set to obtain a sampled sort character set includes:

[0024] The modified sorted character set is sampled on the total character length according to the average offset on the total character length of the initial sorted character set to obtain the sampled sorted character set.

[0025] Optionally, performing character conversion on the sample sorted character set to obtain a converted character set as the target prize redemption code set includes:

[0026] Character conversion is performed on the sampled sorted character set to obtain a converted character set, and the sorting of each group of characters in the converted character set is adjusted, and the converted character set after the adjusted sorting is used as the target prize redemption code set.

[0027] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to execute operation instructions corresponding to the method for generating a redemption code as provided in the first aspect.

[0028] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps corresponding to the method for generating a redemption code as provided in the first aspect.

[0029] The above one or more technical solutions in the embodiments of the present application have at least the following technical effects:

[0030] Based on the above technical solution, the prize redemption code generation server is used to obtain configuration information for generating a prize redemption code; remove easily misunderstood characters from a preset character set for generating the prize redemption code to obtain a target character set for generating the prize redemption code; use an exhaustive segmentation method to process the target character set to obtain a target prize redemption code set that satisfies the configuration information; the game server is used to generate a prize redemption request when receiving a prize redemption code string sent by a game client, and send the prize redemption request to the prize redemption code issuance server; the prize redemption code issuance server is used to receive and store the target prize redemption code set, and when receiving the prize redemption request, use the target prize redemption code set to verify the prize redemption information carried by the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server; the game server is used to receive the prize redemption confirmation information, and match the player identifier to the prize redemption confirmation information according to the prize redemption confirmation information. target players to redeem prizes; in this way, in the redemption code generation stage, the target character set is processed by exhaustive segmentation method, so that the target redemption code set is sampled on the basis of segmentation, which can effectively avoid the duplication of the obtained target redemption code. When the target redemption code is duplicative, there is no need to check for duplicates, thereby effectively improving the generation efficiency of the redemption code, and the coverage rate of the target redemption code set is less than the set coverage rate, which can effectively reduce the probability of the redemption code being guessed, and improve the security of the redemption code; in the redemption code redemption stage, through the interaction of the redemption code issuance server, the game server and the game server, the security and standardization of the redemption code redemption can be effectively ensured. In addition, since all redemption codes are generated by the redemption code generation server, the standard of the redemption code is unified and can be applied to multiple games, which can effectively improve the versatility and extensibility of the redemption code issuance system. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A system architecture diagram of a prize redemption code distribution system provided in an embodiment of the present application;

[0032] Figure 2 A flowchart of a method for generating a target prize redemption code set using an exhaustive segmentation method provided in an embodiment of the present application;

[0033] Figure 3 A flowchart of a method for generating a prize redemption code provided in an embodiment of the present application;

[0034] Figure 4 A block diagram of a device for generating a prize redemption code provided in an embodiment of the present application;

[0035] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The main implementation principles, specific implementation methods and corresponding beneficial effects of the technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0037] Embodiment 1

[0038] Please refer to Figure 1 The embodiment of the present application provides a system for issuing a prize redemption code, including a game server 10, a prize redemption code issuing server 20 and a prize redemption code generating server 30, wherein the prize redemption code issuing server 20 and the game server 10 are arranged in the same restricted network, wherein the system further includes:

[0039] The prize redemption code generating server 30 is used to obtain configuration information for generating prize redemption codes; remove easily misunderstood characters from the preset character set for generating prize redemption codes to obtain a target character set for generating prize redemption codes; process the target character set using an exhaustive segmentation method to obtain a target prize redemption code set that meets the configuration information, wherein the coverage rate of the target prize redemption code set is less than the set coverage rate, and send the generated target prize redemption code set to the prize redemption code issuing server 20;

[0040] The game server 10 is used to generate a prize redemption request corresponding to the game server 10 according to the prize redemption code string when receiving the prize redemption code string sent by the game client, and send the prize redemption request to the prize redemption code issuing server 20, wherein the prize redemption request carries the prize redemption code string, the player's world identifier and the player identifier;

[0041] The prize redemption code issuing server 20 is used to receive and store the target prize redemption code set, and when receiving a prize redemption request, use the target prize redemption code set to verify the prize redemption information carried in the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server;

[0042] The game server 10 is used to receive the prize redemption confirmation information and redeem the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information.

[0043] When the game server 10 receives the redemption code string sent by the game client, it will generate a redemption request based on the redemption code string. At this time, the redemption request will carry the redemption code string, the player's world identifier and the player identifier. At this time, the player's world identifier in the redemption request is different in different games, and usually the player identifier is also different. In this way, the same redemption code can be used in multiple games. In addition, since the redemption request corresponds to the game server, and a large area in a game usually uses a game server, the same redemption code can be used in different valid large areas. It can be seen that the redemption code issuance system provided in the embodiment of this specification is highly versatile and can be used in multiple large areas of a game, so that multiple games can be used at the same time; parameters can also be flexibly adjusted according to needs to meet the issuance needs of redemption codes in the game (including collection by batch, collection by world, time limit, multiple collection, specific collection, etc.).

[0044] In addition, the redemption code generation server 30 is used to obtain configuration information for generating redemption codes; remove easily misunderstood characters from the preset character set for generating redemption codes to obtain a target character set for generating redemption codes; use an exhaustive segmentation method to process the target character set to obtain a target redemption code set that meets the configuration information; in this way, the target character set is processed by the exhaustive segmentation method, so that the target redemption code set is sampled on the basis of segmentation, which can effectively avoid the existence of duplications in the obtained target redemption codes. When avoiding the existence of duplications in the target redemption codes, there is no need to perform duplicate checking, thereby effectively improving the generation efficiency of the redemption codes, and the coverage rate of the target redemption code set is less than the set coverage rate, which can effectively reduce the probability of the redemption codes being guessed, thereby improving the security of the redemption codes.

[0045] In the embodiment of the specification, the prize redemption code generation server 30 first obtains configuration information for generating the prize redemption code during the process of generating the target prize redemption code set. The configuration information may include the length, quantity, batch, server, reward and collection rules of the prize redemption code, etc. The configuration information may generally be obtained according to user instructions, for example, the configuration information may be obtained by obtaining configuration instructions that the user may enter on the configuration page.

[0046] After obtaining the configuration information, the prize redemption code generation server 30 can use the prize redemption code generation tool 301 in the prize redemption code generation server 30 to generate a target prize redemption code set. In the process of using the prize redemption code generation tool 301 to generate the target prize redemption code set, the characters used by the prize redemption code generation tool 301 are the target character set with easily misunderstood characters removed, the purpose of which is to avoid misunderstandings caused by different fonts when displayed to players on various channels or platforms, especially misunderstandings caused by different fonts on different iOS and Android devices, so that the prize redemption code entered by the user is more accurate, the input efficiency of the prize redemption code is improved, and the user experience is better.

[0047] In the embodiments of the present specification, the easily misunderstood characters may be "0", "O", "I", "Z", etc., or may be "0", "O", "I", etc. Further, the preset character set may include English characters and numeric characters, for example, may include 26 English letters and numbers 0-9. For example, when the easily misunderstood characters are "0", "O", "I", and "Z" and the preset character set includes 26 English letters and numbers 0-9, the target character set may be a total of 32 characters from the 26 English letters and numbers 0-9, excluding the English letters and numbers other than "0", "O", "I", and "Z", and the English letters in the 32 characters are usually uppercase English letters to reduce the probability of misunderstanding due to lowercase English letters.

[0048] In the embodiment of this specification, when the redemption code generation server 30 uses the redemption code generation tool 301 to generate a target redemption code set, after obtaining the target character set, it is necessary to use an exhaustive segmentation method to process the target characters to obtain a target redemption code set that meets the configuration information.

[0049] In the embodiment of this specification, the prize redemption code generation server 30 processes the target characters by using the exhaustive segmentation method to obtain the target prize redemption code set that meets the configuration information, such as Figure 2 As shown, the prize redemption code generation server 30 specifically performs the following steps:

[0050] S201, generating an initial arrangement character set of set character length based on a target character set;

[0051] S202, removing decimal values ​​from the sorting characters in the initial sorting character set to obtain a modified sorting character set with decimal values ​​removed;

[0052] S203, sampling the modified sort character set to obtain a sampled sort character set;

[0053] S204: Perform character conversion on the sampled sorted character set to obtain a converted character set as a target prize redemption code set.

[0054] Among them, in step S201, the character length can be set by the user or the device, or can be set according to actual needs. The character length can be, for example, 10 characters, 12 characters, 20 characters, etc., and this manual does not make specific restrictions.

[0055] Specifically, multiple groups of arranged characters of set character length are randomly selected from the target character set, and the randomly selected multiple groups of arranged characters are used as the initial arranged character set. The multiple groups of arranged characters can be determined according to the number of redemption codes in the configuration information, and the number of the multiple groups of arranged characters is usually greater than the number of redemption codes in the configuration information, and of course, it can also be equal to the number of redemption codes in the configuration information.

[0056] In the embodiments of this specification, a plurality of groups refers to 2 groups or more.

[0057] For example, when the number of redemption codes in the configuration information is 1000 and the character length is set to 10 characters, 1200 groups of arranged characters with a length of 10 characters can be randomly selected from the target character set, and the selected 1200 groups of arranged characters can be used as the initial arranged character set.

[0058] After the initial arrangement character set is acquired, step S202 is executed.

[0059] In step S202, firstly, a set base number corresponding to the initial arrangement character set can be obtained; according to the set base number, decimal values ​​are removed from the initial sorting character set to obtain a modified sorting character set, wherein the coverage of the initial sorting character set is less than the set coverage.

[0060] In the embodiments of this specification, the set base number is usually a 32-base number, and of course it can also be a hexadecimal number or a 64-base number, etc., which is not specifically limited in this specification. The following specifically takes the set base number as a 32-base number as an example.

[0061] In the embodiments of this specification, the coverage rate may be set manually or by the device itself, or may be set according to actual needs.

[0062] Specifically, the total number of redemption codes that can be generated can be determined based on the character length corresponding to the initial arrangement character set and the target character set; then the coverage rate of the initial sorting character set can be obtained based on the total number and the number of characters in the initial sorting character set; wherein, the coverage rate of the initial sorting character set is less than the set coverage rate, for example, if the set coverage rate is 10%, then the coverage rate of the initial sorting character set is less than 10%.

[0063] Specifically, the coverage rate of the initial sort character set may be the quotient of the number of redemption codes in the configuration information divided by the total number of sort characters. In addition, when it is detected that the coverage rate of the initial sort character set is greater than the set coverage rate, the generation of the initial sort character set is directly stopped.

[0064] For example, if the total number of characters in the target character set corresponding to the initial arrangement character set is 32, and the character length of each sort character is 10, then each bit in the sort character can be one of the 32 characters, then the total number of redemption codes that can be generated is determined to be 32 in decimal. 10 , if at this time, the number of characters in the generated initial arrangement character set is 10000, then the coverage of the initial arrangement character set is determined to be 10000 / 32 10 , so that the coverage of the initial arrangement character set is less than the set coverage of 10%.

[0065] At this time, since the coverage rate of the initial sorted character set is less than the set coverage rate, it is ensured that the coverage rate of the final target redemption code set is less than the set coverage rate. Since the probability of being guessed is higher when the coverage rate is higher, when the coverage rate of the target redemption code set is less than the set coverage rate, it can effectively reduce the probability of the redemption code being guessed, thereby improving the security of the redemption code.

[0066] Specifically, after obtaining the set base number corresponding to the initial arrangement character set, some decimal-valued arrangement characters in the initial arrangement character set can be removed to reduce the probability of the length of the converted redemption code not matching the length of the redemption code in the configuration information when converting it into a redemption code, thereby ensuring the validity of the generated redemption code.

[0067] Specifically, the set base number of the initial sort character set can be obtained first; then, according to the set base number, sort characters less than the set value are removed from the initial sort character set to obtain a modified sort character set, wherein the coverage of the initial sort character set is less than the set coverage. In the embodiment of this specification, the set value can be set according to actual needs.

[0068] For example, taking the setting of the base number to 32 and the setting of the character length to 10 as an example, if the generated initial arrangement character set contains sorting characters of 0000000001, 0000001000 and 0000000100, if the value is set to 0001000000, since 0000000001, 0000001000 and 0000000100 are all less than 0001000000, 0000000001, 0000001000 and 0000000100 are removed from the initial sorting character set to reduce the problem of a large difference between the converted redemption code and other redemption codes due to the small value of the sorting character.

[0069] In the embodiment of this specification, the modified character set includes multiple groups of sorting characters. Further, multiple groups refers to 2 groups or more.

[0070] After the modified character set is acquired, step S203 is executed.

[0071] In step S203, the total length of characters of the initial sorted character set may be first obtained, and then the modified sorted character set may be sampled on the total length of characters according to the average offset on the total length of characters of the initial sorted character set to obtain a sampled sorted character set.

[0072] Specifically, based on the average offset on the total length of the characters, the sampling parameters can be set to sample the modified sorting character set in order on the total length of the characters to obtain the sampled sorting character set. The sampling parameters are set to include parameters such as continuous value taking and random offset. In this way, by sampling the modified sorting character set based on the average offset on the total length of the characters to obtain the sampled sorting character set, it is possible to effectively avoid duplication of the sampled sorting characters, so that when the redemption code is subsequently converted, the converted redemption code will also avoid duplication.

[0073] In the embodiment of this specification, the sample sorting character set includes multiple groups of sorting characters.

[0074] After the sample sorting character set is obtained, step S204 is executed.

[0075] In step S204, character conversion is performed on the sampled sorted character set to obtain a converted character set, and the sorting of each group of characters in the converted character set is adjusted, and the converted character set after the adjusted sorting is used as the target prize redemption code set.

[0076] Specifically, each group of sorting characters in the sorting character set is converted according to the set characters, and each group of set character sets after conversion is obtained as the conversion character set, and the sorting of each group of characters in the conversion character set is adjusted, and the conversion character set after the adjusted sorting is used as the target redemption code set.

[0077] Specifically, when sorting each group of characters in the conversion character set, each group of characters in the conversion character set can be randomly shuffled to obtain an adjusted and sorted conversion character set, thereby avoiding misunderstandings caused by large similarities between adjacent redemption codes during distribution.

[0078] In the embodiment of the present specification, after the redemption code generation server 30 uses the redemption code generation tool 301 to generate the target redemption code set, it generates a final redemption file based on the target redemption code set, wherein the final redemption file may include an Excel table containing the target redemption code set and data deployment scripts and files (files with suffixes such as txt, sql, etc.).

[0079] In this way, when the redemption code generation server 30 uses the redemption code generation tool 301 to generate the target redemption code set, it first obtains the configuration information for generating the redemption code, and then removes the easily misunderstood characters from the preset character set for generating the redemption code to obtain the target character set for generating the redemption code; the target character set is processed by the exhaustive segmentation method to obtain the target redemption code set that meets the configuration information; in this way, the target character set is processed by the exhaustive segmentation method, so that the target redemption code set is sampled on the basis of segmentation, which can effectively avoid the duplication of the obtained target redemption code. When avoiding the duplication of the target redemption code, there is no need to check for duplicates, thereby effectively improving the generation efficiency of the redemption code, and the coverage rate of the target redemption code set is less than the set coverage rate, which can effectively reduce the probability of the redemption code being guessed, thereby improving the security of the redemption code.

[0080] In the embodiment of this specification, after the prize redemption code generation server 30 generates the target prize redemption code set, it sends the generated target prize redemption code set to the prize redemption code issuing server 20, so that the prize redemption code issuing server 20 receives the target prize redemption code set and stores the target prize redemption code set. When a prize redemption request is received later, the prize redemption verification is performed through the target prize redemption code set.

[0081] In the embodiment of the present specification, when a user redeems a prize, he usually enters a prize redemption code string in the game client. After receiving the prize redemption code string, the game client transmits it to the game server; the game server sends the received prize redemption code string to the game server 10, so that the game server 10 receives the prize redemption code string sent by the game client. When the game server 10 receives the prize redemption code string sent by the game client, it generates a prize redemption request corresponding to the game server according to the prize redemption code string, and sends the prize redemption request to the prize redemption code issuing server 20, wherein the prize redemption request carries the prize redemption code string, the player's world identifier and the player identifier.

[0082] Since the redemption request carries the redemption code string, the player's world ID and the player ID, at this time, the player's world ID in the redemption request is different in different games, and usually the player ID is also different. In this way, the same redemption code can be used in multiple games; in addition, since the redemption request corresponds to the game server, and one region in a game usually uses one game server, the same redemption code can be used in different valid regions.

[0083] Specifically, the player identification can be the player identification of the user obtained by the game client when the game client receives the redemption code string. The player identification can specifically be the player ID.

[0084] In the embodiment of this specification, the player's world identifier is usually the player's world ID.

[0085] Specifically, when the game server 10 receives the redemption code string sent by the game client, it usually carries the player's world identifier and player identifier. In this way, a redemption request can be generated based on the redemption code string, the player's world identifier and player identifier, and then the redemption request can be sent to the redemption code issuing server 20.

[0086] In the embodiments of this specification, when the game server 10 generates a redemption request, it usually encrypts the redemption request so that after the redemption code issuing server 20 receives the redemption request, it needs to decrypt it to obtain the redemption code string, the player's world identifier and the player identifier in the redemption request, so as to improve the security of verification.

[0087] For example, taking the game Need for Speed ​​and the user ID as 51254, the user enters the redemption code string "espdg9ufhsdo" in the game, so that the game client receives the "espdg9ufhsdo" entered by 51254 and transmits it to the game server. At this time, the game server obtains the world number of Need for Speed, for example 1120015, and then sends "51254", "espdg9ufhsdo" and "1120015" to the game server 10. The game server 10 generates a redemption request based on the received "51254", "espdg9ufhsdo" and "1120015", and sends the redemption request to the redemption code issuing server 20.

[0088] In the embodiment of this specification, when receiving a prize redemption request, the prize redemption code issuing server 20 uses the stored target prize redemption code set to verify the prize redemption information carried in the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server. And after receiving the prize redemption confirmation information, the game server 10 redeems the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information. Of course, after receiving the prize redemption confirmation information, the prize redemption confirmation server 10 can also send the prize redemption confirmation information to the game server, so that the game server redeems the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information, and this specification does not make specific restrictions.

[0089] In the embodiment of the present specification, when the game server 10 redeems the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information, if it is determined that the prize redemption item is in the prize redemption content whitelist, the prize is redeemed for the target player according to the prize redemption confirmation information; if the prize redemption item is not in the prize redemption content whitelist, the prize redemption is prohibited.

[0090] Specifically, when the game server 10 is redeeming a prize, it can first obtain the prize redemption item, and then determine whether the prize redemption item is in the prize redemption content whitelist. If so, the prize redemption will be carried out, otherwise, the prize redemption will be prohibited.

[0091] Specifically, since the reward configuration of the redemption code is filled in manually, there is a possibility of error, so when the player is finally redeemed, a rationality check is required. At this time, a redemption content whitelist can be set in the game server, where the redemption content whitelist includes information such as the category and quantity of the redemption, ensuring that the intensity of the reward issuance is controllable, thereby effectively preventing the problem of theft due to negligence.

[0092] In the embodiment of the present specification, after the game server 10 determines that the prize redemption item is in the prize redemption content whitelist, if it is determined that the target player's number of prize redemptions within the set time period is within the set number, the prize redemption will be performed on the target player according to the prize redemption confirmation information; if the number of prize redemptions is not within the set number, the prize redemption is prohibited.

[0093] Specifically speaking

[0094] In the embodiments of this specification, the prize redemption code distribution system can also provide users with only one interface entry for inputting the prize redemption code on the client, and can further provide a function of copying from the clipboard to improve the user experience and simplify the operation steps for users to input the prize redemption code. The prize redemption code distribution system simplifies the implementation part of the client, and hands over a large amount of complex content to the server backend, which is also convenient for subsequent flexible structural adjustments, so that the cost of client implantation will be very low.

[0095] Specifically, when the game server 10 is redeeming a prize, it determines whether the target player's number of prize redemptions within a set time period is within a set number. If so, the prize redemption is performed. If not, it indicates that the target player's number of prize redemptions exceeds the set number, and the prize redemption is prohibited. The set number is usually the maximum number of times a user can redeem a prize, such as an integer not less than 1 such as 5, 6, and 10 times.

[0096] In the embodiments of this specification, the set time period can be set according to actual needs, such as every day, every month, or every week, etc., and this specification does not make any specific restrictions.

[0097] In this way, by setting the number of times, the maximum number of prizes claimed by the target user within the set time period can be ensured, reducing the probability of accidents in which one person repeatedly claims prizes. In addition, the cooling time for entering the prize redemption code can be set to avoid malicious guessing of the prize redemption code by players, further improving the security of prize redemption.

[0098] In the embodiment of this specification, a functional switch can also be set in the game, and the prize redemption code function can be dynamically turned on or off to block the player from using the prize redemption code, and give reasonable prompts. For example, when there is a problem with the verification code function, the game server 10 can send a command to close the prize redemption code function to the client, and then turn off the prize redemption code function, and display a prompt on the client. When the prize redemption code function is turned off or when the prize redemption code function can be used, a prompt can be given. On the other hand, when the functional switch fails to turn on, the maximum number of prizes received on the day can be set for each user to avoid the situation where the number of prizes received by the same user is greater than the maximum number of prizes received in unexpected circumstances. Further, the cooling time for repeatedly entering the prize redemption code can be increased on the game side to avoid the situation where players maliciously guess the prize redemption code, further improving security.

[0099] In the embodiment of this specification, the prize redemption code issuing server 20 usually needs to be placed in the same restricted network as the game server 10 (GameServer), does not open the public network interface, and only communicates with the game server, the purpose is to improve security and avoid being detected by the external network, which can effectively improve the security of the prize redemption code issuing server 20. The prize redemption code issuing server 20 is essentially a web server with LAMP (Linux+Apache+Mysql+Php) as the architecture.

[0100] In the embodiment of this specification, the prize redemption code issuing server 20 can be an electronic device such as a laptop computer, a desktop computer, and an all-in-one machine. Further, the game server 10 can be an electronic device such as a laptop computer, a desktop computer, and an all-in-one machine. And, the prize redemption code generating server 30 can be an electronic device such as a laptop computer, a desktop computer, and an all-in-one machine.

[0101] Specifically, when receiving a redemption request, the redemption code issuing server 20 can use a pre-stored target redemption code set to verify whether the redemption code string in the redemption request is valid, whether the player's world identifier corresponds to the game server, and whether the redemption code string meets the redemption setting rules.

[0102] Specifically, when the prize redemption request is encrypted on the game server 10, it is also necessary to detect whether the prize redemption request is encrypted using a specified encryption method, and to detect whether the prize redemption code string in the prize redemption request exists.

[0103] In the embodiments of this specification, the prize redemption setting rules may include that only one prize can be redeemed from a batch, etc.

[0104] For example, still taking the game Need for Speed ​​and the user ID 51254 as an example, the game server 10 generates a prize redemption request based on the received "51254", "espdg9ufhsdo" and "1120015", encrypts the prize redemption request, and sends the encrypted prize redemption request to the prize redemption code issuing server 20; after receiving the encrypted prize redemption request, the prize redemption code issuing server 20 first detects whether the prize redemption request is encrypted by the specified encryption method, and if so, decrypts it; and checks whether there is data in the prize redemption code string of the decrypted prize redemption request, and if so, determines whether the prize redemption code exists. After confirming that the redemption code exists, extract the redemption code string "espdg9ufhsdo" from the decrypted redemption request, use "espdg9ufhsdo" as the search keyword, and search from the pre-stored target redemption code set. If found, determine that the redemption code is valid; after confirming that the redemption code is valid, extract "1120015" to determine whether "1120015" corresponds to the game server that sent the redemption request. If so, determine that the world number is correct; then finally determine whether the redemption code meets the redemption setting rules. If so, the verification is passed; otherwise, the verification fails.

[0105] When the game server 10 receives the redemption code string sent by the game client, it will generate a redemption request based on the redemption code string. At this time, the redemption request will carry the redemption code string, the player's world identifier and the player identifier. Further, in different games, the player's world identifier in the redemption request is different, and usually the player identifier is also different. In this way, the same redemption code can be used in multiple games; in addition, since the redemption request corresponds to the game server, and a large area in a game usually uses a game server, the same redemption code can be used in the same valid different large areas. It can be seen that the redemption code issuance system provided in the embodiment of this specification has strong versatility and can be used in multiple large areas of a game, and even multiple games at the same time, which can effectively improve the versatility of the redemption code.

[0106] Based on the above technical solution, the prize redemption code generation server is used to obtain configuration information for generating a prize redemption code; remove easily misunderstood characters from a preset character set for generating the prize redemption code to obtain a target character set for generating the prize redemption code; use an exhaustive segmentation method to process the target character set to obtain a target prize redemption code set that satisfies the configuration information; the game server is used to generate a prize redemption request when receiving a prize redemption code string sent by a game client, and send the prize redemption request to the prize redemption code issuance server; the prize redemption code issuance server is used to receive and store the target prize redemption code set, and when receiving the prize redemption request, use the target prize redemption code set to verify the prize redemption information carried by the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server; the game server is used to receive the prize redemption confirmation information, and match the player identifier to the prize redemption confirmation information according to the prize redemption confirmation information. target players to redeem prizes; in this way, in the redemption code generation stage, the target character set is processed by exhaustive segmentation method, so that the target redemption code set is sampled on the basis of segmentation, which can effectively avoid the duplication of the obtained target redemption code. When the target redemption code is duplicative, there is no need to check for duplicates, thereby effectively improving the generation efficiency of the redemption code, and the coverage rate of the target redemption code set is less than the set coverage rate, which can effectively reduce the probability of the redemption code being guessed, and improve the security of the redemption code; in the redemption code redemption stage, through the interaction of the redemption code issuance server, the game server and the game server, the security and standardization of the redemption code redemption can be effectively ensured. In addition, since all redemption codes are generated by the redemption code generation server, the standard of the redemption code is unified and can be applied to multiple games, which can effectively improve the versatility and extensibility of the redemption code issuance system.

[0107] Embodiment 2

[0108] Please refer to Figure 3 The present application embodiment provides a method for generating a prize redemption code, which is applied to a prize redemption code generating server, and the method includes:

[0109] S301, obtaining configuration information for generating a prize redemption code;

[0110] S302, removing easily misunderstood characters from a preset character set for generating the prize redemption code, to obtain a target character set for generating the prize redemption code;

[0111] S303: Process the target character set by using an exhaustive segmentation method to obtain a target prize redemption code set that satisfies the configuration information, wherein the coverage rate of the target prize redemption code set is less than a set coverage rate.

[0112] In an optional implementation, the exhaustive segmentation method is used to process the target characters to obtain a target prize redemption code set that satisfies the configuration information, including:

[0113] Based on the target character set, generating an initial arranged character set of set character length;

[0114] Remove decimal values ​​from the sort characters in the initial sort character set to obtain a modified sort character set with decimal values ​​removed;

[0115] Sampling the modified sort character set to obtain a sampled sort character set;

[0116] Character conversion is performed on the sampled sorted character set to obtain a converted character set as the target prize redemption code set.

[0117] In an optional implementation, removing decimal values ​​from the sort characters in the initial sort character set to obtain a modified sort character set with decimal values ​​removed includes:

[0118] Obtaining a set base number of the initial sort character set;

[0119] According to the set base number, sort characters whose values ​​are smaller than the set value are removed from the initial sort character set to obtain the modified sort character set, wherein the coverage of the initial sort character set is smaller than the set coverage.

[0120] In an optional implementation manner, sampling the modified sort character set to obtain the sampled sort character set includes:

[0121] The modified sorted character set is sampled on the total character length according to the average offset on the total character length of the initial sorted character set to obtain the sampled sorted character set.

[0122] In an optional implementation, performing character conversion on the sample sorted character set to obtain a converted character set as the target prize redemption code set includes:

[0123] Character conversion is performed on the sampled sorted character set to obtain a converted character set, and the sorting of each group of characters in the converted character set is adjusted, and the converted character set after the adjusted sorting is used as the target prize redemption code set.

[0124] Embodiment 3

[0125] Please refer to Figure 4 The embodiment of the present application provides a device for generating a prize redemption code, the device comprising:

[0126] Configuration information acquisition unit 401, used to acquire configuration information for generating a prize redemption code;

[0127] A character generating unit 402, configured to remove easily misunderstood characters from a preset character set for generating the prize redemption code, to obtain a target character set for generating the prize redemption code;

[0128] The prize redemption code acquisition unit 403 is used to process the target character set by using an exhaustive segmentation method to obtain a target prize redemption code set that meets the configuration information, wherein the coverage rate of the target prize redemption code set is less than the set coverage rate.

[0129] In an optional embodiment, the redemption code acquisition unit 403 is used to generate an initial arrangement character set of a set character length based on the target character set; remove decimal values ​​of the sorting characters in the initial sorting character set to obtain a modified sorting character set with decimal values ​​removed; sample the modified sorting character set to obtain a sampled sorting character set; perform character conversion on the sampled sorting character set to obtain a converted character set as the target redemption code set.

[0130] In an optional embodiment, the redemption code acquisition unit 403 is used to obtain a set base number of the initial sort character set; according to the set base number, the sort characters that are less than the set value are removed from the initial sort character set to obtain the modified sort character set, wherein the coverage rate of the initial sort character set is less than the set coverage rate.

[0131] In an optional implementation, the prize redemption code acquisition unit 403 is used to sample the modified sorting character set on the total character length according to the average offset on the total character length of the initial sorting character set to obtain the sampled sorting character set.

[0132] In an optional implementation, the prize redemption code acquisition unit 403 is used to perform character conversion on the sampled sorted character set to obtain a converted character set, and adjust the sorting of each group of characters in the converted character set, and use the converted character set after the adjusted sorting as the target prize redemption code set.

[0133] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0134] Figure 5 1 is a block diagram of an electronic device 800 for generating a prize redemption code according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0135] Reference Figure 5, the 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 / display (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0136] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0137] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0138] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0139] The multimedia component 808 includes a screen that provides a display interface between the electronic device 800 and the user. 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 the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect 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. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0140] The audio component 810 is configured to present and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for presenting audio signals.

[0141] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0142] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change 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 an optical 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0143] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0144] 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 components to perform the above methods.

[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0146] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a method for generating a prize redemption code, the method comprising:

[0147] Get the configuration information for generating the redemption code;

[0148] Removing easily misunderstood characters from a preset character set for generating the prize redemption code to obtain a target character set for generating the prize redemption code;

[0149] The target character set is processed by an exhaustive segmentation method to obtain a target prize redemption code set that meets the configuration information, wherein the coverage rate of the target prize redemption code set is less than the set coverage rate.

[0150] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0151] It should be understood that the present invention is not limited to the precise structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0152] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A system for issuing prize redemption codes, characterized in that: The system comprises a game server, a prize redemption code issuing server and a prize redemption code generating server, wherein the prize redemption code issuing server and the game server are arranged in the same restricted network, wherein the system further comprises: The prize redemption code generation server is used to obtain configuration information for generating a prize redemption code; remove easily misunderstood characters from a preset character set for generating the prize redemption code to obtain a target character set for generating the prize redemption code; use an exhaustive segmentation method to process the target character set to obtain a target prize redemption code set that meets the configuration information, wherein the coverage rate of the target prize redemption code set is less than the set coverage rate, and send the generated target prize redemption code set to the prize redemption code issuing server; wherein, based on the target character set, an initial sorting character set of a set character length is generated; decimal values ​​are removed from the sorting characters in the initial sorting character set to obtain a modified sorting character set with decimal values ​​removed; the total length of characters of the initial sorting character set is obtained, and according to the average offset on the total length of characters, sampling parameters are set to sample the modified sorting character set in order on the total length of characters to obtain a sampled sorting character set; character conversion is performed on the sampled sorting character set to obtain a converted character set as the target prize redemption code set; The game server is used to generate a prize redemption request according to the prize redemption code string when receiving the prize redemption code string sent by the game client, and send the prize redemption request to the prize redemption code issuing server, wherein the prize redemption request carries the prize redemption code string, the player's world identifier and the player identifier; The prize redemption code issuing server is used to receive and store the target prize redemption code set, and when receiving the prize redemption request, use the target prize redemption code set to verify the prize redemption information carried by the prize redemption request; when the verification is passed, the generated prize redemption confirmation information is sent to the game server; The game server is used to receive the prize redemption confirmation information and to redeem the prize for the target player corresponding to the player identifier according to the prize redemption confirmation information.

2. The system according to claim 1, characterized in that The game server is used to, when redeeming a prize for a target player corresponding to the player identifier according to the prize redemption confirmation information, if it is determined that the prize redemption item is in the prize redemption content whitelist, redeem the prize for the target player according to the prize redemption confirmation information; if the prize redemption item is not in the prize redemption content whitelist, prohibiting prize redemption.

3. The system according to claim 2, characterized in that After determining that the prize redemption item is in the prize redemption content whitelist, if it is determined that the target player's prize redemption times within the set time period are within the set times, the game server will redeem the prize for the target player according to the prize redemption confirmation information; if the prize redemption times are not within the set times, prize redemption is prohibited.

4. The system according to claim 1, characterized in that The prize redemption code issuing server verifies the prize redemption information carried in the prize redemption request, including: The redemption code issuing server is used to use the target redemption code set to verify whether the redemption code string in the redemption request is valid, whether the world identifier of the player corresponds to the game server, and whether the redemption code string meets the redemption setting rules.

5. A method for generating a prize redemption code, applied to a prize redemption code generating server, characterized in that: The method comprises: Get the configuration information for generating the redemption code; Removing easily misunderstood characters from a preset character set for generating the prize redemption code to obtain a target character set for generating the prize redemption code; The target character set is processed by an exhaustive segmentation method to obtain a target redemption code set that meets the configuration information, and the coverage rate of the target redemption code set is less than the set coverage rate; wherein, based on the target character set, an initial sorting character set of set character length is generated; decimal values ​​of the sorting characters in the initial sorting character set are removed to obtain a modified sorting character set with decimal values ​​removed; the total length of characters in the initial sorting character set is obtained, and according to the average offset on the total length of characters, sampling parameters are set to sample the modified sorting character set in sequence on the total length of characters to obtain a sampled sorting character set; character conversion is performed on the sampled sorting character set to obtain a converted character set as the target redemption code set.

6. The method according to claim 5, characterized in that The step of removing decimal values ​​from the sort characters in the initial sort character set to obtain a modified sort character set with decimal values ​​removed includes: Obtaining a set base number of the initial sort character set; According to the set base number, sort characters whose values ​​are smaller than the set value are removed from the initial sort character set to obtain the modified sort character set, wherein the coverage of the initial sort character set is smaller than the set coverage.

7. The method according to claim 6, characterized in that The performing character conversion on the sample sorted character set to obtain a converted character set as the target prize redemption code set includes: Character conversion is performed on the sampled sorted character set to obtain a converted character set, and the sorting of each group of characters in the converted character set is adjusted, and the converted character set after the adjusted sorting is used as the target prize redemption code set.

8. An electronic device, characterized in that: It includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to execute the operation instructions corresponding to the method as described in any one of claims 5 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps corresponding to the method according to any one of claims 5 to 7 are implemented.