CN108764866A - Method and apparatus for distributing resource, getting resource - Google Patents

Method and apparatus for distributing resource, getting resource Download PDF

Info

Publication number
CN108764866A
CN108764866A CN201810505558.3A CN201810505558A CN108764866A CN 108764866 A CN108764866 A CN 108764866A CN 201810505558 A CN201810505558 A CN 201810505558A CN 108764866 A CN108764866 A CN 108764866A
Authority
CN
China
Prior art keywords
resource
user
group
gets
network equipment
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.)
Granted
Application number
CN201810505558.3A
Other languages
Chinese (zh)
Other versions
CN108764866B (en
Inventor
肖树山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201810505558.3A priority Critical patent/CN108764866B/en
Publication of CN108764866A publication Critical patent/CN108764866A/en
Application granted granted Critical
Publication of CN108764866B publication Critical patent/CN108764866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Abstract

The embodiment of the present application discloses the method and apparatus for distributing resource, getting resource.One specific implementation mode of the method for distributing resource includes:The resource that receiving terminal apparatus is sent gets request, wherein the resource gets request for asking to get the group's resource being published in group chat to belong to a user of group chat;If group's resource, which exists, does not get resource, resource allocation parameters are generated for user;If resource allocation parameters meet preset condition, by the resource allocation for at least partly number that do not get in resource to user, and send first to user and get notification message, first gets notification message for notifying this resource of user to get successfully and the resource number got of user.This embodiment offers a kind of new resource distribution modes, keep resource distribution mode more rich and varied.Also, the resource distribution mode realizes the randomness of resource allocation.

Description

Method and apparatus for distributing resource, getting resource
Technical field
The invention relates to field of computer technology, and in particular to for distribute resource, get resource method and Equipment.
Background technology
Instant messaging (Instant Message, IM) is communication modes the most popular on current internet, can be realized Immediately message is sent and received.With the rapid development of Internet, various instant messaging applications also emerge one after another.Mostly Number instant messaging application is all integrated with resources-type (such as red packet class) program, and resource is issued (such as in instant communication applications to realize Red packet).In general, the resource issued in instant communication applications may include single resource (such as single red packet) and group's resource is (such as Spell luck red packet).
If currently, the release group resource in the group chat of instant communication applications, the user for belonging to group chat can ask to get group Resource in resource.Existing resource distribution mode would generally initiate the sequence of request according to user, be followed successively by user and distribute money Source, until group's resource is all assigned.
Invention content
The embodiment of the present application proposes the method and apparatus for distributing resource, getting resource.
In a first aspect, some embodiments of the present application provide a kind of method for distributing resource, set applied to network It is standby, including:The resource that receiving terminal apparatus is sent gets request, wherein the resource gets request for being to belong to the one of group chat The group's resource being published in group chat is got in a user's request;If group's resource, which exists, does not get resource, resource allocation is generated for user Parameter;If resource allocation parameters meet preset condition, by the resource allocation for at least partly number that do not get in resource to user, And send first to user and get notification message, wherein first gets notification message for notifying user that this resource is got into The resource number that work(and user get.
Second aspect, some embodiments of the present application provide a kind of method for getting resource, are set applied to terminal It is standby, including:If detecting, the user for belonging to group chat gets operation to the group's resource execution issued in group chat, is sent to the network equipment Resource gets request, wherein the resource gets request for getting group resource for user's request;If receiving network equipment transmission The resource value first got notification message, update in the resource storage account of user, wherein first, which gets notification message, is used for This resource of user is notified to get successfully and the resource number got of user.
The third aspect, some embodiments of the present application provide a kind of device for distributing resource, are set to network and set It is standby, including:Receiving unit, the resource for being configured to receiving terminal apparatus transmission get request, wherein the resource is got request and used It asks to get the group's resource being published in group chat in belong to a user of group chat;Generation unit, if being configured to group's resource In the presence of resource is not got, resource allocation parameters are generated for user;Allocation unit is preset if being configured to resource allocation parameters and meeting Condition by the resource allocation for at least partly number that do not get in resource to user, and gets notice to user's transmission first and disappears Breath, wherein first gets notification message for notifying this resource of user to get successfully and the number of resources got of user Volume.
Fourth aspect, some embodiments of the present application provide a kind of device for getting resource, are set to terminal and set It is standby, including:Transmission unit, if being configured to detect that the user for belonging to group chat gets behaviour to the group's resource execution issued in group chat Make, sending resource to the network equipment gets request, wherein the resource gets request for getting group resource for user's request;More New unit updates the resource storage account of user if be configured to receive network equipment transmission first gets notification message In resource value, wherein first gets notification message for notifying that this resource of user is got successfully and user gets Resource number.
5th aspect, some embodiments of the present application provide a kind of network equipment, which includes:One or more A processor;Storage device stores one or more programs thereon;When one or more programs are held by one or more processors Row so that one or more processors realize the method as described in any realization method in first aspect.
6th aspect, some embodiments of the present application provide a kind of terminal device, which includes:One or more A processor;Storage device stores one or more programs thereon;When one or more programs are held by one or more processors Row so that one or more processors realize the method as described in any realization method in second aspect.
7th aspect, some embodiments of the present application provide a kind of computer-readable medium, are stored thereon with computer Program is realized the method as described in any realization method in first aspect or is realized such as when the computer program is executed by processor The method of any realization method description in second aspect.
Method and apparatus provided by the embodiments of the present application for distributing resource, getting resource is receiving terminal device In the case that the resource of transmission gets request, the network equipment, which can determine to whether there is in group resource, does not get resource.Exist In the case of not getting resource, resource allocation parameters are generated for user.Then, the feelings of preset condition are met in resource allocation parameters Under condition, by the resource allocation for at least partly number that do not get in resource to user.A kind of new resource distribution mode is provided, Keep resource distribution mode more rich and varied.Also, the resource distribution mode realizes the randomness of resource allocation.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application some embodiments can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for distributing resource of the application;
Fig. 3 is the flow chart according to another embodiment of the method for distributing resource of the application;
Fig. 4 is the flow chart according to another embodiment of the method for distributing resource of the application;
Fig. 5 is the schematic diagram of an application scenarios of the method for distributing resource that Fig. 4 is provided;
Fig. 6 is the flow chart according to one embodiment of the method for getting resource of the application;
Fig. 7 is the flow chart according to another embodiment of the method for getting resource of the application;
Fig. 8 is adapted for showing for the structure of the computer system of the network equipment or terminal device of realizing the embodiment of the present application It is intended to.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, is illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the application for distributing resource, the exemplary system architecture for the method for getting resource 100。
As shown in Figure 1, system architecture 100 may include terminal device 101, network 102 and the network equipment 103.Network 102 To provide the medium of communication link between terminal device 101 and the network equipment 103.Network 102 may include various connections Type, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 102 with the network equipment 103 with using terminal equipment 101, to receive or send message Deng.Various client applications, such as instant messaging application etc. can be installed on terminal device 101.
Terminal device 101 can be hardware, can also be software.Can support i.e. when terminal device 101 is hardware When communication function various electronic equipments, including but not limited to smart mobile phone, tablet computer, pocket computer on knee and desk-top Computer etc..When terminal device 101 is software, may be mounted in above-mentioned cited electronic equipment.It may be implemented At multiple softwares or software module, single software or software module can also be implemented as.It is not specifically limited herein.
The network equipment 103 can be to provide the network equipment of various services, such as the network equipment 103 can be instant messaging The background server of application;The background server can be integrated form, can also be distributed.After instant messaging application Platform server can get the resource obtained from terminal device 101 the data such as request and carry out the processing such as analyzing, and according to processing As a result, it is determined whether distribute resource for user.
It should be noted that the network equipment 103 can be hardware, can also be software.When the network equipment 103 is hardware When, the distributed network equipment group of multiple network equipment compositions may be implemented into, single network equipment can also be implemented as.Work as net When network equipment 103 is software, multiple softwares or software module (such as providing Distributed Services) may be implemented into, it can also It is implemented as single software or software module.It is not specifically limited herein.
It should be noted that the method for distributing resource that some embodiments of the present application are provided can be set by network Standby 103 execute, and the method for getting resource can be executed by terminal device 101.
It should be understood that the number of the terminal device, network and the network equipment in Fig. 1 is only schematical.According to realization It needs, can have any number of terminal device, network and the network equipment.
With continued reference to Fig. 2, it illustrates the flows according to one embodiment of the method for distributing resource of the application 200.The method for being used to distribute resource is applied to the network equipment, includes the following steps:
Step 201, the resource that receiving terminal apparatus is sent gets request.
In the present embodiment, the method for distributing resource runs the network equipment (such as network shown in FIG. 1 thereon Equipment 103) resource that the user of group chat sends can be belonged to from terminal device (such as terminal device 101 shown in FIG. 1) reception Get request.Wherein, which gets request and can be used for asking to get to be published in group chat to belong to a user of group chat Group's resource.
In practice, the user of instant messaging application can establish chat sessions with one or more other users.Wherein, i.e., When communication applications the chat sessions established of user and an other users can be referred to as personal chat sessions.Instant messaging is answered The chat sessions that user establishes with multiple other users can be referred to as group chat session, abbreviation group chat.Instant messaging is answered With resources-type (such as red packet class) program can be integrated, to realize the user of instant messaging application in personal chat sessions or group chat Issue the function of resource (such as red packet).
Here, the user of instant messaging application can be to the multiple users for belonging to group chat, such as part or all of user, publication Group's resource (as spelled luck red packet, common red packet), belonging to arbitrary use of group chat can ask to get the resource in group resource per family. When the instant messaging installed on user opens a terminal equipment in application, can show instant messaging application on the screen of terminal device Currently logged on user chat sessions list.Then, when the user clicks group chat in chat sessions list when, terminal device The chat sessions page of the group chat can be shown on screen.If a user of the group chat issues to the multiple users for belonging to the group chat Group's resource, then belonging on the chat sessions page shown on the screen of the terminal device of multiple users of the group chat can show This group of messages related to resources.When the user clicks when this group of messages related to resources, i.e., this group of resources is performed and get operation.At this point it is possible to touch Hair terminal device sends the user to the network equipment asks the resource for getting this group of resources to get request.
Step 202, if group's resource, which exists, does not get resource, resource allocation parameters are generated for user.
In the present embodiment, after receiving the resource that a user for belonging to group chat sends and getting request, network is set It is standby to determine whether there is also do not get resource in group resource.Exist in the case of do not get resource in group's resource, network Equipment can be that the user generates resource allocation parameters.There is no in the case of not getting resource in group's resource, terminate flow. Wherein, resource allocation parameters can be used to determine whether to distribute resource for user.The network equipment can generate by various modes Resource allocation parameters.For example, getting request whenever receiving the resource that the user for belonging to group chat sends, the network equipment can generate One random number, the resource allocation parameters as the user.
In some embodiments, if group's resource, which exists, does not get resource, and the user for getting resource is asked not lead successfully The resource in this group of resources was taken, resource allocation parameters are generated for user.
Step 203, if resource allocation parameters meet preset condition, by the resource for at least partly number that do not get in resource User is distributed to, and sends first to user and gets notification message.
In the present embodiment, the network equipment can analyze resource allocation parameters, whether determine resource allocation parameters Meet preset condition.In the case where resource allocation parameters meet preset condition, the network equipment can not will not got in resource At least partly resource allocation of number sends first to the user and gets notification message to user.Wherein, first notice is got Message can be used for notifying this resource of user to get successfully and the resource number got of user.Preset condition can be Pre-set various conditions.For example, preset condition may be greater than default value.At this point, the network equipment can be by resource point It is compared with default value with parameter.If resource allocation parameters are more than default value, which meets default Condition, the resource allocation parameters for meeting preset condition include the resource allocation parameters more than default value.Conversely, being then unsatisfactory for pre- If condition, the resource allocation parameters for being unsatisfactory for preset condition include the resource allocation parameters no more than default value.
In some embodiments, in the case where resource allocation parameters meet preset condition, the network equipment can also be to category Second, which is sent, in the other users of group chat gets notification message.Wherein, it second gets notification message and can be used for notifying other use Family this resource of the user gets success.
In some embodiments, in the case where resource allocation parameters are unsatisfactory for preset condition, the network equipment can also be to User's transmission third that resource is got in request gets notification message.Wherein, third gets notification message and can be used for notifying the use This resource of family is got not successfully.
In some embodiments, in the case where resource allocation parameters are unsatisfactory for preset condition, the network equipment can also be to Notification message is got in the other users transmission the 4th for belonging to group chat.Wherein, it the 4th gets notification message and can be used for notifying other User's request is got the user of resource this resource and is got not successfully.
In some embodiments, no matter belong to the user of group chat this resource and whether get success, allow the user again This group of resources are got in secondary request.It, can be with triggering terminal equipment again to network when the user again taps on this group of messages related to resources Equipment sends resource and gets request.If the network equipment receives the resource from terminal device and gets request, and group's resource again In the presence of resource is not got, new resource allocation parameters can be generated for user.If new resource allocation parameters meet preset condition, The resource allocation for at least partly number that do not get in resource can be given to the user, and send first to the user and get notice Message, to notify the user that this resource gets success.It certainly, can be with if new resource allocation parameters are unsatisfactory for preset condition This sends third to user and gets notification message, to notify the user that this resource is got not successfully.In some embodiments, only In the case where the user for belonging to group chat had not got the resource in this group of resources successfully, the user is just allowed to again attempt to lead Take this group of resources.
It should be understood that in some embodiments, whenever the user for belonging to group chat asks to get to be published in group chat Group resource when, the network equipment all can be the user generate resource get allocation of parameters, with determine whether for the user distribute provide Source, to realize the randomness of resource allocation.In some embodiments, whenever the user for belonging to group chat asks to get to be published on Group's resource in group chat, and when the user had not got the resource in this group of resources successfully, the network equipment can be the user It generates resource and gets allocation of parameters, to determine whether to distribute resource for the user.
It should be noted that the arbitrary user for belonging to group chat often execute it is primary get operation for group's resource, all can be to The network equipment sends first resource and gets request, so that the network equipment often receives a resource and gets request, executes on primary State step 201-203.
The method for distributing resource that above-described embodiment of the application provides, in the resource for receiving terminal device transmission In the case of getting request, the network equipment, which can determine to whether there is in group resource, does not get resource.Resource is not got existing In the case of, resource allocation parameters are generated for user.It then, will not in the case where resource allocation parameters meet preset condition The resource allocation of at least partly number in resource is got to user.A kind of new resource distribution mode is provided, resource point is made It is more rich and varied with mode.Also, the resource distribution mode realizes the randomness of resource allocation.
With further reference to Fig. 3, it illustrates according to another embodiment of the method for distributing resource of the application Flow 300.The method for being used to distribute resource is applied to the network equipment, includes the following steps:
Step 301, the resource that receiving terminal apparatus is sent gets request.
In the present embodiment, the basic phase of operation of the concrete operations of step 301 and step 201 in embodiment shown in Fig. 2 Together, details are not described herein.
Step 302, if group's resource, which exists, does not get resource, serial number is got for user's distribution.
In the present embodiment, in the case where the resource for receiving a user for belonging to group chat transmission gets request, net Network equipment (such as network equipment 103 shown in FIG. 1) can determine whether there is also do not get resource in group resource.In group's resource In the case that middle presence does not get resource, the network equipment can be that serial number is got in user distribution.Wherein, getting serial number can use The resource that the user's transmission for belonging to group chat is received in the expression network equipment gets the sequence of request.For example, the network equipment is it First resource received gets the corresponding user's distribution of request and gets serial number 1, is got for received second resource Corresponding user's distribution is asked to get serial number 2, and so on, get the corresponding user of request for N (N is positive integer) a resource Serial number N is got in distribution.
Step 303, the resource value for not getting resource is obtained.
In the present embodiment, the network equipment can obtain the resource value for not getting resource.
Step 304, based on getting serial number and not getting the resource value of resource, resource allocation parameters are generated.
In the present embodiment, the network equipment can generate resource point based on getting serial number and not getting the resource value of resource With parameter.For example, the network equipment can by get serial number and do not get the integer part in the resource value of resource and as money Source allocation of parameters.
In some embodiments, the network equipment can calculate the default position for getting serial number and the resource value for not getting resource The sum of digital (such as last figure), will be obtained and as resource allocation parameters.
Step 305, if resource allocation parameters meet preset condition, by the resource for at least partly number that do not get in resource User is distributed to, and sends first to user and gets notification message.
In the present embodiment, the network equipment can analyze resource allocation parameters, whether determine resource allocation parameters Meet preset condition.In the case where resource allocation parameters meet preset condition, the network equipment can not will not got in resource At least partly resource allocation of number sends first to the user and gets notification message to user.Wherein, first notice is got Message can be used for notifying this resource of user to get successfully and the resource number got of user.Preset condition can be Pre-set various conditions.For example, the network equipment can utilize resource allocation parameters divided by default value (such as 2).If resource Allocation of parameters can be predetermined numerical value and divide exactly, then the resource allocation parameters meet preset condition, meet the resource point of preset condition It may include being predetermined the resource allocation parameters that numerical value is divided exactly with parameter.Conversely, being then unsatisfactory for preset condition, it is unsatisfactory for preset condition Resource allocation parameters may include the resource allocation parameters that cannot be predetermined numerical value and divide exactly.
From figure 3, it can be seen that compared with the corresponding embodiments of Fig. 2, the method for distributing resource in the present embodiment Flow 300 highlight generate resource allocation parameters the step of.As a result, the present embodiment description scheme in based on get serial number and The resource value of resource is not got, generates resource allocation parameters.Provide a kind of mode quickly generating resource allocation parameters.
With further reference to Fig. 4, it illustrates according to another embodiment of the method for distributing resource of the application Flow 400.The method for being used to distribute resource is applied to the network equipment, includes the following steps:
Step 401, the resource that receiving terminal apparatus is sent gets request.
Step 402, if group's resource, which exists, does not get resource, resource allocation parameters are generated for user.
In the present embodiment, the behaviour of the concrete operations of step 401-402 and step 201-202 in embodiment shown in Fig. 2 Make essentially identical, details are not described herein.
Step 403, it if resource allocation parameters are unsatisfactory for preset condition, sends third to user and gets notification message.
In the present embodiment, the network equipment (such as network equipment 103 shown in FIG. 1) can carry out resource allocation parameters Analysis, determines whether resource allocation parameters meet preset condition.In the case where resource allocation parameters are unsatisfactory for preset condition, net Network equipment can send third to user and get notification message.Wherein, third gets notification message and can be used for notifying user's sheet Secondary resource is got not successfully.
In some embodiments, in the case where resource allocation parameters are unsatisfactory for preset condition, the network equipment can also be to Notification message is got in the other users transmission the 4th for belonging to group chat.Wherein, it the 4th gets notification message and can be used for notifying other This resource of the user user is got not successfully.
Step 404, if receiving the resource from terminal device again gets request, and money is not got in the presence of group's resource New resource allocation parameters are generated for user in source.
In the present embodiment, resource was initiated to the network equipment get request, but failed neck in the user for belonging to group chat In the case of taking resource, the user is allowed to ask to get this group of resources again.When the user again taps on this group of messages related to resources, Resource can be sent to the network equipment get request again with triggering terminal equipment (such as terminal device 101 shown in FIG. 1).If net Network equipment receives the resource from terminal device and gets request again, and group's resource is not in the presence of resource is got, can be user Generate new resource allocation parameters.
Step 405, if new resource allocation parameters meet preset condition, by at least partly number that do not get in resource Resource allocation sends first to user and gets notification message to user.
In the present embodiment, the network equipment can analyze new resource allocation parameters, determine new resource allocation Whether parameter meets preset condition.In the case where new resource allocation parameters meet preset condition, the network equipment can will not The resource allocation of at least partly number in resource is got to user, and sends first to the user and gets notification message.Wherein, First, which gets notification message, can be used for notifying this resource of user to get successfully and the resource number got of user.
In some embodiments, in the case where new resource allocation parameters are unsatisfactory for preset condition, the network equipment may be used also Notification message is got to send the 4th to the other users for belonging to group chat.Wherein, it the 4th gets notification message and can be used for notifying This resource of the other users user is got not successfully.At this point it is possible to which the user is allowed to ask to get this group of resources again.
It is the schematic diagram of an application scenarios of the method for distributing resource that Fig. 4 is provided with continued reference to Fig. 5, Fig. 5. In the application scenarios of Fig. 5, all users of the terminal device of the user A in group chat 1 into group chat 1 have issued a red packet Number is 3, the spelling luck red packet that total amount is 12 yuan.At this point, the terminal device of all users can be in group chat 1 in group chat 1 Show that this spells luck red packet message on chat sessions page.Later, the user B in group chat 1 clicks the spelling luck red packet for the first time Message, the terminal device to trigger user B send resource to the network equipment and get request.At this point, the network equipment can be user B Serial number 1 is got in distribution, obtains residual amount value 12 in the spelling luck red packet, calculates the end for getting serial number 1 and residual amount value 12 The sum of bit digital 2, by obtained and 3 are used as resource allocation parameters.Since resource allocation parameters 3 cannot be divided exactly by 2, network is set It is standby to be sent to the terminal device of user B for indicating that user B gets the information of red packet not successfully.Then, the terminal of user B The information can be shown on the screen of equipment.Wherein, which can be as illustrated in 501.Then, user B clicks the spelling for the second time Luck red packet message, the terminal device to trigger user B send resource to the network equipment again and get request.At this point, network is set It is standby can be user's B distribution it is new get serial number 2, obtain residual amount value 12 in the spelling luck red packet, calculate and new get sequence Numbers 2 with the last figure 2 of residual amount value 12 and, by obtained and 4 as new resource allocation parameters.Due to new money Source allocation of parameters 4 can be divided exactly by 2, and the red packet that the amount of money in the spelling luck red packet is 3 yuan is distributed to user B by the network equipment, And it is sent to the terminal device of user B for indicating that user B successfully gets the information of red packet.Then, the terminal device of user B The information can be shown on screen.Wherein, which can be as indicated at 502.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the method for distributing resource in the present embodiment Flow 400 increase the step of failed user for getting resource asks to get resource again.The present embodiment describes as a result, The user for getting resource in scheme not successfully can repeatedly ask to get resource, to increase the entertaining that resource gets process Property.
With continued reference to Fig. 6, it illustrates the flows according to one embodiment of the method for getting resource of the application 600.The method for being used to get resource is applied to terminal device, includes the following steps:
Step 601, if detecting, the user for belonging to group chat gets operation to the group's resource execution issued in group chat, to network Equipment sends resource and gets request.
In the present embodiment, the method for getting resource runs terminal device (such as terminal shown in FIG. 1 thereon Equipment 101) it can detect and belong to the user of group chat and get operation to what the group's resource issued in group chat executed.Belong to detecting In the case that the user of group chat gets operation to the group's resource execution issued in group chat, terminal device can be to the network equipment (example The network equipment 103 as shown in Figure 1) send resource get request.Wherein, which gets request for being got for user's request Group's resource.
In practice, the user of instant messaging application can establish chat sessions with one or more other users.Wherein, i.e., When communication applications the chat sessions established of user and an other users can be referred to as personal chat sessions.Instant messaging is answered The chat sessions that user establishes with multiple other users can be referred to as group chat session, abbreviation group chat.Instant messaging is answered With resources-type (such as red packet class) program can be integrated, to realize the user of instant messaging application in personal chat sessions or group chat Issue resource (such as red packet).
Here, the user of instant messaging application can be (as red in spelled luck to the whole user's release group resources for belonging to group chat Packet, common red packet), belonging to arbitrary use of group chat can ask to get the resource in group resource per family.It is set when user opens a terminal The instant messaging of standby upper installation is in application, can show the currently logged on user's of instant messaging application on the screen of terminal device Chat sessions list.Then, when the user clicks group chat in chat sessions list when, can show this on the screen of terminal device The chat sessions page of group chat.If a user of the group chat is to the whole user's release group resources for belonging to the group chat, then belonging to This group of messages related to resources can be shown on the chat sessions page shown on the screen of the terminal device of multiple users of the group chat.When When user clicks this group of messages related to resources, i.e., this group of resources is performed and get operation.At this point it is possible to which triggering terminal equipment is to network Equipment, which sends the user, asks the resource for getting this group of resources to get request.
Step 602, if receive network equipment transmission first gets notification message, the resource storage account of user is updated In resource value.
In the present embodiment, in the case where receive network equipment transmission first gets notification message, terminal device The resource value in the resource storage account of the user can be updated.Wherein, it first gets notification message and can be used for notifying user This resource is got successfully and the resource number got of user.For example, terminal device can calculate the resource of the user The resource number that resource value and the user in storage account get and, the resource as the user stores in account New resource value.
In some embodiments, after the resource value in the resource storage account of update user, terminal device can be with Display is for indicating that user successfully gets the information of group resource on the group chat session page of group chat.For example, for indicate user at The information that work(gets group resource can be shown on chat sessions page in the form of pop-up, can also directly overlay chat sessions On page, it is fused into one with chat sessions page.Here, terminal device can be shown in following at least one region for indicating to use Successfully get the information of group resource in family:The predeterminable area (such as lower right field of chat sessions page) of chat sessions page, chat meeting Talk about region where group's message related to resources in page, near group's message related to resources in chat sessions page region (such as group's message related to resources The lower zone of region) etc..
In some embodiments, in the case where the third for receiving network equipment transmission gets notification message, terminal is set It is standby to be shown on the group chat session page of group chat for indicating that user gets the information of group resource not successfully.Wherein, third is led Notification message is taken to can be used for notifying user that this resource is got not successfully.For example, for indicating that user gets group's money not successfully The information in source can be shown on chat sessions page in the form of pop-up, can also be directly overlayed on chat sessions page, with chat Its session page is fused into one.Here, terminal device can be shown in following at least one region for indicating that user is failed Get the information of group resource:In the predeterminable area (such as lower right field of chat sessions page) of chat sessions page, chat sessions page Group's message related to resources where region, near group's message related to resources in chat sessions page region (such as group's message related to resources location The lower zone in domain) etc..
In some embodiments, no matter belong to the user of group chat this resource and whether get success, allow the user again This group of resources are got in secondary request.It, can be with triggering terminal equipment again to network when the user again taps on this group of messages related to resources Equipment sends resource and gets request.If the network equipment receives the resource from terminal device and gets request, and group's resource again In the presence of resource is not got, can again determine whether to distribute resource for the user.If it is determined that distributing resource, Ke Yixiang for the user The user sends first and gets notification message, to notify the user that this resource gets success.If it is determined that not being that the user distributes Resource, can this to user send third get notification message, to notify the user that this resource is got not successfully.
It should be noted that in some embodiments, often detecting that the user for belonging to group chat executes and being once directed to group's resource Get operation, can all execute an above-mentioned steps 601-602.
The method for getting resource that above-described embodiment of the application provides, is detecting the user for belonging to group chat to group In the case that operation is got in the group's resource execution issued in merely, the terminal device of the user can send resource neck to the network equipment Take request.In the case where receive network equipment transmission first gets notification message, terminal device can update user's Resource stores the resource value in account.It provides a kind of new resource and gets mode, so that resource is got mode more rich and varied. Also, the resource, which gets mode, realizes the randomness that resource is got.
With further reference to Fig. 7, it illustrates according to another embodiment of the method for getting resource of the application Flow 700.The method for being used to get resource is applied to terminal device, includes the following steps:
Step 701, if detecting, the user for belonging to group chat gets operation to the group's resource execution issued in group chat, to network Equipment sends resource and gets request.
In the present embodiment, the basic phase of operation of the concrete operations of step 701 and step 601 in embodiment shown in fig. 6 Together, details are not described herein.
Step 702, it if the third for receiving network equipment transmission gets notification message, is shown on the group chat session page of group chat Show for indicating that user gets the information of group resource not successfully.
In the present embodiment, it is got in the third for receiving the network equipment (such as network equipment 103 shown in FIG. 1) transmission In the case of notification message, terminal device (such as terminal device 101 shown in FIG. 1) can be shown on the group chat session page of group chat Show for indicating that user gets the information of group resource not successfully.Wherein, third gets notification message and can be used for notifying user's sheet Secondary resource is got not successfully.For example, can be shown in the form of pop-up for indicating that user gets the information of group resource not successfully It on chat sessions page, can also directly overlay on chat sessions page, be fused into one with chat sessions page.Here, terminal Equipment can be shown in following at least one region for indicating that user gets the information of group resource not successfully:Chat sessions page The region where group's message related to resources, chat meeting in predeterminable area (such as the lower right field of chat sessions page), chat sessions page Talk about region (such as lower zone of group's message related to resources region) near group's message related to resources in page.
Step 703, if detecting again, user gets operation for group's resource, sends resource neck to the network equipment again Take request.
In the present embodiment, resource was initiated to the network equipment get request, but failed neck in the user for belonging to group chat In the case of taking resource, the user is allowed to ask to get this group of resources again.When the user again taps on this group of messages related to resources, Resource can be sent to the network equipment get request again with triggering terminal equipment.If the network equipment receives and carrys out self terminal and set again Standby resource gets request, and group's resource can again determine whether to distribute resource for the user in the presence of resource is not got.If really It is set to the user and distributes resource, first can be sent to the user and get notification message, to notify the user that this resource is got Success.If it is determined that be the user distribute resource, can this to user send third get notification message, to notify user's sheet Secondary resource is got not successfully.
It can be seen from figure 7 that compared with the corresponding embodiments of Fig. 6, the method for getting resource in the present embodiment Flow 700 increase again to the network equipment send resource get request the step of.As a result, in the scheme of the present embodiment description The failed user for getting resource can repeatedly ask to get resource, to increase the interest that resource gets process.
Below with reference to Fig. 8, it illustrates suitable for for realizing that the network equipment of the embodiment of the present application is (such as shown in FIG. 1 The network equipment 103) or terminal device (such as terminal device 101 shown in FIG. 1) computer system 800 structural schematic diagram. The network equipment or terminal device shown in Fig. 8 are only an example, should not be to the function and use scope of the embodiment of the present application Bring any restrictions.
As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and Execute various actions appropriate and processing.In RAM 803, also it is stored with system 800 and operates required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.
It is connected to I/O interfaces 805 with lower component:Importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also according to needing to be connected to I/O interfaces 805.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 810, as needed in order to be read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed by communications portion 809 from network, and/or from detachable media 811 are mounted.When the computer program is executed by central processing unit (CPU) 801, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer-readable medium either the two arbitrarily combines.Computer-readable medium for example can be --- but it is unlimited In --- electricity, system, device or the device of magnetic, optical, electromagnetic, infrared ray or semiconductor, or the arbitrary above combination.It calculates The more specific example of machine readable medium can include but is not limited to:Being electrically connected with one or more conducting wires, portable meter Calculation machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, can be any include computer-readable medium or storage program has Shape medium, the program can be commanded the either device use or in connection of execution system, device.And in the application In, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, wherein Carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but not limited to electric Magnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Jie Any computer-readable medium other than matter, the computer-readable medium can be sent, propagated or transmitted for being held by instruction Row system, device either device use or program in connection.The program code for including on computer-readable medium It can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned arbitrary conjunction Suitable combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object-oriented programming language-such as Java, Smalltalk, C+ +, further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute on the user computer, partly execute, executed as an independent software package on the user computer, Part executes or executes on a remote computer or server completely on the remote computer on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including LAN (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more uses The executable instruction of the logic function as defined in realization.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it to note Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet Include receiving unit, generation unit and allocation unit.Wherein, the title of these units is not constituted under certain conditions to the unit The restriction of itself, for example, receiving unit is also described as " unit that the resource that receiving terminal apparatus is sent gets request ". In another example can also be described as:A kind of processor includes transmission unit and updating unit.Wherein, the title of these units is at certain The restriction to the unit itself is not constituted in the case of kind, for example, transmission unit is also described as " belonging to group if detecting User merely gets operation to the group's resource execution issued in group chat, and the unit that resource gets request is sent to the network equipment ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in the network equipment or terminal device described in above-described embodiment;Can also be individualism, and should without supplying In the network equipment or terminal device.Above computer readable medium carries one or more program, when said one or When multiple programs are executed by the network equipment or terminal device so that the network equipment:The resource neck that receiving terminal apparatus is sent Take request, wherein the resource gets request for asking to get the group being published in group chat money to belong to a user of group chat Source;If group's resource, which exists, does not get resource, resource allocation parameters are generated for user;If resource allocation parameters meet preset condition, By the resource allocation for at least partly number that do not get in resource to user, and sends first to user and gets notification message, In, first gets notification message for notifying this resource of user to get successfully and the resource number got of user.Or Person makes the terminal device:If detecting, the user for belonging to group chat gets operation to the group's resource execution issued in group chat, to net Network equipment sends resource and gets request, wherein the resource gets request for getting group resource for user's request;If receiving net The first of network equipment transmission gets notification message, updates the resource value in the resource storage account of user, first, which gets notice, disappears It ceases for notifying this resource of user to get successfully and the resource number got of user.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for distributing resource is applied to the network equipment, including:
The resource that receiving terminal apparatus is sent gets request, wherein the resource gets request for being a use for belonging to group chat The group's resource being published in the group chat is got in family request;
If group's resource, which exists, does not get resource, resource allocation parameters are generated for the user;
If the resource allocation parameters meet preset condition, by the resource allocation for not getting at least partly number in resource It to the user, and sends first to the user and gets notification message, described first to get notification message described for notifying This resource of user is got successfully and the resource number got of the user.
2. according to the method described in claim 1, wherein, described by the money for not getting at least partly number in resource After the user is distributed in source, further include:
Second is sent to the other users for belonging to the group chat and gets notification message, wherein described second gets notification message use Success is got in notifying this resource of user described in the other users.
3. according to the method described in claim 1, wherein, the method further includes:
If the resource allocation parameters are unsatisfactory for the preset condition, send third to the user and gets notification message, wherein The third gets notification message for notifying the user that this resource is got not successfully.
4. according to the method described in one of claim 1-3, wherein the method further includes:
If receiving the resource from the terminal device again gets request, and group's resource is in the presence of resource is not got The user generates new resource allocation parameters;
If the new resource allocation parameters meet preset condition, by the resource for not getting at least partly number in resource The user is distributed to, and sends first to the user and gets notification message.
5. it is described to generate resource allocation parameters for the user according to the method described in claim 1, wherein, including:
Serial number is got for user distribution;
The resource value of resource is not got described in obtaining;
Serial number and the resource value for not getting resource are got based on described, generates the resource allocation parameters.
6. described to get serial number and the resource for not getting resource based on described according to the method described in claim 5, wherein Value, generates the resource allocation parameters, including:
Got described in calculating the presetting digit capacity word of serial number and the resource value for not getting resource and, by obtained and work For the resource allocation parameters.
7. according to the method described in claim 6, wherein, after the generation source allocation of parameters for the user, further including:
Utilize the resource allocation parameters divided by default value;
Wherein, the resource allocation parameters for meeting the preset condition include:It is predetermined the resource allocation parameters that numerical value is divided exactly;It is discontented The resource allocation parameters of the preset condition include enough:The resource allocation parameters that cannot be divided exactly by the default value.
8. a kind of method for getting resource is applied to terminal device, including:
If detecting, the user for belonging to group chat gets operation to the group's resource execution issued in the group chat, is sent to the network equipment Resource gets request, wherein the resource gets request for getting group's resource for user request;
If receiving the network equipment is sent first gets notification message, in the resource storage account for updating the user Resource value, wherein described first gets notification message for notifying this resource of the user to get successfully and the user The resource number got.
9. according to the method described in claim 8, wherein, the resource value in the resource storage account of the update user Later, further include:
Display is for indicating that the user successfully gets the information of group's resource on the group chat session page of the group chat.
10. according to the method described in claim 8, wherein, the method further includes:
If receiving the third that the network equipment is sent gets notification message, use is shown on the group chat session page of the group chat The information of group's resource is got not successfully in the expression user, wherein the third gets notification message for notifying institute User this resource is stated to get not successfully.
11. according to the method described in one of claim 8-10, wherein the method further includes:
If detecting again, the user gets operation for group's resource, sends the resource neck to the network equipment again Take request.
12. a kind of network equipment, including:
One or more processors;
Storage device stores one or more programs thereon;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any in claim 1-7.
13. a kind of terminal device, including:
One or more processors;
Storage device stores one or more programs thereon;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any in claim 8-11.
14. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor Method or realization methods as described in claim 8-11 any of the Shi Shixian as described in any in claim 1-7.
CN201810505558.3A 2018-05-24 2018-05-24 Method and equipment for allocating resources and drawing resources Active CN108764866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810505558.3A CN108764866B (en) 2018-05-24 2018-05-24 Method and equipment for allocating resources and drawing resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810505558.3A CN108764866B (en) 2018-05-24 2018-05-24 Method and equipment for allocating resources and drawing resources

Publications (2)

Publication Number Publication Date
CN108764866A true CN108764866A (en) 2018-11-06
CN108764866B CN108764866B (en) 2022-09-23

Family

ID=64005235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810505558.3A Active CN108764866B (en) 2018-05-24 2018-05-24 Method and equipment for allocating resources and drawing resources

Country Status (1)

Country Link
CN (1) CN108764866B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109847340A (en) * 2018-12-21 2019-06-07 腾讯科技(深圳)有限公司 A kind of information processing method, device, equipment and medium
CN110061907A (en) * 2019-04-28 2019-07-26 上海掌门科技有限公司 Method and apparatus for getting resource, distributing resource
CN112866084A (en) * 2020-12-31 2021-05-28 上海掌门科技有限公司 Virtual resource processing method, equipment and computer readable medium for chat group

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837123A (en) * 2015-05-20 2015-08-12 努比亚技术有限公司 Virtual item transmitting method and virtual item transmitting device
CN105389117A (en) * 2015-12-07 2016-03-09 腾讯科技(深圳)有限公司 Resource acquiring method and apparatus and resource processing method, apparatus and system
CN105610695A (en) * 2015-12-21 2016-05-25 阿里巴巴集团控股有限公司 Service implementation method and device
CN106096924A (en) * 2016-06-21 2016-11-09 阿里巴巴集团控股有限公司 object distribution method and device
CN106251124A (en) * 2016-07-18 2016-12-21 浙江翼信科技有限公司 A kind of e-sourcing distribution method and equipment
CN107302488A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 Distribution method, system and the server of virtual objects

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837123A (en) * 2015-05-20 2015-08-12 努比亚技术有限公司 Virtual item transmitting method and virtual item transmitting device
CN105389117A (en) * 2015-12-07 2016-03-09 腾讯科技(深圳)有限公司 Resource acquiring method and apparatus and resource processing method, apparatus and system
CN105610695A (en) * 2015-12-21 2016-05-25 阿里巴巴集团控股有限公司 Service implementation method and device
CN107302488A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 Distribution method, system and the server of virtual objects
CN106096924A (en) * 2016-06-21 2016-11-09 阿里巴巴集团控股有限公司 object distribution method and device
CN106251124A (en) * 2016-07-18 2016-12-21 浙江翼信科技有限公司 A kind of e-sourcing distribution method and equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109847340A (en) * 2018-12-21 2019-06-07 腾讯科技(深圳)有限公司 A kind of information processing method, device, equipment and medium
CN109847340B (en) * 2018-12-21 2023-02-10 腾讯科技(深圳)有限公司 Information processing method, device, equipment and medium
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 equipment for drawing resources and distributing resources
CN112866084A (en) * 2020-12-31 2021-05-28 上海掌门科技有限公司 Virtual resource processing method, equipment and computer readable medium for chat group

Also Published As

Publication number Publication date
CN108764866B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN108805438A (en) Method and apparatus for distributing resource, getting resource
CN109347720A (en) It determines group member, send the method and apparatus that the request of group is added
CN110310034A (en) A kind of service orchestration applied to SaaS, business flow processing method and apparatus
CN111931962B (en) Information display method and device and electronic equipment
CN108390872A (en) Certificate management method, device, medium and electronic equipment
CN109995877A (en) Information-pushing method and device
CN109697100A (en) Conversation message display processing method and device
CN106251124A (en) A kind of e-sourcing distribution method and equipment
CN108764866A (en) Method and apparatus for distributing resource, getting resource
CN110209315A (en) The display methods of character, device, electronic equipment and storage medium in user interface
CN109447712A (en) A kind of consultation method, device, electronic equipment and storage medium
CN110098998A (en) Method and apparatus for handling information
US11303596B2 (en) Method and a device for processing information
CN111147872A (en) Information display method and device and electronic equipment
CN108829518A (en) Method and apparatus for pushed information
CN108763881A (en) Method and apparatus for controlling user right
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN108768823A (en) Method and apparatus for handling message, showing message
CN110134480A (en) Processing method, device, electronic equipment and the storage medium of user's trigger action
CN110083768A (en) A kind of information sharing method, device, equipment and medium
CN108810105A (en) For pushed information, the method and apparatus for showing information
CN115022106B (en) Group information processing method, device, equipment and medium
CN115547515A (en) Doctor-patient session management method, device and system
CN108768830A (en) For pushed information, the method and apparatus for showing information
CN109348298A (en) The method and apparatus that information pushes, plays multimedia data stream

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
GR01 Patent grant
GR01 Patent grant