CN113240471A - Prize exchanging code generation method and device, electronic device and storage medium - Google Patents

Prize exchanging code generation method and device, electronic device and storage medium Download PDF

Info

Publication number
CN113240471A
CN113240471A CN202110546096.1A CN202110546096A CN113240471A CN 113240471 A CN113240471 A CN 113240471A CN 202110546096 A CN202110546096 A CN 202110546096A CN 113240471 A CN113240471 A CN 113240471A
Authority
CN
China
Prior art keywords
prize
exchanging
code
target
prize exchanging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110546096.1A
Other languages
Chinese (zh)
Inventor
杨斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Perfect World Beijing Software Technology Development Co Ltd
Original Assignee
Perfect World Beijing Software Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Perfect World Beijing Software Technology Development Co Ltd filed Critical Perfect World Beijing Software Technology Development Co Ltd
Priority to CN202110546096.1A priority Critical patent/CN113240471A/en
Publication of CN113240471A publication Critical patent/CN113240471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/75Enforcing rules, e.g. detecting foul play or generating lists of cheating players
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0225Avoiding frauds
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5586Details of game data or player data management for enforcing rights or rules, e.g. to prevent foul play

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Pinball Game Machines (AREA)

Abstract

The invention discloses a game system, 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 restricted network; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting configuration information; the game server is used for generating a prize exchanging request according to the prize exchanging code character string when receiving the prize exchanging code character string sent by the game client, and sending the prize exchanging request to the prize exchanging code issuing server; 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 when the prize exchanging 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 exchange confirmation information and exchanging prizes for the target players corresponding to the player identifications.

Description

