Game gift package serial number processing method and device, electronic equipment and storage medium

By generating and storing the correspondence between game gift pack serial numbers and reward identifiers through the gift pack serial number system, the problems of low generation efficiency and insufficient flexibility in existing technologies are solved, achieving efficient and flexible management of game gift pack serial numbers and reducing the resource consumption of game servers.

CN113908557BActive Publication Date: 2025-12-23NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111204154.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2025-12-23
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

In existing technologies, the generation of game gift pack serial numbers is inefficient and inflexible, requiring manual operation by staff on the game server side. Furthermore, the generation and activation of gift pack serial numbers for each game are handled separately by each game server, resulting in high resource consumption and affecting game performance.

Method used

The gift pack serial number system is responsible for generating and activating game gift pack serial numbers. The gift pack server generates and stores the correspondence between serial numbers and reward identifiers. The game server only needs to save the reward identifiers and their corresponding virtual resources, reducing the processing steps and achieving efficient generation and flexible adjustment.

Benefits of technology

It improves the efficiency and flexibility of generating game gift pack serial numbers, reduces the resource consumption of game servers, simplifies the process of adjusting gift pack serial numbers, and improves the efficiency of game operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113908557B_ABST
    Figure CN113908557B_ABST
Patent Text Reader

Abstract

The application provides a game gift package serial number processing method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining configuration information of a game gift package serial number; generating a target number of game gift package serial numbers for a target game according to the configuration information; establishing and storing a corresponding relationship between the target number of game gift package serial numbers and the configuration information and a reward identifier; sending the reward identifier to a game server of the target game; and outputting the target number of game gift package serial numbers. The method enables a user to automatically generate a target number of gift package serial numbers from a gift package server by only inputting configuration information, and enables a game server to perform only a small amount of storage and processing processes, thereby greatly improving the generation efficiency of game gift package serial numbers. Meanwhile, the flexibility of generating gift package serial numbers is also greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the game technical field, and in particular to a game gift package serial number processing method and device, an electronic device and a storage medium. BACKGROUND

[0002] In the game field, the game gift package serial number is one of important means for game to obtain new users, recall old users, activity reward, player compensation and other application scenarios, which can play a significant role in game operation. Specifically, the game manufacturer sends the game gift package serial number to the player, and the game gift package serial number corresponds to specific virtual resources such as equipment and weapons. After the player obtains the gift package serial number, the player can apply to activate the game gift package serial number, and the game manufacturer issues the virtual resources corresponding to the game gift package serial number to the player after confirming that the game gift package serial number is available. For the game manufacturer, the game developed by the game manufacturer may have multiple games, and each game may need to use a large number of game gift package serial numbers in operation. At the same time, the corresponding activation function needs to be provided for each game gift package serial number. Therefore, how to effectively generate and activate the gift package serial number is a problem to be solved.

[0003] In the prior art, the generation and activation of the game gift package serial number are completed by each game separately. The generation process of the game gift package serial number includes: the marketing personnel applies to send the game gift package serial number to the game, the staff of the game manually generates the game gift package serial number according to the application, configures the corresponding virtual resources for the game gift package serial number, saves the correspondence between the game gift package serial number and the virtual resources to the game server, and feeds back the generated gift package serial number to the marketing personnel, which is then distributed to the player by the marketing personnel through the channel. At the same time, the activation function of each game gift package serial number is implemented by the game server of each game. Specifically, after the player applies to activate the game gift package serial number, the game server confirms whether the game gift package serial number of the player is available based on a series of restriction conditions, and issues the virtual resources corresponding to the game gift package serial number to the player after confirming that it is available.

[0004] However, using the method of the prior art, the efficiency of generating the game gift package serial number is low, and the flexibility is low. SUMMARY

[0005] The present application aims to solve the problem of low efficiency and low flexibility of generating the game gift package serial number in the prior art by providing a game gift package serial number processing method, device, electronic device and storage medium.

[0006] In a first aspect, the present application provides a game gift package serial number processing method, comprising:

[0007] Configuration information of the game gift serial number is acquired, and the configuration information at least includes: an identifier of a target game to which the game gift serial number belongs, an award identifier to which the game gift serial number belongs, and a target quantity of the game gift serial number, wherein the award identifier is used to identify an activity to which the game gift serial number currently to be generated belongs, and virtual resources corresponding to a plurality of game gift serial numbers belonging to the same award identifier are all the same;

[0008] According to the configuration information, the target quantity of the game gift serial numbers is generated for the target game;

[0009] The target quantity of the game gift serial numbers and a corresponding relationship between the configuration information and the award identifier are established and stored;

[0010] The award identifier is sent to a game server of the target game;

[0011] The target quantity of the game gift serial numbers is output.

[0012] As an optional implementation manner, the target quantity of the game gift serial numbers is generated according to the configuration information, and the method comprises the following steps.

[0013] If the target quantity is greater than a preset threshold, the target quantity of the game gift serial numbers is generated by encryption based on a target encryption parameter, wherein the target encryption parameter includes: a serial number step and a random number, and each generated game gift serial number has a preset first length;

[0014] The target quantity of the game gift serial numbers and the corresponding relationship between the configuration information and the award identifier are established and stored, and the method comprises the following steps.

[0015] The corresponding relationship between the award identifier and the target encryption parameter and the configuration information is established and stored.

[0016] As an optional implementation manner, the target quantity of the game gift serial numbers is generated by encryption based on the target encryption parameter, and the method comprises the following steps.

[0017] According to the target quantity, the serial number step is determined;

[0018] The random number is randomly generated;

[0019] The target quantity of the game gift serial numbers is generated by encryption using a preset encryption algorithm with the serial number step and the random number as parameters.

[0020] As an optional implementation manner, the configuration information further includes a serial number prefix.

[0021] The generating the target number of game gift package serial numbers for the target game according to the configuration information comprises:

[0022] The generating the target number of game gift package serial numbers for the target game according to the configuration information comprises:

[0023] As an optional implementation manner, the configuration information further comprises a serial number format.

[0024] The generating the target number of game gift package serial numbers for the target game according to the configuration information comprises:

[0025] As an optional implementation manner, the configuration information further comprises a custom serial number.

[0026] The generating the target number of game gift package serial numbers for the target game according to the configuration information comprises:

[0027] The custom serial number is used as the target number of game gift package serial numbers.

[0028] As an optional implementation manner, the target number of game gift package serial numbers comprises a test serial number and an official serial number.

[0029] The method further comprises:

[0030] Obtaining an activation result of the test serial number, wherein, after receiving an activation request of the test serial number, the test serial number is activated to obtain the activation result of the test serial number.

[0031] Outputting the activation result of the test serial number.

[0032] In response to confirmation information of the activation result of the test serial number, determining that the official serial number is available.

[0033] As an optional implementation manner, the configuration information of the game gift package serial number comprises:

[0034] Receiving a generation request sent by a gift client, wherein the generation request comprises the configuration information and a task identifier.

[0035] As an optional implementation manner, the outputting the target number of game gift package serial numbers comprises:

[0036] Respectively generating a test file comprising the test serial number and an official file comprising the official serial number.

[0037] bind the test file and the formal file with the task identifier, so that the gift package client downloads the test file and the formal file based on the task identifier.

[0038] As an optional implementation, the obtaining the activation result of the test serial number comprises:

[0039] receiving a test request for the test serial number sent by the gift package client;

[0040] reading the activation result of the test serial number according to the test request.

[0041] As an optional implementation, the method further comprises:

[0042] receiving an activation request sent by a game server, the activation request comprising a serial number to be activated;

[0043] determining whether the serial number to be activated is a valid serial number;

[0044] if it is determined that the serial number to be activated is a valid serial number, determining whether to activate the serial number to be activated according to configuration information and actual activation information of the serial number to be activated;

[0045] if it is determined to activate the serial number to be activated, sending an activation success response to the game server, the activation success response comprising a reward identifier to which the serial number to be activated belongs and an activation result, and marking the serial number to be activated as a serial number that has been activated, the activation result comprising an activation position of the serial number to be activated.

[0046] As an optional implementation, the determining whether the serial number to be activated is a valid serial number comprises:

[0047] determining, according to a length of the serial number to be activated, whether the serial number to be activated is a serial number generated by encryption;

[0048] if yes, decrypting the serial number to be activated by using a decryption algorithm corresponding to a preset encryption algorithm to obtain a target encryption parameter, and querying whether there is a reward identifier corresponding to the target encryption parameter, and if yes, determining that the serial number to be activated is a valid serial number;

[0049] if no, querying whether there is a reward identifier corresponding to the serial number to be activated, and if yes, determining that the serial number to be activated is a valid serial number.

[0050] As an optional implementation, the activation request further comprises an identifier of a player who requests to activate the serial number to be activated.

[0051] The determining whether the to-be-activated serial number is a valid serial number comprises:

