Network resource processing and network red envelope distribution method, device and storage medium

Through the cooperation between the server device and the terminal device, random red envelopes that meet the user's set conditions are generated, solving the problems of single red envelope distribution methods and poor user experience, and achieving higher flexibility and user satisfaction.

CN111932222BActive Publication Date: 2025-02-21ALIBABA GROUP HOLDING LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910335427.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-24
Publication Date
2025-02-21
Estimated Expiration
2039-04-24

AI Technical Summary

Technical Problem

The existing random red envelope distribution method is single, the flexibility is insufficient, and the user experience is poor.

Method used

Through the cooperation between the server device and the terminal device, random red envelopes that do not include the set disable number or include the set available number will be generated, increasing the predictability and fun of the red envelope.

Benefits of technology

It improves the rationality and flexibility of red envelope distribution, and improves user experience and user stickiness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111932222B_ABST
    Figure CN111932222B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device and storage medium for network resource processing and network red envelope distribution. In the embodiment of the present application, the server device and the terminal device cooperate with each other, and in the process of random red envelope distribution, a random red envelope containing set available numbers or a random red envelope not containing set prohibited numbers can be generated, which increases the predictability of random red envelopes on the basis of randomness, is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, helps to improve user experience, and increases user stickiness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method, device and storage medium for network resource processing and network red packet distribution. Background Art

[0002] With the advent and continuous development of the Internet era, online red envelopes have gradually become popular. Many Internet users can send red envelopes to their relatives and friends through some payment software or apps to enhance emotional exchanges with relatives and friends.

[0003] Among the red envelope distribution methods supported by various existing payment software, random red envelopes are more random and interesting, so they are more popular with users. However, the existing random red envelope distribution methods are relatively simple, inflexible, and have poor user experience, so they need to be further improved. Summary of the invention

[0004] Multiple aspects of the present application provide a network resource processing and network red envelope distribution method, device and storage medium to enrich the red envelope distribution method and optimize the rationality of network resource processing, thereby helping to improve user experience and user stickiness.

[0005] The present application embodiment provides a method for issuing online red packets, which is applicable to a terminal device, and the method includes:

[0006] In response to a red envelope triggering operation on the group chat interface, a red envelope information interface is displayed;

[0007] In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2;

[0008] Send the total amount of the red envelopes and the number of red envelopes N to the server device, so that the server device generates and returns a random red envelope according to the total amount of the red envelopes and the number of red envelopes N;

[0009] The icon of the random red envelope returned by the server device is displayed in the group chat interface for group users to collect; wherein the random red envelope does not contain set prohibited numbers.

[0010] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned terminal device executing the method for issuing online red envelopes.

[0011] The present application also provides a method for issuing online red packets, which is applicable to a server device, and the method includes:

[0012] The total amount of the red envelopes and the number of red envelopes N sent by the receiving terminal device, where N is an integer greater than or equal to 2;

[0013] Generate a random red envelope according to the total amount of the red envelope and the number of red envelopes N, wherein the random red envelope does not contain a set prohibited number;

[0014] The random red envelope is returned to the terminal device so that the terminal device can display the random red envelope in the group chat interface for group users to collect.

[0015] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned server-side device executing the network red envelope distribution method.

[0016] The embodiment of the present application also provides a method for issuing online red packets, which is applicable to a terminal device, and the method includes:

[0017] In response to a red envelope triggering operation on the group chat interface, a red envelope information interface is displayed;

[0018] In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2;

[0019] Send the total amount of the red envelopes and the number of red envelopes N to the server device, so that the server device generates and returns a random red envelope according to the total amount of the red envelopes and the number of red envelopes N;

[0020] The random red envelope is displayed in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

[0021] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned terminal device executing the method for issuing online red envelopes.

[0022] The present application also provides a method for issuing online red packets, which is applicable to a server device, and the method includes:

[0023] The total amount of the red envelopes and the number of red envelopes N sent by the receiving terminal device, where N is an integer greater than or equal to 2;

[0024] Generate a random red envelope according to the total amount of the red envelope and the number of red envelopes N, where the numbers in the random red envelope belong to the set available numbers;

[0025] The random red envelope is returned to the terminal device so that the terminal device can display the random red envelope in the group chat interface for group users to collect.

[0026] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned server-side device executing the network red envelope distribution method.

[0027] The present application also provides a network resource processing method applicable to a terminal device, the method comprising:

[0028] In response to the resource release operation, a resource information interface is displayed;

[0029] In response to input operations on the resource information interface, obtaining the total amount of resources to be issued, the number of copies of resources to be issued and the prohibited number;

[0030] Sending the total amount of resources to be issued, the number of resource copies to be issued and the prohibited number to the server device, so that the server device can generate a random resource number that does not contain the prohibited number and return it;

[0031] According to the random number of resources returned by the server device, a corresponding number of resources are provided to the selected user.

[0032] The embodiment of the present application also provides a network resource processing method, which is applicable to a server device, and receives the total amount of resources to be issued, the number of copies of resources to be issued, and the prohibited number sent by the terminal device;

[0033] Generate a random number of resources that does not contain the prohibited number according to the total amount of resources to be issued, the number of resource copies to be issued and the prohibited number;

[0034] The random resource number is returned to the terminal device so that the terminal device can provide the selected user with a quantity of resources corresponding to the random resource number.

[0035] The present application also provides a network resource processing method applicable to a terminal device, the method comprising:

[0036] In response to the resource release operation, a resource information interface is displayed;

[0037] In response to input operations on the resource information interface, obtaining the total amount of resources to be issued, the number of copies of resources to be issued, and the available number;

[0038] Sending the total amount of resources to be issued, the number of resource copies to be issued and the prohibited numbers to the server device, so that the server device can generate a random resource number belonging to the available numbers and return it;

[0039] According to the random number of resources returned by the server device, a corresponding number of resources are provided to the selected user.

[0040] The present application also provides a network resource processing method, which is applicable to a server device, and the method includes:

[0041] Receive the total amount of resources to be issued, the number of copies of resources to be issued and the available number sent by the terminal device;

[0042] Generate a random resource number according to the total amount of resources to be issued, the number of resource copies to be issued and the available number, wherein the number in the random resource number belongs to the set available number;

[0043] The random resource number is returned to the terminal device so that the terminal device can provide the selected user with a quantity of resources corresponding to the random resource number.

[0044] The embodiment of the present application also provides a terminal device, including: a memory, a processor, a communication component and a display screen;

[0045] Wherein, the memory is used to store computer programs; the display screen displays a group chat interface;

[0046] The processor is coupled to the memory and is configured to execute the computer program for:

[0047] In response to a red envelope triggering operation on the group chat interface, displaying a red envelope information interface on the display screen;

[0048] In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2;

[0049] The total amount of the red envelopes and the number of red envelopes N are sent to the server device through the communication component, so that the server device generates and returns a random red envelope according to the total amount of the red envelopes and the number of red envelopes N;

[0050] The icon of the random red envelope returned by the server device is displayed in the group chat interface for group users to collect; wherein the random red envelope does not contain set prohibited numbers.

[0051] The embodiment of the present application also provides a server device, characterized in that it includes: a memory, a processor and a communication component;

[0052] The memory is used to store computer programs;

[0053] The processor is coupled to the memory and is configured to execute the computer program for:

[0054] Receiving, through the communication component, the total amount of the red envelopes and the number N of the red envelopes sent by the terminal device, where N is an integer greater than or equal to 2;

[0055] Generate a random red envelope according to the total amount of the red envelope and the number of red envelopes N, wherein the random red envelope does not contain a set prohibited number;

[0056] The random red envelope is returned to the terminal device through the communication component, so that the terminal device can display the random red envelope in the group chat interface for group users to collect.

[0057] The embodiment of the present application also provides a terminal device, characterized in that it includes: a memory, a processor, a communication component and a display screen;

[0058] The memory is used to store computer programs; the display screen displays a group chat interface;

[0059] The processor is coupled to the memory and is configured to execute the computer program for:

[0060] In response to a red envelope triggering operation on the group chat interface, displaying a red envelope information interface on the display screen;

[0061] In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2;

[0062] The total amount of the red envelopes and the number of red envelopes N are sent to the server device through the communication component, so that the server device generates and returns a random red envelope according to the total amount of the red envelopes and the number of red envelopes N;

[0063] The random red envelope is displayed in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

[0064] The embodiment of the present application also provides a server device, characterized in that it includes: a memory, a processor and a communication component;

[0065] The memory is used to store computer programs;

[0066] The processor is coupled to the memory and is configured to execute the computer program for:

[0067] Receiving, through the communication component, the total amount of the red envelopes and the number N of the red envelopes sent by the terminal device, where N is an integer greater than or equal to 2;

[0068] Generate a random red envelope according to the total amount of the red envelope and the number of red envelopes N, where the numbers in the random red envelope belong to the set available numbers;

[0069] The random red envelope is returned to the terminal device through the communication component, so that the terminal device can display the random red envelope in the group chat interface for group users to collect.

[0070] In an embodiment of the present application, the server device and the terminal device cooperate with each other. During the random red envelope distribution process, a random red envelope containing set available numbers or a random red envelope not containing set prohibited numbers can be generated. The predictability of the random red envelopes is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0072] Figure 1a A schematic diagram of the structure of a network system provided in an embodiment of the present application;

[0073] Figure 1b A schematic diagram of a red envelope information interface provided in an embodiment of the present application;

[0074] Figure 1c A schematic diagram of an icon of a random red envelope provided in an embodiment of the present application;

[0075] Figure 1d A schematic diagram of another icon of a random red envelope provided in an embodiment of the present application;

[0076] Figure 1e A schematic diagram of a digital setting interface provided in an embodiment of the present application;

[0077] Figure 1f A schematic diagram of a flow chart of a random red envelope generation method provided in an embodiment of the present application;

[0078] Figure 2a A flowchart of a method for distributing online red envelopes provided in an embodiment of the present application;

[0079] Figure 2b A flowchart of another method for distributing online red envelopes provided in an embodiment of the present application;

[0080] Figure 3a A flowchart of another method for distributing online red envelopes provided in an embodiment of the present application;

[0081] Figure 3b A flowchart of another method for distributing online red envelopes provided in an embodiment of the present application;

[0082] Figure 4a A flowchart of a network resource processing method provided in an embodiment of the present application;

[0083] Figure 4b A flowchart of another network resource processing method provided in an embodiment of the present application;

[0084] Figure 5a A flowchart of another network resource processing method provided in an embodiment of the present application;

[0085] Figure 5b A flowchart of another network resource processing method provided in an embodiment of the present application;

[0086] Figure 6 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0087] Figure 7 A schematic diagram of the structure of a server device provided in an embodiment of the present application;

[0088] Figure 8 A schematic diagram of the structure of another terminal device provided in an embodiment of the present application;

[0089] Fig. 9 A schematic diagram of the structure of another server device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0091] In view of technical problems such as the relatively simple and insufficient flexibility of existing random red envelope distribution methods, in an embodiment of the present application, the server device and the terminal device cooperate with each other. During the random red envelope distribution process, random red envelopes containing set available numbers or random red envelopes not containing set forbidden numbers can be generated. The predictability of random red envelopes is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0092] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0093] Figure 1aA schematic diagram of the structure of a network system provided in an embodiment of the present application. Figure 1a As shown, the system includes: a server device 10a and several terminal devices 10b. Figure 1a The implementation forms of the server device 10a and the terminal device 10b presented in the figure are only exemplary and not limiting.

[0094] The server device 10a and each terminal device 10b may be connected wirelessly or by wire. Optionally, the server device 10a may be connected to the terminal device 10b through a mobile network. Accordingly, the network standard of the mobile network may be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+), WiMax, etc. Optionally, the server device 10a may also be connected to the terminal device 10b through Bluetooth, WiFi, infrared, etc.

[0095] In this embodiment, the server device 10a refers to a computer device that can perform network resource management, respond to the service request of the terminal device 10b, and provide users with services related to network resource processing. It generally has the ability to undertake and guarantee services. The server device 10a can be a single server device, a cloud server array, or a virtual machine (VM) running in a cloud server array. In addition, the server device can also refer to other computing devices with corresponding service capabilities, such as computers and other terminal devices (running service programs), etc.

[0096] In this embodiment, the terminal device 10b refers to a computer device used by a user and having the functions of computing, surfing the Internet, communicating, etc. required by the user, such as a smart phone, a tablet computer, a personal computer, a wearable device, etc. The terminal device 10b generally includes at least one processing unit and at least one memory. The number of processing units and memories depends on the configuration and type of the terminal device 10b. The memory may include volatile, such as RAM, or non-volatile, such as read-only memory (ROM), flash memory, etc., or may include both types at the same time. The memory generally stores an operating system (OS), one or more application software, such as instant messaging software corresponding to the server 10a, and may also store program data, etc. In addition to the processing unit and memory, the terminal device 10b also includes basic configurations such as a network card chip, an IO bus, and audio and video components. Optionally, according to the implementation form of the terminal device 10b, the terminal device 10b may also include some peripheral devices, such as a keyboard, a mouse, an input pen, a printer, etc. These peripheral devices are well known in the art and will not be described in detail here.

[0097] The network system provided in this embodiment supports group functions. Based on this, a user can create various groups through his terminal device 10b, or can be invited by other users to join different groups. In this embodiment, the group creation method is not limited, nor is the method of inviting users to join the group. All implementation methods that can create a group or invite users to join a group are applicable to the network resource processing provided in this embodiment. To facilitate understanding of the concept of a group, the group in the embodiment of this application is described below in conjunction with an exemplary group creation process.

[0098] When a user needs to create a group, he can send a group creation request to the server device 10a through the instant messaging software on his terminal device 10b to request the creation of a group. The software used by the user to create a group can be instant messaging software, shopping software, game software, or online service software, but is not limited to this. Depending on the software used by the user to create the group, the way the user sends the group creation request will also be different. In an optional implementation, the software used by the user can provide the user with a message page, and the message page provides controls such as "initiate group chat" for the user to send a request to create a group; based on this, the user can find controls such as "initiate group chat" on the message page, and click the control to send a group creation request to the server device 10a.

[0099] Afterwards, the server device 10a displays a group user selection page to the user through the user's terminal device 10b according to the group creation request sent by the user. The user's friend list, mobile phone contacts and other friend information can be displayed on the page for the user to select group users. The user can select the users who need to join the group, that is, the group users, on the group user selection page displayed by the terminal device 10b. The terminal device 10b can send the information of the group users selected by the user to the server device 10a in response to the user's selection operation. The server device 10a can establish a group for the user based on the information of the group users selected by the user. Optionally, in the process of creating a group, it can be assumed that the selected users agree to join the group, or the selected users can only be added to the group after their consent is obtained. Optionally, after the group is created, the users in the group can also choose to exit the group on their own.