Prize exchanging code generation method and device, electronic device and storage medium
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, more and more game applications are promoted in the computers, and some promotion activities are usually performed in order to attract users and give users a better experience, wherein the prize-exchanging code is an effective promotion means. The gaming application typically sends a virtual redemption code on each platform that the user uses to redeem in the game for a corresponding virtual item or virtual currency.
In the prior art, when a game application is promoted by prize exchanging codes, prize exchanging codes are generated by using tools such as a prize exchanging code generator and a CDK prize exchanging code generating tool, at the moment, the prize exchanging code system number and the length according to requirements are set by themselves, so that the generated prize exchanging codes are different in standard, the generated prize exchanging codes are usually provided with repeated random numbers, and thus, the process of checking for duplication after the prize exchanging codes are generated is required, the efficiency of generating the prize exchanging codes is low, the problem of standard non-uniformity of the prize exchanging codes exists, and the problems of disordered standard and poor safety of the prize exchanging codes also exist.
Disclosure of Invention
The embodiment of the invention provides a prize exchanging code generating method, a prize exchanging code generating device, electronic equipment and a storage medium, which can effectively improve the prize exchanging code generating efficiency.
The first aspect of the embodiments of the present invention further provides a prize-exchanging code issuing system, including a game server, a prize-exchanging code issuing server and a prize-exchanging code generating server, where the prize-exchanging code issuing server and the game server are arranged in the same restricted network, and the system further includes:
the prize exchanging code generating server is used for acquiring configuration information for generating prize exchanging codes; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the coverage rate of the target prize exchanging code set is less than a set coverage rate, and sending the generated target prize exchanging code set to a prize exchanging code issuing server;
the game server is used for generating a prize exchanging request according to the prize exchanging code character string when receiving the prize exchanging code character string sent by the game client, and sending the prize exchanging request to the prize exchanging code issuing server, wherein the prize exchanging request carries the prize exchanging code character string, a world identification of a player and a player identification;
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 using 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;
and the game server is used for receiving the prize exchanging confirmation information and exchanging prizes for the target players corresponding to the player identifications according to the prize exchanging confirmation information.
Optionally, the game server is configured to, when a target player corresponding to the player identifier is rewarded according to the award cashing confirmation information, if it is determined that an award cashing item is in a cashing content white list, perform cashing on the target player according to the award cashing confirmation information; and if the prize exchanging article is not in the prize exchanging content white list, prohibiting prize exchanging.
Optionally, after determining that the prize-exchanging article is in the prize-exchanging content white list, if it is determined that the number of times of exchanging prizes by the target player is within the set number of times within the set time period, the game server exchanges prizes for the target player according to the prize-exchanging confirmation information; and if the number of times of exchanging the prizes is not within the set number of times, forbidding exchanging the prizes.
Optionally, the award exchanging code issuing server verifies the award exchanging information carried by the award exchanging request, including:
the prize exchanging code issuing server is used for verifying whether the prize exchanging code character string in the prize exchanging request is valid, verifying whether the world identification of the player corresponds to the game server or not and verifying whether the prize exchanging code character string meets prize exchanging set rules or not by utilizing the target prize exchanging code set.
A second aspect of the embodiment of the present invention provides a method for generating a prize exchanging code, which is applied to a prize exchanging code generation server, and the method includes: acquiring configuration information for generating a prize exchanging code; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; and processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the coverage rate of the target prize exchanging code set is less than the set coverage rate.
Optionally, processing the target character by using an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information includes:
generating an initial arrangement character set with a set character length based on the target character set;
removing decimal values of the sorting characters in the initial sorting character set to obtain a modified sorting character set with the decimal values removed;
sampling the modified sorting character set to obtain a sampling sorting character set;
and performing character conversion on the sampling sorting character set to obtain a conversion character set serving as the target prize exchanging code set.
Optionally, the removing the decimal value of the sorting character in the initial sorting character set to obtain a modified sorting character set with the decimal value removed includes:
acquiring a set system number of the initial sorting character set;
and removing the sorting characters smaller than a set numerical value from the initial sorting character set according to the set system number to obtain the modified sorting character set, wherein the coverage rate of the initial sorting character set is smaller than the set coverage rate.
Optionally, the sampling the modified sorting character set to obtain a sampling sorting character set includes:
and sampling the modified ordered character set on the total character length according to the average offset on the total character length of the initial ordered character set to obtain the sampled ordered character set.
Optionally, the performing character conversion on the sampling sorting character set to obtain a conversion character set as the target prize-exchanging code set includes:
and performing character conversion on the sampling sorting character set to obtain a conversion character set, adjusting the sorting of each group of characters in the conversion character set, and taking the conversion character set after the sorting adjustment as the target prize exchanging code set.
A third aspect of an 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 for performing the method for generating a prize redemption code as provided in the first aspect.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps corresponding to the method for generating a prize redemption code provided in the first aspect.
One or more technical solutions in the embodiments of the present application have at least the following technical effects:
based on the technical scheme, the prize exchanging code generating server is used for acquiring configuration information for generating prize exchanging codes; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the game server is used for generating a prize exchanging request when receiving a prize exchanging code character string sent by a game client and sending the prize exchanging request to the prize exchanging code issuing server; 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 using 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 prizes for the target players corresponding to the player identifications according to the prize exchanging confirmation information; therefore, in the prize-exchanging code generation stage, the target character set is processed by adopting an exhaustive segmentation method, so that the target prize-exchanging code set is obtained by sampling on the basis of segmentation, the situation that the obtained target prize-exchanging codes are repeated can be effectively avoided, and the duplication checking treatment is not needed under the situation that the target prize-exchanging codes are repeated, so that the prize-exchanging code generation efficiency can be effectively improved, the coverage rate of the target prize-exchanging code set is less than the set coverage rate, the probability of guessing the prize codes can be effectively reduced, and the security of the prize-exchanging codes is improved; in the prize exchanging code prize exchanging stage, the prize exchanging code issuing server, the game server and the game server are interacted, so that the safety and the standardization of prize exchanging code prize exchanging can be effectively guaranteed, and all prize exchanging codes are generated by the prize exchanging code generating server, so that the standards of the prize exchanging codes are unified, the prize exchanging codes 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 provided by an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for generating a target prize redemption code set using an exhaustive segmentation method according to an exemplary embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a method for generating a prize-exchanging code according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an apparatus for generating a prize-exchanging code according to 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 mode and the corresponding beneficial effects of the technical scheme of the embodiment of the present application are explained in detail with reference to the accompanying drawings.
Example one
Referring to fig. 1, the present embodiment provides a prize-exchanging code issuing system, which includes a game server 10, a prize-exchanging code issuing server 20 and a prize-exchanging code generating server 30, where the prize-exchanging code issuing server 20 and the game server 10 are disposed in the same restricted network, and the system further includes:
a prize-exchanging code generation server 30 for acquiring configuration information for generating prize-exchanging codes; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting configuration information, wherein the coverage rate of the target prize exchanging code set is less than a set coverage rate, and sending the generated target prize exchanging code set to a prize exchanging code issuing server 20;
the game server 10 is configured to generate a prize exchanging request corresponding to the game server 10 according to a prize exchanging code character string when receiving the prize exchanging code character string sent by the game client, and send the prize exchanging request to the prize exchanging code issuing server 20, where the prize exchanging request carries the prize exchanging code character string, a world identifier where a player is located, and a player identifier;
the prize exchanging code issuing server 20 is used for receiving and storing the target prize exchanging code set, and verifying prize exchanging information carried by the prize exchanging request by using 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 10 receives the award-exchange confirmation information, and exchanges an award for the target player corresponding to the player identifier based on the award-exchange 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, at this time, the prize exchanging request is prompted to carry the prize exchanging code character string, the world identification of the player and the player identification, at this time, when the game is different, the world identification of the player in the prize exchanging request is different, and usually, the player identification is also different, so that the same prize exchanging code can be applied to a plurality of games; in addition, because the prize-exchanging request corresponds to the game server, one game server is usually used in one large area of the game, so that the same prize-exchanging code can be used in the same effective different large 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 large areas of one game, so that a plurality of games can be used simultaneously; the parameters can be flexibly adjusted according to the requirements, and the issuing requirements of the prize exchanging codes in the games (including batch drawing, world drawing, time limitation, multiple drawing, specific drawing and the like) are met.
In addition, a prize exchanging code generating server 30 for acquiring configuration information for generating prize exchanging codes; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting configuration information; therefore, the target character set is processed by adopting an exhaustive segmentation method, so that the target prize exchanging code set is obtained by sampling on the basis of segmentation, the situation that the obtained target prize exchanging codes are repeated can be effectively avoided, the duplication checking treatment is not needed under the situation that the target prize exchanging codes are repeated, the generation efficiency of the generated prize exchanging codes can be 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 codes are guessed can be effectively reduced, and the security of the prize exchanging codes is improved.
In the embodiment of the present specification, the prize-exchanging code generating server 30 first obtains configuration information for generating prize-exchanging codes in the process of generating a target prize-exchanging code set, where the configuration information may include the length, number, batch, server, award, and winning rule of prize-exchanging codes. The configuration information may be obtained according to a user instruction, for example, a configuration instruction input by a user may be obtained to obtain the configuration information.
After acquiring the configuration information, the prize code generation server 30 may generate a target prize code set using the prize code generation tool 301 in the prize code generation server 30. In the process of generating the target prize exchanging code set by using the prize exchanging code generating tool 301, the characters used by the prize exchanging code generating tool 301 are the target character set without characters easy to misinterpret, and the purpose is to avoid misinterpretations caused by different fonts when the characters are displayed to a player in each channel or platform, especially misinterpretations possibly caused by different fonts on different iOS and Android devices, so that the accuracy of the prize exchanging codes input by a user is higher, the input efficiency of inputting the prize exchanging codes is improved, and the user experience is better.
In the embodiments of the present specification, the misinterpretation-prone characters may be "0", "O", "I", and "Z", and may also be "0", "O", and "I". Further, the preset character set may include english characters and numeric characters, for example, may include 26 english alphabets and 0 to 9 numbers. For example, when the misunderstanding characters are "0", "O", "I", and "Z" and the preset character set includes 26 english alphabets and numbers from 0 to 9, the target character set may be 32 characters excluding the english alphabets and numbers from the 26 english alphabets and numbers from 0 to 9, and the english alphabets in the 32 characters are usually upper case english alphabets to reduce the probability of misunderstanding due to lower case english alphabets.
In this embodiment of the present specification, in the process of generating the target prize exchanging code set by using the prize exchanging code generating tool 301, after acquiring the target character set, the prize exchanging code generating server 30 needs to process the target character by using an exhaustive segmentation method to obtain the target prize exchanging code set satisfying the configuration information.
In this embodiment of the present specification, in the process that the prize exchanging code generating server 30 processes the target character by using the exhaustive segmentation method to obtain the target prize exchanging code set satisfying the configuration information, as shown in fig. 2, the prize exchanging code generating server 30 specifically executes the following steps:
s201, generating an initial arrangement character set with a set character length based on a target character set;
s202, removing decimal values of the sorting characters in the initial sorting character set to obtain a modified sorting character set with the decimal values removed;
s203, sampling the modified sorting character set to obtain a sampling sorting character set;
and S204, performing character conversion on the sampling sorting character set to obtain a conversion character set serving as a target prize exchanging code set.
In step S201, the set character length may be set by a user or a device, or may be set according to actual requirements, and the set character length may be, for example, 10 characters, 12 characters, 20 characters, and the like, which is not 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 the initial arrangement character set. The multiple groups of arranged characters can be determined according to the number of the prize exchanging codes in the configuration information, and the number of the multiple groups of arranged characters is usually greater than the number of the prize exchanging codes in the configuration information, and certainly, may also be equal to the number of the prize exchanging codes in the configuration information.
In the examples of the present specification, the plural groups mean 2 groups and 2 or more groups.
For example, when the number of the prize exchanging 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 may be randomly selected from the target character set, and the selected 1200 groups of arranged characters may be used as the initial arranged character set.
After the initial arrangement character set is acquired, step S202 is executed.
In step S202, a set number corresponding to the initial arrangement character set may be obtained first; and removing decimal values from the initial sorting character set according to the set system number to obtain a modified sorting character set, wherein the coverage rate of the initial sorting character set is less than the set coverage rate.
In the embodiments of the present specification, the set number is usually a 32-ary number, but may also be a 16-ary number, a 64-ary number, and the like, and the present specification is not particularly limited. In the following, a 32-ary number is specifically set as an example.
In the embodiment of the present specification, the set coverage rate may be set manually or by an apparatus, or may be set according to actual requirements.
Specifically, the total number of generated exchange codes may be determined based on the character length corresponding to the initial arrangement character set and the target character set; acquiring the coverage rate of the initial sorting character set according to the total number and the number of the 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, the set coverage rate is 10%, and then the coverage rate of the initial sorting character set is less than 10%.
Specifically, the coverage of the initial ordered set of characters may be the number of redemption codes in the configuration information divided by the total number of ordered characters. And 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 initial arrangement character set corresponds to a target character set in which the total number of characters is 32, and the character length of each of the arranged characters is 10, each digit in the arranged characters may be one of the 32 characters, and it is determined that the total number of characters in which the redemption code is generated is 32 in decimal notation10If the number of characters in the generated initial arrangement character set is 10000 at this time, the coverage of the initial arrangement character set is determined to be 10000/3210And making the coverage rate of the initially arranged character set less than 10% of the set coverage rate.
At this time, because the coverage rate of the initial sequencing character set is less than the set coverage rate, the coverage rate of the finally obtained target prize-exchanging code set is ensured to be less than the set coverage rate, and because the probability of guessing is higher when the coverage rate is higher, when the coverage rate of the target prize-exchanging code set is less than the set coverage rate, the probability of guessing the prize-exchanging codes can be effectively reduced, and the security of the prize-exchanging codes is improved.
Specifically, after the set system number corresponding to the initial arrangement character set is acquired, some of the arrangement characters with small numerical values in the initial arrangement character set may be removed, so as to reduce the probability that the converted length of the prize exchange code does not match the length of the prize exchange code in the configuration information when the prize exchange code is subsequently converted into the prize exchange code, thereby ensuring the validity of the generated prize exchange code.
Specifically, a set system number of the initial sorting character set may be obtained first; and removing the sorting characters smaller than a set numerical value from the initial sorting character set according to the set system 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 setting value may be set according to an actual requirement.
For example, for an example of setting the number of the scale to be 32 and setting the length of the character to be 10, if the generated initial arrangement character set has 0000000001, 0000001000 and 0000000100 sorting characters, if the value is 0001000000, since 0000000001, 0000001000 and 0000000100 are all less than 0001000000, 0000000001, 0000001000 and 0000000100 are removed from the initial sorting character set, so as to reduce the problem that the converted exchange code is greatly different from other exchange codes due to the undersize value of the sorting characters.
In the embodiment of the present specification, the modified character set includes a plurality of groups of sorting characters. Further, the plurality of groups means 2 groups or more than 2 groups.
After the modified character set is acquired, step S203 is executed.
In step S203, the total character length of the initial sorted character set may be obtained first, and then 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, so as to obtain a sampled sorted character set.
Specifically, the sampling parameter may be set to sample the modified sorted character set in the total character length according to the average offset in the total character length, so as to obtain the sampled sorted character set. The set sampling parameters include continuous values, random offsets and other parameters. Therefore, the modified sorting character set is sampled according to the average deviation on the total length of the characters to obtain a sampling sorting character set, and the situation that the sampled sorting characters are repeated can be effectively avoided, so that the prize exchanging codes converted by the prize exchanging codes in the follow-up process can also be prevented from being repeated.
In the embodiment of the present specification, the sample sorting character set includes a plurality of groups of sorting characters.
After the sample ordering character set is obtained, step S204 is performed.
In step S204, the sampling sorting character set is subjected to character conversion to obtain a conversion character set, the sorting of each group of characters in the conversion character set is adjusted, and the adjusted and sorted conversion character set is used as a target prize-exchanging code set.
Specifically, each set of the sorted characters in the sorted character set is converted according to the set characters to obtain each converted set of the set characters as a converted character set, the sorting of each set of the characters in the converted character set is adjusted, and the converted character set after the adjustment of the sorting is used as a target prize exchanging code set.
Specifically, when the sequence of each group of characters in the character set is converted, each group of characters in the character set can be randomly scrambled, the converted character set after the sequence is adjusted is obtained, and the phenomenon that the similarity of adjacent prize exchanging codes is large, so that misunderstanding possibly caused in distribution is avoided.
In this embodiment of the present specification, after the prize exchanging code generating tool 301 is used to generate a target prize exchanging code set, the prize exchanging code generating server 30 generates a final prize exchanging file according to the target prize exchanging code set, where the final prize exchanging file may include an Excel table including the target prize exchanging code set, and a data deployment script and file (a file with a suffix name txt, sql, or the like).
In this way, in the process of generating the target prize exchanging code set by using the prize exchanging code generating tool 301, the prize exchanging code generating server 30 first obtains the configuration information for generating the prize exchanging codes, and then removes the characters easy to misinterpret from the preset character set for generating the prize exchanging codes to obtain the target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting configuration information; therefore, the target character set is processed by adopting an exhaustive segmentation method, so that the target prize exchanging code set is obtained by sampling on the basis of segmentation, the situation that the obtained target prize exchanging codes are repeated can be effectively avoided, the duplication checking treatment is not needed under the situation that the target prize exchanging codes are repeated, the generation efficiency of the generated prize exchanging codes can be 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 codes are guessed can be effectively reduced, and the security of the prize exchanging codes is improved.
In the present embodiment, after the target prize exchanging code set is generated by the prize exchanging code generating server 30, the generated target prize exchanging code set is transmitted to the prize exchanging code issuing server 20 so that the prize exchanging code issuing server 20 receives the target prize exchanging code set and stores the target prize exchanging code set. So that subsequent prize exchanging verification is performed through the target prize exchanging code set when a prize exchanging request is received.
In the embodiment of the specification, when a user carries out prize exchanging, usually, a prize exchanging code character string is input in a game client, and the game client transmits the prize exchanging code character string to a game server after receiving the prize exchanging code character string; the game server transmits the received prize-exchanging code character string to the game server 10, and further causes the game server 10 to receive the prize-exchanging code character string transmitted from the game client. And when receiving the prize exchanging code character 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 code character string and sends the prize exchanging request to the prize exchanging code issuing server 20, wherein the prize exchanging request carries the prize exchanging code character string, the world identification of the player and the player identification.
Because the prize exchanging request carries the prize exchanging code character string, the world identification of the player and the player identification, at the moment, when the games are different, the world identifications of the players in the prize exchanging request are different, and the player identifications are also different under the common condition, so that the same prize exchanging code can be applied to a plurality of games; in addition, because the prize-exchanging request corresponds to the game server, one game server is usually used in one large area of the game, so that the same prize-exchanging code can be used in the same effective different large area.
Specifically, the player identifier may be a player ID, which is obtained by the game client when the game client receives the award code character string.
In the embodiment of the present specification, the world identifier of the player is generally a world ID of the player.
Specifically, the game server 10 generally carries the world identifier of the player and the player identifier when receiving the prize exchanging code character string sent by the game client, so that a prize exchanging request can be generated according to the prize exchanging code character string, the world identifier of the player and the player identifier, and then the prize exchanging request is sent to the prize exchanging code issuing server 20.
In the embodiment of the present disclosure, when the game server 10 generates the prize exchanging request, the prize exchanging request is usually encrypted, so that after the prize exchanging code issuing server 20 receives the prize exchanging request, the prize exchanging code character string, the world identification of the player and the player identification in the prize exchanging request can be obtained only by decrypting the prize exchanging request, so as to improve the security of the verification.
For example, taking the game as a premium flyer and the user ID of 51254 as an example, the user inputs a prize conversion code string of "espdg 9 ufhsdo" in the game, so that the game client receives the "espdg 9 ufhsdo" input by 51254 and transmits it to the game server, at this time, the game server obtains the world number of the premium flyer of 1120015, for example, and then sends "51254", "espdg 9 ufhsdo" and "1120015" to the game server 10, and the game server 10 generates a prize conversion request according to the received "51254", "espdg 9 ufhsdo" and "1120015" and sends the prize conversion request to the prize conversion code distribution server 20.
In the embodiment of the present specification, when receiving a prize exchanging request, the prize exchanging code issuing server 20 verifies prize exchanging information carried in the prize exchanging request by using the stored target prize exchanging 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 award confirmation information, and then awards the target player corresponding to the player identification based on the award confirmation information. Of course, the prize drawing confirmation server 10 may transmit the prize drawing confirmation information to the game server so that the game server draws a prize from the target player corresponding to the player identification based on the prize drawing confirmation information after receiving the prize drawing confirmation information, and the present specification is not particularly limited.
In the embodiment of the present specification, when a target player corresponding to a player identifier is rewarded based on the award cashing confirmation information, if it is determined that an award item is in the award cashing content white list, the game server 10 rewrites the target player based on the award cashing confirmation information; and if the prize exchanging article is not in the prize exchanging content white list, prohibiting prize exchanging.
Specifically, the game server 10 may first acquire a prize article when a prize is exchanged, determine whether the prize article is in a prize exchange content white list, and if so, exchange the prize, otherwise, prohibit the prize exchange.
Specifically, since the award configuration of the redemption code is manually filled in, there is a possibility of error, and therefore a validity check is required when the player is eventually redeemed. At this time, a prize exchanging content white list can be set in the game server, wherein the prize exchanging content white list comprises information including the types and the number of the prizes, and the strength of the prize issuing is guaranteed to be controllable, so that the problem of illegal brushing caused by negligence can be effectively prevented.
In the embodiment of the present specification, after determining that the prize-exchanging article is in the prize-exchanging content white list, if it is determined that the number of times of exchanging prizes of the target player in the set time period is within the set number of times, the game server 10 exchanges prizes for the target player according to the prize-exchanging confirmation information; if the number of times of exchanging the prize is not within the set number of times, the prize is forbidden.
In particular, it relates to
In the embodiment of the description, the prize exchanging code issuing system can provide only one interface entrance for inputting the prize exchanging code for the user at the client, and can further provide the function of copying from the pasting board, so that the user experience is improved, and the operation steps of inputting the prize exchanging code by the user are simplified. The prize-exchanging code issuing system simplifies the implementation part of the client, delivers a large amount of complex contents to the back end of the server, and is convenient for subsequent flexible structure adjustment, so that the cost of implanting the client is very low.
Specifically, the game server 10 determines whether or not the number of awards by the target player is within a set number of awards within a set time period when awarding is performed, and if so, awards are performed, and if not, the number of awards indicating the target player exceeds the set number, and awarding is prohibited. The set number is usually the maximum number of times that the user can redeem the prize, and is an integer not less than 1, such as 5, 6, and 10 times.
In the embodiment of the present specification, the set time period may be set according to actual requirements, for example, every day, every month, every week, and the like, and the present specification is not particularly limited.
Therefore, the maximum number of times of receiving the awards of the target user in the set time period can be ensured through the set number of times, and the probability of the occurrence of accidents of repeated receiving of the awards by one person in the awarding process is reduced. And the cooling time for inputting the prize-exchanging code can be set, so that the condition that the player guesses the prize-exchanging code maliciously is avoided, and the prize-exchanging safety is further improved.
In this embodiment, a functional switch may be further provided in the game, so as to 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 is faulty, the game server 10 may send a command to turn off the prize exchanging code function to the client, and further turn off the prize exchanging code function, and display a prompt on the client, and may prompt when the prize exchanging code function is turned off or the prize exchanging code function is enabled. On the other hand, when the functional switch is not turned on, the maximum number of times of prize drawing for each user in the same day can be set, so that the situation that the number of times of prize drawing for the same user is larger than the maximum number of times of prize drawing can be avoided in unexpected situations. Furthermore, the cooling time for repeatedly inputting the prize-exchanging codes can be increased on the game side, so that the situation that a player guesses the prize-exchanging codes maliciously is avoided, and the safety is further improved.
In the embodiment of the present specification, the award code issuing server 20 generally needs to be placed in the same restricted network as the game server 10(GameServer), and only communicates with the game server without opening a public network interface, so as to improve security, avoid being detected by an external network, and effectively improve security of the award code issuing server 20. The prize award code issuing server 20 is essentially a Web server structured by LAMP (Linux + Apache + Mysql + Php).
In the embodiment of the present specification, the award code dispensing server 20 may be an electronic device such as a notebook computer, a desktop computer, and an all-in-one machine. Further, the game server 10 may be an electronic device such as a notebook computer, a desktop computer, and a kiosk. The prize code generation server 30 may be an electronic device such as a notebook computer, a desktop computer, and an all-in-one machine.
Specifically, when receiving a prize-exchanging request and verifying the prize-exchanging request, the prize-exchanging code issuing server 20 may verify whether or not a prize-exchanging code character string in the prize-exchanging request is valid, whether or not a world identification of a player corresponds to a game server, and whether or not the prize-exchanging code character string satisfies a prize-exchanging setting rule, using a target prize-exchanging code set stored in advance.
Specifically, when the prize request is encrypted at the game server 10, verification means such as detecting whether the prize request is encrypted by a predetermined encryption method and detecting whether a prize code character string in the prize request exists is required.
In this embodiment, the prize-exchange setting rule may include that only one batch is taken.
For example, also taking a game as a premium flyer and taking a user ID of 51254 as an example, the game server 10 generates a prize exchange request based on the received "51254", "espdg 9 ufhsdo" and "1120015", encrypts the prize exchange request, and transmits the encrypted prize exchange request to the prize exchange code issuance server 20; after receiving the encrypted prize exchanging request, the prize exchanging code issuing server 20 firstly detects whether the prize exchanging request is encrypted in a specified encryption mode, and if so, decrypts the prize exchanging request; whether data exist in the prize exchanging code character string of the decrypted prize exchanging request or not is judged, and if the data exist, the prize exchanging code is determined to exist; after the prize exchanging code is determined to exist, extracting a prize exchanging code character string 'espdg 9 ufhsdo' from the decrypted prize exchanging request, searching from a prestored target prize exchanging code set by taking 'espdg 9 ufhsdo' as a search keyword, and if the prize exchanging code is searched, determining that the prize exchanging code is valid; after confirming that the prize-exchanging code is valid, "1120015" is extracted, whether "1120015" corresponds to the game server sending the prize-exchanging request is judged, and if yes, the world number is confirmed to be correct; finally, judging whether the prize exchanging codes meet prize exchanging setting rules, and if so, passing the verification; otherwise, the verification fails.
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, at this time, the prize exchanging request is prompted to carry the prize exchanging code character string, the world identification of the player and the player identification, further, when the game is different, the world identification of the player in the prize exchanging request is different, and the player identification is also different under normal conditions. Thus, the same prize exchanging code can be applied to a plurality of games; in addition, because the prize-exchanging request corresponds to the game server, one game server is usually used in one large area of the game, so that the same prize-exchanging code can be used in the same effective different large area. Therefore, the prize exchanging code issuing system provided by the embodiment of the specification has strong universality, can be used in a plurality of large areas of one game, so that a plurality of games can be simultaneously used, and the universality of prize exchanging codes can be effectively improved.
Based on the technical scheme, the prize exchanging code generating server is used for acquiring configuration information for generating prize exchanging codes; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the game server is used for generating a prize exchanging request when receiving a prize exchanging code character string sent by a game client and sending the prize exchanging request to the prize exchanging code issuing server; 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 using 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 prizes for the target players corresponding to the player identifications according to the prize exchanging confirmation information; therefore, in the prize-exchanging code generation stage, the target character set is processed by adopting an exhaustive segmentation method, so that the target prize-exchanging code set is obtained by sampling on the basis of segmentation, the situation that the obtained target prize-exchanging codes are repeated can be effectively avoided, and the duplication checking treatment is not needed under the situation that the target prize-exchanging codes are repeated, so that the prize-exchanging code generation efficiency can be effectively improved, the coverage rate of the target prize-exchanging code set is less than the set coverage rate, the probability of guessing the prize codes can be effectively reduced, and the security of the prize-exchanging codes is improved; in the prize exchanging code prize exchanging stage, the prize exchanging code issuing server, the game server and the game server are interacted, so that the safety and the standardization of prize exchanging code prize exchanging can be effectively guaranteed, and all prize exchanging codes are generated by the prize exchanging code generating server, so that the standards of the prize exchanging codes are unified, the prize exchanging codes 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 prize-exchanging code, which is applied in a prize-exchanging code generation server, and the method includes:
s301, acquiring configuration information for generating a prize exchanging code;
s302, removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes;
and S303, processing the target character set by adopting an exhaustive segmentation method to obtain a target prize-exchanging code set meeting the configuration information, wherein the coverage rate of the target prize-exchanging code set is less than a set coverage rate.
In an alternative embodiment, the processing the target character by exhaustive segmentation to obtain the target prize redemption code set satisfying the configuration information includes:
generating an initial arrangement character set with a set character length based on the target character set;
removing decimal values of the sorting characters in the initial sorting character set to obtain a modified sorting character set with the decimal values removed;
sampling the modified sorting character set to obtain a sampling sorting character set;
and performing character conversion on the sampling sorting character set to obtain a conversion character set serving as the target prize exchanging code set.
In an optional implementation manner, the removing the decimal value of the sorting characters in the initial sorting character set to obtain a modified sorting character set with the decimal value removed includes:
acquiring a set system number of the initial sorting character set;
and removing the sorting characters smaller than a set numerical value from the initial sorting character set according to the set system number to obtain the modified sorting character set, wherein the coverage rate of the initial sorting character set is smaller than the set coverage rate.
In an alternative embodiment, the sampling the modified sorted character set to obtain a sampled sorted character set includes:
and sampling the modified ordered character set on the total character length according to the average offset on the total character length of the initial ordered character set to obtain the sampled ordered character set.
In an optional implementation, the performing character conversion on the sample ordering character set to obtain a conversion character set as the target prize exchanging code set includes:
and performing character conversion on the sampling sorting character set to obtain a conversion character set, adjusting the sorting of each group of characters in the conversion character set, and taking the conversion character set after the sorting adjustment as the target prize exchanging code set.
EXAMPLE III
Referring to fig. 4, an embodiment of the present application provides an apparatus for generating a prize redemption code, where the apparatus includes:
a configuration information acquisition unit 401 configured to acquire configuration information for generating a prize redemption code;
a character generating unit 402, configured to remove a misinterpretation-prone character from a preset character set for generating the prize-exchanging code, to obtain a target character set for generating the prize-exchanging code;
an award code obtaining unit 403, configured to process the target character set by using an exhaustive segmentation method to obtain a target award code set that satisfies the configuration information, where a coverage rate of the target award code set is smaller than a set coverage rate.
In an alternative embodiment, the prize exchanging code obtaining unit 403 is configured to generate an initial arrangement character set with a set character length based on the target character set; removing decimal values of the sorting characters in the initial sorting character set to obtain a modified sorting character set with the decimal values removed; sampling the modified sorting character set to obtain a sampling sorting character set; and performing character conversion on the sampling sorting character set to obtain a conversion character set serving as the target prize exchanging code set.
In an optional implementation manner, the prize exchanging code obtaining unit 403 is configured to obtain a set number of the initial sorting character set; and removing the sorting characters smaller than a set numerical value from the initial sorting character set according to the set system number to obtain the modified sorting character set, wherein the coverage rate of the initial sorting character set is smaller than the set coverage rate.
In an optional implementation manner, the prize redemption code obtaining unit 403 is configured to sample the modified sorted character set over the total character length according to an average offset over the total character length of the initial sorted character set, so as to obtain the sampled sorted character set.
In an optional implementation manner, the prize exchanging code obtaining unit 403 is configured to perform character conversion on the sampling sorting character set to obtain a conversion character set, adjust the sorting of each group of characters in the conversion character set, and use the conversion character set after the sorting is adjusted as the target prize exchanging code set.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an electronic device 800 for a method of generating a redemption code in accordance with 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/presentation (I/O) interface 812, sensor component 814, and 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. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can 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 operation 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 non-volatile 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 disks.
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 supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides a presentation interface between the electronic device 800 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating 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 a focal length and optical zoom capability.
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 further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for presenting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. 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 an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of redemption code generation, the method comprising:
acquiring configuration information for generating a prize exchanging code;
removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes;
and processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the coverage rate of the target prize exchanging code set is less than the set coverage rate.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (11)