[0052] According to the identification of the player and the current anti-brush cooling time, it is determined whether the player is in an anti-brush cooling period.

[0053] If not, it is determined whether the to-be-activated serial number is a valid serial number.

[0054] As an optional implementation, after the determination of whether the to-be-activated serial number is a valid serial number, the method further comprises:

[0055] If it is determined that the to-be-activated serial number is not a valid serial number, the anti-brush cooling time is updated according to the to-be-activated serial number, the last activated serial number, and the retry activation number of the player.

[0056] As an optional implementation, the updating of the anti-brush cooling time according to the to-be-activated serial number, the last activated serial number, and the retry activation number of the player comprises:

[0057] If the to-be-activated serial number is different from the last activated serial number, and the retry activation number is greater than or equal to a preset number threshold, an anti-brush factor is updated, and the anti-brush cooling time is updated according to the updated anti-brush factor.

[0058] As an optional implementation, the updating of the anti-brush factor and the anti-brush cooling time according to the updated anti-brush factor comprises:

[0059] A value obtained by adding one to the anti-brush factor is calculated to obtain an updated anti-brush factor.

[0060] A product of the updated anti-brush factor and a preset unit anti-brush time is calculated to obtain an updated anti-brush cooling time.

[0061] As an optional implementation, the actual activation information comprises at least one of the following: serial number disabling information, serial number effective time, activation channel, activated number, constraint information.

[0062] According to the configuration information and the actual activation information of the to-be-activated serial number, it is determined whether to activate the to-be-activated serial number, comprising:

[0063] If the actual activation information all matches the configuration information, it is determined to activate the to-be-activated serial number.

[0064] In a second aspect, the application provides a game gift package serial number processing method, comprising:

[0065] An award identifier sent by a gift package server is received, and the award identifier corresponds to a plurality of game gift package serial numbers.

[0066] determining a virtual resource corresponding to the reward identifier according to the resource configuration information indicated by the user;

[0067] creating and storing a corresponding relationship between the reward identifier and the virtual resource.

[0068] As an optional implementation, the method further comprises:

[0069] receiving an activation request sent by a game client, the activation request including a serial number to be activated input by a player and an identifier of the player;

[0070] sending the activation request to a gift package server;

[0071] receiving an activation response sent by the gift package server, the activation response including an activation success response or an activation failure response, the activation success response including a reward identifier to which the serial number to be activated belongs, and the activation failure response including an activation failure reason.

[0072] As an optional implementation, the method further comprises:

[0073] if the activation response is the activation success response, querying a virtual resource corresponding to the reward identifier and issuing the virtual resource corresponding to the reward identifier to the player.

[0074] In a third aspect, the present application provides a game gift package serial number processing device, comprising:

[0075] an obtaining module configured to obtain configuration information of a game gift package serial number, the configuration information including at least an identifier of a target game to which the game gift package serial number belongs, a reward identifier to which the game gift package serial number belongs, and a target quantity of the game gift package serial number, wherein the reward identifier is used to identify an activity to which a currently generated game gift package serial number belongs, and virtual resources corresponding to a plurality of game gift package serial numbers belonging to the same reward identifier are all the same;

[0076] a generating module configured to generate the target quantity of game gift package serial numbers for the target game according to the configuration information;

[0077] a processing module configured to establish and store a corresponding relationship between the target quantity of game gift package serial numbers and the reward identifier, send the reward identifier to a game server of the target game, and output the target quantity of game gift package serial numbers.

[0078] As an optional implementation, the generating module is specifically configured to:

[0079] If the target quantity is greater than a preset threshold, the game gift package serial numbers of the target quantity are generated based on target encryption parameters, wherein the target encryption parameters include a serial number step and a random number, and each generated game gift package serial number has a preset first length.

[0080] The processing module is specifically configured to:

[0081] establish and store a correspondence between the reward identifier and the target encryption parameters and the configuration information.

[0082] As an optional implementation manner, the generating module is specifically configured to:

[0083] determine the serial number step according to the target quantity;

[0084] randomly generate the random number;

[0085] generate the game gift package serial numbers of the target quantity by using a preset encryption algorithm with the serial number step and the random number as parameters.

[0086] As an optional implementation manner, the configuration information further includes a serial number prefix.

[0087] The generating module is specifically configured to:

[0088] generate the game gift package serial numbers of the target quantity for the target game by using the serial number prefix.

[0089] As an optional implementation manner, the configuration information further includes a serial number format.

[0090] The generating module is specifically configured to:

[0091] generate the game gift package serial numbers of the target quantity for the target game based on the serial number format, and each generated game gift package serial number satisfies the serial number format.

[0092] As an optional implementation manner, the configuration information further includes a custom serial number.

[0093] The generating module is specifically configured to:

[0094] use the custom serial number as the game gift package serial numbers of the target quantity.

[0095] As an optional implementation manner, the game gift package serial numbers of the target quantity include test serial numbers and formal serial numbers.

[0096] The obtaining module is further configured to:

[0097] obtaining an activation result of the test serial number, wherein, after receiving the activation request of the test serial number, the test serial number is activated to obtain the activation result of the test serial number;

[0098] outputting the activation result of the test serial number;

[0099] determining that the formal serial number is available in response to confirmation information of the activation result of the test serial number.

[0100] As an optional implementation, the obtaining module is specifically configured to:

[0101] receiving a generation request sent by the gift package client, the generation request including the configuration information and a task identifier.

[0102] As an optional implementation, the outputting of the target number of game gift package serial numbers includes:

[0103] generating a test file including the test serial number and a formal file including the formal serial number respectively;

[0104] binding the test file and the formal file with the task identifier, so that the gift package client downloads the test file and the formal file based on the task identifier.

[0105] As an optional implementation, the obtaining module is specifically configured to:

[0106] receiving a test request for the test serial number sent by the gift package client;

[0107] reading the activation result of the test serial number according to the test request.

[0108] As an optional implementation, the processing module is further configured to:

[0109] receiving an activation request sent by a game server, the activation request including a serial number to be activated;

[0110] determining whether the serial number to be activated is a valid serial number;

[0111] if it is determined that the serial number to be activated is a valid serial number, determining whether to activate the serial number to be activated according to configuration information of the serial number to be activated and actual activation information;

[0112] If it is determined that the to-be-activated serial number is valid, an activation success response is sent to the game server, the activation success response including an award identifier to which the to-be-activated serial number belongs and an activation result, and the to-be-activated serial number is marked as an activated serial number, the activation result including an activation position of the to-be-activated serial number.

[0113] As an optional implementation, the processing module is specifically configured to:

[0114] According to a length of the to-be-activated serial number, it is determined whether the to-be-activated serial number is an encrypted serial number;

[0115] If yes, a decryption algorithm corresponding to a preset encryption algorithm is used to decrypt the to-be-activated serial number to obtain a target encryption parameter, and it is determined whether there is an award identifier corresponding to the target encryption parameter, if yes, it is determined that the to-be-activated serial number is a valid serial number;

[0116] If no, it is determined whether there is an award identifier corresponding to the to-be-activated serial number, if yes, it is determined that the to-be-activated serial number is a valid serial number.

[0117] As an optional implementation, the activation request further includes an identifier of a player who requests to activate the to-be-activated serial number.

[0118] The processing module is specifically configured to:

[0119] According to the identifier of the player and a current anti-brush cooling time, it is determined whether the player is in an anti-brush cooling period;

[0120] If no, it is determined whether the to-be-activated serial number is a valid serial number.

[0121] As an optional implementation, the processing module is specifically configured to:

[0122] If it is determined that the to-be-activated serial number is not a valid serial number, the anti-brush cooling time is updated according to the to-be-activated serial number, the previously activated serial number, and a retry activation number of the player.

[0123] As an optional implementation, the processing module is specifically configured to:

[0124] If the to-be-activated serial number is different from the previously activated serial number, and the retry activation number is greater than or equal to a preset number threshold, an anti-brush factor is updated, and the anti-brush cooling time is updated according to the updated anti-brush factor.

[0125] As an optional implementation, the processing module is specifically configured to:

[0126] Calculate the value of the anti-brushing factor plus one to obtain an updated anti-brushing factor;

[0127] Calculate the product of the updated anti-brushing factor and the preset unit anti-brushing time to obtain an updated anti-brushing cooling time.

[0128] As an optional implementation, the actual activation information includes at least one of the following: serial number disable information, serial number effective time, activation channel, activated number of times, constraint information.

[0129] The processing module is specifically configured to:

[0130] If the actual activation information all match the configuration information, it is determined that the to-be-activated serial number is activated.

[0131] In a fourth aspect, the present application provides a game gift package serial number processing device, comprising:

[0132] The receiving module is configured to receive a reward identifier sent by a gift package server, the reward identifier corresponding to a plurality of game gift package serial numbers.