[0100] After the group is created, the server device 10a needs to be responsible for the management and maintenance of the group information, the communication between the users in the group, the processing of the network resources of the users in the group, etc. For example, the server device 10a needs to maintain the user list of the group, is responsible for creating and maintaining a chat interface belonging to the group for each user in the group, and is responsible for transmitting the information sent by each user in the group to other users.

[0101] It is worth noting that, depending on the different implementation forms of the terminal device 10b, the software corresponding to the group installed on the terminal device 10b will also be different. If the terminal device 10b is a smart phone, you can install the mobile version of the software corresponding to the group (Application, App), such as the mobile version of WeChat, DingTalk, QQ, Taobao, etc. If the terminal device 10b is a computer, you can install the computer version of the client, such as the computer version of WeChat, DingTalk, QQ, Taobao, etc. For each terminal device 10b, you can enjoy the network resource processing service provided by the server device 10a by running the software corresponding to the group, so as to realize the network resource transfer between other terminal devices 10b.

[0102] In the embodiment of the present application, a group includes at least two or more users, and accordingly, the terminal devices 10b of these users belong to the same group. A user or terminal device 10b can belong to one group or multiple groups at the same time. The "multiple" in each embodiment of the present application refers to two or more.

[0103] When a user belongs to a group, the user can open the chat interface of the group to which he belongs, post messages in the chat interface, or issue and receive network resources through the chat interface. Among them, the network resources that users can issue or receive can be various resources that can be transferred through the Internet, such as network red envelopes, points, traffic, virtual game coins, etc. For example, in instant messaging software, network resources can be electronic currencies such as network red envelopes and phone bills. For another example, in online games, network resources can be virtual game coins, life points, etc. For another example, in online shopping software, network resources can be points and energy values ​​between consumer users, or red envelopes and vouchers issued by e-commerce platforms or merchants to consumer users. In this embodiment, for the convenience of description and understanding, the process of users issuing and receiving network red envelopes in the group is explained in detail. For the convenience of description, taking group A as an example, it is assumed that a user in group A needs to open the chat interface of group A to issue a network red envelope. For the convenience of distinction and description, the user who issues the network red envelope is defined as the red envelope issuing user. Among them, the red envelope issuing user can be any user in group A; group A can be any group in the network resource processing system. In order to simplify the description, the terminal device of the red envelope issuing user is defined as the first terminal device, such as Figure 1a The first terminal device 10b1 is shown in FIG.

[0104] In this embodiment, the red envelope issuing user can open the chat interface of group A through the first terminal device 10b1. For example, the red envelope issuing user can click on the group identifier of group A, such as the group avatar, on the message page of the software displayed on the first terminal device 10b1. For the first terminal device 10b1, in response to the operation of the red envelope issuing user opening the chat interface of group A, the chat interface can be displayed to the red envelope issuing user.

[0105] Furthermore, a red envelope distribution control may be set on the chat interface. Alternatively, the drop-down menu of the chat interface includes a red envelope distribution control. When the red envelope distribution user distributes an online red envelope, the corresponding red envelope distribution control may be triggered. For the first terminal device 10b1, in response to the red envelope triggering operation on the group chat interface, a red envelope information interface may be displayed. Figure 1b As shown, the red envelope information interface includes: a red envelope total amount input box and a red envelope number input box. The red envelope issuing user can input the total amount of the red envelopes he wants to issue through the red envelope total amount input box, and input the number of red envelopes N he wants to issue through the red envelope number input box, that is, the number of parts the red envelope issuing user wants to divide the total amount of the red envelopes he wants to issue into. Among them, N is an integer greater than or equal to 2. Correspondingly, the first terminal device 10b1 responds to the input operation on the red envelope information interface, obtains the total amount of the red envelopes to be issued and the number of red envelopes N, and sends the total amount of the red envelopes to be issued and the number of red envelopes N to the server device 10a.

[0106] Correspondingly, the server device 10a receives the total amount of the red envelopes and the number of red envelopes N sent by the first terminal device 10b1, and generates a random red envelope according to the total amount of the red envelopes and the number of red envelopes N. In this embodiment, the random red envelope does not include the set prohibited number, which mainly means that the amount of the random red envelope does not include the set prohibited number. For example, assuming that the set prohibited number is 4, the random red envelope 3.45 (i.e., three yuan, four corners and five cents) contains the prohibited number 4, while the random red envelope 5.67 (i.e., five yuan, six corners and seven cents) does not contain the prohibited number. Further, the server device 10a returns the generated random red envelope to the terminal device 10b of each user in group A. Correspondingly, the terminal device 10b of each user in group A displays the icon of the random red envelope in the chat interface of group A for users in group A to receive the random red envelope. Among them, the amount of each random red envelope corresponds to the amount in the random red envelope generated by the server device 10a. Among them, the icon of the random red envelope can have multiple implementation forms. Optionally, the icon of the random red envelope can be a red envelope, a golden egg, a scratch card, an energy ball or a treasure box, but is not limited thereto. Optionally, the icon of the random red envelope displayed on the group chat interface can be as follows: Figure 1c As shown, each random red packet shares one icon, or Figure 1d As shown, each random red packet corresponds to an icon. Figure 1d Only 4 random red packets are used as an example, and Figure 1c and Figure 1d The icon is used only as an example of a red envelope.

[0107] In this embodiment, the server device can generate a random red envelope that does not contain prohibited numbers based on the total amount of red envelopes to be issued and the number of red envelopes N set by the red envelope issuing user, and return the random red envelope to the terminal device. Correspondingly, the terminal device can provide random red envelopes to users in the group. In this way, the amount of the red envelope received by each user does not contain prohibited numbers. The prohibited numbers can be one or more. The specific value of the prohibited number is not limited, it can be pre-set by the system, and / or, by the red envelope issuing user in group A flexibly set according to local customs, personal preferences, etc. For example, according to local taboos, numbers such as "4" and "7" can be set as prohibited numbers.

[0108] In this embodiment, the server device and the terminal device cooperate with each other, and during the random red envelope distribution process, random red envelopes that do not contain set banned numbers can be generated, which increases the predictability of random red envelopes on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0109] In the embodiment of the present application, the prohibited numbers can be set by the software technology developer, and the prohibited numbers are preset in the server device 10a. The server device 10a can retrieve the prohibited numbers when generating random red envelopes, and generate random red envelopes that do not include the prohibited numbers according to the total amount of red envelopes to be issued and the number of red envelopes N.

