Method, device, equipment and medium for expanding Internet lottery awarding methods
By judging the awarding rules for prizes in the Internet lottery system and obtaining the API interface, the problem that the existing system cannot timely issue prizes in non-order system is solved, and the timely issuance of prizes and support for merchants' needs is achieved, reducing the difficulty of system modification.
Patent Information
- Application Number
- CN202311780748.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2043-12-21
AI Technical Summary
The existing Internet lottery system is difficult to expand the method of award distribution, cannot timely distribute prizes in non-order systems, and requires large-scale changes to the main program, which is a large workload and is difficult to implement.
By determining whether the prize is equipped with preset special awards, obtain the corresponding API interface, notify the merchant to issue prizes, bypass the order system, realize the timely issuance of prizes, and add API rules to the lottery system to support the merchant's personality. Demand.
The timely distribution of prizes has been achieved, the method of issuing prizes has been broadened, the need to modify the main program of the lottery system has been reduced, the workload of operation personnel has been reduced, and the customized needs of merchants have been supported.
Smart Images

Figure CN117952674B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet lottery technology, and in particular to a method, device, equipment and medium for expanding the Internet lottery awarding method. Background Art
[0002] The existing Internet lottery awarding method mainly distributes prizes to winners through self-built order systems or offline export order awarding methods, which will result in the prizes being limited by the product library of the order system or the offline order export awarding method, and the prizes cannot be distributed in time. When a merchant wants to distribute their own online products instantly through lottery, such as member points, member rights, film and television resources, etc.; the existing lottery system usually cannot meet the needs. If you want to meet the requirements, in the existing technology, you need to change the main program of the lottery system, which is a large workload and difficult to achieve. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for expanding the awarding method of Internet lottery, aiming to solve the problem that it is difficult to expand the awarding method of lottery system in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides a method for expanding the Internet lottery awarding method, which includes:
[0005] If the user wins a prize, determine whether the prize is configured with a preset special awarding rule;
[0006] If the prize configuration has a preset special awarding rule, obtain the API interface corresponding to the special awarding rule;
[0007] Obtain the identification information of the user and the prize information of the prize, and send the identification information of the user and the prize information of the prize to the merchant end by calling the API interface corresponding to the special prize distribution rule, so as to notify the merchant end to distribute the prize to the user based on the special prize distribution rule.
[0008] A further technical solution is that the step of judging whether the prize is configured with a preset special awarding rule includes:
[0009] Determine whether the prize in the preset prize table is configured with a prize awarding rule field;
[0010] If the prize configuration in the preset prize table has a prize awarding rule field, determining that the prize configuration has a preset special prize awarding rule;
[0011] If the prize in the preset prize table is not configured with a prize distribution rule field, it is determined that the prize is not configured with a preset special prize distribution rule.
[0012] A further technical solution is that the award rule field includes a program interface name, and obtaining the API interface corresponding to the special award rule includes: determining the API interface corresponding to the special award rule based on the program interface name.
[0013] A further technical solution is that the obtaining of the identification information of the user includes: obtaining a unique identifier of the user as the identification information of the user from a preset user table.
[0014] A further technical solution is that the method further comprises:
[0015] The unique identifier of the user and the unique identifier of the merchant are generated based on a preset identifier generation algorithm.
[0016] A further technical solution is that the method further comprises:
[0017] If the prize is not configured with a preset special awarding rule, the prize is issued to the user through a preset order system.
[0018] A further technical solution is that if the user wins a prize, before determining whether the prize is configured with a preset special awarding rule, the method further includes:
[0019] Determine whether preset special user rules are configured;
[0020] If a preset special user rule is configured, the special user rule is called through the API interface corresponding to the special user rule;
[0021] If no preset special user rules are configured, call the preset general user rules;
[0022] Determine whether preset special prize rules are configured;
[0023] If there are preset special prize rules, the special prize rules are retrieved through the API interface corresponding to the special prize rules;
[0024] If no preset special prize rules are configured, call the preset general prize rules;
[0025] According to a preset lottery algorithm, a lottery is drawn based on the retrieved user rules and the retrieved prize rules, wherein the retrieved user rules are the special user rules or the general user rules, and the retrieved prize rules are the special prize rules or the general prize rules.
[0026] In a second aspect, an embodiment of the present invention further provides a device for expanding the Internet lottery awarding method, which includes a unit for executing the above method.
[0027] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0028] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0029] The embodiments of the present invention provide a method, device, equipment and medium for expanding the Internet lottery awarding method, and the technical effects thereof include:
[0030] By applying the technical solution of the embodiment of the present invention, the prize can be issued to the user without the order system. Even if the prize is not in the order system, the prize can be issued to the user, which greatly broadens the way of awarding prizes and enables users to receive prizes in time. At the same time, for special awarding methods, it is only necessary to configure the API interface corresponding to the prize to implement special rules for awarding prizes. There is no code intrusion on the main process of the lottery, and there is no need to change the main program of the lottery system. The workload is small and it is more friendly to operators.
[0031] Furthermore, the merchant side can customize special user rules and special prize rules, so that the entire lottery system can be customized. Without modifying the main lottery process logic, by adding API rules at each key node of the lottery, a highly customized lottery process can be achieved, which very friendly supports the individual needs of merchants. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0033] Figure 1 A flowchart of a method for expanding the Internet lottery awarding method provided by an embodiment of the present invention;
[0034] Figure 2 Another flowchart of a method for expanding the Internet lottery awarding method provided by an embodiment of the present invention;
[0035] Figure 3 A schematic block diagram of a device for expanding the Internet lottery awarding method provided by an embodiment of the present invention;
[0036] Figure 4A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0039] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0040] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0041] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0042] See also Figure 1 , and combined with Figure 2 The embodiment of the present invention provides a method for expanding the Internet lottery awarding method, which is applied to a lottery system and includes the following steps:
[0043] S1, if the user wins a prize, determine whether the prize is configured with a preset special awarding rule.
[0044] In a specific implementation, when a user draws a prize, it is determined whether the prize is configured with a preset special awarding rule. The special awarding rule is usually set by the merchant and is not specifically limited in the present invention. The present invention can effectively expand the way of awarding prizes by determining whether the prize is configured with a preset special awarding rule before awarding the prize.
[0045] If the prize is not configured with a preset special award rule, the prize is issued to the user through the general award rule. The general award rule is to issue the prize to the user through a preset order system. That is, the prize is in the order system, and thus the prize is directly issued to the user through the order system.
[0046] In one embodiment, the above step of "determining whether the prize is configured with a preset special awarding rule" specifically includes the following steps:
[0047] S11, determining whether the prize in the preset prize table is configured with a prize awarding rule field.
[0048] In the specific implementation, the prize table is prepared in advance, and the prize table is used to record prize information. If the prize corresponds to a special prize distribution rule, the prize distribution rule field is pre-configured for the prize in the prize table, and the prize distribution rule field includes the name of the special prize distribution rule and its corresponding program interface name.
[0049] S12: If the prize configuration in the preset prize table has a prize distribution rule field, it is determined that the prize configuration has a preset special prize distribution rule.
[0050] In a specific implementation, if the prize configuration in the preset prize table has a prize distribution rule field, it is determined that the prize configuration has a preset special prize distribution rule.
[0051] S13: If the prize in the preset prize table is not configured with a prize distribution rule field, it is determined that the prize is not configured with a preset special prize distribution rule.
[0052] In a specific implementation, if the prize in the preset prize table is not configured with an awarding rule field, it is determined that the prize is not configured with a preset special awarding rule, that is, the prize is awarded according to a general awarding rule.
[0053] S2: If the prize configuration has preset special awarding rules, obtain an API interface corresponding to the special awarding rules.
[0054] In a specific implementation, when the prize configuration has a preset special awarding rule, the merchant side pre-configures an API interface corresponding to the special awarding rule for the lottery system to call. Therefore, when the prize configuration has a preset special awarding rule, the merchant side obtains the API interface corresponding to the special awarding rule.
[0055] In one embodiment, the award rule field includes a program interface name, and the above step of "obtaining the API interface corresponding to the special award rule" specifically includes the following steps: determining the API interface corresponding to the special award rule based on the program interface name.
[0056] In specific implementation, the program interface name is the unique identifier of the API interface, and the program interface names of different API interfaces are different. The program interface name is determined based on the award rule field of the prize, and then the API interface corresponding to the special award rule is determined based on the program interface name.
[0057] S3, obtaining the identification information of the user and the prize information of the prize, and sending the identification information of the user and the prize information of the prize to the merchant end by calling the API interface corresponding to the special awarding rule, so as to notify the merchant end to distribute the prize to the user based on the special awarding rule.
[0058] In a specific implementation, the identification information of the user and the prize information of the prize are obtained. The identification information is the unique identification of the user, and the identification information of different users is different. The identification information is bound to the user. The prize information is used to describe the type of prize, such as member points, member rights, film and television resources, etc., which is not specifically limited in the present invention. The prize information is bound to the prize.
[0059] Furthermore, the API interface corresponding to the special awarding rule is called by HTTP (HyperText Transfer Protocol) to send the identification information of the user and the prize information of the prize to the merchant end, so as to notify the merchant end to issue the prize to the user based on the special awarding rule. After receiving the identification information of the user and the prize information of the prize, the merchant end issues the prize to the user accordingly.
[0060] By applying the technical solution of the embodiment of the present invention, the prize can be issued to the user without the order system. Even if the prize is not in the order system, the prize can be issued to the user, which greatly broadens the way of awarding prizes and enables users to receive prizes in time. At the same time, for special awarding methods, it is only necessary to configure the API interface corresponding to the prize to implement special rules for awarding prizes. There is no code intrusion on the main process of the lottery, and there is no need to change the main program of the lottery system. The workload is small and it is more friendly to operators.
[0061] In one embodiment, the above step of “obtaining identification information of the user” specifically includes the following steps: obtaining a unique identifier of the user as the identification information of the user from a preset user table.
[0062] In a specific implementation, the user table is used to store user information. The user table records the user's unique identifier. The unique identifiers of different users are different. Therefore, the unique identifier of the user is obtained from the user table as the identification information of the user. Different users can be distinguished by the unique identifier.
[0063] In one embodiment, the method further includes: generating a unique identifier of the user and a unique identifier of the merchant based on a preset identifier generation algorithm.
[0064] In a specific implementation, the identifier generation algorithm may be specifically a UUID (Universally Unique Identifier) algorithm and a snowflake algorithm, etc., which is not specifically limited in the present invention.
[0065] Add a unique identifier field to the user table in the lottery system to store the unique identifier of the user in the merchant system, so that the users of the lottery system and the merchant system can recognize each other through the unique identifier. The unique identifier of the user should be unique in the entire system.
[0066] Taking into account that the lottery system should provide lottery services to multiple merchants, the user table of the lottery system can also add a unique identifier field on the merchant side, and form a unique index through the unique identifier field on the merchant side and the unique identifier field of the user, so as to achieve a unique effect for the entire system.
[0067] Further, see Figure 2 In one embodiment, in order to enable merchants to customize their own user rules and prize rules and improve the flexibility of the lottery system, before the step of: if a user wins a prize, determining whether the prize is configured with a preset special awarding rule, the method further includes:
[0068] S21, determining whether a preset special user rule is configured.
[0069] In a specific implementation, each lottery is configured with lottery information, such as a lottery information table. If there are special user rules for this lottery, the lottery information includes user rule information, for example, a user rule field is set in the lottery information table. Therefore, if the lottery information includes user rule information, it indicates that there are preset special user rules for this lottery. Specifically, the user rule information includes the user rule name and the program interface name corresponding to the special user rule.
[0070] S22: If a preset special user rule is configured, the special user rule is retrieved through an API interface corresponding to the special user rule.
[0071] In a specific implementation, if a preset special user rule is configured, the API interface corresponding to the special user rule is determined through the program interface name in the user rule information, and the special user rule is further called through the API interface corresponding to the special user rule.
[0072] The API interface corresponding to the special user rule is pre-set by the merchant side for the lottery system to call the special user rule.
[0073] The special user rules are set by the merchant side and are not specifically limited in the present invention.
[0074] S23, if the preset special user rule is not configured, call the preset general user rule.
[0075] In a specific implementation, if no preset special user rules are configured, the preset general user rules in the lottery system are directly called. The general user rules are preset by those skilled in the art and are not specifically limited in the present invention.
[0076] S24, determining whether preset special prize rules are configured.
[0077] In a specific implementation, each lottery is configured with lottery information, such as a lottery information table. If there are special prize rules for this lottery, the lottery information includes prize rule information, for example, a prize rule field is set in the lottery information table. Therefore, if the lottery information includes prize rule information, it indicates that this lottery is configured with preset special prize rules. Specifically, the prize rule information includes the prize rule name and the program interface name corresponding to the special prize rule.
[0078] S25: If a preset special prize rule is configured, the special prize rule is retrieved through an API interface corresponding to the special prize rule.
[0079] In a specific implementation, if preset special prize rules are configured, the API interface corresponding to the special prize rules is determined through the program interface name in the prize rule information, and the special prize rules are further retrieved through the API interface corresponding to the special prize rules.
[0080] The API interface corresponding to the special prize rules is pre-set by the merchant side for the lottery system to call the special prize rules.
[0081] The special prize rules are set by the merchant side and are not specifically limited in the present invention.
[0082] S26, if the preset special prize rules are not configured, call the preset general prize rules.
[0083] In a specific implementation, if no preset special prize rules are configured, the preset general prize rules in the lottery system are directly retrieved. The general prize rules are preset by those skilled in the art and are not specifically limited in the present invention.
[0084] S27, according to a preset lottery algorithm, a lottery is conducted based on the retrieved user rules and the retrieved prize rules, wherein the retrieved user rules are the special user rules or the general user rules, and the retrieved prize rules are the special prize rules or the general prize rules.
[0085] In a specific implementation, user rules are used to indicate which users are eligible to participate in the lottery. Prize rules are used to indicate which prizes are available, what the prizes for each prize are, and how many users are selected. Based on the above steps S21-S26, the retrieved user rules and retrieved prize rules are determined. The retrieved user rules are the special user rules or the general user rules, and the retrieved prize rules are the special prize rules or the general prize rules. The lottery algorithm is used to select the winning users for each prize from the eligible users.
[0086] Through the above steps S21-S26, the merchant side can customize special user rules and special prize rules, so that the entire lottery system can be customized. Without modifying the main lottery process logic, by adding API rules at each key node of the lottery, a highly customized lottery process can be achieved, which very friendly supports the individual needs of merchants.
[0087] Further, see Figure 2 In one embodiment, if the prize is not configured with the preset special awarding rule 4, the prize is awarded according to the general awarding rule. Accordingly, the method further includes:
[0088] S28: If the prize is not configured with a preset special awarding rule, the prize is issued to the user through a preset order system.
[0089] In a specific implementation, if a prize is not configured with a preset special award rule, the prize is issued to the user through a general award rule. The general award rule is to issue the prize to the user through a preset order system. That is, the prize is in the order system, and thus the prize is directly issued to the user through the order system. The general award rule is set by a person skilled in the art and is not specifically limited in the present invention.
[0090] See also Figure 3 , Figure 3: is a schematic block diagram of an apparatus 20 for expanding the Internet lottery awarding method provided by an embodiment of the present invention. Corresponding to the above method for expanding the Internet lottery awarding method, the present invention also provides an apparatus 20 for expanding the Internet lottery awarding method. The apparatus 20 for expanding the Internet lottery awarding method includes a unit for executing the above method for expanding the Internet lottery awarding method, and the apparatus 20 for expanding the Internet lottery awarding method can be configured in a desktop computer, a tablet computer, a laptop computer, and other terminals. Specifically, the apparatus 20 for expanding the Internet lottery awarding method includes:
[0091] The first judgment unit 21 is used to judge whether the prize is configured with a preset special awarding rule if the user wins the prize;
[0092] The first acquisition unit 22 is used to acquire an API interface corresponding to a preset special awarding rule if the prize configuration has the preset special awarding rule;
[0093] The second acquisition unit 23 is used to obtain the identification information of the user and the prize information of the prize, and send the identification information of the user and the prize information of the prize to the merchant end by calling the API interface corresponding to the special awarding rule, so as to notify the merchant end to distribute the prize to the user based on the special awarding rule.
[0094] In one embodiment, the determining whether the prize is configured with a preset special awarding rule includes:
[0095] Determine whether the prize in the preset prize table is configured with a prize awarding rule field;
[0096] If the prize configuration in the preset prize table has a prize awarding rule field, determining that the prize configuration has a preset special prize awarding rule;
[0097] If the prize in the preset prize table is not configured with a prize distribution rule field, it is determined that the prize is not configured with a preset special prize distribution rule.
[0098] In one embodiment, the award rule field includes a program interface name, and obtaining the API interface corresponding to the special award rule includes: determining the API interface corresponding to the special award rule based on the program interface name.
[0099] In one embodiment, the obtaining the identification information of the user includes: obtaining a unique identifier of the user as the identification information of the user from a preset user table.
[0100] In one embodiment, the device 20 for expanding the Internet lottery awarding method further includes:
[0101] A generating unit is used to generate a unique identifier of the user and a unique identifier of the merchant terminal based on a preset identifier generating algorithm.
[0102] In one embodiment, the device 20 for expanding the Internet lottery awarding method further includes:
[0103] The issuing unit is used to issue the prize to the user through a preset order system if the prize is not configured with a preset special awarding rule.
[0104] In one embodiment, the device 20 for expanding the Internet lottery awarding method further includes:
[0105] A second judgment unit, used to judge whether a preset special user rule is configured;
[0106] A first retrieving unit, configured to retrieve the special user rule through an API interface corresponding to the special user rule if a preset special user rule is configured;
[0107] A second calling unit, used to call a preset general user rule if no preset special user rule is configured;
[0108] A third judgment unit, used to judge whether a preset special prize rule is configured;
[0109] A third retrieving unit, configured to retrieve the special prize rule through an API interface corresponding to the special prize rule if a preset special prize rule is configured;
[0110] A fourth retrieving unit, used to retrieve preset general prize rules if no preset special prize rules are configured;
[0111] The lottery unit is used to draw a lottery according to a preset lottery algorithm, based on the retrieved user rules and the retrieved prize rules, wherein the retrieved user rules are the special user rules or the general user rules, and the retrieved prize rules are the special prize rules or the general prize rules.
[0112] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned device 20 for expanding the Internet lottery awarding method and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0113] The above-mentioned device 20 for expanding the Internet lottery awarding method can be implemented in the form of a computer program. The computer program can be used in the following manner: Figure 4 Runs on the computer device shown.
[0114] See also Figure 4 , Figure 45 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0115] The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0116] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a method for expanding the Internet lottery awarding method.
[0117] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0118] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for expanding the Internet lottery awarding method.
[0119] The network interface 505 is used to communicate with other devices over the network. Those skilled in the art will appreciate that the above structure is only a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device 500 to which the present application solution is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0120] The processor 502 is used to run the computer program 5032 stored in the memory to implement the steps of a method for expanding the Internet lottery awarding method proposed in any of the above method embodiments.
[0121] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0122] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0123] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of a method for expanding the Internet lottery awarding method proposed in any of the above method embodiments.
[0124] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.
[0125] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0126] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0127] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution 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 a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0129] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0130] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0131] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for expanding the Internet lottery awarding method, characterized in that: include: If the user wins a prize, determine whether the prize is configured with a preset special awarding rule; If the prize configuration has a preset special awarding rule, obtain the API interface corresponding to the special awarding rule; Acquire the identification information of the user and the prize information of the prize, and send the identification information of the user and the prize information of the prize to the merchant end by calling the API interface corresponding to the special prize distribution rule, so as to notify the merchant end to distribute the prize to the user based on the special prize distribution rule; The step of judging whether the prize is configured with a preset special awarding rule includes: Determine whether the prize in the preset prize table is configured with a prize awarding rule field; If the prize configuration in the preset prize table has a prize awarding rule field, determining that the prize configuration has a preset special prize awarding rule; If the prize in the preset prize table is not configured with a prize awarding rule field, it is determined that the prize is not configured with a preset special prize awarding rule; Before determining whether the prize is configured with a preset special awarding rule, the method further includes: Determine whether preset special user rules are configured; If a preset special user rule is configured, the special user rule is called through the API interface corresponding to the special user rule; If no preset special user rules are configured, call the preset general user rules; Determine whether preset special prize rules are configured; If there are preset special prize rules, the special prize rules are retrieved through the API interface corresponding to the special prize rules; If no preset special prize rules are configured, call the preset general prize rules; According to a preset lottery algorithm, a lottery is drawn based on the retrieved user rules and the retrieved prize rules, wherein the retrieved user rules are the special user rules or the general user rules, and the retrieved prize rules are the special prize rules or the general prize rules.
2. The method for expanding the Internet lottery awarding method according to claim 1, characterized in that: The award rule field includes a program interface name, and obtaining the API interface corresponding to the special award rule includes: determining the API interface corresponding to the special award rule based on the program interface name.
3. The method for expanding the Internet lottery awarding method according to claim 1, characterized in that: The obtaining the identification information of the user includes: obtaining a unique identifier of the user as the identification information of the user from a preset user table.
4. The method for expanding the Internet lottery awarding method according to claim 3, characterized in that: The method further comprises: The unique identifier of the user and the unique identifier of the merchant are generated based on a preset identifier generation algorithm.
5. The method for expanding the Internet lottery awarding method according to claim 1, characterized in that: The method further comprises: If the prize is not configured with a preset special awarding rule, the prize is issued to the user through a preset order system.
6. A device for expanding the Internet lottery awarding method, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 5.
7. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 can be implemented.