1. A prize-exchanging code issuing system, comprising 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 provided in the same restricted network, and wherein the system further comprises:
the prize exchanging code generating server is used for acquiring configuration information for generating prize exchanging codes; removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes; processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the coverage rate of the target prize exchanging code set is less than a set coverage rate, and sending the generated target prize exchanging code set to a prize exchanging code issuing server;
the game server is used for generating a prize exchanging request according to the prize exchanging code character string when receiving the prize exchanging code character string sent by the game client, and sending the prize exchanging request to the prize exchanging code issuing server, wherein the prize exchanging request carries the prize exchanging code character string, a world identification of a player and a player identification;
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 using 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;
and the game server is used for receiving the prize exchanging confirmation information and exchanging prizes for the target players corresponding to the player identifications 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 rewarded according to the rewarding confirmation information, if it is determined that a rewarding item is in a prize cashing content white list, rewarding the target player according to the prize cashing confirmation information; and if the prize exchanging article is not in the prize exchanging content white list, prohibiting prize exchanging.
3. The system according to claim 2, wherein the game server, after judging that a prize-exchanging article is in a prize-exchanging content white list, if judging that the number of times of exchanging prizes of the target player in a set time period is within a set number of times, carries out prize exchanging for the target player according to the prize-exchanging confirmation information; and if the number of times of exchanging the prizes is not within the set number of times, forbidding exchanging the prizes.
4. The system of claim 1, wherein the prize-exchanging code issuing server verifies prize-exchanging information carried by the prize-exchanging request, and the verification comprises:
the prize exchanging code issuing server is used for verifying whether the prize exchanging code character string in the prize exchanging request is valid, verifying whether the world identification of the player corresponds to the game server or not and verifying whether the prize exchanging code character string meets prize exchanging set rules or not by utilizing the target prize exchanging code set.
5. A prize exchanging code generating method is applied to a prize exchanging code generating server and is characterized by comprising the following steps:
acquiring configuration information for generating a prize exchanging code;
removing characters which are easy to misinterpret from a preset character set for generating the prize exchanging codes to obtain a target character set for generating the prize exchanging codes;
and processing the target character set by adopting an exhaustive segmentation method to obtain a target prize exchanging code set meeting the configuration information, wherein the coverage rate of the target prize exchanging code set is less than the set coverage rate.
6. The method of claim 5, wherein processing the target character using exhaustive segmentation to obtain a target redemption code set that satisfies the configuration information comprises:
generating an initial arrangement character set with a set character length based on the target character set;
removing decimal values of the sorting characters in the initial sorting character set to obtain a modified sorting character set with the decimal values removed;
sampling the modified sorting character set to obtain a sampling sorting character set;
and performing character conversion on the sampling sorting character set to obtain a conversion character set serving as the target prize exchanging code set.
7. The method of claim 6, wherein said removing decimal values from said initial sorted character set to obtain a modified sorted character set with decimal values removed comprises:
acquiring a set system number of the initial sorting character set;
and removing the sorting characters smaller than a set numerical value from the initial sorting character set according to the set system number to obtain the modified sorting character set, wherein the coverage rate of the initial sorting character set is smaller than the set coverage rate.
8. The method of claim 7, wherein sampling the modified ordered character set to obtain a sampled ordered character set comprises:
and sampling the modified ordered character set on the total character length according to the average offset on the total character length of the initial ordered character set to obtain the sampled ordered character set.
9. The method of claim 8, wherein the character converting the sample ordered character set to obtain a converted character set as the target redemption code set comprises:
and performing character conversion on the sampling sorting character set to obtain a conversion character set, adjusting the sorting of each group of characters in the conversion character set, and taking the conversion character set after the sorting adjustment as the target prize exchanging code set.
10. 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 to execute operating instructions included in the one or more programs for performing the corresponding method according to any one of claims 5 to 9.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps corresponding to the method according to any one of claims 5 to 9.
CN202110546096.1A 2021-05-19 2021-05-19 Prize exchanging code generation method and device, electronic device and storage medium Pending CN113240471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110546096.1A CN113240471A (en) 2021-05-19 2021-05-19 Prize exchanging code generation method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110546096.1A CN113240471A (en) 2021-05-19 2021-05-19 Prize exchanging code generation method and device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113240471A true CN113240471A (en) 2021-08-10