[0133] The processing module is configured to determine virtual resources corresponding to the reward identifier according to resource configuration information indicated by a user, and create and store a corresponding relationship between the reward identifier and the virtual resources.

[0134] As an optional implementation, the processing module is further configured to:

[0135] The receiving module is configured to receive an activation request sent by a game client, the activation request including a to-be-activated serial number input by a player and an identifier of the player.

[0136] The sending module is configured to send the activation request to the gift package server.

[0137] The receiving module is configured to receive an activation response sent by the gift package server, the activation response including an activation success response or an activation failure response, the activation success response including a reward identifier to which the to-be-activated serial number belongs, and the activation failure response including an activation failure reason.

[0138] As an optional implementation, the processing module is further configured to:

[0139] If the activation response is the activation success response, the processing module is configured to query virtual resources corresponding to the reward identifier, and issue the virtual resources corresponding to the reward identifier to the player.

[0140] In a fifth aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores machine readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine readable instructions to perform the steps of the game gift package serial number processing method of the first aspect or the second aspect.

[0141] In a sixth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is run by a processor, the processor performs the steps of the game gift package serial number processing method of the first aspect or the second aspect.

[0142] The game gift package serial number processing method, device, electronic device and storage medium provided by the present application, after the gift package server obtains the configuration information of the gift package serial number, the corresponding target number of gift package serial numbers meeting the configuration information is generated, and the corresponding relationship between the target number of gift package serial numbers and the reward identifier used to identify the current activity is established. Then, on the one hand, the gift package server outputs the target number of gift package serial numbers for the user to download and then distribute, and on the other hand, only sends the reward identifier to the game server, and the game server establishes the corresponding relationship between the reward identifier and the virtual resource to be distributed according to the resource configuration information of the user and uses it for subsequent activation of the gift package serial number. In the above process, the user only needs to input the configuration information to automatically generate the target number of gift package serial numbers by the gift package server, and the game server only needs to save the reward identifier and the corresponding virtual resource, that is, the game server only needs to perform a small amount of storage and processing process, thereby greatly improving the generation efficiency of the game gift package serial number. At the same time, when a new game needs to be distributed with a gift package serial number, no additional processing is required, and only the identification of the new game needs to be input when the configuration information is input to generate the gift package serial number, thereby greatly improving the flexibility of the gift package serial number generation. BRIEF DESCRIPTION OF DRAWINGS

[0143] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.

[0144] Figure 1 An example of the system architecture involved in the game gift package serial number processing method of the embodiments of the present application;

[0145] Figure 2 An interaction diagram of the game gift package serial number processing method provided by the embodiments of the present application;

[0146] Figure 3 A flowchart of a gift package serial number processing method provided by an embodiment of the present application is shown in FIG. 1.

[0147] Figure 4 An interface example for a user to input the configuration information on an interface of a gift package client is shown in FIG. 2.

[0148] Figure 5 A flowchart of a verification test serial number is shown in FIG. 3.

[0149] Figure 6 An interface of a gift package client is shown in FIG. 4.

[0150] Figure 7 Another interface of a gift package client is shown in FIG. 5.

[0151] Figure 8 Another interaction diagram of a game gift package serial number processing method provided by an embodiment of the present application is shown in FIG. 6.

[0152] Figure 9 An example diagram of a gift package server comparing actual activation information with configuration information is shown in FIG. 7.

[0153] Figure 10 A complete processing flow of a gift package server preventing a to-be-activated serial number from being brushed is shown in FIG. 8.

[0154] Figure 11 A module structure diagram of a game gift package serial number processing device provided by the present application is shown in FIG. 9.

[0155] Figure 12 A module structure diagram of another game gift package serial number processing device provided by the present application is shown in FIG. 10.

[0156] Figure 13 A structure diagram of an electronic device 130 provided by an embodiment of the present application is shown in FIG. 11. DETAILED DESCRIPTION

[0157] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of description and illustration, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn according to the actual proportions. The flowcharts in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can not be implemented in sequence, and the steps without logical context relationship can be reversed in sequence or implemented simultaneously. In addition, one or more other operations can be added to the flowcharts or one or more operations can be removed from the flowcharts under the guidance of the content of the present application.

[0158] In addition, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0159] In order to enable those skilled in the art to use the content of the present application, the following implementation is given in combination with a specific application scenario "generation and activation of game gift package serial number". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of the present application. Although the present application is mainly described in relation to the generation and activation of game gift package serial number, it should be understood that this is only an exemplary embodiment.

[0160] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0161] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0162] In addition, in the activation stage of the game gift package serial number, the operation of confirming and issuing the virtual resources corresponding to the game gift package serial number needs to be performed by each game server, which will result in high resource occupation of the game server and may affect the running effect of the game. When the game gift package serial number needs to be adjusted, the processing logic of the game server needs to be modified accordingly, resulting in low development efficiency of the game server.

[0163] Based on the above problems, the application provides a game gift package serial number processing method. The game gift package serial number system and the game server cooperate, the game gift package serial number system is responsible for the generation and activation of the game gift package serial number, and the game server only needs to perform a small amount of operation to realize the generation and activation of the game gift package serial number. The game gift package serial number can cooperate with multiple game servers to complete the generation and activation of the game gift package serial number of various different games, so that the efficiency and flexibility of the game gift package serial number generation are greatly improved, and the resource occupation of the game server is greatly reduced. When the game gift package serial number needs to be adjusted, the game gift package serial number system only needs to regenerate the game gift package serial number, and the processing logic of the game server does not need to be modified.

[0164] Before introducing the technical scheme of the application, two related terms involved in the application are first explained.

[0165] 1. Game gift package serial number

[0166] The game gift package serial number can be a string of characters. The string of characters may include, for example, numbers, letters, etc. The game gift package serial number can be issued to a player. One game gift package serial number can correspond to specific virtual resources, such as equipment, props, and weapons. After the game gift package serial number is issued to the player, the player initiates the serial number activation, and through the interaction and cooperation of the game gift package serial number system and the game server, the virtual resources corresponding to the game gift package serial number can be issued to the player.

[0167] It is worth noting that in the specific implementation process, the game gift package serial number can also use the names of game gift package exchange codes and game gift package exchange numbers.

[0168] For ease of description, the game gift package serial number is referred to as the gift package serial number in the following embodiments of the application, and it should be understood that the meanings represented by the two are the same.

[0169] 2. Reward identifier

[0170] For one activity, the game manufacturer may need to generate a batch of multiple gift package serial numbers, and the virtual resources corresponding to the batch of multiple gift package serial numbers are the same. That is, for one activity, the game manufacturer needs to issue a batch of gift package serial numbers, and the virtual resources that can be exchanged by the batch of gift package serial numbers are the same. In the embodiments of the application, the identifier "reward identifier" is provided to uniquely identify one activity. The reward identifier can correspond to multiple gift package serial numbers. The virtual resources corresponding to the multiple gift package serial numbers belonging to the same reward identifier are the same, indicating that the virtual resources that can be exchanged by the batch of gift package serial numbers issued in this activity are the same.

[0171] Figure 1 For the system architecture example of the game gift package serial number processing method of the embodiments of the application, as shown inFigure 1 As shown, the present application relates to a gift package serial number system and at least one game system. The game system refers to a game system of each game, and the game system can include a game server and a game client. A player performs operations on the game client, and the game client presents a game process and a result to the player by interacting with the game server. The gift package serial number system refers to a system that generates and activates a gift package serial number in cooperation with the game system in the present application. In an optional manner, the gift package serial number system can only include a gift package server, and the gift package server can provide an interface for a user to input configuration information and view a result of gift package generation, etc. In another optional manner, the gift package serial number system can include a gift package server and a gift package client, the gift package client provides an interface for a user to input configuration information and view a result of gift package generation, etc., and the gift package server and the gift package client interact to receive the configuration information and output the result to the package client. Figure 1 The gift package serial number system includes a gift package server and a gift package client as an example. The embodiments of the present application are also explained and described by taking the gift package serial number system including a gift package server and a gift package client as an example. It should be understood that when the gift package serial number system only includes a gift package server, the processing process of the gift package client described in the following embodiments can be executed on the gift package server. When the gift package serial number system uses any one of the above two optional manners, the gift package server can interact with the game server to realize the generation and activation of the gift package serial number of the present application.

[0172] It is worth noting that the present application can provide gift package serial number generation and activation for multiple games respectively. Therefore, the gift package server interacts with the game servers of multiple game systems respectively to provide gift package serial number generation and activation for each game respectively.

[0173] In the following, the processing process of the generation stage of the gift package serial number and the processing process of the activation stage will be described respectively.

[0174] Figure 2 An interaction schematic diagram of a game gift package serial number processing method provided by an embodiment of the present application is related to the above-mentioned gift package server and game server, and the game server can be any one of the game servers interacting with the gift package server. As shown in the figure, Figure 2 The process of interaction includes:

[0175] S201, the gift package server acquires configuration information of the game gift package serial number, and the configuration information at least includes: an identifier of a target game to which the game gift package serial number belongs, an identifier of a reward to which the game gift package serial number belongs, and a target quantity of the game gift package serial number.

[0176] The reward identifier is used for identifying an activity to which the game gift package serial number to be generated currently belongs, and the virtual resources corresponding to the game gift package serial numbers belonging to the same reward identifier are all the same.

[0177] Optionally, the user can input the configuration information on the interface of the gift package client, and send the configuration information to the gift package server. The gift package server can obtain the configuration information accordingly.

[0178] Optionally, the identifier of the target game to which the game gift package serial number belongs can include the name and number of the target game. The target game refers to the game to which the game gift package serial number generated in the current activity is applied. For example, the user can input the identifier of the target game on the interface of the gift package client by selecting in a drop-down box or directly inputting text.

[0179] It is worth noting that the user in the present application can refer to a staff member responsible for the issuance of the game gift package serial number.

[0180] Optionally, the user can input the reward identifier on the interface of the gift package client. The reward identifier can be a number, text or a combination of a number and text, etc. The present application does not make specific limitations in this regard.

[0181] Optionally, the target number of game gift package serial numbers refers to the number of game gift package serial numbers to be generated in the current activity. When the target number of game gift package serial numbers are generated, the target number of game gift package serial numbers all belong to the reward identifier and can be exchanged for the same virtual resource.

[0182] S202, the gift package server generates the target number of game gift package serial numbers for the target game according to the configuration information.

[0183] Optionally, the configuration information indicates the target game to which the current activity is directed, the reward identifier and the number of game gift package serial numbers to be generated in the current activity. Based on this, the gift package server can generate the target number of game gift package serial numbers for the target game in a preset generation manner. The specific process of generating the game gift package serial numbers by the gift package server will be described in detail in the following embodiments.

[0184] S203, the gift package server establishes and stores the correspondence between the target number of game gift package serial numbers and the configuration information and the reward identifier.

[0185] Optionally, the gift package server can establish a mapping relationship table between the reward identifier and each game gift package serial number and the information in each configuration information except the reward identifier, and save the mapping relationship table on the gift package server.

[0186] After the corresponding relationship between the reward identifier and each gift package serial number is established and stored, when the subsequent activation process of the gift package serial number is performed, the gift package server can find the corresponding reward identifier by using the gift package serial number provided by the player, and instruct the game server to issue virtual resources based on the reward identifier.

[0187] After the corresponding relationship between the reward identifier and each configuration information is established and stored, the information verification can be performed when the subsequent gift package serial number is activated by the user.

[0188] S204, the gift package server sends the above reward identifier to the game server of the target game.

[0189] After the target number of gift package serial numbers are generated according to the above configuration information, the gift package server can send the reward identifier to which the target number of gift package serial numbers belong to the game server, without the need to send each generated gift package serial number to the game server. The gift package serial number is only saved and maintained on the gift package server. In the subsequent activation stage, the activation of the gift package serial number can be realized based on the transmission of the reward identifier between the game server and the gift package server, thereby greatly reducing the resource occupation of the game server.

[0190] Correspondingly, the game server receives the above reward identifier sent by the gift package server, and the reward identifier corresponds to a plurality of game gift package serial numbers.

[0191] S205, the gift package server outputs the target number of game gift package serial numbers.

[0192] Optionally, the gift package server can send the target number of game gift package serial numbers to the gift package client for the user to download. After the user downloads the gift package serial number, the user can issue it according to the actual needs. Exemplarily, the gift package serial number is issued to the outside through a short message, or printed on the product outer package, etc.

[0193] S206, the game server determines the virtual resource corresponding to the reward identifier according to the resource configuration information indicated by the user.

[0194] Optionally, for each activity, the user can indicate the virtual resource corresponding to the reward identifier identifying the activity on the game server. Exemplarily, the user can write the configured virtual resource into a file and upload it to the game server, and the game server reads the content in the file to determine the virtual resource corresponding to the reward identifier.

[0195] S207, the game server creates and stores the corresponding relationship between the reward identifier and the virtual resource.

[0196] Optionally, the game server can establish a mapping relationship table between the above-mentioned prize identifier and the above-mentioned virtual resource. In the subsequent activation stage, the game server can learn the virtual resource that needs to be issued to the player by using the mapping relationship table.

[0197] It is worth noting that steps S206-S207 can be executed after step S204, and the execution sequence of step S205 is not prior or posterior.

[0198] In this embodiment, after the gift package server obtains the configuration information of the gift package serial number, it generates a target number of gift package serial numbers that meet the configuration information, and establishes a corresponding relationship between the target number of gift package serial numbers and the prize identifier used to identify this activity. Then, the gift package server outputs the target number of gift package serial numbers for the user to download and issue, and sends the prize identifier to the game server. The game server establishes a corresponding relationship between the prize identifier and the virtual resource to be issued according to the user's resource configuration information, and uses it for the subsequent activation of the gift package serial number. In the above process, the user only needs to input the configuration information to automatically generate the target number of gift package serial numbers by the gift package server. The game server only needs to save the prize identifier and the corresponding virtual resource, that is, the game server only needs to perform a small amount of storage and processing process, thereby greatly improving the generation efficiency of the game gift package serial number. At the same time, when a new game needs to be issued with a gift package serial number, no additional processing is required. Only the identification of the new game needs to be input when inputting the configuration information to generate the gift package serial number, thereby greatly improving the flexibility of the gift package serial number generation.

[0199] For one activity, the number of gift package serial numbers configured by the user in the above-mentioned configuration information can be less than or equal to a preset threshold, or can be greater than the preset threshold. The preset threshold can be, for example, 10 million. When the configured gift package serial number is less than or equal to the preset threshold, it indicates that the number of gift package serial numbers to be generated is small, and the target number of gift package serial numbers can be generated according to the configuration information and the corresponding relationship between the prize identifier and the target number of gift package serial numbers is saved on the gift package server. When the configured gift package serial number is greater than the preset threshold, it indicates that the generated gift package serial number is a large number of gift package serial numbers, for example, the activity needs to generate 10 million gift package serial numbers for printing on the outer packaging of a product. For a large number of gift package serial numbers, the present application can be generated by a specific encryption method and verified by a corresponding decryption method in the activation stage, without directly saving the generated gift package serial number on the gift package server, thereby greatly reducing the resource occupation of the gift package server. The generation process of the above-mentioned large number of gift package serial numbers and the generation process of the small number of gift package serial numbers are described below.

[0200] In an optional mode, when the target quantity is greater than the preset threshold, the optional mode of the step S202 comprises:

[0201] The target quantity of game gift package serial numbers are generated based on the target encryption parameter.

[0202] The target encryption parameter comprises a serial number step and a random number, and each of the generated game gift package serial numbers has a preset first length.

[0203] For example, the first length is 16 bits.

[0204] Correspondingly, the optional mode of the step S203 comprises:

[0205] The reward identifier is stored in correspondence with the target encryption parameter and the configuration information.

[0206] In this optional mode, the gift package server generates the target quantity of gift package serial numbers based on the target encryption parameter, and outputs the generated gift package serial numbers for the user to download based on the foregoing process. Meanwhile, the gift package server does not save the correspondence between the generated gift package serial numbers and the reward identifier, but saves the correspondence between the target encryption parameter and the reward identifier. In the following activation stage, the gift package server can use the target encryption parameter to perform corresponding decryption and verification, so as to greatly reduce the resource occupation of the gift package server while ensuring normal activation.

[0207] As an optional implementation, when the target quantity of game gift package serial numbers are generated based on the target encryption parameter, the following process can be performed:

[0208] According to the target quantity, the serial number step is determined. And the random number is randomly generated. Further, the serial number step and the random number are used as parameters to generate the target quantity of game gift package serial numbers by using a preset encryption algorithm.

[0209] In another optional mode, when the target quantity is less than or equal to the preset threshold, the gift package serial numbers can be generated in sequence according to the configuration information.

[0210] In the first case, the configuration information further comprises a serial number prefix.

[0211] For practical needs, the user's generated gift package serial numbers have a fixed prefix. Then the user can configure the fixed prefix on the gift package client as the serial number prefix in the configuration information. For example, the serial number prefix can be a two-bit prefix.

[0212] In this case, one optional manner of the step S202 comprises:

[0213] The target number of game gift serial numbers are generated for the target game using the serial number prefix.

[0214] Among the target number of gift serial numbers generated using the serial number prefix, each gift serial number has the serial number prefix.

[0215] For example, if the serial number prefix configured by the user is AB, the generated gift serial numbers can be AB123, AB234, AB345, etc.

[0216] In the second case, the configuration information further comprises a serial number format.

[0217] Optionally, the serial number format can be a format corresponding to the target game. The serial number format can be configured by the user on the serial number client, or can be read by the serial number server from the game server of the target game in advance. The serial number format matches the requirements or characteristics of the target game.

[0218] For example, the serial number format can comprise 3 digits + 4 lowercase letters + 3 uppercase letters.

[0219] In this case, one optional manner of the step S202 comprises:

[0220] Based on the serial number format, the target number of game gift serial numbers are generated for the target game, and the generated game gift serial numbers all satisfy the serial number format.

[0221] Specifically, the gift server generates gift serial numbers satisfying the serial number format by taking the serial number format as a constraint condition.

[0222] In the third case, the configuration information further comprises a custom serial number.

[0223] For practical needs, if the user wants to generate a gift serial number specified by himself, the user can configure the specified serial number on the gift client as the custom serial number in the configuration information. For example, the custom serial number can be a specified serial number such as “love8888” or “love9999”.

[0224] In this case, one optional manner of the step S202 comprises:

[0225] The custom serial number is used as the target number of game gift serial numbers.

[0226] In this way, the gift package server does not need to automatically generate the target number of gift package serial numbers, but directly saves the user-input custom serial number as the generated gift package serial number.

[0227] Optionally, in this way, the user can first input the target number, and then input the custom serial number one by one until the number of input custom serial numbers reaches the target number.

[0228] Hereinafter, the above-mentioned Figure 3 The complete process of the gift package server generating the target number of gift package serial numbers in step S202 will be described below.

[0229] Figure 3 The flowchart of the gift package serial number processing method provided by the embodiments of the present application is shown in Figure 3 The complete process of the gift package server generating the target number of gift package serial numbers includes:

[0230] S301, the gift package server determines whether the user has configured a custom serial number, if yes, step S302 is executed, otherwise, step S303 is executed.

[0231] Optionally, the gift package server can determine whether the configuration information contains a valid custom serial number, for example, whether the field of the custom serial number is not empty, if it contains a valid custom serial number, it is determined that the user has configured a custom serial number.

[0232] S302, the gift package server saves the custom serial number as the target number of gift package serial numbers.

[0233] S303, the gift package server determines whether the target game has a corresponding serial number format, if yes, step S304 is executed, otherwise, step S305 is executed.

[0234] The gift package server can determine whether the configuration information contains the serial number format corresponding to the target game, or determine whether the target game has a corresponding serial number format.

[0235] S304, the gift package server generates the target number of gift package serial numbers based on the serial number format. Then step S308 is executed.

[0236] S305, the gift package server determines whether the target number is greater than the preset threshold, if yes, step S306 is executed, otherwise, step S307 is executed.

[0237] S306, the gift package server generates the target number of game gift package serial numbers based on the target encryption parameter. Then step S308 is executed.

[0238] S307, the gift package server generates the target number of gift package serial numbers according to the target number and the serial number prefix. Then, step S308 is performed.

[0239] S308, the gift package server writes the generated target number of gift package serial numbers into the serial number file, obtaining the serial number file.

[0240] In the above embodiments, the information included in the above configuration information is described. In addition to this, the user can also configure one or more of the following information on the interface of the gift package client:

[0241] Gift package name: represents the name of the gift package of this activity.

[0242] Distribution channel: the game limits the gift package serial numbers of this activity to be distributed only in certain fixed channels, and users of channels not specified are not allowed to activate the gift package of the current application activity batch. The distribution channel currently connected to the game can be selected in the drop-down box of the gift package client. If no channel is selected, it means general.

[0243] Online time: the time point at which the player starts to activate the prize in this activity.

[0244] Expiration time: the time point at which the player terminates the activation of the prize in this activity.

[0245] Mutually exclusive with other reward identifiers: if the player has already received the reward of activity A, he / she is not allowed to receive the reward of this activity B, and the identifier of the reward of activity A is filled in the corresponding position in the gift package client. The gift package server automatically limits according to the mutual exclusion rules configured by the user.

[0246] Number of times the serial number can be activated: the number of times each serial number generated in this activity can be activated.

[0247] Number of times the same account can be activated: the number of gift package serial numbers of this activity that each player account is allowed to activate.

[0248] Number of times the same role can be activated: the number of gift package serial numbers of this activity that each player role is allowed to activate.

[0249] Whether to issue by charging: specify the serial number issuing party of this activity. If the serial number is not specified, the user can download the gift package serial number and issue it by the channel himself / herself; if the serial number is specified, the generated gift package serial number of this activity can only be issued by the official, and only the serial number marked as issued by the official can be used.

[0250] Limit to activate on specified game servers: the player can only activate and receive the generated gift package serial number of this activity on the specified game server.

[0251] Correspondingly, in the step S203, the gift package server can establish the corresponding relationship between the various information included in the configuration information and the reward identifier. Furthermore, in the activation phase, the verification and other processes during the activation can be based on these information, and the specific process will be described in detail in the following embodiments.

[0252] Figure 4 The interface example diagram for the user to input the configuration information on the interface of the gift package client is shown in the figure, and each information in the figure has been described in the foregoing embodiments and will not be described again.

[0253] As an optional implementation, the target number of gift package serial numbers generated by the gift package server can include test serial numbers and formal serial numbers.

[0254] The gift package server can divide the test serial numbers and the formal serial numbers according to a preset strategy.

[0255] For a game system, the game server can include a test server and a formal server. Correspondingly, the test serial number can be used for the test server, and the formal serial number can be used for the formal server. In the specific implementation process, the test serial number can be verified first, and when the test serial number is verified, it can be confirmed that the formal serial number is available, and then it can be officially issued externally. The following describes the verification process of the test serial number.

[0256] Figure 5 The flowchart for verifying the test serial number is shown in FIG. 5, which includes the following steps. Figure 5

[0257] S501, the gift package server obtains the activation result of the test serial number, wherein after receiving the activation request of the test serial number, the test serial number is activated to obtain the activation result of the test serial number.

[0258] Optionally, after obtaining the test serial number, the user can initiate the activation of the test serial number to trigger the execution of the activation process in the following embodiments. Through the interaction between the test server and the gift package server, the activation process of the test serial number is completed. The gift package serial number saves the activation result of the test serial number. Furthermore, in this step, the gift package server can obtain the activation result of the test serial number.

[0259] Optionally, the gift package server can obtain the activation result of the initial serial number after receiving the test request of the gift package client.

[0260] ​Specifically, the user initiates a test instruction on the gift package client, triggering the gift package client to send a test request for the test serial number to the gift package server. Correspondingly, the gift package server receives the test request for the test serial number sent by the gift package client, and then the gift package server reads the activation result of the test serial number according to the test request.

[0261] It is worth noting that before performing this step, the user has completed the activation of the test serial number through the interaction between the test server and the gift package server in advance, and the gift package server has saved the activation result.

[0262] S502, the gift package server outputs the activation result of the test serial number.

[0263] Optionally, the gift package server can send the activation result of the test serial number to the gift package client for display.

[0264] S503, the gift package server determines that the formal serial number is available in response to the confirmation information of the activation result of the test serial number.

[0265] After determining that the formal serial number is available, the user can issue the formal serial number. After the player obtains the formal serial number, initiates activation, which triggers the interaction between the formal server and the gift package server to complete the activation of the formal serial number.

[0266] Figure 6 For an interface schematic diagram of the gift package client, refer to Figure 6 When the user clicks the button, the test instruction is sent, triggering the execution of the above steps S501 and S502. Figure 7 For another interface schematic diagram of the gift package client, refer to Figure 7 After the gift package server outputs the activation result of the test serial number, the activation result of the test serial number is displayed on the interface of the gift package client. When the user confirms that the activation result is consistent with the expected result, the test pass button below the interface can be clicked to indicate that the test serial number test is passed, otherwise, the test fail button can be clicked to indicate that the test serial number test is failed, and the formal serial number is temporarily not issued.

[0267] As described above, after the gift package server generates a target number of gift package serial numbers, the gift package server can write the gift package serial numbers into a serial number file to obtain a serial number file. Correspondingly, the gift package server can output the serial number file after outputting the gift package serial numbers.

[0268] As an optional implementation, when the configuration information of the gift package serial number is acquired in step S201, a generation request sent by the gift package client can be received, and the generation request includes the configuration information and a task identifier. The task identifier can be an identifier generated by the gift package client for the current configuration.

[0269] Further, when the target number of gift package serial numbers are output in step S204, the gift package server can generate a test file containing the test serial number and a formal file containing the formal serial number respectively, and bind the test file and the formal file with the task identifier, so that the gift package client downloads the test file and the formal file based on the task identifier.

[0270] Continuing to refer to Figure 6 , the interface of the gift package client displays a formal code button and a test code button. When the user clicks the formal code button, the gift package client can download the formal file bound with the task identifier from the gift package server based on the task identifier, for issuing to the player. When the user clicks the test code button, the gift package client can download the test file bound with the task identifier from the gift package server based on the task identifier, for executing the activation process for the test serial number.

[0271] The activation process of the gift package serial number is described below.

[0272] Figure 8 Another interaction diagram of the game gift package serial number processing method provided by the embodiments of the present application is shown in FIG. 8. Figure 8 As shown in FIG. 8, the process of the interaction includes the following steps.

[0273] S801, the game server receives an activation request sent by the game client, and the activation request includes a to-be-activated serial number input by the player and an identifier of the player.

[0274] The game server can refer to the formal server or the test server. The identifier of the player refers to the identifier of the player who requests to activate the to-be-activated serial number.

[0275] After the player acquires the gift package serial number issued by the game party, the player can input the to-be-activated serial number in the game client and initiate an activation instruction, which triggers the game client to send the activation request to the game server. The game client can carry the to-be-activated serial number input by the player and the identifier of the player in the activation request. The identifier of the player can refer to the account of the player.

[0276] S802, the game server sends the activation request to the gift package server.

[0277] Correspondingly, the gift package server receives the activation request.

[0278] S803, the gift package server determines whether the to-be-activated serial number is a valid serial number.

[0279] The valid serial number can refer to a legal serial number generated by the gift package server. The gift package server first determines whether the gift package serial number is a valid serial number, and only when it is a valid serial number, it further determines whether to activate the to-be-activated serial number input by the player.

[0280] S804, if the gift package server determines that the to-be-activated serial number is a valid serial number, it determines whether to activate the to-be-activated serial number according to the configuration information and the actual activation information of the to-be-activated serial number.

[0281] Optionally, the actual activation information can be sent to the gift package server through the activation request, or be actively acquired by the gift package server.

[0282] The gift package server can query the configuration information corresponding to the to-be-activated serial number according to the correspondence between the reward identifier, the gift package serial number and the configuration information saved in the foregoing embodiments. Further, based on the configuration information and the actual activation information, it determines whether to activate the to-be-activated serial number.

[0283] Optionally, the actual activation information includes at least one of the following: serial number disabling information, serial number effective time, activation channel, and activated times.

[0284] As an optional implementation, the gift package server can compare the actual activation information with the configuration information. If the actual activation information all matches the matching information, it can be determined that the to-be-activated serial number is activated.

[0285] Figure 9 For an example of the gift package server comparing the actual activation information with the configuration information, refer to Figure 9 When each item of the actual activation information is successfully compared with the configuration information, it is determined that the to-be-activated serial number is activated. When any item fails to be compared, it is determined that the activation fails, i.e., it is determined that the to-be-activated serial number is not activated.

[0286] S805, if the gift package server determines to activate the to-be-activated serial number, it sends an activation success response to the game server, the activation success response including the reward identifier to which the to-be-activated serial number belongs and the activation result, and marks the to-be-activated serial number as an activated serial number, the activation result including the activation position of the to-be-activated serial number.

[0287] Correspondingly, the game server receives the activation success response.

[0288] In another case, if it is determined that the to-be-activated serial number is not activated, an activation failure response is sent to the game server, and the activation failure response includes an activation failure reason. The activation failure reason can include the information that the comparison is unsuccessful in the aforementioned step S804. Accordingly, the game server receives the activation failure response.

[0289] S806, if the game server receives the activation success response, the virtual resource corresponding to the reward identifier to which the to-be-activated serial number belongs is queried, and the virtual resource corresponding to the reward identifier is issued to the player.

[0290] In the embodiment, in the activation process of the gift serial number, the game server only needs to send the to-be-activated serial number input by the player to the gift server, and the gift server performs verification. When the gift server confirms that the to-be-activated serial number can be activated, the game server only needs to find the corresponding virtual resource according to the reward identifier to issue the virtual resource, and therefore, the game server only needs to perform a small amount of operation to complete the activation, thereby greatly reducing the resource occupation of the game server. At the same time, based on the embodiment, when the gift serial number needs to be adjusted, the processing logic of the game server also does not need to be modified, thereby ensuring the development efficiency of the game server.

[0291] As an optional implementation, the process of determining whether the to-be-activated serial number is a valid serial number in the aforementioned step S803 can include:

[0292] The gift server determines whether the to-be-activated serial number is an encrypted serial number according to the length of the to-be-activated serial number. If yes, the to-be-activated serial number is decrypted by using a decryption algorithm corresponding to a preset encryption algorithm to obtain a target encryption parameter, and it is determined whether there is a reward identifier corresponding to the target encryption parameter. If yes, it is determined whether the to-be-activated serial number is a valid serial number. If no, it is determined whether there is a reward identifier corresponding to the to-be-activated serial number, and if yes, it is determined that the to-be-activated serial number is a valid serial number.

[0293] As mentioned earlier, during the gift pack serial number generation stage, the gift pack server establishes a correspondence between target encryption parameters and reward identifiers for bulk gift pack serial numbers, and establishes a correspondence between reward identifiers and individual gift pack serial numbers for non-bulk gift pack serial numbers. Furthermore, the length of the bulk gift pack serial number is a preset first length. Accordingly, in this embodiment, the gift pack server can first determine whether the serial number to be activated belongs to a bulk or non-bulk gift pack serial number based on its length. If it is a bulk gift pack serial number, the target encryption parameters are decrypted using the decryption algorithm corresponding to the generation stage, and it is determined whether a reward identifier corresponding to the target encryption parameters exists. If it exists, it indicates that the serial number to be activated is a legitimate serial number generated by the gift pack server. If it is a non-bulk gift pack serial number, it can directly query whether a reward identifier corresponding to the serial number to be activated exists. If it exists, it indicates that the serial number to be activated is a legitimate serial number generated by the gift pack server.

[0294] As an optional implementation, this application also introduces an anti-fraud mechanism during the activation process of the gift pack serial number to further ensure the security of the gift pack serial number.

[0295] Optionally, upon receiving an activation request, the gift pack server first determines whether the player is in the anti-cheating cooldown period based on the player's identifier and the current anti-cheating cooldown time. If the player is in the anti-cheating cooldown period, the server directly returns an activation failure response to the game server and does not proceed with subsequent processing. If the player is not in the anti-cheating cooldown period, the server continues with step S803 and subsequent steps.

[0296] Specifically, the gift pack server assigns an anti-cheating cooldown time to each player. This cooldown time is updated in real time based on the player's actions, as follows: When the anti-cheating cooldown time is not zero, it indicates that the player is currently in the anti-cheating cooldown period.

[0297] As an optional implementation, after executing step S903, the gift pack server may perform the following steps to update the anti-fraud cooldown time.

[0298] If it is determined that the serial number to be activated is not a valid serial number, the anti-fraud cooldown time will be updated based on the serial number to be activated, the previously activated serial number, and the number of times the player has retried activation.

[0299] The previously activated serial number and the number of retry activation attempts can be retrieved based on the player's identifier. Each time a player requests to activate a gift pack serial number, the gift pack server records the player's identifier, the requested gift pack serial number, and counts the number of retry activation attempts.

[0300] Specifically, if the to-be-activated serial number is different from the last activated serial number, and the number of retry activations is greater than or equal to a preset number threshold, the gift server updates the anti-brush factor, and updates the anti-brush cooling time according to the updated anti-brush factor.

[0301] Specifically, the gift server calculates a value obtained by adding one to the anti-brush factor, to obtain an updated anti-brush factor, and calculates a product of the updated anti-brush factor and a preset unit anti-brush time, to obtain an updated anti-brush cooling time.

[0302] In another case, if the to-be-activated serial number is a valid serial number, the anti-brush cooling time corresponding to the player is continuously decremented. When the anti-brush cooling time is decremented to zero, the anti-brush cooling period is exited, and the last activated serial number is reset to a null value.

[0303] Figure 10 For the complete processing flow of the anti-brush processing of the gift server on the to-be-activated serial number, refer to Figure 10 The gift server judges the to-be-activated serial number and the last activated serial number. If the two are the same, it indicates that the player has input an incorrect to-be-activated serial number and repeatedly clicked due to network fluctuations and the like. For this case, the anti-brush cooling time is not updated, and the processing is directly returned. If the last activated serial number is a null value, it indicates that the player has used an invalid serial number for the first time or the time since the last use of the invalid serial number by the player has exceeded the anti-brush cooling time. For this case, the number of retries of the player is set to 1, and the last activated serial number is updated to the to-be-activated serial number. If the to-be-activated serial number and the last activated serial number are different, the anti-brush cooling time is continuously updated according to the number of retry activations.

[0304] Based on the same inventive concept, the embodiments of the present application also provide a game gift serial number processing device corresponding to the game gift serial number processing method. Since the principle of solving problems in the device of the embodiments of the present application is similar to the above-mentioned direction indication method in the game, the implementation of the device can be referred to the implementation of the method, and the repeated parts will not be described herein.

[0305] Figure 11 A module structure diagram of a game gift serial number processing device provided by the present application is shown in Figure 11 The device comprises:

[0306] The obtaining module 1101 is configured to obtain configuration information of the game gift serial number, and the configuration information at least comprises: an identifier of a target game to which the game gift serial number belongs, an award identifier to which the game gift serial number belongs, and a target quantity of the game gift serial number. The award identifier is used to identify an activity to which a game gift serial number to be currently generated belongs. Virtual resources corresponding to a plurality of game gift serial numbers belonging to the same award identifier are all the same.

[0307] The generating module 1102 is configured to generate the target number of game gift serial numbers for the target game according to the configuration information.

[0308] The processing module 1103 is configured to establish and store a correspondence between the target number of game gift serial numbers and the configuration information and the reward identifier, send the reward identifier to a game server of the target game, and output the target number of game gift serial numbers.

[0309] As an optional implementation manner, the generating module 1102 is specifically configured to:

[0310] If the target number is greater than a preset threshold, the target number of game gift serial numbers is generated by encryption based on target encryption parameters, wherein the target encryption parameters include a serial number step and a random number, and each generated game gift serial number has a preset first length.

[0311] The processing module 1103 is specifically configured to:

[0312] The correspondence between the reward identifier and the target encryption parameters and the configuration information is established and stored.

[0313] As an optional implementation manner, the generating module 1102 is specifically configured to:

[0314] According to the target number, the serial number step is determined.

[0315] The random number is randomly generated.

[0316] The target number of game gift serial numbers is generated by encryption using a preset encryption algorithm with the serial number step and the random number as parameters.

[0317] As an optional implementation manner, the configuration information further includes a serial number prefix.

[0318] The generating module 1102 is specifically configured to:

[0319] The target number of game gift serial numbers is generated for the target game using the serial number prefix.

[0320] As an optional implementation manner, the configuration information further includes a serial number format.

[0321] The generating module 1102 is specifically configured to:

[0322] The target number of game gift serial numbers is generated for the target game based on the serial number format, and each generated game gift serial number satisfies the serial number format.

[0323] As an optional implementation, the configuration information further includes a custom serial number.

[0324] The generating module 1102 is specifically configured to:

[0325] The custom serial number is used as the target number of game gift package serial numbers.

[0326] As an optional implementation, the target number of game gift package serial numbers includes a test serial number and an official serial number.

[0327] The obtaining module 1101 is further configured to:

[0328] Obtain an activation result of the test serial number, wherein, after receiving an activation request of the test serial number, the test serial number is activated to obtain the activation result of the test serial number.

[0329] Output the activation result of the test serial number.

[0330] In response to confirmation information of the activation result of the test serial number, determine that the official serial number is available.

[0331] As an optional implementation, the obtaining module 1101 is specifically configured to:

[0332] Receive a generation request sent by a gift client, and the generation request includes the configuration information and a task identifier.

[0333] As an optional implementation, the output of the target number of game gift package serial numbers includes:

[0334] Respectively generate a test file containing the test serial number and an official file containing the official serial number.

[0335] Bind the test file and the official file with the task identifier, so that the gift client downloads the test file and the official file based on the task identifier.

[0336] As an optional implementation, the obtaining module 1101 is specifically configured to:

[0337] Receive a test request for the test serial number sent by the gift client;

[0338] According to the test request, read the activation result of the test serial number.

[0339] As an optional implementation, the processing module 1103 is further configured to:

[0340] receive an activation request sent by a game server, the activation request including a to-be-activated serial number;

[0341] determine whether the to-be-activated serial number is a valid serial number;

[0342] if it is determined that the to-be-activated serial number is a valid serial number, determine whether to activate the to-be-activated serial number according to configuration information of the to-be-activated serial number and actual activation information;

[0343] if it is determined to activate the to-be-activated serial number, send an activation success response to the game server, the activation success response including a reward identifier to which the to-be-activated serial number belongs and an activation result, and mark the to-be-activated serial number as an activated serial number, the activation result including an activation position of the to-be-activated serial number.

[0344] As an optional implementation, the processing module 1103 is specifically configured to:

[0345] determine whether the to-be-activated serial number is a serial number generated by encryption according to a length of the to-be-activated serial number;

[0346] if yes, decrypt the to-be-activated serial number by using a decryption algorithm corresponding to a preset encryption algorithm to obtain a target encryption parameter, and query whether there is a reward identifier corresponding to the target encryption parameter, if yes, determine that the to-be-activated serial number is a valid serial number;

[0347] if no, query whether there is a reward identifier corresponding to the to-be-activated serial number, if yes, determine that the to-be-activated serial number is a valid serial number.

[0348] As an optional implementation, the activation request further includes an identifier of a player who requests to activate the to-be-activated serial number;

[0349] The processing module 1103 is specifically configured to:

[0350] determine whether the player is in a brush prevention cooling period according to the identifier of the player and a current brush prevention cooling time;

[0351] if no, determine whether the to-be-activated serial number is a valid serial number.

[0352] As an optional implementation, the processing module 1103 is specifically configured to:

[0353] if it is determined that the to-be-activated serial number is not a valid serial number, update the brush prevention cooling time according to the to-be-activated serial number, the last activated serial number, and a retry activation number of the player.

[0354] As an optional implementation, the processing module 1103 is specifically configured to:

[0355] If the to-be-activated serial number is different from the last activated serial number, and the number of retry activations is greater than or equal to a preset number threshold, the anti-brush factor is updated, and the anti-brush cooling time is updated according to the updated anti-brush factor.

[0356] As an optional implementation, the processing module 1103 is specifically configured to:

[0357] The anti-brush factor plus one is calculated to obtain an updated anti-brush factor;

[0358] The updated anti-brush factor is multiplied by a preset unit anti-brush time to obtain an updated anti-brush cooling time.

[0359] As an optional implementation, the actual activation information includes at least one of the following: serial number disabling information, serial number effective time, activation channel, activated number of times, constraint information.

[0360] The processing module 1103 is specifically configured to:

[0361] If the actual activation information all match the configuration information, it is determined that the to-be-activated serial number is activated.

[0362] Figure 12 Another module structure diagram of a game gift package serial number processing device provided in the present application is shown in FIG. 12, which includes: Figure 12

[0363] The receiving module 1201 is configured to receive a reward identifier sent by a gift server, the reward identifier corresponding to a plurality of game gift package serial numbers.

[0364] The processing module 1202 is configured to determine virtual resources corresponding to the reward identifier according to resource configuration information indicated by a user, and create and store a corresponding relationship between the reward identifier and the virtual resources.

[0365] As an optional implementation, the processing module 1202 is further configured to:

[0366] Receive an activation request sent by a game client, the activation request including a to-be-activated serial number input by a player and an identifier of the player;

[0367] Send the activation request to the gift server;

[0368] ​receive the activation response sent by the gift package server, the activation response including: an activation success response or an activation failure response, the activation success response including the reward identifier to which the to-be-activated serial number belongs, and the activation failure response including an activation failure reason.

[0369] As an optional implementation, the processing module 1202 is further configured to:

[0370] If the activation response is the activation success response, the processing module 1202 is further configured to query the virtual resource corresponding to the reward identifier, and issue the virtual resource corresponding to the reward identifier to the player.

[0371] The embodiment of the application further provides an electronic device 130, which can include the gift package server or the game server in the foregoing embodiment, as shown in a structural schematic diagram of the electronic device 130 provided by the embodiment of the application, which includes a processor 131, a memory 132, and a bus 133. The memory 132 stores machine readable instructions executable by the processor 131, and when the electronic device 130 is running, the processor 131 and the memory 132 communicate through the bus 133, and the machine readable instructions are executed by the processor 131 to execute the method steps executed by the gift package server or the game server in the method embodiments. Figure 13

[0372] The embodiment of the application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to execute the method steps executed by the gift package server or the game server in the method embodiments.

[0373] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiments, and will not be described herein. In the several embodiments provided by the application, it should be understood that the disclosed system, device and method can be implemented by other means. The device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed elements can be indirect coupling or communication connection through some communication interface, device or module, which can be electrical, mechanical or other forms.

[0374] ​In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. When the functions are realized in the form of software function units and sold or used as an independent product, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application, essentially or in the form of a contribution to the prior art, or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0375] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. A game gift package serial number processing method, characterized by, The method comprises the following steps: obtaining configuration information of a game gift package serial number, the configuration information comprising at least an identifier of a target game to which the game gift package serial number belongs, an award identifier to which the game gift package serial number belongs, and a target quantity of game gift package serial numbers, wherein the award identifier is used to identify an activity to which the game gift package serial number currently to be generated belongs, and virtual resources corresponding to a plurality of game gift package serial numbers belonging to the same award identifier are the same; generating the target quantity of game gift package serial numbers for the target game according to the configuration information; establishing and storing a correspondence between the target quantity of game gift package serial numbers and the configuration information and the award identifier; sending the award identifier to a game server of the target game; outputting the target quantity of game gift package serial numbers.

2. The method of claim 1, wherein, The generating of the target quantity of game gift package serial numbers for the target game according to the configuration information comprises the following steps: if the target quantity is greater than a preset threshold, then the target quantity of game gift package serial numbers is generated by encryption based on a target encryption parameter, wherein the target encryption parameter comprises a serial number step and a random number, and each generated game gift package serial number has a preset first length. The establishing and storing of the correspondence between the target quantity of game gift package serial numbers and the configuration information and the award identifier comprises the following steps: establishing and storing a correspondence between the award identifier and the target encryption parameter and the configuration information.

3. The method of claim 2, wherein, The generating of the target quantity of game gift package serial numbers by encryption based on the target encryption parameter comprises the following steps: determining the serial number step according to the target quantity; randomly generating the random number; generating the target quantity of game gift package serial numbers by encryption using a preset encryption algorithm with the serial number step and the random number as parameters.

4. The method of claim 1, wherein, The configuration information further comprises a serial number prefix. The generating of the target quantity of game gift package serial numbers for the target game according to the configuration information comprises the following steps: generating the target quantity of game gift package serial numbers for the target game using the serial number prefix.

5. The method of claim 1, wherein, The configuration information further comprises a serial number format. The generating of the target quantity of game gift package serial numbers for the target game according to the configuration information comprises the following steps: generating the target quantity of game gift package serial numbers for the target game based on the serial number format, wherein each generated game gift package serial number satisfies the serial number format.

6. The method of claim 1, wherein, The configuration information further comprises a custom serial number. The generating of the target quantity of game gift package serial numbers for the target game according to the configuration information comprises the following steps: using the custom serial number as the target quantity of game gift package serial numbers.

7. The method of claim 1, wherein, The target quantity of game gift package serial numbers comprises a test serial number and an official serial number. The method further comprises the following steps: obtaining an activation result of the test serial number, wherein the test serial number is activated after an activation request of the test serial number is received, and the activation result of the test serial number is obtained; outputting the activation result of the test serial number; determining that the official serial number is available in response to confirmation information of the activation result of the test serial number.

8. The method of claim 7, wherein, The configuration information for obtaining the game gift package serial number comprises: Receiving a generation request sent by a gift client, the generation request comprising the configuration information and a task identifier.

9. The method of claim 8, wherein, The outputting of the target number of game gift package serial numbers comprises: Respectively generating a test file comprising the test serial number and a formal file comprising the formal serial number; Binding the test file and the formal file with the task identifier, so that the gift client downloads the test file and the formal file based on the task identifier.

10. The method of claim 9, wherein, The obtaining of the activation result of the test serial number comprises: Receiving a test request for the test serial number sent by the gift client; Reading the activation result of the test serial number according to the test request.

11. The method according to any one of claims 1 to 10, characterized in that, The method further comprises: Receiving an activation request sent by a game server, the activation request comprising a to-be-activated serial number; Determining whether the to-be-activated serial number is a valid serial number; If it is determined that the to-be-activated serial number is a valid serial number, determining whether to activate the to-be-activated serial number according to configuration information of the to-be-activated serial number and actual activation information; If it is determined to activate the to-be-activated serial number, sending an activation success response to the game server, the activation success response comprising a reward identifier to which the to-be-activated serial number belongs and an activation result, and marking the to-be-activated serial number as a serial number that has been activated, the activation result comprising an activation position of the to-be-activated serial number.

12. The method of claim 11, wherein, The determination of whether the to-be-activated serial number is a valid serial number comprises: Determining whether the to-be-activated serial number is a serial number generated by encryption according to a length of the to-be-activated serial number; If yes, decrypting the to-be-activated serial number by using a decryption algorithm corresponding to a preset encryption algorithm to obtain a target encryption parameter, and querying whether there is a reward identifier corresponding to the target encryption parameter, if yes, determining that the to-be-activated serial number is a valid serial number; If no, querying whether there is a reward identifier corresponding to the to-be-activated serial number, if yes, determining that the to-be-activated serial number is a valid serial number.

13. The method of claim 11, wherein, The activation request further comprises an identifier of a player who requests to activate the to-be-activated serial number; The determination of whether the to-be-activated serial number is a valid serial number comprises: Determining whether the player is in a brush prevention cooling period according to the identifier of the player and a current brush prevention cooling time; If no, determining whether the to-be-activated serial number is a valid serial number.

14. The method of claim 13, wherein, After the determination of whether the to-be-activated serial number is a valid serial number, the method further comprises: If it is determined that the to-be-activated serial number is not a valid serial number, updating the brush prevention cooling time according to the to-be-activated serial number, a previously activated serial number, and a retry activation number of the player.

15. The method of claim 14, wherein, The updating of the brush prevention cooling time according to the to-be-activated serial number, the previously activated serial number, and the retry activation number of the player comprises: If the to-be-activated serial number is different from the previously activated serial number and the retry activation number is greater than or equal to a preset number threshold, updating a brush prevention factor and updating the brush prevention cooling time according to the updated brush prevention factor.

16. The method of claim 15, wherein, The anti-brush factor is updated, and an anti-brush cooling time is updated according to the updated anti-brush factor, comprising: A value of the anti-brush factor plus one is calculated to obtain an updated anti-brush factor; A product of the updated anti-brush factor and a preset unit anti-brush time is calculated to obtain an updated anti-brush cooling time.

17. The method of claim 11, wherein, The actual activation information includes at least one of the following: serial number disable information, serial number effective time, activation channel, activated number of times, constraint information; According to the configuration information of the to-be-activated serial number and the actual activation information, it is determined whether to activate the to-be-activated serial number, comprising: If the actual activation information matches the configuration information, it is determined to activate the to-be-activated serial number.

18. A game gift pack serial number processing method characterized by comprising: Comprising: Receiving the reward identifier sent by the gift package server, the reward identifier corresponding to a plurality of game gift package serial numbers; According to the resource configuration information indicated by the user, determining the virtual resource corresponding to the reward identifier; Creating and storing the correspondence between the reward identifier and the virtual resource; Receiving the activation request sent by the game client, the activation request including the to-be-activated serial number input by the player and the identifier of the player; Sending the activation request to the gift package server; Receiving the activation response sent by the gift package server, the activation response including: an activation success response or an activation failure response, the activation success response including the reward identifier to which the to-be-activated serial number belongs, and the activation failure response including the activation failure reason.

19. The method of claim 18, wherein, The method further comprises: If the activation response is the activation success response, querying the virtual resource corresponding to the reward identifier, and issuing the virtual resource corresponding to the reward identifier to the player.

20. A game gift pack serial number processing apparatus characterized by comprising: Comprising: An acquisition module is configured to acquire configuration information of game gift package serial numbers, the configuration information including at least: an identifier of a target game to which the game gift package serial numbers belong, a reward identifier to which the game gift package serial numbers belong, and a target number of game gift package serial numbers, wherein the reward identifier is used to identify an activity to which currently generated game gift package serial numbers belong, and virtual resources corresponding to a plurality of game gift package serial numbers belonging to the same reward identifier are all the same; A generation module is configured to generate the target number of game gift package serial numbers for the target game according to the configuration information; A processing module is configured to establish and store a correspondence between the target number of game gift package serial numbers and the reward identifier and the configuration information, send the reward identifier to a game server of the target game, and output the target number of game gift package serial numbers.

21. A game gift pack serial number processing apparatus characterized by comprising: Comprising: A receiving module is configured to receive a reward identifier sent by a gift package server, the reward identifier corresponding to a plurality of game gift package serial numbers; A processing module is configured to determine a virtual resource corresponding to the reward identifier according to resource configuration information indicated by a user, and create and store a correspondence between the reward identifier and the virtual resource; The processing module is further configured to: Receive an activation request sent by a game client, the activation request including a to-be-activated serial number input by a player and an identifier of the player; Send the activation request to the gift package server; Receive an activation response sent by the gift package server, the activation response including: an activation success response or an activation failure response, the activation success response including a reward identifier to which the to-be-activated serial number belongs, and the activation failure response including an activation failure reason. receive an activation response sent by the gift package server, the activation response including: an activation success response or an activation failure response, the activation success response including a reward identifier to which the to-be-activated serial number belongs, and the activation failure response including an activation failure reason.

22. An electronic device, comprising: The method comprises the following steps of: The processor and the memory, the memory stores machine readable instructions executable by the processor, when the electronic device runs, the processor executes the machine readable instructions, to execute the steps of the game gift package serial number processing method as claimed in any one of claims 1 to 17 or any one of claims 18-19.

23. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is run by the processor to execute the steps of the game gift package serial number processing method as claimed in any one of claims 1 to 17 or any one of claims 18-19.

Citation Information

Patent Citations

  • Virtual article distribution method and system and server

    CN107302488A