[0110] Alternatively, the prohibited numbers can be set by the red envelope issuing user. Accordingly, the first terminal device 10b1 can also display a number setting interface. The number setting interface can be used for the user to set the prohibited numbers. The number setting interface can be the same interface as the red envelope information interface, for example, the number setting interface is located below the red envelope information interface ( Figure 1e The digital setting interface may also be a text input box on the red envelope information interface, or the like. Alternatively, the digital setting interface may be a floating window on the red envelope information interface, or the next interface of the red envelope information interface, or the like.

[0111] Furthermore, the red envelope issuing user can input a prohibited number on the number setting interface. Accordingly, the first terminal device 10b1 obtains the prohibited number input by the red envelope issuing user in response to the input operation on the number setting interface, and sends the prohibited number input by the red envelope issuing user to the server device 10a. Accordingly, the server device 10a receives the prohibited number sent by the first terminal device 10b1, and generates a random red envelope that does not contain the prohibited number set by the red envelope issuing user according to the total amount of the red envelopes to be issued and the number of red envelopes N.

[0112] Optionally, the number setting interface includes: a disabled number input box. The user can enter a disabled number in the disabled number input box. Or, Figure 1e As shown, the number setting interface includes: a list of disabled numbers. The user can select disabled numbers from the list of disabled numbers. Accordingly, the first terminal device 10b1 determines the disabled numbers selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user in the list of disabled numbers.

[0113] Optionally, in some embodiments, when the server device 10a generates a random red envelope that does not include a prohibited number based on the total amount of the red envelopes to be issued and the number of red envelopes N, it can generate (N-1) random numbers that obey a specified distribution based on the total amount of the red envelopes to be issued and the number of red envelopes N. The specified distribution may be a normal distribution, an exponential distribution, a binomial distribution, a Poisson distribution, etc., but is not limited thereto. Further, for each random number generated, the server device 10a determines whether the random number contains a set prohibited number; if the random number contains a set prohibited number, the prohibited number contained in the random number is replaced with a non-prohibited number, and the random number after the prohibited number is replaced is used as the amount of a random red envelope. Correspondingly, if the generated random number does not contain a set prohibited number, the random number is directly used as the amount of a random red envelope. Afterwards, the server device 10a obtains the amount of the last random red envelope based on the difference between the total amount of the red envelopes to be issued and the total amount of the (N-1) random red envelopes obtained based on the generated (N-1) random numbers.

[0114] Furthermore, in the embodiments of the present application, a variety of methods can be used to generate random numbers that obey a specified distribution. For example, a random seed number that obeys a specified distribution can be determined first, and then a random number that obeys a specified distribution can be generated by combining the random seed number, the current remaining red envelope amount, and the current remaining number of red envelopes. The following example uses the generation of a random seed number based on a set MAC address and timestamp as an example, and combines Figure 1f The process of generating random numbers is described by way of example. Assume that the number of red envelopes to be distributed input by the red envelope distribution user is N, where N is an integer greater than or equal to 2. Then:

[0115] S1: i=0, i represents the number of random red packets with a currently determined amount, and i is a natural number. That is, the number of random red packets with a currently determined amount is initialized to 0. Among them, the amount of the random red packets with a determined amount does not include the set prohibited number.

[0116] S2: Determine the current remaining red envelope amount Q and the current remaining number of red envelopes M, where M=Ni.

[0117] S3: Determine whether the current number of remaining red envelopes M is greater than 1; if the judgment result is yes, execute steps S4 and S5; if the judgment result is that the current number of remaining red envelopes is M=1, execute step S10.

[0118] S4: Generate a random seed number R according to the set MAC address, current timestamp and the function corresponding to the specified distribution. The MAC address can be the MAC address of the first terminal device 10b1, the MAC address of the server device 10a, or the MAC address of any other specified device. For example, it can be the MAC address of the terminal device of any user in group A. Further, , and its data type is floating point.

[0119] S5: Combine the random seed number, the current remaining red envelope amount Q and the current remaining number of red envelopes M to generate a random number X that obeys the specified distribution.

[0120] Optionally, the current remaining red envelope amount Q can be divided into M parts to obtain the average value of the current remaining red envelope amount, and the product of the average value and the random seed number is used as the random number X.

[0121] Furthermore, in step S5, the range of the generated random number is required to be [a, b] as a constraint condition, where a is the minimum unit value of the red envelope, that is, the minimum amount that each user who receives the red envelope can receive; b=Q-(M-1)*a, that is, b means that the amount of the currently determined red envelope needs to be greater than or equal to the minimum unit value of the red envelope, but less than the minimum amount that should be divided after deducting the other red envelopes that have not yet been determined. Among them, a can be pre-set by the software developer, or it can be set by the red envelope issuing user on the digital information interface. For example, the software developer or the red envelope issuing user can set the minimum value of the red envelope amount received by each user, that is, set a to the minimum unit value of the red envelope.

[0122] S6: Determine whether the generated random number X contains a set prohibited number. If the determination result is yes, execute step S7; if the determination result is no, execute step S8.

[0123] S7: Replace the disabled numbers contained in the random number X with non-disabled numbers, and use the random number after replacing the disabled numbers as the amount of the current random red packet Y.

[0124] S8: Use the random number X directly as the amount of the current random red packet Y.

[0125] S9: Add 1 to the number of random red packets with determined amounts, that is, i=i+1, and deduct the total amount of the i random red packets that have been determined from the total amount of the red packets to be distributed, and then deduct the amount of the random red packets Y as the current remaining red packet amount Q, that is, Q=QY. Repeat steps S2-S6 until the current remaining number of red packets M=1.

[0126] S10: Calculate the difference between the total amount of the red envelopes to be issued and the total amount of the first (N-1) random red envelopes that have been determined, and obtain the amount of the last random red envelope Z based on the difference. That is, the amount of the last random red envelope Z is obtained based on the current remaining amount of the red envelopes. Among them, the amount of the (N-1) random red envelopes that have been determined is obtained based on the (N-1) random numbers generated above.

[0127] Furthermore, it is considered that the last random red envelope Z may contain prohibited numbers. In order to make the random red envelope Z also not contain prohibited numbers, the server device 10a also determines whether the difference between the total amount of the red envelopes to be issued and the total amount of the first (N-1) random red envelopes that have been determined contains prohibited numbers. If the difference contains prohibited numbers, the server device 10a can also send a red envelope amount adjustment prompt message to the first terminal device 10b1. Accordingly, the first terminal device 10b1 receives the red envelope amount adjustment prompt message and displays the prompt message, thereby prompting the red envelope issuing user to adjust the total amount of the red envelopes to be issued. Accordingly, the red envelope issuing user can adjust the amount of the red envelopes to be issued so that the last random red envelope Z also does not contain prohibited numbers. In response to the operation of adjusting the red envelope amount by the red envelope issuing user, the first terminal device 10b1 obtains the red envelope adjustment amount and sends it to the server device 10a.

[0128] Correspondingly, the server device 10a receives the red envelope adjustment amount, and replaces the disabled numbers in the above difference with non-disabled numbers according to the red envelope adjustment amount, and uses the difference after replacement with non-disabled numbers as the amount of the last random red envelope Z.

[0129] Among them, the above-mentioned red envelope adjustment prompt information can be the adjusted total amount of the red envelopes, or it can be a variable of the total amount of the red envelopes. Accordingly, the red envelope adjustment amount obtained by the first terminal device 10b1 can be the adjusted total amount of the red envelopes, or it can be a variable of the total amount of the red envelopes. For example, assuming that the total amount of the red envelopes to be issued initially set by the user is 10 yuan, the red envelope adjustment prompt information can be prompt information such as "Please adjust the red envelope amount to 10.50 yuan". Accordingly, the red envelope adjustment amount obtained by the first terminal device 10b1 is the adjusted total amount of the red envelopes is 10.50 yuan. Alternatively, the red envelope adjustment prompt information can also be prompt information such as "Please increase 0.5 yuan", and accordingly, the red envelope adjustment amount obtained by the first terminal device 10b1 is 0.5 yuan added to the original total amount of the red envelope.

[0130] Optionally, in order to prevent the red envelope issuing user from blindly adjusting the amount of the red envelope to be issued and improve the distribution efficiency of the amount of the red envelope to be issued, the server device 10a can also determine the adjustment direction and adjustment range of the red envelope amount required to replace the prohibited numbers contained in the random red envelope Z with non-prohibited numbers, and send the adjustment direction and adjustment range of the red envelope amount to the first terminal device 10b1. Correspondingly, the first terminal device 10b1 receives the adjustment direction and adjustment range of the amount of the red envelope to be issued, and displays the adjustment direction and adjustment range of the amount of the red envelope to be issued, thereby guiding the red envelope issuing user to adjust the red envelope amount, so that the red envelope issuing user can adjust the amount of the red envelope to be issued to the required amount as soon as possible, thereby helping to improve the efficiency of the server device 10a in dividing the adjusted total amount of the red envelope into N random red envelopes that do not contain prohibited numbers. Among them, the adjustment direction refers to whether the amount is increased or decreased based on the initial total amount of the red envelope to be issued; the adjustment range refers to how much the amount is increased or decreased.

[0131] It is worth noting that in the embodiment of the present application, in order to make the total amount of red envelopes to be issued after the user adjusts it to be as close as possible to the total amount of red envelopes that the user originally wanted to issue, for the first (N-1) random red envelopes, if these random red envelopes contain banned numbers, the total amount of red envelopes corresponding to the first (N-1) random red envelopes can be adjusted within the total amount of red envelopes to be issued initially input by the red envelope issuing user; for the last random red envelope, if the last random red envelope contains banned numbers, the above-mentioned method of sending a red envelope total amount adjustment prompt message from the server device 10a to the first terminal device 10b1 can be adopted, and the red envelope issuing user can adjust the total amount of red envelopes to be issued (or increase or decrease a certain amount based on the initial total amount of red envelopes) so that the last random red envelope does not contain banned numbers.

[0132] Further, in the embodiment of the present application, in order to make the total amount of the red envelopes to be issued after the user's adjustment as close as possible to the total amount of the red envelopes that the user originally wanted to issue, and to make the user try not to increase the total amount of the red envelopes to be issued. Whether for the first (N-1) random red envelopes or for the last random red envelope, when the server device 10a replaces the disabled numbers in the random red envelope with non-disabled numbers, it can first calculate the difference between each non-disabled number and the disabled numbers contained in the random red envelope, and select the non-disabled number corresponding to the minimum difference as the target non-disabled number, and replace the disabled numbers in the random red envelope with the target non-disabled numbers. Among them, the difference between each non-disabled number and the disabled number contained in the random red envelope is a vector difference, that is, the difference between the non-disabled number and the disabled number contained in the random red envelope.

[0133] Furthermore, in the embodiments of the present application, available numbers can also be set. Available numbers refer to the numbers that can be included in the red envelope amount received by each user, or the numbers that must be included in the red envelope amount received by each user, and the available numbers are different from the set prohibited numbers. For example, when distributing resources, the user hopes that the number of resources received by each user who receives the resources contains one or more numbers with good meanings, such as the numbers "6", "8", "5", etc. Among them, the available numbers can be 1 or more.

[0134] Optionally, the available numbers can be set by software technology developers and preset in the server device 10a. When generating a random red envelope, the server device 10a can retrieve the available numbers and generate a random red envelope that does not include the prohibited numbers in combination with the total amount of the red envelopes to be issued, the number of red envelopes N, the prohibited numbers and the available numbers.

[0135] Alternatively, the red envelope issuing user can independently set the available numbers through the number setting interface. Accordingly, the first terminal device 10b1 obtains the available numbers input by the red envelope issuing user in response to the input operation on the number setting interface, and sends the available numbers input by the red envelope issuing user to the server device 10a. Accordingly, the server device 10a receives the available numbers sent by the first terminal device 10b1, and combines the total amount of red envelopes to be issued, the number of red envelopes N, the prohibited numbers and the available numbers to generate a random red envelope that does not include the prohibited numbers.

[0136] Optionally, the digital setting interface includes: an available digital input box. The user can enter available digital input box. Or, Figure 1e As shown, the number setting interface includes: an available number list. The user can select an available number from the available number list. Accordingly, the first terminal device 10b1 responds to the selection operation of the red envelope issuing user in the available number list, determines the available number selected by the red envelope issuing user, and sends the available number input by the red envelope issuing user to the server device 10a.

[0137] Regardless of whether the available numbers are set by the system or by the user for red envelope distribution, the server device 10a can select target available numbers from the set available numbers and replace the prohibited numbers contained in the random numbers with the target available numbers.

[0138] Furthermore, in order to make the total amount of the red envelopes to be distributed after the user's adjustment as close as possible to the total amount of the red envelopes that the user originally wanted to distribute, and to prevent the user from increasing the total amount of the red envelopes to be distributed as much as possible, whether for the first (N-1) random red envelopes or for the last random red envelope, when replacing the disabled numbers in the random red envelope with available numbers, the server device 10a can first calculate the difference between each available number and the disabled number contained in the random red envelope, and select the available number corresponding to the minimum difference as the target available number, and replace the disabled number in the random red envelope with the target available number.

[0139] In another optional embodiment, the user may also specify that one or some digits of the random red envelope cannot contain prohibited numbers. Accordingly, the digital setting interface may also include: a digital list of prohibited numbers or a digital input box for prohibited numbers. The red envelope issuing user can select the specified digits that cannot contain prohibited numbers through the digital list of prohibited numbers. Accordingly, the first terminal device 10b1 responds to the red envelope issuing user's selection operation from the digital list of prohibited numbers, determines the digit selected by the red envelope issuing user, and uses the digit as the specified digit that cannot contain prohibited numbers. Alternatively, the red envelope issuing user can input the digit that cannot contain prohibited numbers through the digital input box for prohibited numbers, and accordingly, the first terminal device 10b1 responds to the input operation on the digital setting interface, obtains the digit entered by the red envelope issuing user, as the specified digit that cannot contain prohibited numbers.

[0140] Further, the first terminal device 10b1 sends the designated digits to the server device 10a. Accordingly, the server device 10a receives the designated digits that cannot contain prohibited digits sent by the first terminal device 10b1, and generates a random red envelope that does not include prohibited digits on the designated digits based on the designated digits, the total amount of red envelopes to be issued, the number of red envelopes N, and the prohibited digits. Optionally, the server device 10a may determine whether the digits on the designated digits in the random red envelope belong to the set prohibited digits. If the judgment result is yes, the server device 10a determines that the random red envelope contains the set prohibited digits, and then replaces the prohibited digits on the designated digits with non-disabled digits. Among them, the specific implementation method of the server device 10a replacing the prohibited digits on the designated digits with non-disabled digits can be found in the above-mentioned related content, which will not be repeated here.

[0141] Alternatively, the designated digits that cannot contain prohibited digits may also be set by a software developer, and the designated digits may be preset in the server device 10a.

[0142] In the embodiment of the present application, the designated digit may be one or more of the ones digit, the tens digit, the first decimal digit, the second decimal digit, etc., which are not limited here. For example, for an online red packet, the second decimal digit may be set as the designated digit, that is, the digit where the cents in the rounded cents are located may be set as the designated digit.

[0143] In another optional embodiment, in order to ensure that the amount of red envelopes received by users in group A does not differ greatly, a random red envelope floating range can be set. The random red envelope floating range can be set by software technology developers, and the random red envelope floating range is preset in the server device 10a. Accordingly, the server device 10a can obtain the random red envelope floating range and generate random red envelopes whose value fluctuations between different random red envelopes are within the random red envelope floating range.

[0144] Alternatively, the red envelope issuing user may independently set the floating range of random red envelopes. Figure 1e As shown, the digital setting interface may also include a random red envelope floating range setting unit. The red envelope issuing user can set the random red envelope floating range through the random red envelope floating range setting unit. Accordingly, the first terminal device 10b1 obtains the random red envelope floating range input by the red envelope issuing user in response to the input operation on the digital setting interface; and sends the random red envelope floating range to the server device 10a. Accordingly, the server device 10a receives the random red envelope floating range and generates a random red envelope whose numerical floating between different random red envelopes is within the random red envelope floating range.

[0145] The network system provided in the embodiment of the present application can not only make the red envelope received by the user not contain prohibited numbers, but also make the red envelope received by the user contain available numbers. In order to make the red envelope received by the user contain available numbers, in this embodiment, the red envelope issuing user can open the chat interface of group A through the first terminal device 10b1. For example, the red envelope issuing user can click on the group identifier of group A, such as the avatar of the group, on the message page of the software displayed on the first terminal device 10b1. For the first terminal device 10b1, in response to the operation of the red envelope issuing user opening the chat interface of group A, the chat interface can be displayed to the red envelope issuing user.

[0146] Furthermore, a red envelope distribution control may be set on the chat interface. Alternatively, the drop-down menu of the chat interface includes a red envelope distribution control. When the red envelope distribution user distributes an online red envelope, the corresponding red envelope distribution control may be triggered. For the first terminal device 10b1, in response to the red envelope triggering operation on the group chat interface, a red envelope information interface may be displayed. Figure 1bAs shown, the red envelope information interface includes: a red envelope total amount input box and a red envelope number input box. The red envelope issuing user can input the total amount of the red envelopes he wants to issue through the red envelope total amount input box, and input the number of red envelopes N he wants to issue through the number of packets input box, that is, the red envelope issuing user wants to divide the total amount of the red envelopes he wants to issue into N parts. Accordingly, the first terminal device 10b1 obtains the total amount of the red envelopes to be issued and the number of red envelopes N in response to the input operation on the red envelope information interface, and sends the total amount of the red envelopes to be issued and the number of red envelopes N to the server device 10a.

[0147] Correspondingly, the server device 10a receives the total amount of red envelopes to be issued and the number of red envelopes N sent by the first terminal device 10b1, and generates random red envelopes according to the total amount of red envelopes to be issued and the number of red envelopes N, wherein the number of random red envelopes is equal to the number of red envelopes to be issued N. In this embodiment, the numbers in each random red envelope belong to the set available numbers. In this embodiment, the numbers in each random red envelope can all be available numbers, or the numbers of the specified digits in each random red envelope are available numbers. Further, the server device 10a returns the generated random red envelope to the terminal device 10b of the user in group A. Correspondingly, the terminal device 10b of each user in group A displays the icon of the random red envelope in the chat interface of group A, so that the users in group A can receive the random red envelope. Among them, the amount of each random red envelope corresponds to the amount in the random red envelope generated by the server device 10a. Among them, the implementation form of the icon of the random red envelope can refer to the above-mentioned related content, which will not be repeated here.

[0148] In this embodiment, the server device and the terminal device cooperate with each other, and during the random red envelope distribution process, random red envelopes with available numbers can be generated, which increases the predictability of random red envelopes on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0149] In an embodiment of the present application, the server device can generate a random red envelope belonging to available numbers according to the total amount of red envelopes to be issued and the number of red envelopes N set by the red envelope issuing user, and return the random red envelope to the terminal device. Correspondingly, the terminal device can provide random red envelopes to users in the group. In this way, the amount of the red envelopes received by each user belongs to available numbers. The available numbers can be one or more. In this embodiment, the specific value of the available numbers is not limited, which can be pre-set by the system, and / or flexibly set by the red envelope issuing user in group A according to local customs, personal preferences, etc. For example, according to local customs, auspicious numbers with good meanings can be set as available numbers, such as "6", "8" or "9", etc. Among them, the implementation method of setting available numbers can refer to the above-mentioned related description, which will not be repeated here.

[0150] Further, when the available numbers are set by the red envelope issuing user, the first terminal device 10b1 can respond to the input operation on the number setting interface of the server device 10a, obtain the available numbers input by the red envelope issuing user, and send the available numbers input by the red envelope issuing user to the server device 10a. Correspondingly, the server device 10a receives the available numbers sent by the first terminal device 10b1, and generates a random red envelope whose numbers belong to the available numbers according to the total amount of the red envelopes to be issued, the set number of red envelopes N, and the available numbers.

[0151] Optionally, when the server device 10a generates a random red envelope whose numbers belong to available numbers according to the total amount of red envelopes to be issued and the number of red envelopes N, it can generate (N-1) random numbers that obey the specified distribution according to the total amount of red envelopes to be issued and the number of red envelopes N. Further, for each random number, the server device 10a determines whether the random number contains other numbers different from the set available numbers; if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with available numbers, and the random number after replacing the other numbers is used as the amount of a random red envelope. Correspondingly, if the generated random number does not contain other numbers different from the set available numbers, the random number is directly used as the amount of a random red envelope. Further, the server device 10a also obtains the amount of the last random red envelope according to the difference between the total amount of red envelopes to be issued and the total amount of (N-1) random red envelopes obtained according to the generated (N-1) random numbers.

[0152] Optionally, when the number of remaining red envelopes is greater than 1, the server device 10a can generate a random seed number each time according to the set MAC address, the current timestamp and the function corresponding to the specified distribution, and generate a random number by combining the random seed number, the remaining red envelope amount and the remaining number of red envelopes. The remaining number of red envelopes refers to the number of red envelopes N minus the number of random red envelopes with a determined red envelope amount, and the remaining red envelope amount refers to the amount remaining after the total amount of red envelopes to be distributed is deducted from the total amount of random red envelopes with a determined amount.

[0153] The specific implementation method of the server device 10a generating (N-1) random red envelopes according to the total amount of red envelopes to be issued and the number of red envelopes N can be referred to the relevant contents of the above steps S1-S10, which will not be repeated here. Optionally, in the embodiment of the present application, the numbers of each random red envelope can be that each digit belongs to an available number, or the numbers of the specified digits of each random red envelope belong to an available number.

[0154] In some embodiments, the designated digits belonging to the available numbers may also be set by a software technology developer, and the designated digits are preset in the server device 10a.

[0155] In other embodiments, the user may specify that the numbers on one or some digits of the random red envelope belong to available numbers, or may specify that the numbers on all digits belong to available numbers. Accordingly, the digital setting interface may also include: a digit list of available numbers or a digit input box of available numbers. The red envelope issuing user may select the designated digits of available numbers through the digit list of available numbers. Accordingly, the first terminal device 10b1 determines the digit selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user from the digit list of available numbers, and uses the digit as the designated digit belonging to the available numbers. Alternatively, the red envelope issuing user may input the digits of available numbers through the digit input box of available numbers, and accordingly, the first terminal device 10b1 obtains the digits input by the red envelope issuing user in response to the input operation on the digital setting interface as the designated digits belonging to the available numbers.

[0156] Further, the first terminal device 10b1 sends the designated digits to the server device 10a. Accordingly, the server device 10a receives the designated digits that cannot contain available digits sent by the first terminal device 10b1, and generates a random number whose digits on the designated digits belong to available digits according to the designated digits, the total amount of red envelopes to be issued, the number of red envelopes N and the available digits. Optionally, the server device 10a can determine whether the digits on the designated digits in the random number belong to the set available digits. If the judgment result is yes, the server device 10a uses the random number as a random red envelope. Accordingly, if the judgment result is no, the server device 10a determines that the digits on the designated digits of the random number are other digits, and replaces the other digits on the designated digits with available digits, and uses the replaced random number as the value of the random red envelope. Among them, the specific implementation method of the server device 10a replacing the other digits on the designated digits with available digits can refer to the above-mentioned content related to the server device 10a replacing the prohibited digits on the designated digits with available digits, which will not be repeated here.

