CN108805438A - Method and apparatus for distributing resource, getting resource - Google Patents
Method and apparatus for distributing resource, getting resource Download PDFInfo
- Publication number
- CN108805438A CN108805438A CN201810569769.3A CN201810569769A CN108805438A CN 108805438 A CN108805438 A CN 108805438A CN 201810569769 A CN201810569769 A CN 201810569769A CN 108805438 A CN108805438 A CN 108805438A
- Authority
- CN
- China
- Prior art keywords
- resource
- user
- group
- new
- amount
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 87
- 238000004590 computer program Methods 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims 3
- 239000004744 fabric Substances 0.000 claims 1
- 238000013468 resource allocation Methods 0.000 abstract description 22
- 101100059888 Caenorhabditis elegans chat-1 gene Proteins 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 239000000835 fiber Substances 0.000 description 2
- 230000009191 jumping Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 239000004020 conductor Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06312—Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Accounting & Taxation (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Finance (AREA)
- Game Theory and Decision Science (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请实施例公开了用于分配资源、领取资源的方法和设备。用于分配资源的方法的一具体实施方式包括:向属于群聊的多个用户发布属于预设类型的群资源;接收属于群聊的至少一个用户发送的对群资源进行领取的请求,并为至少一个用户中的每个用户生成领取数额;若存在满足预设条件的领取数额,基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,并基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。该实施方式提供了一种新的资源分配方式,使资源分配方式更加丰富多样。并且,该资源分配方式能够在资源分配过程中多次生成新的群资源进行发布。
The embodiment of the present application discloses methods and devices for allocating resources and receiving resources. A specific implementation of the method for allocating resources includes: publishing group resources of a preset type to multiple users belonging to the group chat; receiving a request for claiming the group resources sent by at least one user belonging to the group chat, and providing Each user of at least one user generates a claim amount; if there is a claim amount that meets the preset conditions, based on a part of the amount of the claim amount that meets the preset conditions, allocate resources to the user corresponding to the claim amount that meets the preset conditions, and Based on the remaining amount in the receiving amount that meets the preset condition, a new group resource is generated and sent to multiple users belonging to the group chat. This embodiment provides a new resource allocation method, making the resource allocation method more diverse. Moreover, this resource allocation method can generate new group resources multiple times for release during the resource allocation process.
Description
技术领域technical field
本申请实施例涉及计算机技术领域,具体涉及用于分配资源、领取资源的方法和设备。The embodiments of the present application relate to the field of computer technology, and in particular to methods and devices for allocating resources and receiving resources.
背景技术Background technique
即时通讯(Instant Message,IM)是目前互联网上最为流行的通讯方式,能够实现即时发送和接收消息。随着互联网的飞速发展,各种各样的即时通讯应用也层出不穷。大多数即时通讯应用都集成有资源类(如红包类)程序,以实现在即时通讯应用中发布资源(如红包)。通常,在即时通讯应用中发布的资源可以包括单个资源(如单个红包)和群资源(如拼手气红包)。Instant Messaging (Instant Message, IM) is currently the most popular communication method on the Internet, which can realize instant sending and receiving of messages. With the rapid development of the Internet, various instant messaging applications emerge in endlessly. Most instant messaging applications are integrated with resources (such as red envelopes) programs, so as to release resources (such as red envelopes) in the instant messaging applications. Generally, the resources published in the instant messaging application may include a single resource (such as a single red packet) and a group resource (such as a lucky red packet).
目前,若在即时通讯应用的群聊中发布群资源,属于群聊的用户可以请求领取群资源中的资源。现有的资源分配方式通常会按照用户发起请求的顺序,依次为用户分配资源,直至群资源全部被分配为止。Currently, if a group resource is published in a group chat of an instant messaging application, users belonging to the group chat can request to receive the resource in the group resource. Existing resource allocation methods usually allocate resources to users sequentially according to the order in which users initiate requests until all group resources are allocated.
发明内容Contents of the invention
本申请实施例提出了用于分配资源、领取资源的方法和设备。The embodiments of the present application propose methods and devices for allocating resources and receiving resources.
第一方面,本申请的一些实施例提供了一种用于分配资源的方法,应用于网络设备,包括:向属于群聊的多个用户发布属于预设类型的群资源;接收属于群聊的至少一个用户发送的对群资源进行领取的请求,并为至少一个用户中的每个用户生成领取数额,其中,至少一个用户的领取数额的总和等于群资源的数额;若存在满足预设条件的领取数额,基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,并基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。In the first aspect, some embodiments of the present application provide a method for allocating resources, which is applied to a network device, including: publishing group resources of a preset type to multiple users belonging to the group chat; receiving group chat resources At least one user sends a request to claim group resources, and generates a claim amount for each of the at least one user, wherein the sum of at least one user's claim amount is equal to the amount of group resources; if there is a group resource that meets the preset conditions The received amount, based on a part of the received amount that meets the preset conditions, allocates resources to the users corresponding to the received amount that meets the preset conditions, and generates new group resources based on the remaining amount of the received amount that meets the preset conditions. Send to multiple users belonging to a group chat.
第二方面,本申请的一些实施例提供了一种用于领取资源的方法,应用于终端设备,包括:接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源;若检测到用户对群资源执行领取操作,向网络设备发送对群资源进行领取的请求;若网络设备为用户生成的领取数额满足预设条件,基于领取数额中的部分数额,更新用户的资源存储账户中的资源值,并接收网络设备在群聊中发布的基于领取数额中的剩余数额生成的新的群资源。In the second aspect, some embodiments of the present application provide a method for claiming resources, which is applied to a terminal device, including: receiving group resources of a preset type released by the network device in the group chat of the user corresponding to the terminal device ; If it is detected that the user performs a collection operation on group resources, send a request to the network device to collect group resources; if the collection amount generated by the network device for the user meets the preset conditions, update the user's resources based on a part of the collection amount Store the resource value in the account, and receive the new group resource released by the network device in the group chat based on the remaining amount in the received amount.
第三方面,本申请的一些实施例提供了一种用于分配资源的装置,设置于网络设备,包括:发布单元,被配置成向属于群聊的多个用户发布属于预设类型的群资源;接收单元,被配置成接收属于群聊的至少一个用户发送的对群资源进行领取的请求,并为至少一个用户中的每个用户生成领取数额,其中,至少一个用户的领取数额的总和等于群资源的数额;分配及生成单元,被配置成若存在满足预设条件的领取数额,基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,并基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。In a third aspect, some embodiments of the present application provide a device for allocating resources, which is set on a network device and includes: a publishing unit configured to publish group resources of a preset type to multiple users belonging to the group chat The receiving unit is configured to receive a request for claiming group resources sent by at least one user belonging to the group chat, and generate a claim amount for each user in the at least one user, wherein the sum of the claim amount of at least one user is equal to The amount of group resources; the allocation and generation unit is configured so that if there is a receiving amount that meets the preset conditions, based on a part of the receiving amount that meets the preset conditions, allocate resources to users corresponding to the receiving amount that meets the preset conditions, And based on the remaining amount in the receiving amount that meets the preset conditions, a new group resource is generated and sent to multiple users belonging to the group chat.
第四方面,本申请的一些实施例提供了一种用于领取资源的装置,设置于终端设备,包括:接收单元,被配置成接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源;发送单元,被配置成若检测到用户对群资源执行领取操作,向网络设备发送对群资源进行领取的请求;更新及接收单元,被配置成若网络设备为用户生成的领取数额满足预设条件,基于领取数额中的部分数额,更新用户的资源存储账户中的资源值,并接收网络设备在群聊中发布的基于领取数额中的剩余数额生成的新的群资源。In a fourth aspect, some embodiments of the present application provide an apparatus for claiming resources, which is set on a terminal device, and includes: a receiving unit configured to receive information about the resources published by the network device in the group chat of the user corresponding to the terminal device. Group resources of a preset type; the sending unit is configured to send a request for group resources to the network device if it is detected that the user performs a collection operation on the group resources; the update and receiving unit is configured to if the network device generates for the user The received amount satisfies the preset conditions, based on part of the received amount, the resource value in the user's resource storage account is updated, and the new group resource generated based on the remaining amount of the received amount published by the network device in the group chat is received .
第五方面,本申请的一些实施例提供了一种网络设备,该网络设备包括:一个或多个处理器;存储装置,其上存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一实现方式描述的方法。In the fifth aspect, some embodiments of the present application provide a network device, which includes: one or more processors; a storage device storing one or more programs; when one or more programs are used by one or more Multiple processors are executed, so that one or more processors implement the method described in any implementation manner of the first aspect.
第六方面,本申请的一些实施例提供了一种终端设备,该终端设备包括:一个或多个处理器;存储装置,其上存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第二方面中任一实现方式描述的方法。In the sixth aspect, some embodiments of the present application provide a terminal device, which includes: one or more processors; a storage device storing one or more programs; when one or more programs are used by one or more Multiple processors execute, so that one or more processors implement the method described in any implementation manner of the second aspect.
第七方面,本申请的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法或实现如第二方面中任一实现方式描述的方法。In the seventh aspect, some embodiments of the present application provide a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, the method as described in any implementation manner in the first aspect is implemented or the implementation as The method described in any implementation manner in the second aspect.
本申请的上述实施例提供的用于分配资源、领取资源的方法和设备,网络设备可以向属于群聊的多个用户发布属于预设类型的群资源。在接收到属于群聊的至少一个用户发送的对群资源进行领取的请求的情况下,网络设备可以为至少一个用户中的每个用户生成领取数额。在存在满足预设条件的领取数额的情况下,网络设备可以基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,同时基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。本申请的上述实施例可以,例如在资源分布过于不均衡的情况下,将分配过多的资源中的部分进行重新分配,以在维持资源分配随机性的同时保障一定的资源分配均衡性,并能够延长用户驻留时间。并且,本申请的上述实施例提供了一种新的资源分配方式,使资源分配方式更加丰富多样。并且,该资源分配方式能够在资源分配过程中多次生成新的群资源进行发布。In the method and device for allocating resources and receiving resources provided by the above embodiments of the present application, the network device can release group resources of a preset type to multiple users belonging to the group chat. In case of receiving a request for claiming group resources sent by at least one user belonging to the group chat, the network device may generate a claim amount for each of the at least one user. In the case that there is a receiving amount that meets the preset conditions, the network device can allocate resources to users corresponding to the receiving amount that meets the preset conditions based on a part of the receiving amount that meets the preset conditions, and at the same time, based on the amount that meets the preset conditions Receive the remaining amount in the amount, generate a new group resource and send it to multiple users belonging to the group chat. The above-mentioned embodiments of the present application can, for example, re-allocate some of the excessively allocated resources when the resource distribution is too unbalanced, so as to ensure a certain balance of resource allocation while maintaining the randomness of resource allocation, and Ability to extend user dwell time. Moreover, the above-mentioned embodiments of the present application provide a new resource allocation manner, making the resource allocation manner more diverse. In addition, this resource allocation method can generate new group resources multiple times for release during the resource allocation process.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请一些实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application can be applied;
图2是根据本申请的用于分配资源的方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for allocating resources according to the present application;
图3是根据本申请的用于分配资源的方法的又一个实施例的流程图;FIG. 3 is a flowchart of another embodiment of a method for allocating resources according to the present application;
图4是图3所提供的用于分配资源的方法的一个应用场景的示意图;FIG. 4 is a schematic diagram of an application scenario of the method for allocating resources provided in FIG. 3;
图5是根据本申请的用于领取资源的方法的一个实施例的流程图;FIG. 5 is a flowchart of an embodiment of a method for claiming resources according to the present application;
图6是根据本申请的用于领取资源的方法的又一个实施例的流程图;Fig. 6 is a flow chart of another embodiment of the method for claiming resources according to the present application;
图7是适于用来实现本申请实施例的网络设备或终端设备的计算机系统的结构示意图。Fig. 7 is a schematic structural diagram of a computer system suitable for implementing a network device or a terminal device according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
图1示出了可以应用本申请的用于分配资源、领取资源的方法的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which the method for allocating resources and claiming resources of the present application can be applied.
如图1所示,系统架构100可以包括终端设备101、网络102和网络设备103。网络102用以在终端设备101和网络设备103之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include a terminal device 101 , a network 102 and a network device 103 . The network 102 is used as a medium for providing a communication link between the terminal device 101 and the network device 103 . Network 102 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.
用户可以使用终端设备101通过网络102与网络设备103交互,以接收或发送消息等。终端设备101上可以安装有各种客户端应用,例如即时通讯应用等。A user can use the terminal device 101 to interact with the network device 103 through the network 102 to receive or send messages and the like. Various client applications, such as instant messaging applications, can be installed on the terminal device 101 .
终端设备101可以是硬件,也可以是软件。当终端设备101为硬件时,可以是支持即时通讯功能的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。当终端设备101为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。The terminal device 101 may be hardware or software. When the terminal device 101 is hardware, it may be various electronic devices supporting instant messaging functions, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like. When the terminal device 101 is software, it can be installed in the electronic devices listed above. It can be implemented as a plurality of software or software modules, or as a single software or software module. No specific limitation is made here.
网络设备103可以是提供各种服务的网络设备,例如网络设备103可以是即时通讯应用的后台服务器;该后台服务器可以是集成式的,也可以是分布式的。即时通讯应用的后台服务器可以向属于群聊的多个用户发布属于预设类型的群资源,以及对接收到的属于群聊的至少一个用户发送的对群资源进行领取的请求等数据进行分析等处理,并根据处理结果,为用户分配资源。The network device 103 may be a network device that provides various services. For example, the network device 103 may be a background server of an instant messaging application; the background server may be integrated or distributed. The background server of the instant messaging application can publish group resources of a preset type to multiple users belonging to the group chat, and analyze the received data such as the request for receiving group resources sent by at least one user belonging to the group chat, etc. processing, and according to the processing results, allocate resources to users.
需要说明的是,网络设备103可以是硬件,也可以是软件。当网络设备103为硬件时,可以实现成多个网络设备组成的分布式网络设备群,也可以实现成单个网络设备。当网络设备103为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the network device 103 may be hardware or software. When the network device 103 is hardware, it can be implemented as a distributed network device group composed of multiple network devices, or as a single network device. When the network device 103 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or as a single software or software module. No specific limitation is made here.
需要说明的是,本申请的一些实施例所提供的用于分配资源的方法可以由网络设备103执行,用于领取资源的方法可以由终端设备101执行。It should be noted that the method for allocating resources provided by some embodiments of the present application may be executed by the network device 103 , and the method for claiming resources may be executed by the terminal device 101 .
应该理解,图1中的终端设备、网络和网络设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和网络设备。It should be understood that the numbers of terminal devices, networks and network devices in Fig. 1 are only illustrative. There can be any number of terminal devices, networks, and network devices according to implementation requirements.
继续参考图2,其示出了根据本申请的用于分配资源的方法的一个实施例的流程200。该用于分配资源的方法应用于网络设备,包括以下步骤:Continue to refer to FIG. 2 , which shows a flow 200 of an embodiment of the method for allocating resources according to the present application. The method for allocating resources is applied to network equipment, and includes the following steps:
步骤201,向属于群聊的多个用户发布属于预设类型的群资源。Step 201, publishing group resources of a preset type to multiple users belonging to the group chat.
在本实施例中,用于分配资源的方法运行于其上的网络设备(例如图1所示的网络设备103)可以向属于群聊的多个用户的终端设备(例如图1所示的终端设备101)发布属于预设类型的群资源。In this embodiment, the network device on which the method for allocating resources (for example, the network device 103 shown in FIG. The device 101) publishes group resources belonging to a preset type.
实践中,即时通讯应用的用户可以与一个或多个其他用户建立聊天会话。其中,即时通讯应用的用户与一个其他用户建立的聊天会话可以被称作个人聊天会话。即时通讯应用的用户与多个其他用户建立的聊天会话可以被称作群聊天会话,简称群聊。即时通讯应用可以集成资源类(如红包类)程序,以实现即时通讯应用的用户在个人聊天会话或群聊中发布资源(如红包)。In practice, a user of an instant messaging application may establish a chat session with one or more other users. Wherein, a chat session established between a user of an instant messaging application and another user may be called a personal chat session. A chat session established by a user of an instant messaging application with multiple other users may be referred to as a group chat session, or group chat for short. The instant messaging application can integrate resources (such as red envelopes) programs, so that users of the instant messaging application can publish resources (such as red envelopes) in personal chat sessions or group chats.
这里,即时通讯应用的用户可以通过网络设备向属于群聊的多个用户(如全部用户)发布属于预设类型的群资源(如彩蛋红包、拼手气红包、普通红包)。当用户打开终端设备上安装的即时通讯应用时,终端设备的屏幕上可以显示即时通讯应用的当前登录用户的聊天会话列表。随后,当用户点击聊天会话列表中的群聊时,终端设备的屏幕上可以显示该群聊的聊天会话页。若该群聊的一个用户要向属于该群聊的多个用户发布属于预设类型的群资源,那么该用户可以首先执行页面跳转操作,从该群聊的聊天会话页跳转到资源发布页;然后在资源发布页上设置群资源的类型、群资源的总金额、群资源中的资源个数;最后执行该群资源的发布操作,以触发该用户的终端设备向网络设备发送该群资源的发布请求。在接收到该用户发送的该群资源的发布请求之后,网络设备可以向属于群聊的多个用户发布该群资源。通常,资源发布页面上可以设置有虚拟发布按钮,当用户设置完群资源的类型、群资源的总金额、群资源中的资源个数之后,点击该虚拟发布按钮,即执行了该群资源的发布操作。该用户的终端设备向网络设备发送的该群资源的发布请求中可以包括但不限于用户设置的该群资源的类型、总金额和资源个数。Here, the user of the instant messaging application can issue group resources of a preset type (such as easter egg red envelopes, lucky red envelopes, and ordinary red envelopes) to multiple users (eg, all users) belonging to the group chat through network devices. When the user opens the instant messaging application installed on the terminal device, a chat session list of the currently logged-in user of the instant messaging application may be displayed on the screen of the terminal device. Subsequently, when the user clicks on a group chat in the chat session list, the chat session page of the group chat may be displayed on the screen of the terminal device. If a user of the group chat wants to publish a group resource of a preset type to multiple users belonging to the group chat, then the user can first perform a page jump operation, jumping from the chat session page of the group chat to resource publishing page; then set the type of group resource, the total amount of the group resource, and the number of resources in the group resource on the resource release page; finally execute the release operation of the group resource to trigger the user's terminal device to send the group resource to the network device A publish request for a resource. After receiving the publishing request of the group resource sent by the user, the network device may publish the group resource to multiple users belonging to the group chat. Usually, a virtual release button can be set on the resource release page. After the user sets the type of group resource, the total amount of the group resource, and the number of resources in the group resource, and clicks the virtual release button, the release of the group resource is executed. Post operation. The release request of the group resource sent by the user's terminal device to the network device may include but not limited to the type, total amount and number of resources of the group resource set by the user.
步骤202,接收属于群聊的至少一个用户发送的对群资源进行领取的请求,并为至少一个用户中的每个用户生成领取数额。Step 202: Receive a request for claiming group resources sent by at least one user belonging to the group chat, and generate a claim amount for each of the at least one user.
在本实施例中,网络设备可以首先接收属于群聊的至少一个用户发送的对群资源进行领取的请求;然后为至少一个用户中的每个用户生成领取数额。其中,至少一个用户的数量可以等于该群资源中的资源个数。至少一个用户的领取数额的总和可以等于群资源的数额。In this embodiment, the network device may first receive a request for claiming group resources sent by at least one user belonging to the group chat; and then generate a claim amount for each of the at least one user. Wherein, the number of at least one user may be equal to the number of resources in the group of resources. The sum of the received amounts of at least one user may be equal to the amount of group resources.
这里,在网络设备向属于群聊的多个用户发布群资源之后,属于群聊的多个用户的终端设备的屏幕上显示的聊天会话页上均可以显示该群资源消息。当属于群聊的一个用户点击该群资源消息时,即对该群资源执行了领取操作。此时,可以触发该用户的终端设备向网络设备发送该用户对该群资源进行领取的请求。Here, after the network device releases the group resource to the multiple users belonging to the group chat, the group resource message may be displayed on the chat session pages displayed on the screens of the terminal devices of the multiple users belonging to the group chat. When a user belonging to the group chat clicks on the message of the group resource, the operation of claiming the group resource is performed. At this point, the user's terminal device may be triggered to send the user's request for claiming the group resource to the network device.
这里,若群资源存在未领取资源,每当接收到属于群聊的用户发送的对该群资源进行领取的请求,网络设备可以为该用户生成不大于未领取资源的数额的一个领取数额。其中,为至少一个用户生成的领取数额的总和可以等于该群资源的数额。Here, if there are unclaimed resources in the group resource, whenever a request for claiming the group resource is received from a user belonging to the group chat, the network device may generate a claim amount not greater than the amount of the unclaimed resource for the user. Wherein, the sum of the received amount generated for at least one user may be equal to the amount of the group resource.
步骤203,若存在满足预设条件的领取数额,基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,并基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。Step 203, if there is a receiving amount that meets the preset conditions, allocate resources to the user corresponding to the receiving amount that meets the preset conditions based on a part of the receiving amount that meets the preset conditions, and allocate resources based on part of the receiving amount that meets the preset conditions The remaining amount, generate a new group resource and send it to multiple users belonging to the group chat.
在本实施例中,对于至少一个用户中的每个用户,网络设备可以对该用户的领取数额进行分析,确定该用户的领取数额是否满足预设条件。在该用户的领取数额满足预设条件的情况下,网络设备可以基于该用户的领取数额中的部分数额(如随机数额或固定数额),为该用户分配资源。同时,网络设备还可以基于该用户的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。其中,为该用户分配的资源的数额可以等于该用户的领取数额中的部分数额。新的群资源的数额可以等于该用户的领取数额中的剩余数额。预设条件可以是预先设置的各种条件。例如,预设条件可以是不小于预设数值。此时,对于至少一个用户中的每个用户,网络设备可以将该用户的领取数额与预设数值进行比较。若该用户的领取数额不小于预设数值,则该用户的领取数额满足预设条件,满足预设条件的领取数额包括不小于预设数值的领取数额。反之,则不满足预设条件,不满足预设条件的领取数额包括小于预设数值的领取数额。In this embodiment, for each of the at least one user, the network device may analyze the user's claim amount to determine whether the user's claim amount satisfies a preset condition. When the amount received by the user satisfies the preset condition, the network device may allocate resources to the user based on a part of the amount received by the user (such as a random amount or a fixed amount). At the same time, the network device can also generate a new group resource based on the remaining amount of the user's claim amount and send it to multiple users belonging to the group chat. Wherein, the amount of resources allocated to the user may be equal to a part of the amount received by the user. The amount of new group resources may be equal to the remaining amount of the user's received amount. The preset conditions may be various preset conditions. For example, the preset condition may be not less than a preset value. At this time, for each user in the at least one user, the network device may compare the amount received by the user with a preset value. If the user's claim amount is not less than the preset value, the user's claim amount satisfies the preset condition, and the claim amount that meets the preset condition includes the claim amount that is not less than the preset value. On the contrary, the preset condition is not met, and the receiving amount that does not meet the preset condition includes the receiving amount that is less than the preset value.
在一些实施例中,若存在不满足预设条件的领取数额,网络设备可以基于不满足预设条件的领取数额中的全部数额,为不满足预设条件的领取数额对应的用户分配资源。这里,对于至少一个用户中的每个用户,网络设备可以对该用户的领取数额进行分析,确定该用户的领取数额是否满足预设条件。在该用户的领取数额不满足预设条件的情况下,网络设备可以基于该领取数额中的全部数额,为该用户分配资源。其中,为该用户分配的资源的数额可以等于该领取数额中的全部数额。In some embodiments, if there is a claim amount that does not meet the preset condition, the network device may allocate resources to users corresponding to the claim amount that does not meet the preset condition based on all the amount of the claim amount that does not meet the preset condition. Here, for each of the at least one user, the network device may analyze the user's claim amount to determine whether the user's claim amount satisfies a preset condition. In the case that the received amount of the user does not meet the preset condition, the network device may allocate resources to the user based on the entire amount of the received amount. Wherein, the amount of resources allocated to the user may be equal to the entire amount of the receiving amount.
在一些实施例中,满足预设条件的领取数额可以包括:不小于资源领取限额的领取数额。不满足预设条件的领取数额可以包括:小于资源领取限额的领取数额。部分数额可以小于资源领取限额。其中,资源领取限额可以是预先设置的一个数值,可以是用户根据需求预先设置的数值,也可以是系统默认设置的数值。将不小于资源领取限额的领取数额中的部分数额分配给用户,同时,生成不小于资源领取限额的领取数额中的剩余数额的新的群资源,并再次发送给属于群聊的多个用户。有效地避免了在资源分配过程中将过大数额(例如超过群资源的数额的一半)的资源分配给请求领取资源的多个用户中的一个用户的情况,以在维持资源分配随机性的同时保障一定的资源分配均衡性;并且,通过发送新的群资源,能够延长用户驻留,并提供更丰富多样的资源分配方式。In some embodiments, the claim amount meeting the preset condition may include: the claim amount not less than the resource claim limit. The claim amount that does not meet the preset conditions may include: the claim amount is less than the resource claim limit. Part of the amount can be less than the resource claim limit. Wherein, the resource receiving limit may be a preset value, may be a value preset by the user according to the requirement, or may be a value set by the system by default. Part of the amount not less than the resource claim limit is allocated to the user, and at the same time, a new group resource of the remaining amount not less than the resource claim limit is generated and sent to multiple users belonging to the group chat. Effectively avoid the situation that an excessive amount of resources (for example, more than half of the amount of group resources) is allocated to one user among multiple users who request to receive resources during the resource allocation process, so as to maintain the randomness of resource allocation Ensure a certain balance of resource allocation; and, by sending new group resources, it is possible to extend user residency and provide more diverse resource allocation methods.
在一些实施例中,资源领取限额可以包括但不限于以下至少一项:预设数值、群资源的数额与预设领取限度的乘积。其中,预设数值可以是不超过群资源的数额的随机数。预设领取限额可以是0到1之间的任意数。In some embodiments, the resource claim limit may include but not limited to at least one of the following: a preset value, the product of the amount of group resources and the preset claim limit. Wherein, the preset value may be a random number not exceeding the amount of group resources. The default claim limit can be any number between 0 and 1.
在一些实施例中,网络设备可以从群资源的发布请求中获取资源领取限额。在向属于群聊的多个用户发布属于预设类型的群资源之前,网络设备还可以接收属于群聊的用户发送的群资源的发布请求。这里,属于群聊的一个用户可以在资源发布页上设置群资源的类型、群资源的总金额、群资源中的资源个数和资源领取限额。随后,该用户执行该群资源的发布操作,以触发该用户的终端设备向网络设备发送该群资源的发布请求。此时,发布请求中除了可以包括用户设置的该群资源的类型、总金额和资源个数之外,还可以包括用户设置的资源领取限额。In some embodiments, the network device may obtain the resource claim quota from the group resource publishing request. Before publishing the group resource of the preset type to the multiple users belonging to the group chat, the network device may also receive a group resource publishing request sent by the users belonging to the group chat. Here, a user belonging to the group chat can set the type of group resources, the total amount of group resources, the number of resources in the group resources, and the resource claim limit on the resource release page. Subsequently, the user executes an operation of publishing the group resource, so as to trigger the user's terminal device to send a request for publishing the group resource to the network device. At this time, in addition to the type, total amount and number of resources of the group of resources set by the user, the release request may also include the resource receiving limit set by the user.
在一些实施例中,在基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源的步骤之前,网络设备还可以向满足预设条件的领取数额对应的用户发送第一资源领取通知消息。其中,第一资源领取通知消息可以用于通知为满足预设条件的领取数额对应的用户生成的领取数额满足预设条件。In some embodiments, before the step of allocating resources to the user corresponding to the claim amount that meets the preset condition based on a part of the amount that meets the preset condition, the network device may also allocate resources to the user that meets the claim amount that meets the preset condition. The user sends the first resource claim notification message. Wherein, the first resource claim notification message may be used to notify the user corresponding to the claim amount that satisfies the preset condition that the claim amount generated by the user meets the preset condition.
在一些实施例中,在基于不满足预设条件的领取数额中的全部数额,为不满足预设条件的领取数额对应的用户分配资源的步骤之前,网络设备还可以向不满足预设条件的领取数额对应的用户发送第二资源领取通知消息。其中,第二资源领取通知消息可以用于通知为不满足预设条件的领取数额对应的用户生成的领取数额不满足预设条件。In some embodiments, before the step of allocating resources to users corresponding to the claim amount that does not meet the preset condition based on the entire amount of the claim amount that does not meet the preset condition, the network device may also send resources to users who do not meet the preset condition The user corresponding to the claim amount sends a second resource claim notification message. Wherein, the second resource claiming notification message may be used to notify the user corresponding to the claiming amount that does not meet the preset condition that the claiming amount generated does not meet the preset condition.
本申请的上述实施例提供的用于分配资源的方法,网络设备可以向属于群聊的多个用户发布属于预设类型的群资源。在接收到属于群聊的至少一个用户发送的对群资源进行领取的请求的情况下,网络设备可以为至少一个用户中的每个用户生成领取数额。在存在满足预设条件的领取数额的情况下,网络设备可以基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,同时基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。提供了一种新的资源分配方式,使资源分配方式更加丰富多样。并且,该资源分配方式能够在资源分配过程中多次生成新的群资源进行发布。In the method for allocating resources provided by the above embodiments of the present application, the network device can publish group resources of a preset type to multiple users belonging to the group chat. In case of receiving a request for claiming group resources sent by at least one user belonging to the group chat, the network device may generate a claim amount for each of the at least one user. In the case that there is a receiving amount that meets the preset conditions, the network device can allocate resources to users corresponding to the receiving amount that meets the preset conditions based on a part of the receiving amount that meets the preset conditions, and at the same time, based on the amount that meets the preset conditions Receive the remaining amount in the amount, generate a new group resource and send it to multiple users belonging to the group chat. A new resource allocation method is provided, which makes resource allocation methods richer and more diverse. In addition, this resource allocation method can generate new group resources multiple times for release during the resource allocation process.
进一步参考图3,其示出了根据本申请的用于分配资源的方法的又一个实施例的流程300。该用于分配资源的方法应用于网络设备,包括以下步骤:Further referring to FIG. 3 , it shows a flow 300 of another embodiment of the method for allocating resources according to the present application. The method for allocating resources is applied to network equipment, and includes the following steps:
步骤301,向属于群聊的多个用户发布属于预设类型的群资源。Step 301, publishing group resources of a preset type to multiple users belonging to the group chat.
步骤302,接收属于群聊的至少一个用户发送的对群资源进行领取的请求,并为至少一个用户中的每个用户生成领取数额。Step 302: Receive a request for claiming group resources sent by at least one user belonging to the group chat, and generate a claim amount for each of the at least one user.
步骤303,若存在满足预设条件的领取数额,基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,并基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。Step 303, if there is a receiving amount that meets the preset conditions, allocate resources to the user corresponding to the receiving amount that meets the preset conditions based on a part of the receiving amount that meets the preset conditions, and allocate resources based on part of the receiving amount that meets the preset conditions The remaining amount, generate a new group resource and send it to multiple users belonging to the group chat.
在本实施例中,步骤301-303的具体操作与图2所示的实施例中步骤201-203的操作基本相同,在此不再赘述。In this embodiment, the specific operations of steps 301-303 are basically the same as the operations of steps 201-203 in the embodiment shown in FIG. 2 , and will not be repeated here.
步骤304,接收属于群聊的至少一个用户发送的对新的群资源进行领取的请求,并为至少一个用户中的每个用户生成新的领取数额。Step 304: Receive a request for claiming new group resources sent by at least one user belonging to the group chat, and generate a new claim amount for each of the at least one user.
在本实施例中,网络设备(例如图1所示的网络设备103)可以首先接收属于群聊的至少一个用户发送的对新的群资源进行领取的请求;然后为至少一个用户中的每个用户生成新的领取数额。其中,至少一个用户的数量可以等于该新的群资源中的资源个数。至少一个用户的新的领取数额的总和可以等于新的群资源的数额。需要说明的是,请求领取群资源的至少一个用户与请求领取新的群资源的至少一个用户可以不同。In this embodiment, the network device (such as the network device 103 shown in FIG. 1 ) may first receive a request for claiming new group resources sent by at least one user belonging to the group chat; and then for each of the at least one user The user generates a new claim amount. Wherein, the number of at least one user may be equal to the number of resources in the new group resource. The sum of the new amount received by at least one user may be equal to the amount of the new group resource. It should be noted that at least one user requesting to receive group resources may be different from at least one user requesting to receive new group resources.
这里,在网络设备向属于群聊的多个用户发布新的群资源之后,属于群聊的多个用户的终端设备的屏幕上显示的聊天会话页上均可以显示该新的群资源消息。当属于群聊的一个用户点击该新的群资源消息时,即对该新的群资源执行了领取操作。此时,可以触发该用户的终端设备向网络设备发送该用户对该新的群资源进行领取的请求。Here, after the network device releases the new group resource to the multiple users belonging to the group chat, the new group resource message may be displayed on the chat session pages displayed on the screens of the terminal devices of the multiple users belonging to the group chat. When a user belonging to the group chat clicks on the new group resource message, the operation of claiming the new group resource is performed. At this point, the user's terminal device may be triggered to send the user's request for claiming the new group resource to the network device.
这里,若新的群资源存在未领取资源,每当接收到属于群聊的用户发送的对该新的群资源进行领取的请求,网络设备可以为该用户生成不大于未领取资源的数额的一个新的领取数额。其中,至少一个用户的新的领取数额的总和可以等于新的群资源的数额。Here, if there are unclaimed resources in the new group resources, whenever a request for claiming the new group resources is received from a user belonging to the group chat, the network device can generate a resource not greater than the amount of unclaimed resources for the user. The new claim amount. Wherein, the sum of the new amount received by at least one user may be equal to the amount of the new group resource.
步骤305,若存在满足预设条件的新的领取数额,基于满足预设条件的新的领取数额中的部分数额,为满足预设条件的新的领取数额对应的用户分配资源,并基于满足预设条件的新的领取数额中的剩余数额,再次生成新的群资源并发送给属于群聊的多个用户。Step 305, if there is a new claim amount that meets the preset conditions, based on a part of the new claim amount that meets the preset conditions, allocate resources to the user corresponding to the new claim amount that meets the preset conditions, and based on meeting the preset conditions The remaining amount in the new receiving amount with the condition is set, and a new group resource is generated again and sent to multiple users belonging to the group chat.
在本实施例中,对于至少一个用户中的每个用户,网络设备可以对该用户的新的领取数额进行分析,确定该用户的新的领取数额是否满足预设条件。在该用户的新的领取数额满足预设条件的情况下,网络设备可以基于该用户的新的领取数额中的部分数额(如随机数额或固定数额),再次为该用户分配资源。同时,网络设备还可以基于该用户的新的领取数额中的剩余数额,再次生成新的群资源并发送给属于群聊的多个用户。其中,再次为该用户分配的资源的数额可以等于该用户的新的领取数额中的部分数额。再次生成的新的群资源的数额可以等于该用户的新的领取数额中的剩余数额。In this embodiment, for each of the at least one user, the network device may analyze the user's new claim amount to determine whether the user's new claim amount satisfies a preset condition. When the user's new receiving amount satisfies the preset condition, the network device may allocate resources to the user again based on a part of the user's new receiving amount (such as a random amount or a fixed amount). At the same time, the network device can also generate a new group resource based on the remaining amount in the user's new receiving amount and send it to multiple users belonging to the group chat. Wherein, the amount of resources allocated to the user again may be equal to a part of the user's new receiving amount. The amount of the new group resource generated again may be equal to the remaining amount in the user's new receiving amount.
步骤305′,若存在不满足预设条件的新的领取数额,基于不满足预设条件的新的领取数额中的全部数额,为不满足预设条件的新的领取数额对应的用户分配资源。Step 305', if there is a new claim amount that does not meet the preset condition, based on all of the new claim amount that does not meet the preset condition, allocate resources to users corresponding to the new claim amount that does not meet the preset condition.
在本实施例中,对于至少一个用户中的每个用户,网络设备可以对该用户的新的领取数额进行分析,确定该用户的新的领取数额是否满足预设条件。在该用户的新的领取数额不满足预设条件的情况下,网络设备可以基于该用户的新的领取数额中的全部数额,再次为该用户分配资源。其中,再次为该用户分配的资源的数额可以等于该用户的新的领取数额中的全部数额。In this embodiment, for each of the at least one user, the network device may analyze the user's new claim amount to determine whether the user's new claim amount satisfies a preset condition. In the case that the user's new receiving amount does not meet the preset condition, the network device may allocate resources to the user again based on all of the user's new receiving amount. Wherein, the amount of resources allocated to the user again may be equal to the entire amount in the new receiving amount of the user.
需要说明的是,每当网络设备生成并发布新的群资源时,属于群聊的用户均可以再次请求领取新的群资源,以使网络设备再次执行步骤304、305和/或305′,直至网络设备不再生成新的群资源为止。It should be noted that whenever the network device generates and publishes a new group resource, the users belonging to the group chat can request to receive the new group resource again, so that the network device performs steps 304, 305 and/or 305' again until Until the network device no longer generates new group resources.
继续参见图4,图4是图3所提供的用于分配资源的方法的一个应用场景的示意图。在图3的应用场景中,首先,群聊1中的用户A的终端设备向群聊1中的全部用户发布了一个红包个数为3、总金额为12元的彩蛋红包。此时,群聊1中的全部用户的终端设备均可以在群聊1的聊天会话页上显示这个彩蛋红包消息。之后,群聊1中的用户B、用户C和用户D依次点击这个彩蛋红包消息,以触发用户B、用户C和用户D的终端设备分别向网络设备发送对这个彩蛋红包进行领取的请求。此时,网络设备为用户B生成领取数额8、为用户C生成领取数额1、为用户D生成领取数额3。而后,由于用户C的领取数额1和用户D的领取数额3不满足预设条件,网络设备将金额为1元的红包分配给用户C,将金额为3元的红包分配给用户D。由于用户B的领取数额8满足预设条件,网络设备将与领取数额8中的部分数额2对应的金额为2元的红包分配给用户B,同时将与领取数额8中的剩余数额6对应的、红包个数为3、总金额为6元的新的彩蛋红包发送给群聊1中的全部用户。然后,群聊1中的用户B、用户C和用户E依次点击这个新的彩蛋红包消息,以触发用户B、用户C和用户E的终端设备分别向网络设备发送对这个新的彩蛋红包进行领取的请求。此时,网络设备为用户B生成新的领取数额1.5、为用户C生成新的领取数额2、为用户E生成新的领取数额2.5。最后,由于用户B、用户C和用户E的新的领取数额均不满足预设条件,网络设备将金额为1.5元的红包分配给用户B,将金额为2元的红包分配给用户C,将金额为2.5元的红包分配给用户E。此时,属于群聊1的全部用户的终端设备均可以在群聊1的聊天会话页上显示这个新的彩蛋红包消息。例如,图4示出了用户B的终端设备上显示的群聊1的聊天会话页。其中,聊天会话页上显示的彩蛋红包消息如401所示。聊天会话页上显示的新的彩蛋红包消息如402所示。Continue referring to FIG. 4 , which is a schematic diagram of an application scenario of the method for allocating resources provided in FIG. 3 . In the application scenario shown in Figure 3, first, the terminal device of user A in group chat 1 issues an easter egg red envelope with a total amount of 12 yuan and a number of 3 red envelopes to all users in group chat 1. At this time, the terminal devices of all users in the group chat 1 can display the easter egg red envelope message on the chat session page of the group chat 1. Afterwards, user B, user C, and user D in group chat 1 click on the easter egg red envelope message in sequence, so as to trigger the terminal devices of user B, user C, and user D to send requests for receiving the easter egg red envelope to the network device respectively. At this time, the network device generates a claim amount 8 for user B, generates a claim amount 1 for user C, and generates a claim amount 3 for user D. Then, because the amount 1 received by user C and the amount 3 received by user D do not meet the preset conditions, the network device distributes a red envelope with an amount of 1 yuan to user C, and a red envelope with an amount of 3 yuan to user D. Since the receiving amount 8 of user B satisfies the preset condition, the network device distributes a red envelope of 2 yuan corresponding to part of the amount 2 in the receiving amount 8 to user B, and at the same time distributes the red envelope corresponding to the remaining amount 6 in the receiving amount 8 , the number of red envelopes is 3, and a new easter egg red envelope with a total amount of 6 yuan is sent to all users in group chat 1. Then, user B, user C, and user E in group chat 1 click on the new easter egg red envelope message in order to trigger the terminal devices of user B, user C, and user E to send the new easter egg red envelope message to the network device respectively. request. At this time, the network device generates a new claim amount 1.5 for user B, a new claim amount 2 for user C, and a new claim amount 2.5 for user E. Finally, since the new receiving amounts of user B, user C, and user E do not meet the preset conditions, the network device distributes a red packet with an amount of 1.5 yuan to user B, and a red packet with an amount of 2 yuan to user C. A red envelope with an amount of 2.5 yuan is allocated to user E. At this point, the terminal devices of all users belonging to the group chat 1 can display the new easter egg red envelope message on the chat session page of the group chat 1. For example, FIG. 4 shows a chat session page of group chat 1 displayed on user B's terminal device. Among them, the easter egg red envelope message displayed on the chat session page is shown as 401. The new easter egg red envelope message displayed on the chat session page is shown as 402.
从图3中可以看出,与图2对应的实施例相比,本实施例中的用于分配资源的方法的流程300增加了对新的群资源进行再次分配的步骤。由此,本实施例描述的方案中能够在资源分配过程中多次生成新的群资源,并多次进行资源分配,从而增加了在资源分配过程中的趣味性。It can be seen from FIG. 3 that, compared with the embodiment corresponding to FIG. 2 , the process 300 of the method for allocating resources in this embodiment adds a step of allocating new group resources again. Therefore, in the solution described in this embodiment, new group resources can be generated multiple times during the resource allocation process, and the resource allocation can be performed multiple times, thereby increasing the interest in the resource allocation process.
继续参考图5,其示出了根据本申请的用于领取资源的方法的一个实施例的流程500。该用于领取资源的方法应用于终端设备,包括以下步骤:Continue to refer to FIG. 5 , which shows a flow 500 of an embodiment of the method for claiming resources according to the present application. The method for claiming resources is applied to a terminal device, and includes the following steps:
步骤501,接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源。Step 501, receiving group resources of a preset type released by the network device in the group chat to which the user corresponding to the terminal device belongs.
在本实施例中,用于领取资源的方法运行于其上的终端设备(例如图1所示的终端设备101)可以接收网络设备(例如图1所示的网络设备103)在该终端设备对应的用户所属的群聊中发布的属于预设类型的群资源。In this embodiment, the terminal device (such as the terminal device 101 shown in FIG. 1 ) on which the method for claiming resources runs can receive the network device (such as the network device 103 shown in FIG. 1 ) corresponding to the terminal device. The group resources of the default type published in the group chat to which the user belongs.
实践中,即时通讯应用的用户可以与一个或多个其他用户建立聊天会话。其中,即时通讯应用的用户与一个其他用户建立的聊天会话可以被称作个人聊天会话。即时通讯应用的用户与多个其他用户建立的聊天会话可以被称作群聊天会话,简称群聊。即时通讯应用可以集成资源类(如红包类)程序,以实现即时通讯应用的用户在个人聊天会话或群聊中发布资源(如红包)。In practice, a user of an instant messaging application may establish a chat session with one or more other users. Wherein, a chat session established between a user of an instant messaging application and another user may be called a personal chat session. A chat session established by a user of an instant messaging application with multiple other users may be referred to as a group chat session, or group chat for short. The instant messaging application can integrate resources (such as red envelopes) programs, so that users of the instant messaging application can publish resources (such as red envelopes) in personal chat sessions or group chats.
这里,即时通讯应用的用户可以向属于群聊的多个用户(如全部用户)发布属于预设类型的群资源(如彩蛋红包、拼手气红包、普通红包;其中,为请求领取彩蛋红包或拼手气红包的各个的用户生成的领取数额可以不同,为请求领取普通红包的各个用户生成的领取数额可以相同)。当用户打开终端设备上安装的即时通讯应用时,终端设备的屏幕上可以显示即时通讯应用的当前登录用户的聊天会话列表。随后,当用户点击聊天会话列表中的群聊时,终端设备的屏幕上可以显示该群聊的聊天会话页。若该群聊的一个用户要向属于该群聊的多个用户发布属于预设类型的群资源,那么该用户可以首先执行页面跳转操作,从该群聊的聊天会话页跳转到资源发布页;然后在资源发布页上设置群资源的类型、群资源的总金额、群资源中的资源个数;最后执行该群资源的发布操作,以触发该用户的终端设备向网络设备发送该群资源的发布请求。在接收到该用户发送的该群资源的发布请求之后,网络设备可以向属于群聊的多个用户发布该群资源。通常,资源发布页面上可以设置有虚拟发布按钮,当用户设置完群资源的类型、群资源的总金额、群资源中的资源个数之后,点击该虚拟发布按钮,即执行了该群资源的发布操作。该用户的终端设备向网络设备发送的该群资源的发布请求中可以包括但不限于用户设置的该群资源的类型、总金额和资源个数。Here, the user of the instant messaging application can publish group resources belonging to a preset type (such as easter egg red envelopes, lucky red envelopes, and ordinary red envelopes) to multiple users (such as all users) belonging to the group chat; The receiving amount generated by each user of the lucky red envelope can be different, and the receiving amount generated by each user requesting to receive the ordinary red envelope can be the same). When the user opens the instant messaging application installed on the terminal device, a chat session list of the currently logged-in user of the instant messaging application may be displayed on the screen of the terminal device. Subsequently, when the user clicks on a group chat in the chat session list, the chat session page of the group chat may be displayed on the screen of the terminal device. If a user of the group chat wants to publish a group resource of a preset type to multiple users belonging to the group chat, then the user can first perform a page jump operation, jumping from the chat session page of the group chat to resource publishing page; then set the type of group resource, the total amount of the group resource, and the number of resources in the group resource on the resource release page; finally execute the release operation of the group resource to trigger the user's terminal device to send the group resource to the network device A publish request for a resource. After receiving the publishing request of the group resource sent by the user, the network device may publish the group resource to multiple users belonging to the group chat. Usually, a virtual release button can be set on the resource release page. After the user sets the type of group resource, the total amount of the group resource, and the number of resources in the group resource, and clicks the virtual release button, the release of the group resource is executed. Post operation. The release request of the group resource sent by the user's terminal device to the network device may include but not limited to the type, total amount and number of resources of the group resource set by the user.
步骤502,若检测到用户对群资源执行领取操作,向网络设备发送对群资源进行领取的请求。Step 502, if it is detected that the user performs a claim operation on the group resource, send a request for claiming the group resource to the network device.
在本实施例中,终端设备可以检测用户对群资源执行的领取操作。在检测到该用户对群资源执行领取操作的情况下,终端设备可以向网络设备发送对群资源进行领取的请求。In this embodiment, the terminal device can detect the claim operation performed by the user on the group resource. In the case of detecting that the user performs a claim operation on the group resource, the terminal device may send a request for claiming the group resource to the network device.
这里,在网络设备向属于群聊的多个用户发布群资源之后,属于群聊的多个用户的终端设备的屏幕上显示的聊天会话页上均可以显示该群资源消息。当属于群聊的一个用户点击该群资源消息时,即对该群资源执行了领取操作。此时,可以触发该用户的终端设备向网络设备发送该用户对该群资源进行领取的请求。Here, after the network device releases the group resource to the multiple users belonging to the group chat, the group resource message may be displayed on the chat session pages displayed on the screens of the terminal devices of the multiple users belonging to the group chat. When a user belonging to the group chat clicks on the message of the group resource, the operation of claiming the group resource is performed. At this point, the user's terminal device may be triggered to send the user's request for claiming the group resource to the network device.
步骤503,若网络设备为用户生成的领取数额满足预设条件,基于领取数额中的部分数额,更新用户的资源存储账户中的资源值,并接收网络设备在群聊中发布的基于领取数额中的剩余数额生成的新的群资源。Step 503, if the claim amount generated by the network device for the user satisfies the preset conditions, update the resource value in the user's resource storage account based on part of the claim amount, and receive the information released by the network device in the group chat based on the claim amount. New group resources generated by the remaining amount.
在本实施例中,在接收到属于群聊的用户发送的对群资源进行领取的请求之后,网络设备可以为该用户生成领取数额。在为该用户生成的领取数额满足预设条件的情况下,网络设备可以将该用户的领取数额中的部分数额(如随机数额或固定数额)的资源分配给该用户。此时,终端设备可以基于领取数额中的部分数额,更新用户的资源存储账户中的资源值。同时,终端设备还可以接收网络设备在群聊中发布的基于该用户的领取数额中的剩余数额生成的新的群资源。例如,终端设备可以计算该用户的资源存储账户中的资源值与该用户的领取数额中的部分数额的和,作为该用户的资源存储账户中的新的资源值。其中,预设条件可以是预先设置的各种条件。例如,预设条件可以是不小于预设数值。若该用户的领取数额不小于预设数值,则该用户的领取数额满足预设条件,满足预设条件的领取数额包括不小于预设数值的领取数额。反之,则不满足预设条件,不满足预设条件的领取数额包括小于预设数值的领取数额。In this embodiment, after receiving a request for claiming group resources sent by a user belonging to the group chat, the network device may generate a claim amount for the user. In the case that the receiving amount generated for the user satisfies the preset condition, the network device may allocate a part of the user's receiving amount (such as a random amount or a fixed amount) of resources to the user. At this time, the terminal device may update the resource value in the user's resource storage account based on a part of the received amount. At the same time, the terminal device can also receive new group resources released by the network device in the group chat based on the remaining amount of the user's claim amount. For example, the terminal device may calculate the sum of the resource value in the user's resource storage account and a part of the user's received amount as a new resource value in the user's resource storage account. Wherein, the preset conditions may be various preset conditions. For example, the preset condition may be not less than a preset value. If the user's claim amount is not less than the preset value, the user's claim amount satisfies the preset condition, and the claim amount that meets the preset condition includes the claim amount that is not less than the preset value. On the contrary, the preset condition is not met, and the receiving amount that does not meet the preset condition includes the receiving amount that is less than the preset value.
在一些实施例中,若为用户生成的领取数额不满足预设条件,终端设备可以基于领取数额中的全部数额,更新用户的资源存储账户中的资源值。这里,在接收到属于群聊的用户发送的对群资源进行领取的请求之后,网络设备可以为该用户生成领取数额。在为该用户生成的领取数额不满足预设条件的情况下,网络设备可以将该用户的领取数额中的全部数额的资源分配给该用户。此时,终端设备可以基于领取数额中的全部数额,更新用户的资源存储账户中的资源值。例如,终端设备可以计算该用户的资源存储账户中的资源值与该用户的领取数额中的全部数额的和,作为该用户的资源存储账户中的新的资源值。In some embodiments, if the claim amount generated for the user does not meet the preset condition, the terminal device may update the resource value in the user's resource storage account based on the entire amount of the claim amount. Here, after receiving a request for claiming group resources sent by a user belonging to the group chat, the network device may generate a claim amount for the user. In the case that the received amount generated for the user does not meet the preset condition, the network device may allocate resources of the entire amount in the received amount of the user to the user. At this time, the terminal device may update the resource value in the user's resource storage account based on the entire amount of the received amount. For example, the terminal device may calculate the sum of the resource value in the user's resource storage account and the total amount of the user's received amount as the new resource value in the user's resource storage account.
在一些实施例中,满足预设条件的领取数额可以包括:不小于资源领取限额的领取数额。不满足预设条件的领取数额可以包括:小于资源领取限额的领取数额。部分数额可以小于资源领取限额。其中,资源领取限额可以是预先设置的一个数值,可以是用户根据需求预先设置的数值,也可以是系统默认设置的数值。In some embodiments, the claim amount meeting the preset condition may include: the claim amount not less than the resource claim limit. The claim amount that does not meet the preset conditions may include: the claim amount is less than the resource claim limit. Part of the amount can be less than the resource claim limit. Wherein, the resource receiving limit may be a preset value, may be a value preset by the user according to the requirement, or may be a value set by the system by default.
在一些实施例中,资源领取限额可以包括但不限于以下至少一项:预设数值、群资源的数额与预设领取限度的乘积。其中,预设数值可以是不超过群资源的数额的随机数。预设领取限额可以是0到1之间的随机数。In some embodiments, the resource claim limit may include but not limited to at least one of the following: a preset value, the product of the amount of group resources and the preset claim limit. Wherein, the preset value may be a random number not exceeding the amount of group resources. The preset claim limit can be a random number between 0 and 1.
在一些实施例中,在接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源之前,终端设备还可以向网络设备发送群资源的发布请求。这里,属于群聊的一个用户可以在资源发布页上设置群资源的类型、群资源的总金额、群资源中的资源个数和资源领取限额。随后,该用户执行该群资源的发布操作,以触发该用户的终端设备向网络设备发送该群资源的发布请求。此时,发布请求中除了可以包括用户设置的该群资源的类型、总金额和资源个数之外,还可以包括用户设置的资源领取限额。In some embodiments, before receiving the group resource of a preset type released by the network device in the group chat of the user corresponding to the terminal device, the terminal device may also send a group resource publishing request to the network device. Here, a user belonging to the group chat can set the type of group resources, the total amount of group resources, the number of resources in the group resources, and the resource claim limit on the resource release page. Subsequently, the user executes an operation of publishing the group resource, so as to trigger the user's terminal device to send a request for publishing the group resource to the network device. At this time, in addition to the type, total amount and number of resources of the group of resources set by the user, the release request may also include the resource receiving limit set by the user.
在一些实施例中,在基于领取数额中的部分数额,更新用户的资源存储账户中的资源值之前,终端设备还可以接收网络设备发送的第一资源领取通知消息。其中,第一资源领取可以通知消息用于通知为用户生成的领取数额满足预设条件。In some embodiments, before updating the resource value in the user's resource storage account based on part of the claim amount, the terminal device may also receive the first resource claim notification message sent by the network device. Wherein, the notification message of the first resource claim can be used to notify the user that the claim amount generated for the user meets the preset condition.
在一些实施例中,在基于领取数额中的全部数额,更新用户的资源存储账户中的资源值之前,终端设备还可以接收网络设备发送的第二资源领取通知消息。其中,第二资源领取通知消息可以用于通知为用户生成的领取数额不满足预设条件。In some embodiments, before updating the resource value in the user's resource storage account based on the entire amount of the claim amount, the terminal device may also receive a second resource claim notification message sent by the network device. Wherein, the second resource claim notification message may be used to notify the user that the claim amount generated for the user does not meet the preset condition.
本申请的上述实施例提供的用于领取资源的方法,终端设备可以接收网络设备在该终端设备对应的用户所属群聊中发布的属于预设类型的群资源。在检测到该用户对该群资源执行领取操作的情况下,终端设备可以向网络设备发送对该群资源进行领取的请求。在为该用户生成的领取数额满足预设条件的情况下,终端设备可以基于领取数额中的部分数额,更新该用户的资源存储账户中的资源值,同时接收网络设备在该群聊中发布的基于领取数额中的剩余数额生成的新的群资源。提供了一种新的资源领取方式,使资源领取方式更加丰富多样。并且,该资源领取方式能够在资源领取过程中多次接收网络设备发布的新的群资源。In the method for claiming resources provided by the above embodiments of the present application, the terminal device may receive group resources of a preset type released by the network device in the group chat of the user corresponding to the terminal device. When detecting that the user performs a claim operation on the group resource, the terminal device may send a request to the network device to claim the group resource. When the claim amount generated for the user satisfies the preset conditions, the terminal device can update the resource value in the user's resource storage account based on part of the claim amount, and at the same time receive the information released by the network device in the group chat. A new group resource generated based on the remaining amount in the received amount. A new resource collection method is provided, which makes resource collection methods richer and more diverse. Moreover, the resource receiving method can receive new group resources issued by the network device multiple times during the resource receiving process.
进一步参考图6,其示出了根据本申请的用于领取资源的方法的又一个实施例的流程600。该用于领取资源的方法应用于终端设备,包括以下步骤:Further referring to FIG. 6 , it shows a flow 600 of another embodiment of the method for claiming resources according to the present application. The method for claiming resources is applied to a terminal device, and includes the following steps:
步骤601,接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源。Step 601, receiving group resources of a preset type published by the network device in the group chat to which the user corresponding to the terminal device belongs.
步骤602,若检测到用户对群资源执行领取操作,向网络设备发送对群资源进行领取的请求。Step 602, if it is detected that the user performs a claim operation on the group resource, send a request for claiming the group resource to the network device.
步骤603,若网络设备为用户生成的领取数额满足预设条件,基于领取数额中的部分数额,更新用户的资源存储账户中的资源值,并接收网络设备在群聊中发布的基于领取数额中的剩余数额生成的新的群资源。Step 603, if the claim amount generated by the network device for the user satisfies the preset condition, update the resource value in the user's resource storage account based on part of the claim amount, and receive the information released by the network device in the group chat based on the claim amount. New group resources generated by the remaining amount.
在本实施例中,步骤601-603的具体操作与图6所示的实施例中步骤501-503的操作基本相同,在此不再赘述。In this embodiment, the specific operations of steps 601-603 are basically the same as the operations of steps 501-503 in the embodiment shown in FIG. 6 , and will not be repeated here.
步骤604,若检测到用户对新的群资源执行领取操作,向网络设备发送对新的群资源进行领取的请求。Step 604, if it is detected that the user performs a claim operation for the new group resource, send a request for claiming the new group resource to the network device.
在本实施例中,终端设备可以检测用户对新的群资源执行的领取操作。在检测到该用户对新的群资源执行领取操作的情况下,终端设备可以向网络设备发送对新的群资源进行领取的请求。In this embodiment, the terminal device may detect a claim operation performed by the user on a new group resource. When detecting that the user performs a claim operation on new group resources, the terminal device may send a request for claiming new group resources to the network device.
这里,在网络设备向属于群聊的多个用户发布新的群资源之后,属于群聊的多个用户的终端设备的屏幕上显示的聊天会话页上均可以显示该新的群资源消息。当属于群聊的一个用户点击该新的群资源消息时,即对该新的群资源执行了领取操作。此时,可以触发该用户的终端设备向网络设备发送该用户对该新的群资源进行领取的请求。Here, after the network device releases the new group resource to the multiple users belonging to the group chat, the new group resource message may be displayed on the chat session pages displayed on the screens of the terminal devices of the multiple users belonging to the group chat. When a user belonging to the group chat clicks on the new group resource message, the operation of claiming the new group resource is performed. At this point, the user's terminal device may be triggered to send the user's request for claiming the new group resource to the network device.
步骤605,若网络设备为用户生成的新的领取数额满足预设条件,基于新的领取数额中的部分数额,再次更新用户的资源存储账户中的资源值,并接收网络设备在群聊中发布的基于新的领取数额中的剩余数额生成的新的群资源。Step 605, if the new claim amount generated by the network device for the user satisfies the preset condition, update the resource value in the user's resource storage account again based on part of the new claim amount, and receive the network device's announcement in the group chat The new group resources generated based on the remaining amount in the new claim amount.
在本实施例中,在接收到属于群聊的用户发送的对新的群资源进行领取的请求之后,网络设备可以为该用户生成新的领取数额。在为该用户生成的新的领取数额满足预设条件的情况下,网络设备可以将该用户的新的领取数额中的部分数额(如随机数额或固定数额)的资源分配给该用户。此时,终端设备可以基于新的领取数额中的部分数额,更新用户的资源存储账户中的资源值。同时,终端设备还可以接收网络设备在群聊中发布的基于该用户的新的领取数额中的剩余数额生成的新的群资源。例如,终端设备可以计算该用户的资源存储账户中的资源值与该用户的新的领取数额中的部分数额的和,作为该用户的资源存储账户中的新的资源值。In this embodiment, after receiving a request for claiming new group resources sent by a user belonging to the group chat, the network device may generate a new claim amount for the user. When the new receiving amount generated for the user satisfies the preset condition, the network device may allocate resources of a part (such as a random amount or a fixed amount) of the user's new receiving amount to the user. At this time, the terminal device may update the resource value in the user's resource storage account based on a part of the new claim amount. At the same time, the terminal device can also receive new group resources released by the network device in the group chat and generated based on the remaining amount of the user's new receiving amount. For example, the terminal device may calculate the sum of the resource value in the user's resource storage account and a part of the user's new claim amount as the new resource value in the user's resource storage account.
步骤605′,若为用户生成的新的领取数额不满足预设条件,基于新的领取数额中的全部数额,再次更新用户的资源存储账户中的资源值。Step 605', if the new claim amount generated for the user does not meet the preset condition, update the resource value in the user's resource storage account again based on all of the new claim amount.
在本实施例中,在接收到属于群聊的用户发送的对新的群资源进行领取的请求之后,网络设备可以为该用户生成新的领取数额。在为该用户生成的新的领取数额不满足预设条件的情况下,网络设备可以将该用户的新的领取数额中的全部数额的资源分配给该用户。此时,终端设备可以基于新的领取数额中的全部数额,更新用户的资源存储账户中的资源值。例如,终端设备可以计算该用户的资源存储账户中的资源值与该用户的新的领取数额中的全部数额的和,作为该用户的资源存储账户中的新的资源值。In this embodiment, after receiving a request for claiming new group resources sent by a user belonging to the group chat, the network device may generate a new claim amount for the user. In the case that the new receiving amount generated for the user does not meet the preset condition, the network device may allocate all resources in the user's new receiving amount to the user. At this time, the terminal device may update the resource value in the user's resource storage account based on the entire amount of the new claim amount. For example, the terminal device may calculate the sum of the resource value in the user's resource storage account and the total amount of the user's new claim amount as the new resource value in the user's resource storage account.
需要说明的是,每当接收网络设备发送的新的群资源,属于群聊的用户均可以再次请求领取这个新的群资源,以使终端设备再次执行步骤604、605或605′,直至网络设备不再生成新的群资源为止。It should be noted that whenever a new group resource sent by the network device is received, the users belonging to the group chat can request to receive the new group resource again, so that the terminal device performs steps 604, 605 or 605' again until the network device Until no new group resources are generated.
从图6中可以看出,与图5对应的实施例相比,本实施例中的用于领取资源的方法的流程600增加了多次对新的群资源进行领取的步骤。由此,本实施例描述的方案中能够在资源领取过程中多次接收网络设备发布的新的群资源,并多次进行资源领取,从而增加了在资源领取过程中的趣味性。It can be seen from FIG. 6 that, compared with the embodiment corresponding to FIG. 5 , the process 600 of the method for claiming resources in this embodiment adds multiple steps of claiming new group resources. Therefore, in the solution described in this embodiment, new group resources released by the network device can be received multiple times during the resource claim process, and the resource claim can be performed multiple times, thereby increasing the fun of the resource claim process.
下面参考图7,其示出了适于用来实现本申请实施例的网络设备(例如图1所示的网络设备103)或终端设备(例如图1所示的终端设备101)的计算机系统700的结构示意图。图7示出的网络设备或终端设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 7 below, it shows a computer system 700 suitable for implementing a network device (such as the network device 103 shown in FIG. 1 ) or a terminal device (such as the terminal device 101 shown in FIG. 1 ) of the embodiment of the present application. Schematic diagram of the structure. The network device or terminal device shown in FIG. 7 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7 , a computer system 700 includes a central processing unit (CPU) 701 that can operate according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage section 708 into a random-access memory (RAM) 703 Instead, various appropriate actions and processes are performed. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701 , ROM 702 , and RAM 703 are connected to each other via a bus 704 . An input/output (I/O) interface 705 is also connected to the bus 704 .
以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc. and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc. is mounted on the drive 710 as necessary so that a computer program read therefrom is installed into the storage section 708 as necessary.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读介质或者是上述两者的任意组合。计算机可读介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 709 and/or installed from removable media 711 . When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the method of the present application are performed. It should be noted that the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. A computer readable medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. More specific examples of computer readable media may include, but are not limited to, electrical connections with one or more conductors, portable computer diskettes, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable Read Only Memory (EPROM or Flash), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this application, a computer-readable medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium other than a computer readable medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向目标的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of this application can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional A procedural programming language—such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括发布单元、接收单元和分配及生成单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,发布单元还可以被描述为“向属于群聊的多个用户发布属于预设类型的群资源的单元”。又例如,还可以描述为:一种处理器包括接收单元、发送单元和更新及生成单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,接收单元还可以被描述为“接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源的单元”。The units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. The described units may also be set in a processor, for example, it may be described as: a processor includes an issuing unit, a receiving unit, and an allocating and generating unit. Wherein, the names of these units do not constitute a limitation to the unit itself under certain circumstances. For example, the publishing unit can also be described as "a unit that publishes group resources of a preset type to multiple users belonging to the group chat." . For another example, it may also be described as: a processor includes a receiving unit, a sending unit, and an updating and generating unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the receiving unit can also be described as "receiving the preset type unit of group resources".
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的网络设备或终端设备中所包含的;也可以是单独存在,而未装配入该网络设备或终端设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该网络设备或终端设备执行时,使得该网络设备:向属于群聊的多个用户发布属于预设类型的群资源;接收属于群聊的至少一个用户发送的对群资源进行领取的请求,并为至少一个用户中的每个用户生成领取数额,其中,至少一个用户的领取数额的总和等于群资源的数额;若存在满足预设条件的领取数额,基于满足预设条件的领取数额中的部分数额,为满足预设条件的领取数额对应的用户分配资源,并基于满足预设条件的领取数额中的剩余数额,生成新的群资源并发送给属于群聊的多个用户。或者使得该终端设备:接收网络设备在终端设备对应的用户所属群聊中发布的属于预设类型的群资源;若检测到用户对群资源执行领取操作,向网络设备发送对群资源进行领取的请求;若网络设备为用户生成的领取数额满足预设条件,基于领取数额中的部分数额,更新用户的资源存储账户中的资源值,并接收网络设备在群聊中发布的基于领取数额中的剩余数额生成的新的群资源。As another aspect, the present application also provides a computer-readable medium, which may be contained in the network device or terminal device described in the above-mentioned embodiments; in the network device or terminal device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the network device or terminal device, the network device: publishes group chats belonging to a preset type to multiple users belonging to the group chat Resources; receiving a request for claiming group resources sent by at least one user belonging to the group chat, and generating a claim amount for each user in the at least one user, wherein the sum of the claim amount of at least one user is equal to the amount of the group resource; If there is a receiving amount that meets the preset conditions, based on a part of the receiving amount that meets the preset conditions, resources are allocated to users corresponding to the receiving amount that meets the preset conditions, and based on the remaining amount of the receiving amount that meets the preset conditions , generate a new group resource and send it to multiple users belonging to the group chat. Or make the terminal device: receive the group resource of the preset type released by the network device in the group chat of the user corresponding to the terminal device; if it is detected that the user performs a collection operation on the group resource, send the group resource collection request to the network device Request; if the claim amount generated by the network device for the user meets the preset conditions, update the resource value in the user's resource storage account based on part of the claim amount, and receive the information released by the network device in the group chat based on the claim amount. New group resources generated by the remaining amount.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the technical solutions formed by the above-mentioned technical features or without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810569769.3A CN108805438A (en) | 2018-06-05 | 2018-06-05 | Method and apparatus for distributing resource, getting resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810569769.3A CN108805438A (en) | 2018-06-05 | 2018-06-05 | Method and apparatus for distributing resource, getting resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108805438A true CN108805438A (en) | 2018-11-13 |
Family
ID=64088633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810569769.3A Pending CN108805438A (en) | 2018-06-05 | 2018-06-05 | Method and apparatus for distributing resource, getting resource |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108805438A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109949023A (en) * | 2019-03-20 | 2019-06-28 | 上海掌门科技有限公司 | Group resource allocation method and device |
CN110061907A (en) * | 2019-04-28 | 2019-07-26 | 上海掌门科技有限公司 | Method and apparatus for getting resource, distributing resource |
CN112016789A (en) * | 2020-07-15 | 2020-12-01 | 北京淇瑀信息科技有限公司 | Internet financial service processing method and device and electronic equipment |
CN112866084A (en) * | 2020-12-31 | 2021-05-28 | 上海掌门科技有限公司 | Virtual resource processing method, equipment and computer readable medium for chat group |
CN113300937A (en) * | 2021-03-10 | 2021-08-24 | 阿里巴巴新加坡控股有限公司 | Resource allocation method, display method, device, system and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104851041A (en) * | 2015-05-11 | 2015-08-19 | 浙江翼信科技有限公司 | Processing method of electronic resource and system thereof |
CN106251124A (en) * | 2016-07-18 | 2016-12-21 | 浙江翼信科技有限公司 | A kind of e-sourcing distribution method and equipment |
EP3144862A1 (en) * | 2015-09-18 | 2017-03-22 | Omron Corporation | Activity control system and activity control method |
CN107302488A (en) * | 2016-04-14 | 2017-10-27 | 阿里巴巴集团控股有限公司 | Distribution method, system and the server of virtual objects |
-
2018
- 2018-06-05 CN CN201810569769.3A patent/CN108805438A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104851041A (en) * | 2015-05-11 | 2015-08-19 | 浙江翼信科技有限公司 | Processing method of electronic resource and system thereof |
EP3144862A1 (en) * | 2015-09-18 | 2017-03-22 | Omron Corporation | Activity control system and activity control method |
CN107302488A (en) * | 2016-04-14 | 2017-10-27 | 阿里巴巴集团控股有限公司 | Distribution method, system and the server of virtual objects |
CN106251124A (en) * | 2016-07-18 | 2016-12-21 | 浙江翼信科技有限公司 | A kind of e-sourcing distribution method and equipment |
Non-Patent Citations (1)
Title |
---|
晓投资: ""手气最佳,必须接着发红包,这是规矩"", 《新浪博客BLOG.SINA.COM.CN/S/BLOG_151ED22540102W926.HTML》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109949023A (en) * | 2019-03-20 | 2019-06-28 | 上海掌门科技有限公司 | Group resource allocation method and device |
CN110061907A (en) * | 2019-04-28 | 2019-07-26 | 上海掌门科技有限公司 | Method and apparatus for getting resource, distributing resource |
CN110061907B (en) * | 2019-04-28 | 2022-03-11 | 上海掌门科技有限公司 | Method and device for receiving and allocating resources |
CN112016789A (en) * | 2020-07-15 | 2020-12-01 | 北京淇瑀信息科技有限公司 | Internet financial service processing method and device and electronic equipment |
CN112016789B (en) * | 2020-07-15 | 2024-01-16 | 北京淇瑀信息科技有限公司 | Internet financial service processing method and device and electronic equipment |
CN112866084A (en) * | 2020-12-31 | 2021-05-28 | 上海掌门科技有限公司 | Virtual resource processing method, equipment and computer readable medium for chat group |
CN113300937A (en) * | 2021-03-10 | 2021-08-24 | 阿里巴巴新加坡控股有限公司 | Resource allocation method, display method, device, system and equipment |
CN113300937B (en) * | 2021-03-10 | 2023-08-29 | 淘宝(中国)软件有限公司 | Resource allocation method, display method, device, system and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11962861B2 (en) | Live streaming room red packet processing method and apparatus, and medium and electronic device | |
CN108805438A (en) | Method and apparatus for distributing resource, getting resource | |
CN111756917B (en) | Information interaction method, electronic device and computer readable medium | |
WO2022111238A1 (en) | Live streaming interaction method and device | |
US20180012308A1 (en) | Interaction system and method, client, and background server | |
CN110061909A (en) | Method and apparatus for handling information | |
CN108924036B (en) | Method and equipment for allocating resources and drawing resources | |
WO2020119540A1 (en) | Group profile picture generation method and device | |
CN110098998B (en) | Method and apparatus for processing information | |
CN106648688A (en) | Information display method and apparatus | |
WO2023216948A9 (en) | Interaction information display methods and apparatus, and device | |
CN112367241A (en) | Message generation and message transmission method, device, equipment and computer readable medium | |
CN109034757A (en) | Method and apparatus for distributing resource, getting resource, issue resource | |
CN110618768B (en) | Information presentation method and device | |
JP2025522414A (en) | Live streaming page display method, device, equipment, storage medium, and program | |
CN112347386B (en) | Resource configuration method and device adopting restriction rule and electronic equipment | |
CN108764866B (en) | Method and device for allocating and receiving resources | |
CN110858817B (en) | Method and equipment for joining group chat and getting resources | |
CN111681026A (en) | Resource allocation method and device, electronic equipment and computer readable storage medium | |
CN108768823B (en) | Method and equipment for processing message and displaying message | |
JP2024500300A (en) | Information interaction methods, devices, and equipment | |
CN111093281A (en) | Method and device for allocating resources | |
CN119067726A (en) | Material creation method, device, electronic device, computer readable medium and product | |
CN108810105A (en) | For pushed information, the method and apparatus for showing information | |
CN110061907A (en) | Method and apparatus for getting resource, distributing resource |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: Room 80536, Shanghai Applicant after: Shanghai Zongzhang Technology Group Co.,Ltd. Address before: Room 80536, Shanghai Applicant before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd. Country or region before: China |