Family

ID=77137568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110546096.1A Pending CN113240471A (en) 2021-05-19 2021-05-19 Prize exchanging code generation method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113240471A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001032281A1 (en) * 1999-11-03 2001-05-10 Arcade Planet, Inc. Prize redemption system for games executed over a wide area network
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
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
CN108573402A (en) * 2018-03-12 2018-09-25 阿里巴巴集团控股有限公司 A kind of redemption code distribution method, server and system
CN110677239A (en) * 2019-08-26 2020-01-10 深圳市共进电子股份有限公司 Verification code generation method and device
CN110738513A (en) * 2019-09-11 2020-01-31 完美世界(北京)软件科技发展有限公司 method and device for generating and verifying redemption codes
CN111539502A (en) * 2020-03-25 2020-08-14 中国平安财产保险股份有限公司 Anti-counterfeiting two-dimensional code generation method and device, server and storage medium
CN111723360A (en) * 2019-03-18 2020-09-29 北京京东尚科信息技术有限公司 Voucher code processing method and device and storage medium
CN112380810A (en) * 2020-11-24 2021-02-19 深圳技福教育科技有限公司 Exchange code generation method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001032281A1 (en) * 1999-11-03 2001-05-10 Arcade Planet, Inc. Prize redemption system for games executed over a wide area network
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
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
CN108573402A (en) * 2018-03-12 2018-09-25 阿里巴巴集团控股有限公司 A kind of redemption code distribution method, server and system
CN111723360A (en) * 2019-03-18 2020-09-29 北京京东尚科信息技术有限公司 Voucher code processing method and device and storage medium
CN110677239A (en) * 2019-08-26 2020-01-10 深圳市共进电子股份有限公司 Verification code generation method and device
CN110738513A (en) * 2019-09-11 2020-01-31 完美世界(北京)软件科技发展有限公司 method and device for generating and verifying redemption codes
CN111539502A (en) * 2020-03-25 2020-08-14 中国平安财产保险股份有限公司 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