[0157] It is worth noting that in the embodiment in which the server device 10a and the first terminal device 10b1 cooperate with each other so that the numbers of the random red envelopes issued are available numbers, the server device 10a may also send a red envelope amount adjustment prompt information to the first terminal device 10b1. Optionally, the red envelope amount adjustment prompt information may also be the adjustment direction and adjustment range of the red envelope amount. Regarding the specific implementation method of the server device 10a sending the red envelope amount adjustment prompt information to the first terminal device 10b1, and the first terminal device 10b1 displaying the red envelope amount prompt information for the red envelope issuing user to adjust the amount of the red envelope to be issued, please refer to the above-mentioned server device 10a and the first terminal device 10b1 cooperate with each other so that the numbers of the random red envelopes issued do not contain prohibited numbers. It will not be repeated here.

[0158] Further, in this embodiment, a random red envelope floating range can also be set between different random red envelopes. Among them, the setting method of the random red envelope floating range and the server device 10a and the first terminal device 10b1 cooperate with each other so that the numerical fluctuation between different random red envelopes belongs to the specific implementation method of the random red envelope floating range can be parameterized. The server device 10a and the first terminal device 10b1 cooperate with each other so that the numbers of the distributed random red envelopes do not contain prohibited numbers. The relevant content is not repeated here.

[0159] In addition to the system embodiments provided in the above embodiments, the embodiments of the present application also provide a corresponding network red packet distribution method. The following examples are respectively given from the perspectives of the terminal device corresponding to the user who distributes the red packet and the server device.

[0160] Figure 2a The flowchart of a method for distributing online red packets provided in the embodiment of the present application is shown in FIG. The method is applicable to a terminal device. Figure 2a As shown, the method includes:

[0161] 201a. In response to a red envelope triggering operation on the group chat interface, a red envelope information interface is displayed.

[0162] 202a. In response to the input operation on the red envelope information interface, obtain the total amount of the red envelopes and the number of red envelopes N, where N≥2 and is an integer.

[0163] 203a. Send the total amount of the red envelopes and the number of red envelopes N to the server device, so that the server device generates and returns a random red envelope according to the total amount of the red envelopes and the number of red envelopes N.

[0164] 204a. Display the icon of the random red envelope returned by the server device in the group chat interface for group users to collect; wherein the random red envelope does not contain the set prohibited numbers.

[0165] Accordingly, Figure 2b A flowchart of another method for distributing online red packets provided in an embodiment of the present application. The method is applicable to a server device. Figure 2b As shown, the method includes:

[0166] 201b. Receive the total amount of red envelopes and the number of red envelopes N sent by the terminal device, where N ≥ 2 and is an integer.

[0167] 202b. Generate a random red envelope according to the total amount of the red envelope and the number of red envelopes N, and the random red envelope does not contain a set prohibited number.

[0168] 203b. Return the random red envelope to the terminal device, so that the terminal device can display the random red envelope in the group chat interface for group users to collect.

[0169] In the above Figure 2a and Figure 2b In the network red packet distribution method shown, the implementation form and connection method of the server device and the terminal device can refer to the relevant content of the above-mentioned system embodiment, which will not be repeated here.

[0170] In the above-mentioned embodiment of the network red envelope distribution, the red envelope distribution user can open the chat interface of group A through its terminal device. For the convenience of description and distinction, the terminal device of the red envelope distribution user is defined as the first terminal device. For example, the red envelope distribution user can click on the group logo of group A, such as the group avatar, on the message page of the software displayed on the first terminal device. For the first terminal device, in response to the operation of the red envelope distribution user opening the chat interface of group A, the chat interface can be displayed to the red envelope distribution user.

[0171] Furthermore, a red envelope distribution control may be set on the chat interface. Alternatively, a red envelope distribution control may be included in the drop-down menu of the chat interface. When the red envelope distribution user distributes an online red envelope, the corresponding red envelope distribution control may be triggered. For the first terminal device, in step 201a, a red envelope information interface may be displayed in response to the red envelope triggering operation on the group chat interface. Figure 1b As shown, the red envelope information interface includes: a red envelope total amount input box and a red envelope number input box. The red envelope issuing user can input the total amount of the red envelopes he wants to issue through the red envelope total amount input box, and input the number of red envelopes N he wants to issue through the red envelope number input box, that is, the red envelope issuing user wants to divide the total amount of the red envelopes he issues into N parts. Accordingly, in step 202a, the first terminal device obtains the total amount of the red envelopes to be issued and the number of red envelopes N in response to the input operation on the red envelope information interface, and in step 203a, sends the total amount of the red envelopes to be issued and the number of red envelopes N to the server device.

[0172] Accordingly, in step 201b, the server device receives the total amount of red envelopes to be issued and the number of red envelopes N sent by the first terminal device, and in step 202b, generates random red envelopes according to the total amount of red envelopes to be issued and the number of red envelopes N, wherein the number of random red envelopes is N. In this embodiment, the amount of each random red envelope does not include the set prohibited number. Further, in step 203b, the server device returns the generated random red envelope to the terminal device of the user in group A. Accordingly, in step 204a, the terminal device of each user in group A displays the icon of the random red envelope in the chat interface of group A for the users in group A to receive the random red envelope. Among them, the amount of each random red envelope corresponds to the amount in the random red envelope generated by the server device. Among them, the implementation form of the icon of the random red envelope can refer to the relevant content of the above-mentioned system embodiment, which will not be repeated here.

[0173] In the above-mentioned embodiment of the network red envelope distribution method, the server device can generate a random red envelope that does not contain prohibited numbers according to the total amount of red envelopes to be distributed and the number of red envelopes N set by the network resource distribution user, and return the random red envelope to the terminal device. Correspondingly, the terminal device can provide random red envelopes to users in the group. In this way, the amount of the red envelope received by each user does not contain prohibited numbers. The prohibited numbers can be one or more. The specific value of the prohibited number is not limited, it can be pre-set by the system, and / or, by the red envelope distribution user in group A flexibly set according to local customs, personal preferences, etc. For example, according to local taboos, numbers such as "4" and "7" can be set as prohibited numbers.

[0174] In the online red envelope distribution method provided in the embodiment of the present application, the server device and the terminal device cooperate with each other. During the random red envelope distribution process, a random red envelope that does not contain set banned numbers can be generated. The predictability of the random red envelope is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0175] In the embodiment of the present application, the prohibited numbers can be set by the software technology developer, and the prohibited numbers are preset in the server device. When generating a random red envelope, the server device can retrieve the prohibited numbers, and generate a random red envelope that does not include the prohibited numbers according to the total amount of the red envelopes to be issued and the number of red envelopes N, that is, the server device randomly divides the total amount of the red envelopes to be issued into N parts according to the number of red envelopes N, and the amount value of each red envelope does not include the prohibited numbers.

[0176] Alternatively, the prohibited numbers can be set by the red envelope issuing user. Accordingly, the first terminal device can also display a number setting interface. The number setting interface can be used for the user to set the prohibited numbers. Among them, the number setting interface can belong to the same interface as the red envelope information interface. For example, the number setting interface is located below or above the red envelope information interface, and the number setting interface can also be a text input box on the red envelope information interface. Alternatively, the number setting interface can be a floating window on the red envelope information interface, or it can be the next interface of the red envelope information interface, etc.

[0177] Furthermore, the red envelope issuing user can input a prohibited number on the number setting interface. Accordingly, the first terminal device obtains the prohibited number input by the red envelope issuing user in response to the input operation on the number setting interface, and sends the prohibited number input by the red envelope issuing user to the server device.

[0178] Optionally, the number setting interface includes: a disabled number input box. The user can input a disabled number through the disabled number input box. Alternatively, the number setting interface includes: a disabled number list. The user can select a disabled number from the disabled number list. Accordingly, the first terminal device determines the disabled number selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user in the disabled number list.

[0179] Optionally, in some embodiments, an optional implementation of step 202b is: according to the total amount of red envelopes to be issued and the number of red envelopes N, generate (N-1) random numbers that obey the specified distribution; for each generated random number, determine whether the random number contains a set prohibited number; if the random number contains a set prohibited number, replace the prohibited number contained in the random number with a non-prohibited number, and use the random number after replacing the prohibited number as the amount of a random red envelope. Correspondingly, if the generated random number does not contain the set prohibited number, the random number is directly used as the amount of a random red envelope. Among them, the specified distribution can be a normal distribution, an exponential distribution, a binomial distribution, a Poisson distribution, etc., but is not limited thereto. Further, the amount of the last random red envelope is obtained based on the difference between the total amount of red envelopes to be issued and the total amount of (N-1) red envelopes obtained based on the generated (N-1) random numbers.

[0180] Furthermore, in the embodiments of the present application, a variety of methods can be used to generate random numbers that obey the specified distribution. For example, the random seed number that obeys the specified distribution can be determined first, and then the random seed number, the current total amount of red envelopes remaining, and the current number of red envelopes remaining N are combined to generate (N-1) random numbers that obey the specified distribution. For example, when the number of remaining red envelopes is greater than 1, the server-side device can generate a random seed number each time according to the set MAC address, the current timestamp, and the function corresponding to the specified distribution, and generate a random number in combination with the random seed number, the remaining red envelope amount, and the remaining number of red envelopes. Among them, the process of generating a random number according to the set MAC address and timestamp can be referred to above. Figure 1e The relevant contents of steps S1-S10 are not repeated here.

[0181] Furthermore, it is considered that the last random red envelope Z may contain prohibited numbers. In order to ensure that the random red envelope Z does not contain prohibited numbers, the server device also determines whether the difference between the total amount of the red envelopes to be issued and the total amount of the (N-1) red envelopes obtained based on the generated (N-1) random numbers contains prohibited numbers. If the random red envelope Z contains prohibited numbers, the server device may also send a red envelope amount adjustment prompt message to the first terminal device. Accordingly, the first terminal device receives the red envelope amount adjustment prompt message and displays the prompt message, thereby prompting the red envelope issuing user to adjust the red envelope amount to be issued. Accordingly, the red envelope issuing user may adjust the red envelope amount to be issued so that the last random red envelope Z does not contain prohibited numbers either. In response to the operation of adjusting the red envelope amount by the red envelope issuing user, the first terminal device obtains the adjusted red envelope adjustment amount and sends it to the server device.

[0182] Correspondingly, the server device receives the red envelope adjustment amount, and replaces the prohibited numbers in the above difference with non-prohibited numbers according to the red envelope adjustment amount, and uses the difference after replacement with non-prohibited numbers as the amount of the last random red envelope Z. Among them, the implementation form of the red envelope adjustment prompt information and the red envelope adjustment amount can refer to the relevant content of the above system embodiment, which will not be repeated here.

[0183] Optionally, in order to prevent the red envelope issuing user from blindly adjusting the amount of the red envelope to be issued and to improve the efficiency of distributing the amount of the red envelope to be issued, the server device may also determine the adjustment direction and adjustment range of the red envelope amount required to replace the prohibited numbers contained in the random red envelope Z with non-prohibited numbers, and send the adjustment direction and adjustment range of the red envelope amount to the first terminal device. Accordingly, the first terminal device receives the adjustment direction and adjustment range of the red envelope amount, and displays the adjustment direction and adjustment range of the red envelope amount, thereby guiding the red envelope issuing user to adjust the amount of the red envelope to be issued, so that the red envelope issuing user can adjust the amount of the red envelope to be issued to the required amount as soon as possible, thereby helping to improve the efficiency of the server device in dividing the adjusted total amount of the red envelope into N random red envelopes that do not contain prohibited numbers.

[0184] It is worth noting that in the embodiment of the present application, in order to make the total amount of red envelopes to be issued after the user adjusts it as close as possible to the total amount of red envelopes that the user originally wanted to issue, for the first (N-1) random red envelopes, if these random red envelopes contain prohibited numbers, the total amount of red envelopes corresponding to the first (N-1) random red envelopes can be adjusted in the total amount of red envelopes to be issued initially input by the red envelope issuing user, without the need for the red envelope issuing user to adjust the amount of the red envelopes to be issued. For the last random red envelope, if the last random red envelope contains prohibited numbers, the above-mentioned method of sending the red envelope total amount adjustment prompt information from the server device to the first terminal device can be adopted, and the red envelope issuing user can adjust the total amount of red envelopes to be issued so that the last random red envelope does not contain prohibited numbers.

[0185] Further, in an embodiment of the present application, in order to make the total amount of red envelopes to be issued after the user's adjustment as close as possible to the total amount of red envelopes that the user originally wanted to issue, and to prevent the user from increasing the total amount of red envelopes to be issued as much as possible. Whether for the first (N-1) random red envelopes or for the last random red envelope, when the server-side device replaces the disabled numbers in the random red envelope with non-disabled numbers, it can first calculate the difference between each non-disabled number and the disabled numbers contained in the random red envelope, and select the non-disabled number corresponding to the minimum difference as the target non-disabled number, and replace the disabled numbers in the random red envelope with the target non-disabled number. Among them, the difference between each non-disabled number and the disabled number contained in the random red envelope is a vector difference, that is, the difference between the non-disabled number and the disabled number contained in the random red envelope.

[0186] Furthermore, in the embodiments of the present application, available numbers can also be set. Available numbers refer to the numbers that can be included in the red envelope amount received by each user, or the numbers that must be included in the red envelope amount received by each user, and the available numbers are different from the set prohibited numbers. For example, when distributing resources, the user hopes that the number of resources received by each user who receives the resources contains one or more numbers with good meanings, such as the numbers "6", "8", "5", etc.

[0187] Furthermore, the available numbers can be set by the software technology developer and preset in the server device. When generating a random red envelope, the server device can retrieve the available numbers and generate a random red envelope that does not include the prohibited numbers by combining the total amount of the red envelope to be issued, the number of red envelopes N, the prohibited numbers and the available numbers.

[0188] Alternatively, the user can independently set the available numbers through the number setting interface. Accordingly, the first terminal device responds to the input operation on the number setting interface, obtains the available numbers input by the red envelope issuing user, and sends the available numbers input by the red envelope issuing user to the server device.

[0189] Optionally, the number setting interface includes: an available number input box. The user can input available numbers through the available number input box. Alternatively, the number setting interface includes: an available number list. The user can select available numbers from the available number list. Accordingly, the first terminal device determines the available numbers selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user in the available number list, and sends the available numbers input by the red envelope issuing user to the server device.

[0190] Correspondingly, the server device receives the available numbers sent by the first terminal device, and generates a random red packet that does not include the banned numbers, based on the total amount of the red packets to be distributed, the number of red packets N, the banned numbers, and the available numbers.

[0191] Regardless of whether the available numbers are system settings or user settings, the server-side device can select target available numbers from the set available numbers and replace the prohibited numbers included in the random numbers with the target available numbers.

[0192] Furthermore, in order to make the total amount of the red envelopes to be distributed after the user's adjustment as close as possible to the total amount of the red envelopes that the user originally wanted to distribute, and to prevent the user from increasing the total amount of the red envelopes to be distributed as much as possible, whether for the first (N-1) random red envelopes or for the last random red envelope, when replacing the disabled numbers in the random red envelope with available numbers, the server device may first calculate the difference between each available number and the disabled number contained in the random red envelope, and select the available number corresponding to the minimum difference as the target available number, and replace the disabled number in the random red envelope with the target available number.

[0193] In another optional embodiment, the user may also specify that one or some digits of the random red envelope cannot contain prohibited numbers. Accordingly, the digital setting interface may also include: a digital list of prohibited numbers or a digital input box for prohibited numbers. The red envelope issuing user can select the specified digits that cannot contain prohibited numbers through the digital list of prohibited numbers. Accordingly, the first terminal device determines the digit selected by the red envelope issuing user in response to the red envelope issuing user's selection operation from the digital list of prohibited numbers, and uses the digit as the specified digit that cannot contain prohibited numbers. Alternatively, the red envelope issuing user can input the digits that cannot contain prohibited numbers through the digital input box for prohibited numbers, and accordingly, the first terminal device obtains the digits entered by the red envelope issuing user in response to the input operation on the digital setting interface as the specified digits that cannot contain prohibited numbers.

[0194] Further, the first terminal device sends the designated digits to the server device. Accordingly, the server device receives the designated digits sent by the first terminal device that cannot contain prohibited digits, and generates a random red envelope that does not include prohibited digits on the designated digits based on the designated digits, the total amount of red envelopes to be issued, the number of red envelopes N, and the prohibited digits. Optionally, the server device may determine whether the numbers on the designated digits in the random red envelope belong to the set prohibited digits. If the judgment result is yes, the server device determines that the random red envelope contains the set prohibited digits, and then replaces the prohibited digits on the designated digits with non-disabled digits. Among them, the specific implementation method of the server device replacing the prohibited digits on the designated digits with non-disabled digits can be found in the above-mentioned related content, which will not be repeated here.

[0195] Alternatively, the designated digits that cannot contain prohibited digits may also be set by a software technology developer, and the designated digits may be preset in the server device.

[0196] In the embodiment of the present application, the designated digit may be one or more of the ones digit, the tens digit, the first decimal digit, the second decimal digit, etc., which are not limited here. For example, for an online red packet, the second decimal digit may be set as the designated digit, that is, the digit where the cents in the rounded cents are located may be set as the designated digit.

[0197] In another optional embodiment, in order to ensure that the amount of red envelopes received by users in group A does not differ greatly, a random red envelope floating range can be set. The random red envelope floating range can be set by software technology developers, and the random red envelope floating range is preset in the server device 10a. Accordingly, the server device can obtain the random red envelope floating range and generate random red envelopes whose value fluctuations between different random red envelopes are within the random red envelope floating range.

[0198] Alternatively, the user may independently set the floating range of the random red envelope. Accordingly, the digital setting interface may also include a random red envelope floating range setting unit. The red envelope issuing user may set the random red envelope floating range through the random red envelope floating range setting unit. Accordingly, the first terminal device obtains the random red envelope floating range input by the red envelope issuing user in response to the input operation on the digital setting interface; and sends the random red envelope floating range to the server device. Accordingly, the server device receives the random red envelope floating range and generates a random red envelope whose numerical floating range between different random red envelopes is within the random red envelope floating range.

[0199] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned terminal device executing the method for issuing online red envelopes.

[0200] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned server-side device executing the network red envelope distribution method.

[0201] In addition to the above-mentioned random red envelopes that do not contain prohibited numbers, the embodiment of the present application also provides a method for issuing random red envelopes with available numbers, which are exemplarily described from the perspectives of the terminal device and the server device. The implementation form and connection method of the terminal device and the server device can refer to the relevant content of the above-mentioned system embodiment, which will not be repeated here.

[0202] Figure 3a A flowchart of another method for distributing online red packets provided in an embodiment of the present application is provided. The method is applicable to a terminal device. Figure 3a As shown, the method includes:

[0203] 301a. In response to a red envelope triggering operation on the group chat interface, a red envelope information interface is displayed.

[0204] 302a. In response to the input operation on the red envelope information interface, obtain the total amount of the red envelopes and the number of red envelopes N, where N≥2 and is an integer.

[0205] 303a. Send the total amount of the red envelopes and the number of red envelopes N to the server device, so that the server device generates and returns a random red envelope according to the total amount of the red envelopes and the number of red envelopes N.

[0206] 304a. Display the random red envelope in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

[0207] Figure 3b A flowchart of another method for distributing online red packets provided in an embodiment of the present application is provided. The method is applicable to a server-side device. Figure 3b As shown, the method includes:

[0208] 301b. Receive the total amount of red envelopes and the number of red envelopes N sent by the terminal device, where N≥2 and is an integer.

[0209] 302b. Generate a random red envelope according to the total amount of the red envelope and the number of red envelopes N, where the numbers in the random red envelope belong to the set available numbers.

[0210] 303b. Return the random red envelope to the terminal device, so that the terminal device can display the random red envelope in the group chat interface for group users to collect.

[0211] In the above Figure 3a and Figure 3b In the illustrated method for distributing online red envelopes, for ease of description and distinction, the terminal device used by the red envelope distributing user when distributing red envelopes through group A is defined as the first terminal device. The red envelope distributing user can open the chat interface of group A through the first terminal device. For example, the red envelope distributing user can click on the group identifier of group A, such as the group avatar, on the message page of the software displayed on the first terminal device. For the first terminal device, in response to the operation of the red envelope distributing user opening the chat interface of group A, the chat interface can be displayed to the red envelope distributing user.

[0212] Furthermore, a red envelope distribution control may be set on the chat interface. Alternatively, a red envelope distribution control may be included in the drop-down menu of the chat interface. When the red envelope distribution user distributes an online red envelope, the corresponding red envelope distribution control may be triggered. For the first terminal device, in step 301a, in response to the red envelope triggering operation on the group chat interface, a red envelope information interface may be displayed. Figure 1b As shown, the red envelope information interface includes: a red envelope total amount input box and a red envelope number input box. The red envelope issuing user can input the total amount of the red envelopes he wants to issue through the red envelope total amount input box, and input the number of red envelopes N he wants to issue through the red envelope number input box, that is, the red envelope issuing user wants to divide the total amount of the red envelopes he issues into N parts. Accordingly, in step 302a, the first terminal device obtains the total amount of the red envelopes to be issued and the number of red envelopes N in response to the input operation on the red envelope information interface, and in step 303a, sends the total amount of the red envelopes to be issued and the number of red envelopes N to the server device.

[0213] Accordingly, in step 301b, the server device receives the total amount of red envelopes to be issued and the number of red envelopes N sent by the first terminal device, and in step 302b, generates random red envelopes according to the total amount of red envelopes to be issued and the number of red envelopes to be issued N, wherein the number of random red envelopes is equal to N. In this embodiment, the numbers of each random red envelope belong to the set available numbers. In this embodiment, all the digits of each random red envelope may belong to the available numbers, or the numbers of the designated digits of each random red envelope belong to the available numbers. Further, in step 303b, the server device returns the generated random red envelope to the terminal device of the user in group A. Accordingly, in step 304a, the terminal device of each user in group A displays the icon of the random red envelope in the chat interface of group A, so that the users in group A can receive the random red envelope. Among them, the amount of each random red envelope corresponds to the amount in the random red envelope generated by the server device. Among them, the implementation form of the icon of the random red envelope can refer to the above-mentioned related content, which will not be repeated here.

[0214] In this embodiment, the server device and the terminal device cooperate with each other, and during the random red envelope distribution process, random red envelopes with available numbers can be generated, which increases the predictability of random red envelopes on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0215] In an embodiment of the present application, the server device can generate a random red envelope belonging to available numbers according to the total amount of red envelopes to be issued and the number of red envelopes N set by the network resource issuing user, and return the random red envelope to the terminal device. Correspondingly, the terminal device can provide random red envelopes to users in the group. In this way, the amount of the red envelopes received by each user belongs to available numbers. The available numbers can be one or more. In this embodiment, the specific value of the available numbers is not limited, which can be pre-set by the system, and / or flexibly set by the red envelope issuing user in group A according to local customs, personal preferences, etc. For example, according to local customs, auspicious numbers with good meanings can be set as available numbers, such as "6", "8", etc. Among them, the implementation method of setting available numbers can refer to the above-mentioned related description, which will not be repeated here.

[0216] Further, when the available numbers are set by the red envelope issuing user, the first terminal device may be a server device in response to an input operation on the number setting interface, obtain the available numbers input by the red envelope issuing user, and send the available numbers input by the red envelope issuing user to the server device.

[0217] Correspondingly, the server device receives the available numbers sent by the first terminal device, and generates a random red packet whose numbers belong to the available numbers according to the total amount of the red packets to be distributed, the set number N of red packets and the available numbers.

[0218] Optionally, when the server device generates a random red envelope whose numbers belong to available numbers according to the total amount of red envelopes to be issued and the number of red envelopes N, it can generate (N-1) random numbers that obey the specified distribution according to the total amount of red envelopes to be issued and the number of red envelopes N. Further, for each random number, the server device determines whether the random number contains other numbers different from the set available numbers; if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with available numbers, and the random number after replacing the other numbers is used as the amount of a random red envelope. Correspondingly, if the generated random number does not contain other numbers different from the set available numbers, the random number is directly used as the amount of a random red envelope. Further, the server device 10a also obtains the amount of the last random red envelope according to the difference between the total amount of red envelopes to be issued and the total amount of (N-1) random red envelopes obtained according to the generated (N-1) random numbers.

[0219] Optionally, further, when the number of remaining red envelopes is greater than 1, the server device 10a can generate a random seed number each time according to the set MAC address, the current timestamp and the function corresponding to the specified distribution, and generate a random number in combination with the random seed number, the remaining red envelope amount and the remaining number of red envelopes. Among them, the number of remaining red envelopes refers to the number of red envelopes N minus the number of random red envelopes with a determined red envelope amount, and the remaining red envelope amount refers to the amount remaining after deducting the total amount of random red envelopes with a determined amount from the total amount of red envelopes to be issued. Among them, the specific implementation method of the server device generating (N-1) random red envelopes based on the total amount of red envelopes to be issued and the number of red envelopes N can be found in the relevant content of steps S1-S10 of the above embodiment, which will not be repeated here.

[0220] Optionally, in an embodiment of the present application, the numbers in each random red envelope may be that each digit is an available number, or the numbers in designated digits of each random red envelope are available numbers.

[0221] In some embodiments, the designated digits belonging to the available numbers may also be set by a software technology developer, and the designated digits may be preset in the server-side device.

[0222] In other embodiments, the user may specify that the numbers on one or some digits of the random red envelope belong to available numbers, or may specify that the numbers on all digits belong to available numbers. Accordingly, the digital setting interface may also include: a digit list of available numbers or a digit input box of available numbers. The red envelope issuing user may select the specified digits of available numbers through the digit list of available numbers. Accordingly, the first terminal device determines the digit selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user from the digit list of available numbers, and uses the digit as the specified digit belonging to the available numbers. Alternatively, the red envelope issuing user may input the digits of available numbers through the digit input box of available numbers, and accordingly, the first terminal device obtains the digits input by the red envelope issuing user in response to the input operation on the digital setting interface as the specified digits belonging to the available numbers.

[0223] Further, the first terminal device sends the designated digits to the server device. Accordingly, the server device receives the designated digits sent by the first terminal device that cannot contain available digits, and generates a random number in which the digits on the designated digits belong to available digits based on the designated digits, the total amount of red envelopes to be issued, the number of red envelopes N, and the available digits. Optionally, the server device may determine whether the digits on the designated digits in the random number belong to the set available digits. If the judgment result is yes, the server device uses the random number as a random red envelope. Accordingly, if the judgment result is no, the server device determines that the digits on the designated digits of the random number are other digits, and replaces the other digits on the designated digits with available digits, and uses the replaced random number as the value of the random red envelope. Among them, the specific implementation method of the server device replacing other digits on the designated digits with available digits can be found in the above-mentioned content related to the server device replacing the prohibited digits on the designated digits with available digits, which will not be repeated here.

[0224] It is worth noting that in the above-mentioned embodiment where the server device and the first terminal device cooperate with each other so that the numbers of the random red envelopes issued are available numbers, the server device may also send a red envelope amount adjustment prompt message to the first terminal device. Optionally, the red envelope amount adjustment prompt message may also be the adjustment direction and adjustment range of the red envelope amount. Regarding the specific implementation method of the server device sending the red envelope amount adjustment prompt message to the first terminal device, and the first terminal device displaying the red envelope amount prompt message for the red envelope issuing user to adjust the amount of the red envelope to be issued, please refer to the above-mentioned system embodiment, where the server device and the first terminal device cooperate with each other so that the numbers of the random red envelopes issued do not contain prohibited numbers, which will not be repeated here.

[0225] Further, in this embodiment, a random red envelope floating range can also be set between different random red envelopes. Among them, the setting method of the random red envelope floating range and the server-side device and the first terminal device cooperate with each other so that the numerical fluctuation between different random red envelopes belongs to the specific implementation method of the random red envelope floating range can be parameterized in the above system embodiment, the server-side device and the first terminal device cooperate with each other so that the numbers of the distributed random red envelopes do not contain prohibited numbers, which will not be repeated here.

[0226] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned terminal device executing the method for issuing online red envelopes.

[0227] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned server-side device executing the network red envelope distribution method.

[0228] In the above system, users can not only issue network red packets, but also issue or receive other network resources such as traffic, phone bills, virtual game coins, points, etc. In addition, in addition to issuing network red packets, traffic and other network resources in the group, users can also use other methods to issue them. For example, a network resource issuing user can trigger a resource information interface, set the total amount of resources to be issued and the number of resources to be issued on the resource information interface, and after the setting is completed, jump to the receiving user selection list. The network resource issuing user selects multiple users to receive the network resources from the user selection list and submits them to the server device through their terminal device. Based on this, the embodiment of the present application also provides a network resource processing method, see Figure 4a and Figure 4b .in, Figure 4a Describe from the terminal device side, Figure 4b For the convenience of distinction and description, in the following embodiments, the user who issues network resources is defined as the first user, and the terminal device used by the user to issue network resources is defined as the first terminal device.

[0229] Figure 4a A flowchart of a network resource processing method provided in an embodiment of the present application. The method is applicable to a terminal device. Figure 4a As shown, the method includes:

[0230] 401a. In response to the resource distribution operation, a resource information interface is displayed.

[0231] 402a. In response to input operations on the resource information interface, the total amount of resources to be issued, the number of copies of resources to be issued, and the prohibited number are obtained.

[0232] 403a. Send the total amount of resources to be issued, the number of resource copies to be issued and the prohibited number to the server device, so that the server device can generate a random resource number that does not contain the prohibited number and return it.

[0233] 404a. According to the random number of resources returned by the server device, provide the selected user with a corresponding number of resources.

[0234] Figure 4b A flowchart of a network resource processing method provided in an embodiment of the present application. The method is applicable to a server-side device. Figure 4b As shown, the method includes:

[0235] 401b. Receive the total amount of resources to be issued, the number of copies of resources to be issued, and the prohibited number sent by the terminal device.

[0236] 402b. Generate a random resource number that does not contain a prohibited number according to the total amount of resources to be issued and the number of resources to be issued.

[0237] 403b. Return the random resource number to the terminal device, so that the terminal device can provide the selected user with resources corresponding to the random resource number.

[0238] In the above Figure 4a and Figure 4b In the provided network resource processing method, the implementation form and connection method of the terminal device and the server device can refer to the relevant content in the above system embodiment, which will not be repeated here.

[0239] In the above Figure 4a and Figure 4b In the embodiment, the first user can distribute network resources through the first terminal device. Optionally, the first user can trigger the software icon corresponding to the network resource and open the homepage of the network resource software. Optionally, a resource distribution control, or a link or associated item corresponding to the distribution of network resources, etc. can be set on the homepage. For example, the drop-down menu of the homepage includes a resource distribution control. When the first user distributes network resources, the corresponding resource distribution control can be triggered. For the first terminal device, a resource information interface can be displayed in response to the resource distribution operation. Among them, the resource information interface includes: a resource amount input box and a resource number input box. The first user can input the total amount of resources he wants to distribute through the resource amount input box, and input the number of resource copies he wants to distribute through the resource number input box, that is, how many copies the first user wants to divide the total amount of resources he distributes. Correspondingly, the first terminal device obtains the total amount of resources to be distributed and the number of resource copies to be distributed in response to the input operation on the resource information interface, and sends the total amount of resources to be distributed and the number of resource copies to be distributed to the server device. Correspondingly, the server device receives the total amount of resources to be issued and the number of resource copies to be issued sent by the first terminal device, and generates a random resource number based on the total amount of resources to be issued and the number of resource copies to be issued, wherein the number of random resource numbers is equal to the number of resource copies to be issued. In this embodiment, each random resource number does not include a set prohibited number. Further, the server device returns the generated random resource number to the terminal device of the user selected by the first user. Correspondingly, each user selected by the first user receives the random resource through their respective terminal devices. Among them, the resource amount of each random resource corresponds to the random resource number generated by the server device.

[0240] In this embodiment, the server device can generate a random resource number that does not contain prohibited numbers according to the amount of resources to be issued and the number of resource copies to be issued set by the network resource issuing user, and return the random resource number to the terminal device. Correspondingly, the terminal device can issue the amount of resources to be issued to the user selected by the first user according to the random resource number. In this way, the number of resources received by each selected user does not contain prohibited numbers. In this embodiment, the prohibited numbers can be one or more. The specific value of the prohibited number is not limited, and it can be pre-set by the system, and / or flexibly set by the network resource issuing user according to local customs, personal preferences, etc. For example, according to local taboos, numbers such as "4" and "7" can be set as prohibited numbers. Among them, the specific implementation method of the network resource issuing user independently setting the prohibited numbers can refer to the relevant content in the above-mentioned system embodiment, which will not be repeated here.

[0241] Furthermore, in the case where the first user autonomously sets a prohibited number, the first terminal device can obtain the total amount of resources to be issued, the number of resource copies to be issued, and the prohibited number in response to the input operation on the resource information interface, and send the total amount of resources to be issued, the number of resource copies to be issued, and the prohibited number to the server device. Correspondingly, the server device receives the total amount of resources to be issued, the number of resource copies to be issued, and the prohibited number, and generates a random resource number based on the total amount of resources to be issued, the number of resource copies to be issued, and the prohibited number. The specific implementation method can refer to the relevant content of generating random numbers in the above system embodiment, which will not be repeated here.

[0242] Optionally, the terminal device and the server device may also cooperate with each other to ensure that the specified number of bits of the random resource number does not contain prohibited numbers, the numerical floating range of different random resource numbers belongs to the set numerical floating range, and the first user adjusts the total amount of resources to be issued according to the total amount of resources adjustment prompt information, etc. The specific implementation methods can all refer to the relevant content in the above-mentioned system embodiments, and will not be repeated here.

[0243] exist Figure 4a and Figure 4b In a corresponding embodiment, the server device and the terminal device cooperate with each other, and in the process of random resource distribution, a random resource number that does not contain the set banned numbers can be generated, thereby increasing the predictability of random red envelopes on the basis of randomness. In this way, the number of resources allocated to each user does not contain banned numbers, further optimizing the network resource processing method, improving the rationality of network resource processing, and helping to improve user experience and increase user stickiness.

[0244] The network resource processing method provided in the embodiment of the present application can not only make the number of resources received by the user not contain prohibited numbers, but also make the number of resources received by the user contain available numbers. In order to make the number of resources received by the user contain available numbers, the network resource issuing user can select the user who can receive the resources by using the same method as the above method for making the number of resources received by the user not contain prohibited numbers. Based on the selected users, the embodiment of the present application provides a corresponding network resource processing method, such as Figure 5a and 5b As shown. Among them, Figure 5a and Figure 5b The network resource processing method is exemplified from the perspectives of the terminal device and the server device respectively.

[0245] Figure 5a A flowchart of a network resource processing method provided in an embodiment of the present application. The method is applicable to a terminal device. Figure 5a As shown, the method includes:

[0246] 501a. In response to the resource distribution operation, a resource information interface is displayed.

[0247] 502a. In response to input operations on the resource information interface, the total amount of resources to be issued, the number of copies of resources to be issued, and the available number are obtained.

[0248] 503a. Send the total amount of resources to be issued, the number of resource copies to be issued and the available number to the server device, so that the server device can generate a random resource number that belongs to the available number and return it.

[0249] 504a. According to the random number of resources returned by the server device, a corresponding number of resources are provided to the selected user.

[0250] Figure 5b A flowchart of a network resource processing method provided in an embodiment of the present application. The method is applicable to a server-side device. Figure 5b As shown, the method includes:

[0251] 501b. Receive the total amount of resources to be issued, the number of copies of resources to be issued and the available number sent by the terminal device.

[0252] 502b. According to the total amount of resources to be issued, the number of resource copies to be issued and the available number, the number in the random resource number belongs to the set available number.

[0253] 503b. Return the random resource number to the terminal device, so that the terminal device can provide the selected user with resources corresponding to the random resource number.

[0254] In the above Figure 5a and Figure 5bIn the provided network resource processing method, the implementation form and connection method of the terminal device and the server device can refer to the relevant content in the above system embodiment, which will not be repeated here.

[0255] In the above Figure 5a and Figure 5b In the embodiment, the first user can distribute network resources through the first terminal device. Optionally, the first user can trigger the software icon corresponding to the network resource and open the homepage of the network resource software. Optionally, a resource distribution control, or a link or associated item corresponding to the distribution of network resources, etc. can be set on the homepage. For example, the drop-down menu of the homepage includes a resource distribution control. When the first user distributes network resources, the corresponding resource distribution control can be triggered. For the first terminal device, a resource information interface can be displayed in response to the resource distribution operation. Among them, the resource information interface includes: a resource amount input box and a resource number input box. The first user can input the total amount of resources he wants to distribute through the resource amount input box, and input the number of resource copies he wants to distribute through the resource number input box, that is, how many copies the first user wants to divide the total amount of resources he distributes. Correspondingly, the first terminal device obtains the total amount of resources to be distributed and the number of resource copies to be distributed in response to the input operation on the resource information interface, and sends the total amount of resources to be distributed and the number of resource copies to be distributed to the server device. Correspondingly, the server device receives the total amount of resources to be issued and the number of resource copies to be issued sent by the first terminal device, and generates a random resource number based on the total amount of resources to be issued and the number of resource copies to be issued, wherein the number of random resource numbers is equal to the number of resource copies to be issued. In this embodiment, each random resource number belongs to a set available number. Further, the server device returns the generated random resource number to the terminal device of the user selected by the first user. Correspondingly, each user selected by the first user receives the random resource through their respective terminal devices. Among them, the resource amount of each random resource corresponds to the random resource number generated by the server device.

[0256] In this embodiment, the server device can generate a random resource number belonging to an available number according to the amount of resources to be issued and the number of resource copies to be issued set by the network resource issuing user, and return the random resource number to the terminal device. Correspondingly, the terminal device can issue the amount of resources to be issued to the user selected by the first user according to the random resource number. In this way, the number of resources received by each selected user belongs to a prohibited number. In this embodiment, the available number can be one or more. The specific value of the available number is not limited, and it can be pre-set by the system, and / or flexibly set by the network resource issuing user according to local customs, personal preferences, etc. For example, when issuing resources, the user hopes that the number of resources received by each user who receives the resources contains one or more numbers with good meanings, such as the numbers "6", "8", "5", etc. Among them, the specific implementation method of the network resource issuing user independently setting the prohibited number can refer to the relevant content in the above-mentioned system embodiment, which will not be repeated here.

[0257] Furthermore, in the case where the first user independently sets the available numbers, the first terminal device can obtain the total amount of resources to be issued, the number of resource copies to be issued, and the available numbers in response to the input operation on the resource information interface, and send the total amount of resources to be issued, the number of resource copies to be issued, and the available numbers to the server device. Correspondingly, the server device receives the total amount of resources to be issued, the number of resource copies to be issued, and the available numbers, and generates a random resource number based on the total amount of resources to be issued, the number of resource copies to be issued, and the available numbers. The specific implementation method can refer to the relevant content in the above system embodiment, which will not be repeated here.

[0258] Optionally, the terminal device and the server device may also cooperate with each other to ensure that the numbers on the specified digits of the random resource number are available numbers, the numerical floating range of different random resource numbers belong to the set numerical floating range, and the first user adjusts the total amount of resources to be issued according to the total amount of resources adjustment prompt information, etc. The specific implementation methods can all refer to the relevant content of generating random numbers in the above system embodiments, which will not be repeated here.

[0259] exist Figure 5a and Figure 5b In the corresponding embodiment provided, the server device and the terminal device cooperate with each other, and in the process of random resource distribution, a random resource number belonging to the set available number can be generated, which increases the predictability of the random red envelope on the basis of randomness. In this way, the number of resources allocated to each user belongs to the available number, further optimizing the network resource processing method, improving the rationality of network resource processing, and helping to improve user experience and increase user stickiness.

[0260] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 201a to 204a can be device A; for another example, the execution subject of steps 201a and 202a can be device A, and the execution subject of step 204a can be device B; and so on.

[0261] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 301a, 302a, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0262] Figure 6 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 6 As shown, the terminal device includes: a memory 60a, a processor 60b, a communication component 60c and a display screen 60d.

[0263] The memory 60a is used to store computer programs. The display screen 60d displays a group chat interface.

[0264] The processor 60b is coupled to the memory, and is used to execute a computer program for: displaying a red envelope information interface on the display screen 60d in response to a red envelope trigger operation on the group chat interface; obtaining a total amount of red envelopes and a number of red envelopes N in response to an input operation on the red envelope information interface, where N ≥ 2 and is an integer; sending the total amount of red envelopes and the number of red envelopes N to the server device through the communication component 60c, so that the server device generates and returns a random red envelope based on the total amount of red envelopes and the number of red envelopes N; and displaying an icon of the random red envelope returned by the server device in the group chat interface for group users to collect; wherein the random red envelope does not contain a set prohibited number.

[0265] In an optional embodiment, the processor 60b is also used to: control the display screen 60d to display a number setting interface for the red envelope issuing user to set disabled numbers; obtain the disabled numbers entered by the red envelope issuing user in response to input operations on the number setting interface; and send the disabled numbers entered by the red envelope issuing user to the server device through the communication component 60c, so that the server device can generate a random red envelope that does not contain disabled numbers.

[0266] Furthermore, the processor 60b is also used to: respond to the input operation on the digital setting interface, obtain the available numbers entered by the red envelope issuing user; send the available numbers entered by the red envelope issuing user to the server device through the communication component 60c, so that the server device can generate a random red envelope that does not contain banned numbers based on the available numbers.

[0267] Optionally, the number setting interface includes a list of prohibited numbers and a list of available numbers. When the processor 60b obtains the prohibited numbers input by the red envelope issuing user, it is specifically used to: determine the prohibited numbers selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user in the prohibited numbers list. And when the processor 60b obtains the available numbers input by the red envelope issuing user, it is specifically used to: determine the available numbers selected by the red envelope issuing user in response to the selection operation of the red envelope issuing user in the available numbers list.

[0268] Optionally, the digital setting interface and the red envelope information interface are the same interface; or, the digital setting interface is a floating window on the red envelope information interface; or, the digital setting interface is the next interface of the red envelope information interface.

[0269] Alternatively, in some optional embodiments, digital presetting is disabled in the server device.

[0270] In another optional embodiment, the processor 60b is also used to: respond to the input operation on the digital setting interface, obtain the specified digits that cannot contain prohibited digits input by the red envelope distribution user; send the specified digits to the server device through the communication component 60c, so that the server device can generate a random red envelope that does not contain prohibited digits in the specified digits.

[0271] In another optional embodiment, the processor 60b is also used to: respond to the input operation on the digital setting interface, obtain the random red envelope floating range input by the red envelope issuing user; send the random red envelope floating range to the server device through the communication component 60c, so that the server device can generate random red envelopes with numerical values ​​floating between different random red envelopes within the random red envelope floating range.

[0272] In another optional embodiment, before receiving the random red envelope returned by the server device through the communication component 60c, the processor 60b is also used to: receive the amount adjustment prompt information sent by the server device through the communication component 60c, display the amount adjustment prompt information to prompt the red envelope issuing user to adjust the red envelope amount; in response to the red envelope issuing user's operation of adjusting the red envelope amount, obtain the red envelope adjustment amount, and send it to the server device, so that the server device can generate a random red envelope that does not contain banned numbers according to the red envelope adjustment amount.

[0273] Furthermore, before responding to the red envelope issuing user's operation of adjusting the red envelope amount, the processor 60b is also used to: receive the adjustment direction and adjustment range of the red envelope amount sent by the server device through the communication component 60c; and display the adjustment direction and adjustment range of the red envelope amount on the display screen 60d to guide the red envelope issuing user to adjust the red envelope amount.

[0274] In some embodiments, Figure 6 As shown, the terminal device also includes: a power supply component 60e, an audio component 60f and other components. Figure 6 Only some components are shown schematically, which does not mean that the terminal equipment only includes Figure 6 Components shown.

[0275] The terminal device provided in this embodiment can cooperate with the server device. During the random red envelope distribution process, it can generate random red envelopes that do not contain set banned numbers. The predictability of the random red envelopes is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0276] Figure 7 This is a schematic diagram of the structure of a server device provided in an embodiment of the present application. Figure 7 As shown, the server device includes: a memory 70a, a processor 70b and a communication component 70c.

[0277] The memory 70a is used to store computer programs.

[0278] The processor 70b is coupled to the memory 70a, and is used to execute a computer program for: receiving the total amount of red envelopes and the number of red envelopes N sent by the terminal device through the communication component 70c, where N≥2 and is an integer; generating random red envelopes according to the total amount of red envelopes and the number of red envelopes N, and the random red envelopes do not contain set prohibited numbers; returning the random red envelopes to the terminal device through the communication component 70c, so that the terminal device can display the random red envelopes in the group chat interface for group users to collect.

[0279] In an optional embodiment, when the processor 70b generates a random red envelope based on the total amount of the red envelopes and the number of red envelopes N, it is specifically used to: generate (N-1) random numbers that obey a specified distribution based on the total amount of the red envelopes and the number of red envelopes N; for each random number, determine whether the random number contains a set disabled number; if the random number contains a set disabled number, replace the disabled number contained in the random number with a non-disabled number, and use the random number after replacing the disabled number as the amount of a random red envelope; if the random number does not contain the set disabled number, directly use the random number as the amount of a random red envelope; further, obtain the amount of the last random red envelope based on the difference between the total amount of the red envelopes and the total amount of the (N-1) random red envelopes obtained based on the (N-1) random numbers.

[0280] Furthermore, when the processor 70b generates (N-1) random numbers that obey the specified distribution, it is specifically used to: when the number of remaining red envelopes is greater than 1, each time according to the set MAC address, the current timestamp and the function corresponding to the specified distribution, generate a random seed number, and combine the random seed number, the remaining red envelope amount and the remaining number of red envelopes to generate a random number. Among them, the random seed number is a floating point data greater than or equal to 0 and less than 1; the value range of the random number is [a, b], a is the minimum unit value of the red envelope, and b is the difference between the current remaining total amount of the red envelope and the product of (the current remaining number of red envelopes N-1) and the minimum unit value of the red envelope.

[0281] Furthermore, if the random number contains a set disabled number and is the random number required to generate the last random red envelope, the processor 70b, before replacing the disabled number contained in the random number with a non-disabled number, is also used to: send an amount adjustment prompt message to the terminal device through the communication component 70c, so that the terminal device prompts the red envelope issuing user to adjust the total amount of the red envelope; receive the adjusted total amount of the red envelope returned by the terminal device through the communication component 70c, and replace the disabled number contained in the random number with a non-disabled number based on the adjusted total amount of the red envelope.

[0282] In another optional embodiment, when the processor 70b obtains the amount of the last random red envelope, it is specifically used to: if the above-mentioned difference contains disabled numbers, send an amount adjustment prompt message to the terminal device, so that the terminal device prompts the red envelope issuing user to adjust the total amount of the red envelope; receive the red envelope adjustment amount provided by the red envelope issuing user returned by the terminal device, and according to the red envelope adjustment amount, replace the disabled numbers contained in the difference with non-disabled numbers as the amount of the last random red envelope.

[0283] Furthermore, the processor 70b is also used to: determine the adjustment direction and adjustment range of the red envelope amount required to replace the disabled numbers contained in the above difference with non-disabled numbers; and send the adjustment direction and adjustment range of the red envelope amount to the terminal device through the communication component 70c, so that the terminal device can guide the red envelope issuing user to adjust the red envelope amount.

[0284] In another optional embodiment, before generating a random red envelope based on the total amount of the red envelope and the number of red envelopes N, the processor 70b is also used to: receive a disabled number set by the red envelope issuing user and sent by the terminal device through the communication component 70c.

[0285] In this embodiment, when the processor 70b replaces the disabled numbers contained in the random numbers with non-disabled numbers, it is specifically used to: select target available numbers from set available numbers, the set available numbers are different from the set disabled numbers; and replace the disabled numbers contained in the random numbers with target available numbers.

[0286] Furthermore, when the processor 70b selects the target available number from the set available numbers, it is specifically used to: calculate the difference between each set available number and the prohibited number included in the random number; and select the available number corresponding to the minimum difference as the target available number.

[0287] Optionally, before selecting the target available numbers from the set available numbers, the processor 70b is further used to: receive the available numbers set by the red envelope issuing user and sent by the terminal device through the communication component 70c.

[0288] Optionally, the processor 70b is further configured to: receive, via the communication component 70c, a designated number of digits set by the red envelope issuing user and not including prohibited digits, which is sent by the terminal device. Accordingly, when the processor 70b determines whether the random number includes the set prohibited digits, it is specifically configured to: determine whether the digits at the designated digits in the random number belong to the set prohibited digits, and if the determination result is yes, determine that the random number includes the set prohibited digits.

[0289] Optionally, the processor 70b is further configured to: receive, via the communication component 70c, a random red envelope floating range set by the red envelope issuing user and sent by the terminal device. Accordingly, when the processor 70b generates a random red envelope according to the total amount of the red envelopes and the number of red envelopes N, it is specifically configured to: generate a random red envelope according to the total amount of the red envelopes, the number of red envelopes N and the random red envelope floating range, and the values ​​between different random red envelopes float within the random red envelope floating range.

[0290] In some embodiments, Figure 7 As shown, the terminal device also includes: a display screen 70d, a power supply component 70e, an audio component 70f and other components. Figure 7 Only some components are shown schematically, which does not mean that the terminal equipment only includes Figure 7 Components shown.

[0291] The server device provided in this embodiment can cooperate with the terminal device. During the random red envelope distribution process, it can generate random red envelopes that do not contain set banned numbers. The predictability of random red envelopes is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0292] Figure 8 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 8 As shown, the terminal device includes: a memory 80a, a processor 80b, a communication component 80c and a display screen 80d.

[0293] The memory 80a is used to store computer programs. The display screen 80d displays a group chat interface.

[0294] The processor 80b is coupled to the memory 80a, and is used to execute a computer program for: displaying a red envelope information interface on the display screen 80d in response to a red envelope trigger operation on the group chat interface; obtaining a total amount of red envelopes and a number of red envelopes N in response to an input operation on the red envelope information interface, where N ≥ 2 and is an integer; sending the total amount of red envelopes and the number of red envelopes N to a server device through a communication component 80c, so that the server device generates and returns a random red envelope based on the total amount of red envelopes and the number of red envelopes N; displaying the random red envelopes in the group chat interface for group users to collect; wherein the numbers in the random red envelopes belong to the set available numbers.

[0295] In an optional embodiment, the processor 80b is also used to: control the display screen 80c to display a number setting interface for the red envelope issuing user to set the available numbers; obtain the available numbers entered by the red envelope issuing user in response to the input operation on the number setting interface; send the available numbers entered by the red envelope issuing user to the server device through the communication component 80c, so that the server device can generate a random red envelope whose numbers belong to the set available numbers.

[0296] In another optional embodiment, the processor 80b is also used to: respond to input operations on the digital setting interface, obtain the specified digits of available numbers input by the user for red envelope distribution; send the specified digits to the server device through the communication component 80c, so that the server device can generate a random red envelope containing available numbers on the specified digits.

[0297] In some embodiments, Figure 8 As shown, the terminal device also includes other components such as a power component 80e and an audio component 80f. Figure 8Only some components are shown schematically, which does not mean that the terminal equipment only includes Figure 8 Components shown.

[0298] The terminal device and the server device provided in this embodiment cooperate with each other. During the random red envelope distribution process, random red envelopes with available numbers can be generated. The predictability of the random red envelopes is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0299] Fig. 9 This is a schematic diagram of the structure of a server device provided in an embodiment of the present application. Fig. 9 As shown, the server device includes: a memory 90a, a processor 90b and a communication component 90c.

[0300] The memory 90a is used to store computer programs.

[0301] The processor 90b is coupled to the memory 90a, and is used to execute a computer program for: receiving the total amount of red envelopes and the number of red envelopes N sent by the terminal device through the communication component 90c; generating random red envelopes according to the total amount of red envelopes and the number of red envelopes N, and the numbers in the random red envelopes belong to the set available numbers; returning the random red envelopes to the terminal device through the communication component 90c, so that the terminal device can display the random red envelopes in the group chat interface for group users to collect.

[0302] In an optional embodiment, when the processor 90b generates random red envelopes based on the total amount of the red envelopes and the number of red envelopes N, it is specifically used to: generate (N-1) random numbers that obey a specified distribution based on the total amount of the red envelopes and the number of red envelopes N; for each random number, determine whether the random number contains other numbers, where other numbers refer to numbers different from set available numbers; if the random number contains other numbers, replace the other numbers contained in the random number with set available numbers, and use the random number after replacing the other numbers as the amount of a random red envelope; if the random number does not contain other numbers, use the random number as the amount of a random red envelope; further, obtain the amount of the last random red envelope based on the difference between the total amount of the red envelopes and the total amount of the (N-1) random red envelopes obtained based on the (N-1) random numbers.

[0303] Furthermore, the processor 90b is further configured to: receive, via the communication component 90c, the specified digits of the red envelope distribution user that are required to contain available digits and sent by the terminal device. Accordingly, when the processor 90b determines whether the random number contains other digits, it is specifically configured to: determine whether the digits on the specified digits of the random number belong to the set available digits; if the determination result is no, it is determined that the random number contains other digits.

[0304] Optionally, before generating a random red envelope according to the total amount of the red envelope and the number of red envelopes N, the processor 90b is also used to: receive an available number set by the red envelope issuing user and sent by the terminal device through the communication component 90c.

[0305] In some embodiments, Fig. 9 As shown, the terminal device also includes: a display screen 90d, a power supply component 90e, an audio component 90f and other components. Fig. 9 Only some components are shown schematically, which does not mean that the terminal equipment only includes Fig. 9 Components shown.

[0306] The server device and terminal device provided in this embodiment cooperate with each other. During the random red envelope distribution process, random red envelopes with available numbers can be generated. The predictability of random red envelopes is increased on the basis of randomness. It is not only interesting, but also takes into account the user's experience, improves the rationality and flexibility of red envelope distribution, and helps to improve user experience and increase user stickiness.

[0307] In the above embodiments, the memory may be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc.

[0308] The memory may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

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

[0310] In each of the above embodiments, the display screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0311] In the above embodiments, the power supply assembly provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.

[0312] In the above embodiments, the audio component may be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0313] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0314] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0315] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0316] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0317] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0318] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0319] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0320] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0321] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A network red packet distribution method, applicable to a terminal device, characterized in that: The method comprises: In response to a red envelope triggering operation on the group chat interface, a red envelope information interface is displayed; In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2; The total amount of the red envelopes and the number of red envelopes N are sent to a server device, so that the server device obtains the amounts of N-1 random red envelopes according to the total amount of the red envelopes and the number of red envelopes N, obtains the amount of the last random red envelope according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, and returns the random red envelope, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining amount of the red envelopes and the current remaining number of red envelopes, if the random number contains a set prohibited number, the prohibited number contained in the random number is replaced with a non-prohibited number and used as the amount of a random red envelope, if the random number does not contain a set prohibited number, the random number is directly used as the amount of a random red envelope; The icon of the random red envelope returned by the server device is displayed in the group chat interface for group users to collect; wherein the random red envelope does not contain set prohibited numbers.

2. The method according to claim 1, characterized in that Also includes: Display the number setting interface for the red envelope distribution user to set the banned numbers; In response to an input operation on the number setting interface, obtaining a prohibited number input by the red envelope issuing user; The prohibited numbers input by the red envelope issuing user are sent to the server device so that the server device can generate a random red envelope that does not contain the prohibited numbers.

3. The method according to claim 2, characterized in that Also includes: In response to an input operation on the number setting interface, obtaining the available number input by the red envelope distribution user; The available numbers input by the red envelope issuing user are sent to the server device, so that the server device can generate a random red envelope that does not contain the prohibited numbers based on the available numbers.

4. The method according to claim 3, characterized in that The digital setting interface includes a list of disabled numbers and a list of available numbers; In response to an input operation on the number setting interface, obtaining the prohibited numbers input by the red envelope issuing user includes: in response to a selection operation of the red envelope issuing user in the prohibited number list, determining the prohibited numbers selected by the red envelope issuing user; In response to an input operation on the number setting interface, obtaining the available numbers input by the red envelope issuing user includes: in response to a selection operation of the red envelope issuing user in the available number list, determining the available numbers selected by the red envelope issuing user.

5. The method according to claim 2, characterized in that: Also includes: In response to an input operation on the digital setting interface, obtaining a designated digit that cannot contain a prohibited digit and is input by the red envelope issuing user; The designated digits are sent to the server device so that the server device generates a random red packet that does not contain the prohibited digits on the designated digits.

6. The method according to claim 2, characterized in that Also includes: In response to an input operation on the digital setting interface, obtaining a random red envelope floating range input by the red envelope issuing user; The random red envelope floating range is sent to the server device so that the server device can generate random red envelopes whose numerical values ​​between different random red envelopes float within the random red envelope floating range.

7. The method according to any one of claims 2 to 6, characterized in that: The digital setting interface and the red envelope information interface are the same interface; or, the digital setting interface is a floating window on the red envelope information interface; or, the digital setting interface is the next interface of the red envelope information interface.

8. The method according to claim 1, characterized in that The prohibited number is preset in the server device.

9. The method according to any one of claims 1 to 6 and 8, characterized in that Before receiving the random red packet returned by the server device, the method further includes: Receiving the amount adjustment prompt information sent by the server device, and displaying the amount adjustment prompt information to prompt the red envelope issuing user to adjust the red envelope amount; In response to the red envelope issuing user's operation of adjusting the red envelope amount, the red envelope adjustment amount is obtained and sent to the server device, so that the server device can generate a random red envelope that does not contain the prohibited number according to the red envelope adjustment amount.

10. The method according to claim 9, characterized in that Before responding to the red envelope issuing user's operation of adjusting the red envelope amount, the method further includes: Receive the adjustment direction and adjustment range of the red envelope amount sent by the server device; The adjustment direction and adjustment range of the red envelope amount are displayed to guide the red envelope issuing user to adjust the red envelope amount.

11. A network red packet distribution method, applicable to a server device, characterized in that: The method comprises: The total amount of the red envelopes and the number of red envelopes N sent by the receiving terminal device, where N is an integer greater than or equal to 2; The amounts of N-1 random red envelopes are obtained according to the total amount of the red envelopes and the number of red envelopes N, and the amount of the last random red envelope is obtained according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining red envelope amount and the current remaining number of red envelopes, if the random number contains a set prohibited number, the prohibited number contained in the random number is replaced with a non-prohibited number and used as the amount of a random red envelope, and if the random number does not contain a set prohibited number, the random number is directly used as the amount of a random red envelope; The random red envelope is returned to the terminal device, so that the terminal device displays the random red envelope in the group chat interface for group users to collect; wherein the random red envelope does not contain a set prohibited number.

12. The method according to claim 11, characterized in that Generate a random number that follows a specified distribution based on the current remaining red envelope amount and the current remaining red envelope number, including: Generate a random seed number according to the set MAC address, current timestamp and the function corresponding to the specified distribution, and generate a random number by combining the random seed number, the remaining red envelope amount and the remaining number of red envelopes; Among them, the random seed number is a floating point data greater than or equal to 0 and less than 1; the value range of the random number is [a, b], a is the minimum unit value of the red envelope, b=Q-(M-1)*a, Q is the current remaining red envelope amount, and M is the current remaining number of red envelopes.

13. The method according to claim 11, characterized in that The amount of the last random red envelope is obtained according to the difference between the total amount of the red envelope and the total amount of N-1 random red envelopes obtained according to N-1 random numbers, including: If the difference includes a prohibited number, sending an amount adjustment prompt message to the terminal device so that the terminal device can prompt the red envelope issuing user to adjust the red envelope amount; Receive the red envelope adjustment amount provided by the red envelope issuing user returned by the terminal device, and based on the red envelope adjustment amount, replace the disabled numbers contained in the difference with non-disabled numbers as the amount of the last random red envelope.

14. The method according to claim 13, characterized in that Also includes: Determine the direction and magnitude of adjustment of the red envelope amount required to replace the prohibited numbers contained in the difference with non-prohibited numbers; The adjustment direction and adjustment range of the red envelope amount are sent to the terminal device so that the terminal device can guide the red envelope issuing user to adjust the red envelope amount.

15. The method according to claim 11, characterized in that Before generating a random red envelope according to the total amount of the red envelope and the number of red envelopes N, the method further includes: Receive the prohibited numbers set by the red envelope issuing user and sent by the terminal device.

16. The method according to any one of claims 11 to 15, characterized in that: The prohibited numbers contained in the random number are replaced with non-prohibited numbers, including: selecting target available numbers from set available numbers, the set available numbers being different from set prohibited numbers; The banned numbers included in the random numbers are replaced with the target available numbers.

17. The method according to claim 16, characterized in that Select the target available number from the set available numbers, including: Calculate the difference between each set available number and the prohibited number included in the random number; The available number corresponding to the minimum difference is selected as the target available number.

18. The method according to claim 17, characterized in that Before selecting the target available numbers from the set available numbers, it also includes: Receive the available numbers set by the red envelope issuing user and sent by the terminal device.

19. The method according to any one of claims 11 to 15, characterized in that: Also includes: Receiving a specified number of digits sent by the terminal device and set by the red envelope issuing user and not including prohibited digits; Then, judging whether the random number includes a set prohibited number includes: judging whether the number at the specified digit in the random number belongs to the set prohibited number; if the judgment result is yes, determining that the random number includes the set prohibited number.

20. The method according to any one of claims 11 to 15, characterized in that: Also includes: Receiving a random red envelope floating range set by a red envelope issuing user and sent by the terminal device; The method of generating a random red envelope according to the total amount of the red envelope and the number of red envelopes N includes: A random red envelope is generated according to the total amount of the red envelope, the number of red envelopes N and the floating range of the random red envelope, and the numerical values ​​between different random red envelopes float within the floating range of the random red envelope.

21. A network red packet distribution method, applicable to a terminal device, characterized in that: The method comprises: In response to a red envelope triggering operation on the group chat interface, a red envelope information interface is displayed; In response to an input operation on the red envelope information interface, obtaining a total amount of the red envelopes and a number N of the red envelopes, where N is an integer greater than or equal to 2; The total amount of the red envelopes and the number of red envelopes N are sent to a server device, so that the server device obtains the amounts of N-1 random red envelopes according to the total amount of the red envelopes and the number of red envelopes N, obtains the amount of the last random red envelope according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, and returns the random red envelope, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining amount of the red envelopes and the current remaining number of red envelopes, if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with the set available numbers and used as the amount of a random red envelope, if the random number does not contain other numbers different from the set available numbers, the random number is directly used as the amount of a random red envelope; The random red envelope is displayed in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

22. The method according to claim 21, characterized in that Also includes: Display the number setting interface for the red envelope distribution user to set the available numbers; In response to an input operation on the number setting interface, obtaining the available number input by the red envelope distribution user; The available numbers input by the red envelope issuing user are sent to the server device so that the server device can generate a random red envelope whose numbers belong to the set available numbers.

23. The method according to claim 22, characterized in that Also includes: In response to an input operation on the digital setting interface, obtaining the requirements input by the user for red envelope distribution including the specified digits of the available numbers; The designated digit is sent to the server device so that the server device generates a random red packet containing the available number on the designated digit.

24. A network red packet distribution method, applicable to a server device, characterized in that: The method comprises: The total amount of the red envelopes and the number of red envelopes N sent by the receiving terminal device, where N is an integer greater than or equal to 2; The amounts of N-1 random red envelopes are obtained according to the total amount of the red envelopes and the number of red envelopes N, and the amount of the last random red envelope is obtained according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining red envelope amount and the current remaining number of red envelopes, if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with the set available numbers as the amount of a random red envelope, and if the random number does not contain other numbers different from the set available numbers, the random number is directly used as the amount of a random red envelope; The random red envelope is returned to the terminal device, so that the terminal device displays the random red envelope in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

25. The method according to claim 24, characterized in that Generate a random number that follows a specified distribution based on the current remaining red envelope amount and the current remaining red envelope number, including: Generate a random seed number according to the set MAC address, current timestamp and the function corresponding to the specified distribution, and generate a random number by combining the random seed number, the remaining red envelope amount and the remaining number of red envelopes; Among them, the random seed number is a floating point data greater than or equal to 0 and less than 1; the value range of the random number is [a, b], a is the minimum unit value of the red envelope, b=Q-(M-1)*a, Q is the current remaining red envelope amount, and M is the current remaining number of red envelopes.

26. The method according to claim 25, characterized in that Also includes: receiving a request sent by the terminal device that the specified digits of the available numbers set by the red envelope issuing user are included; Then, determining whether the random number contains other numbers includes: determining whether the number at the designated digit of the random number belongs to a set available number; If the judgment result is no, it is determined that the random number includes other numbers.

27. The method according to any one of claims 24 to 26, characterized in that: Before generating a random red envelope according to the total amount of the red envelope and the number of red envelopes N, the method further includes: Receive the available numbers set by the red envelope issuing user and sent by the terminal device.

28. A network resource processing method, applicable to a terminal device, characterized in that: The method comprises: In response to the resource release operation, a resource information interface is displayed; In response to an input operation on the resource information interface, the total amount of resources to be issued, the number of copies of resources to be issued N, and the prohibited number are obtained, wherein N is an integer greater than or equal to 2; The total amount of resources to be issued, the number of resources to be issued N and the prohibited number are sent to the server device, so that the server device can obtain N-1 random resource numbers according to the total amount of resources to be issued, the number of resources to be issued N and the prohibited number, and obtain the last random resource number according to the difference between the total amount of resources to be issued and the N-1 random resource numbers and return it, wherein, in the process of obtaining each random resource number in the N-1 random resource numbers, a random number obeying the specified distribution is generated according to the current remaining amount of resources to be issued and the current remaining number of resources to be issued, if the random number contains a set prohibited number, the prohibited number contained in the random number is replaced with a non-prohibited number as a random resource number, and if the random number does not contain the set prohibited number, the random number is directly used as a random resource number; According to the random number of resources returned by the server device, a corresponding number of resources are provided to the selected user.

29. A network resource processing method, applicable to a server device, characterized in that: The method comprises: Receive the total amount of resources to be released, the number of copies of resources to be released and the prohibited number sent by the terminal device; Obtain N-1 random resource numbers according to the total amount of resources to be issued, the number of resources to be issued N and the prohibited number, and obtain the last random resource number according to the difference between the total amount of resources to be issued and the N-1 random resource numbers, wherein, in the process of obtaining each random resource number in the N-1 random resource numbers, generate a random number that obeys a specified distribution according to the current remaining amount of resources to be issued and the current remaining number of resources to be issued, if the random number contains a set prohibited number, replace the prohibited number contained in the random number with a non-prohibited number as a random resource number, if the random number does not contain the set prohibited number, directly use the random number as a random resource number, wherein N is an integer greater than or equal to 2; The random resource number is returned to the terminal device so that the terminal device can provide the selected user with a quantity of resources corresponding to the random resource number.

30. A network resource processing method, applicable to a terminal device, characterized in that: The method comprises: In response to the resource release operation, a resource information interface is displayed; In response to the input operation on the resource information interface, the total amount of resources to be issued, the number of copies of resources to be issued N and the available number are obtained, wherein N is an integer greater than or equal to 2; The total amount of resources to be issued, the number of resources to be issued N and the available numbers are sent to the server device, so that the server device can obtain N-1 random resource numbers according to the total amount of resources to be issued, the number of resources to be issued N and the available numbers, and obtain the last random resource number according to the difference between the total amount of resources to be issued and the N-1 random resource numbers and return it, wherein, in the process of obtaining each random resource number in the N-1 random resource numbers, a random number obeying the specified distribution is generated according to the current remaining amount of resources to be issued and the current remaining number of resources to be issued, if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with the set available numbers as one random resource number; if the random number does not contain other numbers different from the set available numbers, the random number is directly used as one random resource number; According to the random number of resources returned by the server device, a corresponding number of resources are provided to the selected user.

31. A network resource processing method, applicable to a server device, characterized in that: The method comprises: Receive the total amount of resources to be issued, the number of resource copies N to be issued and the available number sent by the terminal device, where N is an integer greater than or equal to 2; According to the total amount of resources to be issued, the number of resources to be issued N and the available numbers, N-1 random resource numbers are obtained, and according to the difference between the total amount of resources to be issued and the N-1 random resource numbers, the last random resource number is obtained, wherein, in the process of obtaining each random resource number in the N-1 random resource numbers, a random number obeying a specified distribution is generated according to the current remaining amount of resources to be issued and the current remaining number of resources to be issued, if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with the set available numbers as one random resource number; if the random number does not contain other numbers different from the set available numbers, the random number is directly used as one random resource number; The random resource number is returned to the terminal device so that the terminal device can provide the selected user with a quantity of resources corresponding to the random resource number.

32. A terminal device, characterized in that: include: Memory, processors, communication components and displays; Wherein, the memory is used to store computer programs; the display screen displays a group chat interface; The processor is coupled to the memory and is configured to execute the computer program for: In response to a red envelope triggering operation on the group chat interface, displaying a red envelope information interface on the display screen; In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2; The total amount of the red envelopes and the number of red envelopes N are sent to the server device through the communication component, so that the server device obtains the amounts of N-1 random red envelopes according to the total amount of the red envelopes and the number of red envelopes N, obtains the amount of the last random red envelope according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, and returns the random red envelope, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining red envelope amount and the current remaining number of red envelopes, if the random number contains a set prohibited number, the prohibited number contained in the random number is replaced with a non-prohibited number and used as the amount of a random red envelope, if the random number does not contain a set prohibited number, the random number is directly used as the amount of a random red envelope; The icon of the random red envelope returned by the server device is displayed in the group chat interface for group users to collect; wherein the random red envelope does not contain set prohibited numbers.

33. A server device, characterized in that: include: memory, processor, and communications components; The memory is used to store computer programs; The processor is coupled to the memory and is configured to execute the computer program for: Receiving, through the communication component, the total amount of the red envelopes and the number N of the red envelopes sent by the terminal device, where N is an integer greater than or equal to 2; The amounts of N-1 random red envelopes are obtained according to the total amount of the red envelopes and the number of red envelopes N, and the amount of the last random red envelope is obtained according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining red envelope amount and the current remaining number of red envelopes, if the random number contains a set prohibited number, the prohibited number contained in the random number is replaced with a non-prohibited number and used as the amount of a random red envelope, and if the random number does not contain a set prohibited number, the random number is directly used as the amount of a random red envelope; The random red envelope is returned to the terminal device through the communication component, so that the terminal device displays the random red envelope in the group chat interface for group users to collect; wherein the random red envelope does not contain set prohibited numbers.

34. A terminal device, characterized in that: include: Memory, processors, communication components and displays; The memory is used to store computer programs; the display screen displays a group chat interface; The processor is coupled to the memory and is configured to execute the computer program for: In response to a red envelope triggering operation on the group chat interface, displaying a red envelope information interface on the display screen; In response to an input operation on the red envelope information interface, obtaining a total amount of red envelopes and a number N of red envelopes, where N is an integer greater than or equal to 2; The total amount of the red envelopes and the number of red envelopes N are sent to the server device through the communication component, so that the server device obtains the amounts of N-1 random red envelopes according to the total amount of the red envelopes and the number of red envelopes N, obtains the amount of the last random red envelope according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, and returns the random red envelope, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining red envelope amount and the current remaining number of red envelopes, if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with the set available numbers and used as the amount of a random red envelope, if the random number does not contain other numbers different from the set available numbers, the random number is directly used as the amount of a random red envelope; The random red envelope is displayed in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

35. A server device, characterized in that: include: memory, processor, and communications components; The memory is used to store computer programs; The processor is coupled to the memory and is configured to execute the computer program for: Receiving, through the communication component, the total amount of the red envelopes and the number N of the red envelopes sent by the terminal device, where N is an integer greater than or equal to 2; The amounts of N-1 random red envelopes are obtained according to the total amount of the red envelopes and the number of red envelopes N, and the amount of the last random red envelope is obtained according to the difference between the total amount of the red envelopes and the total amount of the N-1 random red envelopes, wherein, in the process of obtaining each random red envelope in the N-1 random red envelopes, a random number obeying a specified distribution is generated according to the current remaining red envelope amount and the current remaining number of red envelopes, if the random number contains other numbers different from the set available numbers, the other numbers contained in the random number are replaced with the set available numbers as the amount of a random red envelope, and if the random number does not contain other numbers different from the set available numbers, the random number is directly used as the amount of a random red envelope; The random red envelope is returned to the terminal device through the communication component, so that the terminal device displays the random red envelope in the group chat interface for group users to collect; wherein the numbers in the random red envelope belong to the set available numbers.

36. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the method according to any one of claims 1 to 9.

37. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to perform the steps in the method according to any one of claims 10 to 20.

38. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to perform the steps in the method according to any one of claims 21 to 23.

39. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to perform the steps in the method of any one of claims 24-27.

Citation Information

Patent Citations

  • Red envelope control method and device, computer device and computer readable storage medium

    CN107330680A

  • Object distribution method and devices

    CN108462658A