Similar Documents

Publication Publication Date Title
EP3531649B1 (en) Method and device for allocating augmented reality-based virtual objects
EP3133528B1 (en) Method and apparatus for fingerprint identification
CN109039990B (en) Behavior verification method and device based on verification code
CN106453052B (en) Message interaction method and device
CN108406776B (en) Safety interaction method, safety interaction device and service robot
EP2978162B1 (en) Anti-counterfeiting verification method, device and system
US10313870B2 (en) Identity verification method and apparatus, and storage medium
CN106096964B (en) Payment method and device
CN111339508A (en) Shared password analysis method and device, electronic equipment and storage medium
CN111368232A (en) Password sharing reflux method and device, electronic equipment and storage medium
KR20210032690A (en) Advertisement service providing system using offline advertisement event and method thereof
CN111917728A (en) Password verification method and device
CN109246094B (en) User terminal verification method, device and storage medium
JP2009136350A (en) Game system, server and program
JP2009131416A (en) Game system, game server, portable terminal, game program and program for portable terminal
CN113240471A (en) Prize exchanging code generation method and device, electronic device and storage medium
CN111159469B (en) User rights object information processing method and device and electronic equipment
CN114124462B (en) Verification code transmission method and device, electronic equipment and storage medium
JP2007226665A (en) Authentication device and cellphone terminal
CN112785312A (en) Information sharing method and device, electronic equipment and readable storage medium
CN108881242B (en) Method and device for acquiring electronic identity card
CN109151605B (en) Video comment content sending method and device and storage medium
CN111724536A (en) Vehicle unlocking method and device, electronic equipment and storage medium
CN112529560A (en) Offline cash registering system, method and device and electronic equipment
CN111797383A (en) Password verification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination